[06:06:02]ConnectInit Can't connect to host [06:06:07]ConnectInit Can't take IP for lk.salyk.kg [06:06:07]CommunicateWithHost connect error [06:06:07]CommunicateWithHost err = -1 [06:06:07]OFD Sender: Server communicate error [06:06:12]OFD Sender: Processing packet 22088 [packets to send 6, broken 4] [06:06:12]ProducePacketName [06:06:12]name=ofd_packets/00022088 [06:06:12]OFD Sender: To server: 嚂鰌G, [06:06:12]CommunicateWithHost lk.salyk.kg:30040 [06:06:12]ConnectInit lk.salyk.kg [06:08:27]ConnectInit Can't connect to host [06:08:27]CommunicateWithHost connect error [06:08:27]CommunicateWithHost err = -1 [06:08:27]OFD Sender: Server communicate error [06:08:32]OFD Sender: Processing packet 22088 [packets to send 6, broken 4] [06:08:32]ProducePacketName [06:08:32]name=ofd_packets/00022088 [06:08:32]OFD Sender: To server: 嚂鰌G, [06:08:32]CommunicateWithHost lk.salyk.kg:30040 [06:08:32]ConnectInit lk.salyk.kg [06:08:32]Connected sock=8 [06:08: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 B1 01 00 00 3A 8E A9 01 28 D7 5A 03 01 00 03 00 9D 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 31 35 36 32 30 34 34 39 06 04 30 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 9E D0 A0 D0 A2 D0 98 D0 A6 D0 AF 20 D0 9F D0 9B D0 90 D0 A2 D0 98 D0 9D D0 A3 D0 9C 20 30 2C 35 30 4C 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 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 F4 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 75 C1 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 6A 1D 42 0E 8A 10 81 BA 79 F2 1C FF FB 96 [06:08: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 DF 7C 47 00 B4 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 48 56 00 00 F4 03 04 00 2C 87 6B 66 B6 04 01 00 00 47 B9 76 3D D1 C9 0B 10 [06:08:32]CommunicateWithHost err = 0 [06:08:32]CheckOFDResponse [06:08:32]1017 (14) - 77093643461234 [06:08:32]1041 (16) - 0000000000965344 [06:08:32]1040 (4) - 22088 [06:08:32]1012 (4) - 13.06.2024 23:56 [06:08:32]1206 (1) - 0 [06:08:32]OFD Sender: Remove packet 22088 [06:08:32]ProducePacketName [06:08:32]name=ofd_packets/00022088 [06:08:32]NVStorageDeleteData [06:08:33]OFD Sender: Processing packet 22089 [packets to send 5, broken 4] [06:08:33]ProducePacketName [06:08:33]name=ofd_packets/00022089 [06:08:33]OFD Sender: To server: 嚂鰌G, [06:08:33]CommunicateWithHost lk.salyk.kg:30040 [06:08:33]ConnectInit lk.salyk.kg [06:08:33]Connected sock=8 [06:08:33]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 29 01 00 00 20 82 21 01 53 05 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 31 35 36 32 30 38 35 32 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 9E D0 A0 D0 A2 D0 98 D0 A6 D0 AF 20 49 43 45 20 30 2C 35 30 4C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 EA 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9A C6 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 35 EB 85 32 9F 15 85 8A 22 5B 44 4C E3 6B [06:08:33]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 E3 6B 47 00 81 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 49 56 00 00 F4 03 04 00 2D 87 6B 66 B6 04 01 00 00 93 1E 04 64 B1 0B 5D B4 [06:08:33]CommunicateWithHost err = 0 [06:08:33]CheckOFDResponse [06:08:33]1017 (14) - 77093643461234 [06:08:33]1041 (16) - 0000000000965344 [06:08:33]1040 (4) - 22089 [06:08:33]1012 (4) - 13.06.2024 23:56 [06:08:33]1206 (1) - 0 [06:08:33]OFD Sender: Remove packet 22089 [06:08:33]ProducePacketName [06:08:33]name=ofd_packets/00022089 [06:08:33]NVStorageDeleteData [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:20]OFD Sender: No OFD packet to send [06:30:25]OFD Sender: No OFD packet to send [06:30:30]OFD Sender: No OFD packet to send [06:30:35]OFD Sender: No OFD packet to send [06:30:40]OFD Sender: No OFD packet to send [06:30:45]OFD Sender: No OFD packet to send [06:30:50]OFD Sender: No OFD packet to send [06:30:55]OFD Sender: No OFD packet to send [06:31:00]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32:30]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:52]recv_with_timeout no data received [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [07:05:50]ConnectInit Can't connect to host [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]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:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27: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:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:19]accept exits with 11 [07:38:19]New connection [07:38:19]New thread 3067178340 created [07:38:19]Thread 3067321700 joined [07:38:19]Waiting for new connection... [07:38:19] Sock 11.Parse request [07:38:19]Sock 11.Check first char [07:38:19]Sock 11.First char is OK [07:38:19]request: POST /json_proto HTTP/1.0 [07:38:19]Method: POST [07:38:19]URL: /json_proto [07:38:19]Method is POST - this is cgi request [07:38:19]url: /json_proto [07:38:19]query_string will be loaded in cgi processing [07:38:19]execute_cgi json_proto POST (null) [07:38:19]execute_cgi path=json_proto method=POST [07:38:19]POST find Content-Length [07:38:19]Host: 172.17.35.133:8080 [07:38:19]Content-Length: 688 [07:38:19]Content-Type: application/json [07:38:19] [07:38:19]POST finish read [07:38:19]Found Content-Length = 688 [07:38:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1609843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.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" ] } } [07:38:19]execute_script... [07:38: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)1609843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.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" ] } } [07:38:19]POST & json_proto [07:38:19]process_json_proto [07:38:19]json parsed OK: [07:38:19]protocol is kg_v1.0 [07:38:19]action value=close_receipt [07:38:19]process_action close_receipt [07:38:19]cmd_close_receipt [07:38:19]MH_GetDate [07:38:19]Write to MH i2c: F0 00 00 0D 31 2D [07:38:19]Write i2c OK [07:38:19]MH_I2C_Read... [07:38:19]Read from MH i2c: F0 [07:38:19]MH_I2C_Read... [07:38:19]Read from MH i2c: F0 09 00 [07:38:19]MH_I2C_Read... [07:38:19]Read from MH i2c: F0 09 00 0D 31 00 78 F3 6B 66 8C 55 28 65 E0 [07:38:19]GetLastDocTimeStamp 1718339226 [07:38:19]current date 1718350712 [07:38:19]FM_GetShiftState [07:38:19]SAM_PROTO_GetShiftState [07:38:19]wFMCommunicate request_size=4 [07:38:19]MH_SAM_APDU [07:38:19]CAPDU: 80 13 01 00 [07:38:19]Write to MH i2c: E2 08 00 0E 31 80 13 01 00 00 00 00 00 BC [07:38:19]Write i2c OK [07:38:19]MH_I2C_Read... [07:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:19]Read from MH i2c: E2 [07:38:19]MH_I2C_Read... [07:38:19]Read from MH i2c: E2 0E 00 [07:38:19]MH_I2C_Read... [07:38:19]Read from MH i2c: E2 0E 00 0E 31 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 2D [07:38:19]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [07:38:19]wFMCommunicate OK [07:38:19]SAM_PROTO_GetShiftState done [07:38:19]FM_GetShiftState done [07:38:19]opened in 1718324742 [07:38:19]opened+sec_in_day 1718411142 [07:38:19]quantity*price = 250042 [07:38:19]sum+1 = 250044 [07:38:19]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 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 4 14.06.2024 07:38 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22090 肖袩袛: 238916472701237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T073832&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22090&fm=238916472701237&tin=02508201610067®Number=0000000000099755&sum=250000 [07:38:20]StoreToDocumentArchive [07:38:20]shift 325 fd 22090 [07:38:20]save to /storage/0325/doc_00022090 [07:38:20]save last doc name /storage/0325/doc_00022090 to /storage/kkm_last_doc_name [07:38:20]save OK [07:38:20]Clear old archive folders... [07:38:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:38:20]tlvbuf is 0022A830 [07:38:20]SAM_PROTO_ClearQueue [07:38:20]wFMCommunicate request_size=4 [07:38:20]MH_SAM_APDU [07:38:20]CAPDU: 80 09 00 00 [07:38:20]Write to MH i2c: E2 08 00 1B 31 80 09 00 00 00 00 00 00 BE [07:38:20]Write i2c OK [07:38:20]MH_I2C_Read... [07:38:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:38:20]Read from MH i2c: E2 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 03 00 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 03 00 1B 31 00 90 00 C0 [07:38:20]RAPDU: 90 00 [07:38:20]wFMCommunicate OK [07:38:20]SAM_PROTO_ClearQueue done [07:38:20]KKMCreateOFDPacket [07:38:20]OFDProtocolAddRootSTLVToBuf [07:38:20]FM_MakeSignedData [07:38:20]FM_MakeSignedData [07:38:20]SAM_PROTO_SignData [07:38:20]wFMCommunicate request_size=4 [07:38:20]MH_SAM_APDU [07:38:20]CAPDU: 80 0D 01 02 [07:38:20]Write to MH i2c: E2 08 00 1C 31 80 0D 01 02 00 00 00 00 C6 [07:38:20]Write i2c OK [07:38:20]MH_I2C_Read... [07:38:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:38:20]Read from MH i2c: E2 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 03 00 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 03 00 1C 31 00 90 00 C1 [07:38:20]RAPDU: 90 00 [07:38:20]wFMCommunicate OK [07:38:20]wFMCommunicate request_size=255 [07:38:20]MH_SAM_APDU [07:38:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 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 04 00 00 00 F4 03 04 00 78 F3 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 [07:38:20]Write to MH i2c: E2 02 01 1D 31 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 04 00 00 00 F4 03 04 00 78 F3 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 00 00 9F [07:38:20]Write i2c OK [07:38:20]MH_I2C_Read... [07:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:20]Read from MH i2c: E2 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 03 00 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 03 00 1D 31 00 90 00 C2 [07:38:20]RAPDU: 90 00 [07:38:20]wFMCommunicate OK [07:38:20]wFMCommunicate request_size=11 [07:38:20]MH_SAM_APDU [07:38:20]CAPDU: 80 0D 02 02 06 D9 4B 13 7C 81 35 [07:38:20]Write to MH i2c: E2 0E 00 1E 31 80 0D 02 02 06 00 D9 4B 13 7C 81 35 00 00 3E [07:38:20]Write i2c OK [07:38:20]MH_I2C_Read... [07:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:21]Read from MH i2c: E2 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: E2 03 00 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: E2 03 00 1E 31 00 90 00 C3 [07:38:21]RAPDU: 90 00 [07:38:21]wFMCommunicate OK [07:38:21]wFMCommunicate request_size=4 [07:38:21]MH_SAM_APDU [07:38:21]CAPDU: 80 0D 03 02 [07:38:21]Write to MH i2c: E2 08 00 1F 31 80 0D 03 02 00 00 00 00 CB [07:38:21]Write i2c OK [07:38:21]MH_I2C_Read... [07:38:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:38:21]Read from MH i2c: E2 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: E2 0B 00 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: E2 0B 00 1F 31 00 EF B3 53 74 BC C0 D2 EC 90 00 6F [07:38:21]RAPDU: EF B3 53 74 BC C0 D2 EC 90 00 [07:38:21]wFMCommunicate OK [07:38:21]SAM_PROTO_SignData done [07:38:21]FM_MakeSignedData done [07:38:21]CreateOFDProtocolMessage [07:38:21]wFMCommunicate request_size=4 [07:38:21]MH_SAM_APDU [07:38:21]CAPDU: 80 11 00 00 [07:38:21]Write to MH i2c: E2 08 00 20 31 80 11 00 00 00 00 00 00 CB [07:38:21]Write i2c OK [07:38:21]MH_I2C_Read... [07:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:21]Read from MH i2c: E2 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: E2 17 00 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: E2 17 00 20 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 1D [07:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [07:38:21]wFMCommunicate OK [07:38:21]CreateOFDProtocolMessage done [07:38:21]OFDSenderStorePacket 22090 [07:38:21]StoreOFDPacket docnum=22090 [07:38: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 10 01 00 00 44 23 08 01 99 2C 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 04 00 00 00 F4 03 04 00 78 F3 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 D9 4B 13 7C 81 35 EF B3 53 74 BC C0 D2 EC [07:38:21]CheckFolder [07:38:21]dirname=/storage/ofd_packets [07:38:21]CheckFolder done [07:38:21]ProducePacketName [07:38:21]name=ofd_packets/00022090 [07:38:21]NVStorageSaveData ofd_packets/00022090 [07:38:21]File name is /storage/ofd_packets/00022090 [07:38:21]Write 302 bytes [07:38:21]NVStorageSaveData done [07:38:21]OFDSenderStorePacket done [07:38:21]KKMCreateOFDPacket done [07:38:21]NVStorageSaveData kkm_last_timestamp [07:38:21]File name is /storage/kkm_last_timestamp [07:38:21]Write 4 bytes [07:38:21]NVStorageSaveData done [07:38:21]ExternCall_PrintAddStr [07:38:21]wPrintStart [07:38:21]Write to MH i2c: 01 00 00 21 31 52 [07:38:21]Write i2c OK [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: 01 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: 01 07 00 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: 01 07 00 21 31 00 00 00 00 00 FF 0F 67 [07:38:21]RasterBufferAndPrint [07:38:21]line 小褔械褌 N : (1)1609843 [07:38:21]line 袠袧袧: 02508201610067 [07:38:21]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [07:38:21]line 袩袪袨袛袗袞袗 [07:38:21]line 孝袪袣 (袦袪袣, 袚袧袣) : 41 [07:38:21]line 孝芯胁邪褉: 2710194210 [07:38:21]line 袛孝(谢)-袣-4 [07:38:21]line 34.680 * 72.10 [07:38:21]line = 2500.43 [07:38:21]line 袧袛小 12% 袧小袩 1% [07:38:21]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [07:38:21]line 袨袣袪校袚袥袝袧袠袝: -0.43 [07:38:21]line 袠孝袨袚袨: 2500.00 [07:38:21]line 袙薪械褋械薪芯: 2500.00 [07:38:21]line 小袛袗效袗: 0.00 [07:38:21]line 袧小袩 1% : 22.13 [07:38:21]line 袧袛小 12% : 265.53 [07:38:21]line 袧邪谢懈褔薪褘屑懈: 2500.00 [07:38:21]line 袘械蟹薪邪谢.: 0.00 [07:38:21]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [07:38:21]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [07:38:21]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [07:38:21]line 效械泻 4 14.06.2024 07:38 [07:38:21]line 小屑械薪邪: 325 肖肖袛: 1.0 [07:38:21]line 袟袧袦: 0300000200 [07:38:21]line 袪袧袦: 0000000000099755 [07:38:21]line 袙械褉褋懈褟 袣袣袦: 001 [07:38:21]line 肖袦: 0000000000965344 [07:38:21]line 肖袛: 22090 [07:38:21]line 肖袩袛: 238916472701237 [07:38:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T073832&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22090&fm=238916472701237&tin=02508201610067®Number=0000000000099755&sum=250000 [07:38:21]OFD Sender: Processing packet 22090 [packets to send 5, broken 4] [07:38:21]ProducePacketName [07:38:21]name=ofd_packets/00022090 [07:38:21]OFD Sender: To server: 嚂鰌G, [07:38:21]CommunicateWithHost lk.salyk.kg:30040 [07:38:21]ConnectInit lk.salyk.kg [07:38:21]written 0, free lines is 4095 [07:38:21]Connected sock=9 [07:38: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 10 01 00 00 44 23 08 01 99 2C 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 04 00 00 00 F4 03 04 00 78 F3 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 D9 4B 13 7C 81 35 EF B3 53 74 BC C0 D2 EC [07:38: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 F9 9F 47 00 1F DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4A 56 00 00 F4 03 04 00 39 9C 6B 66 B6 04 01 00 00 66 2A AF BC 17 93 A2 8B [07:38:21]CommunicateWithHost err = 0 [07:38:21]CheckOFDResponse [07:38:21]1017 (14) - 77093643461234 [07:38:21]1041 (16) - 0000000000965344 [07:38:21]1040 (4) - 22090 [07:38:21]1012 (4) - 14.06.2024 01:26 [07:38:21]1206 (1) - 0 [07:38:21]OFD Sender: Remove packet 22090 [07:38:21]ProducePacketName [07:38:21]name=ofd_packets/00022090 [07:38:21]NVStorageDeleteData [07:38:21]Write to MH i2c: 01 00 00 4C 31 7D [07:38:21]Write i2c OK [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: 01 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: 01 07 00 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: 01 07 00 4C 31 00 00 00 00 00 FE 0C 8E [07:38:21]RasterBufferAndPrint [07:38:21]line [07:38:21]line [07:38:21]line [07:38:21]line [07:38:21]line [07:38:21]written 0, free lines is 3332 [07:38:21]MH_Cut [07:38:21]Write to MH i2c: D1 01 00 53 31 01 56 [07:38:21]Write i2c OK [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: D1 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: D1 01 00 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: D1 01 00 53 31 00 55 [07:38:21]Write to MH i2c: 01 00 00 54 31 85 [07:38:21]Write i2c OK [07:38:21]MH_I2C_Read... [07:38:22]OFD Sender: No OFD packet to send [07:38:22]*** Cut start [07:38:22]*** Partial cut [07:38:22]*** CUTSNS_PIN = 1 [07:38:22]*** CUTSNS_PIN = 0 [07:38:22]*** Brake cut motor [07:38:23]Read from MH i2c: 01 [07:38:23]MH_I2C_Read... [07:38:23]*** Stop cut motor [07:38:23]*** Cut end [07:38:23]Read from MH i2c: 01 07 00 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: 01 07 00 54 31 00 00 00 00 00 FF 0F 9A [07:38:23]process_action close_receipt done [07:38:23]requested_data is exist [07:38:23]produce_requested_data [07:38:23]requested_item fm.sn is exist - process it [07:38:23]wFMCommunicate request_size=4 [07:38:23]MH_SAM_APDU [07:38:23]CAPDU: 80 11 00 00 [07:38:23]Write to MH i2c: E2 08 00 55 31 80 11 00 00 00 00 00 00 00 [07:38:23]Write i2c OK [07:38:23]MH_I2C_Read... [07:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:23]Read from MH i2c: E2 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: E2 17 00 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: E2 17 00 55 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 52 [07:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [07:38:23]wFMCommunicate OK [07:38:23]requested_item fd.num is exist - process it [07:38:23]SAM_PROTO_GetFieldsCounters [07:38:23]wFMCommunicate request_size=4 [07:38:23]MH_SAM_APDU [07:38:23]CAPDU: 80 13 00 00 [07:38:23]Write to MH i2c: E2 08 00 56 31 80 13 00 00 00 00 00 00 03 [07:38:23]Write i2c OK [07:38:23]MH_I2C_Read... [07:38:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:38:23]Read from MH i2c: E2 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: E2 62 00 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: E2 62 00 56 31 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 56 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [07:38: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 4A 56 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:38:23]wFMCommunicate OK [07:38:23]SAM_PROTO_GetFieldsCounters done [07:38:23]requested_item shift.num is exist - process it [07:38:23]requested_item shift.opened is exist - process it [07:38:23]req_shift_opened [07:38:23]FM_GetShiftState [07:38:23]SAM_PROTO_GetShiftState [07:38:23]wFMCommunicate request_size=4 [07:38:23]MH_SAM_APDU [07:38:23]CAPDU: 80 13 01 00 [07:38:23]Write to MH i2c: E2 08 00 57 31 80 13 01 00 00 00 00 00 05 [07:38:23]Write i2c OK [07:38:23]MH_I2C_Read... [07:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:23]Read from MH i2c: E2 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: E2 0E 00 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: E2 0E 00 57 31 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 76 [07:38:23]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [07:38:23]wFMCommunicate OK [07:38:23]SAM_PROTO_GetShiftState done [07:38:23]FM_GetShiftState done [07:38:23]req_shift_opened done [07:38:23]requested_item shift.open_date is exist - process it [07:38:23]req_shift_open_date [07:38:23]req_shift_open_date done [07:38:23]produce_requested_data done [07:38:23]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22090,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [07:38:23]process_action_free close_receipt [07:38:23]json_value_free [07:38:23]json_value_free done [07:38:23]process_json_proto returns [07:38:23]Send response to host [07:38:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22090,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [07:38:23]free response buf [07:38:23]execute_script done [07:38:23]execute_script returns [07:38:23]free content buf [07:38:23]Sock 11.Close socket [07:38:23]Sock 11.Thread stoped [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]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:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:38]OFD Sender: No OFD packet to send [07:56:43]OFD Sender: No OFD packet to send [07:56:48]OFD Sender: No OFD packet to send [07:56:53]OFD Sender: No OFD packet to send [07:56:58]OFD Sender: No OFD packet to send [07:57:03]OFD Sender: No OFD packet to send [07:57:08]OFD Sender: No OFD packet to send [07:57:13]OFD Sender: No OFD packet to send [07:57:18]OFD Sender: No OFD packet to send [07:57:23]OFD Sender: No OFD packet to send [07:57:28]OFD Sender: No OFD packet to send [07:57:33]OFD Sender: No OFD packet to send [07:57:38]OFD Sender: No OFD packet to send [07:57:43]OFD Sender: No OFD packet to send [07:57:48]OFD Sender: No OFD packet to send [07:57:53]OFD Sender: No OFD packet to send [07:57:58]OFD Sender: No OFD packet to send [07:58:03]OFD Sender: No OFD packet to send [07:58:08]OFD Sender: No OFD packet to send [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:23]OFD Sender: No OFD packet to send [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [07:58:38]OFD Sender: No OFD packet to send [07:58:43]OFD Sender: No OFD packet to send [07:58:48]OFD Sender: No OFD packet to send [07:58:53]OFD Sender: No OFD packet to send [07:58:58]OFD Sender: No OFD packet to send [07:59:03]OFD Sender: No OFD packet to send [07:59:08]OFD Sender: No OFD packet to send [07:59:13]OFD Sender: No OFD packet to send [07:59:18]OFD Sender: No OFD packet to send [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:18]accept exits with 8 [08:00:18]New connection [08:00:18]New thread 3067321700 created [08:00:18]Thread 3067178340 joined [08:00:18]Waiting for new connection... [08:00:18] Sock 8.Parse request [08:00:18]Sock 8.Check first char [08:00:18]Sock 8.First char is OK [08:00:18]request: POST /json_proto HTTP/1.0 [08:00:18]Method: POST [08:00:18]URL: /json_proto [08:00:18]Method is POST - this is cgi request [08:00:18]url: /json_proto [08:00:18]query_string will be loaded in cgi processing [08:00:18]execute_cgi json_proto POST (null) [08:00:18]execute_cgi path=json_proto method=POST [08:00:18]POST find Content-Length [08:00:18]Host: 172.17.35.133:8080 [08:00:18]Content-Length: 974 [08:00:18]Content-Type: application/json [08:00:18] [08:00:18]POST finish read [08:00:18]Found Content-Length = 974 [08:00:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254314", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:18]execute_script... [08:00:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254314", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:18]POST & json_proto [08:00:18]process_json_proto [08:00:18]json parsed OK: [08:00:18]protocol is kg_v1.0 [08:00:18]action value=close_receipt [08:00:18]process_action close_receipt [08:00:18]cmd_close_receipt [08:00:18]MH_GetDate [08:00:18]Write to MH i2c: F0 00 00 58 31 78 [08:00:18]Write i2c OK [08:00:18]MH_I2C_Read... [08:00:18]Read from MH i2c: F0 [08:00:18]MH_I2C_Read... [08:00:18]Read from MH i2c: F0 09 00 [08:00:18]MH_I2C_Read... [08:00:18]Read from MH i2c: F0 09 00 58 31 00 9F F8 6B 66 8C 55 28 65 57 [08:00:18]GetLastDocTimeStamp 1718350712 [08:00:18]current date 1718352031 [08:00:18]FM_GetShiftState [08:00:18]SAM_PROTO_GetShiftState [08:00:18]wFMCommunicate request_size=4 [08:00:18]MH_SAM_APDU [08:00:18]CAPDU: 80 13 01 00 [08:00:18]Write to MH i2c: E2 08 00 59 31 80 13 01 00 00 00 00 00 07 [08:00:18]Write i2c OK [08:00:18]MH_I2C_Read... [08:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:18]Read from MH i2c: E2 [08:00:18]MH_I2C_Read... [08:00:18]Read from MH i2c: E2 0E 00 [08:00:18]MH_I2C_Read... [08:00:18]Read from MH i2c: E2 0E 00 59 31 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 78 [08:00:18]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [08:00:18]wFMCommunicate OK [08:00:18]SAM_PROTO_GetShiftState done [08:00:18]FM_GetShiftState done [08:00:18]opened in 1718324742 [08:00:18]opened+sec_in_day 1718411142 [08:00:18]quantity*price = 8500 [08:00:18]sum+1 = 8501 [08:00:18]Check (price>sum+1) || (price+1sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 2000036220012 袣芯褎械 袣邪锌褍褔懈薪芯 XL(GABB TRADE) 1.000 * 125.00 = 125.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 210.00 袧小袩 1% : 1.86 袧袛小 12% : 22.30 袧邪谢懈褔薪褘屑懈: 210.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 5 14.06.2024 08:00 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22091 肖袩袛: 82580376905282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T080031&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22091&fm=82580376905282&tin=02508201610067®Number=0000000000099755&sum=21000 0 [08:00:19]StoreToDocumentArchive [08:00:19]shift 325 fd 22091 [08:00:19]save to /storage/0325/doc_00022091 [08:00:19]save last doc name /storage/0325/doc_00022091 to /storage/kkm_last_doc_name [08:00:19]save OK [08:00:19]Clear old archive folders... [08:00:19]ProcessDocumentItem done err = 0, tmpTLVsize=414 [08:00:19]tlvbuf is 0029CDA0 [08:00:19]SAM_PROTO_ClearQueue [08:00:19]wFMCommunicate request_size=4 [08:00:19]MH_SAM_APDU [08:00:19]CAPDU: 80 09 00 00 [08:00:19]Write to MH i2c: E2 08 00 66 31 80 09 00 00 00 00 00 00 09 [08:00:19]Write i2c OK [08:00:19]MH_I2C_Read... [08:00:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:19]Read from MH i2c: E2 [08:00:19]MH_I2C_Read... [08:00:19]Read from MH i2c: E2 03 00 [08:00:19]MH_I2C_Read... [08:00:19]Read from MH i2c: E2 03 00 66 31 00 90 00 0B [08:00:19]RAPDU: 90 00 [08:00:19]wFMCommunicate OK [08:00:19]SAM_PROTO_ClearQueue done [08:00:19]KKMCreateOFDPacket [08:00:19]OFDProtocolAddRootSTLVToBuf [08:00:19]FM_MakeSignedData [08:00:19]FM_MakeSignedData [08:00:19]SAM_PROTO_SignData [08:00:19]wFMCommunicate request_size=4 [08:00:19]MH_SAM_APDU [08:00:19]CAPDU: 80 0D 01 02 [08:00:19]Write to MH i2c: E2 08 00 67 31 80 0D 01 02 00 00 00 00 11 [08:00:19]Write i2c OK [08:00:19]MH_I2C_Read... [08:00:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:19]Read from MH i2c: E2 [08:00:19]MH_I2C_Read... [08:00:19]Read from MH i2c: E2 03 00 [08:00:19]MH_I2C_Read... [08:00:19]Read from MH i2c: E2 03 00 67 31 00 90 00 0C [08:00:19]RAPDU: 90 00 [08:00:19]wFMCommunicate OK [08:00:19]wFMCommunicate request_size=255 [08:00:19]MH_SAM_APDU [08:00:19]CAPDU: 80 0D 02 02 FA 03 00 9E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 [08:00:19]Write to MH i2c: E2 02 01 68 31 80 0D 02 02 FA 00 03 00 9E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 00 00 20 [08:00:19]Write i2c OK [08:00:19]MH_I2C_Read... [08:00:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:20]Read from MH i2c: E2 [08:00:20]MH_I2C_Read... [08:00:20]Read from MH i2c: E2 03 00 [08:00:20]MH_I2C_Read... [08:00:20]Read from MH i2c: E2 03 00 68 31 00 90 00 0D [08:00:20]RAPDU: 90 00 [08:00:20]wFMCommunicate OK [08:00:20]wFMCommunicate request_size=173 [08:00:20]MH_SAM_APDU [08:00:20]CAPDU: 80 0D 02 02 A8 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 05 00 00 00 F4 03 04 00 9F F8 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 4B 1B 3E 07 E6 42 [08:00:20]Write to MH i2c: E2 B0 00 69 31 80 0D 02 02 A8 00 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 05 00 00 00 F4 03 04 00 9F F8 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 4B 1B 3E 07 E6 42 00 00 04 [08:00:20]Write i2c OK [08:00:20]MH_I2C_Read... [08:00:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:20]Read from MH i2c: E2 [08:00:20]MH_I2C_Read... [08:00:20]Read from MH i2c: E2 03 00 [08:00:20]MH_I2C_Read... [08:00:20]Read from MH i2c: E2 03 00 69 31 00 90 00 0E [08:00:20]RAPDU: 90 00 [08:00:20]wFMCommunicate OK [08:00:20]wFMCommunicate request_size=4 [08:00:20]MH_SAM_APDU [08:00:20]CAPDU: 80 0D 03 02 [08:00:20]Write to MH i2c: E2 08 00 6A 31 80 0D 03 02 00 00 00 00 16 [08:00:20]Write i2c OK [08:00:20]MH_I2C_Read... [08:00:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:20]Read from MH i2c: E2 [08:00:20]MH_I2C_Read... [08:00:20]Read from MH i2c: E2 0B 00 [08:00:20]MH_I2C_Read... [08:00:20]Read from MH i2c: E2 0B 00 6A 31 00 A2 14 EE 95 7F 92 11 A3 90 00 15 [08:00:20]RAPDU: A2 14 EE 95 7F 92 11 A3 90 00 [08:00:20]wFMCommunicate OK [08:00:20]SAM_PROTO_SignData done [08:00:20]FM_MakeSignedData done [08:00:20]CreateOFDProtocolMessage [08:00:20]wFMCommunicate request_size=4 [08:00:20]MH_SAM_APDU [08:00:20]CAPDU: 80 11 00 00 [08:00:20]Write to MH i2c: E2 08 00 6B 31 80 11 00 00 00 00 00 00 16 [08:00:20]Write i2c OK [08:00:20]MH_I2C_Read... [08:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:20]Read from MH i2c: E2 [08:00:20]MH_I2C_Read... [08:00:20]Read from MH i2c: E2 17 00 [08:00:20]MH_I2C_Read... [08:00:20]Read from MH i2c: E2 17 00 6B 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 68 [08:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:00:20]wFMCommunicate OK [08:00:20]CreateOFDProtocolMessage done [08:00:20]OFDSenderStorePacket 22091 [08:00:20]StoreOFDPacket docnum=22091 [08:00:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 B2 01 00 00 AA 74 AA 01 4B DE 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 05 00 00 00 F4 03 04 00 9F F8 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 4B 1B 3E 07 E6 42 A2 14 EE 95 7F 92 11 A3 [08:00:20]CheckFolder [08:00:20]dirname=/storage/ofd_packets [08:00:20]CheckFolder done [08:00:20]ProducePacketName [08:00:20]name=ofd_packets/00022091 [08:00:20]NVStorageSaveData ofd_packets/00022091 [08:00:20]File name is /storage/ofd_packets/00022091 [08:00:20]Write 464 bytes [08:00:20]NVStorageSaveData done [08:00:20]OFDSenderStorePacket done [08:00:20]KKMCreateOFDPacket done [08:00:20]NVStorageSaveData kkm_last_timestamp [08:00:20]File name is /storage/kkm_last_timestamp [08:00:20]Write 4 bytes [08:00:20]NVStorageSaveData done [08:00:20]ExternCall_PrintAddStr [08:00:20]wPrintStart [08:00:20]Write to MH i2c: 01 00 00 6C 31 9D [08:00:20]OFD Sender: Processing packet 22091 [packets to send 5, broken 4] [08:00:20]ProducePacketName [08:00:20]name=ofd_packets/00022091 [08:00:20]OFD Sender: To server: 嚂鰌G, [08:00:20]CommunicateWithHost lk.salyk.kg:30040 [08:00:20]ConnectInit lk.salyk.kg [08:00:20]Write i2c OK [08:00:20]MH_I2C_Read... [08:00:20]Read from MH i2c: 01 [08:00:20]MH_I2C_Read... [08:00:20]Read from MH i2c: 01 07 00 [08:00:20]MH_I2C_Read... [08:00:20]Read from MH i2c: 01 07 00 6C 31 00 00 00 00 00 FF 0F B2 [08:00:20]RasterBufferAndPrint [08:00:20]line 小褔械褌 N : (3)254314 [08:00:20]line 袠袧袧: 02508201610067 [08:00:20]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [08:00:20]line 袩袪袨袛袗袞袗 [08:00:20]line 孝芯胁邪褉: 4870001571030 [08:00:20]line 袙芯写邪 ASU 锌懈褌 薪.谐邪蟹 泻谢褍斜薪,泻懈胁懈 袩协孝 1谢 [08:00:20]line 1.000 * 85.00 [08:00:20]line = 85.00 [08:00:20]line 袧袛小 12% 袧小袩 1% [08:00:20]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [08:00:20]line 孝芯胁邪褉: 2000036220012 [08:00:20]line 袣芯褎械 袣邪锌褍褔懈薪芯 XL(GABB TRADE) [08:00:20]line 1.000 * 125.00 [08:00:20]line = 125.00 [08:00:20]line 袧袛小 12% 袧小袩 1% [08:00:20]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [08:00:20]line 袠孝袨袚袨: 210.00 [08:00:20]line 袧小袩 1% : 1.86 [08:00:20]line 袧袛小 12% : 22.30 [08:00:20]line 袧邪谢懈褔薪褘屑懈: 210.00 [08:00:20]line 袘械蟹薪邪谢.: 0.00 [08:00:20]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [08:00:20]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [08:00:20]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [08:00:20]line 效械泻 5 14.06.2024 08:00 [08:00:20]line 小屑械薪邪: 325 肖肖袛: 1.0 [08:00:20]line 袟袧袦: 0300000200 [08:00:20]line 袪袧袦: 0000000000099755 [08:00:20]line 袙械褉褋懈褟 袣袣袦: 001 [08:00:20]line 肖袦: 0000000000965344 [08:00:20]line 肖袛: 22091 [08:00:20]line 肖袩袛: 82580376905282 [08:00:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T080031&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22091&fm=82580376905282&tin=02508201610067®Number=0000000000099755&sum=21000 [08:00:20]line 0 [08:00:20]written 0, free lines is 4095 [08:00:21]Write to MH i2c: 01 00 00 9C 31 CD [08:00:21]Write i2c OK [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: 01 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: 01 07 00 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: 01 07 00 9C 31 00 00 00 00 00 AE 0C 8E [08:00:21]RasterBufferAndPrint [08:00:21]line [08:00:21]line [08:00:21]line [08:00:21]line [08:00:21]line [08:00:21]written 0, free lines is 3252 [08:00:21]MH_Cut [08:00:21]Write to MH i2c: D1 01 00 A3 31 01 A6 [08:00:21]Write i2c OK [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: D1 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: D1 01 00 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: D1 01 00 A3 31 00 A5 [08:00:21]Write to MH i2c: 01 00 00 A4 31 D5 [08:00:21]Write i2c OK [08:00:21]MH_I2C_Read... [08:00:21]*** Cut start [08:00:21]*** Partial cut [08:00:21]*** CUTSNS_PIN = 1 [08:00:22]*** CUTSNS_PIN = 0 [08:00:22]*** Brake cut motor [08:00:22]Read from MH i2c: 01 [08:00:22]MH_I2C_Read... [08:00:22]*** Stop cut motor [08:00:22]*** Cut end [08:00:22]Read from MH i2c: 01 07 00 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: 01 07 00 A4 31 00 00 00 00 00 FF 0F EA [08:00:22]process_action close_receipt done [08:00:22]requested_data is exist [08:00:22]produce_requested_data [08:00:22]requested_item fm.sn is exist - process it [08:00:22]wFMCommunicate request_size=4 [08:00:22]MH_SAM_APDU [08:00:22]CAPDU: 80 11 00 00 [08:00:22]Write to MH i2c: E2 08 00 A5 31 80 11 00 00 00 00 00 00 50 [08:00:22]Write i2c OK [08:00:22]MH_I2C_Read... [08:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:22]Read from MH i2c: E2 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 17 00 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 17 00 A5 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 A2 [08:00:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:00:22]wFMCommunicate OK [08:00:22]requested_item fd.num is exist - process it [08:00:22]SAM_PROTO_GetFieldsCounters [08:00:22]wFMCommunicate request_size=4 [08:00:22]MH_SAM_APDU [08:00:22]CAPDU: 80 13 00 00 [08:00:22]Write to MH i2c: E2 08 00 A6 31 80 13 00 00 00 00 00 00 53 [08:00:22]Write i2c OK [08:00:22]MH_I2C_Read... [08:00:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:22]Read from MH i2c: E2 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 62 00 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 62 00 A6 31 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 56 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [08:00:22]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 56 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:00:22]wFMCommunicate OK [08:00:22]SAM_PROTO_GetFieldsCounters done [08:00:22]requested_item shift.num is exist - process it [08:00:22]requested_item shift.opened is exist - process it [08:00:22]req_shift_opened [08:00:22]FM_GetShiftState [08:00:22]SAM_PROTO_GetShiftState [08:00:22]wFMCommunicate request_size=4 [08:00:22]MH_SAM_APDU [08:00:22]CAPDU: 80 13 01 00 [08:00:22]Write to MH i2c: E2 08 00 A7 31 80 13 01 00 00 00 00 00 55 [08:00:22]Write i2c OK [08:00:22]MH_I2C_Read... [08:00:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:22]Read from MH i2c: E2 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 0E 00 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 0E 00 A7 31 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 C6 [08:00:22]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [08:00:22]wFMCommunicate OK [08:00:22]SAM_PROTO_GetShiftState done [08:00:22]FM_GetShiftState done [08:00:22]req_shift_opened done [08:00:22]requested_item shift.open_date is exist - process it [08:00:22]req_shift_open_date [08:00:22]req_shift_open_date done [08:00:22]produce_requested_data done [08:00:22]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22091,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [08:00:22]process_action_free close_receipt [08:00:22]json_value_free [08:00:22]json_value_free done [08:00:22]process_json_proto returns [08:00:22]Send response to host [08:00:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22091,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [08:00:22]free response buf [08:00:22]execute_script done [08:00:22]execute_script returns [08:00:22]free content buf [08:00:22]Sock 8.Close socket [08:00:22]Sock 8.Thread stoped [08:02:32]ConnectInit Can't connect to host [08:02:32]CommunicateWithHost connect error [08:02:32]CommunicateWithHost err = -1 [08:02:32]OFD Sender: Server communicate error [08:02:37]OFD Sender: Processing packet 22091 [packets to send 5, broken 4] [08:02:37]ProducePacketName [08:02:37]name=ofd_packets/00022091 [08:02:37]OFD Sender: To server: 嚂鰌G, [08:02:37]CommunicateWithHost lk.salyk.kg:30040 [08:02:37]ConnectInit lk.salyk.kg [08:02:38]Connected sock=8 [08:02:38]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 B2 01 00 00 AA 74 AA 01 4B DE 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 05 00 00 00 F4 03 04 00 9F F8 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 4B 1B 3E 07 E6 42 A2 14 EE 95 7F 92 11 A3 [08:02:38]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 04 7C 47 00 82 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4B 56 00 00 F4 03 04 00 E9 A1 6B 66 B6 04 01 00 00 D9 9E 98 EC 6D 81 BD E6 [08:02:38]CommunicateWithHost err = 0 [08:02:38]CheckOFDResponse [08:02:38]1017 (14) - 77093643461234 [08:02:38]1041 (16) - 0000000000965344 [08:02:38]1040 (4) - 22091 [08:02:38]1012 (4) - 14.06.2024 01:50 [08:02:38]1206 (1) - 0 [08:02:38]OFD Sender: Remove packet 22091 [08:02:38]ProducePacketName [08:02:38]name=ofd_packets/00022091 [08:02:38]NVStorageDeleteData [08:02:38]OFD Sender: No OFD packet to send [08:02:43]OFD Sender: No OFD packet to send [08:02:48]OFD Sender: No OFD packet to send [08:02:53]OFD Sender: No OFD packet to send [08:02:58]OFD Sender: No OFD packet to send [08:03:03]OFD Sender: No OFD packet to send [08:03:08]OFD Sender: No OFD packet to send [08:03:13]OFD Sender: No OFD packet to send [08:03:18]OFD Sender: No OFD packet to send [08:03:23]OFD Sender: No OFD packet to send [08:03:28]OFD Sender: No OFD packet to send [08:03:33]OFD Sender: No OFD packet to send [08:03:38]OFD Sender: No OFD packet to send [08:03:43]OFD Sender: No OFD packet to send [08:03:48]OFD Sender: No OFD packet to send [08:03:53]OFD Sender: No OFD packet to send [08:03:58]OFD Sender: No OFD packet to send [08:04:03]OFD Sender: No OFD packet to send [08:04:08]OFD Sender: No OFD packet to send [08:04:13]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:39]accept exits with 9 [08:07:39]New connection [08:07:39]New thread 3067178340 created [08:07:39]Thread 3067321700 joined [08:07:39]Waiting for new connection... [08:07:39] Sock 9.Parse request [08:07:39]Sock 9.Check first char [08:07:39]Sock 9.First char is OK [08:07:39]request: POST /json_proto HTTP/1.0 [08:07:39]Method: POST [08:07:39]URL: /json_proto [08:07:39]Method is POST - this is cgi request [08:07:39]url: /json_proto [08:07:39]query_string will be loaded in cgi processing [08:07:39]execute_cgi json_proto POST (null) [08:07:39]execute_cgi path=json_proto method=POST [08:07:39]POST find Content-Length [08:07:39]Host: 172.17.35.133:8080 [08:07:39]Content-Length: 633 [08:07:39]Content-Type: application/json [08:07:39] [08:07:39]POST finish read [08:07:39]Found Content-Length = 633 [08:07:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254315", "tax_sys" : 0, "items" : [ { "code": "48746649", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims Winter F", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:39]execute_script... [08:07:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254315", "tax_sys" : 0, "items" : [ { "code": "48746649", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims Winter F", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:39]POST & json_proto [08:07:39]process_json_proto [08:07:39]json parsed OK: [08:07:39]protocol is kg_v1.0 [08:07:39]action value=close_receipt [08:07:39]process_action close_receipt [08:07:39]cmd_close_receipt [08:07:39]MH_GetDate [08:07:39]Write to MH i2c: F0 00 00 A8 31 C8 [08:07:39]Write i2c OK [08:07:39]MH_I2C_Read... [08:07:39]Read from MH i2c: F0 [08:07:39]MH_I2C_Read... [08:07:39]Read from MH i2c: F0 09 00 [08:07:39]MH_I2C_Read... [08:07:39]Read from MH i2c: F0 09 00 A8 31 00 58 FA 6B 66 8C 55 28 65 62 [08:07:39]GetLastDocTimeStamp 1718352031 [08:07:39]current date 1718352472 [08:07:39]FM_GetShiftState [08:07:39]SAM_PROTO_GetShiftState [08:07:39]wFMCommunicate request_size=4 [08:07:39]MH_SAM_APDU [08:07:39]CAPDU: 80 13 01 00 [08:07:39]Write to MH i2c: E2 08 00 A9 31 80 13 01 00 00 00 00 00 57 [08:07:39]Write i2c OK [08:07:39]MH_I2C_Read... [08:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:39]Read from MH i2c: E2 [08:07:39]MH_I2C_Read... [08:07:39]Read from MH i2c: E2 0E 00 [08:07:39]MH_I2C_Read... [08:07:39]Read from MH i2c: E2 0E 00 A9 31 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 C8 [08:07:39]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [08:07:39]wFMCommunicate OK [08:07:39]SAM_PROTO_GetShiftState done [08:07:39]FM_GetShiftState done [08:07:39]opened in 1718324742 [08:07:39]opened+sec_in_day 1718411142 [08:07:39]quantity*price = 13800 [08:07:39]sum+1 = 13801 [08:07:39]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 138.00 袧小袩 1% : 1.22 袧袛小 12% : 14.65 袧邪谢懈褔薪褘屑懈: 138.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 6 14.06.2024 08:07 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22092 肖袩袛: 245307595696189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T080752&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22092&fm=245307595696189&tin=02508201610067®Number=0000000000099755&sum=13800 0 [08:07:40]StoreToDocumentArchive [08:07:40]shift 325 fd 22092 [08:07:40]save to /storage/0325/doc_00022092 [08:07:40]save last doc name /storage/0325/doc_00022092 to /storage/kkm_last_doc_name [08:07:40]save OK [08:07:40]Clear old archive folders... [08:07:40]ProcessDocumentItem done err = 0, tmpTLVsize=285 [08:07:40]tlvbuf is 0032EA60 [08:07:40]SAM_PROTO_ClearQueue [08:07:40]wFMCommunicate request_size=4 [08:07:40]MH_SAM_APDU [08:07:40]CAPDU: 80 09 00 00 [08:07:40]Write to MH i2c: E2 08 00 B6 31 80 09 00 00 00 00 00 00 59 [08:07:40]Write i2c OK [08:07:40]MH_I2C_Read... [08:07:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:40]Read from MH i2c: E2 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: E2 03 00 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: E2 03 00 B6 31 00 90 00 5B [08:07:40]RAPDU: 90 00 [08:07:40]wFMCommunicate OK [08:07:40]SAM_PROTO_ClearQueue done [08:07:40]KKMCreateOFDPacket [08:07:40]OFDProtocolAddRootSTLVToBuf [08:07:40]FM_MakeSignedData [08:07:40]FM_MakeSignedData [08:07:40]SAM_PROTO_SignData [08:07:40]wFMCommunicate request_size=4 [08:07:40]MH_SAM_APDU [08:07:40]CAPDU: 80 0D 01 02 [08:07:40]Write to MH i2c: E2 08 00 B7 31 80 0D 01 02 00 00 00 00 61 [08:07:40]Write i2c OK [08:07:40]MH_I2C_Read... [08:07:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:40]Read from MH i2c: E2 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: E2 03 00 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: E2 03 00 B7 31 00 90 00 5C [08:07:40]RAPDU: 90 00 [08:07:40]wFMCommunicate OK [08:07:40]wFMCommunicate request_size=255 [08:07:40]MH_SAM_APDU [08:07:40]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 36 34 39 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 20 57 69 6E 74 65 72 20 46 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 58 FA 6B 66 0E 04 04 00 45 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 [08:07:40]Write to MH i2c: E2 02 01 B8 31 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 36 34 39 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 20 57 69 6E 74 65 72 20 46 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 58 FA 6B 66 0E 04 04 00 45 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 00 00 57 [08:07:40]Write i2c OK [08:07:40]MH_I2C_Read... [08:07:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:40]Read from MH i2c: E2 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: E2 03 00 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: E2 03 00 B8 31 00 90 00 5D [08:07:40]RAPDU: 90 00 [08:07:40]wFMCommunicate OK [08:07:40]wFMCommunicate request_size=44 [08:07:40]MH_SAM_APDU [08:07:40]CAPDU: 80 0D 02 02 27 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 56 00 00 35 04 06 00 DF 1B 20 1A 28 3D [08:07:40]Write to MH i2c: E2 2F 00 B9 31 80 0D 02 02 27 00 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 56 00 00 35 04 06 00 DF 1B 20 1A 28 3D 00 00 BD [08:07:40]Write i2c OK [08:07:40]MH_I2C_Read... [08:07:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:40]Read from MH i2c: E2 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: E2 03 00 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: E2 03 00 B9 31 00 90 00 5E [08:07:40]RAPDU: 90 00 [08:07:40]wFMCommunicate OK [08:07:40]wFMCommunicate request_size=4 [08:07:40]MH_SAM_APDU [08:07:40]CAPDU: 80 0D 03 02 [08:07:40]Write to MH i2c: E2 08 00 BA 31 80 0D 03 02 00 00 00 00 66 [08:07:40]Write i2c OK [08:07:40]MH_I2C_Read... [08:07:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:40]Read from MH i2c: E2 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: E2 0B 00 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: E2 0B 00 BA 31 00 61 68 89 A9 A1 B6 89 9E 90 00 E0 [08:07:40]RAPDU: 61 68 89 A9 A1 B6 89 9E 90 00 [08:07:40]wFMCommunicate OK [08:07:40]SAM_PROTO_SignData done [08:07:40]FM_MakeSignedData done [08:07:40]CreateOFDProtocolMessage [08:07:40]wFMCommunicate request_size=4 [08:07:40]MH_SAM_APDU [08:07:40]CAPDU: 80 11 00 00 [08:07:40]Write to MH i2c: E2 08 00 BB 31 80 11 00 00 00 00 00 00 66 [08:07:40]Write i2c OK [08:07:40]MH_I2C_Read... [08:07:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:41]Read from MH i2c: E2 [08:07:41]MH_I2C_Read... [08:07:41]Read from MH i2c: E2 17 00 [08:07:41]MH_I2C_Read... [08:07:41]Read from MH i2c: E2 17 00 BB 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 B8 [08:07:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:07:41]wFMCommunicate OK [08:07:41]CreateOFDProtocolMessage done [08:07:41]OFDSenderStorePacket 22092 [08:07:41]StoreOFDPacket docnum=22092 [08:07:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 31 01 00 00 71 2F 29 01 B5 70 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 36 34 39 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 20 57 69 6E 74 65 72 20 46 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 58 FA 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 DF 1B 20 1A 28 3D 61 68 89 A9 A1 B6 89 9E [08:07:41]CheckFolder [08:07:41]dirname=/storage/ofd_packets [08:07:41]CheckFolder done [08:07:41]ProducePacketName [08:07:41]name=ofd_packets/00022092 [08:07:41]NVStorageSaveData ofd_packets/00022092 [08:07:41]File name is /storage/ofd_packets/00022092 [08:07:41]Write 335 bytes [08:07:41]NVStorageSaveData done [08:07:41]OFDSenderStorePacket done [08:07:41]KKMCreateOFDPacket done [08:07:41]NVStorageSaveData kkm_last_timestamp [08:07:41]File name is /storage/kkm_last_timestamp [08:07:41]Write 4 bytes [08:07:41]NVStorageSaveData done [08:07:41]ExternCall_PrintAddStr [08:07:41]wPrintStart [08:07:41]Write to MH i2c: 01 00 00 BC 31 ED [08:07:41]Write i2c OK [08:07:41]MH_I2C_Read... [08:07:41]Read from MH i2c: 01 [08:07:41]MH_I2C_Read... [08:07:41]Read from MH i2c: 01 07 00 [08:07:41]MH_I2C_Read... [08:07:41]Read from MH i2c: 01 07 00 BC 31 00 00 00 00 00 FF 0F 02 [08:07:41]RasterBufferAndPrint [08:07:41]line 小褔械褌 N : (3)254315 [08:07:41]line 袠袧袧: 02508201610067 [08:07:41]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [08:07:41]line 袩袪袨袛袗袞袗 [08:07:41]line 孝芯胁邪褉: 48746649 [08:07:41]line 小懈谐邪褉械褌褘 Parliament Super Slims Winter F [08:07:41]line 1.000 * 138.00 [08:07:41]line = 138.00 [08:07:41]line 袧袛小 12% 袧小袩 1% [08:07:41]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [08:07:41]line 袠孝袨袚袨: 138.00 [08:07:41]line 袧小袩 1% : 1.22 [08:07:41]line 袧袛小 12% : 14.65 [08:07:41]line 袧邪谢懈褔薪褘屑懈: 138.00 [08:07:41]line 袘械蟹薪邪谢.: 0.00 [08:07:41]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [08:07:41]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [08:07:41]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [08:07:41]line 效械泻 6 14.06.2024 08:07 [08:07:41]line 小屑械薪邪: 325 肖肖袛: 1.0 [08:07:41]line 袟袧袦: 0300000200 [08:07:41]line 袪袧袦: 0000000000099755 [08:07:41]line 袙械褉褋懈褟 袣袣袦: 001 [08:07:41]line 肖袦: 0000000000965344 [08:07:41]line 肖袛: 22092 [08:07:41]line 肖袩袛: 245307595696189 [08:07:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T080752&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22092&fm=245307595696189&tin=02508201610067®Number=0000000000099755&sum=13800 [08:07:41]line 0 [08:07:41]OFD Sender: Processing packet 22092 [packets to send 5, broken 4] [08:07:41]ProducePacketName [08:07:41]name=ofd_packets/00022092 [08:07:41]OFD Sender: To server: 嚂鰌G, [08:07:41]CommunicateWithHost lk.salyk.kg:30040 [08:07:41]ConnectInit lk.salyk.kg [08:07:41]written 0, free lines is 4095 [08:07:41]Connected sock=8 [08:07: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 31 01 00 00 71 2F 29 01 B5 70 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 36 34 39 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 20 57 69 6E 74 65 72 20 46 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 58 FA 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 DF 1B 20 1A 28 3D 61 68 89 A9 A1 B6 89 9E [08:07: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 90 44 47 00 AD 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4C 56 00 00 F4 03 04 00 19 A3 6B 66 B6 04 01 00 00 51 E4 7D 5C 2A B4 2B 9F [08:07:41]CommunicateWithHost err = 0 [08:07:41]CheckOFDResponse [08:07:41]1017 (14) - 77093643461234 [08:07:41]1041 (16) - 0000000000965344 [08:07:41]1040 (4) - 22092 [08:07:41]1012 (4) - 14.06.2024 01:55 [08:07:41]1206 (1) - 0 [08:07:41]OFD Sender: Remove packet 22092 [08:07:41]ProducePacketName [08:07:41]name=ofd_packets/00022092 [08:07:41]NVStorageDeleteData [08:07:41]Write to MH i2c: 01 00 00 E5 31 16 [08:07:41]Write i2c OK [08:07:41]MH_I2C_Read... [08:07:41]Read from MH i2c: 01 [08:07:41]MH_I2C_Read... [08:07:41]Read from MH i2c: 01 07 00 [08:07:41]MH_I2C_Read... [08:07:41]Read from MH i2c: 01 07 00 E5 31 00 00 00 00 00 04 0D 2E [08:07:41]RasterBufferAndPrint [08:07:41]line [08:07:41]line [08:07:41]line [08:07:41]line [08:07:41]line [08:07:41]written 0, free lines is 3341 [08:07:41]MH_Cut [08:07:41]Write to MH i2c: D1 01 00 EC 31 01 EF [08:07:41]Write i2c OK [08:07:41]MH_I2C_Read... [08:07:41]Read from MH i2c: D1 [08:07:41]MH_I2C_Read... [08:07:41]Read from MH i2c: D1 01 00 [08:07:41]MH_I2C_Read... [08:07:41]Read from MH i2c: D1 01 00 EC 31 00 EE [08:07:41]Write to MH i2c: 01 00 00 ED 31 1E [08:07:41]Write i2c OK [08:07:41]MH_I2C_Read... [08:07:42]OFD Sender: No OFD packet to send [08:07:42]*** Cut start [08:07:42]*** Partial cut [08:07:42]*** CUTSNS_PIN = 1 [08:07:42]*** CUTSNS_PIN = 0 [08:07:42]*** Brake cut motor [08:07:43]Read from MH i2c: 01 [08:07:43]MH_I2C_Read... [08:07:43]*** Stop cut motor [08:07:43]*** Cut end [08:07:43]Read from MH i2c: 01 07 00 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: 01 07 00 ED 31 00 00 00 00 00 FF 0F 33 [08:07:43]process_action close_receipt done [08:07:43]requested_data is exist [08:07:43]produce_requested_data [08:07:43]requested_item fm.sn is exist - process it [08:07:43]wFMCommunicate request_size=4 [08:07:43]MH_SAM_APDU [08:07:43]CAPDU: 80 11 00 00 [08:07:43]Write to MH i2c: E2 08 00 EE 31 80 11 00 00 00 00 00 00 99 [08:07:43]Write i2c OK [08:07:43]MH_I2C_Read... [08:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:43]Read from MH i2c: E2 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: E2 17 00 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: E2 17 00 EE 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 EB [08:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:07:43]wFMCommunicate OK [08:07:43]requested_item fd.num is exist - process it [08:07:43]SAM_PROTO_GetFieldsCounters [08:07:43]wFMCommunicate request_size=4 [08:07:43]MH_SAM_APDU [08:07:43]CAPDU: 80 13 00 00 [08:07:43]Write to MH i2c: E2 08 00 EF 31 80 13 00 00 00 00 00 00 9C [08:07:43]Write i2c OK [08:07:43]MH_I2C_Read... [08:07:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:43]Read from MH i2c: E2 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: E2 62 00 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: E2 62 00 EF 31 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 56 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [08:07:43]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 56 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:43]wFMCommunicate OK [08:07:43]SAM_PROTO_GetFieldsCounters done [08:07:43]requested_item shift.num is exist - process it [08:07:43]requested_item shift.opened is exist - process it [08:07:43]req_shift_opened [08:07:43]FM_GetShiftState [08:07:43]SAM_PROTO_GetShiftState [08:07:43]wFMCommunicate request_size=4 [08:07:43]MH_SAM_APDU [08:07:43]CAPDU: 80 13 01 00 [08:07:43]Write to MH i2c: E2 08 00 F0 31 80 13 01 00 00 00 00 00 9E [08:07:43]Write i2c OK [08:07:43]MH_I2C_Read... [08:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:43]Read from MH i2c: E2 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: E2 0E 00 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: E2 0E 00 F0 31 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 0F [08:07:43]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [08:07:43]wFMCommunicate OK [08:07:43]SAM_PROTO_GetShiftState done [08:07:43]FM_GetShiftState done [08:07:43]req_shift_opened done [08:07:43]requested_item shift.open_date is exist - process it [08:07:43]req_shift_open_date [08:07:43]req_shift_open_date done [08:07:43]produce_requested_data done [08:07:43]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22092,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [08:07:43]process_action_free close_receipt [08:07:43]json_value_free [08:07:43]json_value_free done [08:07:43]process_json_proto returns [08:07:43]Send response to host [08:07:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22092,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [08:07:43]free response buf [08:07:43]execute_script done [08:07:43]execute_script returns [08:07:43]free content buf [08:07:43]Sock 9.Close socket [08:07:43]Sock 9.Thread stoped [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:03]accept exits with 10 [08:09:03]New connection [08:09:03]New thread 3067321700 created [08:09:03]Thread 3067178340 joined [08:09:03]Waiting for new connection... [08:09:03] Sock 10.Parse request [08:09:03]Sock 10.Check first char [08:09:03]Sock 10.First char is OK [08:09:03]request: POST /json_proto HTTP/1.0 [08:09:03]Method: POST [08:09:03]URL: /json_proto [08:09:03]Method is POST - this is cgi request [08:09:03]url: /json_proto [08:09:03]query_string will be loaded in cgi processing [08:09:03]execute_cgi json_proto POST (null) [08:09:03]execute_cgi path=json_proto method=POST [08:09:03]POST find Content-Length [08:09:03]Host: 172.17.35.133:8080 [08:09:03]Content-Length: 960 [08:09:03]Content-Type: application/json [08:09:03] [08:09:03]POST finish read [08:09:03]Found Content-Length = 960 [08:09:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254316", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 204.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:03]execute_script... [08:09: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)254316", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 204.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:03]POST & json_proto [08:09:03]process_json_proto [08:09:03]json parsed OK: [08:09:03]protocol is kg_v1.0 [08:09:03]action value=close_receipt [08:09:03]process_action close_receipt [08:09:03]cmd_close_receipt [08:09:03]MH_GetDate [08:09:03]Write to MH i2c: F0 00 00 F1 31 11 [08:09:03]Write i2c OK [08:09:03]MH_I2C_Read... [08:09:03]Read from MH i2c: F0 [08:09:03]MH_I2C_Read... [08:09:03]Read from MH i2c: F0 09 00 [08:09:03]MH_I2C_Read... [08:09:03]Read from MH i2c: F0 09 00 F1 31 00 AC FA 6B 66 8C 55 28 65 FF [08:09:03]GetLastDocTimeStamp 1718352472 [08:09:03]current date 1718352556 [08:09:03]FM_GetShiftState [08:09:03]SAM_PROTO_GetShiftState [08:09:03]wFMCommunicate request_size=4 [08:09:03]MH_SAM_APDU [08:09:03]CAPDU: 80 13 01 00 [08:09:03]Write to MH i2c: E2 08 00 F2 31 80 13 01 00 00 00 00 00 A0 [08:09:03]Write i2c OK [08:09:03]MH_I2C_Read... [08:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:03]Read from MH i2c: E2 [08:09:03]MH_I2C_Read... [08:09:03]Read from MH i2c: E2 0E 00 [08:09:03]MH_I2C_Read... [08:09:03]Read from MH i2c: E2 0E 00 F2 31 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 11 [08:09:03]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [08:09:03]wFMCommunicate OK [08:09:03]SAM_PROTO_GetShiftState done [08:09:03]FM_GetShiftState done [08:09:03]opened in 1718324742 [08:09:03]opened+sec_in_day 1718411142 [08:09:03]quantity*price = 11500 [08:09:03]sum+1 = 11501 [08:09:03]Check (price>sum+1) || (price+1sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 5000159390729 楔芯泻 袘邪褌芯薪褔懈泻 孝胁懈泻褋 协泻褋褌褉邪 82谐 1.000 * 89.00 = 89.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 204.00 袧小袩 1% : 1.81 袧袛小 12% : 21.66 袧邪谢懈褔薪褘屑懈: 204.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 7 14.06.2024 08:09 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22093 肖袩袛: 247943874060086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T080916&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22093&fm=247943874060086&tin=02508201610067®Number=0000000000099755&sum=20400 0 [08:09:04]StoreToDocumentArchive [08:09:04]shift 325 fd 22093 [08:09:04]save to /storage/0325/doc_00022093 [08:09:04]save last doc name /storage/0325/doc_00022093 to /storage/kkm_last_doc_name [08:09:04]save OK [08:09:04]Clear old archive folders... [08:09:04]ProcessDocumentItem done err = 0, tmpTLVsize=404 [08:09:04]tlvbuf is B6F34700 [08:09:04]SAM_PROTO_ClearQueue [08:09:04]wFMCommunicate request_size=4 [08:09:04]MH_SAM_APDU [08:09:04]CAPDU: 80 09 00 00 [08:09:04]Write to MH i2c: E2 08 00 FF 31 80 09 00 00 00 00 00 00 A2 [08:09:04]Write i2c OK [08:09:04]MH_I2C_Read... [08:09:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:04]Read from MH i2c: E2 [08:09:04]MH_I2C_Read... [08:09:04]Read from MH i2c: E2 03 00 [08:09:04]MH_I2C_Read... [08:09:04]Read from MH i2c: E2 03 00 FF 31 00 90 00 A4 [08:09:04]RAPDU: 90 00 [08:09:04]wFMCommunicate OK [08:09:04]SAM_PROTO_ClearQueue done [08:09:04]KKMCreateOFDPacket [08:09:04]OFDProtocolAddRootSTLVToBuf [08:09:04]FM_MakeSignedData [08:09:04]FM_MakeSignedData [08:09:04]SAM_PROTO_SignData [08:09:04]wFMCommunicate request_size=4 [08:09:04]MH_SAM_APDU [08:09:04]CAPDU: 80 0D 01 02 [08:09:04]Write to MH i2c: E2 08 00 00 32 80 0D 01 02 00 00 00 00 AB [08:09:04]Write i2c OK [08:09:04]MH_I2C_Read... [08:09:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:04]Read from MH i2c: E2 [08:09:04]MH_I2C_Read... [08:09:04]Read from MH i2c: E2 03 00 [08:09:04]MH_I2C_Read... [08:09:04]Read from MH i2c: E2 03 00 00 32 00 90 00 A6 [08:09:04]RAPDU: 90 00 [08:09:04]wFMCommunicate OK [08:09:04]wFMCommunicate request_size=255 [08:09:04]MH_SAM_APDU [08:09:04]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 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 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 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 [08:09:04]Write to MH i2c: E2 02 01 01 32 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 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 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 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 BC [08:09:04]Write i2c OK [08:09:04]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 [08:09:05]MH_I2C_Read... [08:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:05]Read from MH i2c: E2 03 00 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 03 00 01 32 00 90 00 A7 [08:09:05]RAPDU: 90 00 [08:09:05]wFMCommunicate OK [08:09:05]wFMCommunicate request_size=163 [08:09:05]MH_SAM_APDU [08:09:05]CAPDU: 80 0D 02 02 9E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 B0 4F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 AC FA 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 E1 80 EE 89 9F 36 [08:09:05]Write to MH i2c: E2 A6 00 02 32 80 0D 02 02 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 B0 4F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 AC FA 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 E1 80 EE 89 9F 36 00 00 76 [08:09:05]Write i2c OK [08:09:05]MH_I2C_Read... [08:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:05]Read from MH i2c: E2 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 03 00 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 03 00 02 32 00 90 00 A8 [08:09:05]RAPDU: 90 00 [08:09:05]wFMCommunicate OK [08:09:05]wFMCommunicate request_size=4 [08:09:05]MH_SAM_APDU [08:09:05]CAPDU: 80 0D 03 02 [08:09:05]Write to MH i2c: E2 08 00 03 32 80 0D 03 02 00 00 00 00 B0 [08:09:05]Write i2c OK [08:09:05]MH_I2C_Read... [08:09:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:05]Read from MH i2c: E2 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 0B 00 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 0B 00 03 32 00 F5 C7 08 B9 75 07 0F 96 90 00 4F [08:09:05]RAPDU: F5 C7 08 B9 75 07 0F 96 90 00 [08:09:05]wFMCommunicate OK [08:09:05]SAM_PROTO_SignData done [08:09:05]FM_MakeSignedData done [08:09:05]CreateOFDProtocolMessage [08:09:05]wFMCommunicate request_size=4 [08:09:05]MH_SAM_APDU [08:09:05]CAPDU: 80 11 00 00 [08:09:05]Write to MH i2c: E2 08 00 04 32 80 11 00 00 00 00 00 00 B0 [08:09:05]Write i2c OK [08:09:05]MH_I2C_Read... [08:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:05]Read from MH i2c: E2 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 17 00 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: E2 17 00 04 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 02 [08:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:09:05]wFMCommunicate OK [08:09:05]CreateOFDProtocolMessage done [08:09:05]OFDSenderStorePacket 22093 [08:09:05]StoreOFDPacket docnum=22093 [08:09: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 A8 01 00 00 F4 D8 A0 01 4E B5 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 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 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 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 B0 4F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 AC FA 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 E1 80 EE 89 9F 36 F5 C7 08 B9 75 07 0F 96 [08:09:05]CheckFolder [08:09:05]dirname=/storage/ofd_packets [08:09:05]CheckFolder done [08:09:05]ProducePacketName [08:09:05]name=ofd_packets/00022093 [08:09:05]NVStorageSaveData ofd_packets/00022093 [08:09:05]File name is /storage/ofd_packets/00022093 [08:09:05]Write 454 bytes [08:09:05]NVStorageSaveData done [08:09:05]OFDSenderStorePacket done [08:09:05]KKMCreateOFDPacket done [08:09:05]NVStorageSaveData kkm_last_timestamp [08:09:05]File name is /storage/kkm_last_timestamp [08:09:05]Write 4 bytes [08:09:05]NVStorageSaveData done [08:09:05]ExternCall_PrintAddStr [08:09:05]wPrintStart [08:09:05]Write to MH i2c: 01 00 00 05 32 37 [08:09:05]Write i2c OK [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: 01 [08:09:05]MH_I2C_Read... [08:09:05]OFD Sender: Processing packet 22093 [packets to send 5, broken 4] [08:09:05]ProducePacketName [08:09:05]name=ofd_packets/00022093 [08:09:05]OFD Sender: To server: 嚂鰌G, [08:09:05]CommunicateWithHost lk.salyk.kg:30040 [08:09:05]ConnectInit lk.salyk.kg [08:09:05]Read from MH i2c: 01 07 00 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: 01 07 00 05 32 00 00 00 00 00 FF 0F 4C [08:09:05]RasterBufferAndPrint [08:09:05]line 小褔械褌 N : (3)254316 [08:09:05]line 袠袧袧: 02508201610067 [08:09:05]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [08:09:05]line 袩袪袨袛袗袞袗 [08:09:05]line 孝芯胁邪褉: 2000036210013 [08:09:05]line 袣芯褎械 袣邪锌褍褔懈薪芯 (GABB TRADE) [08:09:05]line 1.000 * 115.00 [08:09:05]line = 115.00 [08:09:05]line 袧袛小 12% 袧小袩 1% [08:09:05]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [08:09:05]line 孝芯胁邪褉: 5000159390729 [08:09:05]line 楔芯泻 袘邪褌芯薪褔懈泻 孝胁懈泻褋 协泻褋褌褉邪 82谐 [08:09:05]line 1.000 * 89.00 [08:09:05]line = 89.00 [08:09:05]line 袧袛小 12% 袧小袩 1% [08:09:05]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [08:09:05]line 袠孝袨袚袨: 204.00 [08:09:05]line 袧小袩 1% : 1.81 [08:09:05]line 袧袛小 12% : 21.66 [08:09:05]line 袧邪谢懈褔薪褘屑懈: 204.00 [08:09:05]line 袘械蟹薪邪谢.: 0.00 [08:09:05]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [08:09:05]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [08:09:05]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [08:09:05]line 效械泻 7 14.06.2024 08:09 [08:09:05]line 小屑械薪邪: 325 肖肖袛: 1.0 [08:09:05]line 袟袧袦: 0300000200 [08:09:05]line 袪袧袦: 0000000000099755 [08:09:05]line 袙械褉褋懈褟 袣袣袦: 001 [08:09:05]line 肖袦: 0000000000965344 [08:09:05]line 肖袛: 22093 [08:09:05]line 肖袩袛: 247943874060086 [08:09:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T080916&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22093&fm=247943874060086&tin=02508201610067®Number=0000000000099755&sum=20400 [08:09:05]line 0 [08:09:05]written 0, free lines is 4095 [08:09:05]Connected sock=9 [08:09: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 A8 01 00 00 F4 D8 A0 01 4E B5 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 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 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 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 B0 4F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 AC FA 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 E1 80 EE 89 9F 36 F5 C7 08 B9 75 07 0F 96 [08:09: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 50 DD 47 00 D5 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4D 56 00 00 F4 03 04 00 6D A3 6B 66 B6 04 01 00 00 D8 CC 52 21 12 E9 05 C1 [08:09:05]CommunicateWithHost err = 0 [08:09:05]CheckOFDResponse [08:09:05]1017 (14) - 77093643461234 [08:09:05]1041 (16) - 0000000000965344 [08:09:05]1040 (4) - 22093 [08:09:05]1012 (4) - 14.06.2024 01:57 [08:09:05]1206 (1) - 0 [08:09:05]OFD Sender: Remove packet 22093 [08:09:05]ProducePacketName [08:09:05]name=ofd_packets/00022093 [08:09:05]NVStorageDeleteData [08:09:06]Write to MH i2c: 01 00 00 34 32 66 [08:09:06]Write i2c OK [08:09:06]MH_I2C_Read... [08:09:06]Read from MH i2c: 01 [08:09:06]MH_I2C_Read... [08:09:06]Read from MH i2c: 01 07 00 [08:09:06]MH_I2C_Read... [08:09:06]Read from MH i2c: 01 07 00 34 32 00 00 00 00 00 DD 0C 56 [08:09:06]RasterBufferAndPrint [08:09:06]line [08:09:06]line [08:09:06]line [08:09:06]line [08:09:06]line [08:09:06]written 0, free lines is 3300 [08:09:06]MH_Cut [08:09:06]Write to MH i2c: D1 01 00 3B 32 01 3F [08:09:06]Write i2c OK [08:09:06]MH_I2C_Read... [08:09:06]Read from MH i2c: D1 [08:09:06]MH_I2C_Read... [08:09:06]Read from MH i2c: D1 01 00 [08:09:06]MH_I2C_Read... [08:09:06]Read from MH i2c: D1 01 00 3B 32 00 3E [08:09:06]Write to MH i2c: 01 00 00 3C 32 6E [08:09:06]Write i2c OK [08:09:06]MH_I2C_Read... [08:09:06]OFD Sender: No OFD packet to send [08:09:06]*** Cut start [08:09:06]*** Partial cut [08:09:06]*** CUTSNS_PIN = 1 [08:09:06]*** CUTSNS_PIN = 0 [08:09:07]*** Brake cut motor [08:09:07]Read from MH i2c: 01 [08:09:07]MH_I2C_Read... [08:09:07]*** Stop cut motor [08:09:07]*** Cut end [08:09:07]Read from MH i2c: 01 07 00 [08:09:07]MH_I2C_Read... [08:09:07]Read from MH i2c: 01 07 00 3C 32 00 00 00 00 00 FF 0F 83 [08:09:07]process_action close_receipt done [08:09:07]requested_data is exist [08:09:07]produce_requested_data [08:09:07]requested_item fm.sn is exist - process it [08:09:07]wFMCommunicate request_size=4 [08:09:07]MH_SAM_APDU [08:09:07]CAPDU: 80 11 00 00 [08:09:07]Write to MH i2c: E2 08 00 3D 32 80 11 00 00 00 00 00 00 E9 [08:09:07]Write i2c OK [08:09:07]MH_I2C_Read... [08:09:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:07]Read from MH i2c: E2 [08:09:07]MH_I2C_Read... [08:09:07]Read from MH i2c: E2 17 00 [08:09:07]MH_I2C_Read... [08:09:07]Read from MH i2c: E2 17 00 3D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 3B [08:09:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:09:07]wFMCommunicate OK [08:09:07]requested_item fd.num is exist - process it [08:09:07]SAM_PROTO_GetFieldsCounters [08:09:07]wFMCommunicate request_size=4 [08:09:07]MH_SAM_APDU [08:09:07]CAPDU: 80 13 00 00 [08:09:07]Write to MH i2c: E2 08 00 3E 32 80 13 00 00 00 00 00 00 EC [08:09:07]Write i2c OK [08:09:07]MH_I2C_Read... [08:09:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:07]Read from MH i2c: E2 [08:09:07]MH_I2C_Read... [08:09:07]Read from MH i2c: E2 62 00 [08:09:07]MH_I2C_Read... [08:09:07]Read from MH i2c: E2 62 00 3E 32 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 56 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [08:09: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 4D 56 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:07]wFMCommunicate OK [08:09:07]SAM_PROTO_GetFieldsCounters done [08:09:07]requested_item shift.num is exist - process it [08:09:07]requested_item shift.opened is exist - process it [08:09:07]req_shift_opened [08:09:07]FM_GetShiftState [08:09:07]SAM_PROTO_GetShiftState [08:09:07]wFMCommunicate request_size=4 [08:09:07]MH_SAM_APDU [08:09:07]CAPDU: 80 13 01 00 [08:09:07]Write to MH i2c: E2 08 00 3F 32 80 13 01 00 00 00 00 00 EE [08:09:07]Write i2c OK [08:09:07]MH_I2C_Read... [08:09:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:07]Read from MH i2c: E2 [08:09:07]MH_I2C_Read... [08:09:07]Read from MH i2c: E2 0E 00 [08:09:07]MH_I2C_Read... [08:09:07]Read from MH i2c: E2 0E 00 3F 32 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 5F [08:09:07]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [08:09:07]wFMCommunicate OK [08:09:07]SAM_PROTO_GetShiftState done [08:09:07]FM_GetShiftState done [08:09:07]req_shift_opened done [08:09:07]requested_item shift.open_date is exist - process it [08:09:07]req_shift_open_date [08:09:07]req_shift_open_date done [08:09:07]produce_requested_data done [08:09:07]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22093,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [08:09:07]process_action_free close_receipt [08:09:07]json_value_free [08:09:07]json_value_free done [08:09:07]process_json_proto returns [08:09:07]Send response to host [08:09:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22093,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [08:09:07]free response buf [08:09:07]execute_script done [08:09:07]execute_script returns [08:09:07]free content buf [08:09:07]Sock 10.Close socket [08:09:07]Sock 10.Thread stoped [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:41]accept exits with 8 [08:09:41]New connection [08:09:41]New thread 3067178340 created [08:09:41]Thread 3067321700 joined [08:09:41]Waiting for new connection... [08:09:41] Sock 8.Parse request [08:09:41]Sock 8.Check first char [08:09:41]Sock 8.First char is OK [08:09:41]request: POST /json_proto HTTP/1.0 [08:09:41]Method: POST [08:09:41]URL: /json_proto [08:09:41]Method is POST - this is cgi request [08:09:41]url: /json_proto [08:09:41]query_string will be loaded in cgi processing [08:09:41]execute_cgi json_proto POST (null) [08:09:41]execute_cgi path=json_proto method=POST [08:09:41]POST find Content-Length [08:09:41]Host: 172.17.35.133:8080 [08:09:41]Content-Length: 884 [08:09:41]Content-Type: application/json [08:09:41] [08:09:41]POST finish read [08:09:41]Found Content-Length = 884 [08:09:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254317", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8690504034500", "name": "\u041A\u041E\u041C\u0411\u041E \u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 35.00, "quantity" : 1.000, "sum" : 35.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" ] } } [08:09:41]execute_script... [08:09: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)254317", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8690504034500", "name": "\u041A\u041E\u041C\u0411\u041E \u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 35.00, "quantity" : 1.000, "sum" : 35.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" ] } } [08:09:41]POST & json_proto [08:09:41]process_json_proto [08:09:41]json parsed OK: [08:09:41]protocol is kg_v1.0 [08:09:41]action value=close_receipt [08:09:41]process_action close_receipt [08:09:41]cmd_close_receipt [08:09:41]MH_GetDate [08:09:41]Write to MH i2c: F0 00 00 40 32 61 [08:09:41]Write i2c OK [08:09:41]MH_I2C_Read... [08:09:41]Read from MH i2c: F0 [08:09:41]MH_I2C_Read... [08:09:41]Read from MH i2c: F0 09 00 [08:09:41]MH_I2C_Read... [08:09:41]Read from MH i2c: F0 09 00 40 32 00 D2 FA 6B 66 8C 55 28 65 75 [08:09:41]GetLastDocTimeStamp 1718352556 [08:09:41]current date 1718352594 [08:09:41]FM_GetShiftState [08:09:41]SAM_PROTO_GetShiftState [08:09:41]wFMCommunicate request_size=4 [08:09:41]MH_SAM_APDU [08:09:41]CAPDU: 80 13 01 00 [08:09:41]Write to MH i2c: E2 08 00 41 32 80 13 01 00 00 00 00 00 F0 [08:09:41]Write i2c OK [08:09:41]MH_I2C_Read... [08:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:41]Read from MH i2c: E2 [08:09:41]MH_I2C_Read... [08:09:41]Read from MH i2c: E2 0E 00 [08:09:41]MH_I2C_Read... [08:09:41]Read from MH i2c: E2 0E 00 41 32 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 61 [08:09:41]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [08:09:41]wFMCommunicate OK [08:09:41]SAM_PROTO_GetShiftState done [08:09:41]FM_GetShiftState done [08:09:41]opened in 1718324742 [08:09:41]opened+sec_in_day 1718411142 [08:09:41]quantity*price = 4000 [08:09:41]sum+1 = 4001 [08:09:41]Check (price>sum+1) || (price+1sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 8690504034500 袣袨袦袘袨 袣芯薪写 ULKER-Albeni 40gr (6*24) 1.000 * 35.00 = 35.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 75.00 袧小袩 1% : 0.66 袧袛小 12% : 7.97 袧邪谢懈褔薪褘屑懈: 75.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 8 14.06.2024 08:09 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22094 肖袩袛: 42666308807347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T080954&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22094&fm=42666308807347&tin=02508201610067®Number=0000000000099755&sum=7500 0 [08:09:42]StoreToDocumentArchive [08:09:42]shift 325 fd 22094 [08:09:42]save to /storage/0325/doc_00022094 [08:09:42]save last doc name /storage/0325/doc_00022094 to /storage/kkm_last_doc_name [08:09:42]save OK [08:09:42]Clear old archive folders... [08:09:42]ProcessDocumentItem done err = 0, tmpTLVsize=387 [08:09:42]tlvbuf is B6FB2B50 [08:09:42]SAM_PROTO_ClearQueue [08:09:42]wFMCommunicate request_size=4 [08:09:42]MH_SAM_APDU [08:09:42]CAPDU: 80 09 00 00 [08:09:42]Write to MH i2c: E2 08 00 4E 32 80 09 00 00 00 00 00 00 F2 [08:09:42]Write i2c OK [08:09:42]MH_I2C_Read... [08:09:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:42]Read from MH i2c: E2 [08:09:42]MH_I2C_Read... [08:09:42]Read from MH i2c: E2 03 00 [08:09:42]MH_I2C_Read... [08:09:42]Read from MH i2c: E2 03 00 4E 32 00 90 00 F4 [08:09:42]RAPDU: 90 00 [08:09:42]wFMCommunicate OK [08:09:42]SAM_PROTO_ClearQueue done [08:09:42]KKMCreateOFDPacket [08:09:42]OFDProtocolAddRootSTLVToBuf [08:09:42]FM_MakeSignedData [08:09:42]FM_MakeSignedData [08:09:42]SAM_PROTO_SignData [08:09:42]wFMCommunicate request_size=4 [08:09:42]MH_SAM_APDU [08:09:42]CAPDU: 80 0D 01 02 [08:09:42]Write to MH i2c: E2 08 00 4F 32 80 0D 01 02 00 00 00 00 FA [08:09:42]Write i2c OK [08:09:42]MH_I2C_Read... [08:09:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:42]Read from MH i2c: E2 [08:09:42]MH_I2C_Read... [08:09:42]Read from MH i2c: E2 03 00 [08:09:42]MH_I2C_Read... [08:09:42]Read from MH i2c: E2 03 00 4F 32 00 90 00 F5 [08:09:42]RAPDU: 90 00 [08:09:42]wFMCommunicate OK [08:09:42]wFMCommunicate request_size=255 [08:09:42]MH_SAM_APDU [08:09:42]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 34 35 30 30 06 04 2C 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [08:09:42]Write to MH i2c: E2 02 01 50 32 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 34 35 30 30 06 04 2C 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 8D [08:09:42]Write i2c OK [08:09:42]MH_I2C_Read... [08:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:43]Read from MH i2c: E2 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 03 00 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 03 00 50 32 00 90 00 F6 [08:09:43]RAPDU: 90 00 [08:09:43]wFMCommunicate OK [08:09:43]wFMCommunicate request_size=146 [08:09:43]MH_SAM_APDU [08:09:43]CAPDU: 80 0D 02 02 8D 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 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 08 00 00 00 F4 03 04 00 D2 FA 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 26 CE 06 2E 2A B3 [08:09:43]Write to MH i2c: E2 95 00 51 32 80 0D 02 02 8D 00 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 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 08 00 00 00 F4 03 04 00 D2 FA 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 26 CE 06 2E 2A B3 00 00 B5 [08:09:43]Write i2c OK [08:09:43]MH_I2C_Read... [08:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:43]Read from MH i2c: E2 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 03 00 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 03 00 51 32 00 90 00 F7 [08:09:43]RAPDU: 90 00 [08:09:43]wFMCommunicate OK [08:09:43]wFMCommunicate request_size=4 [08:09:43]MH_SAM_APDU [08:09:43]CAPDU: 80 0D 03 02 [08:09:43]Write to MH i2c: E2 08 00 52 32 80 0D 03 02 00 00 00 00 FF [08:09:43]Write i2c OK [08:09:43]MH_I2C_Read... [08:09:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:43]Read from MH i2c: E2 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 0B 00 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 0B 00 52 32 00 E7 EF 1B 14 A1 5D D6 B8 90 00 91 [08:09:43]RAPDU: E7 EF 1B 14 A1 5D D6 B8 90 00 [08:09:43]wFMCommunicate OK [08:09:43]SAM_PROTO_SignData done [08:09:43]FM_MakeSignedData done [08:09:43]CreateOFDProtocolMessage [08:09:43]wFMCommunicate request_size=4 [08:09:43]MH_SAM_APDU [08:09:43]CAPDU: 80 11 00 00 [08:09:43]Write to MH i2c: E2 08 00 53 32 80 11 00 00 00 00 00 00 FF [08:09:43]Write i2c OK [08:09:43]MH_I2C_Read... [08:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:43]Read from MH i2c: E2 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 17 00 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 17 00 53 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 51 [08:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:09:43]wFMCommunicate OK [08:09:43]CreateOFDProtocolMessage done [08:09:43]OFDSenderStorePacket 22094 [08:09:43]StoreOFDPacket docnum=22094 [08:09: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 97 01 00 00 2F 96 8F 01 6F EF 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 34 35 30 30 06 04 2C 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 1D 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 08 00 00 00 F4 03 04 00 D2 FA 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 26 CE 06 2E 2A B3 E7 EF 1B 14 A1 5D D6 B8 [08:09:43]CheckFolder [08:09:43]dirname=/storage/ofd_packets [08:09:43]CheckFolder done [08:09:43]ProducePacketName [08:09:43]name=ofd_packets/00022094 [08:09:43]NVStorageSaveData ofd_packets/00022094 [08:09:43]File name is /storage/ofd_packets/00022094 [08:09:43]Write 437 bytes [08:09:43]NVStorageSaveData done [08:09:43]OFDSenderStorePacket done [08:09:43]KKMCreateOFDPacket done [08:09:43]NVStorageSaveData kkm_last_timestamp [08:09:43]File name is /storage/kkm_last_timestamp [08:09:43]Write 4 bytes [08:09:43]NVStorageSaveData done [08:09:43]ExternCall_PrintAddStr [08:09:43]wPrintStart [08:09:43]Write to MH i2c: 01 00 00 54 32 86 [08:09:43]Write i2c OK [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: 01 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: 01 07 00 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: 01 07 00 54 32 00 00 00 00 00 FF 0F 9B [08:09:43]RasterBufferAndPrint [08:09:43]line 小褔械褌 N : (3)254317 [08:09:43]line 袠袧袧: 02508201610067 [08:09:43]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [08:09:43]line 袩袪袨袛袗袞袗 [08:09:43]line 孝芯胁邪褉: 4700000160211 [08:09:43]line 袙芯写邪 袥械谐械薪写邪 0,5谢 [08:09:43]line 1.000 * 40.00 [08:09:43]line = 40.00 [08:09:43]line 袧袛小 12% 袧小袩 1% [08:09:43]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [08:09:43]line 孝芯胁邪褉: 8690504034500 [08:09:43]line 袣袨袦袘袨 袣芯薪写 ULKER-Albeni 40gr (6*24) [08:09:43]line 1.000 * 35.00 [08:09:43]line = 35.00 [08:09:43]line 袧袛小 12% 袧小袩 1% [08:09:43]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [08:09:43]line 袠孝袨袚袨: 75.00 [08:09:43]line 袧小袩 1% : 0.66 [08:09:43]line 袧袛小 12% : 7.97 [08:09:43]line 袧邪谢懈褔薪褘屑懈: 75.00 [08:09:43]line 袘械蟹薪邪谢.: 0.00 [08:09:43]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [08:09:43]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [08:09:43]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [08:09:43]line 效械泻 8 14.06.2024 08:09 [08:09:43]line 小屑械薪邪: 325 肖肖袛: 1.0 [08:09:43]line 袟袧袦: 0300000200 [08:09:43]line 袪袧袦: 0000000000099755 [08:09:43]line 袙械褉褋懈褟 袣袣袦: 001 [08:09:43]line 肖袦: 0000000000965344 [08:09:43]line 肖袛: 22094 [08:09:43]line 肖袩袛: 42666308807347 [08:09:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T080954&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22094&fm=42666308807347&tin=02508201610067®Number=0000000000099755&sum=7500 [08:09:43]line 0 [08:09:43]OFD Sender: Processing packet 22094 [packets to send 5, broken 4] [08:09:43]ProducePacketName [08:09:43]name=ofd_packets/00022094 [08:09:43]OFD Sender: To server: 嚂鰌G, [08:09:43]CommunicateWithHost lk.salyk.kg:30040 [08:09:43]ConnectInit lk.salyk.kg [08:09:43]written 0, free lines is 4095 [08:09:43]Connected sock=10 [08:09: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 97 01 00 00 2F 96 8F 01 6F EF 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 34 35 30 30 06 04 2C 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 1D 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 08 00 00 00 F4 03 04 00 D2 FA 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 26 CE 06 2E 2A B3 E7 EF 1B 14 A1 5D D6 B8 [08:09: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 27 6C 47 00 88 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4E 56 00 00 F4 03 04 00 93 A3 6B 66 B6 04 01 00 00 66 3F 90 77 02 84 35 E8 [08:09:43]CommunicateWithHost err = 0 [08:09:43]CheckOFDResponse [08:09:43]1017 (14) - 77093643461234 [08:09:43]1041 (16) - 0000000000965344 [08:09:43]1040 (4) - 22094 [08:09:43]1012 (4) - 14.06.2024 01:57 [08:09:43]1206 (1) - 0 [08:09:43]OFD Sender: Remove packet 22094 [08:09:43]ProducePacketName [08:09:43]name=ofd_packets/00022094 [08:09:43]NVStorageDeleteData [08:09:44]Write to MH i2c: 01 00 00 83 32 B5 [08:09:44]Write i2c OK [08:09:44]MH_I2C_Read... [08:09:44]Read from MH i2c: 01 [08:09:44]MH_I2C_Read... [08:09:44]Read from MH i2c: 01 07 00 [08:09:44]MH_I2C_Read... [08:09:44]Read from MH i2c: 01 07 00 83 32 00 00 00 00 00 D5 0C 9D [08:09:44]RasterBufferAndPrint [08:09:44]line [08:09:44]line [08:09:44]line [08:09:44]line [08:09:44]line [08:09:44]written 0, free lines is 3294 [08:09:44]MH_Cut [08:09:44]Write to MH i2c: D1 01 00 8A 32 01 8E [08:09:44]Write i2c OK [08:09:44]MH_I2C_Read... [08:09:44]Read from MH i2c: D1 [08:09:44]MH_I2C_Read... [08:09:44]Read from MH i2c: D1 01 00 [08:09:44]MH_I2C_Read... [08:09:44]Read from MH i2c: D1 01 00 8A 32 00 8D [08:09:44]Write to MH i2c: 01 00 00 8B 32 BD [08:09:44]Write i2c OK [08:09:44]MH_I2C_Read... [08:09:44]OFD Sender: No OFD packet to send [08:09:44]*** Cut start [08:09:44]*** Partial cut [08:09:44]*** CUTSNS_PIN = 1 [08:09:44]*** CUTSNS_PIN = 0 [08:09:45]*** Brake cut motor [08:09:45]Read from MH i2c: 01 [08:09:45]MH_I2C_Read... [08:09:45]*** Stop cut motor [08:09:45]*** Cut end [08:09:45]Read from MH i2c: 01 07 00 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: 01 07 00 8B 32 00 00 00 00 00 FF 0F D2 [08:09:45]process_action close_receipt done [08:09:45]requested_data is exist [08:09:45]produce_requested_data [08:09:45]requested_item fm.sn is exist - process it [08:09:45]wFMCommunicate request_size=4 [08:09:45]MH_SAM_APDU [08:09:45]CAPDU: 80 11 00 00 [08:09:45]Write to MH i2c: E2 08 00 8C 32 80 11 00 00 00 00 00 00 38 [08:09:45]Write i2c OK [08:09:45]MH_I2C_Read... [08:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:45]Read from MH i2c: E2 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 17 00 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 17 00 8C 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 8A [08:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:09:45]wFMCommunicate OK [08:09:45]requested_item fd.num is exist - process it [08:09:45]SAM_PROTO_GetFieldsCounters [08:09:45]wFMCommunicate request_size=4 [08:09:45]MH_SAM_APDU [08:09:45]CAPDU: 80 13 00 00 [08:09:45]Write to MH i2c: E2 08 00 8D 32 80 13 00 00 00 00 00 00 3B [08:09:45]Write i2c OK [08:09:45]MH_I2C_Read... [08:09:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:45]Read from MH i2c: E2 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 62 00 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 62 00 8D 32 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 56 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [08:09: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 4E 56 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:45]wFMCommunicate OK [08:09:45]SAM_PROTO_GetFieldsCounters done [08:09:45]requested_item shift.num is exist - process it [08:09:45]requested_item shift.opened is exist - process it [08:09:45]req_shift_opened [08:09:45]FM_GetShiftState [08:09:45]SAM_PROTO_GetShiftState [08:09:45]wFMCommunicate request_size=4 [08:09:45]MH_SAM_APDU [08:09:45]CAPDU: 80 13 01 00 [08:09:45]Write to MH i2c: E2 08 00 8E 32 80 13 01 00 00 00 00 00 3D [08:09:45]Write i2c OK [08:09:45]MH_I2C_Read... [08:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:45]Read from MH i2c: E2 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 0E 00 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 0E 00 8E 32 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 AE [08:09:45]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [08:09:45]wFMCommunicate OK [08:09:45]SAM_PROTO_GetShiftState done [08:09:45]FM_GetShiftState done [08:09:45]req_shift_opened done [08:09:45]requested_item shift.open_date is exist - process it [08:09:45]req_shift_open_date [08:09:45]req_shift_open_date done [08:09:45]produce_requested_data done [08:09:45]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22094,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [08:09:45]process_action_free close_receipt [08:09:45]json_value_free [08:09:45]json_value_free done [08:09:45]process_json_proto returns [08:09:45]Send response to host [08:09:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22094,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [08:09:45]free response buf [08:09:45]execute_script done [08:09:45]execute_script returns [08:09:45]free content buf [08:09:45]Sock 8.Close socket [08:09:45]Sock 8.Thread stoped [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]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:06]accept exits with 9 [08:19:06]New connection [08:19:06]New thread 3067321700 created [08:19:06]Thread 3067178340 joined [08:19:06]Waiting for new connection... [08:19:06] Sock 9.Parse request [08:19:06]Sock 9.Check first char [08:19:06]Sock 9.First char is OK [08:19:06]request: POST /json_proto HTTP/1.0 [08:19:06]Method: POST [08:19:06]URL: /json_proto [08:19:06]Method is POST - this is cgi request [08:19:06]url: /json_proto [08:19:06]query_string will be loaded in cgi processing [08:19:06]execute_cgi json_proto POST (null) [08:19:06]execute_cgi path=json_proto method=POST [08:19:06]POST find Content-Length [08:19:06]Host: 172.17.35.133:8080 [08:19:06]Content-Length: 1361 [08:19:06]Content-Type: application/json [08:19:06] [08:19:06]POST finish read [08:19:06]Found Content-Length = 1361 [08:19:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254318", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.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" ] } } [08:19:06]execute_script... [08:19: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)254318", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.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" ] } } [08:19:06]POST & json_proto [08:19:06]process_json_proto [08:19:06]json parsed OK: [08:19:06]protocol is kg_v1.0 [08:19:06]action value=close_receipt [08:19:06]process_action close_receipt [08:19:06]cmd_close_receipt [08:19:06]MH_GetDate [08:19:06]Write to MH i2c: F0 00 00 8F 32 B0 [08:19:06]Write i2c OK [08:19:06]MH_I2C_Read... [08:19:06]Read from MH i2c: F0 [08:19:06]MH_I2C_Read... [08:19:06]Read from MH i2c: F0 09 00 [08:19:06]MH_I2C_Read... [08:19:06]Read from MH i2c: F0 09 00 8F 32 00 07 FD 6B 66 8C 55 28 65 FC [08:19:06]GetLastDocTimeStamp 1718352594 [08:19:06]current date 1718353159 [08:19:06]FM_GetShiftState [08:19:06]SAM_PROTO_GetShiftState [08:19:06]wFMCommunicate request_size=4 [08:19:06]MH_SAM_APDU [08:19:06]CAPDU: 80 13 01 00 [08:19:06]Write to MH i2c: E2 08 00 90 32 80 13 01 00 00 00 00 00 3F [08:19:06]Write i2c OK [08:19:06]MH_I2C_Read... [08:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:06]Read from MH i2c: E2 [08:19:06]MH_I2C_Read... [08:19:06]Read from MH i2c: E2 0E 00 [08:19:06]MH_I2C_Read... [08:19:06]Read from MH i2c: E2 0E 00 90 32 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 B0 [08:19:06]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [08:19:06]wFMCommunicate OK [08:19:06]SAM_PROTO_GetShiftState done [08:19:06]FM_GetShiftState done [08:19:06]opened in 1718324742 [08:19:06]opened+sec_in_day 1718411142 [08:19:06]quantity*price = 10000 [08:19:06]sum+1 = 10001 [08:19:07]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 4870001571030 袙芯写邪 ASU 锌懈褌 薪.谐邪蟹 泻谢褍斜薪,泻懈胁懈 袩协孝 1谢 1.000 * 85.00 = 85.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 4600338001623 袙芯写邪 肖褉褍褌芯 袧携袧携 薪械谐邪蟹懈褉 写/写械褌械泄 0,33谢 1.000 * 80.00 = 80.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 265.00 袧小袩 1% : 2.34 袧袛小 12% : 28.15 袧邪谢懈褔薪褘屑懈: 265.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 9 14.06.2024 08:19 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22095 肖袩袛: 252419509576387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T081920&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22095&fm=252419509576387&tin=02508201610067®Number=0000000000099755&sum=26500 0 [08:19:07]StoreToDocumentArchive [08:19:07]shift 325 fd 22095 [08:19:07]save to /storage/0325/doc_00022095 [08:19:07]save last doc name /storage/0325/doc_00022095 to /storage/kkm_last_doc_name [08:19:07]save OK [08:19:07]Clear old archive folders... [08:19:07]ProcessDocumentItem done err = 0, tmpTLVsize=561 [08:19:07]tlvbuf is 002C7130 [08:19:07]SAM_PROTO_ClearQueue [08:19:07]wFMCommunicate request_size=4 [08:19:07]MH_SAM_APDU [08:19:07]CAPDU: 80 09 00 00 [08:19:07]Write to MH i2c: E2 08 00 9D 32 80 09 00 00 00 00 00 00 41 [08:19:07]Write i2c OK [08:19:07]MH_I2C_Read... [08:19:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:08]Read from MH i2c: E2 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 9D 32 00 90 00 43 [08:19:08]RAPDU: 90 00 [08:19:08]wFMCommunicate OK [08:19:08]SAM_PROTO_ClearQueue done [08:19:08]KKMCreateOFDPacket [08:19:08]OFDProtocolAddRootSTLVToBuf [08:19:08]FM_MakeSignedData [08:19:08]FM_MakeSignedData [08:19:08]SAM_PROTO_SignData [08:19:08]wFMCommunicate request_size=4 [08:19:08]MH_SAM_APDU [08:19:08]CAPDU: 80 0D 01 02 [08:19:08]Write to MH i2c: E2 08 00 9E 32 80 0D 01 02 00 00 00 00 49 [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:08]Read from MH i2c: E2 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 9E 32 00 90 00 44 [08:19:08]RAPDU: 90 00 [08:19:08]wFMCommunicate OK [08:19:08]wFMCommunicate request_size=255 [08:19:08]MH_SAM_APDU [08:19:08]CAPDU: 80 0D 02 02 FA 03 00 31 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 [08:19:08]Write to MH i2c: E2 02 01 9F 32 80 0D 02 02 FA 00 03 00 31 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 00 00 75 [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:08]Read from MH i2c: E2 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 9F 32 00 90 00 45 [08:19:08]RAPDU: 90 00 [08:19:08]wFMCommunicate OK [08:19:08]wFMCommunicate request_size=255 [08:19:08]MH_SAM_APDU [08:19:08]CAPDU: 80 0D 02 02 FA 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 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 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 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 09 00 00 00 F4 03 04 00 08 FD 6B 66 0E 04 04 00 45 01 [08:19:08]Write to MH i2c: E2 02 01 A0 32 80 0D 02 02 FA 00 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 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 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 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 09 00 00 00 F4 03 04 00 08 FD 6B 66 0E 04 04 00 45 01 00 00 CF [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:08]Read from MH i2c: E2 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 A0 32 00 90 00 46 [08:19:08]RAPDU: 90 00 [08:19:08]wFMCommunicate OK [08:19:08]wFMCommunicate request_size=70 [08:19:08]MH_SAM_APDU [08:19:08]CAPDU: 80 0D 02 02 41 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 56 00 00 35 04 06 00 E5 92 FF 33 E2 C3 [08:19:08]Write to MH i2c: E2 49 00 A1 32 80 0D 02 02 41 00 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 56 00 00 35 04 06 00 E5 92 FF 33 E2 C3 00 00 60 [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:09]Read from MH i2c: E2 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 03 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 03 00 A1 32 00 90 00 47 [08:19:09]RAPDU: 90 00 [08:19:09]wFMCommunicate OK [08:19:09]wFMCommunicate request_size=4 [08:19:09]MH_SAM_APDU [08:19:09]CAPDU: 80 0D 03 02 [08:19:09]Write to MH i2c: E2 08 00 A2 32 80 0D 03 02 00 00 00 00 4F [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:09]Read from MH i2c: E2 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 0B 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 0B 00 A2 32 00 FF 19 73 56 66 74 93 DB 90 00 79 [08:19:09]RAPDU: FF 19 73 56 66 74 93 DB 90 00 [08:19:09]wFMCommunicate OK [08:19:09]SAM_PROTO_SignData done [08:19:09]FM_MakeSignedData done [08:19:09]CreateOFDProtocolMessage [08:19:09]wFMCommunicate request_size=4 [08:19:09]MH_SAM_APDU [08:19:09]CAPDU: 80 11 00 00 [08:19:09]Write to MH i2c: E2 08 00 A3 32 80 11 00 00 00 00 00 00 4F [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:09]Read from MH i2c: E2 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 17 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 17 00 A3 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 A1 [08:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:19:09]wFMCommunicate OK [08:19:09]CreateOFDProtocolMessage done [08:19:09]OFDSenderStorePacket 22095 [08:19:09]StoreOFDPacket docnum=22095 [08:19: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 45 02 00 00 7E B0 3D 02 07 DA 5A 03 01 00 03 00 31 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 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 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 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 09 00 00 00 F4 03 04 00 08 FD 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 E5 92 FF 33 E2 C3 FF 19 73 56 66 74 93 DB [08:19:09]CheckFolder [08:19:09]dirname=/storage/ofd_packets [08:19:09]CheckFolder done [08:19:09]ProducePacketName [08:19:09]name=ofd_packets/00022095 [08:19:09]NVStorageSaveData ofd_packets/00022095 [08:19:09]File name is /storage/ofd_packets/00022095 [08:19:09]Write 611 bytes [08:19:09]NVStorageSaveData done [08:19:09]OFDSenderStorePacket done [08:19:09]KKMCreateOFDPacket done [08:19:09]NVStorageSaveData kkm_last_timestamp [08:19:09]File name is /storage/kkm_last_timestamp [08:19:09]Write 4 bytes [08:19:09]NVStorageSaveData done [08:19:09]ExternCall_PrintAddStr [08:19:09]wPrintStart [08:19:09]Write to MH i2c: 01 00 00 A4 32 D6 [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 07 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 07 00 A4 32 00 00 00 00 00 FF 0F EB [08:19:09]RasterBufferAndPrint [08:19:09]line 小褔械褌 N : (3)254318 [08:19:09]line 袠袧袧: 02508201610067 [08:19:09]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [08:19:09]line 袩袪袨袛袗袞袗 [08:19:09]line 孝芯胁邪褉: 4870002326172 [08:19:09]line 袙芯写邪 ASU 锌懈褌 薪.谐邪蟹 谢懈屑芯薪 袩协孝 1谢 [08:19:09]line 1.000 * 100.00 [08:19:09]line = 100.00 [08:19:09]line 袧袛小 12% 袧小袩 1% [08:19:09]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [08:19:09]line 孝芯胁邪褉: 4870001571030 [08:19:09]line 袙芯写邪 ASU 锌懈褌 薪.谐邪蟹 泻谢褍斜薪,泻懈胁懈 袩协孝 1谢 [08:19:09]line 1.000 * 85.00 [08:19:09]line = 85.00 [08:19:09]line 袧袛小 12% 袧小袩 1% [08:19:09]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [08:19:09]line 孝芯胁邪褉: 4600338001623 [08:19:09]line 袙芯写邪 肖褉褍褌芯 袧携袧携 薪械谐邪蟹懈褉 写/写械褌械泄 0,33谢 [08:19:09]line 1.000 * 80.00 [08:19:09]line = 80.00 [08:19:09]line 袧袛小 12% 袧小袩 1% [08:19:09]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [08:19:09]line 袠孝袨袚袨: 265.00 [08:19:09]line 袧小袩 1% : 2.34 [08:19:09]line 袧袛小 12% : 28.15 [08:19:09]line 袧邪谢懈褔薪褘屑懈: 265.00 [08:19:09]line 袘械蟹薪邪谢.: 0.00 [08:19:09]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [08:19:09]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [08:19:09]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [08:19:09]line 效械泻 9 14.06.2024 08:19 [08:19:09]line 小屑械薪邪: 325 肖肖袛: 1.0 [08:19:09]line 袟袧袦: 0300000200 [08:19:09]line 袪袧袦: 0000000000099755 [08:19:09]line 袙械褉褋懈褟 袣袣袦: 001 [08:19:09]line 肖袦: 0000000000965344 [08:19:09]line 肖袛: 22095 [08:19:09]line 肖袩袛: 252419509576387 [08:19:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T081920&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22095&fm=252419509576387&tin=02508201610067®Number=0000000000099755&sum=26500 [08:19:09]OFD Sender: Processing packet 22095 [packets to send 5, broken 4] [08:19:09]ProducePacketName [08:19:09]name=ofd_packets/00022095 [08:19:09]OFD Sender: To server: 嚂鰌G, [08:19:09]CommunicateWithHost lk.salyk.kg:30040 [08:19:09]ConnectInit lk.salyk.kg [08:19:09]line 0 [08:19:09]written 0, free lines is 4095 [08:19:09]Connected sock=10 [08:19: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 45 02 00 00 7E B0 3D 02 07 DA 5A 03 01 00 03 00 31 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 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 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 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 09 00 00 00 F4 03 04 00 08 FD 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 E5 92 FF 33 E2 C3 FF 19 73 56 66 74 93 DB [08:19: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 E7 14 47 00 3E 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4F 56 00 00 F4 03 04 00 C9 A5 6B 66 B6 04 01 00 00 9E B5 95 C3 18 BB 5D 0C [08:19:09]CommunicateWithHost err = 0 [08:19:09]CheckOFDResponse [08:19:09]1017 (14) - 77093643461234 [08:19:09]1041 (16) - 0000000000965344 [08:19:09]1040 (4) - 22095 [08:19:09]1012 (4) - 14.06.2024 02:07 [08:19:09]1206 (1) - 0 [08:19:09]OFD Sender: Remove packet 22095 [08:19:09]ProducePacketName [08:19:09]name=ofd_packets/00022095 [08:19:09]NVStorageDeleteData [08:19:10]Write to MH i2c: 01 00 00 DB 32 0D [08:19:10]Write i2c OK [08:19:10]MH_I2C_Read... [08:19:10]Read from MH i2c: 01 [08:19:10]MH_I2C_Read... [08:19:10]Read from MH i2c: 01 07 00 [08:19:10]MH_I2C_Read... [08:19:10]Read from MH i2c: 01 07 00 DB 32 00 00 00 00 00 71 0C 91 [08:19:10]RasterBufferAndPrint [08:19:10]line [08:19:10]line [08:19:10]line [08:19:10]line [08:19:10]line [08:19:10]written 0, free lines is 3194 [08:19:10]MH_Cut [08:19:10]Write to MH i2c: D1 01 00 E2 32 01 E6 [08:19:10]Write i2c OK [08:19:10]MH_I2C_Read... [08:19:10]Read from MH i2c: D1 [08:19:10]MH_I2C_Read... [08:19:10]Read from MH i2c: D1 01 00 [08:19:10]MH_I2C_Read... [08:19:10]Read from MH i2c: D1 01 00 E2 32 00 E5 [08:19:10]Write to MH i2c: 01 00 00 E3 32 15 [08:19:10]Write i2c OK [08:19:10]MH_I2C_Read... [08:19:10]OFD Sender: No OFD packet to send [08:19:10]*** Cut start [08:19:10]*** Partial cut [08:19:10]*** CUTSNS_PIN = 1 [08:19:10]*** CUTSNS_PIN = 0 [08:19:11]*** Brake cut motor [08:19:11]Read from MH i2c: 01 [08:19:11]MH_I2C_Read... [08:19:11]*** Stop cut motor [08:19:11]*** Cut end [08:19:11]Read from MH i2c: 01 07 00 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: 01 07 00 E3 32 00 00 00 00 00 FF 0F 2A [08:19:11]process_action close_receipt done [08:19:11]requested_data is exist [08:19:11]produce_requested_data [08:19:11]requested_item fm.sn is exist - process it [08:19:11]wFMCommunicate request_size=4 [08:19:11]MH_SAM_APDU [08:19:11]CAPDU: 80 11 00 00 [08:19:11]Write to MH i2c: E2 08 00 E4 32 80 11 00 00 00 00 00 00 90 [08:19:11]Write i2c OK [08:19:11]MH_I2C_Read... [08:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:11]Read from MH i2c: E2 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: E2 17 00 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: E2 17 00 E4 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 E2 [08:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:19:11]wFMCommunicate OK [08:19:11]requested_item fd.num is exist - process it [08:19:11]SAM_PROTO_GetFieldsCounters [08:19:11]wFMCommunicate request_size=4 [08:19:11]MH_SAM_APDU [08:19:11]CAPDU: 80 13 00 00 [08:19:11]Write to MH i2c: E2 08 00 E5 32 80 13 00 00 00 00 00 00 93 [08:19:11]Write i2c OK [08:19:11]MH_I2C_Read... [08:19:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:11]Read from MH i2c: E2 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: E2 62 00 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: E2 62 00 E5 32 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 56 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [08:19: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 4F 56 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:11]wFMCommunicate OK [08:19:11]SAM_PROTO_GetFieldsCounters done [08:19:11]requested_item shift.num is exist - process it [08:19:11]requested_item shift.opened is exist - process it [08:19:11]req_shift_opened [08:19:11]FM_GetShiftState [08:19:11]SAM_PROTO_GetShiftState [08:19:11]wFMCommunicate request_size=4 [08:19:11]MH_SAM_APDU [08:19:11]CAPDU: 80 13 01 00 [08:19:11]Write to MH i2c: E2 08 00 E6 32 80 13 01 00 00 00 00 00 95 [08:19:11]Write i2c OK [08:19:11]MH_I2C_Read... [08:19:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:11]Read from MH i2c: E2 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: E2 0E 00 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: E2 0E 00 E6 32 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 06 [08:19:11]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [08:19:11]wFMCommunicate OK [08:19:11]SAM_PROTO_GetShiftState done [08:19:11]FM_GetShiftState done [08:19:11]req_shift_opened done [08:19:11]requested_item shift.open_date is exist - process it [08:19:11]req_shift_open_date [08:19:11]req_shift_open_date done [08:19:11]produce_requested_data done [08:19:11]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22095,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [08:19:11]process_action_free close_receipt [08:19:11]json_value_free [08:19:11]json_value_free done [08:19:11]process_json_proto returns [08:19:11]Send response to host [08:19:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22095,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [08:19:11]free response buf [08:19:11]execute_script done [08:19:11]execute_script returns [08:19:11]free content buf [08:19:11]Sock 9.Close socket [08:19:11]Sock 9.Thread stoped [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]accept exits with 8 [08:20:30]New connection [08:20:30]New thread 3067178340 created [08:20:30]Thread 3067321700 joined [08:20:30]Waiting for new connection... [08:20:30] Sock 8.Parse request [08:20:30]Sock 8.Check first char [08:20:30]Sock 8.First char is OK [08:20:30]request: POST /json_proto HTTP/1.0 [08:20:30]Method: POST [08:20:30]URL: /json_proto [08:20:30]Method is POST - this is cgi request [08:20:30]url: /json_proto [08:20:30]query_string will be loaded in cgi processing [08:20:30]execute_cgi json_proto POST (null) [08:20:30]execute_cgi path=json_proto method=POST [08:20:30]POST find Content-Length [08:20:30]Host: 172.17.35.133:8080 [08:20:30]Content-Length: 632 [08:20:30]Content-Type: application/json [08:20:30] [08:20:30]POST finish read [08:20:30]Found Content-Length = 632 [08:20:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254319", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 168.00, "quantity" : 2.000, "sum" : 336.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 336.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:30]execute_script... [08:20:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254319", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 168.00, "quantity" : 2.000, "sum" : 336.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 336.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:30]POST & json_proto [08:20:30]process_json_proto [08:20:30]json parsed OK: [08:20:30]protocol is kg_v1.0 [08:20:30]action value=close_receipt [08:20:30]process_action close_receipt [08:20:30]cmd_close_receipt [08:20:30]MH_GetDate [08:20:30]Write to MH i2c: F0 00 00 E7 32 08 [08:20:30]Write i2c OK [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: F0 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: F0 09 00 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: F0 09 00 E7 32 00 5B FD 6B 66 8C 55 28 65 A8 [08:20:30]GetLastDocTimeStamp 1718353160 [08:20:30]current date 1718353243 [08:20:30]FM_GetShiftState [08:20:30]SAM_PROTO_GetShiftState [08:20:30]wFMCommunicate request_size=4 [08:20:30]MH_SAM_APDU [08:20:30]CAPDU: 80 13 01 00 [08:20:30]Write to MH i2c: E2 08 00 E8 32 80 13 01 00 00 00 00 00 97 [08:20:30]Write i2c OK [08:20:30]MH_I2C_Read... [08:20:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:30]Read from MH i2c: E2 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 0E 00 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 0E 00 E8 32 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 08 [08:20:30]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [08:20:30]wFMCommunicate OK [08:20:30]SAM_PROTO_GetShiftState done [08:20:30]FM_GetShiftState done [08:20:30]opened in 1718324742 [08:20:30]opened+sec_in_day 1718411142 [08:20:30]quantity*price = 33600 [08:20:30]sum+1 = 33601 [08:20:30]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 336.00 袧小袩 1% : 2.97 袧袛小 12% : 35.68 袧邪谢懈褔薪褘屑懈: 336.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 10 14.06.2024 08:20 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22096 肖袩袛: 237936648619684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T082043&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22096&fm=237936648619684&tin=02508201610067®Number=0000000000099755&sum=33600 0 [08:20:31]StoreToDocumentArchive [08:20:31]shift 325 fd 22096 [08:20:31]save to /storage/0325/doc_00022096 [08:20:31]save last doc name /storage/0325/doc_00022096 to /storage/kkm_last_doc_name [08:20:31]save OK [08:20:31]Clear old archive folders... [08:20:31]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:20:31]tlvbuf is 00334F60 [08:20:31]SAM_PROTO_ClearQueue [08:20:31]wFMCommunicate request_size=4 [08:20:31]MH_SAM_APDU [08:20:31]CAPDU: 80 09 00 00 [08:20:31]Write to MH i2c: E2 08 00 F5 32 80 09 00 00 00 00 00 00 99 [08:20:31]Write i2c OK [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: E2 [08:20:31]MH_I2C_Read... [08:20:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:31]Read from MH i2c: E2 03 00 [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: E2 03 00 F5 32 00 90 00 9B [08:20:31]RAPDU: 90 00 [08:20:31]wFMCommunicate OK [08:20:31]SAM_PROTO_ClearQueue done [08:20:31]KKMCreateOFDPacket [08:20:31]OFDProtocolAddRootSTLVToBuf [08:20:31]FM_MakeSignedData [08:20:31]FM_MakeSignedData [08:20:31]SAM_PROTO_SignData [08:20:31]wFMCommunicate request_size=4 [08:20:31]MH_SAM_APDU [08:20:31]CAPDU: 80 0D 01 02 [08:20:31]Write to MH i2c: E2 08 00 F6 32 80 0D 01 02 00 00 00 00 A1 [08:20:31]Write i2c OK [08:20:31]MH_I2C_Read... [08:20:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:31]Read from MH i2c: E2 [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: E2 03 00 [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: E2 03 00 F6 32 00 90 00 9C [08:20:31]RAPDU: 90 00 [08:20:31]wFMCommunicate OK [08:20:31]wFMCommunicate request_size=255 [08:20:31]MH_SAM_APDU [08:20:31]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 41 00 00 00 00 13 04 06 00 40 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 0D 00 00 00 00 07 04 06 00 40 83 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 5B FD 6B 66 0E 04 04 00 45 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 [08:20:31]Write to MH i2c: E2 02 01 F7 32 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 41 00 00 00 00 13 04 06 00 40 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 0D 00 00 00 00 07 04 06 00 40 83 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 5B FD 6B 66 0E 04 04 00 45 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 58 [08:20:31]Write i2c OK [08:20:31]MH_I2C_Read... [08:20:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:31]Read from MH i2c: E2 [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: E2 03 00 [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: E2 03 00 F7 32 00 90 00 9D [08:20:31]RAPDU: 90 00 [08:20:31]wFMCommunicate OK [08:20:31]wFMCommunicate request_size=35 [08:20:31]MH_SAM_APDU [08:20:31]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 50 56 00 00 35 04 06 00 D8 66 F1 6B 86 A4 [08:20:31]Write to MH i2c: E2 26 00 F8 32 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 50 56 00 00 35 04 06 00 D8 66 F1 6B 86 A4 00 00 00 [08:20:31]Write i2c OK [08:20:31]MH_I2C_Read... [08:20:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:31]Read from MH i2c: E2 [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: E2 03 00 [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: E2 03 00 F8 32 00 90 00 9E [08:20:31]RAPDU: 90 00 [08:20:31]wFMCommunicate OK [08:20:31]wFMCommunicate request_size=4 [08:20:31]MH_SAM_APDU [08:20:31]CAPDU: 80 0D 03 02 [08:20:31]Write to MH i2c: E2 08 00 F9 32 80 0D 03 02 00 00 00 00 A6 [08:20:31]Write i2c OK [08:20:31]MH_I2C_Read... [08:20:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:32]Read from MH i2c: E2 [08:20:32]MH_I2C_Read... [08:20:32]Read from MH i2c: E2 0B 00 [08:20:32]MH_I2C_Read... [08:20:32]Read from MH i2c: E2 0B 00 F9 32 00 77 1B EB 9E D5 7E 05 CB 90 00 E5 [08:20:32]RAPDU: 77 1B EB 9E D5 7E 05 CB 90 00 [08:20:32]wFMCommunicate OK [08:20:32]SAM_PROTO_SignData done [08:20:32]FM_MakeSignedData done [08:20:32]CreateOFDProtocolMessage [08:20:32]wFMCommunicate request_size=4 [08:20:32]MH_SAM_APDU [08:20:32]CAPDU: 80 11 00 00 [08:20:32]Write to MH i2c: E2 08 00 FA 32 80 11 00 00 00 00 00 00 A6 [08:20:32]Write i2c OK [08:20:32]MH_I2C_Read... [08:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:32]Read from MH i2c: E2 [08:20:32]MH_I2C_Read... [08:20:32]Read from MH i2c: E2 17 00 [08:20:32]MH_I2C_Read... [08:20:32]Read from MH i2c: E2 17 00 FA 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 F8 [08:20:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:20:32]wFMCommunicate OK [08:20:32]CreateOFDProtocolMessage done [08:20:32]OFDSenderStorePacket 22096 [08:20:32]StoreOFDPacket docnum=22096 [08:20:32]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 86 2F 20 01 FC AB 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 41 00 00 00 00 13 04 06 00 40 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 0D 00 00 00 00 07 04 06 00 40 83 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 5B FD 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 D8 66 F1 6B 86 A4 77 1B EB 9E D5 7E 05 CB [08:20:32]CheckFolder [08:20:32]dirname=/storage/ofd_packets [08:20:32]CheckFolder done [08:20:32]ProducePacketName [08:20:32]name=ofd_packets/00022096 [08:20:32]NVStorageSaveData ofd_packets/00022096 [08:20:32]File name is /storage/ofd_packets/00022096 [08:20:32]Write 326 bytes [08:20:32]NVStorageSaveData done [08:20:32]OFDSenderStorePacket done [08:20:32]KKMCreateOFDPacket done [08:20:32]NVStorageSaveData kkm_last_timestamp [08:20:32]File name is /storage/kkm_last_timestamp [08:20:32]Write 4 bytes [08:20:32]NVStorageSaveData done [08:20:32]ExternCall_PrintAddStr [08:20:32]wPrintStart [08:20:32]Write to MH i2c: 01 00 00 FB 32 2D [08:20:32]Write i2c OK [08:20:32]MH_I2C_Read... [08:20:32]Read from MH i2c: 01 [08:20:32]MH_I2C_Read... [08:20:32]Read from MH i2c: 01 07 00 [08:20:32]MH_I2C_Read... [08:20:32]Read from MH i2c: 01 07 00 FB 32 00 00 00 00 00 FF 0F 42 [08:20:32]RasterBufferAndPrint [08:20:32]line 小褔械褌 N : (3)254319 [08:20:32]line 袠袧袧: 02508201610067 [08:20:32]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [08:20:32]line 袩袪袨袛袗袞袗 [08:20:32]line 孝芯胁邪褉: 4780022460452 [08:20:32]line 袗薪褌懈褎褉懈蟹 Yumiko gold 1泻谐 [08:20:32]line 2.000 * 168.00 [08:20:32]line = 336.00 [08:20:32]line 袧袛小 12% 袧小袩 1% [08:20:32]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [08:20:32]line 袠孝袨袚袨: 336.00 [08:20:32]line 袧小袩 1% : 2.97 [08:20:32]line 袧袛小 12% : 35.68 [08:20:32]line 袧邪谢懈褔薪褘屑懈: 336.00 [08:20:32]line 袘械蟹薪邪谢.: 0.00 [08:20:32]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [08:20:32]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [08:20:32]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [08:20:32]line 效械泻 10 14.06.2024 08:20 [08:20:32]line 小屑械薪邪: 325 肖肖袛: 1.0 [08:20:32]line 袟袧袦: 0300000200 [08:20:32]line 袪袧袦: 0000000000099755 [08:20:32]line 袙械褉褋懈褟 袣袣袦: 001 [08:20:32]line 肖袦: 0000000000965344 [08:20:32]line 肖袛: 22096 [08:20:32]line 肖袩袛: 237936648619684 [08:20:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T082043&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22096&fm=237936648619684&tin=02508201610067®Number=0000000000099755&sum=33600 [08:20:32]OFD Sender: Processing packet 22096 [packets to send 5, broken 4] [08:20:32]ProducePacketName [08:20:32]name=ofd_packets/00022096 [08:20:32]OFD Sender: To server: 嚂鰌G, [08:20:32]CommunicateWithHost lk.salyk.kg:30040 [08:20:32]ConnectInit lk.salyk.kg [08:20:32]line 0 [08:20:32]written 0, free lines is 4095 [08:20:32]Connected sock=10 [08:20: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 28 01 00 00 86 2F 20 01 FC AB 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 41 00 00 00 00 13 04 06 00 40 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 0D 00 00 00 00 07 04 06 00 40 83 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 5B FD 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 D8 66 F1 6B 86 A4 77 1B EB 9E D5 7E 05 CB [08:20: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 4D 1E 47 00 D2 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 50 56 00 00 F4 03 04 00 1C A6 6B 66 B6 04 01 00 00 55 6E 65 FF 77 E2 C6 50 [08:20:32]CommunicateWithHost err = 0 [08:20:32]CheckOFDResponse [08:20:32]1017 (14) - 77093643461234 [08:20:32]1041 (16) - 0000000000965344 [08:20:32]1040 (4) - 22096 [08:20:32]1012 (4) - 14.06.2024 02:08 [08:20:32]1206 (1) - 0 [08:20:32]OFD Sender: Remove packet 22096 [08:20:32]ProducePacketName [08:20:32]name=ofd_packets/00022096 [08:20:32]NVStorageDeleteData [08:20:32]Write to MH i2c: 01 00 00 23 33 56 [08:20:32]Write i2c OK [08:20:32]MH_I2C_Read... [08:20:32]Read from MH i2c: 01 [08:20:32]MH_I2C_Read... [08:20:32]Read from MH i2c: 01 07 00 [08:20:32]MH_I2C_Read... [08:20:32]Read from MH i2c: 01 07 00 23 33 00 00 00 00 00 39 0D A3 [08:20:32]RasterBufferAndPrint [08:20:32]line [08:20:32]line [08:20:32]line [08:20:32]line [08:20:32]line [08:20:32]written 0, free lines is 3391 [08:20:32]MH_Cut [08:20:32]Write to MH i2c: D1 01 00 2A 33 01 2F [08:20:32]Write i2c OK [08:20:32]MH_I2C_Read... [08:20:32]Read from MH i2c: D1 [08:20:32]MH_I2C_Read... [08:20:32]Read from MH i2c: D1 01 00 [08:20:32]MH_I2C_Read... [08:20:32]Read from MH i2c: D1 01 00 2A 33 00 2E [08:20:32]Write to MH i2c: 01 00 00 2B 33 5E [08:20:32]Write i2c OK [08:20:32]MH_I2C_Read... [08:20:33]OFD Sender: No OFD packet to send [08:20:33]*** Cut start [08:20:33]*** Partial cut [08:20:33]*** CUTSNS_PIN = 1 [08:20:33]*** CUTSNS_PIN = 0 [08:20:33]*** Brake cut motor [08:20:34]Read from MH i2c: 01 [08:20:34]MH_I2C_Read... [08:20:34]*** Stop cut motor [08:20:34]*** Cut end [08:20:34]Read from MH i2c: 01 07 00 [08:20:34]MH_I2C_Read... [08:20:34]Read from MH i2c: 01 07 00 2B 33 00 00 00 00 00 FF 0F 73 [08:20:34]process_action close_receipt done [08:20:34]requested_data is exist [08:20:34]produce_requested_data [08:20:34]requested_item fm.sn is exist - process it [08:20:34]wFMCommunicate request_size=4 [08:20:34]MH_SAM_APDU [08:20:34]CAPDU: 80 11 00 00 [08:20:34]Write to MH i2c: E2 08 00 2C 33 80 11 00 00 00 00 00 00 D9 [08:20:34]Write i2c OK [08:20:34]MH_I2C_Read... [08:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:34]Read from MH i2c: E2 [08:20:34]MH_I2C_Read... [08:20:34]Read from MH i2c: E2 17 00 [08:20:34]MH_I2C_Read... [08:20:34]Read from MH i2c: E2 17 00 2C 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 2B [08:20:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:20:34]wFMCommunicate OK [08:20:34]requested_item fd.num is exist - process it [08:20:34]SAM_PROTO_GetFieldsCounters [08:20:34]wFMCommunicate request_size=4 [08:20:34]MH_SAM_APDU [08:20:34]CAPDU: 80 13 00 00 [08:20:34]Write to MH i2c: E2 08 00 2D 33 80 13 00 00 00 00 00 00 DC [08:20:34]Write i2c OK [08:20:34]MH_I2C_Read... [08:20:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:34]Read from MH i2c: E2 [08:20:34]MH_I2C_Read... [08:20:34]Read from MH i2c: E2 62 00 [08:20:34]MH_I2C_Read... [08:20:34]Read from MH i2c: E2 62 00 2D 33 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 56 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [08:20: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 50 56 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:34]wFMCommunicate OK [08:20:34]SAM_PROTO_GetFieldsCounters done [08:20:34]requested_item shift.num is exist - process it [08:20:34]requested_item shift.opened is exist - process it [08:20:34]req_shift_opened [08:20:34]FM_GetShiftState [08:20:34]SAM_PROTO_GetShiftState [08:20:34]wFMCommunicate request_size=4 [08:20:34]MH_SAM_APDU [08:20:34]CAPDU: 80 13 01 00 [08:20:34]Write to MH i2c: E2 08 00 2E 33 80 13 01 00 00 00 00 00 DE [08:20:34]Write i2c OK [08:20:34]MH_I2C_Read... [08:20:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:34]Read from MH i2c: E2 [08:20:34]MH_I2C_Read... [08:20:34]Read from MH i2c: E2 0E 00 [08:20:34]MH_I2C_Read... [08:20:34]Read from MH i2c: E2 0E 00 2E 33 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 4F [08:20:34]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [08:20:34]wFMCommunicate OK [08:20:34]SAM_PROTO_GetShiftState done [08:20:34]FM_GetShiftState done [08:20:34]req_shift_opened done [08:20:34]requested_item shift.open_date is exist - process it [08:20:34]req_shift_open_date [08:20:34]req_shift_open_date done [08:20:34]produce_requested_data done [08:20:34]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22096,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [08:20:34]process_action_free close_receipt [08:20:34]json_value_free [08:20:34]json_value_free done [08:20:34]process_json_proto returns [08:20:34]Send response to host [08:20:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22096,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [08:20:34]free response buf [08:20:34]execute_script done [08:20:34]execute_script returns [08:20:34]free content buf [08:20:34]Sock 8.Close socket [08:20:34]Sock 8.Thread stoped [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]OFD Sender: No OFD packet to send [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:14]accept exits with 9 [08:24:14]New connection [08:24:14]New thread 3067321700 created [08:24:14]Thread 3067178340 joined [08:24:14]Waiting for new connection... [08:24:14] Sock 9.Parse request [08:24:14]Sock 9.Check first char [08:24:14]Sock 9.First char is OK [08:24:14]request: POST /json_proto HTTP/1.0 [08:24:14]Method: POST [08:24:14]URL: /json_proto [08:24:14]Method is POST - this is cgi request [08:24:14]url: /json_proto [08:24:14]query_string will be loaded in cgi processing [08:24:14]execute_cgi json_proto POST (null) [08:24:14]execute_cgi path=json_proto method=POST [08:24:14]POST find Content-Length [08:24:14]Host: 172.17.35.133:8080 [08:24:14]Content-Length: 632 [08:24:14]Content-Type: application/json [08:24:14] [08:24:14]POST finish read [08:24:14]Found Content-Length = 632 [08:24:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254320", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 168.00, "quantity" : 1.000, "sum" : 168.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 168.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:14]execute_script... [08:24:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254320", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 168.00, "quantity" : 1.000, "sum" : 168.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 168.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:14]POST & json_proto [08:24:14]process_json_proto [08:24:14]json parsed OK: [08:24:14]protocol is kg_v1.0 [08:24:14]action value=close_receipt [08:24:14]process_action close_receipt [08:24:14]cmd_close_receipt [08:24:14]MH_GetDate [08:24:14]Write to MH i2c: F0 00 00 2F 33 51 [08:24:14]Write i2c OK [08:24:14]MH_I2C_Read... [08:24:14]Read from MH i2c: F0 [08:24:14]MH_I2C_Read... [08:24:14]Read from MH i2c: F0 09 00 [08:24:14]MH_I2C_Read... [08:24:14]Read from MH i2c: F0 09 00 2F 33 00 3B FE 6B 66 8C 55 28 65 D2 [08:24:14]GetLastDocTimeStamp 1718353243 [08:24:14]current date 1718353467 [08:24:14]FM_GetShiftState [08:24:14]SAM_PROTO_GetShiftState [08:24:14]wFMCommunicate request_size=4 [08:24:14]MH_SAM_APDU [08:24:14]CAPDU: 80 13 01 00 [08:24:14]Write to MH i2c: E2 08 00 30 33 80 13 01 00 00 00 00 00 E0 [08:24:14]Write i2c OK [08:24:14]MH_I2C_Read... [08:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:14]Read from MH i2c: E2 [08:24:14]MH_I2C_Read... [08:24:14]Read from MH i2c: E2 0E 00 [08:24:14]MH_I2C_Read... [08:24:14]Read from MH i2c: E2 0E 00 30 33 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 51 [08:24:14]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [08:24:14]wFMCommunicate OK [08:24:14]SAM_PROTO_GetShiftState done [08:24:14]FM_GetShiftState done [08:24:14]opened in 1718324742 [08:24:14]opened+sec_in_day 1718411142 [08:24:14]quantity*price = 16800 [08:24:14]sum+1 = 16801 [08:24:14]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 168.00 袧小袩 1% : 1.49 袧袛小 12% : 17.84 袧邪谢懈褔薪褘屑懈: 168.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 11 14.06.2024 08:24 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22097 肖袩袛: 267362921785678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T082427&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22097&fm=267362921785678&tin=02508201610067®Number=0000000000099755&sum=16800 0 [08:24:15]StoreToDocumentArchive [08:24:15]shift 325 fd 22097 [08:24:15]save to /storage/0325/doc_00022097 [08:24:15]save last doc name /storage/0325/doc_00022097 to /storage/kkm_last_doc_name [08:24:15]save OK [08:24:15]Clear old archive folders... [08:24:15]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:24:15]tlvbuf is 00228090 [08:24:15]SAM_PROTO_ClearQueue [08:24:15]wFMCommunicate request_size=4 [08:24:15]MH_SAM_APDU [08:24:15]CAPDU: 80 09 00 00 [08:24:15]Write to MH i2c: E2 08 00 3D 33 80 09 00 00 00 00 00 00 E2 [08:24:15]Write i2c OK [08:24:15]MH_I2C_Read... [08:24:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:15]Read from MH i2c: E2 [08:24:15]MH_I2C_Read... [08:24:15]Read from MH i2c: E2 03 00 [08:24:15]MH_I2C_Read... [08:24:15]Read from MH i2c: E2 03 00 3D 33 00 90 00 E4 [08:24:15]RAPDU: 90 00 [08:24:15]wFMCommunicate OK [08:24:15]SAM_PROTO_ClearQueue done [08:24:15]KKMCreateOFDPacket [08:24:15]OFDProtocolAddRootSTLVToBuf [08:24:15]FM_MakeSignedData [08:24:15]FM_MakeSignedData [08:24:15]SAM_PROTO_SignData [08:24:15]wFMCommunicate request_size=4 [08:24:15]MH_SAM_APDU [08:24:15]CAPDU: 80 0D 01 02 [08:24:15]Write to MH i2c: E2 08 00 3E 33 80 0D 01 02 00 00 00 00 EA [08:24:15]Write i2c OK [08:24:15]MH_I2C_Read... [08:24:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:15]Read from MH i2c: E2 [08:24:15]MH_I2C_Read... [08:24:15]Read from MH i2c: E2 03 00 [08:24:15]MH_I2C_Read... [08:24:15]Read from MH i2c: E2 03 00 3E 33 00 90 00 E5 [08:24:15]RAPDU: 90 00 [08:24:15]wFMCommunicate OK [08:24:15]wFMCommunicate request_size=255 [08:24:15]MH_SAM_APDU [08:24:15]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 41 00 00 00 00 13 04 06 00 A0 41 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 06 00 00 00 00 07 04 06 00 A0 41 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 3B FE 6B 66 0E 04 04 00 45 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 [08:24:15]Write to MH i2c: E2 02 01 3F 33 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 41 00 00 00 00 13 04 06 00 A0 41 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 06 00 00 00 00 07 04 06 00 A0 41 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 3B FE 6B 66 0E 04 04 00 45 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 5D [08:24:15]Write i2c OK [08:24:15]MH_I2C_Read... [08:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:15]Read from MH i2c: E2 [08:24:15]MH_I2C_Read... [08:24:15]Read from MH i2c: E2 03 00 [08:24:15]MH_I2C_Read... [08:24:15]Read from MH i2c: E2 03 00 3F 33 00 90 00 E6 [08:24:15]RAPDU: 90 00 [08:24:15]wFMCommunicate OK [08:24:15]wFMCommunicate request_size=35 [08:24:15]MH_SAM_APDU [08:24:15]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 51 56 00 00 35 04 06 00 F3 2A 47 FA A9 4E [08:24:15]Write to MH i2c: E2 26 00 40 33 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 51 56 00 00 35 04 06 00 F3 2A 47 FA A9 4E 00 00 DB [08:24:15]Write i2c OK [08:24:15]MH_I2C_Read... [08:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:16]Read from MH i2c: E2 [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: E2 03 00 [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: E2 03 00 40 33 00 90 00 E7 [08:24:16]RAPDU: 90 00 [08:24:16]wFMCommunicate OK [08:24:16]wFMCommunicate request_size=4 [08:24:16]MH_SAM_APDU [08:24:16]CAPDU: 80 0D 03 02 [08:24:16]Write to MH i2c: E2 08 00 41 33 80 0D 03 02 00 00 00 00 EF [08:24:16]Write i2c OK [08:24:16]MH_I2C_Read... [08:24:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:16]Read from MH i2c: E2 [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: E2 0B 00 [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: E2 0B 00 41 33 00 3B 69 A7 70 15 57 D9 C4 90 00 B4 [08:24:16]RAPDU: 3B 69 A7 70 15 57 D9 C4 90 00 [08:24:16]wFMCommunicate OK [08:24:16]SAM_PROTO_SignData done [08:24:16]FM_MakeSignedData done [08:24:16]CreateOFDProtocolMessage [08:24:16]wFMCommunicate request_size=4 [08:24:16]MH_SAM_APDU [08:24:16]CAPDU: 80 11 00 00 [08:24:16]Write to MH i2c: E2 08 00 42 33 80 11 00 00 00 00 00 00 EF [08:24:16]Write i2c OK [08:24:16]MH_I2C_Read... [08:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:16]Read from MH i2c: E2 [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: E2 17 00 [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: E2 17 00 42 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 41 [08:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:24:16]wFMCommunicate OK [08:24:16]CreateOFDProtocolMessage done [08:24:16]OFDSenderStorePacket 22097 [08:24:16]StoreOFDPacket docnum=22097 [08:24:16]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 D5 38 20 01 B7 06 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 41 00 00 00 00 13 04 06 00 A0 41 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 06 00 00 00 00 07 04 06 00 A0 41 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 3B FE 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 F3 2A 47 FA A9 4E 3B 69 A7 70 15 57 D9 C4 [08:24:16]CheckFolder [08:24:16]dirname=/storage/ofd_packets [08:24:16]CheckFolder done [08:24:16]ProducePacketName [08:24:16]name=ofd_packets/00022097 [08:24:16]NVStorageSaveData ofd_packets/00022097 [08:24:16]File name is /storage/ofd_packets/00022097 [08:24:16]Write 326 bytes [08:24:16]NVStorageSaveData done [08:24:16]OFDSenderStorePacket done [08:24:16]KKMCreateOFDPacket done [08:24:16]NVStorageSaveData kkm_last_timestamp [08:24:16]File name is /storage/kkm_last_timestamp [08:24:16]Write 4 bytes [08:24:16]NVStorageSaveData done [08:24:16]ExternCall_PrintAddStr [08:24:16]wPrintStart [08:24:16]Write to MH i2c: 01 00 00 43 33 76 [08:24:16]Write i2c OK [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: 01 [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: 01 07 00 [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: 01 07 00 43 33 00 00 00 00 00 FF 0F 8B [08:24:16]RasterBufferAndPrint [08:24:16]line 小褔械褌 N : (3)254320 [08:24:16]line 袠袧袧: 02508201610067 [08:24:16]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [08:24:16]line 袩袪袨袛袗袞袗 [08:24:16]line 孝芯胁邪褉: 4780022460452 [08:24:16]line 袗薪褌懈褎褉懈蟹 Yumiko gold 1泻谐 [08:24:16]line 1.000 * 168.00 [08:24:16]line = 168.00 [08:24:16]line 袧袛小 12% 袧小袩 1% [08:24:16]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [08:24:16]line 袠孝袨袚袨: 168.00 [08:24:16]line 袧小袩 1% : 1.49 [08:24:16]line 袧袛小 12% : 17.84 [08:24:16]line 袧邪谢懈褔薪褘屑懈: 168.00 [08:24:16]line 袘械蟹薪邪谢.: 0.00 [08:24:16]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [08:24:16]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [08:24:16]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [08:24:16]line 效械泻 11 14.06.2024 08:24 [08:24:16]line 小屑械薪邪: 325 肖肖袛: 1.0 [08:24:16]line 袟袧袦: 0300000200 [08:24:16]line 袪袧袦: 0000000000099755 [08:24:16]line 袙械褉褋懈褟 袣袣袦: 001 [08:24:16]line 肖袦: 0000000000965344 [08:24:16]line 肖袛: 22097 [08:24:16]line 肖袩袛: 267362921785678 [08:24:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T082427&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22097&fm=267362921785678&tin=02508201610067®Number=0000000000099755&sum=16800 [08:24:16]line 0 [08:24:16]OFD Sender: Processing packet 22097 [packets to send 5, broken 4] [08:24:16]ProducePacketName [08:24:16]name=ofd_packets/00022097 [08:24:16]OFD Sender: To server: 嚂鰌G, [08:24:16]CommunicateWithHost lk.salyk.kg:30040 [08:24:16]ConnectInit lk.salyk.kg [08:24:16]written 0, free lines is 4095 [08:24:16]Connected sock=10 [08:24:16]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 D5 38 20 01 B7 06 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 41 00 00 00 00 13 04 06 00 A0 41 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 06 00 00 00 00 07 04 06 00 A0 41 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 3B FE 6B 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 F3 2A 47 FA A9 4E 3B 69 A7 70 15 57 D9 C4 [08: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 20 85 47 00 39 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 51 56 00 00 F4 03 04 00 FC A6 6B 66 B6 04 01 00 00 C6 84 CE 91 89 80 5F D5 [08:24:16]CommunicateWithHost err = 0 [08:24:16]CheckOFDResponse [08:24:16]1017 (14) - 77093643461234 [08:24:16]1041 (16) - 0000000000965344 [08:24:16]1040 (4) - 22097 [08:24:16]1012 (4) - 14.06.2024 02:12 [08:24:16]1206 (1) - 0 [08:24:16]OFD Sender: Remove packet 22097 [08:24:16]ProducePacketName [08:24:16]name=ofd_packets/00022097 [08:24:16]NVStorageDeleteData [08:24:16]Write to MH i2c: 01 00 00 6B 33 9E [08:24:16]Write i2c OK [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: 01 [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: 01 07 00 [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: 01 07 00 6B 33 00 00 00 00 00 36 0D E8 [08:24:16]RasterBufferAndPrint [08:24:16]line [08:24:16]line [08:24:16]line [08:24:16]line [08:24:16]line [08:24:16]written 0, free lines is 3388 [08:24:16]MH_Cut [08:24:16]Write to MH i2c: D1 01 00 72 33 01 77 [08:24:16]Write i2c OK [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: D1 [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: D1 01 00 [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: D1 01 00 72 33 00 76 [08:24:16]Write to MH i2c: 01 00 00 73 33 A6 [08:24:16]Write i2c OK [08:24:16]MH_I2C_Read... [08:24:17]OFD Sender: No OFD packet to send [08:24:17]*** Cut start [08:24:17]*** Partial cut [08:24:17]*** CUTSNS_PIN = 1 [08:24:17]*** CUTSNS_PIN = 0 [08:24:17]*** Brake cut motor [08:24:18]Read from MH i2c: 01 [08:24:18]MH_I2C_Read... [08:24:18]*** Stop cut motor [08:24:18]*** Cut end [08:24:18]Read from MH i2c: 01 07 00 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: 01 07 00 73 33 00 00 00 00 00 FF 0F BB [08:24:18]process_action close_receipt done [08:24:18]requested_data is exist [08:24:18]produce_requested_data [08:24:18]requested_item fm.sn is exist - process it [08:24:18]wFMCommunicate request_size=4 [08:24:18]MH_SAM_APDU [08:24:18]CAPDU: 80 11 00 00 [08:24:18]Write to MH i2c: E2 08 00 74 33 80 11 00 00 00 00 00 00 21 [08:24:18]Write i2c OK [08:24:18]MH_I2C_Read... [08:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:18]Read from MH i2c: E2 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: E2 17 00 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: E2 17 00 74 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 73 [08:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:24:18]wFMCommunicate OK [08:24:18]requested_item fd.num is exist - process it [08:24:18]SAM_PROTO_GetFieldsCounters [08:24:18]wFMCommunicate request_size=4 [08:24:18]MH_SAM_APDU [08:24:18]CAPDU: 80 13 00 00 [08:24:18]Write to MH i2c: E2 08 00 75 33 80 13 00 00 00 00 00 00 24 [08:24:18]Write i2c OK [08:24:18]MH_I2C_Read... [08:24:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:18]Read from MH i2c: E2 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: E2 62 00 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: E2 62 00 75 33 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 56 00 00 0E 04 04 00 45 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 5C [08:24:18]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 56 00 00 0E 04 04 00 45 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 [08:24:18]wFMCommunicate OK [08:24:18]SAM_PROTO_GetFieldsCounters done [08:24:18]requested_item shift.num is exist - process it [08:24:18]requested_item shift.opened is exist - process it [08:24:18]req_shift_opened [08:24:18]FM_GetShiftState [08:24:18]SAM_PROTO_GetShiftState [08:24:18]wFMCommunicate request_size=4 [08:24:18]MH_SAM_APDU [08:24:18]CAPDU: 80 13 01 00 [08:24:18]Write to MH i2c: E2 08 00 76 33 80 13 01 00 00 00 00 00 26 [08:24:18]Write i2c OK [08:24:18]MH_I2C_Read... [08:24:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:18]Read from MH i2c: E2 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: E2 0E 00 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: E2 0E 00 76 33 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 97 [08:24:18]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [08:24:18]wFMCommunicate OK [08:24:18]SAM_PROTO_GetShiftState done [08:24:18]FM_GetShiftState done [08:24:18]req_shift_opened done [08:24:18]requested_item shift.open_date is exist - process it [08:24:18]req_shift_open_date [08:24:18]req_shift_open_date done [08:24:18]produce_requested_data done [08:24:18]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22097,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [08:24:18]process_action_free close_receipt [08:24:18]json_value_free [08:24:18]json_value_free done [08:24:18]process_json_proto returns [08:24:18]Send response to host [08:24:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22097,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [08:24:18]free response buf [08:24:18]execute_script done [08:24:18]execute_script returns [08:24:18]free content buf [08:24:18]Sock 9.Close socket [08:24:18]Sock 9.Thread stoped [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]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:58]OFD Sender: No OFD packet to send [08:51:03]OFD Sender: No OFD packet to send [08:51:08]OFD Sender: No OFD packet to send [08:51:13]OFD Sender: No OFD packet to send [08:51:18]OFD Sender: No OFD packet to send [08:51:23]OFD Sender: No OFD packet to send [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]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:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]OFD Sender: No OFD packet to send [09:02:29]OFD Sender: No OFD packet to send [09:02:34]OFD Sender: No OFD packet to send [09:02:39]OFD Sender: No OFD packet to send [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:50]accept exits with 8 [09:09:50]New connection [09:09:50]New thread 3067178340 created [09:09:50]Thread 3067321700 joined [09:09:50]Waiting for new connection... [09:09:50] Sock 8.Parse request [09:09:50]Sock 8.Check first char [09:09:50]Sock 8.First char is OK [09:09:50]request: POST /json_proto HTTP/1.0 [09:09:50]Method: POST [09:09:50]URL: /json_proto [09:09:50]Method is POST - this is cgi request [09:09:50]url: /json_proto [09:09:50]query_string will be loaded in cgi processing [09:09:50]execute_cgi json_proto POST (null) [09:09:50]execute_cgi path=json_proto method=POST [09:09:50]POST find Content-Length [09:09:50]Host: 172.17.35.133:8080 [09:09:50]Content-Length: 844 [09:09:50]Content-Type: application/json [09:09:50] [09:09:50]POST finish read [09:09:50]Found Content-Length = 844 [09:09:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1609859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 25.130, "sum" : 1653.55, "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" : 1653.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:50]execute_script... [09:09:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1609859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 25.130, "sum" : 1653.55, "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" : 1653.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:50]POST & json_proto [09:09:50]process_json_proto [09:09:50]json parsed OK: [09:09:50]protocol is kg_v1.0 [09:09:50]action value=close_receipt [09:09:50]process_action close_receipt [09:09:50]cmd_close_receipt [09:09:50]MH_GetDate [09:09:50]Write to MH i2c: F0 00 00 77 33 99 [09:09:50]Write i2c OK [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: F0 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: F0 09 00 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: F0 09 00 77 33 00 EB 08 6C 66 8C 55 28 65 D5 [09:09:50]GetLastDocTimeStamp 1718353467 [09:09:50]current date 1718356203 [09:09:50]FM_GetShiftState [09:09:50]SAM_PROTO_GetShiftState [09:09:50]wFMCommunicate request_size=4 [09:09:50]MH_SAM_APDU [09:09:50]CAPDU: 80 13 01 00 [09:09:50]Write to MH i2c: E2 08 00 78 33 80 13 01 00 00 00 00 00 28 [09:09:50]Write i2c OK [09:09:50]MH_I2C_Read... [09:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:50]Read from MH i2c: E2 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 0E 00 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 0E 00 78 33 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 99 [09:09:50]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [09:09:50]wFMCommunicate OK [09:09:50]SAM_PROTO_GetShiftState done [09:09:50]FM_GetShiftState done [09:09:50]opened in 1718324742 [09:09:50]opened+sec_in_day 1718411142 [09:09:50]quantity*price = 165355 [09:09:50]sum+1 = 165356 [09:09:50]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 1653.55 袧小袩 1% : 14.63 袧袛小 12% : 175.60 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 1653.55 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 12 14.06.2024 09:10 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袗袣袘 袣褘褉谐褘蟹褋褌邪薪 肖袦: 0000000000965344 肖袛: 22098 肖袩袛: 222979469061091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T091003&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22098&fm=222979469061091&tin=02508201610067®Number=0000000000099755&sum=165355 [09:09:51]StoreToDocumentArchive [09:09:51]shift 325 fd 22098 [09:09:51]save to /storage/0325/doc_00022098 [09:09:51]save last doc name /storage/0325/doc_00022098 to /storage/kkm_last_doc_name [09:09:51]save OK [09:09:51]Clear old archive folders... [09:09:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:51]tlvbuf is 003C9570 [09:09:51]SAM_PROTO_ClearQueue [09:09:51]wFMCommunicate request_size=4 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 09 00 00 [09:09:51]Write to MH i2c: E2 08 00 85 33 80 09 00 00 00 00 00 00 2A [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 03 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 03 00 85 33 00 90 00 2C [09:09:51]RAPDU: 90 00 [09:09:51]wFMCommunicate OK [09:09:51]SAM_PROTO_ClearQueue done [09:09:51]KKMCreateOFDPacket [09:09:51]OFDProtocolAddRootSTLVToBuf [09:09:51]FM_MakeSignedData [09:09:51]FM_MakeSignedData [09:09:51]SAM_PROTO_SignData [09:09:51]wFMCommunicate request_size=4 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 0D 01 02 [09:09:51]Write to MH i2c: E2 08 00 86 33 80 0D 01 02 00 00 00 00 32 [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 03 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 03 00 86 33 00 90 00 2D [09:09:51]RAPDU: 90 00 [09:09:51]wFMCommunicate OK [09:09:51]wFMCommunicate request_size=255 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 62 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EB 85 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB 85 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB 85 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 EB 08 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 CA [09:09:51]Write to MH i2c: E2 02 01 87 33 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 2A 62 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EB 85 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB 85 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB 85 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 EB 08 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 CA 00 00 15 [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 03 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 03 00 87 33 00 90 00 2E [09:09:51]RAPDU: 90 00 [09:09:51]wFMCommunicate OK [09:09:51]wFMCommunicate request_size=10 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 0D 02 02 05 CC 74 0B AB E3 [09:09:51]Write to MH i2c: E2 0D 00 88 33 80 0D 02 02 05 00 CC 74 0B AB E3 00 00 18 [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 03 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 03 00 88 33 00 90 00 2F [09:09:51]RAPDU: 90 00 [09:09:51]wFMCommunicate OK [09:09:51]wFMCommunicate request_size=4 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 0D 03 02 [09:09:51]Write to MH i2c: E2 08 00 89 33 80 0D 03 02 00 00 00 00 37 [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 0B 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 0B 00 89 33 00 0F 36 D2 44 5E 68 42 67 90 00 02 [09:09:51]RAPDU: 0F 36 D2 44 5E 68 42 67 90 00 [09:09:51]wFMCommunicate OK [09:09:51]SAM_PROTO_SignData done [09:09:51]FM_MakeSignedData done [09:09:51]CreateOFDProtocolMessage [09:09:51]wFMCommunicate request_size=4 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 11 00 00 [09:09:51]Write to MH i2c: E2 08 00 8A 33 80 11 00 00 00 00 00 00 37 [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 17 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 17 00 8A 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 89 [09:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:09:51]wFMCommunicate OK [09:09:51]CreateOFDProtocolMessage done [09:09:51]OFDSenderStorePacket 22098 [09:09:51]StoreOFDPacket docnum=22098 [09:09: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 0F 01 00 00 95 77 07 01 6B F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 62 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EB 85 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB 85 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB 85 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 EB 08 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 CA CC 74 0B AB E3 0F 36 D2 44 5E 68 42 67 [09:09:51]CheckFolder [09:09:51]dirname=/storage/ofd_packets [09:09:51]CheckFolder done [09:09:51]ProducePacketName [09:09:51]name=ofd_packets/00022098 [09:09:51]NVStorageSaveData ofd_packets/00022098 [09:09:51]File name is /storage/ofd_packets/00022098 [09:09:51]Write 301 bytes [09:09:51]NVStorageSaveData done [09:09:51]OFDSenderStorePacket done [09:09:51]KKMCreateOFDPacket done [09:09:51]NVStorageSaveData kkm_last_timestamp [09:09:51]File name is /storage/kkm_last_timestamp [09:09:51]Write 4 bytes [09:09:51]NVStorageSaveData done [09:09:51]ExternCall_PrintAddStr [09:09:51]wPrintStart [09:09:51]Write to MH i2c: 01 00 00 8B 33 BE [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: 01 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: 01 07 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: 01 07 00 8B 33 00 00 00 00 00 FF 0F D3 [09:09:51]RasterBufferAndPrint [09:09:51]line 小褔械褌 N : (1)1609859 [09:09:51]line 袠袧袧: 02508201610067 [09:09:51]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [09:09:51]line 袩袪袨袛袗袞袗 [09:09:51]line 孝袪袣 (袦袪袣, 袚袧袣) : 33 [09:09:51]line 孝芯胁邪褉: 2710124130 [09:09:51]line 袗懈-92-袣-5 [09:09:51]line 25.130 * 65.80 [09:09:51]line = 1653.55 [09:09:51]line 袧袛小 12% 袧小袩 1% [09:09:51]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [09:09:51]line 袠孝袨袚袨: 1653.55 [09:09:51]line 袧小袩 1% : 14.63 [09:09:51]line 袧袛小 12% : 175.60 [09:09:51]line 袧邪谢懈褔薪褘屑懈: 0.00 [09:09:51]line 袘械蟹薪邪谢.: 1653.55 [09:09:51]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [09:09:51]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [09:09:51]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [09:09:51]line 效械泻 12 14.06.2024 09:10 [09:09:51]line 小屑械薪邪: 325 肖肖袛: 1.0 [09:09:51]line 袟袧袦: 0300000200 [09:09:51]line 袪袧袦: 0000000000099755 [09:09:51]line 袙械褉褋懈褟 袣袣袦: 001 [09:09:51]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袗袣袘 袣褘褉谐褘蟹褋褌邪薪 [09:09:51]line 肖袦: 0000000000965344 [09:09:51]line 肖袛: 22098 [09:09:51]line 肖袩袛: 222979469061091 [09:09:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T091003&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22098&fm=222979469061091&tin=02508201610067®Number=0000000000099755&sum=165355 [09:09:52]OFD Sender: Processing packet 22098 [packets to send 5, broken 4] [09:09:52]ProducePacketName [09:09:52]name=ofd_packets/00022098 [09:09:52]OFD Sender: To server: 嚂鰌G, [09:09:52]CommunicateWithHost lk.salyk.kg:30040 [09:09:52]ConnectInit lk.salyk.kg [09:09:52]written 0, free lines is 4095 [09:09:52]Connected sock=10 [09:09:52]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 95 77 07 01 6B F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 62 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EB 85 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB 85 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB 85 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 EB 08 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 CA CC 74 0B AB E3 0F 36 D2 44 5E 68 42 67 [09:09: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 1B 4B 47 00 97 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 52 56 00 00 F4 03 04 00 AC B1 6B 66 B6 04 01 00 00 E2 EE F2 A8 6D 2E 8F DA [09:09:52]CommunicateWithHost err = 0 [09:09:52]CheckOFDResponse [09:09:52]1017 (14) - 77093643461234 [09:09:52]1041 (16) - 0000000000965344 [09:09:52]1040 (4) - 22098 [09:09:52]1012 (4) - 14.06.2024 02:57 [09:09:52]1206 (1) - 0 [09:09:52]OFD Sender: Remove packet 22098 [09:09:52]ProducePacketName [09:09:52]name=ofd_packets/00022098 [09:09:52]NVStorageDeleteData [09:09:52]Write to MH i2c: 01 00 00 B5 33 E8 [09:09:52]Write i2c OK [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: 01 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: 01 07 00 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: 01 07 00 B5 33 00 00 00 00 00 1E 0D 1A [09:09:52]RasterBufferAndPrint [09:09:52]line [09:09:52]line [09:09:52]line [09:09:52]line [09:09:52]line [09:09:52]written 0, free lines is 3367 [09:09:52]MH_Cut [09:09:52]Write to MH i2c: D1 01 00 BC 33 01 C1 [09:09:52]Write i2c OK [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: D1 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: D1 01 00 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: D1 01 00 BC 33 00 C0 [09:09:52]Write to MH i2c: 01 00 00 BD 33 F0 [09:09:52]Write i2c OK [09:09:52]MH_I2C_Read... [09:09:52]OFD Sender: No OFD packet to send [09:09:53]*** Cut start [09:09:53]*** Partial cut [09:09:53]*** CUTSNS_PIN = 1 [09:09:53]*** CUTSNS_PIN = 0 [09:09:53]*** Brake cut motor [09:09:53]Read from MH i2c: 01 [09:09:53]MH_I2C_Read... [09:09:53]*** Stop cut motor [09:09:53]*** Cut end [09:09:53]Read from MH i2c: 01 07 00 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: 01 07 00 BD 33 00 00 00 00 00 FF 0F 05 [09:09:53]process_action close_receipt done [09:09:53]requested_data is exist [09:09:53]produce_requested_data [09:09:53]requested_item fm.sn is exist - process it [09:09:53]wFMCommunicate request_size=4 [09:09:53]MH_SAM_APDU [09:09:53]CAPDU: 80 11 00 00 [09:09:53]Write to MH i2c: E2 08 00 BE 33 80 11 00 00 00 00 00 00 6B [09:09:53]Write i2c OK [09:09:53]MH_I2C_Read... [09:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:53]Read from MH i2c: E2 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 17 00 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 17 00 BE 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 BD [09:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:09:53]wFMCommunicate OK [09:09:53]requested_item fd.num is exist - process it [09:09:53]SAM_PROTO_GetFieldsCounters [09:09:53]wFMCommunicate request_size=4 [09:09:53]MH_SAM_APDU [09:09:53]CAPDU: 80 13 00 00 [09:09:53]Write to MH i2c: E2 08 00 BF 33 80 13 00 00 00 00 00 00 6E [09:09:53]Write i2c OK [09:09:53]MH_I2C_Read... [09:09:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:54]Read from MH i2c: E2 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 62 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 62 00 BF 33 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 56 00 00 0E 04 04 00 45 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 AA [09:09:54]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 56 00 00 0E 04 04 00 45 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 [09:09:54]wFMCommunicate OK [09:09:54]SAM_PROTO_GetFieldsCounters done [09:09:54]requested_item shift.num is exist - process it [09:09:54]requested_item shift.opened is exist - process it [09:09:54]req_shift_opened [09:09:54]FM_GetShiftState [09:09:54]SAM_PROTO_GetShiftState [09:09:54]wFMCommunicate request_size=4 [09:09:54]MH_SAM_APDU [09:09:54]CAPDU: 80 13 01 00 [09:09:54]Write to MH i2c: E2 08 00 C0 33 80 13 01 00 00 00 00 00 70 [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:54]Read from MH i2c: E2 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 0E 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 0E 00 C0 33 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 E1 [09:09:54]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [09:09:54]wFMCommunicate OK [09:09:54]SAM_PROTO_GetShiftState done [09:09:54]FM_GetShiftState done [09:09:54]req_shift_opened done [09:09:54]requested_item shift.open_date is exist - process it [09:09:54]req_shift_open_date [09:09:54]req_shift_open_date done [09:09:54]produce_requested_data done [09:09:54]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22098,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [09:09:54]process_action_free close_receipt [09:09:54]json_value_free [09:09:54]json_value_free done [09:09:54]process_json_proto returns [09:09:54]Send response to host [09:09:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22098,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [09:09:54]free response buf [09:09:54]execute_script done [09:09:54]execute_script returns [09:09:54]free content buf [09:09:54]Sock 8.Close socket [09:09:54]Sock 8.Thread stoped [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12: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:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]accept exits with 9 [09:28:18]New connection [09:28:18]New thread 3067321700 created [09:28:18]Thread 3067178340 joined [09:28:18]Waiting for new connection... [09:28:18] Sock 9.Parse request [09:28:18]Sock 9.Check first char [09:28:18]Sock 9.First char is OK [09:28:18]request: POST /json_proto HTTP/1.0 [09:28:18]Method: POST [09:28:18]URL: /json_proto [09:28:18]Method is POST - this is cgi request [09:28:18]url: /json_proto [09:28:18]query_string will be loaded in cgi processing [09:28:18]execute_cgi json_proto POST (null) [09:28:18]execute_cgi path=json_proto method=POST [09:28:18]POST find Content-Length [09:28:18]Host: 172.17.35.133:8080 [09:28:18]Content-Length: 714 [09:28:18]Content-Type: application/json [09:28:18] [09:28:18]POST finish read [09:28:18]Found Content-Length = 714 [09:28:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254321", "tax_sys" : 0, "items" : [ { "code": "4870235681086", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u044B\u0440 \u0441 \u0445\u0430\u043B\u0430\u043F\u0435\u043D\u044C\u043E 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" ] } } [09:28:18]execute_script... [09:28:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254321", "tax_sys" : 0, "items" : [ { "code": "4870235681086", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u044B\u0440 \u0441 \u0445\u0430\u043B\u0430\u043F\u0435\u043D\u044C\u043E 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" ] } } [09:28:18]POST & json_proto [09:28:18]process_json_proto [09:28:18]json parsed OK: [09:28:18]protocol is kg_v1.0 [09:28:18]action value=close_receipt [09:28:18]process_action close_receipt [09:28:18]cmd_close_receipt [09:28:18]MH_GetDate [09:28:18]Write to MH i2c: F0 00 00 C1 33 E3 [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: F0 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: F0 09 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: F0 09 00 C1 33 00 3F 0D 6C 66 8C 55 28 65 78 [09:28:18]GetLastDocTimeStamp 1718356203 [09:28:18]current date 1718357311 [09:28:18]FM_GetShiftState [09:28:18]SAM_PROTO_GetShiftState [09:28:18]wFMCommunicate request_size=4 [09:28:18]MH_SAM_APDU [09:28:18]CAPDU: 80 13 01 00 [09:28:18]Write to MH i2c: E2 08 00 C2 33 80 13 01 00 00 00 00 00 72 [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:18]Read from MH i2c: E2 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 0E 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 0E 00 C2 33 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 E3 [09:28:18]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [09:28:18]wFMCommunicate OK [09:28:18]SAM_PROTO_GetShiftState done [09:28:18]FM_GetShiftState done [09:28:18]opened in 1718324742 [09:28:18]opened+sec_in_day 1718411142 [09:28:18]quantity*price = 9000 [09:28:18]sum+1 = 9001 [09:28:18]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 90.00 袧小袩 1% : 0.80 袧袛小 12% : 9.56 袧邪谢懈褔薪褘屑懈: 90.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 13 14.06.2024 09:28 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22099 肖袩袛: 14212894955286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T092831&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22099&fm=14212894955286&tin=02508201610067®Number=0000000000099755&sum=9000 0 [09:28:19]StoreToDocumentArchive [09:28:19]shift 325 fd 22099 [09:28:19]save to /storage/0325/doc_00022099 [09:28:19]save last doc name /storage/0325/doc_00022099 to /storage/kkm_last_doc_name [09:28:19]save OK [09:28:19]Clear old archive folders... [09:28:19]ProcessDocumentItem done err = 0, tmpTLVsize=305 [09:28:19]tlvbuf is 0028AC90 [09:28:19]SAM_PROTO_ClearQueue [09:28:19]wFMCommunicate request_size=4 [09:28:19]MH_SAM_APDU [09:28:19]CAPDU: 80 09 00 00 [09:28:19]Write to MH i2c: E2 08 00 CF 33 80 09 00 00 00 00 00 00 74 [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:19]Read from MH i2c: E2 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 03 00 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 03 00 CF 33 00 90 00 76 [09:28:19]RAPDU: 90 00 [09:28:19]wFMCommunicate OK [09:28:19]SAM_PROTO_ClearQueue done [09:28:19]KKMCreateOFDPacket [09:28:19]OFDProtocolAddRootSTLVToBuf [09:28:19]FM_MakeSignedData [09:28:19]FM_MakeSignedData [09:28:19]SAM_PROTO_SignData [09:28:19]wFMCommunicate request_size=4 [09:28:19]MH_SAM_APDU [09:28:19]CAPDU: 80 0D 01 02 [09:28:19]Write to MH i2c: E2 08 00 D0 33 80 0D 01 02 00 00 00 00 7C [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:19]Read from MH i2c: E2 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 03 00 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 03 00 D0 33 00 90 00 77 [09:28:19]RAPDU: 90 00 [09:28:19]wFMCommunicate OK [09:28:19]wFMCommunicate request_size=255 [09:28:19]MH_SAM_APDU [09:28:19]CAPDU: 80 0D 02 02 FA 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 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 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 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 0D 00 00 00 F4 03 04 00 3F 0D 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 [09:28:19]Write to MH i2c: E2 02 01 D1 33 80 0D 02 02 FA 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 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 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 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 0D 00 00 00 F4 03 04 00 3F 0D 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 00 00 31 [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:19]Read from MH i2c: E2 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 03 00 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 03 00 D1 33 00 90 00 78 [09:28:19]RAPDU: 90 00 [09:28:19]wFMCommunicate OK [09:28:19]wFMCommunicate request_size=64 [09:28:19]MH_SAM_APDU [09:28:19]CAPDU: 80 0D 02 02 3B 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 56 00 00 35 04 06 00 0C ED 32 8E 17 16 [09:28:19]Write to MH i2c: E2 43 00 D2 33 80 0D 02 02 3B 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 56 00 00 35 04 06 00 0C ED 32 8E 17 16 00 00 64 [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:19]Read from MH i2c: E2 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 03 00 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 03 00 D2 33 00 90 00 79 [09:28:19]RAPDU: 90 00 [09:28:19]wFMCommunicate OK [09:28:19]wFMCommunicate request_size=4 [09:28:19]MH_SAM_APDU [09:28:19]CAPDU: 80 0D 03 02 [09:28:19]Write to MH i2c: E2 08 00 D3 33 80 0D 03 02 00 00 00 00 81 [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:20]Read from MH i2c: E2 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: E2 0B 00 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: E2 0B 00 D3 33 00 05 5F B4 E0 7F 12 F7 B8 90 00 BA [09:28:20]RAPDU: 05 5F B4 E0 7F 12 F7 B8 90 00 [09:28:20]wFMCommunicate OK [09:28:20]SAM_PROTO_SignData done [09:28:20]FM_MakeSignedData done [09:28:20]CreateOFDProtocolMessage [09:28:20]wFMCommunicate request_size=4 [09:28:20]MH_SAM_APDU [09:28:20]CAPDU: 80 11 00 00 [09:28:20]Write to MH i2c: E2 08 00 D4 33 80 11 00 00 00 00 00 00 81 [09:28:20]Write i2c OK [09:28:20]MH_I2C_Read... [09:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:20]Read from MH i2c: E2 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: E2 17 00 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: E2 17 00 D4 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 D3 [09:28: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:28:20]wFMCommunicate OK [09:28:20]CreateOFDProtocolMessage done [09:28:20]OFDSenderStorePacket 22099 [09:28:20]StoreOFDPacket docnum=22099 [09:28:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 45 01 00 00 61 A5 3D 01 D3 81 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 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 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 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 0D 00 00 00 F4 03 04 00 3F 0D 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 0C ED 32 8E 17 16 05 5F B4 E0 7F 12 F7 B8 [09:28:20]CheckFolder [09:28:20]dirname=/storage/ofd_packets [09:28:20]CheckFolder done [09:28:20]ProducePacketName [09:28:20]name=ofd_packets/00022099 [09:28:20]NVStorageSaveData ofd_packets/00022099 [09:28:20]File name is /storage/ofd_packets/00022099 [09:28:20]Write 355 bytes [09:28:20]NVStorageSaveData done [09:28:20]OFDSenderStorePacket done [09:28:20]KKMCreateOFDPacket done [09:28:20]NVStorageSaveData kkm_last_timestamp [09:28:20]File name is /storage/kkm_last_timestamp [09:28:20]Write 4 bytes [09:28:20]NVStorageSaveData done [09:28:20]ExternCall_PrintAddStr [09:28:20]wPrintStart [09:28:20]Write to MH i2c: 01 00 00 D5 33 08 [09:28:20]Write i2c OK [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: 01 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: 01 07 00 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: 01 07 00 D5 33 00 00 00 00 00 FF 0F 1D [09:28:20]RasterBufferAndPrint [09:28:20]line 小褔械褌 N : (3)254321 [09:28:20]line 袠袧袧: 02508201610067 [09:28:20]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [09:28:20]line 袩袪袨袛袗袞袗 [09:28:20]line 孝芯胁邪褉: 4870235681086 [09:28:20]line Grizzly 胁芯谢薪懈褋褌褘械 小褘褉 褋 褏邪谢邪锌械薪褜芯 55 谐褉 [09:28:20]line 1.000 * 90.00 [09:28:20]line = 90.00 [09:28:20]line 袧袛小 12% 袧小袩 1% [09:28:20]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [09:28:20]line 袠孝袨袚袨: 90.00 [09:28:20]line 袧小袩 1% : 0.80 [09:28:20]line 袧袛小 12% : 9.56 [09:28:20]line 袧邪谢懈褔薪褘屑懈: 90.00 [09:28:20]line 袘械蟹薪邪谢.: 0.00 [09:28:20]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [09:28:20]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [09:28:20]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [09:28:20]line 效械泻 13 14.06.2024 09:28 [09:28:20]line 小屑械薪邪: 325 肖肖袛: 1.0 [09:28:20]line 袟袧袦: 0300000200 [09:28:20]line 袪袧袦: 0000000000099755 [09:28:20]line 袙械褉褋懈褟 袣袣袦: 001 [09:28:20]line 肖袦: 0000000000965344 [09:28:20]line 肖袛: 22099 [09:28:20]line 肖袩袛: 14212894955286 [09:28:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T092831&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22099&fm=14212894955286&tin=02508201610067®Number=0000000000099755&sum=9000 [09:28:20]line 0 [09:28:20]OFD Sender: Processing packet 22099 [packets to send 5, broken 4] [09:28:20]ProducePacketName [09:28:20]name=ofd_packets/00022099 [09:28:20]OFD Sender: To server: 嚂鰌G, [09:28:20]CommunicateWithHost lk.salyk.kg:30040 [09:28:20]ConnectInit lk.salyk.kg [09:28:20]written 0, free lines is 4095 [09:28:20]Connected sock=10 [09:28:20]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 45 01 00 00 61 A5 3D 01 D3 81 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 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 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 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 0D 00 00 00 F4 03 04 00 3F 0D 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 0C ED 32 8E 17 16 05 5F B4 E0 7F 12 F7 B8 [09:28:20]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 79 5B 47 00 8F 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 53 56 00 00 F4 03 04 00 00 B6 6B 66 B6 04 01 00 00 17 A8 A8 91 68 D2 DB C9 [09:28:20]CommunicateWithHost err = 0 [09:28:20]CheckOFDResponse [09:28:20]1017 (14) - 77093643461234 [09:28:20]1041 (16) - 0000000000965344 [09:28:20]1040 (4) - 22099 [09:28:20]1012 (4) - 14.06.2024 03:16 [09:28:20]1206 (1) - 0 [09:28:20]OFD Sender: Remove packet 22099 [09:28:20]ProducePacketName [09:28:20]name=ofd_packets/00022099 [09:28:20]NVStorageDeleteData [09:28:20]Write to MH i2c: 01 00 00 FE 33 31 [09:28:20]Write i2c OK [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: 01 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: 01 07 00 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: 01 07 00 FE 33 00 00 00 00 00 0D 0D 52 [09:28:20]RasterBufferAndPrint [09:28:20]line [09:28:20]line [09:28:20]line [09:28:20]line [09:28:20]line [09:28:20]written 0, free lines is 3347 [09:28:20]MH_Cut [09:28:20]Write to MH i2c: D1 01 00 05 34 01 0B [09:28:20]Write i2c OK [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: D1 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: D1 01 00 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: D1 01 00 05 34 00 0A [09:28:20]Write to MH i2c: 01 00 00 06 34 3A [09:28:20]Write i2c OK [09:28:20]MH_I2C_Read... [09:28:21]OFD Sender: No OFD packet to send [09:28:21]*** Cut start [09:28:21]*** Partial cut [09:28:21]*** CUTSNS_PIN = 1 [09:28:21]*** CUTSNS_PIN = 0 [09:28:21]*** Brake cut motor [09:28:22]Read from MH i2c: 01 [09:28:22]MH_I2C_Read... [09:28:22]*** Stop cut motor [09:28:22]*** Cut end [09:28:22]Read from MH i2c: 01 07 00 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: 01 07 00 06 34 00 00 00 00 00 FF 0F 4F [09:28:22]process_action close_receipt done [09:28:22]requested_data is exist [09:28:22]produce_requested_data [09:28:22]requested_item fm.sn is exist - process it [09:28:22]wFMCommunicate request_size=4 [09:28:22]MH_SAM_APDU [09:28:22]CAPDU: 80 11 00 00 [09:28:22]Write to MH i2c: E2 08 00 07 34 80 11 00 00 00 00 00 00 B5 [09:28:22]Write i2c OK [09:28:22]MH_I2C_Read... [09:28:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:22]Read from MH i2c: E2 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 17 00 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 17 00 07 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 07 [09:28:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:28:22]wFMCommunicate OK [09:28:22]requested_item fd.num is exist - process it [09:28:22]SAM_PROTO_GetFieldsCounters [09:28:22]wFMCommunicate request_size=4 [09:28:22]MH_SAM_APDU [09:28:22]CAPDU: 80 13 00 00 [09:28:22]Write to MH i2c: E2 08 00 08 34 80 13 00 00 00 00 00 00 B8 [09:28:22]Write i2c OK [09:28:22]MH_I2C_Read... [09:28:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:22]Read from MH i2c: E2 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 62 00 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 62 00 08 34 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 56 00 00 0E 04 04 00 45 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 F8 [09:28:22]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 56 00 00 0E 04 04 00 45 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 [09:28:22]wFMCommunicate OK [09:28:22]SAM_PROTO_GetFieldsCounters done [09:28:22]requested_item shift.num is exist - process it [09:28:22]requested_item shift.opened is exist - process it [09:28:22]req_shift_opened [09:28:22]FM_GetShiftState [09:28:22]SAM_PROTO_GetShiftState [09:28:22]wFMCommunicate request_size=4 [09:28:22]MH_SAM_APDU [09:28:22]CAPDU: 80 13 01 00 [09:28:22]Write to MH i2c: E2 08 00 09 34 80 13 01 00 00 00 00 00 BA [09:28:22]Write i2c OK [09:28:22]MH_I2C_Read... [09:28:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:22]Read from MH i2c: E2 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 0E 00 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 0E 00 09 34 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 2B [09:28:22]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [09:28:22]wFMCommunicate OK [09:28:22]SAM_PROTO_GetShiftState done [09:28:22]FM_GetShiftState done [09:28:22]req_shift_opened done [09:28:22]requested_item shift.open_date is exist - process it [09:28:22]req_shift_open_date [09:28:22]req_shift_open_date done [09:28:22]produce_requested_data done [09:28:22]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22099,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [09:28:22]process_action_free close_receipt [09:28:22]json_value_free [09:28:22]json_value_free done [09:28:22]process_json_proto returns [09:28:22]Send response to host [09:28:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22099,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [09:28:22]free response buf [09:28:22]execute_script done [09:28:22]execute_script returns [09:28:22]free content buf [09:28:22]Sock 9.Close socket [09:28:22]Sock 9.Thread stoped [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: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:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]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:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]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:23]OFD Sender: No OFD packet to send [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:36]accept exits with 8 [10:11:36]New connection [10:11:36]New thread 3067178340 created [10:11:36]Thread 3067321700 joined [10:11:36]Waiting for new connection... [10:11:36] Sock 8.Parse request [10:11:36]Sock 8.Check first char [10:11:36]Sock 8.First char is OK [10:11:36]request: POST /json_proto HTTP/1.0 [10:11:36]Method: POST [10:11:36]URL: /json_proto [10:11:36]Method is POST - this is cgi request [10:11:36]url: /json_proto [10:11:36]query_string will be loaded in cgi processing [10:11:36]execute_cgi json_proto POST (null) [10:11:36]execute_cgi path=json_proto method=POST [10:11:36]POST find Content-Length [10:11:36]Host: 172.17.35.133:8080 [10:11:36]Content-Length: 621 [10:11:36]Content-Type: application/json [10:11:36] [10:11:36]POST finish read [10:11:36]Found Content-Length = 621 [10:11:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254322", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:36]execute_script... [10:11:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254322", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:36]POST & json_proto [10:11:36]process_json_proto [10:11:36]json parsed OK: [10:11:36]protocol is kg_v1.0 [10:11:36]action value=close_receipt [10:11:36]process_action close_receipt [10:11:36]cmd_close_receipt [10:11:36]MH_GetDate [10:11:36]Write to MH i2c: F0 00 00 0A 34 2D [10:11:36]Write i2c OK [10:11:36]MH_I2C_Read... [10:11:36]Read from MH i2c: F0 [10:11:36]MH_I2C_Read... [10:11:36]Read from MH i2c: F0 09 00 [10:11:36]MH_I2C_Read... [10:11:36]Read from MH i2c: F0 09 00 0A 34 00 65 17 6C 66 8C 55 28 65 F2 [10:11:36]GetLastDocTimeStamp 1718357311 [10:11:36]current date 1718359909 [10:11:36]FM_GetShiftState [10:11:36]SAM_PROTO_GetShiftState [10:11:36]wFMCommunicate request_size=4 [10:11:36]MH_SAM_APDU [10:11:36]CAPDU: 80 13 01 00 [10:11:36]Write to MH i2c: E2 08 00 0B 34 80 13 01 00 00 00 00 00 BC [10:11:36]Write i2c OK [10:11:36]MH_I2C_Read... [10:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:36]Read from MH i2c: E2 [10:11:36]MH_I2C_Read... [10:11:36]Read from MH i2c: E2 0E 00 [10:11:36]MH_I2C_Read... [10:11:36]Read from MH i2c: E2 0E 00 0B 34 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 2D [10:11:36]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [10:11:36]wFMCommunicate OK [10:11:36]SAM_PROTO_GetShiftState done [10:11:36]FM_GetShiftState done [10:11:36]opened in 1718324742 [10:11:36]opened+sec_in_day 1718411142 [10:11:36]quantity*price = 14000 [10:11:36]sum+1 = 14001 [10:11:36]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 140.00 袧小袩 1% : 1.24 袧袛小 12% : 14.87 袧邪谢懈褔薪褘屑懈: 140.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 14 14.06.2024 10:11 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22100 肖袩袛: 34691111076461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T101149&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22100&fm=34691111076461&tin=02508201610067®Number=0000000000099755&sum=14000 0 [10:11:37]StoreToDocumentArchive [10:11:37]shift 325 fd 22100 [10:11:37]save to /storage/0325/doc_00022100 [10:11:37]save last doc name /storage/0325/doc_00022100 to /storage/kkm_last_doc_name [10:11:37]save OK [10:11:37]Clear old archive folders... [10:11:37]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:11:37]tlvbuf is 00249420 [10:11:37]SAM_PROTO_ClearQueue [10:11:37]wFMCommunicate request_size=4 [10:11:37]MH_SAM_APDU [10:11:37]CAPDU: 80 09 00 00 [10:11:37]Write to MH i2c: E2 08 00 18 34 80 09 00 00 00 00 00 00 BE [10:11:37]Write i2c OK [10:11:37]MH_I2C_Read... [10:11:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:37]Read from MH i2c: E2 [10:11:37]MH_I2C_Read... [10:11:37]Read from MH i2c: E2 03 00 [10:11:37]MH_I2C_Read... [10:11:37]Read from MH i2c: E2 03 00 18 34 00 90 00 C0 [10:11:37]RAPDU: 90 00 [10:11:37]wFMCommunicate OK [10:11:37]SAM_PROTO_ClearQueue done [10:11:37]KKMCreateOFDPacket [10:11:37]OFDProtocolAddRootSTLVToBuf [10:11:37]FM_MakeSignedData [10:11:37]FM_MakeSignedData [10:11:37]SAM_PROTO_SignData [10:11:37]wFMCommunicate request_size=4 [10:11:37]MH_SAM_APDU [10:11:37]CAPDU: 80 0D 01 02 [10:11:37]Write to MH i2c: E2 08 00 19 34 80 0D 01 02 00 00 00 00 C6 [10:11:37]Write i2c OK [10:11:37]MH_I2C_Read... [10:11:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:37]Read from MH i2c: E2 [10:11:37]MH_I2C_Read... [10:11:37]Read from MH i2c: E2 03 00 [10:11:37]MH_I2C_Read... [10:11:37]Read from MH i2c: E2 03 00 19 34 00 90 00 C1 [10:11:37]RAPDU: 90 00 [10:11:37]wFMCommunicate OK [10:11:37]wFMCommunicate request_size=255 [10:11:37]MH_SAM_APDU [10:11:37]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 65 17 6C 66 0E 04 04 00 45 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 [10:11:37]Write to MH i2c: E2 02 01 1A 34 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 65 17 6C 66 0E 04 04 00 45 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 67 [10:11:37]Write i2c OK [10:11:37]MH_I2C_Read... [10:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:37]Read from MH i2c: E2 [10:11:37]MH_I2C_Read... [10:11:37]Read from MH i2c: E2 03 00 [10:11:37]MH_I2C_Read... [10:11:37]Read from MH i2c: E2 03 00 1A 34 00 90 00 C2 [10:11:37]RAPDU: 90 00 [10:11:37]wFMCommunicate OK [10:11:37]wFMCommunicate request_size=32 [10:11:37]MH_SAM_APDU [10:11:37]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 34 34 10 04 04 00 54 56 00 00 35 04 06 00 1F 8D 27 5A 42 6D [10:11:37]Write to MH i2c: E2 23 00 1B 34 80 0D 02 02 1B 00 30 30 30 39 36 35 33 34 34 10 04 04 00 54 56 00 00 35 04 06 00 1F 8D 27 5A 42 6D 00 00 AB [10:11:37]Write i2c OK [10:11:37]MH_I2C_Read... [10:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:37]Read from MH i2c: E2 [10:11:37]MH_I2C_Read... [10:11:37]Read from MH i2c: E2 03 00 [10:11:37]MH_I2C_Read... [10:11:37]Read from MH i2c: E2 03 00 1B 34 00 90 00 C3 [10:11:37]RAPDU: 90 00 [10:11:37]wFMCommunicate OK [10:11:37]wFMCommunicate request_size=4 [10:11:37]MH_SAM_APDU [10:11:37]CAPDU: 80 0D 03 02 [10:11:37]Write to MH i2c: E2 08 00 1C 34 80 0D 03 02 00 00 00 00 CB [10:11:37]Write i2c OK [10:11:37]MH_I2C_Read... [10:11:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:37]Read from MH i2c: E2 [10:11:37]MH_I2C_Read... [10:11:37]Read from MH i2c: E2 0B 00 [10:11:37]MH_I2C_Read... [10:11:37]Read from MH i2c: E2 0B 00 1C 34 00 B1 0D 4B 10 61 D6 D9 94 90 00 89 [10:11:37]RAPDU: B1 0D 4B 10 61 D6 D9 94 90 00 [10:11:37]wFMCommunicate OK [10:11:37]SAM_PROTO_SignData done [10:11:37]FM_MakeSignedData done [10:11:37]CreateOFDProtocolMessage [10:11:37]wFMCommunicate request_size=4 [10:11:37]MH_SAM_APDU [10:11:37]CAPDU: 80 11 00 00 [10:11:37]Write to MH i2c: E2 08 00 1D 34 80 11 00 00 00 00 00 00 CB [10:11:37]Write i2c OK [10:11:37]MH_I2C_Read... [10:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:37]Read from MH i2c: E2 [10:11:37]MH_I2C_Read... [10:11:37]Read from MH i2c: E2 17 00 [10:11:37]MH_I2C_Read... [10:11:37]Read from MH i2c: E2 17 00 1D 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 1D [10:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [10:11:37]wFMCommunicate OK [10:11:37]CreateOFDProtocolMessage done [10:11:37]OFDSenderStorePacket 22100 [10:11:37]StoreOFDPacket docnum=22100 [10:11:37]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 09 2A 1D 01 FD E3 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 65 17 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 1F 8D 27 5A 42 6D B1 0D 4B 10 61 D6 D9 94 [10:11:37]CheckFolder [10:11:37]dirname=/storage/ofd_packets [10:11:37]CheckFolder done [10:11:37]ProducePacketName [10:11:37]name=ofd_packets/00022100 [10:11:37]NVStorageSaveData ofd_packets/00022100 [10:11:37]File name is /storage/ofd_packets/00022100 [10:11:37]Write 323 bytes [10:11:37]NVStorageSaveData done [10:11:37]OFDSenderStorePacket done [10:11:37]KKMCreateOFDPacket done [10:11:37]NVStorageSaveData kkm_last_timestamp [10:11:37]File name is /storage/kkm_last_timestamp [10:11:37]Write 4 bytes [10:11:37]NVStorageSaveData done [10:11:37]ExternCall_PrintAddStr [10:11:37]wPrintStart [10:11:37]Write to MH i2c: 01 00 00 1E 34 52 [10:11:37]Write i2c OK [10:11:37]MH_I2C_Read... [10:11:37]Read from MH i2c: 01 [10:11:37]MH_I2C_Read... [10:11:37]Read from MH i2c: 01 07 00 [10:11:37]MH_I2C_Read... [10:11:37]Read from MH i2c: 01 07 00 1E 34 00 00 00 00 00 FF 0F 67 [10:11:37]RasterBufferAndPrint [10:11:37]line 小褔械褌 N : (3)254322 [10:11:37]line 袠袧袧: 02508201610067 [10:11:37]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [10:11:37]line 袩袪袨袛袗袞袗 [10:11:37]line 孝芯胁邪褉: 48743570 [10:11:37]line 小懈谐邪褉械褌褘 Winston XStyle Blue [10:11:37]line 1.000 * 140.00 [10:11:37]line = 140.00 [10:11:37]line 袧袛小 12% 袧小袩 1% [10:11:37]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [10:11:37]line 袠孝袨袚袨: 140.00 [10:11:37]line 袧小袩 1% : 1.24 [10:11:37]line 袧袛小 12% : 14.87 [10:11:37]line 袧邪谢懈褔薪褘屑懈: 140.00 [10:11:37]line 袘械蟹薪邪谢.: 0.00 [10:11:37]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [10:11:37]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [10:11:37]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [10:11:37]line 效械泻 14 14.06.2024 10:11 [10:11:37]line 小屑械薪邪: 325 肖肖袛: 1.0 [10:11:37]line 袟袧袦: 0300000200 [10:11:37]line 袪袧袦: 0000000000099755 [10:11:37]line 袙械褉褋懈褟 袣袣袦: 001 [10:11:37]line 肖袦: 0000000000965344 [10:11:37]line 肖袛: 22100 [10:11:37]line 肖袩袛: 34691111076461 [10:11:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T101149&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22100&fm=34691111076461&tin=02508201610067®Number=0000000000099755&sum=14000 [10:11:38]line 0 [10:11:38]OFD Sender: Processing packet 22100 [packets to send 5, broken 4] [10:11:38]ProducePacketName [10:11:38]name=ofd_packets/00022100 [10:11:38]OFD Sender: To server: 嚂鰌G, [10:11:38]CommunicateWithHost lk.salyk.kg:30040 [10:11:38]ConnectInit lk.salyk.kg [10:11:38]written 0, free lines is 4095 [10:11:38]Connected sock=10 [10:11:38]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 09 2A 1D 01 FD E3 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 65 17 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 1F 8D 27 5A 42 6D B1 0D 4B 10 61 D6 D9 94 [10:11:38]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 F8 47 00 58 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 54 56 00 00 F4 03 04 00 26 C0 6B 66 B6 04 01 00 00 11 ED E2 53 5B 10 F4 69 [10:11:38]CommunicateWithHost err = 0 [10:11:38]CheckOFDResponse [10:11:38]1017 (14) - 77093643461234 [10:11:38]1041 (16) - 0000000000965344 [10:11:38]1040 (4) - 22100 [10:11:38]1012 (4) - 14.06.2024 03:59 [10:11:38]1206 (1) - 0 [10:11:38]OFD Sender: Remove packet 22100 [10:11:38]ProducePacketName [10:11:38]name=ofd_packets/00022100 [10:11:38]NVStorageDeleteData [10:11:38]Write to MH i2c: 01 00 00 46 34 7A [10:11:38]Write i2c OK [10:11:38]MH_I2C_Read... [10:11:38]Read from MH i2c: 01 [10:11:38]MH_I2C_Read... [10:11:38]Read from MH i2c: 01 07 00 [10:11:38]MH_I2C_Read... [10:11:38]Read from MH i2c: 01 07 00 46 34 00 00 00 00 00 14 0D A2 [10:11:38]RasterBufferAndPrint [10:11:38]line [10:11:38]line [10:11:38]line [10:11:38]line [10:11:38]line [10:11:38]written 0, free lines is 3358 [10:11:38]MH_Cut [10:11:38]Write to MH i2c: D1 01 00 4D 34 01 53 [10:11:38]Write i2c OK [10:11:38]MH_I2C_Read... [10:11:38]Read from MH i2c: D1 [10:11:38]MH_I2C_Read... [10:11:38]Read from MH i2c: D1 01 00 [10:11:38]MH_I2C_Read... [10:11:38]Read from MH i2c: D1 01 00 4D 34 00 52 [10:11:38]Write to MH i2c: 01 00 00 4E 34 82 [10:11:38]Write i2c OK [10:11:38]MH_I2C_Read... [10:11:39]OFD Sender: No OFD packet to send [10:11:39]*** Cut start [10:11:39]*** Partial cut [10:11:39]*** CUTSNS_PIN = 1 [10:11:39]*** CUTSNS_PIN = 0 [10:11:39]*** Brake cut motor [10:11:39]Read from MH i2c: 01 [10:11:39]MH_I2C_Read... [10:11:39]*** Stop cut motor [10:11:40]*** Cut end [10:11:40]Read from MH i2c: 01 07 00 [10:11:40]MH_I2C_Read... [10:11:40]Read from MH i2c: 01 07 00 4E 34 00 00 00 00 00 FF 0F 97 [10:11:40]process_action close_receipt done [10:11:40]requested_data is exist [10:11:40]produce_requested_data [10:11:40]requested_item fm.sn is exist - process it [10:11:40]wFMCommunicate request_size=4 [10:11:40]MH_SAM_APDU [10:11:40]CAPDU: 80 11 00 00 [10:11:40]Write to MH i2c: E2 08 00 4F 34 80 11 00 00 00 00 00 00 FD [10:11:40]Write i2c OK [10:11:40]MH_I2C_Read... [10:11:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:40]Read from MH i2c: E2 [10:11:40]MH_I2C_Read... [10:11:40]Read from MH i2c: E2 17 00 [10:11:40]MH_I2C_Read... [10:11:40]Read from MH i2c: E2 17 00 4F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 4F [10:11:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [10:11:40]wFMCommunicate OK [10:11:40]requested_item fd.num is exist - process it [10:11:40]SAM_PROTO_GetFieldsCounters [10:11:40]wFMCommunicate request_size=4 [10:11:40]MH_SAM_APDU [10:11:40]CAPDU: 80 13 00 00 [10:11:40]Write to MH i2c: E2 08 00 50 34 80 13 00 00 00 00 00 00 00 [10:11:40]Write i2c OK [10:11:40]MH_I2C_Read... [10:11:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:40]Read from MH i2c: E2 [10:11:40]MH_I2C_Read... [10:11:40]Read from MH i2c: E2 62 00 [10:11:40]MH_I2C_Read... [10:11:40]Read from MH i2c: E2 62 00 50 34 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 56 00 00 0E 04 04 00 45 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 44 [10:11:40]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 56 00 00 0E 04 04 00 45 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 [10:11:40]wFMCommunicate OK [10:11:40]SAM_PROTO_GetFieldsCounters done [10:11:40]requested_item shift.num is exist - process it [10:11:40]requested_item shift.opened is exist - process it [10:11:40]req_shift_opened [10:11:40]FM_GetShiftState [10:11:40]SAM_PROTO_GetShiftState [10:11:40]wFMCommunicate request_size=4 [10:11:40]MH_SAM_APDU [10:11:40]CAPDU: 80 13 01 00 [10:11:40]Write to MH i2c: E2 08 00 51 34 80 13 01 00 00 00 00 00 02 [10:11:40]Write i2c OK [10:11:40]MH_I2C_Read... [10:11:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:40]Read from MH i2c: E2 [10:11:40]MH_I2C_Read... [10:11:40]Read from MH i2c: E2 0E 00 [10:11:40]MH_I2C_Read... [10:11:40]Read from MH i2c: E2 0E 00 51 34 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 73 [10:11:40]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [10:11:40]wFMCommunicate OK [10:11:40]SAM_PROTO_GetShiftState done [10:11:40]FM_GetShiftState done [10:11:40]req_shift_opened done [10:11:40]requested_item shift.open_date is exist - process it [10:11:40]req_shift_open_date [10:11:40]req_shift_open_date done [10:11:40]produce_requested_data done [10:11:40]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22100,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [10:11:40]process_action_free close_receipt [10:11:40]json_value_free [10:11:40]json_value_free done [10:11:40]process_json_proto returns [10:11:40]Send response to host [10:11:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22100,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [10:11:40]free response buf [10:11:40]execute_script done [10:11:40]execute_script returns [10:11:40]free content buf [10:11:40]Sock 8.Close socket [10:11:40]Sock 8.Thread stoped [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:19]OFD Sender: No OFD packet to send [10:12:24]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:39]OFD Sender: No OFD packet to send [10:12:44]OFD Sender: No OFD packet to send [10:12:49]OFD Sender: No OFD packet to send [10:12:54]OFD Sender: No OFD packet to send [10:12:59]OFD Sender: No OFD packet to send [10:13:04]OFD Sender: No OFD packet to send [10:13:09]OFD Sender: No OFD packet to send [10:13:14]OFD Sender: No OFD packet to send [10:13:19]OFD Sender: No OFD packet to send [10:13:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:48]accept exits with 9 [10:14:48]New connection [10:14:48]New thread 3067321700 created [10:14:48]Thread 3067178340 joined [10:14:48]Waiting for new connection... [10:14:48] Sock 9.Parse request [10:14:48]Sock 9.Check first char [10:14:48]Sock 9.First char is OK [10:14:48]request: POST /json_proto HTTP/1.0 [10:14:48]Method: POST [10:14:48]URL: /json_proto [10:14:48]Method is POST - this is cgi request [10:14:48]url: /json_proto [10:14:48]query_string will be loaded in cgi processing [10:14:48]execute_cgi json_proto POST (null) [10:14:48]execute_cgi path=json_proto method=POST [10:14:48]POST find Content-Length [10:14:48]Host: 172.17.35.133:8080 [10:14:48]Content-Length: 747 [10:14:48]Content-Type: application/json [10:14:48] [10:14:48]POST finish read [10:14:48]Found Content-Length = 747 [10:14:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254323", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 502.00, "quantity" : 1.000, "sum" : 502.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:48]execute_script... [10:14: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)254323", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 502.00, "quantity" : 1.000, "sum" : 502.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:48]POST & json_proto [10:14:48]process_json_proto [10:14:48]json parsed OK: [10:14:48]protocol is kg_v1.0 [10:14:48]action value=close_receipt [10:14:48]process_action close_receipt [10:14:48]cmd_close_receipt [10:14:48]MH_GetDate [10:14:48]Write to MH i2c: F0 00 00 52 34 75 [10:14:48]Write i2c OK [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: F0 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: F0 09 00 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: F0 09 00 52 34 00 25 18 6C 66 8C 55 28 65 FB [10:14:48]GetLastDocTimeStamp 1718359909 [10:14:48]current date 1718360101 [10:14:48]FM_GetShiftState [10:14:48]SAM_PROTO_GetShiftState [10:14:48]wFMCommunicate request_size=4 [10:14:48]MH_SAM_APDU [10:14:48]CAPDU: 80 13 01 00 [10:14:48]Write to MH i2c: E2 08 00 53 34 80 13 01 00 00 00 00 00 04 [10:14:48]Write i2c OK [10:14:48]MH_I2C_Read... [10:14:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:48]Read from MH i2c: E2 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: E2 0E 00 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: E2 0E 00 53 34 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 75 [10:14:48]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [10:14:48]wFMCommunicate OK [10:14:48]SAM_PROTO_GetShiftState done [10:14:48]FM_GetShiftState done [10:14:48]opened in 1718324742 [10:14:48]opened+sec_in_day 1718411142 [10:14:48]quantity*price = 50200 [10:14:48]sum+1 = 50201 [10:14:48]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 502.00 袧小袩 1% : 4.44 袧袛小 12% : 53.31 袧邪谢懈褔薪褘屑懈: 502.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 15 14.06.2024 10:15 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22101 肖袩袛: 211088179982981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T101501&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22101&fm=211088179982981&tin=02508201610067®Number=0000000000099755&sum=50200 0 [10:14:49]StoreToDocumentArchive [10:14:49]shift 325 fd 22101 [10:14:49]save to /storage/0325/doc_00022101 [10:14:49]save last doc name /storage/0325/doc_00022101 to /storage/kkm_last_doc_name [10:14:49]save OK [10:14:49]Clear old archive folders... [10:14:49]ProcessDocumentItem done err = 0, tmpTLVsize=307 [10:14:49]tlvbuf is 0022EDA0 [10:14:49]SAM_PROTO_ClearQueue [10:14:49]wFMCommunicate request_size=4 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 09 00 00 [10:14:49]Write to MH i2c: E2 08 00 60 34 80 09 00 00 00 00 00 00 06 [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 60 34 00 90 00 08 [10:14:49]RAPDU: 90 00 [10:14:49]wFMCommunicate OK [10:14:49]SAM_PROTO_ClearQueue done [10:14:49]KKMCreateOFDPacket [10:14:49]OFDProtocolAddRootSTLVToBuf [10:14:49]FM_MakeSignedData [10:14:49]FM_MakeSignedData [10:14:49]SAM_PROTO_SignData [10:14:49]wFMCommunicate request_size=4 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 0D 01 02 [10:14:49]Write to MH i2c: E2 08 00 61 34 80 0D 01 02 00 00 00 00 0E [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 61 34 00 90 00 09 [10:14:49]RAPDU: 90 00 [10:14:49]wFMCommunicate OK [10:14:49]wFMCommunicate request_size=255 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 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 25 18 6C 66 0E 04 04 00 45 01 00 00 B9 04 [10:14:49]Write to MH i2c: E2 02 01 62 34 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 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 25 18 6C 66 0E 04 04 00 45 01 00 00 B9 04 00 00 F8 [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 62 34 00 90 00 0A [10:14:49]RAPDU: 90 00 [10:14:49]wFMCommunicate OK [10:14:49]wFMCommunicate request_size=66 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 0D 02 02 3D 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 56 00 00 35 04 06 00 BF FB CB FB F2 85 [10:14:49]Write to MH i2c: E2 45 00 63 34 80 0D 02 02 3D 00 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 56 00 00 35 04 06 00 BF FB CB FB F2 85 00 00 0E [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 63 34 00 90 00 0B [10:14:49]RAPDU: 90 00 [10:14:49]wFMCommunicate OK [10:14:49]wFMCommunicate request_size=4 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 0D 03 02 [10:14:49]Write to MH i2c: E2 08 00 64 34 80 0D 03 02 00 00 00 00 13 [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 0B 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 0B 00 64 34 00 F2 75 70 54 87 59 A3 A2 90 00 64 [10:14:49]RAPDU: F2 75 70 54 87 59 A3 A2 90 00 [10:14:49]wFMCommunicate OK [10:14:49]SAM_PROTO_SignData done [10:14:49]FM_MakeSignedData done [10:14:49]CreateOFDProtocolMessage [10:14:49]wFMCommunicate request_size=4 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 11 00 00 [10:14:49]Write to MH i2c: E2 08 00 65 34 80 11 00 00 00 00 00 00 13 [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 17 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 17 00 65 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 65 [10:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [10:14:49]wFMCommunicate OK [10:14:49]CreateOFDProtocolMessage done [10:14:49]OFDSenderStorePacket 22101 [10:14:49]StoreOFDPacket docnum=22101 [10:14:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 47 01 00 00 9F 9A 3F 01 01 C6 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 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 25 18 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 BF FB CB FB F2 85 F2 75 70 54 87 59 A3 A2 [10:14:49]CheckFolder [10:14:49]dirname=/storage/ofd_packets [10:14:49]CheckFolder done [10:14:49]ProducePacketName [10:14:49]name=ofd_packets/00022101 [10:14:49]NVStorageSaveData ofd_packets/00022101 [10:14:49]File name is /storage/ofd_packets/00022101 [10:14:49]Write 357 bytes [10:14:49]NVStorageSaveData done [10:14:49]OFDSenderStorePacket done [10:14:49]KKMCreateOFDPacket done [10:14:49]OFD Sender: Processing packet 22101 [packets to send 5, broken 4] [10:14:49]ProducePacketName [10:14:49]name=ofd_packets/00022101 [10:14:49]OFD Sender: To server: 嚂鰌G, [10:14:49]CommunicateWithHost lk.salyk.kg:30040 [10:14:49]ConnectInit lk.salyk.kg [10:14:49]NVStorageSaveData kkm_last_timestamp [10:14:49]File name is /storage/kkm_last_timestamp [10:14:49]Write 4 bytes [10:14:49]NVStorageSaveData done [10:14:49]ExternCall_PrintAddStr [10:14:49]wPrintStart [10:14:49]Write to MH i2c: 01 00 00 66 34 9A [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: 01 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: 01 07 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: 01 07 00 66 34 00 00 00 00 00 FF 0F AF [10:14:49]RasterBufferAndPrint [10:14:49]line 小褔械褌 N : (3)254323 [10:14:49]line 袠袧袧: 02508201610067 [10:14:49]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [10:14:49]line 袩袪袨袛袗袞袗 [10:14:49]line 孝芯胁邪褉: 2000029770012 [10:14:49]line 袨褔泻懈 褋芯谢薪褑械蟹邪褖懈褌薪褘械 胁 邪褋褋芯褉褌懈屑械薪褌械 [10:14:49]line 1.000 * 502.00 [10:14:49]line = 502.00 [10:14:49]line 袧袛小 12% 袧小袩 1% [10:14:49]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [10:14:49]line 袠孝袨袚袨: 502.00 [10:14:49]line 袧小袩 1% : 4.44 [10:14:49]line 袧袛小 12% : 53.31 [10:14:49]line 袧邪谢懈褔薪褘屑懈: 502.00 [10:14:49]line 袘械蟹薪邪谢.: 0.00 [10:14:49]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [10:14:49]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [10:14:49]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [10:14:50]line 效械泻 15 14.06.2024 10:15 [10:14:50]line 小屑械薪邪: 325 肖肖袛: 1.0 [10:14:50]line 袟袧袦: 0300000200 [10:14:50]line 袪袧袦: 0000000000099755 [10:14:50]line 袙械褉褋懈褟 袣袣袦: 001 [10:14:50]line 肖袦: 0000000000965344 [10:14:50]line 肖袛: 22101 [10:14:50]line 肖袩袛: 211088179982981 [10:14:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T101501&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22101&fm=211088179982981&tin=02508201610067®Number=0000000000099755&sum=50200 [10:14:50]line 0 [10:14:50]Connected sock=10 [10:14:50]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 47 01 00 00 9F 9A 3F 01 01 C6 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 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 25 18 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 BF FB CB FB F2 85 F2 75 70 54 87 59 A3 A2 [10:14:50]written 0, free lines is 4095 [10:14:50]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 4C CE 47 00 06 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 55 56 00 00 F4 03 04 00 E6 C0 6B 66 B6 04 01 00 00 49 CE 92 1F 2A 78 CF 19 [10:14:50]CommunicateWithHost err = 0 [10:14:50]CheckOFDResponse [10:14:50]1017 (14) - 77093643461234 [10:14:50]1041 (16) - 0000000000965344 [10:14:50]1040 (4) - 22101 [10:14:50]1012 (4) - 14.06.2024 04:02 [10:14:50]1206 (1) - 0 [10:14:50]OFD Sender: Remove packet 22101 [10:14:50]ProducePacketName [10:14:50]name=ofd_packets/00022101 [10:14:50]NVStorageDeleteData [10:14:50]Write to MH i2c: 01 00 00 8F 34 C3 [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: 01 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: 01 07 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: 01 07 00 8F 34 00 00 00 00 00 FD 0C D3 [10:14:50]RasterBufferAndPrint [10:14:50]line [10:14:50]line [10:14:50]line [10:14:50]line [10:14:50]line [10:14:50]written 0, free lines is 3333 [10:14:50]MH_Cut [10:14:50]Write to MH i2c: D1 01 00 96 34 01 9C [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: D1 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: D1 01 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: D1 01 00 96 34 00 9B [10:14:50]Write to MH i2c: 01 00 00 97 34 CB [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]OFD Sender: No OFD packet to send [10:14:51]*** Cut start [10:14:51]*** Partial cut [10:14:51]*** CUTSNS_PIN = 1 [10:14:51]*** CUTSNS_PIN = 0 [10:14:51]*** Brake cut motor [10:14:51]Read from MH i2c: 01 [10:14:51]MH_I2C_Read... [10:14:51]*** Stop cut motor [10:14:51]*** Cut end [10:14:51]Read from MH i2c: 01 07 00 [10:14:51]MH_I2C_Read... [10:14:51]Read from MH i2c: 01 07 00 97 34 00 00 00 00 00 FF 0F E0 [10:14:51]process_action close_receipt done [10:14:51]requested_data is exist [10:14:51]produce_requested_data [10:14:52]requested_item fm.sn is exist - process it [10:14:52]wFMCommunicate request_size=4 [10:14:52]MH_SAM_APDU [10:14:52]CAPDU: 80 11 00 00 [10:14:52]Write to MH i2c: E2 08 00 98 34 80 11 00 00 00 00 00 00 46 [10:14:52]Write i2c OK [10:14:52]MH_I2C_Read... [10:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:52]Read from MH i2c: E2 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 17 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 17 00 98 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 98 [10:14:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [10:14:52]wFMCommunicate OK [10:14:52]requested_item fd.num is exist - process it [10:14:52]SAM_PROTO_GetFieldsCounters [10:14:52]wFMCommunicate request_size=4 [10:14:52]MH_SAM_APDU [10:14:52]CAPDU: 80 13 00 00 [10:14:52]Write to MH i2c: E2 08 00 99 34 80 13 00 00 00 00 00 00 49 [10:14:52]Write i2c OK [10:14:52]MH_I2C_Read... [10:14:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:52]Read from MH i2c: E2 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 62 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 62 00 99 34 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 56 00 00 0E 04 04 00 45 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 91 [10:14:52]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 56 00 00 0E 04 04 00 45 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 [10:14:52]wFMCommunicate OK [10:14:52]SAM_PROTO_GetFieldsCounters done [10:14:52]requested_item shift.num is exist - process it [10:14:52]requested_item shift.opened is exist - process it [10:14:52]req_shift_opened [10:14:52]FM_GetShiftState [10:14:52]SAM_PROTO_GetShiftState [10:14:52]wFMCommunicate request_size=4 [10:14:52]MH_SAM_APDU [10:14:52]CAPDU: 80 13 01 00 [10:14:52]Write to MH i2c: E2 08 00 9A 34 80 13 01 00 00 00 00 00 4B [10:14:52]Write i2c OK [10:14:52]MH_I2C_Read... [10:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:52]Read from MH i2c: E2 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 0E 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 0E 00 9A 34 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 BC [10:14:52]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [10:14:52]wFMCommunicate OK [10:14:52]SAM_PROTO_GetShiftState done [10:14:52]FM_GetShiftState done [10:14:52]req_shift_opened done [10:14:52]requested_item shift.open_date is exist - process it [10:14:52]req_shift_open_date [10:14:52]req_shift_open_date done [10:14:52]produce_requested_data done [10:14:52]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22101,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [10:14:52]process_action_free close_receipt [10:14:52]json_value_free [10:14:52]json_value_free done [10:14:52]process_json_proto returns [10:14:52]Send response to host [10:14:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22101,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [10:14:52]free response buf [10:14:52]execute_script done [10:14:52]execute_script returns [10:14:52]free content buf [10:14:52]Sock 9.Close socket [10:14:52]Sock 9.Thread stoped [10:14:55]OFD Sender: No OFD packet to send [10:15:00]OFD Sender: No OFD packet to send [10:15:05]OFD Sender: No OFD packet to send [10:15:10]OFD Sender: No OFD packet to send [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:25]OFD Sender: No OFD packet to send [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:06]OFD Sender: No OFD packet to send [10:16:11]OFD Sender: No OFD packet to send [10:16:16]OFD Sender: No OFD packet to send [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:31]OFD Sender: No OFD packet to send [10:16:36]OFD Sender: No OFD packet to send [10:16:41]OFD Sender: No OFD packet to send [10:16:46]OFD Sender: No OFD packet to send [10:16:51]OFD Sender: No OFD packet to send [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:06]OFD Sender: No OFD packet to send [10:17:11]OFD Sender: No OFD packet to send [10:17:16]OFD Sender: No OFD packet to send [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:10]accept exits with 8 [10:25:10]New connection [10:25:10]New thread 3067178340 created [10:25:10]Thread 3067321700 joined [10:25:10]Waiting for new connection... [10:25:10] Sock 8.Parse request [10:25:10]Sock 8.Check first char [10:25:10]Sock 8.First char is OK [10:25:10]request: POST /json_proto HTTP/1.0 [10:25:10]Method: POST [10:25:10]URL: /json_proto [10:25:10]Method is POST - this is cgi request [10:25:10]url: /json_proto [10:25:10]query_string will be loaded in cgi processing [10:25:10]execute_cgi json_proto POST (null) [10:25:10]execute_cgi path=json_proto method=POST [10:25:10]POST find Content-Length [10:25:10]Host: 172.17.35.133:8080 [10:25:10]Content-Length: 621 [10:25:10]Content-Type: application/json [10:25:10] [10:25:10]POST finish read [10:25:10]Found Content-Length = 621 [10:25:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254324", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:10]execute_script... [10:25:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254324", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:10]POST & json_proto [10:25:10]process_json_proto [10:25:10]json parsed OK: [10:25:10]protocol is kg_v1.0 [10:25:10]action value=close_receipt [10:25:10]process_action close_receipt [10:25:10]cmd_close_receipt [10:25:10]MH_GetDate [10:25:10]Write to MH i2c: F0 00 00 9B 34 BE [10:25:10]Write i2c OK [10:25:10]MH_I2C_Read... [10:25:10]Read from MH i2c: F0 [10:25:10]MH_I2C_Read... [10:25:10]Read from MH i2c: F0 09 00 [10:25:10]MH_I2C_Read... [10:25:10]Read from MH i2c: F0 09 00 9B 34 00 93 1A 6C 66 8C 55 28 65 B4 [10:25:10]GetLastDocTimeStamp 1718360101 [10:25:10]current date 1718360723 [10:25:10]FM_GetShiftState [10:25:10]SAM_PROTO_GetShiftState [10:25:10]wFMCommunicate request_size=4 [10:25:10]MH_SAM_APDU [10:25:10]CAPDU: 80 13 01 00 [10:25:10]Write to MH i2c: E2 08 00 9C 34 80 13 01 00 00 00 00 00 4D [10:25:10]Write i2c OK [10:25:10]MH_I2C_Read... [10:25:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:10]Read from MH i2c: E2 [10:25:10]MH_I2C_Read... [10:25:10]Read from MH i2c: E2 0E 00 [10:25:10]MH_I2C_Read... [10:25:10]Read from MH i2c: E2 0E 00 9C 34 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 BE [10:25:10]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [10:25:10]wFMCommunicate OK [10:25:10]SAM_PROTO_GetShiftState done [10:25:10]FM_GetShiftState done [10:25:10]opened in 1718324742 [10:25:10]opened+sec_in_day 1718411142 [10:25:10]quantity*price = 14000 [10:25:10]sum+1 = 14001 [10:25:10]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 140.00 袧小袩 1% : 1.24 袧袛小 12% : 14.87 袧邪谢懈褔薪褘屑懈: 140.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 16 14.06.2024 10:25 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22102 肖袩袛: 224898782503357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T102523&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22102&fm=224898782503357&tin=02508201610067®Number=0000000000099755&sum=14000 0 [10:25:11]StoreToDocumentArchive [10:25:11]shift 325 fd 22102 [10:25:11]save to /storage/0325/doc_00022102 [10:25:11]save last doc name /storage/0325/doc_00022102 to /storage/kkm_last_doc_name [10:25:11]save OK [10:25:11]Clear old archive folders... [10:25:11]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:25:11]tlvbuf is 0028B340 [10:25:11]SAM_PROTO_ClearQueue [10:25:11]wFMCommunicate request_size=4 [10:25:11]MH_SAM_APDU [10:25:11]CAPDU: 80 09 00 00 [10:25:11]Write to MH i2c: E2 08 00 A9 34 80 09 00 00 00 00 00 00 4F [10:25:11]Write i2c OK [10:25:11]MH_I2C_Read... [10:25:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:11]Read from MH i2c: E2 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 03 00 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 03 00 A9 34 00 90 00 51 [10:25:11]RAPDU: 90 00 [10:25:11]wFMCommunicate OK [10:25:11]SAM_PROTO_ClearQueue done [10:25:11]KKMCreateOFDPacket [10:25:11]OFDProtocolAddRootSTLVToBuf [10:25:11]FM_MakeSignedData [10:25:11]FM_MakeSignedData [10:25:11]SAM_PROTO_SignData [10:25:11]wFMCommunicate request_size=4 [10:25:11]MH_SAM_APDU [10:25:11]CAPDU: 80 0D 01 02 [10:25:11]Write to MH i2c: E2 08 00 AA 34 80 0D 01 02 00 00 00 00 57 [10:25:11]Write i2c OK [10:25:11]MH_I2C_Read... [10:25:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:11]Read from MH i2c: E2 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 03 00 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 03 00 AA 34 00 90 00 52 [10:25:11]RAPDU: 90 00 [10:25:11]wFMCommunicate OK [10:25:11]wFMCommunicate request_size=255 [10:25:11]MH_SAM_APDU [10:25:11]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 93 1A 6C 66 0E 04 04 00 45 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 [10:25:11]Write to MH i2c: E2 02 01 AB 34 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 93 1A 6C 66 0E 04 04 00 45 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 17 [10:25:11]Write i2c OK [10:25:11]MH_I2C_Read... [10:25:11]OFD Sender: No OFD packet to send [10:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:11]Read from MH i2c: E2 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 03 00 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 03 00 AB 34 00 90 00 53 [10:25:11]RAPDU: 90 00 [10:25:11]wFMCommunicate OK [10:25:11]wFMCommunicate request_size=32 [10:25:11]MH_SAM_APDU [10:25:11]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 34 34 10 04 04 00 56 56 00 00 35 04 06 00 CC 8B 54 0A A1 BD [10:25:11]Write to MH i2c: E2 23 00 AC 34 80 0D 02 02 1B 00 30 30 30 39 36 35 33 34 34 10 04 04 00 56 56 00 00 35 04 06 00 CC 8B 54 0A A1 BD 00 00 75 [10:25:11]Write i2c OK [10:25:11]MH_I2C_Read... [10:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:11]Read from MH i2c: E2 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 03 00 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 03 00 AC 34 00 90 00 54 [10:25:11]RAPDU: 90 00 [10:25:11]wFMCommunicate OK [10:25:11]wFMCommunicate request_size=4 [10:25:11]MH_SAM_APDU [10:25:11]CAPDU: 80 0D 03 02 [10:25:11]Write to MH i2c: E2 08 00 AD 34 80 0D 03 02 00 00 00 00 5C [10:25:11]Write i2c OK [10:25:11]MH_I2C_Read... [10:25:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:11]Read from MH i2c: E2 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 0B 00 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 0B 00 AD 34 00 3C 69 AB C6 77 75 B2 F6 90 00 07 [10:25:11]RAPDU: 3C 69 AB C6 77 75 B2 F6 90 00 [10:25:11]wFMCommunicate OK [10:25:11]SAM_PROTO_SignData done [10:25:11]FM_MakeSignedData done [10:25:11]CreateOFDProtocolMessage [10:25:11]wFMCommunicate request_size=4 [10:25:11]MH_SAM_APDU [10:25:11]CAPDU: 80 11 00 00 [10:25:11]Write to MH i2c: E2 08 00 AE 34 80 11 00 00 00 00 00 00 5C [10:25:11]Write i2c OK [10:25:11]MH_I2C_Read... [10:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:11]Read from MH i2c: E2 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 17 00 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 17 00 AE 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 AE [10:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [10:25:11]wFMCommunicate OK [10:25:11]CreateOFDProtocolMessage done [10:25:11]OFDSenderStorePacket 22102 [10:25:11]StoreOFDPacket docnum=22102 [10:25:11]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 3F 83 1D 01 86 B0 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 93 1A 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 CC 8B 54 0A A1 BD 3C 69 AB C6 77 75 B2 F6 [10:25:11]CheckFolder [10:25:11]dirname=/storage/ofd_packets [10:25:11]CheckFolder done [10:25:11]ProducePacketName [10:25:11]name=ofd_packets/00022102 [10:25:11]NVStorageSaveData ofd_packets/00022102 [10:25:11]File name is /storage/ofd_packets/00022102 [10:25:11]Write 323 bytes [10:25:11]NVStorageSaveData done [10:25:11]OFDSenderStorePacket done [10:25:11]KKMCreateOFDPacket done [10:25:11]NVStorageSaveData kkm_last_timestamp [10:25:11]File name is /storage/kkm_last_timestamp [10:25:11]Write 4 bytes [10:25:11]NVStorageSaveData done [10:25:11]ExternCall_PrintAddStr [10:25:11]wPrintStart [10:25:11]Write to MH i2c: 01 00 00 AF 34 E3 [10:25:11]Write i2c OK [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: 01 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: 01 07 00 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: 01 07 00 AF 34 00 00 00 00 00 FF 0F F8 [10:25:11]RasterBufferAndPrint [10:25:11]line 小褔械褌 N : (3)254324 [10:25:11]line 袠袧袧: 02508201610067 [10:25:11]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [10:25:11]line 袩袪袨袛袗袞袗 [10:25:11]line 孝芯胁邪褉: 48747059 [10:25:11]line 小懈谐邪褉械褌褘 Winston Legend Blue [10:25:11]line 1.000 * 140.00 [10:25:11]line = 140.00 [10:25:11]line 袧袛小 12% 袧小袩 1% [10:25:11]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [10:25:11]line 袠孝袨袚袨: 140.00 [10:25:11]line 袧小袩 1% : 1.24 [10:25:11]line 袧袛小 12% : 14.87 [10:25:11]line 袧邪谢懈褔薪褘屑懈: 140.00 [10:25:11]line 袘械蟹薪邪谢.: 0.00 [10:25:11]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [10:25:11]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [10:25:11]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [10:25:11]line 效械泻 16 14.06.2024 10:25 [10:25:11]line 小屑械薪邪: 325 肖肖袛: 1.0 [10:25:11]line 袟袧袦: 0300000200 [10:25:11]line 袪袧袦: 0000000000099755 [10:25:11]line 袙械褉褋懈褟 袣袣袦: 001 [10:25:11]line 肖袦: 0000000000965344 [10:25:11]line 肖袛: 22102 [10:25:11]line 肖袩袛: 224898782503357 [10:25:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T102523&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22102&fm=224898782503357&tin=02508201610067®Number=0000000000099755&sum=14000 [10:25:12]line 0 [10:25:12]OFD Sender: Processing packet 22102 [packets to send 5, broken 4] [10:25:12]ProducePacketName [10:25:12]name=ofd_packets/00022102 [10:25:12]OFD Sender: To server: 嚂鰌G, [10:25:12]CommunicateWithHost lk.salyk.kg:30040 [10:25:12]ConnectInit lk.salyk.kg [10:25:12]written 0, free lines is 4095 [10:25:12]Connected sock=10 [10:25:12]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 3F 83 1D 01 86 B0 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 93 1A 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 CC 8B 54 0A A1 BD 3C 69 AB C6 77 75 B2 F6 [10:25:12]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 19 47 00 1E 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 56 56 00 00 F4 03 04 00 54 C3 6B 66 B6 04 01 00 00 5B 41 33 91 CB D7 D4 17 [10:25:12]CommunicateWithHost err = 0 [10:25:12]CheckOFDResponse [10:25:12]1017 (14) - 77093643461234 [10:25:12]1041 (16) - 0000000000965344 [10:25:12]1040 (4) - 22102 [10:25:12]1012 (4) - 14.06.2024 04:13 [10:25:12]1206 (1) - 0 [10:25:12]OFD Sender: Remove packet 22102 [10:25:12]ProducePacketName [10:25:12]name=ofd_packets/00022102 [10:25:12]NVStorageDeleteData [10:25:12]Write to MH i2c: 01 00 00 D8 34 0C [10:25:12]Write i2c OK [10:25:12]MH_I2C_Read... [10:25:12]Read from MH i2c: 01 [10:25:12]MH_I2C_Read... [10:25:12]Read from MH i2c: 01 07 00 [10:25:12]MH_I2C_Read... [10:25:12]Read from MH i2c: 01 07 00 D8 34 00 00 00 00 00 F0 0C 0F [10:25:12]RasterBufferAndPrint [10:25:12]line [10:25:12]line [10:25:12]line [10:25:12]line [10:25:12]line [10:25:12]written 0, free lines is 3323 [10:25:12]MH_Cut [10:25:12]Write to MH i2c: D1 01 00 DF 34 01 E5 [10:25:12]Write i2c OK [10:25:12]MH_I2C_Read... [10:25:12]Read from MH i2c: D1 [10:25:12]MH_I2C_Read... [10:25:12]Read from MH i2c: D1 01 00 [10:25:12]MH_I2C_Read... [10:25:12]Read from MH i2c: D1 01 00 DF 34 00 E4 [10:25:12]Write to MH i2c: 01 00 00 E0 34 14 [10:25:12]Write i2c OK [10:25:12]MH_I2C_Read... [10:25:13]OFD Sender: No OFD packet to send [10:25:13]*** Cut start [10:25:13]*** Partial cut [10:25:13]*** CUTSNS_PIN = 1 [10:25:13]*** CUTSNS_PIN = 0 [10:25:13]*** Brake cut motor [10:25:13]Read from MH i2c: 01 [10:25:13]MH_I2C_Read... [10:25:13]*** Stop cut motor [10:25:13]*** Cut end [10:25:13]Read from MH i2c: 01 07 00 [10:25:13]MH_I2C_Read... [10:25:13]Read from MH i2c: 01 07 00 E0 34 00 00 00 00 00 FF 0F 29 [10:25:13]process_action close_receipt done [10:25:13]requested_data is exist [10:25:13]produce_requested_data [10:25:13]requested_item fm.sn is exist - process it [10:25:13]wFMCommunicate request_size=4 [10:25:13]MH_SAM_APDU [10:25:13]CAPDU: 80 11 00 00 [10:25:13]Write to MH i2c: E2 08 00 E1 34 80 11 00 00 00 00 00 00 8F [10:25:13]Write i2c OK [10:25:13]MH_I2C_Read... [10:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:13]Read from MH i2c: E2 [10:25:13]MH_I2C_Read... [10:25:13]Read from MH i2c: E2 17 00 [10:25:13]MH_I2C_Read... [10:25:13]Read from MH i2c: E2 17 00 E1 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 E1 [10:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [10:25:13]wFMCommunicate OK [10:25:13]requested_item fd.num is exist - process it [10:25:13]SAM_PROTO_GetFieldsCounters [10:25:13]wFMCommunicate request_size=4 [10:25:13]MH_SAM_APDU [10:25:13]CAPDU: 80 13 00 00 [10:25:13]Write to MH i2c: E2 08 00 E2 34 80 13 00 00 00 00 00 00 92 [10:25:13]Write i2c OK [10:25:13]MH_I2C_Read... [10:25:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:14]Read from MH i2c: E2 [10:25:14]MH_I2C_Read... [10:25:14]Read from MH i2c: E2 62 00 [10:25:14]MH_I2C_Read... [10:25:14]Read from MH i2c: E2 62 00 E2 34 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 56 00 00 0E 04 04 00 45 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 DE [10:25:14]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 56 00 00 0E 04 04 00 45 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 [10:25:14]wFMCommunicate OK [10:25:14]SAM_PROTO_GetFieldsCounters done [10:25:14]requested_item shift.num is exist - process it [10:25:14]requested_item shift.opened is exist - process it [10:25:14]req_shift_opened [10:25:14]FM_GetShiftState [10:25:14]SAM_PROTO_GetShiftState [10:25:14]wFMCommunicate request_size=4 [10:25:14]MH_SAM_APDU [10:25:14]CAPDU: 80 13 01 00 [10:25:14]Write to MH i2c: E2 08 00 E3 34 80 13 01 00 00 00 00 00 94 [10:25:14]Write i2c OK [10:25:14]MH_I2C_Read... [10:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:14]Read from MH i2c: E2 [10:25:14]MH_I2C_Read... [10:25:14]Read from MH i2c: E2 0E 00 [10:25:14]MH_I2C_Read... [10:25:14]Read from MH i2c: E2 0E 00 E3 34 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 05 [10:25:14]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [10:25:14]wFMCommunicate OK [10:25:14]SAM_PROTO_GetShiftState done [10:25:14]FM_GetShiftState done [10:25:14]req_shift_opened done [10:25:14]requested_item shift.open_date is exist - process it [10:25:14]req_shift_open_date [10:25:14]req_shift_open_date done [10:25:14]produce_requested_data done [10:25:14]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22102,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [10:25:14]process_action_free close_receipt [10:25:14]json_value_free [10:25:14]json_value_free done [10:25:14]process_json_proto returns [10:25:14]Send response to host [10:25:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22102,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [10:25:14]free response buf [10:25:14]execute_script done [10:25:14]execute_script returns [10:25:14]free content buf [10:25:14]Sock 8.Close socket [10:25:14]Sock 8.Thread stoped [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:03]OFD Sender: No OFD packet to send [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:13]OFD Sender: No OFD packet to send [10:37:18]OFD Sender: No OFD packet to send [10:37:23]OFD Sender: No OFD packet to send [10:37:28]OFD Sender: No OFD packet to send [10:37:33]OFD Sender: No OFD packet to send [10:37:38]OFD Sender: No OFD packet to send [10:37:43]OFD Sender: No OFD packet to send [10:37:48]OFD Sender: No OFD packet to send [10:37:53]OFD Sender: No OFD packet to send [10:37:58]OFD Sender: No OFD packet to send [10:38:03]OFD Sender: No OFD packet to send [10:38:08]OFD Sender: No OFD packet to send [10:38:13]OFD Sender: No OFD packet to send [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:33]OFD Sender: No OFD packet to send [10:38:38]OFD Sender: No OFD packet to send [10:38:43]OFD Sender: No OFD packet to send [10:38:48]OFD Sender: No OFD packet to send [10:38:53]OFD Sender: No OFD packet to send [10:38:58]OFD Sender: No OFD packet to send [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:13]OFD Sender: No OFD packet to send [10:39:18]OFD Sender: No OFD packet to send [10:39:23]OFD Sender: No OFD packet to send [10:39:28]OFD Sender: No OFD packet to send [10:39:33]OFD Sender: No OFD packet to send [10:39:38]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:58]OFD Sender: No OFD packet to send [10:40:03]OFD Sender: No OFD packet to send [10:40:08]OFD Sender: No OFD packet to send [10:40:13]OFD Sender: No OFD packet to send [10:40:18]OFD Sender: No OFD packet to send [10:40:23]OFD Sender: No OFD packet to send [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:43]OFD Sender: No OFD packet to send [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:58]OFD Sender: No OFD packet to send [10:41:03]OFD Sender: No OFD packet to send [10:41:08]OFD Sender: No OFD packet to send [10:41:13]OFD Sender: No OFD packet to send [10:41:18]OFD Sender: No OFD packet to send [10:41:23]OFD Sender: No OFD packet to send [10:41:28]OFD Sender: No OFD packet to send [10:41:33]OFD Sender: No OFD packet to send [10:41:38]OFD Sender: No OFD packet to send [10:41:43]OFD Sender: No OFD packet to send [10:41:48]OFD Sender: No OFD packet to send [10:41:53]OFD Sender: No OFD packet to send [10:41:58]OFD Sender: No OFD packet to send [10:42:03]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:44]OFD Sender: No OFD packet to send [10:46:49]OFD Sender: No OFD packet to send [10:46:54]OFD Sender: No OFD packet to send [10:46:59]OFD Sender: No OFD packet to send [10:47:04]OFD Sender: No OFD packet to send [10:47:09]OFD Sender: No OFD packet to send [10:47:14]OFD Sender: No OFD packet to send [10:47:19]OFD Sender: No OFD packet to send [10:47:24]OFD Sender: No OFD packet to send [10:47:29]OFD Sender: No OFD packet to send [10:47:34]OFD Sender: No OFD packet to send [10:47:39]OFD Sender: No OFD packet to send [10:47:44]OFD Sender: No OFD packet to send [10:47:49]OFD Sender: No OFD packet to send [10:47:54]OFD Sender: No OFD packet to send [10:47:59]OFD Sender: No OFD packet to send [10:48:04]OFD Sender: No OFD packet to send [10:48:09]OFD Sender: No OFD packet to send [10:48:14]OFD Sender: No OFD packet to send [10:48:19]OFD Sender: No OFD packet to send [10:48:24]OFD Sender: No OFD packet to send [10:48:29]OFD Sender: No OFD packet to send [10:48:34]OFD Sender: No OFD packet to send [10:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:52]accept exits with 9 [10:48:52]New connection [10:48:52]New thread 3067321700 created [10:48:52]Thread 3067178340 joined [10:48:52]Waiting for new connection... [10:48:52] Sock 9.Parse request [10:48:52]Sock 9.Check first char [10:48:52]Sock 9.First char is OK [10:48:52]request: POST /json_proto HTTP/1.0 [10:48:52]Method: POST [10:48:52]URL: /json_proto [10:48:52]Method is POST - this is cgi request [10:48:52]url: /json_proto [10:48:52]query_string will be loaded in cgi processing [10:48:52]execute_cgi json_proto POST (null) [10:48:52]execute_cgi path=json_proto method=POST [10:48:52]POST find Content-Length [10:48:52]Host: 172.17.35.133:8080 [10:48:52]Content-Length: 696 [10:48:52]Content-Type: application/json [10:48:52] [10:48:52]POST finish read [10:48:52]Found Content-Length = 696 [10:48:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254325", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 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" ] } } [10:48:52]execute_script... [10:48:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254325", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 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" ] } } [10:48:52]POST & json_proto [10:48:52]process_json_proto [10:48:52]json parsed OK: [10:48:52]protocol is kg_v1.0 [10:48:52]action value=close_receipt [10:48:52]process_action close_receipt [10:48:52]cmd_close_receipt [10:48:52]MH_GetDate [10:48:52]Write to MH i2c: F0 00 00 E4 34 07 [10:48:52]Write i2c OK [10:48:52]MH_I2C_Read... [10:48:52]Read from MH i2c: F0 [10:48:52]MH_I2C_Read... [10:48:52]Read from MH i2c: F0 09 00 [10:48:52]MH_I2C_Read... [10:48:52]Read from MH i2c: F0 09 00 E4 34 00 21 20 6C 66 8C 55 28 65 91 [10:48:52]GetLastDocTimeStamp 1718360723 [10:48:52]current date 1718362145 [10:48:52]FM_GetShiftState [10:48:52]SAM_PROTO_GetShiftState [10:48:52]wFMCommunicate request_size=4 [10:48:52]MH_SAM_APDU [10:48:52]CAPDU: 80 13 01 00 [10:48:52]Write to MH i2c: E2 08 00 E5 34 80 13 01 00 00 00 00 00 96 [10:48:52]Write i2c OK [10:48:52]MH_I2C_Read... [10:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:52]Read from MH i2c: E2 [10:48:52]MH_I2C_Read... [10:48:52]Read from MH i2c: E2 0E 00 [10:48:52]MH_I2C_Read... [10:48:52]Read from MH i2c: E2 0E 00 E5 34 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 07 [10:48:52]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [10:48:52]wFMCommunicate OK [10:48:52]SAM_PROTO_GetShiftState done [10:48:52]FM_GetShiftState done [10:48:52]opened in 1718324742 [10:48:52]opened+sec_in_day 1718411142 [10:48:52]quantity*price = 11300 [10:48:52]sum+1 = 11301 [10:48:52]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 113.00 袧小袩 1% : 1.00 袧袛小 12% : 12.00 袧邪谢懈褔薪褘屑懈: 113.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 17 14.06.2024 10:49 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22103 肖袩袛: 175406162176711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T104905&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22103&fm=175406162176711&tin=02508201610067®Number=0000000000099755&sum=11300 0 [10:48:53]StoreToDocumentArchive [10:48:53]shift 325 fd 22103 [10:48:53]save to /storage/0325/doc_00022103 [10:48:53]save last doc name /storage/0325/doc_00022103 to /storage/kkm_last_doc_name [10:48:53]save OK [10:48:53]Clear old archive folders... [10:48:53]ProcessDocumentItem done err = 0, tmpTLVsize=296 [10:48:53]tlvbuf is 002559C0 [10:48:53]SAM_PROTO_ClearQueue [10:48:53]wFMCommunicate request_size=4 [10:48:53]MH_SAM_APDU [10:48:53]CAPDU: 80 09 00 00 [10:48:53]Write to MH i2c: E2 08 00 F2 34 80 09 00 00 00 00 00 00 98 [10:48:53]Write i2c OK [10:48:53]MH_I2C_Read... [10:48:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:53]Read from MH i2c: E2 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 03 00 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 03 00 F2 34 00 90 00 9A [10:48:53]RAPDU: 90 00 [10:48:53]wFMCommunicate OK [10:48:53]SAM_PROTO_ClearQueue done [10:48:53]KKMCreateOFDPacket [10:48:53]OFDProtocolAddRootSTLVToBuf [10:48:53]FM_MakeSignedData [10:48:53]FM_MakeSignedData [10:48:53]SAM_PROTO_SignData [10:48:53]wFMCommunicate request_size=4 [10:48:53]MH_SAM_APDU [10:48:53]CAPDU: 80 0D 01 02 [10:48:53]Write to MH i2c: E2 08 00 F3 34 80 0D 01 02 00 00 00 00 A0 [10:48:53]Write i2c OK [10:48:53]MH_I2C_Read... [10:48:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:53]Read from MH i2c: E2 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 03 00 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 03 00 F3 34 00 90 00 9B [10:48:53]RAPDU: 90 00 [10:48:53]wFMCommunicate OK [10:48:53]wFMCommunicate request_size=255 [10:48:53]MH_SAM_APDU [10:48:53]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 11 00 00 00 F4 03 04 00 21 20 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [10:48:53]Write to MH i2c: E2 02 01 F4 34 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 11 00 00 00 F4 03 04 00 21 20 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 63 [10:48:53]Write i2c OK [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 [10:48:53]MH_I2C_Read... [10:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:53]Read from MH i2c: E2 03 00 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 03 00 F4 34 00 90 00 9C [10:48:53]RAPDU: 90 00 [10:48:53]wFMCommunicate OK [10:48:53]wFMCommunicate request_size=55 [10:48:53]MH_SAM_APDU [10:48:53]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 57 56 00 00 35 04 06 00 9F 87 ED FC EA C7 [10:48:53]Write to MH i2c: E2 3A 00 F5 34 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 57 56 00 00 35 04 06 00 9F 87 ED FC EA C7 00 00 72 [10:48:53]Write i2c OK [10:48:53]MH_I2C_Read... [10:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:53]Read from MH i2c: E2 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 03 00 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 03 00 F5 34 00 90 00 9D [10:48:53]RAPDU: 90 00 [10:48:53]wFMCommunicate OK [10:48:53]wFMCommunicate request_size=4 [10:48:53]MH_SAM_APDU [10:48:53]CAPDU: 80 0D 03 02 [10:48:53]Write to MH i2c: E2 08 00 F6 34 80 0D 03 02 00 00 00 00 A5 [10:48:53]Write i2c OK [10:48:53]MH_I2C_Read... [10:48:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:53]Read from MH i2c: E2 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 0B 00 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 0B 00 F6 34 00 01 31 F0 D5 26 A1 F6 48 90 00 A2 [10:48:53]RAPDU: 01 31 F0 D5 26 A1 F6 48 90 00 [10:48:53]wFMCommunicate OK [10:48:53]SAM_PROTO_SignData done [10:48:53]FM_MakeSignedData done [10:48:53]CreateOFDProtocolMessage [10:48:53]wFMCommunicate request_size=4 [10:48:53]MH_SAM_APDU [10:48:53]CAPDU: 80 11 00 00 [10:48:53]Write to MH i2c: E2 08 00 F7 34 80 11 00 00 00 00 00 00 A5 [10:48:53]Write i2c OK [10:48:53]MH_I2C_Read... [10:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:53]Read from MH i2c: E2 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 17 00 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 17 00 F7 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 F7 [10:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [10:48:53]wFMCommunicate OK [10:48:53]CreateOFDProtocolMessage done [10:48:53]OFDSenderStorePacket 22103 [10:48:53]StoreOFDPacket docnum=22103 [10:48:53]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 B9 E9 34 01 C4 E5 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 11 00 00 00 F4 03 04 00 21 20 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 9F 87 ED FC EA C7 01 31 F0 D5 26 A1 F6 48 [10:48:53]CheckFolder [10:48:53]dirname=/storage/ofd_packets [10:48:53]CheckFolder done [10:48:53]ProducePacketName [10:48:53]name=ofd_packets/00022103 [10:48:53]NVStorageSaveData ofd_packets/00022103 [10:48:53]File name is /storage/ofd_packets/00022103 [10:48:53]Write 346 bytes [10:48:53]NVStorageSaveData done [10:48:53]OFDSenderStorePacket done [10:48:53]KKMCreateOFDPacket done [10:48:53]NVStorageSaveData kkm_last_timestamp [10:48:53]File name is /storage/kkm_last_timestamp [10:48:53]Write 4 bytes [10:48:53]NVStorageSaveData done [10:48:53]ExternCall_PrintAddStr [10:48:53]wPrintStart [10:48:53]Write to MH i2c: 01 00 00 F8 34 2C [10:48:53]Write i2c OK [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: 01 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: 01 07 00 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: 01 07 00 F8 34 00 00 00 00 00 FF 0F 41 [10:48:53]RasterBufferAndPrint [10:48:53]line 小褔械褌 N : (3)254325 [10:48:53]line 袠袧袧: 02508201610067 [10:48:53]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [10:48:53]line 袩袪袨袛袗袞袗 [10:48:53]line 孝芯胁邪褉: 4870202521261 [10:48:53]line 袧邪锌懈褌芯泻 MAXI 褔邪泄 1,2 谢械褋薪褘械 褟谐芯写褘 [10:48:53]line 1.000 * 113.00 [10:48:53]line = 113.00 [10:48:53]line 袧袛小 12% 袧小袩 1% [10:48:53]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [10:48:53]line 袠孝袨袚袨: 113.00 [10:48:53]line 袧小袩 1% : 1.00 [10:48:53]line 袧袛小 12% : 12.00 [10:48:53]line 袧邪谢懈褔薪褘屑懈: 113.00 [10:48:53]line 袘械蟹薪邪谢.: 0.00 [10:48:53]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [10:48:53]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [10:48:53]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [10:48:53]line 效械泻 17 14.06.2024 10:49 [10:48:53]line 小屑械薪邪: 325 肖肖袛: 1.0 [10:48:53]line 袟袧袦: 0300000200 [10:48:53]line 袪袧袦: 0000000000099755 [10:48:53]line 袙械褉褋懈褟 袣袣袦: 001 [10:48:53]line 肖袦: 0000000000965344 [10:48:53]line 肖袛: 22103 [10:48:53]line 肖袩袛: 175406162176711 [10:48:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T104905&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22103&fm=175406162176711&tin=02508201610067®Number=0000000000099755&sum=11300 [10:48:54]line 0 [10:48:54]OFD Sender: Processing packet 22103 [packets to send 5, broken 4] [10:48:54]ProducePacketName [10:48:54]name=ofd_packets/00022103 [10:48:54]OFD Sender: To server: 嚂鰌G, [10:48:54]CommunicateWithHost lk.salyk.kg:30040 [10:48:54]ConnectInit lk.salyk.kg [10:48:54]written 0, free lines is 4095 [10:48:54]Connected sock=10 [10:48:54]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 B9 E9 34 01 C4 E5 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 11 00 00 00 F4 03 04 00 21 20 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 9F 87 ED FC EA C7 01 31 F0 D5 26 A1 F6 48 [10:48:54]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 61 9D 47 00 3E A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 57 56 00 00 F4 03 04 00 E2 C8 6B 66 B6 04 01 00 00 39 0A C3 0C 3A EF B1 B5 [10:48:54]CommunicateWithHost err = 0 [10:48:54]CheckOFDResponse [10:48:54]1017 (14) - 77093643461234 [10:48:54]1041 (16) - 0000000000965344 [10:48:54]1040 (4) - 22103 [10:48:54]1012 (4) - 14.06.2024 04:36 [10:48:54]1206 (1) - 0 [10:48:54]OFD Sender: Remove packet 22103 [10:48:54]ProducePacketName [10:48:54]name=ofd_packets/00022103 [10:48:54]NVStorageDeleteData [10:48:54]Write to MH i2c: 01 00 00 21 35 56 [10:48:54]Write i2c OK [10:48:54]MH_I2C_Read... [10:48:54]Read from MH i2c: 01 [10:48:54]MH_I2C_Read... [10:48:54]Read from MH i2c: 01 07 00 [10:48:54]MH_I2C_Read... [10:48:54]Read from MH i2c: 01 07 00 21 35 00 00 00 00 00 03 0D 6D [10:48:54]RasterBufferAndPrint [10:48:54]line [10:48:54]line [10:48:54]line [10:48:54]line [10:48:54]line [10:48:54]written 0, free lines is 3337 [10:48:54]MH_Cut [10:48:54]Write to MH i2c: D1 01 00 28 35 01 2F [10:48:54]Write i2c OK [10:48:54]MH_I2C_Read... [10:48:54]Read from MH i2c: D1 [10:48:54]MH_I2C_Read... [10:48:54]Read from MH i2c: D1 01 00 [10:48:54]MH_I2C_Read... [10:48:54]Read from MH i2c: D1 01 00 28 35 00 2E [10:48:54]Write to MH i2c: 01 00 00 29 35 5E [10:48:54]Write i2c OK [10:48:54]MH_I2C_Read... [10:48:54]OFD Sender: No OFD packet to send [10:48:55]*** Cut start [10:48:55]*** Partial cut [10:48:55]*** CUTSNS_PIN = 1 [10:48:55]*** CUTSNS_PIN = 0 [10:48:55]*** Brake cut motor [10:48:55]Read from MH i2c: 01 [10:48:55]MH_I2C_Read... [10:48:55]*** Stop cut motor [10:48:55]*** Cut end [10:48:55]Read from MH i2c: 01 07 00 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: 01 07 00 29 35 00 00 00 00 00 FF 0F 73 [10:48:55]process_action close_receipt done [10:48:55]requested_data is exist [10:48:55]produce_requested_data [10:48:55]requested_item fm.sn is exist - process it [10:48:55]wFMCommunicate request_size=4 [10:48:55]MH_SAM_APDU [10:48:55]CAPDU: 80 11 00 00 [10:48:55]Write to MH i2c: E2 08 00 2A 35 80 11 00 00 00 00 00 00 D9 [10:48:55]Write i2c OK [10:48:55]MH_I2C_Read... [10:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:55]Read from MH i2c: E2 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 17 00 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 17 00 2A 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 2B [10:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [10:48:55]wFMCommunicate OK [10:48:55]requested_item fd.num is exist - process it [10:48:55]SAM_PROTO_GetFieldsCounters [10:48:55]wFMCommunicate request_size=4 [10:48:55]MH_SAM_APDU [10:48:55]CAPDU: 80 13 00 00 [10:48:55]Write to MH i2c: E2 08 00 2B 35 80 13 00 00 00 00 00 00 DC [10:48:55]Write i2c OK [10:48:55]MH_I2C_Read... [10:48:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:55]Read from MH i2c: E2 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 62 00 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 62 00 2B 35 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 56 00 00 0E 04 04 00 45 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 2C [10:48: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 57 56 00 00 0E 04 04 00 45 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 [10:48:55]wFMCommunicate OK [10:48:55]SAM_PROTO_GetFieldsCounters done [10:48:55]requested_item shift.num is exist - process it [10:48:55]requested_item shift.opened is exist - process it [10:48:55]req_shift_opened [10:48:55]FM_GetShiftState [10:48:55]SAM_PROTO_GetShiftState [10:48:55]wFMCommunicate request_size=4 [10:48:55]MH_SAM_APDU [10:48:55]CAPDU: 80 13 01 00 [10:48:55]Write to MH i2c: E2 08 00 2C 35 80 13 01 00 00 00 00 00 DE [10:48:55]Write i2c OK [10:48:55]MH_I2C_Read... [10:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:56]Read from MH i2c: E2 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: E2 0E 00 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: E2 0E 00 2C 35 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 4F [10:48:56]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [10:48:56]wFMCommunicate OK [10:48:56]SAM_PROTO_GetShiftState done [10:48:56]FM_GetShiftState done [10:48:56]req_shift_opened done [10:48:56]requested_item shift.open_date is exist - process it [10:48:56]req_shift_open_date [10:48:56]req_shift_open_date done [10:48:56]produce_requested_data done [10:48:56]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22103,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [10:48:56]process_action_free close_receipt [10:48:56]json_value_free [10:48:56]json_value_free done [10:48:56]process_json_proto returns [10:48:56]Send response to host [10:48:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22103,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [10:48:56]free response buf [10:48:56]execute_script done [10:48:56]execute_script returns [10:48:56]free content buf [10:48:56]Sock 9.Close socket [10:48:56]Sock 9.Thread stoped [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:32]accept exits with 8 [10:49:32]New connection [10:49:32]New thread 3067178340 created [10:49:32]Thread 3067321700 joined [10:49:32]Waiting for new connection... [10:49:32] Sock 8.Parse request [10:49:32]Sock 8.Check first char [10:49:32]Sock 8.First char is OK [10:49:32]request: POST /json_proto HTTP/1.0 [10:49:32]Method: POST [10:49:32]URL: /json_proto [10:49:32]Method is POST - this is cgi request [10:49:32]url: /json_proto [10:49:32]query_string will be loaded in cgi processing [10:49:32]execute_cgi json_proto POST (null) [10:49:32]execute_cgi path=json_proto method=POST [10:49:32]POST find Content-Length [10:49:32]Host: 172.17.35.133:8080 [10:49:32]Content-Length: 843 [10:49:32]Content-Type: application/json [10:49:32] [10:49:32]POST finish read [10:49:32]Found Content-Length = 843 [10:49:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254326", "tax_sys" : 0, "items" : [ { "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 }]} ], "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" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:32]execute_script... [10:49:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254326", "tax_sys" : 0, "items" : [ { "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 }]} ], "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" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:32]POST & json_proto [10:49:32]process_json_proto [10:49:32]json parsed OK: [10:49:32]protocol is kg_v1.0 [10:49:32]action value=close_receipt [10:49:32]process_action close_receipt [10:49:32]cmd_close_receipt [10:49:32]MH_GetDate [10:49:32]Write to MH i2c: F0 00 00 2D 35 51 [10:49:32]Write i2c OK [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: F0 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: F0 09 00 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: F0 09 00 2D 35 00 49 20 6C 66 8C 55 28 65 03 [10:49:32]GetLastDocTimeStamp 1718362145 [10:49:32]current date 1718362185 [10:49:32]FM_GetShiftState [10:49:32]SAM_PROTO_GetShiftState [10:49:32]wFMCommunicate request_size=4 [10:49:32]MH_SAM_APDU [10:49:32]CAPDU: 80 13 01 00 [10:49:32]Write to MH i2c: E2 08 00 2E 35 80 13 01 00 00 00 00 00 E0 [10:49:32]Write i2c OK [10:49:32]MH_I2C_Read... [10:49:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:32]Read from MH i2c: E2 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 0E 00 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 0E 00 2E 35 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 51 [10:49:32]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [10:49:32]wFMCommunicate OK [10:49:32]SAM_PROTO_GetShiftState done [10:49:32]FM_GetShiftState done [10:49:32]opened in 1718324742 [10:49:32]opened+sec_in_day 1718411142 [10:49:32]quantity*price = 5900 [10:49:32]sum+1 = 5901 [10:49:32]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 59.00 袧小袩 1% : 0.52 袧袛小 12% : 6.26 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 59.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 18 14.06.2024 10:49 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袗袣袘 袣褘褉谐褘蟹褋褌邪薪 肖袦: 0000000000965344 肖袛: 22104 肖袩袛: 253585966515125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T104945&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22104&fm=253585966515125&tin=02508201610067®Number=0000000000099755&sum=5900 0 [10:49:33]StoreToDocumentArchive [10:49:33]shift 325 fd 22104 [10:49:33]save to /storage/0325/doc_00022104 [10:49:33]save last doc name /storage/0325/doc_00022104 to /storage/kkm_last_doc_name [10:49:33]save OK [10:49:33]Clear old archive folders... [10:49:33]ProcessDocumentItem done err = 0, tmpTLVsize=281 [10:49:33]tlvbuf is 0032E6F0 [10:49:33]SAM_PROTO_ClearQueue [10:49:33]wFMCommunicate request_size=4 [10:49:33]MH_SAM_APDU [10:49:33]CAPDU: 80 09 00 00 [10:49:33]Write to MH i2c: E2 08 00 3B 35 80 09 00 00 00 00 00 00 E2 [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:33]Read from MH i2c: E2 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 03 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 03 00 3B 35 00 90 00 E4 [10:49:33]RAPDU: 90 00 [10:49:33]wFMCommunicate OK [10:49:33]SAM_PROTO_ClearQueue done [10:49:33]KKMCreateOFDPacket [10:49:33]OFDProtocolAddRootSTLVToBuf [10:49:33]FM_MakeSignedData [10:49:33]FM_MakeSignedData [10:49:33]SAM_PROTO_SignData [10:49:33]wFMCommunicate request_size=4 [10:49:33]MH_SAM_APDU [10:49:33]CAPDU: 80 0D 01 02 [10:49:33]Write to MH i2c: E2 08 00 3C 35 80 0D 01 02 00 00 00 00 EA [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:33]Read from MH i2c: E2 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 03 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 03 00 3C 35 00 90 00 E5 [10:49:33]RAPDU: 90 00 [10:49:33]wFMCommunicate OK [10:49:33]wFMCommunicate request_size=255 [10:49:33]MH_SAM_APDU [10:49:33]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 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 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 49 20 6C 66 0E 04 04 00 45 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 [10:49:33]Write to MH i2c: E2 02 01 3D 35 80 0D 02 02 FA 00 03 00 19 01 1E 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 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 49 20 6C 66 0E 04 04 00 45 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 00 14 [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:33]Read from MH i2c: E2 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 03 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 03 00 3D 35 00 90 00 E6 [10:49:33]RAPDU: 90 00 [10:49:33]wFMCommunicate OK [10:49:33]wFMCommunicate request_size=40 [10:49:33]MH_SAM_APDU [10:49:33]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 58 56 00 00 35 04 06 00 E6 A2 95 74 43 B5 [10:49:33]Write to MH i2c: E2 2B 00 3E 35 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 58 56 00 00 35 04 06 00 E6 A2 95 74 43 B5 00 00 E0 [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:33]Read from MH i2c: E2 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 03 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 03 00 3E 35 00 90 00 E7 [10:49:33]RAPDU: 90 00 [10:49:33]wFMCommunicate OK [10:49:33]wFMCommunicate request_size=4 [10:49:33]MH_SAM_APDU [10:49:33]CAPDU: 80 0D 03 02 [10:49:33]Write to MH i2c: E2 08 00 3F 35 80 0D 03 02 00 00 00 00 EF [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:33]Read from MH i2c: E2 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 0B 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 0B 00 3F 35 00 17 15 79 0F 68 CA C5 EF 90 00 8A [10:49:33]RAPDU: 17 15 79 0F 68 CA C5 EF 90 00 [10:49:33]wFMCommunicate OK [10:49:33]SAM_PROTO_SignData done [10:49:33]FM_MakeSignedData done [10:49:33]CreateOFDProtocolMessage [10:49:33]wFMCommunicate request_size=4 [10:49:33]MH_SAM_APDU [10:49:33]CAPDU: 80 11 00 00 [10:49:33]Write to MH i2c: E2 08 00 40 35 80 11 00 00 00 00 00 00 EF [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:33]Read from MH i2c: E2 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 17 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 17 00 40 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 41 [10:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [10:49:33]wFMCommunicate OK [10:49:33]CreateOFDProtocolMessage done [10:49:33]OFDSenderStorePacket 22104 [10:49:33]StoreOFDPacket docnum=22104 [10:49: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 2D 01 00 00 C8 C2 25 01 9B 12 5A 03 01 00 03 00 19 01 1E 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 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 49 20 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 E6 A2 95 74 43 B5 17 15 79 0F 68 CA C5 EF [10:49:33]CheckFolder [10:49:33]dirname=/storage/ofd_packets [10:49:33]CheckFolder done [10:49:33]ProducePacketName [10:49:33]name=ofd_packets/00022104 [10:49:33]NVStorageSaveData ofd_packets/00022104 [10:49:33]File name is /storage/ofd_packets/00022104 [10:49:33]Write 331 bytes [10:49:33]NVStorageSaveData done [10:49:33]OFDSenderStorePacket done [10:49:33]KKMCreateOFDPacket done [10:49:33]NVStorageSaveData kkm_last_timestamp [10:49:33]File name is /storage/kkm_last_timestamp [10:49:33]Write 4 bytes [10:49:33]NVStorageSaveData done [10:49:33]ExternCall_PrintAddStr [10:49:33]wPrintStart [10:49:33]Write to MH i2c: 01 00 00 41 35 76 [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: 01 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: 01 07 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: 01 07 00 41 35 00 00 00 00 00 FF 0F 8B [10:49:33]RasterBufferAndPrint [10:49:33]line 小褔械褌 N : (3)254326 [10:49:33]line 袠袧袧: 02508201610067 [10:49:33]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [10:49:33]line 袩袪袨袛袗袞袗 [10:49:33]line 孝芯胁邪褉: 4607065001445 [10:49:33]line 楔芯泻 斜邪褌芯薪褔懈泻 Snickers 50,5谐 [10:49:33]line 1.000 * 59.00 [10:49:33]line = 59.00 [10:49:33]line 袧袛小 12% 袧小袩 1% [10:49:33]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [10:49:33]line 袠孝袨袚袨: 59.00 [10:49:33]line 袧小袩 1% : 0.52 [10:49:33]line 袧袛小 12% : 6.26 [10:49:33]line 袧邪谢懈褔薪褘屑懈: 0.00 [10:49:33]line 袘械蟹薪邪谢.: 59.00 [10:49:33]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [10:49:33]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [10:49:33]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [10:49:33]line 效械泻 18 14.06.2024 10:49 [10:49:33]line 小屑械薪邪: 325 肖肖袛: 1.0 [10:49:33]line 袟袧袦: 0300000200 [10:49:33]line 袪袧袦: 0000000000099755 [10:49:33]line 袙械褉褋懈褟 袣袣袦: 001 [10:49:33]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袗袣袘 袣褘褉谐褘蟹褋褌邪薪 [10:49:33]line 肖袦: 0000000000965344 [10:49:33]line 肖袛: 22104 [10:49:33]line 肖袩袛: 253585966515125 [10:49:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T104945&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22104&fm=253585966515125&tin=02508201610067®Number=0000000000099755&sum=5900 [10:49:34]line 0 [10:49:34]OFD Sender: Processing packet 22104 [packets to send 5, broken 4] [10:49:34]ProducePacketName [10:49:34]name=ofd_packets/00022104 [10:49:34]OFD Sender: To server: 嚂鰌G, [10:49:34]CommunicateWithHost lk.salyk.kg:30040 [10:49:34]ConnectInit lk.salyk.kg [10:49:34]written 0, free lines is 4095 [10:49:34]Connected sock=10 [10:49: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 2D 01 00 00 C8 C2 25 01 9B 12 5A 03 01 00 03 00 19 01 1E 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 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 49 20 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 E6 A2 95 74 43 B5 17 15 79 0F 68 CA C5 EF [10:49: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 88 17 47 00 27 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 58 56 00 00 F4 03 04 00 0A C9 6B 66 B6 04 01 00 00 3E 23 0A F7 4F E6 5A 64 [10:49:34]CommunicateWithHost err = 0 [10:49:34]CheckOFDResponse [10:49:34]1017 (14) - 77093643461234 [10:49:34]1041 (16) - 0000000000965344 [10:49:34]1040 (4) - 22104 [10:49:34]1012 (4) - 14.06.2024 04:37 [10:49:34]1206 (1) - 0 [10:49:34]OFD Sender: Remove packet 22104 [10:49:34]ProducePacketName [10:49:34]name=ofd_packets/00022104 [10:49:34]NVStorageDeleteData [10:49:34]Write to MH i2c: 01 00 00 6B 35 A0 [10:49:34]Write i2c OK [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: 01 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: 01 07 00 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: 01 07 00 6B 35 00 00 00 00 00 FD 0C B0 [10:49:34]RasterBufferAndPrint [10:49:34]line [10:49:34]line [10:49:34]line [10:49:34]line [10:49:34]line [10:49:34]written 0, free lines is 3333 [10:49:34]MH_Cut [10:49:34]Write to MH i2c: D1 01 00 72 35 01 79 [10:49:34]Write i2c OK [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: D1 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: D1 01 00 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: D1 01 00 72 35 00 78 [10:49:34]Write to MH i2c: 01 00 00 73 35 A8 [10:49:34]Write i2c OK [10:49:34]MH_I2C_Read... [10:49:35]OFD Sender: No OFD packet to send [10:49:35]*** Cut start [10:49:35]*** Partial cut [10:49:35]*** CUTSNS_PIN = 1 [10:49:35]*** CUTSNS_PIN = 0 [10:49:35]*** Brake cut motor [10:49:36]Read from MH i2c: 01 [10:49:36]MH_I2C_Read... [10:49:36]*** Stop cut motor [10:49:36]*** Cut end [10:49:36]Read from MH i2c: 01 07 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: 01 07 00 73 35 00 00 00 00 00 FF 0F BD [10:49:36]process_action close_receipt done [10:49:36]requested_data is exist [10:49:36]produce_requested_data [10:49:36]requested_item fm.sn is exist - process it [10:49:36]wFMCommunicate request_size=4 [10:49:36]MH_SAM_APDU [10:49:36]CAPDU: 80 11 00 00 [10:49:36]Write to MH i2c: E2 08 00 74 35 80 11 00 00 00 00 00 00 23 [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:36]Read from MH i2c: E2 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 17 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 17 00 74 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 75 [10:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [10:49:36]wFMCommunicate OK [10:49:36]requested_item fd.num is exist - process it [10:49:36]SAM_PROTO_GetFieldsCounters [10:49:36]wFMCommunicate request_size=4 [10:49:36]MH_SAM_APDU [10:49:36]CAPDU: 80 13 00 00 [10:49:36]Write to MH i2c: E2 08 00 75 35 80 13 00 00 00 00 00 00 26 [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:36]Read from MH i2c: E2 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 62 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 62 00 75 35 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 56 00 00 0E 04 04 00 45 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 7A [10:49: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 58 56 00 00 0E 04 04 00 45 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 [10:49:36]wFMCommunicate OK [10:49:36]SAM_PROTO_GetFieldsCounters done [10:49:36]requested_item shift.num is exist - process it [10:49:36]requested_item shift.opened is exist - process it [10:49:36]req_shift_opened [10:49:36]FM_GetShiftState [10:49:36]SAM_PROTO_GetShiftState [10:49:36]wFMCommunicate request_size=4 [10:49:36]MH_SAM_APDU [10:49:36]CAPDU: 80 13 01 00 [10:49:36]Write to MH i2c: E2 08 00 76 35 80 13 01 00 00 00 00 00 28 [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:36]Read from MH i2c: E2 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 0E 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 0E 00 76 35 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 99 [10:49:36]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [10:49:36]wFMCommunicate OK [10:49:36]SAM_PROTO_GetShiftState done [10:49:36]FM_GetShiftState done [10:49:36]req_shift_opened done [10:49:36]requested_item shift.open_date is exist - process it [10:49:36]req_shift_open_date [10:49:36]req_shift_open_date done [10:49:36]produce_requested_data done [10:49:36]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22104,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [10:49:36]process_action_free close_receipt [10:49:36]json_value_free [10:49:36]json_value_free done [10:49:36]process_json_proto returns [10:49:36]Send response to host [10:49:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22104,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [10:49:36]free response buf [10:49:36]execute_script done [10:49:36]execute_script returns [10:49:36]free content buf [10:49:36]Sock 8.Close socket [10:49:36]Sock 8.Thread stoped [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [10:58:10]OFD Sender: No OFD packet to send [10:58:15]OFD Sender: No OFD packet to send [10:58:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:36]OFD Sender: No OFD packet to send [11:25:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:16]OFD Sender: No OFD packet to send [11:28:21]OFD Sender: No OFD packet to send [11:28:26]OFD Sender: No OFD packet to send [11:28:31]OFD Sender: No OFD packet to send [11:28:36]OFD Sender: No OFD packet to send [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:35]accept exits with 9 [11:30:35]New connection [11:30:35]New thread 3067321700 created [11:30:35]Thread 3067178340 joined [11:30:35]Waiting for new connection... [11:30:35] Sock 9.Parse request [11:30:35]Sock 9.Check first char [11:30:35]Sock 9.First char is OK [11:30:35]request: POST /json_proto HTTP/1.0 [11:30:35]Method: POST [11:30:35]URL: /json_proto [11:30:35]Method is POST - this is cgi request [11:30:35]url: /json_proto [11:30:35]query_string will be loaded in cgi processing [11:30:35]execute_cgi json_proto POST (null) [11:30:35]execute_cgi path=json_proto method=POST [11:30:35]POST find Content-Length [11:30:35]Host: 172.17.35.133:8080 [11:30:35]Content-Length: 630 [11:30:35]Content-Type: application/json [11:30:35] [11:30:35]POST finish read [11:30:35]Found Content-Length = 630 [11:30:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254327", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:35]execute_script... [11:30:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254327", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:35]POST & json_proto [11:30:35]process_json_proto [11:30:35]json parsed OK: [11:30:35]protocol is kg_v1.0 [11:30:35]action value=close_receipt [11:30:35]process_action close_receipt [11:30:35]cmd_close_receipt [11:30:35]MH_GetDate [11:30:35]Write to MH i2c: F0 00 00 77 35 9B [11:30:35]Write i2c OK [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: F0 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: F0 09 00 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: F0 09 00 77 35 00 E8 29 6C 66 8C 55 28 65 F5 [11:30:35]GetLastDocTimeStamp 1718362185 [11:30:35]current date 1718364648 [11:30:35]FM_GetShiftState [11:30:35]SAM_PROTO_GetShiftState [11:30:35]wFMCommunicate request_size=4 [11:30:35]MH_SAM_APDU [11:30:35]CAPDU: 80 13 01 00 [11:30:35]Write to MH i2c: E2 08 00 78 35 80 13 01 00 00 00 00 00 2A [11:30:35]Write i2c OK [11:30:35]MH_I2C_Read... [11:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:35]Read from MH i2c: E2 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 0E 00 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 0E 00 78 35 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 9B [11:30:35]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [11:30:35]wFMCommunicate OK [11:30:35]SAM_PROTO_GetShiftState done [11:30:35]FM_GetShiftState done [11:30:35]opened in 1718324742 [11:30:35]opened+sec_in_day 1718411142 [11:30:35]quantity*price = 5000 [11:30:35]sum+1 = 5001 [11:30:35]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 50.00 袧小袩 1% : 0.44 袧袛小 12% : 5.31 袧邪谢懈褔薪褘屑懈: 50.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 19 14.06.2024 11:30 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22105 肖袩袛: 31665159372807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T113049&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22105&fm=31665159372807&tin=02508201610067®Number=0000000000099755&sum=5000 0 [11:30:36]StoreToDocumentArchive [11:30:36]shift 325 fd 22105 [11:30:36]save to /storage/0325/doc_00022105 [11:30:36]save last doc name /storage/0325/doc_00022105 to /storage/kkm_last_doc_name [11:30:36]save OK [11:30:36]Clear old archive folders... [11:30:36]ProcessDocumentItem done err = 0, tmpTLVsize=269 [11:30:36]tlvbuf is 002C50F0 [11:30:36]SAM_PROTO_ClearQueue [11:30:36]wFMCommunicate request_size=4 [11:30:36]MH_SAM_APDU [11:30:36]CAPDU: 80 09 00 00 [11:30:36]Write to MH i2c: E2 08 00 85 35 80 09 00 00 00 00 00 00 2C [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:36]Read from MH i2c: E2 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 03 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 03 00 85 35 00 90 00 2E [11:30:36]RAPDU: 90 00 [11:30:36]wFMCommunicate OK [11:30:36]SAM_PROTO_ClearQueue done [11:30:36]KKMCreateOFDPacket [11:30:36]OFDProtocolAddRootSTLVToBuf [11:30:36]FM_MakeSignedData [11:30:36]FM_MakeSignedData [11:30:36]SAM_PROTO_SignData [11:30:36]wFMCommunicate request_size=4 [11:30:36]MH_SAM_APDU [11:30:36]CAPDU: 80 0D 01 02 [11:30:36]Write to MH i2c: E2 08 00 86 35 80 0D 01 02 00 00 00 00 34 [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:36]Read from MH i2c: E2 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 03 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 03 00 86 35 00 90 00 2F [11:30:36]RAPDU: 90 00 [11:30:36]wFMCommunicate OK [11:30:36]wFMCommunicate request_size=255 [11:30:36]MH_SAM_APDU [11:30:36]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E9 29 6C 66 0E 04 04 00 45 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 [11:30:36]Write to MH i2c: E2 02 01 87 35 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E9 29 6C 66 0E 04 04 00 45 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 93 [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:36]Read from MH i2c: E2 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 03 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 03 00 87 35 00 90 00 30 [11:30:36]RAPDU: 90 00 [11:30:36]wFMCommunicate OK [11:30:36]wFMCommunicate request_size=28 [11:30:36]MH_SAM_APDU [11:30:36]CAPDU: 80 0D 02 02 17 36 35 33 34 34 10 04 04 00 59 56 00 00 35 04 06 00 1C CC 9E 93 80 07 [11:30:36]Write to MH i2c: E2 1F 00 88 35 80 0D 02 02 17 00 36 35 33 34 34 10 04 04 00 59 56 00 00 35 04 06 00 1C CC 9E 93 80 07 00 00 11 [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:36]Read from MH i2c: E2 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 03 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 03 00 88 35 00 90 00 31 [11:30:36]RAPDU: 90 00 [11:30:36]wFMCommunicate OK [11:30:36]wFMCommunicate request_size=4 [11:30:36]MH_SAM_APDU [11:30:36]CAPDU: 80 0D 03 02 [11:30:36]Write to MH i2c: E2 08 00 89 35 80 0D 03 02 00 00 00 00 39 [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:36]Read from MH i2c: E2 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 0B 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 0B 00 89 35 00 88 04 CC 56 39 17 DF E4 90 00 FB [11:30:36]RAPDU: 88 04 CC 56 39 17 DF E4 90 00 [11:30:36]wFMCommunicate OK [11:30:36]SAM_PROTO_SignData done [11:30:36]FM_MakeSignedData done [11:30:36]CreateOFDProtocolMessage [11:30:36]wFMCommunicate request_size=4 [11:30:36]MH_SAM_APDU [11:30:36]CAPDU: 80 11 00 00 [11:30:36]Write to MH i2c: E2 08 00 8A 35 80 11 00 00 00 00 00 00 39 [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:36]Read from MH i2c: E2 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 17 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 17 00 8A 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 8B [11:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [11:30:36]wFMCommunicate OK [11:30:36]CreateOFDProtocolMessage done [11:30:36]OFDSenderStorePacket 22105 [11:30:36]StoreOFDPacket docnum=22105 [11:30: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 21 01 00 00 5D 92 19 01 4D A9 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E9 29 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 1C CC 9E 93 80 07 88 04 CC 56 39 17 DF E4 [11:30:36]CheckFolder [11:30:36]dirname=/storage/ofd_packets [11:30:36]CheckFolder done [11:30:36]ProducePacketName [11:30:36]name=ofd_packets/00022105 [11:30:36]NVStorageSaveData ofd_packets/00022105 [11:30:36]File name is /storage/ofd_packets/00022105 [11:30:36]Write 319 bytes [11:30:36]NVStorageSaveData done [11:30:36]OFDSenderStorePacket done [11:30:36]KKMCreateOFDPacket done [11:30:36]NVStorageSaveData kkm_last_timestamp [11:30:36]File name is /storage/kkm_last_timestamp [11:30:36]Write 4 bytes [11:30:36]NVStorageSaveData done [11:30:36]ExternCall_PrintAddStr [11:30:36]wPrintStart [11:30:36]Write to MH i2c: 01 00 00 8B 35 C0 [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: 01 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: 01 07 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: 01 07 00 8B 35 00 00 00 00 00 FF 0F D5 [11:30:36]RasterBufferAndPrint [11:30:36]line 小褔械褌 N : (3)254327 [11:30:36]line 袠袧袧: 02508201610067 [11:30:36]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [11:30:36]line 袩袪袨袛袗袞袗 [11:30:36]line 孝芯胁邪褉: 4700000160358 [11:30:36]line 袙芯写邪 袥械谐械薪写邪 1谢 [11:30:36]line 1.000 * 50.00 [11:30:36]line = 50.00 [11:30:36]line 袧袛小 12% 袧小袩 1% [11:30:36]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [11:30:36]line 袠孝袨袚袨: 50.00 [11:30:36]line 袧小袩 1% : 0.44 [11:30:36]line 袧袛小 12% : 5.31 [11:30:36]line 袧邪谢懈褔薪褘屑懈: 50.00 [11:30:36]line 袘械蟹薪邪谢.: 0.00 [11:30:36]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [11:30:36]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [11:30:36]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [11:30:36]line 效械泻 19 14.06.2024 11:30 [11:30:36]line 小屑械薪邪: 325 肖肖袛: 1.0 [11:30:36]line 袟袧袦: 0300000200 [11:30:36]line 袪袧袦: 0000000000099755 [11:30:36]line 袙械褉褋懈褟 袣袣袦: 001 [11:30:36]line 肖袦: 0000000000965344 [11:30:36]line 肖袛: 22105 [11:30:36]line 肖袩袛: 31665159372807 [11:30:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T113049&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22105&fm=31665159372807&tin=02508201610067®Number=0000000000099755&sum=5000 [11:30:37]OFD Sender: Processing packet 22105 [packets to send 5, broken 4] [11:30:37]ProducePacketName [11:30:37]name=ofd_packets/00022105 [11:30:37]OFD Sender: To server: 嚂鰌G, [11:30:37]CommunicateWithHost lk.salyk.kg:30040 [11:30:37]ConnectInit lk.salyk.kg [11:30:37]line 0 [11:30:37]written 0, free lines is 4095 [11:30:37]Connected sock=10 [11:30:37]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 5D 92 19 01 4D A9 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E9 29 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 1C CC 9E 93 80 07 88 04 CC 56 39 17 DF E4 [11:30:37]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 60 11 47 00 03 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 56 00 00 F4 03 04 00 A9 D2 6B 66 B6 04 01 00 00 DF 4F 4D B8 73 54 48 13 [11:30:37]CommunicateWithHost err = 0 [11:30:37]CheckOFDResponse [11:30:37]1017 (14) - 77093643461234 [11:30:37]1041 (16) - 0000000000965344 [11:30:37]1040 (4) - 22105 [11:30:37]1012 (4) - 14.06.2024 05:18 [11:30:37]1206 (1) - 0 [11:30:37]OFD Sender: Remove packet 22105 [11:30:37]ProducePacketName [11:30:37]name=ofd_packets/00022105 [11:30:37]NVStorageDeleteData [11:30:37]Write to MH i2c: 01 00 00 B3 35 E8 [11:30:37]Write i2c OK [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: 01 [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: 01 07 00 [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: 01 07 00 B3 35 00 00 00 00 00 0F 0D 0B [11:30:37]RasterBufferAndPrint [11:30:37]line [11:30:37]line [11:30:37]line [11:30:37]line [11:30:37]line [11:30:37]written 0, free lines is 3350 [11:30:37]MH_Cut [11:30:37]Write to MH i2c: D1 01 00 BA 35 01 C1 [11:30:37]Write i2c OK [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: D1 [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: D1 01 00 [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: D1 01 00 BA 35 00 C0 [11:30:37]Write to MH i2c: 01 00 00 BB 35 F0 [11:30:37]Write i2c OK [11:30:37]MH_I2C_Read... [11:30:38]OFD Sender: No OFD packet to send [11:30:38]*** Cut start [11:30:38]*** Partial cut [11:30:38]*** CUTSNS_PIN = 1 [11:30:38]*** CUTSNS_PIN = 0 [11:30:38]*** Brake cut motor [11:30:38]Read from MH i2c: 01 [11:30:38]MH_I2C_Read... [11:30:38]*** Stop cut motor [11:30:38]*** Cut end [11:30:38]Read from MH i2c: 01 07 00 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: 01 07 00 BB 35 00 00 00 00 00 FF 0F 05 [11:30:38]process_action close_receipt done [11:30:38]requested_data is exist [11:30:38]produce_requested_data [11:30:38]requested_item fm.sn is exist - process it [11:30:38]wFMCommunicate request_size=4 [11:30:38]MH_SAM_APDU [11:30:38]CAPDU: 80 11 00 00 [11:30:38]Write to MH i2c: E2 08 00 BC 35 80 11 00 00 00 00 00 00 6B [11:30:38]Write i2c OK [11:30:38]MH_I2C_Read... [11:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:38]Read from MH i2c: E2 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 17 00 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 17 00 BC 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 BD [11:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [11:30:38]wFMCommunicate OK [11:30:38]requested_item fd.num is exist - process it [11:30:38]SAM_PROTO_GetFieldsCounters [11:30:38]wFMCommunicate request_size=4 [11:30:38]MH_SAM_APDU [11:30:38]CAPDU: 80 13 00 00 [11:30:38]Write to MH i2c: E2 08 00 BD 35 80 13 00 00 00 00 00 00 6E [11:30:38]Write i2c OK [11:30:38]MH_I2C_Read... [11:30:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:39]Read from MH i2c: E2 [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: E2 62 00 [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: E2 62 00 BD 35 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 56 00 00 0E 04 04 00 45 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 C6 [11:30:39]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 56 00 00 0E 04 04 00 45 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 [11:30:39]wFMCommunicate OK [11:30:39]SAM_PROTO_GetFieldsCounters done [11:30:39]requested_item shift.num is exist - process it [11:30:39]requested_item shift.opened is exist - process it [11:30:39]req_shift_opened [11:30:39]FM_GetShiftState [11:30:39]SAM_PROTO_GetShiftState [11:30:39]wFMCommunicate request_size=4 [11:30:39]MH_SAM_APDU [11:30:39]CAPDU: 80 13 01 00 [11:30:39]Write to MH i2c: E2 08 00 BE 35 80 13 01 00 00 00 00 00 70 [11:30:39]Write i2c OK [11:30:39]MH_I2C_Read... [11:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:39]Read from MH i2c: E2 [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: E2 0E 00 [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: E2 0E 00 BE 35 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 E1 [11:30:39]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [11:30:39]wFMCommunicate OK [11:30:39]SAM_PROTO_GetShiftState done [11:30:39]FM_GetShiftState done [11:30:39]req_shift_opened done [11:30:39]requested_item shift.open_date is exist - process it [11:30:39]req_shift_open_date [11:30:39]req_shift_open_date done [11:30:39]produce_requested_data done [11:30:39]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22105,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [11:30:39]process_action_free close_receipt [11:30:39]json_value_free [11:30:39]json_value_free done [11:30:39]process_json_proto returns [11:30:39]Send response to host [11:30:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22105,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [11:30:39]free response buf [11:30:39]execute_script done [11:30:39]execute_script returns [11:30:39]free content buf [11:30:39]Sock 9.Close socket [11:30:39]Sock 9.Thread stoped [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:13]OFD Sender: No OFD packet to send [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57:09]OFD Sender: No OFD packet to send [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [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:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10:54]OFD Sender: No OFD packet to send [12:10:59]OFD Sender: No OFD packet to send [12:11:04]OFD Sender: No OFD packet to send [12:11:09]OFD Sender: No OFD packet to send [12:11:14]OFD Sender: No OFD packet to send [12:11:19]OFD Sender: No OFD packet to send [12:11:24]OFD Sender: No OFD packet to send [12:11:29]OFD Sender: No OFD packet to send [12:11:34]OFD Sender: No OFD packet to send [12:11:39]OFD Sender: No OFD packet to send [12:11:44]OFD Sender: No OFD packet to send [12:11:49]OFD Sender: No OFD packet to send [12:11:54]OFD Sender: No OFD packet to send [12:11:59]OFD Sender: No OFD packet to send [12:12:04]OFD Sender: No OFD packet to send [12:12:09]OFD Sender: No OFD packet to send [12:12:14]OFD Sender: No OFD packet to send [12:12:19]OFD Sender: No OFD packet to send [12:12:24]OFD Sender: No OFD packet to send [12:12:29]OFD Sender: No OFD packet to send [12:12:34]OFD Sender: No OFD packet to send [12:12:39]OFD Sender: No OFD packet to send [12:12:44]OFD Sender: No OFD packet to send [12:12:49]OFD Sender: No OFD packet to send [12:12:54]OFD Sender: No OFD packet to send [12:12:59]OFD Sender: No OFD packet to send [12:13:04]OFD Sender: No OFD packet to send [12:13:09]OFD Sender: No OFD packet to send [12:13:14]OFD Sender: No OFD packet to send [12:13:19]OFD Sender: No OFD packet to send [12:13:24]OFD Sender: No OFD packet to send [12:13: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:20:56]accept exits with 8 [12:20:56]New connection [12:20:56]New thread 3067178340 created [12:20:56]Thread 3067321700 joined [12:20:56]Waiting for new connection... [12:20:56] Sock 8.Parse request [12:20:56]Sock 8.Check first char [12:20:56]Sock 8.First char is OK [12:20:56]request: POST /json_proto HTTP/1.0 [12:20:56]Method: POST [12:20:56]URL: /json_proto [12:20:56]Method is POST - this is cgi request [12:20:56]url: /json_proto [12:20:56]query_string will be loaded in cgi processing [12:20:56]execute_cgi json_proto POST (null) [12:20:56]execute_cgi path=json_proto method=POST [12:20:56]POST find Content-Length [12:20:56]Host: 172.17.35.133:8080 [12:20:56]Content-Length: 640 [12:20:56]Content-Type: application/json [12:20:56] [12:20:56]POST finish read [12:20:56]Found Content-Length = 640 [12:20:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254329", "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" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:56]execute_script... [12:20:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254329", "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" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:56]POST & json_proto [12:20:56]process_json_proto [12:20:56]json parsed OK: [12:20:56]protocol is kg_v1.0 [12:20:56]action value=close_receipt [12:20:56]process_action close_receipt [12:20:56]cmd_close_receipt [12:20:56]MH_GetDate [12:20:56]Write to MH i2c: F0 00 00 BF 35 E3 [12:20:56]Write i2c OK [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: F0 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: F0 09 00 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: F0 09 00 BF 35 00 B7 35 6C 66 8C 55 28 65 18 [12:20:56]GetLastDocTimeStamp 1718364649 [12:20:56]current date 1718367671 [12:20:56]FM_GetShiftState [12:20:56]SAM_PROTO_GetShiftState [12:20:56]wFMCommunicate request_size=4 [12:20:56]MH_SAM_APDU [12:20:56]CAPDU: 80 13 01 00 [12:20:56]Write to MH i2c: E2 08 00 C0 35 80 13 01 00 00 00 00 00 72 [12:20:56]Write i2c OK [12:20:56]MH_I2C_Read... [12:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:57]Read from MH i2c: E2 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 0E 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 0E 00 C0 35 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 E3 [12:20:57]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:20:57]wFMCommunicate OK [12:20:57]SAM_PROTO_GetShiftState done [12:20:57]FM_GetShiftState done [12:20:57]opened in 1718324742 [12:20:57]opened+sec_in_day 1718411142 [12:20:57]quantity*price = 14000 [12:20:57]sum+1 = 14001 [12:20:57]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 140.00 袧小袩 1% : 1.24 袧袛小 12% : 14.87 袧邪谢懈褔薪褘屑懈: 140.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 20 14.06.2024 12:21 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22106 肖袩袛: 268693448789936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T122111&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22106&fm=268693448789936&tin=02508201610067®Number=0000000000099755&sum=14000 0 [12:20:58]StoreToDocumentArchive [12:20:58]shift 325 fd 22106 [12:20:58]save to /storage/0325/doc_00022106 [12:20:58]save last doc name /storage/0325/doc_00022106 to /storage/kkm_last_doc_name [12:20:58]save OK [12:20:58]Clear old archive folders... [12:20:58]ProcessDocumentItem done err = 0, tmpTLVsize=273 [12:20:58]tlvbuf is 0031E570 [12:20:58]SAM_PROTO_ClearQueue [12:20:58]wFMCommunicate request_size=4 [12:20:58]MH_SAM_APDU [12:20:58]CAPDU: 80 09 00 00 [12:20:58]Write to MH i2c: E2 08 00 CD 35 80 09 00 00 00 00 00 00 74 [12:20:58]Write i2c OK [12:20:58]MH_I2C_Read... [12:20:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:58]Read from MH i2c: E2 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 03 00 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 03 00 CD 35 00 90 00 76 [12:20:58]RAPDU: 90 00 [12:20:58]wFMCommunicate OK [12:20:58]SAM_PROTO_ClearQueue done [12:20:58]KKMCreateOFDPacket [12:20:58]OFDProtocolAddRootSTLVToBuf [12:20:58]FM_MakeSignedData [12:20:58]FM_MakeSignedData [12:20:58]SAM_PROTO_SignData [12:20:58]wFMCommunicate request_size=4 [12:20:58]MH_SAM_APDU [12:20:58]CAPDU: 80 0D 01 02 [12:20:58]Write to MH i2c: E2 08 00 CE 35 80 0D 01 02 00 00 00 00 7C [12:20:58]Write i2c OK [12:20:58]MH_I2C_Read... [12:20:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:58]Read from MH i2c: E2 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 03 00 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 03 00 CE 35 00 90 00 77 [12:20:58]RAPDU: 90 00 [12:20:58]wFMCommunicate OK [12:20:58]wFMCommunicate request_size=255 [12:20:58]MH_SAM_APDU [12:20:58]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 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 B7 35 6C 66 0E 04 04 00 45 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 [12:20:58]Write to MH i2c: E2 02 01 CF 35 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 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 B7 35 6C 66 0E 04 04 00 45 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 27 [12:20:58]Write i2c OK [12:20:58]MH_I2C_Read... [12:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:58]Read from MH i2c: E2 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 03 00 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 03 00 CF 35 00 90 00 78 [12:20:58]RAPDU: 90 00 [12:20:58]wFMCommunicate OK [12:20:58]wFMCommunicate request_size=32 [12:20:58]MH_SAM_APDU [12:20:58]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 34 34 10 04 04 00 5A 56 00 00 35 04 06 00 F4 60 11 91 8F B0 [12:20:58]Write to MH i2c: E2 23 00 D0 35 80 0D 02 02 1B 00 30 30 30 39 36 35 33 34 34 10 04 04 00 5A 56 00 00 35 04 06 00 F4 60 11 91 8F B0 00 00 C0 [12:20:58]Write i2c OK [12:20:58]MH_I2C_Read... [12:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:58]Read from MH i2c: E2 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 03 00 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 03 00 D0 35 00 90 00 79 [12:20:58]RAPDU: 90 00 [12:20:58]wFMCommunicate OK [12:20:58]wFMCommunicate request_size=4 [12:20:58]MH_SAM_APDU [12:20:58]CAPDU: 80 0D 03 02 [12:20:58]Write to MH i2c: E2 08 00 D1 35 80 0D 03 02 00 00 00 00 81 [12:20:58]Write i2c OK [12:20:58]MH_I2C_Read... [12:20:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:58]Read from MH i2c: E2 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 0B 00 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 0B 00 D1 35 00 A0 EA EC D8 B5 D0 2D 5C 90 00 DE [12:20:58]RAPDU: A0 EA EC D8 B5 D0 2D 5C 90 00 [12:20:58]wFMCommunicate OK [12:20:58]SAM_PROTO_SignData done [12:20:58]FM_MakeSignedData done [12:20:58]CreateOFDProtocolMessage [12:20:58]wFMCommunicate request_size=4 [12:20:58]MH_SAM_APDU [12:20:58]CAPDU: 80 11 00 00 [12:20:58]Write to MH i2c: E2 08 00 D2 35 80 11 00 00 00 00 00 00 81 [12:20:58]Write i2c OK [12:20:58]MH_I2C_Read... [12:20:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:58]Read from MH i2c: E2 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 17 00 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 17 00 D2 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 D3 [12:20:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:20:58]wFMCommunicate OK [12:20:58]CreateOFDProtocolMessage done [12:20:58]OFDSenderStorePacket 22106 [12:20:58]StoreOFDPacket docnum=22106 [12:20:58]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 E6 66 1D 01 1F 89 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 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 B7 35 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 F4 60 11 91 8F B0 A0 EA EC D8 B5 D0 2D 5C [12:20:58]CheckFolder [12:20:58]dirname=/storage/ofd_packets [12:20:58]CheckFolder done [12:20:58]ProducePacketName [12:20:58]name=ofd_packets/00022106 [12:20:58]NVStorageSaveData ofd_packets/00022106 [12:20:58]File name is /storage/ofd_packets/00022106 [12:20:58]Write 323 bytes [12:20:58]NVStorageSaveData done [12:20:58]OFDSenderStorePacket done [12:20:58]KKMCreateOFDPacket done [12:20:58]NVStorageSaveData kkm_last_timestamp [12:20:58]File name is /storage/kkm_last_timestamp [12:20:58]Write 4 bytes [12:20:58]NVStorageSaveData done [12:20:58]ExternCall_PrintAddStr [12:20:58]wPrintStart [12:20:58]Write to MH i2c: 01 00 00 D3 35 08 [12:20:58]Write i2c OK [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: 01 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: 01 07 00 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: 01 07 00 D3 35 00 00 00 00 00 FF 0F 1D [12:20:58]RasterBufferAndPrint [12:20:58]line 小褔械褌 N : (3)254329 [12:20:58]line 袠袧袧: 02508201610067 [12:20:58]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [12:20:58]line 袩袪袨袛袗袞袗 [12:20:58]line 孝芯胁邪褉: 4700002082931 [12:20:58]line 袙芯写泻邪 啸芯褉芯褕邪褟 0,1谢 [12:20:58]line 2.000 * 70.00 [12:20:58]line = 140.00 [12:20:58]line 袧袛小 12% 袧小袩 1% [12:20:58]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [12:20:58]line 袠孝袨袚袨: 140.00 [12:20:58]line 袧小袩 1% : 1.24 [12:20:58]line 袧袛小 12% : 14.87 [12:20:58]line 袧邪谢懈褔薪褘屑懈: 140.00 [12:20:58]line 袘械蟹薪邪谢.: 0.00 [12:20:58]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [12:20:58]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [12:20:58]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [12:20:58]line 效械泻 20 14.06.2024 12:21 [12:20:58]line 小屑械薪邪: 325 肖肖袛: 1.0 [12:20:58]line 袟袧袦: 0300000200 [12:20:58]line 袪袧袦: 0000000000099755 [12:20:58]line 袙械褉褋懈褟 袣袣袦: 001 [12:20:58]line 肖袦: 0000000000965344 [12:20:58]line 肖袛: 22106 [12:20:58]line 肖袩袛: 268693448789936 [12:20:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T122111&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22106&fm=268693448789936&tin=02508201610067®Number=0000000000099755&sum=14000 [12:20:59]line 0 [12:20:59]OFD Sender: Processing packet 22106 [packets to send 5, broken 4] [12:20:59]ProducePacketName [12:20:59]name=ofd_packets/00022106 [12:20:59]OFD Sender: To server: 嚂鰌G, [12:20:59]CommunicateWithHost lk.salyk.kg:30040 [12:20:59]ConnectInit lk.salyk.kg [12:20:59]written 0, free lines is 4095 [12:20:59]Connected sock=10 [12:20: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 25 01 00 00 E6 66 1D 01 1F 89 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 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 B7 35 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 F4 60 11 91 8F B0 A0 EA EC D8 B5 D0 2D 5C [12:20: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 B3 CD 47 00 C1 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5A 56 00 00 F4 03 04 00 77 DE 6B 66 B6 04 01 00 00 96 00 48 53 D0 93 83 E9 [12:20:59]CommunicateWithHost err = 0 [12:20:59]CheckOFDResponse [12:20:59]1017 (14) - 77093643461234 [12:20:59]1041 (16) - 0000000000965344 [12:20:59]1040 (4) - 22106 [12:20:59]1012 (4) - 14.06.2024 06:08 [12:20:59]1206 (1) - 0 [12:20:59]OFD Sender: Remove packet 22106 [12:20:59]ProducePacketName [12:20:59]name=ofd_packets/00022106 [12:20:59]NVStorageDeleteData [12:20:59]Write to MH i2c: 01 00 00 FB 35 30 [12:20:59]Write i2c OK [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: 01 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: 01 07 00 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: 01 07 00 FB 35 00 00 00 00 00 23 0D 67 [12:20:59]RasterBufferAndPrint [12:20:59]line [12:20:59]line [12:20:59]line [12:20:59]line [12:20:59]line [12:20:59]written 0, free lines is 3370 [12:20:59]MH_Cut [12:20:59]Write to MH i2c: D1 01 00 02 36 01 0A [12:20:59]Write i2c OK [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: D1 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: D1 01 00 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: D1 01 00 02 36 00 09 [12:20:59]Write to MH i2c: 01 00 00 03 36 39 [12:20:59]Write i2c OK [12:20:59]MH_I2C_Read... [12:20:59]OFD Sender: No OFD packet to send [12:21:00]*** Cut start [12:21:00]*** Partial cut [12:21:00]*** CUTSNS_PIN = 1 [12:21:00]*** CUTSNS_PIN = 0 [12:21:00]*** Brake cut motor [12:21:00]Read from MH i2c: 01 [12:21:00]MH_I2C_Read... [12:21:00]*** Stop cut motor [12:21:00]*** Cut end [12:21:00]Read from MH i2c: 01 07 00 [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: 01 07 00 03 36 00 00 00 00 00 FF 0F 4E [12:21:00]process_action close_receipt done [12:21:00]requested_data is exist [12:21:00]produce_requested_data [12:21:00]requested_item fm.sn is exist - process it [12:21:00]wFMCommunicate request_size=4 [12:21:00]MH_SAM_APDU [12:21:00]CAPDU: 80 11 00 00 [12:21:00]Write to MH i2c: E2 08 00 04 36 80 11 00 00 00 00 00 00 B4 [12:21:00]Write i2c OK [12:21:00]MH_I2C_Read... [12:21:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:00]Read from MH i2c: E2 [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: E2 17 00 [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: E2 17 00 04 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 06 [12:21:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:21:00]wFMCommunicate OK [12:21:00]requested_item fd.num is exist - process it [12:21:00]SAM_PROTO_GetFieldsCounters [12:21:00]wFMCommunicate request_size=4 [12:21:00]MH_SAM_APDU [12:21:00]CAPDU: 80 13 00 00 [12:21:00]Write to MH i2c: E2 08 00 05 36 80 13 00 00 00 00 00 00 B7 [12:21:00]Write i2c OK [12:21:00]MH_I2C_Read... [12:21:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:00]Read from MH i2c: E2 [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: E2 62 00 [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: E2 62 00 05 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 5A 56 00 00 0E 04 04 00 45 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 13 [12:21:00]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 56 00 00 0E 04 04 00 45 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 [12:21:00]wFMCommunicate OK [12:21:00]SAM_PROTO_GetFieldsCounters done [12:21:00]requested_item shift.num is exist - process it [12:21:00]requested_item shift.opened is exist - process it [12:21:00]req_shift_opened [12:21:00]FM_GetShiftState [12:21:00]SAM_PROTO_GetShiftState [12:21:00]wFMCommunicate request_size=4 [12:21:00]MH_SAM_APDU [12:21:00]CAPDU: 80 13 01 00 [12:21:00]Write to MH i2c: E2 08 00 06 36 80 13 01 00 00 00 00 00 B9 [12:21:00]Write i2c OK [12:21:00]MH_I2C_Read... [12:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:01]Read from MH i2c: E2 [12:21:01]MH_I2C_Read... [12:21:01]Read from MH i2c: E2 0E 00 [12:21:01]MH_I2C_Read... [12:21:01]Read from MH i2c: E2 0E 00 06 36 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 2A [12:21:01]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:21:01]wFMCommunicate OK [12:21:01]SAM_PROTO_GetShiftState done [12:21:01]FM_GetShiftState done [12:21:01]req_shift_opened done [12:21:01]requested_item shift.open_date is exist - process it [12:21:01]req_shift_open_date [12:21:01]req_shift_open_date done [12:21:01]produce_requested_data done [12:21:01]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22106,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [12:21:01]process_action_free close_receipt [12:21:01]json_value_free [12:21:01]json_value_free done [12:21:01]process_json_proto returns [12:21:01]Send response to host [12:21:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22106,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [12:21:01]free response buf [12:21:01]execute_script done [12:21:01]execute_script returns [12:21:01]free content buf [12:21:01]Sock 8.Close socket [12:21:01]Sock 8.Thread stoped [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [12:23:55]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:50]OFD Sender: No OFD packet to send [12:25:55]OFD Sender: No OFD packet to send [12:25:59]accept exits with 9 [12:25:59]New connection [12:25:59]New thread 3067321700 created [12:25:59]Thread 3067178340 joined [12:25:59]Waiting for new connection... [12:25:59] Sock 9.Parse request [12:25:59]Sock 9.Check first char [12:25:59]Sock 9.First char is OK [12:25:59]request: POST /json_proto HTTP/1.0 [12:25:59]Method: POST [12:25:59]URL: /json_proto [12:25:59]Method is POST - this is cgi request [12:25:59]url: /json_proto [12:25:59]query_string will be loaded in cgi processing [12:25:59]execute_cgi json_proto POST (null) [12:25:59]execute_cgi path=json_proto method=POST [12:25:59]POST find Content-Length [12:25:59]Host: 172.17.35.133:8080 [12:25:59]Content-Length: 645 [12:25:59]Content-Type: application/json [12:25:59] [12:25:59]POST finish read [12:25:59]Found Content-Length = 645 [12:25:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254330", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:59]execute_script... [12:25: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)254330", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:59]POST & json_proto [12:25:59]process_json_proto [12:25:59]json parsed OK: [12:25:59]protocol is kg_v1.0 [12:25:59]action value=close_receipt [12:25:59]process_action close_receipt [12:25:59]cmd_close_receipt [12:25:59]MH_GetDate [12:25:59]Write to MH i2c: F0 00 00 07 36 2C [12:25:59]Write i2c OK [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: F0 [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: F0 09 00 [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: F0 09 00 07 36 00 E5 36 6C 66 8C 55 28 65 90 [12:25:59]GetLastDocTimeStamp 1718367671 [12:25:59]current date 1718367973 [12:25:59]FM_GetShiftState [12:25:59]SAM_PROTO_GetShiftState [12:25:59]wFMCommunicate request_size=4 [12:25:59]MH_SAM_APDU [12:25:59]CAPDU: 80 13 01 00 [12:25:59]Write to MH i2c: E2 08 00 08 36 80 13 01 00 00 00 00 00 BB [12:25:59]Write i2c OK [12:25:59]MH_I2C_Read... [12:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:59]Read from MH i2c: E2 [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: E2 0E 00 [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: E2 0E 00 08 36 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 2C [12:25:59]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:25:59]wFMCommunicate OK [12:25:59]SAM_PROTO_GetShiftState done [12:25:59]FM_GetShiftState done [12:25:59]opened in 1718324742 [12:25:59]opened+sec_in_day 1718411142 [12:25:59]quantity*price = 1000 [12:25:59]sum+1 = 1001 [12:25:59]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 10.00 袧小袩 1% : 0.09 袧袛小 12% : 1.06 袧邪谢懈褔薪褘屑懈: 10.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 21 14.06.2024 12:26 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22107 肖袩袛: 154403262324294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T122613&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22107&fm=154403262324294&tin=02508201610067®Number=0000000000099755&sum=1000 0 [12:26:00]StoreToDocumentArchive [12:26:00]shift 325 fd 22107 [12:26:00]save to /storage/0325/doc_00022107 [12:26:00]save last doc name /storage/0325/doc_00022107 to /storage/kkm_last_doc_name [12:26:00]save OK [12:26:00]Clear old archive folders... [12:26:00]ProcessDocumentItem done err = 0, tmpTLVsize=280 [12:26:00]tlvbuf is B6E02BB0 [12:26:00]SAM_PROTO_ClearQueue [12:26:00]wFMCommunicate request_size=4 [12:26:00]MH_SAM_APDU [12:26:00]CAPDU: 80 09 00 00 [12:26:00]Write to MH i2c: E2 08 00 15 36 80 09 00 00 00 00 00 00 BD [12:26:00]Write i2c OK [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: E2 [12:26:00]MH_I2C_Read... [12:26:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:00]Read from MH i2c: E2 03 00 [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: E2 03 00 15 36 00 90 00 BF [12:26:00]RAPDU: 90 00 [12:26:00]wFMCommunicate OK [12:26:00]SAM_PROTO_ClearQueue done [12:26:00]KKMCreateOFDPacket [12:26:00]OFDProtocolAddRootSTLVToBuf [12:26:00]FM_MakeSignedData [12:26:00]FM_MakeSignedData [12:26:00]SAM_PROTO_SignData [12:26:00]wFMCommunicate request_size=4 [12:26:00]MH_SAM_APDU [12:26:00]CAPDU: 80 0D 01 02 [12:26:00]Write to MH i2c: E2 08 00 16 36 80 0D 01 02 00 00 00 00 C5 [12:26:00]Write i2c OK [12:26:00]MH_I2C_Read... [12:26:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:00]Read from MH i2c: E2 [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: E2 03 00 [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: E2 03 00 16 36 00 90 00 C0 [12:26:00]RAPDU: 90 00 [12:26:00]wFMCommunicate OK [12:26:00]wFMCommunicate request_size=255 [12:26:00]MH_SAM_APDU [12:26:00]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 E5 36 6C 66 0E 04 04 00 45 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 [12:26:00]Write to MH i2c: E2 02 01 17 36 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 E5 36 6C 66 0E 04 04 00 45 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 00 00 5B [12:26:00]Write i2c OK [12:26:00]MH_I2C_Read... [12:26:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:00]Read from MH i2c: E2 [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: E2 03 00 [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: E2 03 00 17 36 00 90 00 C1 [12:26:00]RAPDU: 90 00 [12:26:00]wFMCommunicate OK [12:26:00]wFMCommunicate request_size=39 [12:26:00]MH_SAM_APDU [12:26:00]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5B 56 00 00 35 04 06 00 8C 6D CF 9A 5E 46 [12:26:00]Write to MH i2c: E2 2A 00 18 36 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5B 56 00 00 35 04 06 00 8C 6D CF 9A 5E 46 00 00 39 [12:26:00]Write i2c OK [12:26:00]MH_I2C_Read... [12:26:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:00]Read from MH i2c: E2 [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: E2 03 00 [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: E2 03 00 18 36 00 90 00 C2 [12:26:00]RAPDU: 90 00 [12:26:00]wFMCommunicate OK [12:26:00]wFMCommunicate request_size=4 [12:26:00]MH_SAM_APDU [12:26:00]CAPDU: 80 0D 03 02 [12:26:00]Write to MH i2c: E2 08 00 19 36 80 0D 03 02 00 00 00 00 CA [12:26:00]Write i2c OK [12:26:00]MH_I2C_Read... [12:26:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:00]Read from MH i2c: E2 [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: E2 0B 00 [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: E2 0B 00 19 36 00 3E 28 82 6A 0E 79 65 75 90 00 7E [12:26:00]RAPDU: 3E 28 82 6A 0E 79 65 75 90 00 [12:26:00]wFMCommunicate OK [12:26:00]SAM_PROTO_SignData done [12:26:00]FM_MakeSignedData done [12:26:00]CreateOFDProtocolMessage [12:26:00]wFMCommunicate request_size=4 [12:26:00]MH_SAM_APDU [12:26:00]CAPDU: 80 11 00 00 [12:26:00]Write to MH i2c: E2 08 00 1A 36 80 11 00 00 00 00 00 00 CA [12:26:00]Write i2c OK [12:26:00]MH_I2C_Read... [12:26:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:00]Read from MH i2c: E2 [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: E2 17 00 [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: E2 17 00 1A 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 1C [12:26:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:26:00]wFMCommunicate OK [12:26:00]CreateOFDProtocolMessage done [12:26:00]OFDSenderStorePacket 22107 [12:26:00]StoreOFDPacket docnum=22107 [12:26: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 2C 01 00 00 AB 0C 24 01 6A D9 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 E5 36 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 8C 6D CF 9A 5E 46 3E 28 82 6A 0E 79 65 75 [12:26:00]CheckFolder [12:26:00]dirname=/storage/ofd_packets [12:26:00]CheckFolder done [12:26:00]ProducePacketName [12:26:00]name=ofd_packets/00022107 [12:26:00]NVStorageSaveData ofd_packets/00022107 [12:26:00]File name is /storage/ofd_packets/00022107 [12:26:00]Write 330 bytes [12:26:00]NVStorageSaveData done [12:26:00]OFDSenderStorePacket done [12:26:00]KKMCreateOFDPacket done [12:26:00]NVStorageSaveData kkm_last_timestamp [12:26:00]File name is /storage/kkm_last_timestamp [12:26:00]Write 4 bytes [12:26:00]NVStorageSaveData done [12:26:00]ExternCall_PrintAddStr [12:26:00]wPrintStart [12:26:00]Write to MH i2c: 01 00 00 1B 36 51 [12:26:00]Write i2c OK [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: 01 [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: 01 07 00 [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: 01 07 00 1B 36 00 00 00 00 00 FF 0F 66 [12:26:00]RasterBufferAndPrint [12:26:00]line 小褔械褌 N : (3)254330 [12:26:00]line 袠袧袧: 02508201610067 [12:26:00]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [12:26:00]line 袩袪袨袛袗袞袗 [12:26:00]line 孝芯胁邪褉: 46226617 [12:26:00]line Mentos 袩袙 袧械卸薪邪褟 袦褟褌邪 6*100*2谐 [12:26:00]line 1.000 * 10.00 [12:26:00]line = 10.00 [12:26:00]line 袧袛小 12% 袧小袩 1% [12:26:00]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [12:26:00]line 袠孝袨袚袨: 10.00 [12:26:00]line 袧小袩 1% : 0.09 [12:26:00]line 袧袛小 12% : 1.06 [12:26:00]line 袧邪谢懈褔薪褘屑懈: 10.00 [12:26:00]line 袘械蟹薪邪谢.: 0.00 [12:26:00]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [12:26:00]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [12:26:00]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [12:26:00]line 效械泻 21 14.06.2024 12:26 [12:26:00]line 小屑械薪邪: 325 肖肖袛: 1.0 [12:26:00]line 袟袧袦: 0300000200 [12:26:00]line 袪袧袦: 0000000000099755 [12:26:00]line 袙械褉褋懈褟 袣袣袦: 001 [12:26:00]line 肖袦: 0000000000965344 [12:26:00]line 肖袛: 22107 [12:26:00]line 肖袩袛: 154403262324294 [12:26:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T122613&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22107&fm=154403262324294&tin=02508201610067®Number=0000000000099755&sum=1000 [12:26:01]line 0 [12:26:01]OFD Sender: Processing packet 22107 [packets to send 5, broken 4] [12:26:01]ProducePacketName [12:26:01]name=ofd_packets/00022107 [12:26:01]OFD Sender: To server: 嚂鰌G, [12:26:01]CommunicateWithHost lk.salyk.kg:30040 [12:26:01]ConnectInit lk.salyk.kg [12:26:01]written 0, free lines is 4095 [12:26:01]Connected sock=10 [12:26: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 2C 01 00 00 AB 0C 24 01 6A D9 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 E5 36 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 8C 6D CF 9A 5E 46 3E 28 82 6A 0E 79 65 75 [12:26:01]Write to MH i2c: 01 00 00 44 36 7A [12:26:01]Write i2c OK [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: 01 [12:26:01]MH_I2C_Read... [12:26: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 2E 8E 47 00 CF 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5B 56 00 00 F4 03 04 00 A5 DF 6B 66 B6 04 01 00 00 C7 B0 FB A5 54 0C CF E2 [12:26:01]CommunicateWithHost err = 0 [12:26:01]CheckOFDResponse [12:26:01]1017 (14) - 77093643461234 [12:26:01]1041 (16) - 0000000000965344 [12:26:01]1040 (4) - 22107 [12:26:01]1012 (4) - 14.06.2024 06:13 [12:26:01]1206 (1) - 0 [12:26:01]OFD Sender: Remove packet 22107 [12:26:01]ProducePacketName [12:26:01]name=ofd_packets/00022107 [12:26:01]NVStorageDeleteData [12:26:01]Read from MH i2c: 01 07 00 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: 01 07 00 44 36 00 00 00 00 00 F5 0C 82 [12:26:01]RasterBufferAndPrint [12:26:01]line [12:26:01]line [12:26:01]line [12:26:01]line [12:26:01]line [12:26:01]written 0, free lines is 3374 [12:26:01]MH_Cut [12:26:01]Write to MH i2c: D1 01 00 4B 36 01 53 [12:26:01]Write i2c OK [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: D1 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: D1 01 00 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: D1 01 00 4B 36 00 52 [12:26:01]Write to MH i2c: 01 00 00 4C 36 82 [12:26:01]Write i2c OK [12:26:01]MH_I2C_Read... [12:26:02]OFD Sender: No OFD packet to send [12:26:02]*** Cut start [12:26:02]*** Partial cut [12:26:02]*** CUTSNS_PIN = 1 [12:26:02]*** CUTSNS_PIN = 0 [12:26:02]*** Brake cut motor [12:26:02]Read from MH i2c: 01 [12:26:02]MH_I2C_Read... [12:26:02]*** Stop cut motor [12:26:02]*** Cut end [12:26:02]Read from MH i2c: 01 07 00 [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: 01 07 00 4C 36 00 00 00 00 00 FF 0F 97 [12:26:02]process_action close_receipt done [12:26:02]requested_data is exist [12:26:02]produce_requested_data [12:26:02]requested_item fm.sn is exist - process it [12:26:02]wFMCommunicate request_size=4 [12:26:02]MH_SAM_APDU [12:26:02]CAPDU: 80 11 00 00 [12:26:02]Write to MH i2c: E2 08 00 4D 36 80 11 00 00 00 00 00 00 FD [12:26:02]Write i2c OK [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: E2 [12:26:02]MH_I2C_Read... [12:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:02]Read from MH i2c: E2 17 00 [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: E2 17 00 4D 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 4F [12:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:26:02]wFMCommunicate OK [12:26:02]requested_item fd.num is exist - process it [12:26:02]SAM_PROTO_GetFieldsCounters [12:26:02]wFMCommunicate request_size=4 [12:26:02]MH_SAM_APDU [12:26:02]CAPDU: 80 13 00 00 [12:26:02]Write to MH i2c: E2 08 00 4E 36 80 13 00 00 00 00 00 00 00 [12:26:02]Write i2c OK [12:26:02]MH_I2C_Read... [12:26:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:03]Read from MH i2c: E2 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 62 00 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 62 00 4E 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 5B 56 00 00 0E 04 04 00 45 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 60 [12:26: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 5B 56 00 00 0E 04 04 00 45 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 [12:26:03]wFMCommunicate OK [12:26:03]SAM_PROTO_GetFieldsCounters done [12:26:03]requested_item shift.num is exist - process it [12:26:03]requested_item shift.opened is exist - process it [12:26:03]req_shift_opened [12:26:03]FM_GetShiftState [12:26:03]SAM_PROTO_GetShiftState [12:26:03]wFMCommunicate request_size=4 [12:26:03]MH_SAM_APDU [12:26:03]CAPDU: 80 13 01 00 [12:26:03]Write to MH i2c: E2 08 00 4F 36 80 13 01 00 00 00 00 00 02 [12:26:03]Write i2c OK [12:26:03]MH_I2C_Read... [12:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:03]Read from MH i2c: E2 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 0E 00 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 0E 00 4F 36 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 73 [12:26:03]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:26:03]wFMCommunicate OK [12:26:03]SAM_PROTO_GetShiftState done [12:26:03]FM_GetShiftState done [12:26:03]req_shift_opened done [12:26:03]requested_item shift.open_date is exist - process it [12:26:03]req_shift_open_date [12:26:03]req_shift_open_date done [12:26:03]produce_requested_data done [12:26:03]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22107,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [12:26:03]process_action_free close_receipt [12:26:03]json_value_free [12:26:03]json_value_free done [12:26:03]process_json_proto returns [12:26:03]Send response to host [12:26:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22107,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [12:26:03]free response buf [12:26:03]execute_script done [12:26:03]execute_script returns [12:26:03]free content buf [12:26:03]Sock 9.Close socket [12:26:03]Sock 9.Thread stoped [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:02]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:16]accept exits with 8 [12:32:16]New connection [12:32:16]New thread 3067178340 created [12:32:16]Thread 3067321700 joined [12:32:16]Waiting for new connection... [12:32:16] Sock 8.Parse request [12:32:16]Sock 8.Check first char [12:32:16]Sock 8.First char is OK [12:32:16]request: POST /json_proto HTTP/1.0 [12:32:16]Method: POST [12:32:16]URL: /json_proto [12:32:16]Method is POST - this is cgi request [12:32:16]url: /json_proto [12:32:16]query_string will be loaded in cgi processing [12:32:16]execute_cgi json_proto POST (null) [12:32:16]execute_cgi path=json_proto method=POST [12:32:16]POST find Content-Length [12:32:16]Host: 172.17.35.133:8080 [12:32:16]Content-Length: 660 [12:32:16]Content-Type: application/json [12:32:16] [12:32:16]POST finish read [12:32:16]Found Content-Length = 660 [12:32:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254331", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:16]execute_script... [12:32: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)254331", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:16]POST & json_proto [12:32:16]process_json_proto [12:32:16]json parsed OK: [12:32:16]protocol is kg_v1.0 [12:32:16]action value=close_receipt [12:32:16]process_action close_receipt [12:32:16]cmd_close_receipt [12:32:16]MH_GetDate [12:32:16]Write to MH i2c: F0 00 00 50 36 75 [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: F0 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: F0 09 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: F0 09 00 50 36 00 5E 38 6C 66 8C 55 28 65 54 [12:32:16]GetLastDocTimeStamp 1718367973 [12:32:16]current date 1718368350 [12:32:16]FM_GetShiftState [12:32:16]SAM_PROTO_GetShiftState [12:32:16]wFMCommunicate request_size=4 [12:32:16]MH_SAM_APDU [12:32:16]CAPDU: 80 13 01 00 [12:32:16]Write to MH i2c: E2 08 00 51 36 80 13 01 00 00 00 00 00 04 [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:16]Read from MH i2c: E2 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 0E 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 0E 00 51 36 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 75 [12:32:16]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:32:16]wFMCommunicate OK [12:32:16]SAM_PROTO_GetShiftState done [12:32:16]FM_GetShiftState done [12:32:16]opened in 1718324742 [12:32:16]opened+sec_in_day 1718411142 [12:32:16]quantity*price = 15500 [12:32:16]sum+1 = 15501 [12:32:16]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 155.00 袧小袩 1% : 1.37 袧袛小 12% : 16.46 袧邪谢懈褔薪褘屑懈: 155.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 22 14.06.2024 12:32 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22108 肖袩袛: 166852228454489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T123230&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22108&fm=166852228454489&tin=02508201610067®Number=0000000000099755&sum=15500 0 [12:32:17]StoreToDocumentArchive [12:32:17]shift 325 fd 22108 [12:32:17]save to /storage/0325/doc_00022108 [12:32:17]save last doc name /storage/0325/doc_00022108 to /storage/kkm_last_doc_name [12:32:17]save OK [12:32:17]Clear old archive folders... [12:32:17]ProcessDocumentItem done err = 0, tmpTLVsize=280 [12:32:17]tlvbuf is 00291720 [12:32:17]SAM_PROTO_ClearQueue [12:32:17]wFMCommunicate request_size=4 [12:32:17]MH_SAM_APDU [12:32:17]CAPDU: 80 09 00 00 [12:32:17]Write to MH i2c: E2 08 00 5E 36 80 09 00 00 00 00 00 00 06 [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:17]Read from MH i2c: E2 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 03 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 03 00 5E 36 00 90 00 08 [12:32:17]RAPDU: 90 00 [12:32:17]wFMCommunicate OK [12:32:17]SAM_PROTO_ClearQueue done [12:32:17]KKMCreateOFDPacket [12:32:17]OFDProtocolAddRootSTLVToBuf [12:32:17]FM_MakeSignedData [12:32:17]FM_MakeSignedData [12:32:17]SAM_PROTO_SignData [12:32:17]wFMCommunicate request_size=4 [12:32:17]MH_SAM_APDU [12:32:17]CAPDU: 80 0D 01 02 [12:32:17]Write to MH i2c: E2 08 00 5F 36 80 0D 01 02 00 00 00 00 0E [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:17]Read from MH i2c: E2 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 03 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 03 00 5F 36 00 90 00 09 [12:32:17]RAPDU: 90 00 [12:32:17]wFMCommunicate OK [12:32:17]wFMCommunicate request_size=255 [12:32:17]MH_SAM_APDU [12:32:17]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8C 3C 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 5E 38 6C 66 0E 04 04 00 45 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 [12:32:17]Write to MH i2c: E2 02 01 60 36 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8C 3C 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 5E 38 6C 66 0E 04 04 00 45 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 00 00 F5 [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]OFD Sender: No OFD packet to send [12:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:17]Read from MH i2c: E2 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 03 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 03 00 60 36 00 90 00 0A [12:32:17]RAPDU: 90 00 [12:32:17]wFMCommunicate OK [12:32:17]wFMCommunicate request_size=39 [12:32:17]MH_SAM_APDU [12:32:17]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5C 56 00 00 35 04 06 00 97 C0 4F CE 98 59 [12:32:17]Write to MH i2c: E2 2A 00 61 36 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5C 56 00 00 35 04 06 00 97 C0 4F CE 98 59 00 00 E2 [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:17]Read from MH i2c: E2 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 03 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 03 00 61 36 00 90 00 0B [12:32:17]RAPDU: 90 00 [12:32:17]wFMCommunicate OK [12:32:17]wFMCommunicate request_size=4 [12:32:17]MH_SAM_APDU [12:32:17]CAPDU: 80 0D 03 02 [12:32:17]Write to MH i2c: E2 08 00 62 36 80 0D 03 02 00 00 00 00 13 [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:17]Read from MH i2c: E2 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 0B 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 0B 00 62 36 00 B3 08 D1 54 9C E3 97 51 90 00 5B [12:32:17]RAPDU: B3 08 D1 54 9C E3 97 51 90 00 [12:32:17]wFMCommunicate OK [12:32:17]SAM_PROTO_SignData done [12:32:17]FM_MakeSignedData done [12:32:17]CreateOFDProtocolMessage [12:32:17]wFMCommunicate request_size=4 [12:32:17]MH_SAM_APDU [12:32:17]CAPDU: 80 11 00 00 [12:32:17]Write to MH i2c: E2 08 00 63 36 80 11 00 00 00 00 00 00 13 [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:17]Read from MH i2c: E2 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 17 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 17 00 63 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 65 [12:32: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:32:17]wFMCommunicate OK [12:32:17]CreateOFDProtocolMessage done [12:32:17]OFDSenderStorePacket 22108 [12:32:17]StoreOFDPacket docnum=22108 [12:32:17]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 10 A6 24 01 38 69 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8C 3C 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 5E 38 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 97 C0 4F CE 98 59 B3 08 D1 54 9C E3 97 51 [12:32:17]CheckFolder [12:32:17]dirname=/storage/ofd_packets [12:32:17]CheckFolder done [12:32:17]ProducePacketName [12:32:17]name=ofd_packets/00022108 [12:32:17]NVStorageSaveData ofd_packets/00022108 [12:32:17]File name is /storage/ofd_packets/00022108 [12:32:17]Write 330 bytes [12:32:17]NVStorageSaveData done [12:32:17]OFDSenderStorePacket done [12:32:17]KKMCreateOFDPacket done [12:32:17]NVStorageSaveData kkm_last_timestamp [12:32:17]File name is /storage/kkm_last_timestamp [12:32:17]Write 4 bytes [12:32:17]NVStorageSaveData done [12:32:17]ExternCall_PrintAddStr [12:32:17]wPrintStart [12:32:17]Write to MH i2c: 01 00 00 64 36 9A [12:32:17]OFD Sender: Processing packet 22108 [packets to send 5, broken 4] [12:32:17]ProducePacketName [12:32:17]name=ofd_packets/00022108 [12:32:17]OFD Sender: To server: 嚂鰌G, [12:32:17]CommunicateWithHost lk.salyk.kg:30040 [12:32:17]ConnectInit lk.salyk.kg [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 07 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 07 00 64 36 00 00 00 00 00 FF 0F AF [12:32:17]RasterBufferAndPrint [12:32:17]line 小褔械褌 N : (3)254331 [12:32:17]line 袠袧袧: 02508201610067 [12:32:17]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [12:32:17]line 袩袪袨袛袗袞袗 [12:32:17]line 孝芯胁邪褉: 5449000000439 [12:32:17]line 袧邪锌懈褌芯泻 袣芯泻邪-袣芯谢邪 1,5谢 [12:32:17]line 1.000 * 155.00 [12:32:17]line = 155.00 [12:32:17]line 袧袛小 12% 袧小袩 1% [12:32:17]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [12:32:17]line 袠孝袨袚袨: 155.00 [12:32:17]line 袧小袩 1% : 1.37 [12:32:17]line 袧袛小 12% : 16.46 [12:32:17]line 袧邪谢懈褔薪褘屑懈: 155.00 [12:32:17]line 袘械蟹薪邪谢.: 0.00 [12:32:17]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [12:32:17]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [12:32:17]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [12:32:17]line 效械泻 22 14.06.2024 12:32 [12:32:17]line 小屑械薪邪: 325 肖肖袛: 1.0 [12:32:17]line 袟袧袦: 0300000200 [12:32:17]line 袪袧袦: 0000000000099755 [12:32:17]line 袙械褉褋懈褟 袣袣袦: 001 [12:32:17]line 肖袦: 0000000000965344 [12:32:17]line 肖袛: 22108 [12:32:17]line 肖袩袛: 166852228454489 [12:32:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T123230&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22108&fm=166852228454489&tin=02508201610067®Number=0000000000099755&sum=15500 [12:32:18]line 0 [12:32:18]Connected sock=10 [12:32: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 2C 01 00 00 10 A6 24 01 38 69 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8C 3C 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 5E 38 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 97 C0 4F CE 98 59 B3 08 D1 54 9C E3 97 51 [12:32:18]written 0, free lines is 4095 [12:32: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 DC 40 47 00 02 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 56 00 00 F4 03 04 00 1E E1 6B 66 B6 04 01 00 00 E3 6D 0C 52 72 1D DD 5F [12:32:18]CommunicateWithHost err = 0 [12:32:18]CheckOFDResponse [12:32:18]1017 (14) - 77093643461234 [12:32:18]1041 (16) - 0000000000965344 [12:32:18]1040 (4) - 22108 [12:32:18]1012 (4) - 14.06.2024 06:20 [12:32:18]1206 (1) - 0 [12:32:18]OFD Sender: Remove packet 22108 [12:32:18]ProducePacketName [12:32:18]name=ofd_packets/00022108 [12:32:18]NVStorageDeleteData [12:32:18]Write to MH i2c: 01 00 00 8C 36 C2 [12:32:18]Write i2c OK [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: 01 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: 01 07 00 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: 01 07 00 8C 36 00 00 00 00 00 1B 0D F1 [12:32:18]RasterBufferAndPrint [12:32:18]line [12:32:18]line [12:32:18]line [12:32:18]line [12:32:18]line [12:32:18]written 0, free lines is 3361 [12:32:18]MH_Cut [12:32:18]Write to MH i2c: D1 01 00 93 36 01 9B [12:32:18]Write i2c OK [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: D1 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: D1 01 00 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: D1 01 00 93 36 00 9A [12:32:18]Write to MH i2c: 01 00 00 94 36 CA [12:32:18]Write i2c OK [12:32:18]MH_I2C_Read... [12:32:18]OFD Sender: No OFD packet to send [12:32:19]*** Cut start [12:32:19]*** Partial cut [12:32:19]*** CUTSNS_PIN = 1 [12:32:19]*** CUTSNS_PIN = 0 [12:32:19]*** Brake cut motor [12:32:19]Read from MH i2c: 01 [12:32:19]MH_I2C_Read... [12:32:19]*** Stop cut motor [12:32:19]*** Cut end [12:32:19]Read from MH i2c: 01 07 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: 01 07 00 94 36 00 00 00 00 00 FF 0F DF [12:32:19]process_action close_receipt done [12:32:19]requested_data is exist [12:32:19]produce_requested_data [12:32:19]requested_item fm.sn is exist - process it [12:32:19]wFMCommunicate request_size=4 [12:32:19]MH_SAM_APDU [12:32:19]CAPDU: 80 11 00 00 [12:32:19]Write to MH i2c: E2 08 00 95 36 80 11 00 00 00 00 00 00 45 [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:19]Read from MH i2c: E2 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 17 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 17 00 95 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 97 [12:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:32:19]wFMCommunicate OK [12:32:19]requested_item fd.num is exist - process it [12:32:19]SAM_PROTO_GetFieldsCounters [12:32:19]wFMCommunicate request_size=4 [12:32:19]MH_SAM_APDU [12:32:19]CAPDU: 80 13 00 00 [12:32:19]Write to MH i2c: E2 08 00 96 36 80 13 00 00 00 00 00 00 48 [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 62 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 62 00 96 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 5C 56 00 00 0E 04 04 00 45 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 AC [12:32: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 5C 56 00 00 0E 04 04 00 45 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 [12:32:20]wFMCommunicate OK [12:32:20]SAM_PROTO_GetFieldsCounters done [12:32:20]requested_item shift.num is exist - process it [12:32:20]requested_item shift.opened is exist - process it [12:32:20]req_shift_opened [12:32:20]FM_GetShiftState [12:32:20]SAM_PROTO_GetShiftState [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 13 01 00 [12:32:20]Write to MH i2c: E2 08 00 97 36 80 13 01 00 00 00 00 00 4A [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 0E 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 0E 00 97 36 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 BB [12:32:20]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:32:20]wFMCommunicate OK [12:32:20]SAM_PROTO_GetShiftState done [12:32:20]FM_GetShiftState done [12:32:20]req_shift_opened done [12:32:20]requested_item shift.open_date is exist - process it [12:32:20]req_shift_open_date [12:32:20]req_shift_open_date done [12:32:20]produce_requested_data done [12:32:20]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22108,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [12:32:20]process_action_free close_receipt [12:32:20]json_value_free [12:32:20]json_value_free done [12:32:20]process_json_proto returns [12:32:20]Send response to host [12:32:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22108,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [12:32:20]free response buf [12:32:20]execute_script done [12:32:20]execute_script returns [12:32:20]free content buf [12:32:20]Sock 8.Close socket [12:32:20]Sock 8.Thread stoped [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:17]accept exits with 9 [12:40:17]New connection [12:40:17]New thread 3067321700 created [12:40:17]Thread 3067178340 joined [12:40:17]Waiting for new connection... [12:40:17] Sock 9.Parse request [12:40:17]Sock 9.Check first char [12:40:17]Sock 9.First char is OK [12:40:17]request: POST /json_proto HTTP/1.0 [12:40:17]Method: POST [12:40:17]URL: /json_proto [12:40:17]Method is POST - this is cgi request [12:40:17]url: /json_proto [12:40:17]query_string will be loaded in cgi processing [12:40:17]execute_cgi json_proto POST (null) [12:40:17]execute_cgi path=json_proto method=POST [12:40:17]POST find Content-Length [12:40:17]Host: 172.17.35.133:8080 [12:40:17]Content-Length: 888 [12:40:17]Content-Type: application/json [12:40:17] [12:40:17]POST finish read [12:40:17]Found Content-Length = 888 [12:40:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254332", "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": "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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:17]execute_script... [12:40: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)254332", "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": "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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:17]POST & json_proto [12:40:17]process_json_proto [12:40:17]json parsed OK: [12:40:17]protocol is kg_v1.0 [12:40:17]action value=close_receipt [12:40:17]process_action close_receipt [12:40:17]cmd_close_receipt [12:40:17]MH_GetDate [12:40:17]Write to MH i2c: F0 00 00 98 36 BD [12:40:17]Write i2c OK [12:40:17]MH_I2C_Read... [12:40:17]Read from MH i2c: F0 [12:40:17]MH_I2C_Read... [12:40:17]Read from MH i2c: F0 09 00 [12:40:17]MH_I2C_Read... [12:40:17]Read from MH i2c: F0 09 00 98 36 00 3F 3A 6C 66 8C 55 28 65 7F [12:40:17]GetLastDocTimeStamp 1718368350 [12:40:17]current date 1718368831 [12:40:17]FM_GetShiftState [12:40:17]SAM_PROTO_GetShiftState [12:40:17]wFMCommunicate request_size=4 [12:40:17]MH_SAM_APDU [12:40:17]CAPDU: 80 13 01 00 [12:40:17]Write to MH i2c: E2 08 00 99 36 80 13 01 00 00 00 00 00 4C [12:40:17]Write i2c OK [12:40:17]MH_I2C_Read... [12:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:17]Read from MH i2c: E2 [12:40:17]MH_I2C_Read... [12:40:17]Read from MH i2c: E2 0E 00 [12:40:17]MH_I2C_Read... [12:40:17]Read from MH i2c: E2 0E 00 99 36 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 BD [12:40:17]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:40:17]wFMCommunicate OK [12:40:17]SAM_PROTO_GetShiftState done [12:40:17]FM_GetShiftState done [12:40:17]opened in 1718324742 [12:40:17]opened+sec_in_day 1718411142 [12:40:17]quantity*price = 6000 [12:40:17]sum+1 = 6001 [12:40:17]Check (price>sum+1) || (price+1sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 4700002082931 袙芯写泻邪 啸芯褉芯褕邪褟 0,1谢 1.000 * 70.00 = 70.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 130.00 袧小袩 1% : 1.15 袧袛小 12% : 13.80 袧邪谢懈褔薪褘屑懈: 130.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 23 14.06.2024 12:40 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22109 肖袩袛: 244403658221935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T124031&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22109&fm=244403658221935&tin=02508201610067®Number=0000000000099755&sum=13000 0 [12:40:18]StoreToDocumentArchive [12:40:18]shift 325 fd 22109 [12:40:18]save to /storage/0325/doc_00022109 [12:40:18]save last doc name /storage/0325/doc_00022109 to /storage/kkm_last_doc_name [12:40:18]save OK [12:40:18]Clear old archive folders... [12:40:18]ProcessDocumentItem done err = 0, tmpTLVsize=374 [12:40:18]tlvbuf is 002562E0 [12:40:18]SAM_PROTO_ClearQueue [12:40:18]wFMCommunicate request_size=4 [12:40:18]MH_SAM_APDU [12:40:18]CAPDU: 80 09 00 00 [12:40:18]Write to MH i2c: E2 08 00 A6 36 80 09 00 00 00 00 00 00 4E [12:40:18]Write i2c OK [12:40:18]MH_I2C_Read... [12:40:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:18]Read from MH i2c: E2 [12:40:18]MH_I2C_Read... [12:40:18]Read from MH i2c: E2 03 00 [12:40:18]MH_I2C_Read... [12:40:18]Read from MH i2c: E2 03 00 A6 36 00 90 00 50 [12:40:18]RAPDU: 90 00 [12:40:18]wFMCommunicate OK [12:40:18]SAM_PROTO_ClearQueue done [12:40:18]KKMCreateOFDPacket [12:40:18]OFDProtocolAddRootSTLVToBuf [12:40:18]FM_MakeSignedData [12:40:18]FM_MakeSignedData [12:40:18]SAM_PROTO_SignData [12:40:18]wFMCommunicate request_size=4 [12:40:18]MH_SAM_APDU [12:40:18]CAPDU: 80 0D 01 02 [12:40:18]Write to MH i2c: E2 08 00 A7 36 80 0D 01 02 00 00 00 00 56 [12:40:18]Write i2c OK [12:40:18]MH_I2C_Read... [12:40:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:18]Read from MH i2c: E2 [12:40:18]MH_I2C_Read... [12:40:18]Read from MH i2c: E2 03 00 [12:40:18]MH_I2C_Read... [12:40:18]Read from MH i2c: E2 03 00 A7 36 00 90 00 51 [12:40:18]RAPDU: 90 00 [12:40:18]wFMCommunicate OK [12:40:18]wFMCommunicate request_size=255 [12:40:18]MH_SAM_APDU [12:40:18]CAPDU: 80 0D 02 02 FA 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 [12:40:18]Write to MH i2c: E2 02 01 A8 36 80 0D 02 02 FA 00 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 00 00 F4 [12:40:18]Write i2c OK [12:40:18]MH_I2C_Read... [12:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:18]Read from MH i2c: E2 [12:40:18]MH_I2C_Read... [12:40:18]Read from MH i2c: E2 03 00 [12:40:18]MH_I2C_Read... [12:40:18]Read from MH i2c: E2 03 00 A8 36 00 90 00 52 [12:40:18]RAPDU: 90 00 [12:40:18]wFMCommunicate OK [12:40:18]wFMCommunicate request_size=133 [12:40:18]MH_SAM_APDU [12:40:18]CAPDU: 80 0D 02 02 80 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 17 00 00 00 F4 03 04 00 3F 3A 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 DE 48 A9 3A E9 6F [12:40:18]Write to MH i2c: E2 88 00 A9 36 80 0D 02 02 80 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 17 00 00 00 F4 03 04 00 3F 3A 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 DE 48 A9 3A E9 6F 00 00 AE [12:40:18]Write i2c OK [12:40:18]MH_I2C_Read... [12:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:19]Read from MH i2c: E2 [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: E2 03 00 [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: E2 03 00 A9 36 00 90 00 53 [12:40:19]RAPDU: 90 00 [12:40:19]wFMCommunicate OK [12:40:19]wFMCommunicate request_size=4 [12:40:19]MH_SAM_APDU [12:40:19]CAPDU: 80 0D 03 02 [12:40:19]Write to MH i2c: E2 08 00 AA 36 80 0D 03 02 00 00 00 00 5B [12:40:19]Write i2c OK [12:40:19]MH_I2C_Read... [12:40:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:19]Read from MH i2c: E2 [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: E2 0B 00 [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: E2 0B 00 AA 36 00 F3 64 A9 3F 50 53 4C A6 90 00 30 [12:40:19]RAPDU: F3 64 A9 3F 50 53 4C A6 90 00 [12:40:19]wFMCommunicate OK [12:40:19]SAM_PROTO_SignData done [12:40:19]FM_MakeSignedData done [12:40:19]CreateOFDProtocolMessage [12:40:19]wFMCommunicate request_size=4 [12:40:19]MH_SAM_APDU [12:40:19]CAPDU: 80 11 00 00 [12:40:19]Write to MH i2c: E2 08 00 AB 36 80 11 00 00 00 00 00 00 5B [12:40:19]Write i2c OK [12:40:19]MH_I2C_Read... [12:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:19]Read from MH i2c: E2 [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: E2 17 00 [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: E2 17 00 AB 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 AD [12:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:40:19]wFMCommunicate OK [12:40:19]CreateOFDProtocolMessage done [12:40:19]OFDSenderStorePacket 22109 [12:40:19]StoreOFDPacket docnum=22109 [12:40: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 8A 01 00 00 0D 5A 82 01 84 B9 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 17 00 00 00 F4 03 04 00 3F 3A 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 DE 48 A9 3A E9 6F F3 64 A9 3F 50 53 4C A6 [12:40:19]CheckFolder [12:40:19]dirname=/storage/ofd_packets [12:40:19]CheckFolder done [12:40:19]ProducePacketName [12:40:19]name=ofd_packets/00022109 [12:40:19]NVStorageSaveData ofd_packets/00022109 [12:40:19]File name is /storage/ofd_packets/00022109 [12:40:19]Write 424 bytes [12:40:19]NVStorageSaveData done [12:40:19]OFDSenderStorePacket done [12:40:19]KKMCreateOFDPacket done [12:40:19]NVStorageSaveData kkm_last_timestamp [12:40:19]File name is /storage/kkm_last_timestamp [12:40:19]Write 4 bytes [12:40:19]NVStorageSaveData done [12:40:19]ExternCall_PrintAddStr [12:40:19]wPrintStart [12:40:19]Write to MH i2c: 01 00 00 AC 36 E2 [12:40:19]Write i2c OK [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: 01 [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: 01 07 00 [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: 01 07 00 AC 36 00 00 00 00 00 FF 0F F7 [12:40:19]RasterBufferAndPrint [12:40:19]line 小褔械褌 N : (3)254332 [12:40:19]line 袠袧袧: 02508201610067 [12:40:19]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [12:40:19]line 袩袪袨袛袗袞袗 [12:40:19]line 孝芯胁邪褉: 4700000160204 [12:40:19]line 袙芯写邪 袥械谐械薪写邪 1,5谢 [12:40:19]line 1.000 * 60.00 [12:40:19]line = 60.00 [12:40:19]line 袧袛小 12% 袧小袩 1% [12:40:19]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [12:40:19]line 孝芯胁邪褉: 4700002082931 [12:40:19]line 袙芯写泻邪 啸芯褉芯褕邪褟 0,1谢 [12:40:19]line 1.000 * 70.00 [12:40:19]line = 70.00 [12:40:19]line 袧袛小 12% 袧小袩 1% [12:40:19]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [12:40:19]line 袠孝袨袚袨: 130.00 [12:40:19]line 袧小袩 1% : 1.15 [12:40:19]line 袧袛小 12% : 13.80 [12:40:19]line 袧邪谢懈褔薪褘屑懈: 130.00 [12:40:19]line 袘械蟹薪邪谢.: 0.00 [12:40:19]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [12:40:19]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [12:40:19]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [12:40:19]line 效械泻 23 14.06.2024 12:40 [12:40:19]line 小屑械薪邪: 325 肖肖袛: 1.0 [12:40:19]line 袟袧袦: 0300000200 [12:40:19]line 袪袧袦: 0000000000099755 [12:40:19]line 袙械褉褋懈褟 袣袣袦: 001 [12:40:19]line 肖袦: 0000000000965344 [12:40:19]line 肖袛: 22109 [12:40:19]line 肖袩袛: 244403658221935 [12:40:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T124031&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22109&fm=244403658221935&tin=02508201610067®Number=0000000000099755&sum=13000 [12:40:19]line 0 [12:40:19]OFD Sender: Processing packet 22109 [packets to send 5, broken 4] [12:40:19]ProducePacketName [12:40:19]name=ofd_packets/00022109 [12:40:19]OFD Sender: To server: 嚂鰌G, [12:40:19]CommunicateWithHost lk.salyk.kg:30040 [12:40:19]ConnectInit lk.salyk.kg [12:40:19]written 0, free lines is 4095 [12:40:19]Connected sock=10 [12:40: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 8A 01 00 00 0D 5A 82 01 84 B9 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 17 00 00 00 F4 03 04 00 3F 3A 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 DE 48 A9 3A E9 6F F3 64 A9 3F 50 53 4C A6 [12:40: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 C1 4A 47 00 91 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 5D 56 00 00 F4 03 04 00 FF E2 6B 66 B6 04 01 00 00 8F 85 C8 80 61 78 49 A8 [12:40:19]CommunicateWithHost err = 0 [12:40:19]CheckOFDResponse [12:40:19]1017 (14) - 77093643461234 [12:40:19]1041 (16) - 0000000000965344 [12:40:19]1040 (4) - 22109 [12:40:19]1012 (4) - 14.06.2024 06:28 [12:40:19]1206 (1) - 0 [12:40:19]OFD Sender: Remove packet 22109 [12:40:19]ProducePacketName [12:40:19]name=ofd_packets/00022109 [12:40:19]NVStorageDeleteData [12:40:20]Write to MH i2c: 01 00 00 DA 36 10 [12:40:20]Write i2c OK [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: 01 [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: 01 07 00 [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: 01 07 00 DA 36 00 00 00 00 00 EF 0C 12 [12:40:20]RasterBufferAndPrint [12:40:20]line [12:40:20]line [12:40:20]line [12:40:20]line [12:40:20]line [12:40:20]written 0, free lines is 3320 [12:40:20]MH_Cut [12:40:20]Write to MH i2c: D1 01 00 E1 36 01 E9 [12:40:20]Write i2c OK [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: D1 [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: D1 01 00 [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: D1 01 00 E1 36 00 E8 [12:40:20]Write to MH i2c: 01 00 00 E2 36 18 [12:40:20]Write i2c OK [12:40:20]MH_I2C_Read... [12:40:20]OFD Sender: No OFD packet to send [12:40:20]*** Cut start [12:40:20]*** Partial cut [12:40:20]*** CUTSNS_PIN = 1 [12:40:20]*** CUTSNS_PIN = 0 [12:40:20]*** Brake cut motor [12:40:21]Read from MH i2c: 01 [12:40:21]MH_I2C_Read... [12:40:21]*** Stop cut motor [12:40:21]*** Cut end [12:40:21]Read from MH i2c: 01 07 00 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: 01 07 00 E2 36 00 00 00 00 00 FF 0F 2D [12:40:21]process_action close_receipt done [12:40:21]requested_data is exist [12:40:21]produce_requested_data [12:40:21]requested_item fm.sn is exist - process it [12:40:21]wFMCommunicate request_size=4 [12:40:21]MH_SAM_APDU [12:40:21]CAPDU: 80 11 00 00 [12:40:21]Write to MH i2c: E2 08 00 E3 36 80 11 00 00 00 00 00 00 93 [12:40:21]Write i2c OK [12:40:21]MH_I2C_Read... [12:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:21]Read from MH i2c: E2 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 17 00 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 17 00 E3 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 E5 [12:40: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:40:21]wFMCommunicate OK [12:40:21]requested_item fd.num is exist - process it [12:40:21]SAM_PROTO_GetFieldsCounters [12:40:21]wFMCommunicate request_size=4 [12:40:21]MH_SAM_APDU [12:40:21]CAPDU: 80 13 00 00 [12:40:21]Write to MH i2c: E2 08 00 E4 36 80 13 00 00 00 00 00 00 96 [12:40:21]Write i2c OK [12:40:21]MH_I2C_Read... [12:40:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:21]Read from MH i2c: E2 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 62 00 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 62 00 E4 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 5D 56 00 00 0E 04 04 00 45 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 FE [12:40: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 5D 56 00 00 0E 04 04 00 45 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 [12:40:21]wFMCommunicate OK [12:40:21]SAM_PROTO_GetFieldsCounters done [12:40:21]requested_item shift.num is exist - process it [12:40:21]requested_item shift.opened is exist - process it [12:40:21]req_shift_opened [12:40:21]FM_GetShiftState [12:40:21]SAM_PROTO_GetShiftState [12:40:21]wFMCommunicate request_size=4 [12:40:21]MH_SAM_APDU [12:40:21]CAPDU: 80 13 01 00 [12:40:21]Write to MH i2c: E2 08 00 E5 36 80 13 01 00 00 00 00 00 98 [12:40:21]Write i2c OK [12:40:21]MH_I2C_Read... [12:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:21]Read from MH i2c: E2 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 0E 00 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 0E 00 E5 36 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 09 [12:40:21]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:40:21]wFMCommunicate OK [12:40:21]SAM_PROTO_GetShiftState done [12:40:21]FM_GetShiftState done [12:40:21]req_shift_opened done [12:40:21]requested_item shift.open_date is exist - process it [12:40:21]req_shift_open_date [12:40:21]req_shift_open_date done [12:40:21]produce_requested_data done [12:40:21]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22109,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [12:40:21]process_action_free close_receipt [12:40:21]json_value_free [12:40:21]json_value_free done [12:40:21]process_json_proto returns [12:40:21]Send response to host [12:40:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22109,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [12:40:21]free response buf [12:40:21]execute_script done [12:40:21]execute_script returns [12:40:21]free content buf [12:40:21]Sock 9.Close socket [12:40:21]Sock 9.Thread stoped [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:24]accept exits with 8 [12:41:24]New connection [12:41:24]New thread 3067178340 created [12:41:24]Thread 3067321700 joined [12:41:24]Waiting for new connection... [12:41:24] Sock 8.Parse request [12:41:24]Sock 8.Check first char [12:41:24]Sock 8.First char is OK [12:41:24]request: POST /json_proto HTTP/1.0 [12:41:24]Method: POST [12:41:24]URL: /json_proto [12:41:24]Method is POST - this is cgi request [12:41:24]url: /json_proto [12:41:24]query_string will be loaded in cgi processing [12:41:24]execute_cgi json_proto POST (null) [12:41:24]execute_cgi path=json_proto method=POST [12:41:24]POST find Content-Length [12:41:24]Host: 172.17.35.133:8080 [12:41:24]Content-Length: 634 [12:41:24]Content-Type: application/json [12:41:24] [12:41:24]POST finish read [12:41:24]Found Content-Length = 634 [12:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254333", "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 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:24]execute_script... [12:41: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)254333", "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 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:24]POST & json_proto [12:41:24]process_json_proto [12:41:24]json parsed OK: [12:41:24]protocol is kg_v1.0 [12:41:24]action value=close_receipt [12:41:24]process_action close_receipt [12:41:24]cmd_close_receipt [12:41:24]MH_GetDate [12:41:24]Write to MH i2c: F0 00 00 E6 36 0B [12:41:24]Write i2c OK [12:41:24]MH_I2C_Read... [12:41:24]Read from MH i2c: F0 [12:41:24]MH_I2C_Read... [12:41:24]Read from MH i2c: F0 09 00 [12:41:24]MH_I2C_Read... [12:41:24]Read from MH i2c: F0 09 00 E6 36 00 82 3A 6C 66 8C 55 28 65 10 [12:41:24]GetLastDocTimeStamp 1718368831 [12:41:24]current date 1718368898 [12:41:24]FM_GetShiftState [12:41:24]SAM_PROTO_GetShiftState [12:41:24]wFMCommunicate request_size=4 [12:41:24]MH_SAM_APDU [12:41:24]CAPDU: 80 13 01 00 [12:41:24]Write to MH i2c: E2 08 00 E7 36 80 13 01 00 00 00 00 00 9A [12:41:24]Write i2c OK [12:41:24]MH_I2C_Read... [12:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:24]Read from MH i2c: E2 [12:41:24]MH_I2C_Read... [12:41:24]Read from MH i2c: E2 0E 00 [12:41:24]MH_I2C_Read... [12:41:24]Read from MH i2c: E2 0E 00 E7 36 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 0B [12:41:24]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:41:24]wFMCommunicate OK [12:41:24]SAM_PROTO_GetShiftState done [12:41:24]FM_GetShiftState done [12:41:24]opened in 1718324742 [12:41:24]opened+sec_in_day 1718411142 [12:41:24]quantity*price = 12000 [12:41:24]sum+1 = 12001 [12:41:24]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 120.00 袧小袩 1% : 1.06 袧袛小 12% : 12.74 袧邪谢懈褔薪褘屑懈: 120.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 24 14.06.2024 12:41 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22110 肖袩袛: 97646148330771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T124138&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22110&fm=97646148330771&tin=02508201610067®Number=0000000000099755&sum=12000 0 [12:41:25]StoreToDocumentArchive [12:41:25]shift 325 fd 22110 [12:41:25]save to /storage/0325/doc_00022110 [12:41:25]save last doc name /storage/0325/doc_00022110 to /storage/kkm_last_doc_name [12:41:25]save OK [12:41:25]Clear old archive folders... [12:41:25]ProcessDocumentItem done err = 0, tmpTLVsize=271 [12:41:25]tlvbuf is 00255FD0 [12:41:25]SAM_PROTO_ClearQueue [12:41:25]wFMCommunicate request_size=4 [12:41:25]MH_SAM_APDU [12:41:25]CAPDU: 80 09 00 00 [12:41:25]Write to MH i2c: E2 08 00 F4 36 80 09 00 00 00 00 00 00 9C [12:41:25]Write i2c OK [12:41:25]MH_I2C_Read... [12:41:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:25]Read from MH i2c: E2 [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: E2 03 00 [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: E2 03 00 F4 36 00 90 00 9E [12:41:25]RAPDU: 90 00 [12:41:25]wFMCommunicate OK [12:41:25]SAM_PROTO_ClearQueue done [12:41:25]KKMCreateOFDPacket [12:41:25]OFDProtocolAddRootSTLVToBuf [12:41:25]FM_MakeSignedData [12:41:25]FM_MakeSignedData [12:41:25]SAM_PROTO_SignData [12:41:25]wFMCommunicate request_size=4 [12:41:25]MH_SAM_APDU [12:41:25]CAPDU: 80 0D 01 02 [12:41:25]Write to MH i2c: E2 08 00 F5 36 80 0D 01 02 00 00 00 00 A4 [12:41:25]Write i2c OK [12:41:25]MH_I2C_Read... [12:41:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:25]Read from MH i2c: E2 [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: E2 03 00 [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: E2 03 00 F5 36 00 90 00 9F [12:41:25]RAPDU: 90 00 [12:41:25]wFMCommunicate OK [12:41:25]wFMCommunicate request_size=255 [12:41:25]MH_SAM_APDU [12:41:25]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 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 82 3A 6C 66 0E 04 04 00 45 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 [12:41:25]Write to MH i2c: E2 02 01 F6 36 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 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 82 3A 6C 66 0E 04 04 00 45 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 0F [12:41:25]OFD Sender: No OFD packet to send [12:41:25]Write i2c OK [12:41:25]MH_I2C_Read... [12:41:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:25]Read from MH i2c: E2 [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: E2 03 00 [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: E2 03 00 F6 36 00 90 00 A0 [12:41:25]RAPDU: 90 00 [12:41:25]wFMCommunicate OK [12:41:25]wFMCommunicate request_size=30 [12:41:25]MH_SAM_APDU [12:41:25]CAPDU: 80 0D 02 02 19 30 39 36 35 33 34 34 10 04 04 00 5E 56 00 00 35 04 06 00 58 CF 03 FC 25 13 [12:41:25]Write to MH i2c: E2 21 00 F7 36 80 0D 02 02 19 00 30 39 36 35 33 34 34 10 04 04 00 5E 56 00 00 35 04 06 00 58 CF 03 FC 25 13 00 00 B1 [12:41:25]Write i2c OK [12:41:25]MH_I2C_Read... [12:41:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:25]Read from MH i2c: E2 [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: E2 03 00 [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: E2 03 00 F7 36 00 90 00 A1 [12:41:25]RAPDU: 90 00 [12:41:25]wFMCommunicate OK [12:41:25]wFMCommunicate request_size=4 [12:41:25]MH_SAM_APDU [12:41:25]CAPDU: 80 0D 03 02 [12:41:25]Write to MH i2c: E2 08 00 F8 36 80 0D 03 02 00 00 00 00 A9 [12:41:25]Write i2c OK [12:41:25]MH_I2C_Read... [12:41:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:25]Read from MH i2c: E2 [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: E2 0B 00 [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: E2 0B 00 F8 36 00 55 3E B6 F9 E6 4B 56 A0 90 00 13 [12:41:25]RAPDU: 55 3E B6 F9 E6 4B 56 A0 90 00 [12:41:25]wFMCommunicate OK [12:41:25]SAM_PROTO_SignData done [12:41:25]FM_MakeSignedData done [12:41:25]CreateOFDProtocolMessage [12:41:25]wFMCommunicate request_size=4 [12:41:25]MH_SAM_APDU [12:41:25]CAPDU: 80 11 00 00 [12:41:25]Write to MH i2c: E2 08 00 F9 36 80 11 00 00 00 00 00 00 A9 [12:41:25]Write i2c OK [12:41:25]MH_I2C_Read... [12:41:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:25]Read from MH i2c: E2 [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: E2 17 00 [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: E2 17 00 F9 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 FB [12:41:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:41:25]wFMCommunicate OK [12:41:25]CreateOFDProtocolMessage done [12:41:25]OFDSenderStorePacket 22110 [12:41:25]StoreOFDPacket docnum=22110 [12:41: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 23 01 00 00 4A EE 1B 01 86 C6 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 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 82 3A 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 58 CF 03 FC 25 13 55 3E B6 F9 E6 4B 56 A0 [12:41:25]CheckFolder [12:41:25]dirname=/storage/ofd_packets [12:41:25]CheckFolder done [12:41:25]ProducePacketName [12:41:25]name=ofd_packets/00022110 [12:41:25]NVStorageSaveData ofd_packets/00022110 [12:41:25]File name is /storage/ofd_packets/00022110 [12:41:25]Write 321 bytes [12:41:25]NVStorageSaveData done [12:41:25]OFDSenderStorePacket done [12:41:25]KKMCreateOFDPacket done [12:41:25]NVStorageSaveData kkm_last_timestamp [12:41:25]File name is /storage/kkm_last_timestamp [12:41:25]Write 4 bytes [12:41:25]NVStorageSaveData done [12:41:25]ExternCall_PrintAddStr [12:41:25]wPrintStart [12:41:25]Write to MH i2c: 01 00 00 FA 36 30 [12:41:25]Write i2c OK [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: 01 [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: 01 07 00 [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: 01 07 00 FA 36 00 00 00 00 00 FF 0F 45 [12:41:25]RasterBufferAndPrint [12:41:25]line 小褔械褌 N : (3)254333 [12:41:25]line 袠袧袧: 02508201610067 [12:41:25]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [12:41:25]line 袩袪袨袛袗袞袗 [12:41:25]line 孝芯胁邪褉: 4700000160211 [12:41:25]line 袙芯写邪 袥械谐械薪写邪 0,5谢 [12:41:25]line 3.000 * 40.00 [12:41:25]line = 120.00 [12:41:25]line 袧袛小 12% 袧小袩 1% [12:41:25]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [12:41:25]line 袠孝袨袚袨: 120.00 [12:41:25]line 袧小袩 1% : 1.06 [12:41:25]line 袧袛小 12% : 12.74 [12:41:25]line 袧邪谢懈褔薪褘屑懈: 120.00 [12:41:25]line 袘械蟹薪邪谢.: 0.00 [12:41:25]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [12:41:25]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [12:41:25]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [12:41:25]line 效械泻 24 14.06.2024 12:41 [12:41:25]line 小屑械薪邪: 325 肖肖袛: 1.0 [12:41:25]line 袟袧袦: 0300000200 [12:41:25]line 袪袧袦: 0000000000099755 [12:41:25]line 袙械褉褋懈褟 袣袣袦: 001 [12:41:25]line 肖袦: 0000000000965344 [12:41:25]line 肖袛: 22110 [12:41:25]line 肖袩袛: 97646148330771 [12:41:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T124138&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22110&fm=97646148330771&tin=02508201610067®Number=0000000000099755&sum=12000 [12:41:25]line 0 [12:41:26]written 0, free lines is 4095 [12:41:26]OFD Sender: Processing packet 22110 [packets to send 5, broken 4] [12:41:26]ProducePacketName [12:41:26]name=ofd_packets/00022110 [12:41:26]OFD Sender: To server: 嚂鰌G, [12:41:26]CommunicateWithHost lk.salyk.kg:30040 [12:41:26]ConnectInit lk.salyk.kg [12:41:26]Connected sock=9 [12:41: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 23 01 00 00 4A EE 1B 01 86 C6 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 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 82 3A 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 58 CF 03 FC 25 13 55 3E B6 F9 E6 4B 56 A0 [12:41: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 E1 D7 47 00 32 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5E 56 00 00 F4 03 04 00 42 E3 6B 66 B6 04 01 00 00 4E 51 9E D7 93 E3 DA AE [12:41:26]CommunicateWithHost err = 0 [12:41:26]CheckOFDResponse [12:41:26]1017 (14) - 77093643461234 [12:41:26]1041 (16) - 0000000000965344 [12:41:26]1040 (4) - 22110 [12:41:26]1012 (4) - 14.06.2024 06:29 [12:41:26]1206 (1) - 0 [12:41:26]OFD Sender: Remove packet 22110 [12:41:26]ProducePacketName [12:41:26]name=ofd_packets/00022110 [12:41:26]NVStorageDeleteData [12:41:26]Write to MH i2c: 01 00 00 22 37 59 [12:41:26]Write i2c OK [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: 01 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: 01 07 00 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: 01 07 00 22 37 00 00 00 00 00 10 0D 7D [12:41:26]RasterBufferAndPrint [12:41:26]line [12:41:26]line [12:41:26]line [12:41:26]line [12:41:26]line [12:41:26]written 0, free lines is 3353 [12:41:26]MH_Cut [12:41:26]Write to MH i2c: D1 01 00 29 37 01 32 [12:41:26]Write i2c OK [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: D1 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: D1 01 00 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: D1 01 00 29 37 00 31 [12:41:26]Write to MH i2c: 01 00 00 2A 37 61 [12:41:26]Write i2c OK [12:41:26]MH_I2C_Read... [12:41:26]OFD Sender: No OFD packet to send [12:41:27]*** Cut start [12:41:27]*** Partial cut [12:41:27]*** CUTSNS_PIN = 1 [12:41:27]*** CUTSNS_PIN = 0 [12:41:27]*** Brake cut motor [12:41:27]Read from MH i2c: 01 [12:41:27]MH_I2C_Read... [12:41:27]*** Stop cut motor [12:41:27]*** Cut end [12:41:27]Read from MH i2c: 01 07 00 [12:41:27]MH_I2C_Read... [12:41:27]Read from MH i2c: 01 07 00 2A 37 00 00 00 00 00 FF 0F 76 [12:41:27]process_action close_receipt done [12:41:27]requested_data is exist [12:41:27]produce_requested_data [12:41:27]requested_item fm.sn is exist - process it [12:41:27]wFMCommunicate request_size=4 [12:41:27]MH_SAM_APDU [12:41:27]CAPDU: 80 11 00 00 [12:41:27]Write to MH i2c: E2 08 00 2B 37 80 11 00 00 00 00 00 00 DC [12:41:27]Write i2c OK [12:41:27]MH_I2C_Read... [12:41:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:27]Read from MH i2c: E2 [12:41:27]MH_I2C_Read... [12:41:27]Read from MH i2c: E2 17 00 [12:41:27]MH_I2C_Read... [12:41:27]Read from MH i2c: E2 17 00 2B 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 2E [12:41:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:41:27]wFMCommunicate OK [12:41:27]requested_item fd.num is exist - process it [12:41:27]SAM_PROTO_GetFieldsCounters [12:41:27]wFMCommunicate request_size=4 [12:41:27]MH_SAM_APDU [12:41:27]CAPDU: 80 13 00 00 [12:41:27]Write to MH i2c: E2 08 00 2C 37 80 13 00 00 00 00 00 00 DF [12:41:27]Write i2c OK [12:41:27]MH_I2C_Read... [12:41:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:28]Read from MH i2c: E2 [12:41:28]MH_I2C_Read... [12:41:28]Read from MH i2c: E2 62 00 [12:41:28]MH_I2C_Read... [12:41:28]Read from MH i2c: E2 62 00 2C 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 5E 56 00 00 0E 04 04 00 45 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 4B [12:41: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 56 00 00 0E 04 04 00 45 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 [12:41:28]wFMCommunicate OK [12:41:28]SAM_PROTO_GetFieldsCounters done [12:41:28]requested_item shift.num is exist - process it [12:41:28]requested_item shift.opened is exist - process it [12:41:28]req_shift_opened [12:41:28]FM_GetShiftState [12:41:28]SAM_PROTO_GetShiftState [12:41:28]wFMCommunicate request_size=4 [12:41:28]MH_SAM_APDU [12:41:28]CAPDU: 80 13 01 00 [12:41:28]Write to MH i2c: E2 08 00 2D 37 80 13 01 00 00 00 00 00 E1 [12:41:28]Write i2c OK [12:41:28]MH_I2C_Read... [12:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:28]Read from MH i2c: E2 [12:41:28]MH_I2C_Read... [12:41:28]Read from MH i2c: E2 0E 00 [12:41:28]MH_I2C_Read... [12:41:28]Read from MH i2c: E2 0E 00 2D 37 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 52 [12:41:28]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:41:28]wFMCommunicate OK [12:41:28]SAM_PROTO_GetShiftState done [12:41:28]FM_GetShiftState done [12:41:28]req_shift_opened done [12:41:28]requested_item shift.open_date is exist - process it [12:41:28]req_shift_open_date [12:41:28]req_shift_open_date done [12:41:28]produce_requested_data done [12:41:28]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22110,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [12:41:28]process_action_free close_receipt [12:41:28]json_value_free [12:41:28]json_value_free done [12:41:28]process_json_proto returns [12:41:28]Send response to host [12:41:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22110,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [12:41:28]free response buf [12:41:28]execute_script done [12:41:28]execute_script returns [12:41:28]free content buf [12:41:28]Sock 8.Close socket [12:41:28]Sock 8.Thread stoped [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:41:58]accept exits with 10 [12:41:58]New connection [12:41:58]New thread 3067321700 created [12:41:58]Thread 3067178340 joined [12:41:58]Waiting for new connection... [12:41:58] Sock 10.Parse request [12:41:58]Sock 10.Check first char [12:41:58]Sock 10.First char is OK [12:41:58]request: POST /json_proto HTTP/1.0 [12:41:58]Method: POST [12:41:58]URL: /json_proto [12:41:58]Method is POST - this is cgi request [12:41:58]url: /json_proto [12:41:58]query_string will be loaded in cgi processing [12:41:58]execute_cgi json_proto POST (null) [12:41:58]execute_cgi path=json_proto method=POST [12:41:58]POST find Content-Length [12:41:58]Host: 172.17.35.133:8080 [12:41:58]Content-Length: 630 [12:41:58]Content-Type: application/json [12:41:58] [12:41:58]POST finish read [12:41:58]Found Content-Length = 630 [12:41:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254334", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:58]execute_script... [12:41:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254334", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:58]POST & json_proto [12:41:58]process_json_proto [12:41:58]json parsed OK: [12:41:58]protocol is kg_v1.0 [12:41:58]action value=close_receipt [12:41:58]process_action close_receipt [12:41:58]cmd_close_receipt [12:41:58]MH_GetDate [12:41:58]Write to MH i2c: F0 00 00 2E 37 54 [12:41:58]Write i2c OK [12:41:58]MH_I2C_Read... [12:41:58]Read from MH i2c: F0 [12:41:58]MH_I2C_Read... [12:41:58]Read from MH i2c: F0 09 00 [12:41:58]MH_I2C_Read... [12:41:58]Read from MH i2c: F0 09 00 2E 37 00 A4 3A 6C 66 8C 55 28 65 7B [12:41:58]GetLastDocTimeStamp 1718368898 [12:41:58]current date 1718368932 [12:41:58]FM_GetShiftState [12:41:58]SAM_PROTO_GetShiftState [12:41:58]wFMCommunicate request_size=4 [12:41:58]MH_SAM_APDU [12:41:58]CAPDU: 80 13 01 00 [12:41:58]Write to MH i2c: E2 08 00 2F 37 80 13 01 00 00 00 00 00 E3 [12:41:58]Write i2c OK [12:41:58]MH_I2C_Read... [12:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:58]Read from MH i2c: E2 [12:41:58]MH_I2C_Read... [12:41:58]Read from MH i2c: E2 0E 00 [12:41:58]MH_I2C_Read... [12:41:58]Read from MH i2c: E2 0E 00 2F 37 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 54 [12:41:58]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:41:58]wFMCommunicate OK [12:41:58]SAM_PROTO_GetShiftState done [12:41:58]FM_GetShiftState done [12:41:58]opened in 1718324742 [12:41:58]opened+sec_in_day 1718411142 [12:41:58]quantity*price = 5000 [12:41:58]sum+1 = 5001 [12:41:58]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 50.00 袧小袩 1% : 0.44 袧袛小 12% : 5.31 袧邪谢懈褔薪褘屑懈: 50.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 25 14.06.2024 12:42 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22111 肖袩袛: 156329607295237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T124212&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22111&fm=156329607295237&tin=02508201610067®Number=0000000000099755&sum=5000 0 [12:41:59]StoreToDocumentArchive [12:41:59]shift 325 fd 22111 [12:41:59]save to /storage/0325/doc_00022111 [12:41:59]save last doc name /storage/0325/doc_00022111 to /storage/kkm_last_doc_name [12:41:59]save OK [12:41:59]Clear old archive folders... [12:41:59]ProcessDocumentItem done err = 0, tmpTLVsize=269 [12:41:59]tlvbuf is B6FB23F0 [12:41:59]SAM_PROTO_ClearQueue [12:41:59]wFMCommunicate request_size=4 [12:41:59]MH_SAM_APDU [12:41:59]CAPDU: 80 09 00 00 [12:41:59]Write to MH i2c: E2 08 00 3C 37 80 09 00 00 00 00 00 00 E5 [12:41:59]Write i2c OK [12:41:59]MH_I2C_Read... [12:41:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:59]Read from MH i2c: E2 [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: E2 03 00 [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: E2 03 00 3C 37 00 90 00 E7 [12:41:59]RAPDU: 90 00 [12:41:59]wFMCommunicate OK [12:41:59]SAM_PROTO_ClearQueue done [12:41:59]KKMCreateOFDPacket [12:41:59]OFDProtocolAddRootSTLVToBuf [12:41:59]FM_MakeSignedData [12:41:59]FM_MakeSignedData [12:41:59]SAM_PROTO_SignData [12:41:59]wFMCommunicate request_size=4 [12:41:59]MH_SAM_APDU [12:41:59]CAPDU: 80 0D 01 02 [12:41:59]Write to MH i2c: E2 08 00 3D 37 80 0D 01 02 00 00 00 00 ED [12:41:59]Write i2c OK [12:41:59]MH_I2C_Read... [12:41:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:59]Read from MH i2c: E2 [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: E2 03 00 [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: E2 03 00 3D 37 00 90 00 E8 [12:41:59]RAPDU: 90 00 [12:41:59]wFMCommunicate OK [12:41:59]wFMCommunicate request_size=255 [12:41:59]MH_SAM_APDU [12:41:59]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 A4 3A 6C 66 0E 04 04 00 45 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 [12:41:59]Write to MH i2c: E2 02 01 3E 37 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 A4 3A 6C 66 0E 04 04 00 45 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 1E [12:41:59]Write i2c OK [12:41:59]MH_I2C_Read... [12:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:59]Read from MH i2c: E2 [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: E2 03 00 [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: E2 03 00 3E 37 00 90 00 E9 [12:41:59]RAPDU: 90 00 [12:41:59]wFMCommunicate OK [12:41:59]wFMCommunicate request_size=28 [12:41:59]MH_SAM_APDU [12:41:59]CAPDU: 80 0D 02 02 17 36 35 33 34 34 10 04 04 00 5F 56 00 00 35 04 06 00 8E 2E 52 B5 F1 05 [12:41:59]Write to MH i2c: E2 1F 00 3F 37 80 0D 02 02 17 00 36 35 33 34 34 10 04 04 00 5F 56 00 00 35 04 06 00 8E 2E 52 B5 F1 05 00 00 E9 [12:41:59]Write i2c OK [12:41:59]MH_I2C_Read... [12:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:59]Read from MH i2c: E2 [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: E2 03 00 [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: E2 03 00 3F 37 00 90 00 EA [12:41:59]RAPDU: 90 00 [12:41:59]wFMCommunicate OK [12:41:59]wFMCommunicate request_size=4 [12:41:59]MH_SAM_APDU [12:41:59]CAPDU: 80 0D 03 02 [12:41:59]Write to MH i2c: E2 08 00 40 37 80 0D 03 02 00 00 00 00 F2 [12:41:59]Write i2c OK [12:41:59]MH_I2C_Read... [12:41:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:59]Read from MH i2c: E2 [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: E2 0B 00 [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: E2 0B 00 40 37 00 22 6F 85 1B C7 1B F8 C3 90 00 C1 [12:41:59]RAPDU: 22 6F 85 1B C7 1B F8 C3 90 00 [12:41:59]wFMCommunicate OK [12:41:59]SAM_PROTO_SignData done [12:41:59]FM_MakeSignedData done [12:41:59]CreateOFDProtocolMessage [12:41:59]wFMCommunicate request_size=4 [12:41:59]MH_SAM_APDU [12:41:59]CAPDU: 80 11 00 00 [12:41:59]Write to MH i2c: E2 08 00 41 37 80 11 00 00 00 00 00 00 F2 [12:41:59]Write i2c OK [12:41:59]MH_I2C_Read... [12:41:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:59]Read from MH i2c: E2 [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: E2 17 00 [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: E2 17 00 41 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 44 [12:41:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:41:59]wFMCommunicate OK [12:41:59]CreateOFDProtocolMessage done [12:41:59]OFDSenderStorePacket 22111 [12:41:59]StoreOFDPacket docnum=22111 [12:41: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 21 01 00 00 4D 44 19 01 69 B3 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 A4 3A 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 8E 2E 52 B5 F1 05 22 6F 85 1B C7 1B F8 C3 [12:41:59]CheckFolder [12:41:59]dirname=/storage/ofd_packets [12:41:59]CheckFolder done [12:41:59]ProducePacketName [12:41:59]name=ofd_packets/00022111 [12:41:59]NVStorageSaveData ofd_packets/00022111 [12:41:59]File name is /storage/ofd_packets/00022111 [12:41:59]Write 319 bytes [12:41:59]NVStorageSaveData done [12:41:59]OFDSenderStorePacket done [12:41:59]KKMCreateOFDPacket done [12:41:59]NVStorageSaveData kkm_last_timestamp [12:41:59]File name is /storage/kkm_last_timestamp [12:41:59]Write 4 bytes [12:41:59]NVStorageSaveData done [12:41:59]ExternCall_PrintAddStr [12:41:59]wPrintStart [12:41:59]Write to MH i2c: 01 00 00 42 37 79 [12:41:59]Write i2c OK [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: 01 [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: 01 07 00 [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: 01 07 00 42 37 00 00 00 00 00 FF 0F 8E [12:41:59]RasterBufferAndPrint [12:41:59]line 小褔械褌 N : (3)254334 [12:41:59]line 袠袧袧: 02508201610067 [12:41:59]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [12:41:59]line 袩袪袨袛袗袞袗 [12:41:59]line 孝芯胁邪褉: 4700000160358 [12:41:59]line 袙芯写邪 袥械谐械薪写邪 1谢 [12:41:59]line 1.000 * 50.00 [12:41:59]line = 50.00 [12:41:59]line 袧袛小 12% 袧小袩 1% [12:41:59]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [12:41:59]line 袠孝袨袚袨: 50.00 [12:41:59]line 袧小袩 1% : 0.44 [12:41:59]line 袧袛小 12% : 5.31 [12:41:59]line 袧邪谢懈褔薪褘屑懈: 50.00 [12:41:59]line 袘械蟹薪邪谢.: 0.00 [12:41:59]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [12:41:59]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [12:41:59]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [12:41:59]line 效械泻 25 14.06.2024 12:42 [12:41:59]line 小屑械薪邪: 325 肖肖袛: 1.0 [12:41:59]line 袟袧袦: 0300000200 [12:41:59]line 袪袧袦: 0000000000099755 [12:41:59]line 袙械褉褋懈褟 袣袣袦: 001 [12:41:59]line 肖袦: 0000000000965344 [12:41:59]line 肖袛: 22111 [12:41:59]line 肖袩袛: 156329607295237 [12:41:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T124212&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22111&fm=156329607295237&tin=02508201610067®Number=0000000000099755&sum=5000 [12:41:59]line 0 [12:41:59]written 0, free lines is 4095 [12:41:59]OFD Sender: Processing packet 22111 [packets to send 5, broken 4] [12:41:59]ProducePacketName [12:41:59]name=ofd_packets/00022111 [12:41:59]OFD Sender: To server: 嚂鰌G, [12:41:59]CommunicateWithHost lk.salyk.kg:30040 [12:41:59]ConnectInit lk.salyk.kg [12:42:00]Connected sock=9 [12:42: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 21 01 00 00 4D 44 19 01 69 B3 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 A4 3A 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 8E 2E 52 B5 F1 05 22 6F 85 1B C7 1B F8 C3 [12:42:00]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 EF 0D 47 00 66 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5F 56 00 00 F4 03 04 00 64 E3 6B 66 B6 04 01 00 00 B0 77 2A D2 00 52 85 DF [12:42:00]CommunicateWithHost err = 0 [12:42:00]CheckOFDResponse [12:42:00]1017 (14) - 77093643461234 [12:42:00]1041 (16) - 0000000000965344 [12:42:00]1040 (4) - 22111 [12:42:00]1012 (4) - 14.06.2024 06:29 [12:42:00]1206 (1) - 0 [12:42:00]OFD Sender: Remove packet 22111 [12:42:00]ProducePacketName [12:42:00]name=ofd_packets/00022111 [12:42:00]NVStorageDeleteData [12:42:00]Write to MH i2c: 01 00 00 6A 37 A1 [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: 01 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: 01 07 00 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: 01 07 00 6A 37 00 00 00 00 00 22 0D D7 [12:42:00]RasterBufferAndPrint [12:42:00]line [12:42:00]line [12:42:00]line [12:42:00]line [12:42:00]line [12:42:00]written 0, free lines is 3368 [12:42:00]MH_Cut [12:42:00]Write to MH i2c: D1 01 00 71 37 01 7A [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: D1 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: D1 01 00 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: D1 01 00 71 37 00 79 [12:42:00]Write to MH i2c: 01 00 00 72 37 A9 [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:00]OFD Sender: No OFD packet to send [12:42:00]*** Cut start [12:42:00]*** Partial cut [12:42:00]*** CUTSNS_PIN = 1 [12:42:01]*** CUTSNS_PIN = 0 [12:42:01]*** Brake cut motor [12:42:01]Read from MH i2c: 01 [12:42:01]MH_I2C_Read... [12:42:01]*** Stop cut motor [12:42:01]*** Cut end [12:42:01]Read from MH i2c: 01 07 00 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: 01 07 00 72 37 00 00 00 00 00 FF 0F BE [12:42:01]process_action close_receipt done [12:42:01]requested_data is exist [12:42:01]produce_requested_data [12:42:01]requested_item fm.sn is exist - process it [12:42:01]wFMCommunicate request_size=4 [12:42:01]MH_SAM_APDU [12:42:01]CAPDU: 80 11 00 00 [12:42:01]Write to MH i2c: E2 08 00 73 37 80 11 00 00 00 00 00 00 24 [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:01]Read from MH i2c: E2 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 17 00 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 17 00 73 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 76 [12:42: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:42:01]wFMCommunicate OK [12:42:01]requested_item fd.num is exist - process it [12:42:01]SAM_PROTO_GetFieldsCounters [12:42:01]wFMCommunicate request_size=4 [12:42:01]MH_SAM_APDU [12:42:01]CAPDU: 80 13 00 00 [12:42:01]Write to MH i2c: E2 08 00 74 37 80 13 00 00 00 00 00 00 27 [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:01]Read from MH i2c: E2 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 62 00 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 62 00 74 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 5F 56 00 00 0E 04 04 00 45 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 97 [12:42: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 5F 56 00 00 0E 04 04 00 45 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 [12:42:01]wFMCommunicate OK [12:42:01]SAM_PROTO_GetFieldsCounters done [12:42:01]requested_item shift.num is exist - process it [12:42:01]requested_item shift.opened is exist - process it [12:42:01]req_shift_opened [12:42:01]FM_GetShiftState [12:42:01]SAM_PROTO_GetShiftState [12:42:01]wFMCommunicate request_size=4 [12:42:01]MH_SAM_APDU [12:42:01]CAPDU: 80 13 01 00 [12:42:01]Write to MH i2c: E2 08 00 75 37 80 13 01 00 00 00 00 00 29 [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:01]Read from MH i2c: E2 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 0E 00 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 0E 00 75 37 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 9A [12:42:01]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:42:01]wFMCommunicate OK [12:42:01]SAM_PROTO_GetShiftState done [12:42:01]FM_GetShiftState done [12:42:01]req_shift_opened done [12:42:01]requested_item shift.open_date is exist - process it [12:42:01]req_shift_open_date [12:42:01]req_shift_open_date done [12:42:01]produce_requested_data done [12:42:01]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22111,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [12:42:01]process_action_free close_receipt [12:42:01]json_value_free [12:42:01]json_value_free done [12:42:01]process_json_proto returns [12:42:01]Send response to host [12:42:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22111,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [12:42:01]free response buf [12:42:01]execute_script done [12:42:01]execute_script returns [12:42:01]free content buf [12:42:01]Sock 10.Close socket [12:42:01]Sock 10.Thread stoped [12:42:05]OFD Sender: No OFD packet to send [12:42:10]OFD Sender: No OFD packet to send [12:42:13]accept exits with 8 [12:42:13]New connection [12:42:13]New thread 3067178340 created [12:42:13]Thread 3067321700 joined [12:42:13]Waiting for new connection... [12:42:13] Sock 8.Parse request [12:42:13]Sock 8.Check first char [12:42:13]Sock 8.First char is OK [12:42:13]request: POST /json_proto HTTP/1.0 [12:42:13]Method: POST [12:42:13]URL: /json_proto [12:42:13]Method is POST - this is cgi request [12:42:13]url: /json_proto [12:42:13]query_string will be loaded in cgi processing [12:42:13]execute_cgi json_proto POST (null) [12:42:13]execute_cgi path=json_proto method=POST [12:42:13]POST find Content-Length [12:42:13]Host: 172.17.35.133:8080 [12:42:13]Content-Length: 715 [12:42:13]Content-Type: application/json [12:42:13] [12:42:13]POST finish read [12:42:13]Found Content-Length = 715 [12:42:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254335", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:13]execute_script... [12:42: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)254335", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:13]POST & json_proto [12:42:13]process_json_proto [12:42:13]json parsed OK: [12:42:13]protocol is kg_v1.0 [12:42:13]action value=close_receipt [12:42:13]process_action close_receipt [12:42:13]cmd_close_receipt [12:42:13]MH_GetDate [12:42:13]Write to MH i2c: F0 00 00 76 37 9C [12:42:13]Write i2c OK [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: F0 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: F0 09 00 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: F0 09 00 76 37 00 B3 3A 6C 66 8C 55 28 65 D2 [12:42:13]GetLastDocTimeStamp 1718368932 [12:42:13]current date 1718368947 [12:42:13]FM_GetShiftState [12:42:13]SAM_PROTO_GetShiftState [12:42:13]wFMCommunicate request_size=4 [12:42:13]MH_SAM_APDU [12:42:13]CAPDU: 80 13 01 00 [12:42:13]Write to MH i2c: E2 08 00 77 37 80 13 01 00 00 00 00 00 2B [12:42:13]Write i2c OK [12:42:13]MH_I2C_Read... [12:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:13]Read from MH i2c: E2 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: E2 0E 00 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: E2 0E 00 77 37 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 9C [12:42:13]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:42:13]wFMCommunicate OK [12:42:13]SAM_PROTO_GetShiftState done [12:42:13]FM_GetShiftState done [12:42:13]opened in 1718324742 [12:42:13]opened+sec_in_day 1718411142 [12:42:13]quantity*price = 7000 [12:42:13]sum+1 = 7001 [12:42:13]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 70.00 袧小袩 1% : 0.62 袧袛小 12% : 7.43 袧邪谢懈褔薪褘屑懈: 70.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 26 14.06.2024 12:42 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22112 肖袩袛: 140188703127791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T124227&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22112&fm=140188703127791&tin=02508201610067®Number=0000000000099755&sum=7000 0 [12:42:14]StoreToDocumentArchive [12:42:14]shift 325 fd 22112 [12:42:14]save to /storage/0325/doc_00022112 [12:42:14]save last doc name /storage/0325/doc_00022112 to /storage/kkm_last_doc_name [12:42:14]save OK [12:42:14]Clear old archive folders... [12:42:14]ProcessDocumentItem done err = 0, tmpTLVsize=298 [12:42:14]tlvbuf is B6E02010 [12:42:14]SAM_PROTO_ClearQueue [12:42:14]wFMCommunicate request_size=4 [12:42:14]MH_SAM_APDU [12:42:14]CAPDU: 80 09 00 00 [12:42:14]Write to MH i2c: E2 08 00 84 37 80 09 00 00 00 00 00 00 2D [12:42:14]Write i2c OK [12:42:14]MH_I2C_Read... [12:42:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:14]Read from MH i2c: E2 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 03 00 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 03 00 84 37 00 90 00 2F [12:42:14]RAPDU: 90 00 [12:42:14]wFMCommunicate OK [12:42:14]SAM_PROTO_ClearQueue done [12:42:14]KKMCreateOFDPacket [12:42:14]OFDProtocolAddRootSTLVToBuf [12:42:14]FM_MakeSignedData [12:42:14]FM_MakeSignedData [12:42:14]SAM_PROTO_SignData [12:42:14]wFMCommunicate request_size=4 [12:42:14]MH_SAM_APDU [12:42:14]CAPDU: 80 0D 01 02 [12:42:14]Write to MH i2c: E2 08 00 85 37 80 0D 01 02 00 00 00 00 35 [12:42:14]Write i2c OK [12:42:14]MH_I2C_Read... [12:42:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:14]Read from MH i2c: E2 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 03 00 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 03 00 85 37 00 90 00 30 [12:42:14]RAPDU: 90 00 [12:42:14]wFMCommunicate OK [12:42:14]wFMCommunicate request_size=255 [12:42:14]MH_SAM_APDU [12:42:14]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 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 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 1A 00 00 00 F4 03 04 00 B3 3A 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [12:42:14]Write to MH i2c: E2 02 01 86 37 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 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 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 1A 00 00 00 F4 03 04 00 B3 3A 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 FB [12:42:14]Write i2c OK [12:42:14]MH_I2C_Read... [12:42:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:14]Read from MH i2c: E2 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 03 00 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 03 00 86 37 00 90 00 31 [12:42:14]RAPDU: 90 00 [12:42:14]wFMCommunicate OK [12:42:14]wFMCommunicate request_size=57 [12:42:14]MH_SAM_APDU [12:42:14]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 60 56 00 00 35 04 06 00 7F 80 39 D9 F8 EF [12:42:14]Write to MH i2c: E2 3C 00 87 37 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 60 56 00 00 35 04 06 00 7F 80 39 D9 F8 EF 00 00 AC [12:42:14]Write i2c OK [12:42:14]MH_I2C_Read... [12:42:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:14]Read from MH i2c: E2 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 03 00 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 03 00 87 37 00 90 00 32 [12:42:14]RAPDU: 90 00 [12:42:14]wFMCommunicate OK [12:42:14]wFMCommunicate request_size=4 [12:42:14]MH_SAM_APDU [12:42:14]CAPDU: 80 0D 03 02 [12:42:14]Write to MH i2c: E2 08 00 88 37 80 0D 03 02 00 00 00 00 3A [12:42:14]Write i2c OK [12:42:14]MH_I2C_Read... [12:42:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:14]Read from MH i2c: E2 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 0B 00 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 0B 00 88 37 00 3D B3 4B 0B 9C CD 43 55 90 00 82 [12:42:14]RAPDU: 3D B3 4B 0B 9C CD 43 55 90 00 [12:42:14]wFMCommunicate OK [12:42:14]SAM_PROTO_SignData done [12:42:14]FM_MakeSignedData done [12:42:14]CreateOFDProtocolMessage [12:42:14]wFMCommunicate request_size=4 [12:42:14]MH_SAM_APDU [12:42:14]CAPDU: 80 11 00 00 [12:42:14]Write to MH i2c: E2 08 00 89 37 80 11 00 00 00 00 00 00 3A [12:42:14]Write i2c OK [12:42:14]MH_I2C_Read... [12:42:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:14]Read from MH i2c: E2 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 17 00 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 17 00 89 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 8C [12:42:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:42:14]wFMCommunicate OK [12:42:14]CreateOFDProtocolMessage done [12:42:14]OFDSenderStorePacket 22112 [12:42:14]StoreOFDPacket docnum=22112 [12:42:14]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 A9 C4 36 01 7D C9 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 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 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 1A 00 00 00 F4 03 04 00 B3 3A 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 7F 80 39 D9 F8 EF 3D B3 4B 0B 9C CD 43 55 [12:42:14]CheckFolder [12:42:14]dirname=/storage/ofd_packets [12:42:14]CheckFolder done [12:42:14]ProducePacketName [12:42:14]name=ofd_packets/00022112 [12:42:14]NVStorageSaveData ofd_packets/00022112 [12:42:14]File name is /storage/ofd_packets/00022112 [12:42:14]Write 348 bytes [12:42:14]NVStorageSaveData done [12:42:14]OFDSenderStorePacket done [12:42:14]KKMCreateOFDPacket done [12:42:14]NVStorageSaveData kkm_last_timestamp [12:42:14]File name is /storage/kkm_last_timestamp [12:42:14]Write 4 bytes [12:42:14]NVStorageSaveData done [12:42:14]ExternCall_PrintAddStr [12:42:14]wPrintStart [12:42:14]Write to MH i2c: 01 00 00 8A 37 C1 [12:42:14]OFD Sender: Processing packet 22112 [packets to send 5, broken 4] [12:42:14]ProducePacketName [12:42:14]name=ofd_packets/00022112 [12:42:14]OFD Sender: To server: 嚂鰌G, [12:42:14]CommunicateWithHost lk.salyk.kg:30040 [12:42:14]ConnectInit lk.salyk.kg [12:42:14]Write i2c OK [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: 01 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: 01 07 00 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: 01 07 00 8A 37 00 00 00 00 00 FF 0F D6 [12:42:14]RasterBufferAndPrint [12:42:14]line 小褔械褌 N : (3)254335 [12:42:14]line 袠袧袧: 02508201610067 [12:42:14]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [12:42:14]line 袩袪袨袛袗袞袗 [12:42:14]line 孝芯胁邪褉: 4700007110073 [12:42:14]line 小褝薪写胁懈褔 褋 泻械褌褔褍锌芯屑 孝邪谢邪褋 袛邪邪屑褘 [12:42:14]line 1.000 * 70.00 [12:42:14]line = 70.00 [12:42:14]line 袧袛小 12% 袧小袩 1% [12:42:14]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [12:42:14]line 袠孝袨袚袨: 70.00 [12:42:14]line 袧小袩 1% : 0.62 [12:42:14]line 袧袛小 12% : 7.43 [12:42:14]line 袧邪谢懈褔薪褘屑懈: 70.00 [12:42:14]line 袘械蟹薪邪谢.: 0.00 [12:42:14]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [12:42:14]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [12:42:14]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [12:42:14]line 效械泻 26 14.06.2024 12:42 [12:42:14]line 小屑械薪邪: 325 肖肖袛: 1.0 [12:42:14]line 袟袧袦: 0300000200 [12:42:14]line 袪袧袦: 0000000000099755 [12:42:15]line 袙械褉褋懈褟 袣袣袦: 001 [12:42:15]line 肖袦: 0000000000965344 [12:42:15]line 肖袛: 22112 [12:42:15]line 肖袩袛: 140188703127791 [12:42:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T124227&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22112&fm=140188703127791&tin=02508201610067®Number=0000000000099755&sum=7000 [12:42:15]line 0 [12:42:15]Connected sock=10 [12:42: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 3E 01 00 00 A9 C4 36 01 7D C9 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 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 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 1A 00 00 00 F4 03 04 00 B3 3A 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 7F 80 39 D9 F8 EF 3D B3 4B 0B 9C CD 43 55 [12:42:15]written 0, free lines is 4095 [12:42: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 12 A6 47 00 5A 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 60 56 00 00 F4 03 04 00 73 E3 6B 66 B6 04 01 00 00 A8 1A 8F 7B FE A0 58 FC [12:42:15]CommunicateWithHost err = 0 [12:42:15]CheckOFDResponse [12:42:15]1017 (14) - 77093643461234 [12:42:15]1041 (16) - 0000000000965344 [12:42:15]1040 (4) - 22112 [12:42:15]1012 (4) - 14.06.2024 06:30 [12:42:15]1206 (1) - 0 [12:42:15]OFD Sender: Remove packet 22112 [12:42:15]ProducePacketName [12:42:15]name=ofd_packets/00022112 [12:42:15]NVStorageDeleteData [12:42:15]Write to MH i2c: 01 00 00 B3 37 EA [12:42:15]Write i2c OK [12:42:15]MH_I2C_Read... [12:42:15]Read from MH i2c: 01 [12:42:15]MH_I2C_Read... [12:42:15]Read from MH i2c: 01 07 00 [12:42:15]MH_I2C_Read... [12:42:15]Read from MH i2c: 01 07 00 B3 37 00 00 00 00 00 0B 0D 09 [12:42:15]RasterBufferAndPrint [12:42:15]line [12:42:15]line [12:42:15]line [12:42:15]line [12:42:15]line [12:42:15]written 0, free lines is 3348 [12:42:15]MH_Cut [12:42:15]Write to MH i2c: D1 01 00 BA 37 01 C3 [12:42:15]Write i2c OK [12:42:15]MH_I2C_Read... [12:42:15]Read from MH i2c: D1 [12:42:15]MH_I2C_Read... [12:42:15]Read from MH i2c: D1 01 00 [12:42:15]MH_I2C_Read... [12:42:15]Read from MH i2c: D1 01 00 BA 37 00 C2 [12:42:15]Write to MH i2c: 01 00 00 BB 37 F2 [12:42:15]Write i2c OK [12:42:15]MH_I2C_Read... [12:42:15]OFD Sender: No OFD packet to send [12:42:16]*** Cut start [12:42:16]*** Partial cut [12:42:16]*** CUTSNS_PIN = 1 [12:42:16]*** CUTSNS_PIN = 0 [12:42:16]*** Brake cut motor [12:42:16]Read from MH i2c: 01 [12:42:16]MH_I2C_Read... [12:42:16]*** Stop cut motor [12:42:16]*** Cut end [12:42:16]Read from MH i2c: 01 07 00 [12:42:16]MH_I2C_Read... [12:42:16]Read from MH i2c: 01 07 00 BB 37 00 00 00 00 00 FF 0F 07 [12:42:16]process_action close_receipt done [12:42:16]requested_data is exist [12:42:16]produce_requested_data [12:42:16]requested_item fm.sn is exist - process it [12:42:16]wFMCommunicate request_size=4 [12:42:16]MH_SAM_APDU [12:42:16]CAPDU: 80 11 00 00 [12:42:16]Write to MH i2c: E2 08 00 BC 37 80 11 00 00 00 00 00 00 6D [12:42:16]Write i2c OK [12:42:16]MH_I2C_Read... [12:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:16]Read from MH i2c: E2 [12:42:16]MH_I2C_Read... [12:42:16]Read from MH i2c: E2 17 00 [12:42:16]MH_I2C_Read... [12:42:16]Read from MH i2c: E2 17 00 BC 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 BF [12:42: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:42:16]wFMCommunicate OK [12:42:16]requested_item fd.num is exist - process it [12:42:16]SAM_PROTO_GetFieldsCounters [12:42:16]wFMCommunicate request_size=4 [12:42:16]MH_SAM_APDU [12:42:16]CAPDU: 80 13 00 00 [12:42:16]Write to MH i2c: E2 08 00 BD 37 80 13 00 00 00 00 00 00 70 [12:42:16]Write i2c OK [12:42:16]MH_I2C_Read... [12:42:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:17]Read from MH i2c: E2 [12:42:17]MH_I2C_Read... [12:42:17]Read from MH i2c: E2 62 00 [12:42:17]MH_I2C_Read... [12:42:17]Read from MH i2c: E2 62 00 BD 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 60 56 00 00 0E 04 04 00 45 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 E4 [12:42: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 60 56 00 00 0E 04 04 00 45 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 [12:42:17]wFMCommunicate OK [12:42:17]SAM_PROTO_GetFieldsCounters done [12:42:17]requested_item shift.num is exist - process it [12:42:17]requested_item shift.opened is exist - process it [12:42:17]req_shift_opened [12:42:17]FM_GetShiftState [12:42:17]SAM_PROTO_GetShiftState [12:42:17]wFMCommunicate request_size=4 [12:42:17]MH_SAM_APDU [12:42:17]CAPDU: 80 13 01 00 [12:42:17]Write to MH i2c: E2 08 00 BE 37 80 13 01 00 00 00 00 00 72 [12:42:17]Write i2c OK [12:42:17]MH_I2C_Read... [12:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:17]Read from MH i2c: E2 [12:42:17]MH_I2C_Read... [12:42:17]Read from MH i2c: E2 0E 00 [12:42:17]MH_I2C_Read... [12:42:17]Read from MH i2c: E2 0E 00 BE 37 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 E3 [12:42:17]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:42:17]wFMCommunicate OK [12:42:17]SAM_PROTO_GetShiftState done [12:42:17]FM_GetShiftState done [12:42:17]req_shift_opened done [12:42:17]requested_item shift.open_date is exist - process it [12:42:17]req_shift_open_date [12:42:17]req_shift_open_date done [12:42:17]produce_requested_data done [12:42:17]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22112,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [12:42:17]process_action_free close_receipt [12:42:17]json_value_free [12:42:17]json_value_free done [12:42:17]process_json_proto returns [12:42:17]Send response to host [12:42:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22112,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [12:42:17]free response buf [12:42:17]execute_script done [12:42:17]execute_script returns [12:42:17]free content buf [12:42:17]Sock 8.Close socket [12:42:17]Sock 8.Thread stoped [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:37]accept exits with 9 [12:43:37]New connection [12:43:37]New thread 3067321700 created [12:43:37]Thread 3067178340 joined [12:43:37]Waiting for new connection... [12:43:37] Sock 9.Parse request [12:43:37]Sock 9.Check first char [12:43:37]Sock 9.First char is OK [12:43:37]request: POST /json_proto HTTP/1.0 [12:43:37]Method: POST [12:43:37]URL: /json_proto [12:43:37]Method is POST - this is cgi request [12:43:37]url: /json_proto [12:43:37]query_string will be loaded in cgi processing [12:43:37]execute_cgi json_proto POST (null) [12:43:37]execute_cgi path=json_proto method=POST [12:43:37]POST find Content-Length [12:43:37]Host: 172.17.35.133:8080 [12:43:37]Content-Length: 646 [12:43:37]Content-Type: application/json [12:43:37] [12:43:37]POST finish read [12:43:37]Found Content-Length = 646 [12:43:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254336", "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" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:37]execute_script... [12:43:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254336", "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" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:37]POST & json_proto [12:43:37]process_json_proto [12:43:37]json parsed OK: [12:43:37]protocol is kg_v1.0 [12:43:37]action value=close_receipt [12:43:37]process_action close_receipt [12:43:37]cmd_close_receipt [12:43:37]MH_GetDate [12:43:37]Write to MH i2c: F0 00 00 BF 37 E5 [12:43:37]Write i2c OK [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: F0 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: F0 09 00 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: F0 09 00 BF 37 00 07 3B 6C 66 8C 55 28 65 70 [12:43:37]GetLastDocTimeStamp 1718368947 [12:43:37]current date 1718369031 [12:43:37]FM_GetShiftState [12:43:37]SAM_PROTO_GetShiftState [12:43:37]wFMCommunicate request_size=4 [12:43:37]MH_SAM_APDU [12:43:37]CAPDU: 80 13 01 00 [12:43:37]Write to MH i2c: E2 08 00 C0 37 80 13 01 00 00 00 00 00 74 [12:43:37]Write i2c OK [12:43:37]MH_I2C_Read... [12:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:37]Read from MH i2c: E2 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: E2 0E 00 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: E2 0E 00 C0 37 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 E5 [12:43:37]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:43:37]wFMCommunicate OK [12:43:37]SAM_PROTO_GetShiftState done [12:43:37]FM_GetShiftState done [12:43:37]opened in 1718324742 [12:43:37]opened+sec_in_day 1718411142 [12:43:37]quantity*price = 25000 [12:43:37]sum+1 = 25001 [12:43:37]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 250.00 袧小袩 1% : 2.21 袧袛小 12% : 26.55 袧邪谢懈褔薪褘屑懈: 250.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 27 14.06.2024 12:43 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22113 肖袩袛: 220581434118081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T124351&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22113&fm=220581434118081&tin=02508201610067®Number=0000000000099755&sum=25000 0 [12:43:38]StoreToDocumentArchive [12:43:38]shift 325 fd 22113 [12:43:38]save to /storage/0325/doc_00022113 [12:43:38]save last doc name /storage/0325/doc_00022113 to /storage/kkm_last_doc_name [12:43:38]save OK [12:43:38]Clear old archive folders... [12:43:38]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:43:38]tlvbuf is B6FB2600 [12:43:38]SAM_PROTO_ClearQueue [12:43:38]wFMCommunicate request_size=4 [12:43:38]MH_SAM_APDU [12:43:38]CAPDU: 80 09 00 00 [12:43:38]Write to MH i2c: E2 08 00 CD 37 80 09 00 00 00 00 00 00 76 [12:43:38]Write i2c OK [12:43:38]MH_I2C_Read... [12:43:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:38]Read from MH i2c: E2 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 03 00 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 03 00 CD 37 00 90 00 78 [12:43:38]RAPDU: 90 00 [12:43:38]wFMCommunicate OK [12:43:38]SAM_PROTO_ClearQueue done [12:43:38]KKMCreateOFDPacket [12:43:38]OFDProtocolAddRootSTLVToBuf [12:43:38]FM_MakeSignedData [12:43:38]FM_MakeSignedData [12:43:38]SAM_PROTO_SignData [12:43:38]wFMCommunicate request_size=4 [12:43:38]MH_SAM_APDU [12:43:38]CAPDU: 80 0D 01 02 [12:43:38]Write to MH i2c: E2 08 00 CE 37 80 0D 01 02 00 00 00 00 7E [12:43:38]Write i2c OK [12:43:38]MH_I2C_Read... [12:43:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:38]Read from MH i2c: E2 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 03 00 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 03 00 CE 37 00 90 00 79 [12:43:38]RAPDU: 90 00 [12:43:38]wFMCommunicate OK [12:43:38]wFMCommunicate request_size=255 [12:43:38]MH_SAM_APDU [12:43:38]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 07 3B 6C 66 0E 04 04 00 45 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 [12:43:38]Write to MH i2c: E2 02 01 CF 37 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 07 3B 6C 66 0E 04 04 00 45 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 99 [12:43:38]Write i2c OK [12:43:38]MH_I2C_Read... [12:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:38]Read from MH i2c: E2 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 03 00 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 03 00 CF 37 00 90 00 7A [12:43:38]RAPDU: 90 00 [12:43:38]wFMCommunicate OK [12:43:38]wFMCommunicate request_size=41 [12:43:38]MH_SAM_APDU [12:43:38]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 61 56 00 00 35 04 06 00 C8 9E 1E 06 4F C1 [12:43:38]Write to MH i2c: E2 2C 00 D0 37 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 61 56 00 00 35 04 06 00 C8 9E 1E 06 4F C1 00 00 A0 [12:43:38]Write i2c OK [12:43:38]MH_I2C_Read... [12:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:38]Read from MH i2c: E2 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 03 00 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 03 00 D0 37 00 90 00 7B [12:43:38]RAPDU: 90 00 [12:43:38]wFMCommunicate OK [12:43:38]wFMCommunicate request_size=4 [12:43:38]MH_SAM_APDU [12:43:38]CAPDU: 80 0D 03 02 [12:43:38]Write to MH i2c: E2 08 00 D1 37 80 0D 03 02 00 00 00 00 83 [12:43:38]Write i2c OK [12:43:38]MH_I2C_Read... [12:43:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:38]Read from MH i2c: E2 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 0B 00 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 0B 00 D1 37 00 1D DA 49 D3 76 3C B2 86 90 00 81 [12:43:38]RAPDU: 1D DA 49 D3 76 3C B2 86 90 00 [12:43:38]wFMCommunicate OK [12:43:38]SAM_PROTO_SignData done [12:43:38]FM_MakeSignedData done [12:43:38]CreateOFDProtocolMessage [12:43:38]wFMCommunicate request_size=4 [12:43:38]MH_SAM_APDU [12:43:38]CAPDU: 80 11 00 00 [12:43:38]Write to MH i2c: E2 08 00 D2 37 80 11 00 00 00 00 00 00 83 [12:43:38]Write i2c OK [12:43:38]MH_I2C_Read... [12:43:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:38]Read from MH i2c: E2 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 17 00 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 17 00 D2 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 D5 [12:43: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:43:38]wFMCommunicate OK [12:43:38]CreateOFDProtocolMessage done [12:43:38]OFDSenderStorePacket 22113 [12:43:38]StoreOFDPacket docnum=22113 [12:43:38]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 60 0A 26 01 BB 62 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 07 3B 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 C8 9E 1E 06 4F C1 1D DA 49 D3 76 3C B2 86 [12:43:38]CheckFolder [12:43:38]dirname=/storage/ofd_packets [12:43:38]CheckFolder done [12:43:38]ProducePacketName [12:43:38]name=ofd_packets/00022113 [12:43:38]NVStorageSaveData ofd_packets/00022113 [12:43:38]File name is /storage/ofd_packets/00022113 [12:43:38]Write 332 bytes [12:43:38]NVStorageSaveData done [12:43:38]OFDSenderStorePacket done [12:43:38]KKMCreateOFDPacket done [12:43:38]NVStorageSaveData kkm_last_timestamp [12:43:38]File name is /storage/kkm_last_timestamp [12:43:38]Write 4 bytes [12:43:38]NVStorageSaveData done [12:43:38]ExternCall_PrintAddStr [12:43:38]wPrintStart [12:43:38]Write to MH i2c: 01 00 00 D3 37 0A [12:43:38]Write i2c OK [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: 01 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: 01 07 00 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: 01 07 00 D3 37 00 00 00 00 00 FF 0F 1F [12:43:38]RasterBufferAndPrint [12:43:38]line 小褔械褌 N : (3)254336 [12:43:38]line 袠袧袧: 02508201610067 [12:43:38]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [12:43:38]line 袩袪袨袛袗袞袗 [12:43:38]line 孝芯胁邪褉: 2000036220012 [12:43:38]line 袣芯褎械 袣邪锌褍褔懈薪芯 XL(GABB TRADE) [12:43:38]line 2.000 * 125.00 [12:43:38]line = 250.00 [12:43:38]line 袧袛小 12% 袧小袩 1% [12:43:38]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [12:43:38]line 袠孝袨袚袨: 250.00 [12:43:38]line 袧小袩 1% : 2.21 [12:43:38]line 袧袛小 12% : 26.55 [12:43:38]line 袧邪谢懈褔薪褘屑懈: 250.00 [12:43:38]line 袘械蟹薪邪谢.: 0.00 [12:43:38]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [12:43:38]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [12:43:38]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [12:43:38]line 效械泻 27 14.06.2024 12:43 [12:43:38]line 小屑械薪邪: 325 肖肖袛: 1.0 [12:43:38]line 袟袧袦: 0300000200 [12:43:38]line 袪袧袦: 0000000000099755 [12:43:38]line 袙械褉褋懈褟 袣袣袦: 001 [12:43:38]line 肖袦: 0000000000965344 [12:43:38]line 肖袛: 22113 [12:43:38]line 肖袩袛: 220581434118081 [12:43:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T124351&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22113&fm=220581434118081&tin=02508201610067®Number=0000000000099755&sum=25000 [12:43:38]line 0 [12:43:38]written 0, free lines is 4095 [12:43:38]OFD Sender: Processing packet 22113 [packets to send 5, broken 4] [12:43:38]ProducePacketName [12:43:38]name=ofd_packets/00022113 [12:43:38]OFD Sender: To server: 嚂鰌G, [12:43:38]CommunicateWithHost lk.salyk.kg:30040 [12:43:38]ConnectInit lk.salyk.kg [12:43:38]Connected sock=10 [12:43:38]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 60 0A 26 01 BB 62 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 07 3B 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 C8 9E 1E 06 4F C1 1D DA 49 D3 76 3C B2 86 [12:43:39]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 80 25 47 00 B4 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 61 56 00 00 F4 03 04 00 C7 E3 6B 66 B6 04 01 00 00 93 5B 07 01 A4 C4 45 A0 [12:43:39]CommunicateWithHost err = 0 [12:43:39]CheckOFDResponse [12:43:39]1017 (14) - 77093643461234 [12:43:39]1041 (16) - 0000000000965344 [12:43:39]1040 (4) - 22113 [12:43:39]1012 (4) - 14.06.2024 06:31 [12:43:39]1206 (1) - 0 [12:43:39]OFD Sender: Remove packet 22113 [12:43:39]ProducePacketName [12:43:39]name=ofd_packets/00022113 [12:43:39]NVStorageDeleteData [12:43:39]Write to MH i2c: 01 00 00 FC 37 33 [12:43:39]Write i2c OK [12:43:39]MH_I2C_Read... [12:43:39]Read from MH i2c: 01 [12:43:39]MH_I2C_Read... [12:43:39]Read from MH i2c: 01 07 00 [12:43:39]MH_I2C_Read... [12:43:39]Read from MH i2c: 01 07 00 FC 37 00 00 00 00 00 0F 0D 56 [12:43:39]RasterBufferAndPrint [12:43:39]line [12:43:39]line [12:43:39]line [12:43:39]line [12:43:39]line [12:43:39]written 0, free lines is 3349 [12:43:39]MH_Cut [12:43:39]Write to MH i2c: D1 01 00 03 38 01 0D [12:43:39]Write i2c OK [12:43:39]MH_I2C_Read... [12:43:39]Read from MH i2c: D1 [12:43:39]MH_I2C_Read... [12:43:39]Read from MH i2c: D1 01 00 [12:43:39]MH_I2C_Read... [12:43:39]Read from MH i2c: D1 01 00 03 38 00 0C [12:43:39]Write to MH i2c: 01 00 00 04 38 3C [12:43:39]Write i2c OK [12:43:39]MH_I2C_Read... [12:43:39]OFD Sender: No OFD packet to send [12:43:39]*** Cut start [12:43:39]*** Partial cut [12:43:39]*** CUTSNS_PIN = 1 [12:43:39]*** CUTSNS_PIN = 0 [12:43:40]*** Brake cut motor [12:43:40]Read from MH i2c: 01 [12:43:40]MH_I2C_Read... [12:43:40]*** Stop cut motor [12:43:40]*** Cut end [12:43:40]Read from MH i2c: 01 07 00 [12:43:40]MH_I2C_Read... [12:43:40]Read from MH i2c: 01 07 00 04 38 00 00 00 00 00 FF 0F 51 [12:43:40]process_action close_receipt done [12:43:40]requested_data is exist [12:43:40]produce_requested_data [12:43:40]requested_item fm.sn is exist - process it [12:43:40]wFMCommunicate request_size=4 [12:43:40]MH_SAM_APDU [12:43:40]CAPDU: 80 11 00 00 [12:43:40]Write to MH i2c: E2 08 00 05 38 80 11 00 00 00 00 00 00 B7 [12:43:40]Write i2c OK [12:43:40]MH_I2C_Read... [12:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:40]Read from MH i2c: E2 [12:43:40]MH_I2C_Read... [12:43:40]Read from MH i2c: E2 17 00 [12:43:40]MH_I2C_Read... [12:43:40]Read from MH i2c: E2 17 00 05 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 09 [12:43:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:43:40]wFMCommunicate OK [12:43:40]requested_item fd.num is exist - process it [12:43:40]SAM_PROTO_GetFieldsCounters [12:43:40]wFMCommunicate request_size=4 [12:43:40]MH_SAM_APDU [12:43:40]CAPDU: 80 13 00 00 [12:43:40]Write to MH i2c: E2 08 00 06 38 80 13 00 00 00 00 00 00 BA [12:43:40]Write i2c OK [12:43:40]MH_I2C_Read... [12:43:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:40]Read from MH i2c: E2 [12:43:40]MH_I2C_Read... [12:43:40]Read from MH i2c: E2 62 00 [12:43:40]MH_I2C_Read... [12:43:40]Read from MH i2c: E2 62 00 06 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 61 56 00 00 0E 04 04 00 45 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 32 [12:43:40]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 56 00 00 0E 04 04 00 45 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 [12:43:40]wFMCommunicate OK [12:43:40]SAM_PROTO_GetFieldsCounters done [12:43:40]requested_item shift.num is exist - process it [12:43:40]requested_item shift.opened is exist - process it [12:43:40]req_shift_opened [12:43:40]FM_GetShiftState [12:43:40]SAM_PROTO_GetShiftState [12:43:40]wFMCommunicate request_size=4 [12:43:40]MH_SAM_APDU [12:43:40]CAPDU: 80 13 01 00 [12:43:40]Write to MH i2c: E2 08 00 07 38 80 13 01 00 00 00 00 00 BC [12:43:40]Write i2c OK [12:43:40]MH_I2C_Read... [12:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:40]Read from MH i2c: E2 [12:43:40]MH_I2C_Read... [12:43:40]Read from MH i2c: E2 0E 00 [12:43:40]MH_I2C_Read... [12:43:40]Read from MH i2c: E2 0E 00 07 38 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 2D [12:43:40]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:43:40]wFMCommunicate OK [12:43:40]SAM_PROTO_GetShiftState done [12:43:40]FM_GetShiftState done [12:43:40]req_shift_opened done [12:43:40]requested_item shift.open_date is exist - process it [12:43:40]req_shift_open_date [12:43:40]req_shift_open_date done [12:43:40]produce_requested_data done [12:43:40]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22113,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [12:43:40]process_action_free close_receipt [12:43:40]json_value_free [12:43:40]json_value_free done [12:43:40]process_json_proto returns [12:43:40]Send response to host [12:43:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22113,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [12:43:40]free response buf [12:43:40]execute_script done [12:43:40]execute_script returns [12:43:40]free content buf [12:43:40]Sock 9.Close socket [12:43:40]Sock 9.Thread stoped [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:09]OFD Sender: No OFD packet to send [12:44:14]OFD Sender: No OFD packet to send [12:44:19]OFD Sender: No OFD packet to send [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:03]accept exits with 8 [12:45:03]New connection [12:45:03]New thread 3067178340 created [12:45:03]Thread 3067321700 joined [12:45:03]Waiting for new connection... [12:45:03] Sock 8.Parse request [12:45:03]Sock 8.Check first char [12:45:03]Sock 8.First char is OK [12:45:03]request: POST /json_proto HTTP/1.0 [12:45:03]Method: POST [12:45:03]URL: /json_proto [12:45:03]Method is POST - this is cgi request [12:45:03]url: /json_proto [12:45:03]query_string will be loaded in cgi processing [12:45:03]execute_cgi json_proto POST (null) [12:45:03]execute_cgi path=json_proto method=POST [12:45:03]POST find Content-Length [12:45:03]Host: 172.17.35.133:8080 [12:45:03]Content-Length: 632 [12:45:03]Content-Type: application/json [12:45:03] [12:45:03]POST finish read [12:45:03]Found Content-Length = 632 [12:45:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254337", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:03]execute_script... [12:45: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)254337", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:03]POST & json_proto [12:45:03]process_json_proto [12:45:03]json parsed OK: [12:45:03]protocol is kg_v1.0 [12:45:03]action value=close_receipt [12:45:03]process_action close_receipt [12:45:03]cmd_close_receipt [12:45:03]MH_GetDate [12:45:03]Write to MH i2c: F0 00 00 08 38 2F [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: F0 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: F0 09 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: F0 09 00 08 38 00 5D 3B 6C 66 8C 55 28 65 10 [12:45:03]GetLastDocTimeStamp 1718369031 [12:45:03]current date 1718369117 [12:45:03]FM_GetShiftState [12:45:03]SAM_PROTO_GetShiftState [12:45:03]wFMCommunicate request_size=4 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 13 01 00 [12:45:03]Write to MH i2c: E2 08 00 09 38 80 13 01 00 00 00 00 00 BE [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 0E 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 0E 00 09 38 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 2F [12:45:03]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:45:03]wFMCommunicate OK [12:45:03]SAM_PROTO_GetShiftState done [12:45:03]FM_GetShiftState done [12:45:03]opened in 1718324742 [12:45:03]opened+sec_in_day 1718411142 [12:45:03]quantity*price = 6000 [12:45:03]sum+1 = 6001 [12:45:03]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 60.00 袧小袩 1% : 0.53 袧袛小 12% : 6.37 袧邪谢懈褔薪褘屑懈: 60.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 28 14.06.2024 12:45 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22114 肖袩袛: 242608274992698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T124517&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22114&fm=242608274992698&tin=02508201610067®Number=0000000000099755&sum=6000 0 [12:45:04]StoreToDocumentArchive [12:45:04]shift 325 fd 22114 [12:45:04]save to /storage/0325/doc_00022114 [12:45:04]save last doc name /storage/0325/doc_00022114 to /storage/kkm_last_doc_name [12:45:04]save OK [12:45:04]Clear old archive folders... [12:45:04]ProcessDocumentItem done err = 0, tmpTLVsize=271 [12:45:04]tlvbuf is 0022EFF0 [12:45:04]SAM_PROTO_ClearQueue [12:45:04]wFMCommunicate request_size=4 [12:45:04]MH_SAM_APDU [12:45:04]CAPDU: 80 09 00 00 [12:45:04]Write to MH i2c: E2 08 00 16 38 80 09 00 00 00 00 00 00 C0 [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:04]Read from MH i2c: E2 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 16 38 00 90 00 C2 [12:45:04]RAPDU: 90 00 [12:45:04]wFMCommunicate OK [12:45:04]SAM_PROTO_ClearQueue done [12:45:04]KKMCreateOFDPacket [12:45:04]OFDProtocolAddRootSTLVToBuf [12:45:04]FM_MakeSignedData [12:45:04]FM_MakeSignedData [12:45:04]SAM_PROTO_SignData [12:45:04]wFMCommunicate request_size=4 [12:45:04]MH_SAM_APDU [12:45:04]CAPDU: 80 0D 01 02 [12:45:04]Write to MH i2c: E2 08 00 17 38 80 0D 01 02 00 00 00 00 C8 [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:04]Read from MH i2c: E2 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 17 38 00 90 00 C3 [12:45:04]RAPDU: 90 00 [12:45:04]wFMCommunicate OK [12:45:04]wFMCommunicate request_size=255 [12:45:04]MH_SAM_APDU [12:45:04]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 5D 3B 6C 66 0E 04 04 00 45 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 [12:45:04]Write to MH i2c: E2 02 01 18 38 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 5D 3B 6C 66 0E 04 04 00 45 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 CD [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:04]Read from MH i2c: E2 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 18 38 00 90 00 C4 [12:45:04]RAPDU: 90 00 [12:45:04]wFMCommunicate OK [12:45:04]wFMCommunicate request_size=30 [12:45:04]MH_SAM_APDU [12:45:04]CAPDU: 80 0D 02 02 19 30 39 36 35 33 34 34 10 04 04 00 62 56 00 00 35 04 06 00 DC A6 A4 0C EE 3A [12:45:04]Write to MH i2c: E2 21 00 19 38 80 0D 02 02 19 00 30 39 36 35 33 34 34 10 04 04 00 62 56 00 00 35 04 06 00 DC A6 A4 0C EE 3A 00 00 D5 [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:04]Read from MH i2c: E2 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 19 38 00 90 00 C5 [12:45:04]RAPDU: 90 00 [12:45:04]wFMCommunicate OK [12:45:04]wFMCommunicate request_size=4 [12:45:04]MH_SAM_APDU [12:45:04]CAPDU: 80 0D 03 02 [12:45:04]Write to MH i2c: E2 08 00 1A 38 80 0D 03 02 00 00 00 00 CD [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:04]Read from MH i2c: E2 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 0B 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 0B 00 1A 38 00 45 36 2F 4A B3 14 92 D3 90 00 EE [12:45:04]RAPDU: 45 36 2F 4A B3 14 92 D3 90 00 [12:45:04]wFMCommunicate OK [12:45:04]SAM_PROTO_SignData done [12:45:04]FM_MakeSignedData done [12:45:04]CreateOFDProtocolMessage [12:45:04]wFMCommunicate request_size=4 [12:45:04]MH_SAM_APDU [12:45:04]CAPDU: 80 11 00 00 [12:45:04]Write to MH i2c: E2 08 00 1B 38 80 11 00 00 00 00 00 00 CD [12:45:04]OFD Sender: No OFD packet to send [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:04]Read from MH i2c: E2 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 17 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 17 00 1B 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 1F [12:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:45:04]wFMCommunicate OK [12:45:04]CreateOFDProtocolMessage done [12:45:04]OFDSenderStorePacket 22114 [12:45:04]StoreOFDPacket docnum=22114 [12:45: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 23 01 00 00 AA EA 1B 01 97 98 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 5D 3B 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 DC A6 A4 0C EE 3A 45 36 2F 4A B3 14 92 D3 [12:45:04]CheckFolder [12:45:04]dirname=/storage/ofd_packets [12:45:04]CheckFolder done [12:45:04]ProducePacketName [12:45:04]name=ofd_packets/00022114 [12:45:04]NVStorageSaveData ofd_packets/00022114 [12:45:04]File name is /storage/ofd_packets/00022114 [12:45:04]Write 321 bytes [12:45:04]NVStorageSaveData done [12:45:04]OFDSenderStorePacket done [12:45:04]KKMCreateOFDPacket done [12:45:04]NVStorageSaveData kkm_last_timestamp [12:45:04]File name is /storage/kkm_last_timestamp [12:45:04]Write 4 bytes [12:45:04]NVStorageSaveData done [12:45:04]ExternCall_PrintAddStr [12:45:04]wPrintStart [12:45:04]Write to MH i2c: 01 00 00 1C 38 54 [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: 01 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: 01 07 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: 01 07 00 1C 38 00 00 00 00 00 FF 0F 69 [12:45:04]RasterBufferAndPrint [12:45:04]line 小褔械褌 N : (3)254337 [12:45:04]line 袠袧袧: 02508201610067 [12:45:04]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [12:45:04]line 袩袪袨袛袗袞袗 [12:45:04]line 孝芯胁邪褉: 4700000160204 [12:45:04]line 袙芯写邪 袥械谐械薪写邪 1,5谢 [12:45:04]line 1.000 * 60.00 [12:45:04]line = 60.00 [12:45:04]line 袧袛小 12% 袧小袩 1% [12:45:04]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [12:45:04]line 袠孝袨袚袨: 60.00 [12:45:04]line 袧小袩 1% : 0.53 [12:45:04]line 袧袛小 12% : 6.37 [12:45:04]line 袧邪谢懈褔薪褘屑懈: 60.00 [12:45:04]line 袘械蟹薪邪谢.: 0.00 [12:45:04]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [12:45:04]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [12:45:04]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [12:45:04]line 效械泻 28 14.06.2024 12:45 [12:45:04]line 小屑械薪邪: 325 肖肖袛: 1.0 [12:45:04]line 袟袧袦: 0300000200 [12:45:04]line 袪袧袦: 0000000000099755 [12:45:04]line 袙械褉褋懈褟 袣袣袦: 001 [12:45:04]line 肖袦: 0000000000965344 [12:45:04]line 肖袛: 22114 [12:45:04]line 肖袩袛: 242608274992698 [12:45:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T124517&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22114&fm=242608274992698&tin=02508201610067®Number=0000000000099755&sum=6000 [12:45:04]line 0 [12:45:04]written 0, free lines is 4095 [12:45:04]OFD Sender: Processing packet 22114 [packets to send 5, broken 4] [12:45:04]ProducePacketName [12:45:04]name=ofd_packets/00022114 [12:45:04]OFD Sender: To server: 嚂鰌G, [12:45:04]CommunicateWithHost lk.salyk.kg:30040 [12:45:04]ConnectInit lk.salyk.kg [12:45:04]Connected sock=10 [12:45: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 23 01 00 00 AA EA 1B 01 97 98 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 5D 3B 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 DC A6 A4 0C EE 3A 45 36 2F 4A B3 14 92 D3 [12:45: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 41 F5 47 00 38 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 62 56 00 00 F4 03 04 00 1D E4 6B 66 B6 04 01 00 00 D8 00 DC 08 07 13 78 F9 [12:45:05]CommunicateWithHost err = 0 [12:45:05]CheckOFDResponse [12:45:05]1017 (14) - 77093643461234 [12:45:05]1041 (16) - 0000000000965344 [12:45:05]1040 (4) - 22114 [12:45:05]1012 (4) - 14.06.2024 06:33 [12:45:05]1206 (1) - 0 [12:45:05]OFD Sender: Remove packet 22114 [12:45:05]ProducePacketName [12:45:05]name=ofd_packets/00022114 [12:45:05]NVStorageDeleteData [12:45:05]Write to MH i2c: 01 00 00 44 38 7C [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: 01 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: 01 07 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: 01 07 00 44 38 00 00 00 00 00 22 0D B2 [12:45:05]RasterBufferAndPrint [12:45:05]line [12:45:05]line [12:45:05]line [12:45:05]line [12:45:05]line [12:45:05]written 0, free lines is 3371 [12:45:05]MH_Cut [12:45:05]Write to MH i2c: D1 01 00 4B 38 01 55 [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: D1 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: D1 01 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: D1 01 00 4B 38 00 54 [12:45:05]Write to MH i2c: 01 00 00 4C 38 84 [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]OFD Sender: No OFD packet to send [12:45:05]*** Cut start [12:45:05]*** Partial cut [12:45:05]*** CUTSNS_PIN = 1 [12:45:05]*** CUTSNS_PIN = 0 [12:45:06]*** Brake cut motor [12:45:06]Read from MH i2c: 01 [12:45:06]MH_I2C_Read... [12:45:06]*** Stop cut motor [12:45:06]*** Cut end [12:45:06]Read from MH i2c: 01 07 00 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: 01 07 00 4C 38 00 00 00 00 00 FF 0F 99 [12:45:06]process_action close_receipt done [12:45:06]requested_data is exist [12:45:06]produce_requested_data [12:45:06]requested_item fm.sn is exist - process it [12:45:06]wFMCommunicate request_size=4 [12:45:06]MH_SAM_APDU [12:45:06]CAPDU: 80 11 00 00 [12:45:06]Write to MH i2c: E2 08 00 4D 38 80 11 00 00 00 00 00 00 FF [12:45:06]Write i2c OK [12:45:06]MH_I2C_Read... [12:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:06]Read from MH i2c: E2 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: E2 17 00 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: E2 17 00 4D 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 51 [12:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:45:06]wFMCommunicate OK [12:45:06]requested_item fd.num is exist - process it [12:45:06]SAM_PROTO_GetFieldsCounters [12:45:06]wFMCommunicate request_size=4 [12:45:06]MH_SAM_APDU [12:45:06]CAPDU: 80 13 00 00 [12:45:06]Write to MH i2c: E2 08 00 4E 38 80 13 00 00 00 00 00 00 02 [12:45:06]Write i2c OK [12:45:06]MH_I2C_Read... [12:45:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:06]Read from MH i2c: E2 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: E2 62 00 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: E2 62 00 4E 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 62 56 00 00 0E 04 04 00 45 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 7E [12:45: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 62 56 00 00 0E 04 04 00 45 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 [12:45:06]wFMCommunicate OK [12:45:06]SAM_PROTO_GetFieldsCounters done [12:45:06]requested_item shift.num is exist - process it [12:45:06]requested_item shift.opened is exist - process it [12:45:06]req_shift_opened [12:45:06]FM_GetShiftState [12:45:06]SAM_PROTO_GetShiftState [12:45:06]wFMCommunicate request_size=4 [12:45:06]MH_SAM_APDU [12:45:06]CAPDU: 80 13 01 00 [12:45:06]Write to MH i2c: E2 08 00 4F 38 80 13 01 00 00 00 00 00 04 [12:45:06]Write i2c OK [12:45:06]MH_I2C_Read... [12:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:06]Read from MH i2c: E2 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: E2 0E 00 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: E2 0E 00 4F 38 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 75 [12:45:06]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:45:06]wFMCommunicate OK [12:45:06]SAM_PROTO_GetShiftState done [12:45:06]FM_GetShiftState done [12:45:06]req_shift_opened done [12:45:06]requested_item shift.open_date is exist - process it [12:45:06]req_shift_open_date [12:45:06]req_shift_open_date done [12:45:06]produce_requested_data done [12:45:06]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22114,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [12:45:06]process_action_free close_receipt [12:45:06]json_value_free [12:45:06]json_value_free done [12:45:06]process_json_proto returns [12:45:06]Send response to host [12:45:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22114,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [12:45:06]free response buf [12:45:06]execute_script done [12:45:06]execute_script returns [12:45:06]free content buf [12:45:06]Sock 8.Close socket [12:45:06]Sock 8.Thread stoped [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]accept exits with 9 [12:49:00]New connection [12:49:00]New thread 3067321700 created [12:49:00]Thread 3067178340 joined [12:49:00]Waiting for new connection... [12:49:00] Sock 9.Parse request [12:49:00]Sock 9.Check first char [12:49:00]Sock 9.First char is OK [12:49:00]request: POST /json_proto HTTP/1.0 [12:49:00]Method: POST [12:49:00]URL: /json_proto [12:49:00]Method is POST - this is cgi request [12:49:00]url: /json_proto [12:49:00]query_string will be loaded in cgi processing [12:49:00]execute_cgi json_proto POST (null) [12:49:00]execute_cgi path=json_proto method=POST [12:49:00]POST find Content-Length [12:49:00]Host: 172.17.35.133:8080 [12:49:00]Content-Length: 894 [12:49:00]Content-Type: application/json [12:49:00] [12:49:00]POST finish read [12:49:00]Found Content-Length = 894 [12:49:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254338", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 257.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:00]execute_script... [12:49:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254338", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 257.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:00]POST & json_proto [12:49:00]process_json_proto [12:49:00]json parsed OK: [12:49:00]protocol is kg_v1.0 [12:49:00]action value=close_receipt [12:49:00]process_action close_receipt [12:49:00]cmd_close_receipt [12:49:00]MH_GetDate [12:49:00]Write to MH i2c: F0 00 00 50 38 77 [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: F0 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: F0 09 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: F0 09 00 50 38 00 4A 3C 6C 66 8C 55 28 65 46 [12:49:00]GetLastDocTimeStamp 1718369117 [12:49:00]current date 1718369354 [12:49:00]FM_GetShiftState [12:49:00]SAM_PROTO_GetShiftState [12:49:00]wFMCommunicate request_size=4 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 13 01 00 [12:49:00]Write to MH i2c: E2 08 00 51 38 80 13 01 00 00 00 00 00 06 [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 0E 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 0E 00 51 38 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 77 [12:49:00]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:49:00]wFMCommunicate OK [12:49:00]SAM_PROTO_GetShiftState done [12:49:00]FM_GetShiftState done [12:49:00]opened in 1718324742 [12:49:00]opened+sec_in_day 1718411142 [12:49:00]quantity*price = 10000 [12:49:00]sum+1 = 10001 [12:49:00]Check (price>sum+1) || (price+1sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 90162602 协薪械褉谐 薪邪锌懈褌芯泻 Red bull 0,25谢 1.000 * 157.00 = 157.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 257.00 袧小袩 1% : 2.27 袧袛小 12% : 27.29 袧邪谢懈褔薪褘屑懈: 257.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 29 14.06.2024 12:49 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22115 肖袩袛: 126299817681844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T124914&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22115&fm=126299817681844&tin=02508201610067®Number=0000000000099755&sum=25700 0 [12:49:01]StoreToDocumentArchive [12:49:01]shift 325 fd 22115 [12:49:01]save to /storage/0325/doc_00022115 [12:49:01]save last doc name /storage/0325/doc_00022115 to /storage/kkm_last_doc_name [12:49:01]save OK [12:49:01]Clear old archive folders... [12:49:01]ProcessDocumentItem done err = 0, tmpTLVsize=377 [12:49:01]tlvbuf is B6E02A00 [12:49:01]SAM_PROTO_ClearQueue [12:49:01]wFMCommunicate request_size=4 [12:49:01]MH_SAM_APDU [12:49:01]CAPDU: 80 09 00 00 [12:49:01]Write to MH i2c: E2 08 00 5E 38 80 09 00 00 00 00 00 00 08 [12:49:01]Write i2c OK [12:49:01]MH_I2C_Read... [12:49:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:01]Read from MH i2c: E2 [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: E2 03 00 [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: E2 03 00 5E 38 00 90 00 0A [12:49:01]RAPDU: 90 00 [12:49:01]wFMCommunicate OK [12:49:01]SAM_PROTO_ClearQueue done [12:49:01]KKMCreateOFDPacket [12:49:01]OFDProtocolAddRootSTLVToBuf [12:49:01]FM_MakeSignedData [12:49:01]FM_MakeSignedData [12:49:01]SAM_PROTO_SignData [12:49:01]wFMCommunicate request_size=4 [12:49:01]MH_SAM_APDU [12:49:01]CAPDU: 80 0D 01 02 [12:49:01]Write to MH i2c: E2 08 00 5F 38 80 0D 01 02 00 00 00 00 10 [12:49:01]Write i2c OK [12:49:01]MH_I2C_Read... [12:49:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:01]Read from MH i2c: E2 [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: E2 03 00 [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: E2 03 00 5F 38 00 90 00 0B [12:49:01]RAPDU: 90 00 [12:49:01]wFMCommunicate OK [12:49:01]wFMCommunicate request_size=255 [12:49:01]MH_SAM_APDU [12:49:01]CAPDU: 80 0D 02 02 FA 03 00 79 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE [12:49:01]Write to MH i2c: E2 02 01 60 38 80 0D 02 02 FA 00 03 00 79 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 00 00 17 [12:49:01]Write i2c OK [12:49:01]MH_I2C_Read... [12:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:01]Read from MH i2c: E2 [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: E2 03 00 [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: E2 03 00 60 38 00 90 00 0C [12:49:01]RAPDU: 90 00 [12:49:01]wFMCommunicate OK [12:49:01]wFMCommunicate request_size=136 [12:49:01]MH_SAM_APDU [12:49:01]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4A 3C 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 72 DE 77 C4 A3 B4 [12:49:01]Write to MH i2c: E2 8B 00 61 38 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4A 3C 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 72 DE 77 C4 A3 B4 00 00 32 [12:49:01]Write i2c OK [12:49:01]MH_I2C_Read... [12:49:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:02]Read from MH i2c: E2 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 03 00 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 03 00 61 38 00 90 00 0D [12:49:02]RAPDU: 90 00 [12:49:02]wFMCommunicate OK [12:49:02]wFMCommunicate request_size=4 [12:49:02]MH_SAM_APDU [12:49:02]CAPDU: 80 0D 03 02 [12:49:02]Write to MH i2c: E2 08 00 62 38 80 0D 03 02 00 00 00 00 15 [12:49:02]Write i2c OK [12:49:02]MH_I2C_Read... [12:49:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:02]Read from MH i2c: E2 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 0B 00 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 0B 00 62 38 00 5D B2 20 38 BC 03 C6 37 90 00 39 [12:49:02]RAPDU: 5D B2 20 38 BC 03 C6 37 90 00 [12:49:02]wFMCommunicate OK [12:49:02]SAM_PROTO_SignData done [12:49:02]FM_MakeSignedData done [12:49:02]CreateOFDProtocolMessage [12:49:02]wFMCommunicate request_size=4 [12:49:02]MH_SAM_APDU [12:49:02]CAPDU: 80 11 00 00 [12:49:02]Write to MH i2c: E2 08 00 63 38 80 11 00 00 00 00 00 00 15 [12:49:02]Write i2c OK [12:49:02]MH_I2C_Read... [12:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:02]Read from MH i2c: E2 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 17 00 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 17 00 63 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 67 [12:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:49:02]wFMCommunicate OK [12:49:02]CreateOFDProtocolMessage done [12:49:02]OFDSenderStorePacket 22115 [12:49:02]StoreOFDPacket docnum=22115 [12:49:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 8D 01 00 00 73 E3 85 01 E2 1A 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4A 3C 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 72 DE 77 C4 A3 B4 5D B2 20 38 BC 03 C6 37 [12:49:02]CheckFolder [12:49:02]dirname=/storage/ofd_packets [12:49:02]CheckFolder done [12:49:02]ProducePacketName [12:49:02]name=ofd_packets/00022115 [12:49:02]NVStorageSaveData ofd_packets/00022115 [12:49:02]File name is /storage/ofd_packets/00022115 [12:49:02]Write 427 bytes [12:49:02]NVStorageSaveData done [12:49:02]OFDSenderStorePacket done [12:49:02]KKMCreateOFDPacket done [12:49:02]NVStorageSaveData kkm_last_timestamp [12:49:02]File name is /storage/kkm_last_timestamp [12:49:02]Write 4 bytes [12:49:02]NVStorageSaveData done [12:49:02]ExternCall_PrintAddStr [12:49:02]wPrintStart [12:49:02]Write to MH i2c: 01 00 00 64 38 9C [12:49:02]Write i2c OK [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: 01 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: 01 07 00 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: 01 07 00 64 38 00 00 00 00 00 FF 0F B1 [12:49:02]RasterBufferAndPrint [12:49:02]line 小褔械褌 N : (3)254338 [12:49:02]line 袠袧袧: 02508201610067 [12:49:02]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [12:49:02]line 袩袪袨袛袗袞袗 [12:49:02]line 孝芯胁邪褉: 4700000160358 [12:49:02]line 袙芯写邪 袥械谐械薪写邪 1谢 [12:49:02]line 2.000 * 50.00 [12:49:02]line = 100.00 [12:49:02]line 袧袛小 12% 袧小袩 1% [12:49:02]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [12:49:02]line 孝芯胁邪褉: 90162602 [12:49:02]line 协薪械褉谐 薪邪锌懈褌芯泻 Red bull 0,25谢 [12:49:02]line 1.000 * 157.00 [12:49:02]line = 157.00 [12:49:02]line 袧袛小 12% 袧小袩 1% [12:49:02]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [12:49:02]line 袠孝袨袚袨: 257.00 [12:49:02]line 袧小袩 1% : 2.27 [12:49:02]line 袧袛小 12% : 27.29 [12:49:02]line 袧邪谢懈褔薪褘屑懈: 257.00 [12:49:02]line 袘械蟹薪邪谢.: 0.00 [12:49:02]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [12:49:02]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [12:49:02]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [12:49:02]line 效械泻 29 14.06.2024 12:49 [12:49:02]line 小屑械薪邪: 325 肖肖袛: 1.0 [12:49:02]line 袟袧袦: 0300000200 [12:49:02]line 袪袧袦: 0000000000099755 [12:49:02]line 袙械褉褋懈褟 袣袣袦: 001 [12:49:02]line 肖袦: 0000000000965344 [12:49:02]line 肖袛: 22115 [12:49:02]line 肖袩袛: 126299817681844 [12:49:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T124914&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22115&fm=126299817681844&tin=02508201610067®Number=0000000000099755&sum=25700 [12:49:02]line 0 [12:49:02]OFD Sender: Processing packet 22115 [packets to send 5, broken 4] [12:49:02]ProducePacketName [12:49:02]name=ofd_packets/00022115 [12:49:02]OFD Sender: To server: 嚂鰌G, [12:49:02]CommunicateWithHost lk.salyk.kg:30040 [12:49:02]ConnectInit lk.salyk.kg [12:49:02]written 0, free lines is 4095 [12:49:02]Connected sock=10 [12:49:02]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 8D 01 00 00 73 E3 85 01 E2 1A 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4A 3C 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 72 DE 77 C4 A3 B4 5D B2 20 38 BC 03 C6 37 [12:49: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 BB 1D 47 00 2E D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 63 56 00 00 F4 03 04 00 0A E5 6B 66 B6 04 01 00 00 F0 0D 23 9F 28 10 04 CE [12:49:02]CommunicateWithHost err = 0 [12:49:02]CheckOFDResponse [12:49:02]1017 (14) - 77093643461234 [12:49:02]1041 (16) - 0000000000965344 [12:49:02]1040 (4) - 22115 [12:49:02]1012 (4) - 14.06.2024 06:36 [12:49:02]1206 (1) - 0 [12:49:02]OFD Sender: Remove packet 22115 [12:49:02]ProducePacketName [12:49:02]name=ofd_packets/00022115 [12:49:02]NVStorageDeleteData [12:49:03]Write to MH i2c: 01 00 00 92 38 CA [12:49:03]Write i2c OK [12:49:03]MH_I2C_Read... [12:49:03]Read from MH i2c: 01 [12:49:03]MH_I2C_Read... [12:49:03]Read from MH i2c: 01 07 00 [12:49:03]MH_I2C_Read... [12:49:03]Read from MH i2c: 01 07 00 92 38 00 00 00 00 00 DC 0C B9 [12:49:03]RasterBufferAndPrint [12:49:03]line [12:49:03]line [12:49:03]line [12:49:03]line [12:49:03]line [12:49:03]written 0, free lines is 3300 [12:49:03]MH_Cut [12:49:03]Write to MH i2c: D1 01 00 99 38 01 A3 [12:49:03]Write i2c OK [12:49:03]MH_I2C_Read... [12:49:03]Read from MH i2c: D1 [12:49:03]MH_I2C_Read... [12:49:03]Read from MH i2c: D1 01 00 [12:49:03]MH_I2C_Read... [12:49:03]Read from MH i2c: D1 01 00 99 38 00 A2 [12:49:03]Write to MH i2c: 01 00 00 9A 38 D2 [12:49:03]Write i2c OK [12:49:03]MH_I2C_Read... [12:49:03]OFD Sender: No OFD packet to send [12:49:03]*** Cut start [12:49:03]*** Partial cut [12:49:03]*** CUTSNS_PIN = 1 [12:49:03]*** CUTSNS_PIN = 0 [12:49:03]*** Brake cut motor [12:49:04]Read from MH i2c: 01 [12:49:04]MH_I2C_Read... [12:49:04]*** Stop cut motor [12:49:04]*** Cut end [12:49:04]Read from MH i2c: 01 07 00 [12:49:04]MH_I2C_Read... [12:49:04]Read from MH i2c: 01 07 00 9A 38 00 00 00 00 00 FF 0F E7 [12:49:04]process_action close_receipt done [12:49:04]requested_data is exist [12:49:04]produce_requested_data [12:49:04]requested_item fm.sn is exist - process it [12:49:04]wFMCommunicate request_size=4 [12:49:04]MH_SAM_APDU [12:49:04]CAPDU: 80 11 00 00 [12:49:04]Write to MH i2c: E2 08 00 9B 38 80 11 00 00 00 00 00 00 4D [12:49:04]Write i2c OK [12:49:04]MH_I2C_Read... [12:49:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:04]Read from MH i2c: E2 [12:49:04]MH_I2C_Read... [12:49:04]Read from MH i2c: E2 17 00 [12:49:04]MH_I2C_Read... [12:49:04]Read from MH i2c: E2 17 00 9B 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 9F [12:49:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:49:04]wFMCommunicate OK [12:49:04]requested_item fd.num is exist - process it [12:49:04]SAM_PROTO_GetFieldsCounters [12:49:04]wFMCommunicate request_size=4 [12:49:04]MH_SAM_APDU [12:49:04]CAPDU: 80 13 00 00 [12:49:04]Write to MH i2c: E2 08 00 9C 38 80 13 00 00 00 00 00 00 50 [12:49:04]Write i2c OK [12:49:04]MH_I2C_Read... [12:49:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:04]Read from MH i2c: E2 [12:49:04]MH_I2C_Read... [12:49:04]Read from MH i2c: E2 62 00 [12:49:04]MH_I2C_Read... [12:49:04]Read from MH i2c: E2 62 00 9C 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 63 56 00 00 0E 04 04 00 45 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 D0 [12:49:04]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 56 00 00 0E 04 04 00 45 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 [12:49:04]wFMCommunicate OK [12:49:04]SAM_PROTO_GetFieldsCounters done [12:49:04]requested_item shift.num is exist - process it [12:49:04]requested_item shift.opened is exist - process it [12:49:04]req_shift_opened [12:49:04]FM_GetShiftState [12:49:04]SAM_PROTO_GetShiftState [12:49:04]wFMCommunicate request_size=4 [12:49:04]MH_SAM_APDU [12:49:04]CAPDU: 80 13 01 00 [12:49:04]Write to MH i2c: E2 08 00 9D 38 80 13 01 00 00 00 00 00 52 [12:49:04]Write i2c OK [12:49:04]MH_I2C_Read... [12:49:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:04]Read from MH i2c: E2 [12:49:04]MH_I2C_Read... [12:49:04]Read from MH i2c: E2 0E 00 [12:49:04]MH_I2C_Read... [12:49:04]Read from MH i2c: E2 0E 00 9D 38 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 C3 [12:49:04]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:49:04]wFMCommunicate OK [12:49:04]SAM_PROTO_GetShiftState done [12:49:04]FM_GetShiftState done [12:49:04]req_shift_opened done [12:49:04]requested_item shift.open_date is exist - process it [12:49:04]req_shift_open_date [12:49:04]req_shift_open_date done [12:49:04]produce_requested_data done [12:49:04]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22115,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [12:49:04]process_action_free close_receipt [12:49:04]json_value_free [12:49:04]json_value_free done [12:49:04]process_json_proto returns [12:49:04]Send response to host [12:49:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22115,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [12:49:04]free response buf [12:49:04]execute_script done [12:49:04]execute_script returns [12:49:04]free content buf [12:49:04]Sock 9.Close socket [12:49:04]Sock 9.Thread stoped [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:13]OFD Sender: No OFD packet to send [12:54:18]OFD Sender: No OFD packet to send [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:33]OFD Sender: No OFD packet to send [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:43]OFD Sender: No OFD packet to send [12:57:48]OFD Sender: No OFD packet to send [12:57:53]OFD Sender: No OFD packet to send [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [12:58:05]accept exits with 8 [12:58:05]New connection [12:58:05]New thread 3067178340 created [12:58:05]Thread 3067321700 joined [12:58:05]Waiting for new connection... [12:58:05] Sock 8.Parse request [12:58:05]Sock 8.Check first char [12:58:05]Sock 8.First char is OK [12:58:05]request: POST /json_proto HTTP/1.0 [12:58:05]Method: POST [12:58:05]URL: /json_proto [12:58:05]Method is POST - this is cgi request [12:58:05]url: /json_proto [12:58:05]query_string will be loaded in cgi processing [12:58:05]execute_cgi json_proto POST (null) [12:58:05]execute_cgi path=json_proto method=POST [12:58:05]POST find Content-Length [12:58:05]Host: 172.17.35.133:8080 [12:58:05]Content-Length: 621 [12:58:05]Content-Type: application/json [12:58:05] [12:58:05]POST finish read [12:58:05]Found Content-Length = 621 [12:58:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254339", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:05]execute_script... [12:58: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)254339", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:05]POST & json_proto [12:58:05]process_json_proto [12:58:05]json parsed OK: [12:58:05]protocol is kg_v1.0 [12:58:05]action value=close_receipt [12:58:05]process_action close_receipt [12:58:05]cmd_close_receipt [12:58:05]MH_GetDate [12:58:05]Write to MH i2c: F0 00 00 9E 38 C5 [12:58:05]Write i2c OK [12:58:05]MH_I2C_Read... [12:58:05]Read from MH i2c: F0 [12:58:05]MH_I2C_Read... [12:58:05]Read from MH i2c: F0 09 00 [12:58:05]MH_I2C_Read... [12:58:05]Read from MH i2c: F0 09 00 9E 38 00 6B 3E 6C 66 8C 55 28 65 B7 [12:58:05]GetLastDocTimeStamp 1718369354 [12:58:05]current date 1718369899 [12:58:05]FM_GetShiftState [12:58:05]SAM_PROTO_GetShiftState [12:58:05]wFMCommunicate request_size=4 [12:58:05]MH_SAM_APDU [12:58:05]CAPDU: 80 13 01 00 [12:58:05]Write to MH i2c: E2 08 00 9F 38 80 13 01 00 00 00 00 00 54 [12:58:05]Write i2c OK [12:58:05]MH_I2C_Read... [12:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:05]Read from MH i2c: E2 [12:58:05]MH_I2C_Read... [12:58:05]Read from MH i2c: E2 0E 00 [12:58:05]MH_I2C_Read... [12:58:05]Read from MH i2c: E2 0E 00 9F 38 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 C5 [12:58:05]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:58:05]wFMCommunicate OK [12:58:05]SAM_PROTO_GetShiftState done [12:58:05]FM_GetShiftState done [12:58:05]opened in 1718324742 [12:58:05]opened+sec_in_day 1718411142 [12:58:05]quantity*price = 14000 [12:58:05]sum+1 = 14001 [12:58:05]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 140.00 袧小袩 1% : 1.24 袧袛小 12% : 14.87 袧邪谢懈褔薪褘屑懈: 140.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 30 14.06.2024 12:58 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22116 肖袩袛: 3414244570579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T125819&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22116&fm=3414244570579&tin=02508201610067®Number=0000000000099755&sum=14000 0 [12:58:06]StoreToDocumentArchive [12:58:06]shift 325 fd 22116 [12:58:06]save to /storage/0325/doc_00022116 [12:58:06]save last doc name /storage/0325/doc_00022116 to /storage/kkm_last_doc_name [12:58:06]save OK [12:58:06]Clear old archive folders... [12:58:06]ProcessDocumentItem done err = 0, tmpTLVsize=273 [12:58:06]tlvbuf is 002C93E0 [12:58:06]SAM_PROTO_ClearQueue [12:58:06]wFMCommunicate request_size=4 [12:58:06]MH_SAM_APDU [12:58:06]CAPDU: 80 09 00 00 [12:58:06]Write to MH i2c: E2 08 00 AC 38 80 09 00 00 00 00 00 00 56 [12:58:06]Write i2c OK [12:58:06]MH_I2C_Read... [12:58:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:06]Read from MH i2c: E2 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 03 00 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 03 00 AC 38 00 90 00 58 [12:58:06]RAPDU: 90 00 [12:58:06]wFMCommunicate OK [12:58:06]SAM_PROTO_ClearQueue done [12:58:06]KKMCreateOFDPacket [12:58:06]OFDProtocolAddRootSTLVToBuf [12:58:06]FM_MakeSignedData [12:58:06]FM_MakeSignedData [12:58:06]SAM_PROTO_SignData [12:58:06]wFMCommunicate request_size=4 [12:58:06]MH_SAM_APDU [12:58:06]CAPDU: 80 0D 01 02 [12:58:06]Write to MH i2c: E2 08 00 AD 38 80 0D 01 02 00 00 00 00 5E [12:58:06]Write i2c OK [12:58:06]MH_I2C_Read... [12:58:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:06]Read from MH i2c: E2 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 03 00 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 03 00 AD 38 00 90 00 59 [12:58:06]RAPDU: 90 00 [12:58:06]wFMCommunicate OK [12:58:06]wFMCommunicate request_size=255 [12:58:06]MH_SAM_APDU [12:58:06]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 6B 3E 6C 66 0E 04 04 00 45 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 [12:58:06]Write to MH i2c: E2 02 01 AE 38 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 6B 3E 6C 66 0E 04 04 00 45 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 28 [12:58:06]Write i2c OK [12:58:06]MH_I2C_Read... [12:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:06]Read from MH i2c: E2 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 03 00 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 03 00 AE 38 00 90 00 5A [12:58:06]RAPDU: 90 00 [12:58:06]wFMCommunicate OK [12:58:06]wFMCommunicate request_size=32 [12:58:06]MH_SAM_APDU [12:58:06]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 34 34 10 04 04 00 64 56 00 00 35 04 06 00 03 1A F0 D5 B5 D3 [12:58:06]Write to MH i2c: E2 23 00 AF 38 80 0D 02 02 1B 00 30 30 30 39 36 35 33 34 34 10 04 04 00 64 56 00 00 35 04 06 00 03 1A F0 D5 B5 D3 00 00 E1 [12:58:06]Write i2c OK [12:58:06]MH_I2C_Read... [12:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:06]Read from MH i2c: E2 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 03 00 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 03 00 AF 38 00 90 00 5B [12:58:06]RAPDU: 90 00 [12:58:06]wFMCommunicate OK [12:58:06]wFMCommunicate request_size=4 [12:58:06]MH_SAM_APDU [12:58:06]CAPDU: 80 0D 03 02 [12:58:06]Write to MH i2c: E2 08 00 B0 38 80 0D 03 02 00 00 00 00 63 [12:58:06]Write i2c OK [12:58:06]MH_I2C_Read... [12:58:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:06]Read from MH i2c: E2 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 0B 00 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 0B 00 B0 38 00 6B 37 08 12 14 AB E6 59 90 00 1E [12:58:06]RAPDU: 6B 37 08 12 14 AB E6 59 90 00 [12:58:06]wFMCommunicate OK [12:58:06]SAM_PROTO_SignData done [12:58:06]FM_MakeSignedData done [12:58:06]CreateOFDProtocolMessage [12:58:06]wFMCommunicate request_size=4 [12:58:06]MH_SAM_APDU [12:58:06]CAPDU: 80 11 00 00 [12:58:06]Write to MH i2c: E2 08 00 B1 38 80 11 00 00 00 00 00 00 63 [12:58:06]Write i2c OK [12:58:06]MH_I2C_Read... [12:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:06]Read from MH i2c: E2 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 17 00 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 17 00 B1 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 B5 [12:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:58:06]wFMCommunicate OK [12:58:06]CreateOFDProtocolMessage done [12:58:06]OFDSenderStorePacket 22116 [12:58:06]StoreOFDPacket docnum=22116 [12:58:06]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 8B 19 1D 01 0F 84 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 6B 3E 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 03 1A F0 D5 B5 D3 6B 37 08 12 14 AB E6 59 [12:58:06]CheckFolder [12:58:06]dirname=/storage/ofd_packets [12:58:06]CheckFolder done [12:58:06]ProducePacketName [12:58:06]name=ofd_packets/00022116 [12:58:06]NVStorageSaveData ofd_packets/00022116 [12:58:06]File name is /storage/ofd_packets/00022116 [12:58:06]Write 323 bytes [12:58:06]NVStorageSaveData done [12:58:06]OFDSenderStorePacket done [12:58:06]KKMCreateOFDPacket done [12:58:06]NVStorageSaveData kkm_last_timestamp [12:58:06]File name is /storage/kkm_last_timestamp [12:58:06]Write 4 bytes [12:58:06]NVStorageSaveData done [12:58:06]ExternCall_PrintAddStr [12:58:06]wPrintStart [12:58:06]Write to MH i2c: 01 00 00 B2 38 EA [12:58:06]Write i2c OK [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: 01 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: 01 07 00 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: 01 07 00 B2 38 00 00 00 00 00 FF 0F FF [12:58:06]RasterBufferAndPrint [12:58:06]line 小褔械褌 N : (3)254339 [12:58:06]line 袠袧袧: 02508201610067 [12:58:06]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [12:58:06]line 袩袪袨袛袗袞袗 [12:58:06]line 孝芯胁邪褉: 48747059 [12:58:06]line 小懈谐邪褉械褌褘 Winston Legend Blue [12:58:06]line 1.000 * 140.00 [12:58:06]line = 140.00 [12:58:06]line 袧袛小 12% 袧小袩 1% [12:58:06]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [12:58:06]line 袠孝袨袚袨: 140.00 [12:58:06]line 袧小袩 1% : 1.24 [12:58:06]line 袧袛小 12% : 14.87 [12:58:06]line 袧邪谢懈褔薪褘屑懈: 140.00 [12:58:06]line 袘械蟹薪邪谢.: 0.00 [12:58:06]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [12:58:06]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [12:58:06]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [12:58:06]line 效械泻 30 14.06.2024 12:58 [12:58:06]line 小屑械薪邪: 325 肖肖袛: 1.0 [12:58:06]line 袟袧袦: 0300000200 [12:58:07]line 袪袧袦: 0000000000099755 [12:58:07]line 袙械褉褋懈褟 袣袣袦: 001 [12:58:07]line 肖袦: 0000000000965344 [12:58:07]line 肖袛: 22116 [12:58:07]line 肖袩袛: 3414244570579 [12:58:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T125819&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22116&fm=3414244570579&tin=02508201610067®Number=0000000000099755&sum=14000 [12:58:07]line 0 [12:58:07]OFD Sender: Processing packet 22116 [packets to send 5, broken 4] [12:58:07]ProducePacketName [12:58:07]name=ofd_packets/00022116 [12:58:07]OFD Sender: To server: 嚂鰌G, [12:58:07]CommunicateWithHost lk.salyk.kg:30040 [12:58:07]ConnectInit lk.salyk.kg [12:58:07]written 0, free lines is 4095 [12:58:07]Connected sock=10 [12:58: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 25 01 00 00 8B 19 1D 01 0F 84 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 6B 3E 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 03 1A F0 D5 B5 D3 6B 37 08 12 14 AB E6 59 [12:58:07]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 DF 85 47 00 4C 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 64 56 00 00 F4 03 04 00 2B E7 6B 66 B6 04 01 00 00 D6 C4 F7 90 0D 92 72 95 [12:58:07]CommunicateWithHost err = 0 [12:58:07]CheckOFDResponse [12:58:07]1017 (14) - 77093643461234 [12:58:07]1041 (16) - 0000000000965344 [12:58:07]1040 (4) - 22116 [12:58:07]1012 (4) - 14.06.2024 06:46 [12:58:07]1206 (1) - 0 [12:58:07]OFD Sender: Remove packet 22116 [12:58:07]ProducePacketName [12:58:07]name=ofd_packets/00022116 [12:58:07]NVStorageDeleteData [12:58:07]Write to MH i2c: 01 00 00 DB 38 13 [12:58:07]Write i2c OK [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: 01 [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: 01 07 00 [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: 01 07 00 DB 38 00 00 00 00 00 05 0D 2C [12:58:07]RasterBufferAndPrint [12:58:07]line [12:58:07]line [12:58:07]line [12:58:07]line [12:58:07]line [12:58:07]written 0, free lines is 3339 [12:58:07]MH_Cut [12:58:07]Write to MH i2c: D1 01 00 E2 38 01 EC [12:58:07]Write i2c OK [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: D1 [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: D1 01 00 [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: D1 01 00 E2 38 00 EB [12:58:07]Write to MH i2c: 01 00 00 E3 38 1B [12:58:07]Write i2c OK [12:58:07]MH_I2C_Read... [12:58:07]OFD Sender: No OFD packet to send [12:58:08]*** Cut start [12:58:08]*** Partial cut [12:58:08]*** CUTSNS_PIN = 1 [12:58:08]*** CUTSNS_PIN = 0 [12:58:08]*** Brake cut motor [12:58:08]Read from MH i2c: 01 [12:58:08]MH_I2C_Read... [12:58:08]*** Stop cut motor [12:58:08]*** Cut end [12:58:08]Read from MH i2c: 01 07 00 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: 01 07 00 E3 38 00 00 00 00 00 FF 0F 30 [12:58:08]process_action close_receipt done [12:58:08]requested_data is exist [12:58:08]produce_requested_data [12:58:08]requested_item fm.sn is exist - process it [12:58:08]wFMCommunicate request_size=4 [12:58:08]MH_SAM_APDU [12:58:08]CAPDU: 80 11 00 00 [12:58:08]Write to MH i2c: E2 08 00 E4 38 80 11 00 00 00 00 00 00 96 [12:58:08]Write i2c OK [12:58:08]MH_I2C_Read... [12:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:08]Read from MH i2c: E2 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 17 00 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 17 00 E4 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 E8 [12:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:58:08]wFMCommunicate OK [12:58:08]requested_item fd.num is exist - process it [12:58:08]SAM_PROTO_GetFieldsCounters [12:58:08]wFMCommunicate request_size=4 [12:58:08]MH_SAM_APDU [12:58:08]CAPDU: 80 13 00 00 [12:58:08]Write to MH i2c: E2 08 00 E5 38 80 13 00 00 00 00 00 00 99 [12:58:08]Write i2c OK [12:58:08]MH_I2C_Read... [12:58:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:08]Read from MH i2c: E2 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 62 00 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 62 00 E5 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 64 56 00 00 0E 04 04 00 45 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 1D [12:58:08]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 56 00 00 0E 04 04 00 45 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 [12:58:08]wFMCommunicate OK [12:58:08]SAM_PROTO_GetFieldsCounters done [12:58:08]requested_item shift.num is exist - process it [12:58:08]requested_item shift.opened is exist - process it [12:58:08]req_shift_opened [12:58:08]FM_GetShiftState [12:58:08]SAM_PROTO_GetShiftState [12:58:08]wFMCommunicate request_size=4 [12:58:08]MH_SAM_APDU [12:58:08]CAPDU: 80 13 01 00 [12:58:08]Write to MH i2c: E2 08 00 E6 38 80 13 01 00 00 00 00 00 9B [12:58:08]Write i2c OK [12:58:08]MH_I2C_Read... [12:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:09]Read from MH i2c: E2 [12:58:09]MH_I2C_Read... [12:58:09]Read from MH i2c: E2 0E 00 [12:58:09]MH_I2C_Read... [12:58:09]Read from MH i2c: E2 0E 00 E6 38 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 0C [12:58:09]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [12:58:09]wFMCommunicate OK [12:58:09]SAM_PROTO_GetShiftState done [12:58:09]FM_GetShiftState done [12:58:09]req_shift_opened done [12:58:09]requested_item shift.open_date is exist - process it [12:58:09]req_shift_open_date [12:58:09]req_shift_open_date done [12:58:09]produce_requested_data done [12:58:09]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22116,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [12:58:09]process_action_free close_receipt [12:58:09]json_value_free [12:58:09]json_value_free done [12:58:09]process_json_proto returns [12:58:09]Send response to host [12:58:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22116,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [12:58:09]free response buf [12:58:09]execute_script done [12:58:09]execute_script returns [12:58:09]free content buf [12:58:09]Sock 8.Close socket [12:58:09]Sock 8.Thread stoped [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 3067321700 created [12:59:12]Thread 3067178340 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: 655 [12:59:12]Content-Type: application/json [12:59:12] [12:59:12]POST finish read [12:59:12]Found Content-Length = 655 [12:59:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254340", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 1.000, "sum" : 72.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 72.00 } ], "post_footer_text": "0" } , "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 : (3)254340", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 1.000, "sum" : 72.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 72.00 } ], "post_footer_text": "0" } , "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 E7 38 0E [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 E7 38 00 AE 3E 6C 66 8C 55 28 65 43 [12:59:12]GetLastDocTimeStamp 1718369899 [12:59:12]current date 1718369966 [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 E8 38 80 13 01 00 00 00 00 00 9D [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 E8 38 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 0E [12:59:12]RAPDU: 09 00 01 06 8E 6B 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 1718324742 [12:59:12]opened+sec_in_day 1718411142 [12:59:12]quantity*price = 7200 [12:59:12]sum+1 = 7201 [12:59:12]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 72.00 袧小袩 1% : 0.64 袧袛小 12% : 7.65 袧邪谢懈褔薪褘屑懈: 72.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 31 14.06.2024 12:59 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22117 肖袩袛: 193760582298782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T125926&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22117&fm=193760582298782&tin=02508201610067®Number=0000000000099755&sum=7200 0 [12:59:13]StoreToDocumentArchive [12:59:13]shift 325 fd 22117 [12:59:13]save to /storage/0325/doc_00022117 [12:59:13]save last doc name /storage/0325/doc_00022117 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=294 [12:59:13]tlvbuf is 00332A70 [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 F5 38 80 09 00 00 00 00 00 00 9F [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 F5 38 00 90 00 A1 [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 F6 38 80 0D 01 02 00 00 00 00 A7 [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 F6 38 00 90 00 A2 [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 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 AE 3E 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [12:59:13]Write to MH i2c: E2 02 01 F7 38 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 AE 3E 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 B4 [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 F7 38 00 90 00 A3 [12:59:13]RAPDU: 90 00 [12:59:13]wFMCommunicate OK [12:59:13]wFMCommunicate request_size=53 [12:59:13]MH_SAM_APDU [12:59:13]CAPDU: 80 0D 02 02 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 56 00 00 35 04 06 00 B0 39 66 AD EC 9E [12:59:13]Write to MH i2c: E2 38 00 F8 38 80 0D 02 02 30 00 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 56 00 00 35 04 06 00 B0 39 66 AD EC 9E 00 00 E9 [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 F8 38 00 90 00 A4 [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 F9 38 80 0D 03 02 00 00 00 00 AC [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 F9 38 00 3E A0 BC 4B 3C 06 44 13 90 00 2B [12:59:13]RAPDU: 3E A0 BC 4B 3C 06 44 13 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 FA 38 80 11 00 00 00 00 00 00 AC [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 FA 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 FE [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 22117 [12:59:13]StoreOFDPacket docnum=22117 [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 3A 01 00 00 4C EC 32 01 B1 1A 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 AE 3E 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 B0 39 66 AD EC 9E 3E A0 BC 4B 3C 06 44 13 [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/00022117 [12:59:13]NVStorageSaveData ofd_packets/00022117 [12:59:13]File name is /storage/ofd_packets/00022117 [12:59:13]Write 344 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 FB 38 33 [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 FB 38 00 00 00 00 00 FF 0F 48 [12:59:13]RasterBufferAndPrint [12:59:13]line 小褔械褌 N : (3)254340 [12:59:13]line 袠袧袧: 02508201610067 [12:59:13]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [12:59:13]line 袩袪袨袛袗袞袗 [12:59:13]line 孝芯胁邪褉: 4600682557456 [12:59:13]line 袧邪锌懈褌芯泻 FLash up energy 褝薪 卸/斜 0,5/0,45谢 [12:59:13]line 1.000 * 72.00 [12:59:13]line = 72.00 [12:59:13]line 袧袛小 12% 袧小袩 1% [12:59:13]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [12:59:13]line 袠孝袨袚袨: 72.00 [12:59:13]line 袧小袩 1% : 0.64 [12:59:13]line 袧袛小 12% : 7.65 [12:59:13]line 袧邪谢懈褔薪褘屑懈: 72.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 效械泻 31 14.06.2024 12:59 [12:59:13]line 小屑械薪邪: 325 肖肖袛: 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 肖袛: 22117 [12:59:13]line 肖袩袛: 193760582298782 [12:59:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T125926&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22117&fm=193760582298782&tin=02508201610067®Number=0000000000099755&sum=7200 [12:59:14]line 0 [12:59:14]OFD Sender: Processing packet 22117 [packets to send 5, broken 4] [12:59:14]ProducePacketName [12:59:14]name=ofd_packets/00022117 [12:59:14]OFD Sender: To server: 嚂鰌G, [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 3A 01 00 00 4C EC 32 01 B1 1A 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 AE 3E 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 B0 39 66 AD EC 9E 3E A0 BC 4B 3C 06 44 13 [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 CA 74 47 00 D8 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 65 56 00 00 F4 03 04 00 6E E7 6B 66 B6 04 01 00 00 82 37 60 BE CB D3 E6 DA [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) - 22117 [12:59:14]1012 (4) - 14.06.2024 06:47 [12:59:14]1206 (1) - 0 [12:59:14]OFD Sender: Remove packet 22117 [12:59:14]ProducePacketName [12:59:14]name=ofd_packets/00022117 [12:59:14]NVStorageDeleteData [12:59:14]Write to MH i2c: 01 00 00 24 39 5D [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 24 39 00 00 00 00 00 16 0D 87 [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 3356 [12:59:14]MH_Cut [12:59:14]Write to MH i2c: D1 01 00 2B 39 01 36 [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 2B 39 00 35 [12:59:14]Write to MH i2c: 01 00 00 2C 39 65 [12:59:14]Write i2c OK [12:59:14]MH_I2C_Read... [12:59:14]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:15]Read from MH i2c: 01 [12:59:15]MH_I2C_Read... [12:59:15]*** Stop cut motor [12:59:15]*** Cut end [12:59:15]Read from MH i2c: 01 07 00 [12:59:15]MH_I2C_Read... [12:59:15]Read from MH i2c: 01 07 00 2C 39 00 00 00 00 00 FF 0F 7A [12:59:15]process_action close_receipt done [12:59:15]requested_data is exist [12:59:15]produce_requested_data [12:59:15]requested_item fm.sn is exist - process it [12:59:15]wFMCommunicate request_size=4 [12:59:15]MH_SAM_APDU [12:59:15]CAPDU: 80 11 00 00 [12:59:15]Write to MH i2c: E2 08 00 2D 39 80 11 00 00 00 00 00 00 E0 [12:59:15]Write i2c OK [12:59:15]MH_I2C_Read... [12:59:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:15]Read from MH i2c: E2 [12:59:15]MH_I2C_Read... [12:59:15]Read from MH i2c: E2 17 00 [12:59:15]MH_I2C_Read... [12:59:15]Read from MH i2c: E2 17 00 2D 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 32 [12:59: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:59:15]wFMCommunicate OK [12:59:15]requested_item fd.num is exist - process it [12:59:15]SAM_PROTO_GetFieldsCounters [12:59:15]wFMCommunicate request_size=4 [12:59:15]MH_SAM_APDU [12:59:15]CAPDU: 80 13 00 00 [12:59:15]Write to MH i2c: E2 08 00 2E 39 80 13 00 00 00 00 00 00 E3 [12:59:15]Write i2c OK [12:59:15]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 2E 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 65 56 00 00 0E 04 04 00 45 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 6B [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 65 56 00 00 0E 04 04 00 45 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 [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 2F 39 80 13 01 00 00 00 00 00 E5 [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 2F 39 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 56 [12:59:16]RAPDU: 09 00 01 06 8E 6B 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":22117,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [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":22117,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [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:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:29]OFD Sender: No OFD packet to send [12:59:34]OFD Sender: No OFD packet to send [12:59:39]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:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:11:00]OFD Sender: No OFD packet to send [13:11:05]OFD Sender: No OFD packet to send [13:11:10]OFD Sender: No OFD packet to send [13:11:15]OFD Sender: No OFD packet to send [13:11:20]OFD Sender: No OFD packet to send [13:11:25]OFD Sender: No OFD packet to send [13:11:30]OFD Sender: No OFD packet to send [13:11:35]OFD Sender: No OFD packet to send [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:55]OFD Sender: No OFD packet to send [13:12:00]OFD Sender: No OFD packet to send [13:12:05]OFD Sender: No OFD packet to send [13:12:10]OFD Sender: No OFD packet to send [13:12:15]OFD Sender: No OFD packet to send [13:12:20]OFD Sender: No OFD packet to send [13:12:25]OFD Sender: No OFD packet to send [13:12:30]OFD Sender: No OFD packet to send [13:12:35]OFD Sender: No OFD packet to send [13:12:40]OFD Sender: No OFD packet to send [13:12:45]OFD Sender: No OFD packet to send [13:12:50]OFD Sender: No OFD packet to send [13:12:55]OFD Sender: No OFD packet to send [13:13:00]OFD Sender: No OFD packet to send [13:13:05]OFD Sender: No OFD packet to send [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:20]OFD Sender: No OFD packet to send [13:13:25]OFD Sender: No OFD packet to send [13:13:30]OFD Sender: No OFD packet to send [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:45]OFD Sender: No OFD packet to send [13:13:50]OFD Sender: No OFD packet to send [13:13:55]OFD Sender: No OFD packet to send [13:14:00]OFD Sender: No OFD packet to send [13:14:05]OFD Sender: No OFD packet to send [13:14:10]OFD Sender: No OFD packet to send [13:14:15]OFD Sender: No OFD packet to send [13:14:20]OFD Sender: No OFD packet to send [13:14:25]OFD Sender: No OFD packet to send [13:14:30]OFD Sender: No OFD packet to send [13:14:35]OFD Sender: No OFD packet to send [13:14:40]OFD Sender: No OFD packet to send [13:14:45]OFD Sender: No OFD packet to send [13:14:50]OFD Sender: No OFD packet to send [13:14:55]OFD Sender: No OFD packet to send [13:15:00]OFD Sender: No OFD packet to send [13:15:05]OFD Sender: No OFD packet to send [13:15:10]OFD Sender: No OFD packet to send [13:15:15]OFD Sender: No OFD packet to send [13:15:20]OFD Sender: No OFD packet to send [13:15:25]OFD Sender: No OFD packet to send [13:15:30]OFD Sender: No OFD packet to send [13:15:35]OFD Sender: No OFD packet to send [13:15:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:36]OFD Sender: No OFD packet to send [13:30:41]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:21]OFD Sender: No OFD packet to send [13:32:26]OFD Sender: No OFD packet to send [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:42]OFD Sender: No OFD packet to send [13:43:47]OFD Sender: No OFD packet to send [13:43:52]OFD Sender: No OFD packet to send [13:43:57]OFD Sender: No OFD packet to send [13:44:02]OFD Sender: No OFD packet to send [13:44:07]OFD Sender: No OFD packet to send [13:44:12]OFD Sender: No OFD packet to send [13:44:17]OFD Sender: No OFD packet to send [13:44:22]OFD Sender: No OFD packet to send [13:44:27]OFD Sender: No OFD packet to send [13:44:32]OFD Sender: No OFD packet to send [13:44:37]OFD Sender: No OFD packet to send [13:44:42]OFD Sender: No OFD packet to send [13:44:47]OFD Sender: No OFD packet to send [13:44:52]OFD Sender: No OFD packet to send [13:44:57]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [13:45:22]OFD Sender: No OFD packet to send [13:45:27]OFD Sender: No OFD packet to send [13:45:32]OFD Sender: No OFD packet to send [13:45:37]OFD Sender: No OFD packet to send [13:45:42]OFD Sender: No OFD packet to send [13:45:47]OFD Sender: No OFD packet to send [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:46:02]OFD Sender: No OFD packet to send [13:46:07]OFD Sender: No OFD packet to send [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:27]OFD Sender: No OFD packet to send [13:48:32]OFD Sender: No OFD packet to send [13:48:37]OFD Sender: No OFD packet to send [13:48:42]OFD Sender: No OFD packet to send [13:48:47]OFD Sender: No OFD packet to send [13:48:52]OFD Sender: No OFD packet to send [13:48:57]OFD Sender: No OFD packet to send [13:49:02]OFD Sender: No OFD packet to send [13:49:07]OFD Sender: No OFD packet to send [13:49:12]OFD Sender: No OFD packet to send [13:49:17]OFD Sender: No OFD packet to send [13:49:22]OFD Sender: No OFD packet to send [13:49:27]OFD Sender: No OFD packet to send [13:49:32]OFD Sender: No OFD packet to send [13:49:37]OFD Sender: No OFD packet to send [13:49:42]OFD Sender: No OFD packet to send [13:49:47]OFD Sender: No OFD packet to send [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:42]OFD Sender: No OFD packet to send [13:50:47]OFD Sender: No OFD packet to send [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:56:02]OFD Sender: No OFD packet to send [13:56:07]OFD Sender: No OFD packet to send [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:27]OFD Sender: No OFD packet to send [13:56:32]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:37]OFD Sender: No OFD packet to send [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:08]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:18]OFD Sender: No OFD packet to send [14:12:23]OFD Sender: No OFD packet to send [14:12:28]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:57]accept exits with 8 [14:14:57]New connection [14:14:57]New thread 3067178340 created [14:14:57]Thread 3067321700 joined [14:14:57]Waiting for new connection... [14:14:57] Sock 8.Parse request [14:14:57]Sock 8.Check first char [14:14:57]Sock 8.First char is OK [14:14:57]request: POST /json_proto HTTP/1.0 [14:14:57]Method: POST [14:14:57]URL: /json_proto [14:14:57]Method is POST - this is cgi request [14:14:57]url: /json_proto [14:14:57]query_string will be loaded in cgi processing [14:14:57]execute_cgi json_proto POST (null) [14:14:57]execute_cgi path=json_proto method=POST [14:14:57]POST find Content-Length [14:14:57]Host: 172.17.35.133:8080 [14:14:57]Content-Length: 1165 [14:14:57]Content-Type: application/json [14:14:57] [14:14:57]POST finish read [14:14:57]Found Content-Length = 1165 [14:14:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254341", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 135.00, "quantity" : 2.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 512.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:57]execute_script... [14:14: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)254341", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 135.00, "quantity" : 2.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 512.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:57]POST & json_proto [14:14:57]process_json_proto [14:14:57]json parsed OK: [14:14:57]protocol is kg_v1.0 [14:14:57]action value=close_receipt [14:14:57]process_action close_receipt [14:14:57]cmd_close_receipt [14:14:57]MH_GetDate [14:14:57]Write to MH i2c: F0 00 00 30 39 58 [14:14:57]Write i2c OK [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: F0 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: F0 09 00 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: F0 09 00 30 39 00 6F 50 6C 66 8C 55 28 65 60 [14:14:57]GetLastDocTimeStamp 1718369966 [14:14:57]current date 1718374511 [14:14:57]FM_GetShiftState [14:14:57]SAM_PROTO_GetShiftState [14:14:57]wFMCommunicate request_size=4 [14:14:57]MH_SAM_APDU [14:14:57]CAPDU: 80 13 01 00 [14:14:57]Write to MH i2c: E2 08 00 31 39 80 13 01 00 00 00 00 00 E7 [14:14:57]Write i2c OK [14:14:57]MH_I2C_Read... [14:14:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:57]Read from MH i2c: E2 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 0E 00 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 0E 00 31 39 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 58 [14:14:57]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [14:14:57]wFMCommunicate OK [14:14:57]SAM_PROTO_GetShiftState done [14:14:57]FM_GetShiftState done [14:14:57]opened in 1718324742 [14:14:57]opened+sec_in_day 1718411142 [14:14:57]quantity*price = 8500 [14:14:57]sum+1 = 8501 [14:14:57]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 90162602 协薪械褉谐 薪邪锌懈褌芯泻 Red bull 0,25谢 1.000 * 157.00 = 157.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 48741231 小懈谐邪褉械褌褘 Winston Super Slims Silver 2.000 * 135.00 = 270.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 512.00 袧小袩 1% : 4.53 袧袛小 12% : 54.37 袧邪谢懈褔薪褘屑懈: 512.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 32 14.06.2024 14:15 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22118 肖袩袛: 88996804620536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T141511&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22118&fm=88996804620536&tin=02508201610067®Number=0000000000099755&sum=51200 0 [14:14:58]StoreToDocumentArchive [14:14:58]shift 325 fd 22118 [14:14:58]save to /storage/0325/doc_00022118 [14:14:58]save last doc name /storage/0325/doc_00022118 to /storage/kkm_last_doc_name [14:14:58]save OK [14:14:58]Clear old archive folders... [14:14:58]ProcessDocumentItem done err = 0, tmpTLVsize=499 [14:14:58]tlvbuf is 0022A960 [14:14:58]SAM_PROTO_ClearQueue [14:14:58]wFMCommunicate request_size=4 [14:14:58]MH_SAM_APDU [14:14:58]CAPDU: 80 09 00 00 [14:14:58]Write to MH i2c: E2 08 00 3E 39 80 09 00 00 00 00 00 00 E9 [14:14:58]Write i2c OK [14:14:58]MH_I2C_Read... [14:14:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:58]Read from MH i2c: E2 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: E2 03 00 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: E2 03 00 3E 39 00 90 00 EB [14:14:58]RAPDU: 90 00 [14:14:58]wFMCommunicate OK [14:14:58]SAM_PROTO_ClearQueue done [14:14:58]KKMCreateOFDPacket [14:14:58]OFDProtocolAddRootSTLVToBuf [14:14:58]FM_MakeSignedData [14:14:58]FM_MakeSignedData [14:14:58]SAM_PROTO_SignData [14:14:58]wFMCommunicate request_size=4 [14:14:58]MH_SAM_APDU [14:14:58]CAPDU: 80 0D 01 02 [14:14:58]Write to MH i2c: E2 08 00 3F 39 80 0D 01 02 00 00 00 00 F1 [14:14:58]Write i2c OK [14:14:58]MH_I2C_Read... [14:14:58]OFD Sender: No OFD packet to send [14:14:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:58]Read from MH i2c: E2 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: E2 03 00 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: E2 03 00 3F 39 00 90 00 EC [14:14:58]RAPDU: 90 00 [14:14:58]wFMCommunicate OK [14:14:58]wFMCommunicate request_size=255 [14:14:58]MH_SAM_APDU [14:14:58]CAPDU: 80 0D 02 02 FA 03 00 F3 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 [14:14:58]Write to MH i2c: E2 02 01 40 39 80 0D 02 02 FA 00 03 00 F3 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 00 00 F4 [14:14:58]Write i2c OK [14:14:58]MH_I2C_Read... [14:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:59]Read from MH i2c: E2 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 03 00 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 03 00 40 39 00 90 00 ED [14:14:59]RAPDU: 90 00 [14:14:59]wFMCommunicate OK [14:14:59]wFMCommunicate request_size=255 [14:14:59]MH_SAM_APDU [14:14:59]CAPDU: 80 0D 02 02 FA D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 15 00 00 00 00 07 04 06 00 00 C8 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 6F 50 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 50 F1 2E [14:14:59]Write to MH i2c: E2 02 01 41 39 80 0D 02 02 FA 00 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 15 00 00 00 00 07 04 06 00 00 C8 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 6F 50 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 50 F1 2E 00 00 D3 [14:14:59]Write i2c OK [14:14:59]MH_I2C_Read... [14:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:59]Read from MH i2c: E2 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 03 00 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 03 00 41 39 00 90 00 EE [14:14:59]RAPDU: 90 00 [14:14:59]wFMCommunicate OK [14:14:59]wFMCommunicate request_size=8 [14:14:59]MH_SAM_APDU [14:14:59]CAPDU: 80 0D 02 02 03 EC F0 F8 [14:14:59]Write to MH i2c: E2 0B 00 42 39 80 0D 02 02 03 00 EC F0 F8 00 00 CF [14:14:59]Write i2c OK [14:14:59]MH_I2C_Read... [14:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:59]Read from MH i2c: E2 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 03 00 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 03 00 42 39 00 90 00 EF [14:14:59]RAPDU: 90 00 [14:14:59]wFMCommunicate OK [14:14:59]wFMCommunicate request_size=4 [14:14:59]MH_SAM_APDU [14:14:59]CAPDU: 80 0D 03 02 [14:14:59]Write to MH i2c: E2 08 00 43 39 80 0D 03 02 00 00 00 00 F7 [14:14:59]Write i2c OK [14:14:59]MH_I2C_Read... [14:14:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:59]Read from MH i2c: E2 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 0B 00 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 0B 00 43 39 00 3C 58 C3 8D 63 91 E7 02 90 00 B9 [14:14:59]RAPDU: 3C 58 C3 8D 63 91 E7 02 90 00 [14:14:59]wFMCommunicate OK [14:14:59]SAM_PROTO_SignData done [14:14:59]FM_MakeSignedData done [14:14:59]CreateOFDProtocolMessage [14:14:59]wFMCommunicate request_size=4 [14:14:59]MH_SAM_APDU [14:14:59]CAPDU: 80 11 00 00 [14:14:59]Write to MH i2c: E2 08 00 44 39 80 11 00 00 00 00 00 00 F7 [14:14:59]Write i2c OK [14:14:59]MH_I2C_Read... [14:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:59]Read from MH i2c: E2 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 17 00 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 17 00 44 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 49 [14:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:14:59]wFMCommunicate OK [14:14:59]CreateOFDProtocolMessage done [14:14:59]OFDSenderStorePacket 22118 [14:14:59]StoreOFDPacket docnum=22118 [14:14: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 07 02 00 00 DE DA FF 01 B4 F7 5A 03 01 00 03 00 F3 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 15 00 00 00 00 07 04 06 00 00 C8 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 6F 50 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 50 F1 2E EC F0 F8 3C 58 C3 8D 63 91 E7 02 [14:14:59]CheckFolder [14:14:59]dirname=/storage/ofd_packets [14:14:59]CheckFolder done [14:14:59]ProducePacketName [14:14:59]name=ofd_packets/00022118 [14:14:59]NVStorageSaveData ofd_packets/00022118 [14:14:59]File name is /storage/ofd_packets/00022118 [14:14:59]Write 549 bytes [14:14:59]NVStorageSaveData done [14:14:59]OFDSenderStorePacket done [14:14:59]KKMCreateOFDPacket done [14:14:59]NVStorageSaveData kkm_last_timestamp [14:14:59]File name is /storage/kkm_last_timestamp [14:14:59]Write 4 bytes [14:14:59]NVStorageSaveData done [14:14:59]ExternCall_PrintAddStr [14:14:59]wPrintStart [14:14:59]Write to MH i2c: 01 00 00 45 39 7E [14:14:59]Write i2c OK [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: 01 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: 01 07 00 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: 01 07 00 45 39 00 00 00 00 00 FF 0F 93 [14:14:59]RasterBufferAndPrint [14:14:59]line 小褔械褌 N : (3)254341 [14:14:59]line 袠袧袧: 02508201610067 [14:14:59]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:14:59]line 袩袪袨袛袗袞袗 [14:14:59]line 孝芯胁邪褉: 5449000000996 [14:14:59]line 袧邪锌懈褌芯泻 袣芯泻邪-袣芯谢邪 0,33谢 [14:14:59]line 1.000 * 85.00 [14:14:59]line = 85.00 [14:14:59]line 袧袛小 12% 袧小袩 1% [14:14:59]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:14:59]line 孝芯胁邪褉: 90162602 [14:14:59]line 协薪械褉谐 薪邪锌懈褌芯泻 Red bull 0,25谢 [14:14:59]line 1.000 * 157.00 [14:14:59]line = 157.00 [14:14:59]line 袧袛小 12% 袧小袩 1% [14:14:59]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:14:59]line 孝芯胁邪褉: 48741231 [14:14:59]line 小懈谐邪褉械褌褘 Winston Super Slims Silver [14:14:59]line 2.000 * 135.00 [14:14:59]line = 270.00 [14:14:59]line 袧袛小 12% 袧小袩 1% [14:14:59]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:14:59]line 袠孝袨袚袨: 512.00 [14:14:59]line 袧小袩 1% : 4.53 [14:14:59]line 袧袛小 12% : 54.37 [14:14:59]line 袧邪谢懈褔薪褘屑懈: 512.00 [14:14:59]line 袘械蟹薪邪谢.: 0.00 [14:14:59]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [14:14:59]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [14:14:59]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:14:59]line 效械泻 32 14.06.2024 14:15 [14:14:59]line 小屑械薪邪: 325 肖肖袛: 1.0 [14:14:59]line 袟袧袦: 0300000200 [14:14:59]line 袪袧袦: 0000000000099755 [14:14:59]line 袙械褉褋懈褟 袣袣袦: 001 [14:14:59]line 肖袦: 0000000000965344 [14:14:59]line 肖袛: 22118 [14:14:59]line 肖袩袛: 88996804620536 [14:14:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T141511&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22118&fm=88996804620536&tin=02508201610067®Number=0000000000099755&sum=51200 [14:14:59]line 0 [14:14:59]written 0, free lines is 4095 [14:14:59]OFD Sender: Processing packet 22118 [packets to send 5, broken 4] [14:14:59]ProducePacketName [14:14:59]name=ofd_packets/00022118 [14:14:59]OFD Sender: To server: 嚂鰌G, [14:14:59]CommunicateWithHost lk.salyk.kg:30040 [14:14:59]ConnectInit lk.salyk.kg [14:14:59]Connected sock=10 [14:14: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 07 02 00 00 DE DA FF 01 B4 F7 5A 03 01 00 03 00 F3 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 15 00 00 00 00 07 04 06 00 00 C8 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 6F 50 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 50 F1 2E EC F0 F8 3C 58 C3 8D 63 91 E7 02 [14:15:00]Write to MH i2c: 01 00 00 7A 39 B3 [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: 01 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: 01 07 00 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: 01 07 00 7A 39 00 00 00 00 00 7D 0C 43 [14:15:00]RasterBufferAndPrint [14:15:00]line [14:15:00]line [14:15:00]line [14:15:00]line [14:15:00]line [14:15:00]written 0, free lines is 3206 [14:15:00]MH_Cut [14:15:00]Write to MH i2c: D1 01 00 81 39 01 8C [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: D1 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: D1 01 00 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: D1 01 00 81 39 00 8B [14:15:00]Write to MH i2c: 01 00 00 82 39 BB [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:00]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 3E A4 47 00 A0 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 66 56 00 00 F4 03 04 00 30 F9 6B 66 B6 04 01 00 00 B3 8F 54 2E 6F 65 CE 19 [14:15:00]CommunicateWithHost err = 0 [14:15:00]CheckOFDResponse [14:15:00]1017 (14) - 77093643461234 [14:15:00]1041 (16) - 0000000000965344 [14:15:00]1040 (4) - 22118 [14:15:00]1012 (4) - 14.06.2024 08:02 [14:15:00]1206 (1) - 0 [14:15:00]OFD Sender: Remove packet 22118 [14:15:00]ProducePacketName [14:15:00]name=ofd_packets/00022118 [14:15:00]NVStorageDeleteData [14:15:00]OFD Sender: No OFD packet to send [14:15:00]*** Cut start [14:15:00]*** Partial cut [14:15:00]*** CUTSNS_PIN = 1 [14:15:01]*** CUTSNS_PIN = 0 [14:15:01]*** Brake cut motor [14:15:01]Read from MH i2c: 01 [14:15:01]MH_I2C_Read... [14:15:01]*** Stop cut motor [14:15:01]*** Cut end [14:15:01]Read from MH i2c: 01 07 00 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: 01 07 00 82 39 00 00 00 00 00 FF 0F D0 [14:15:01]process_action close_receipt done [14:15:01]requested_data is exist [14:15:01]produce_requested_data [14:15:01]requested_item fm.sn is exist - process it [14:15:01]wFMCommunicate request_size=4 [14:15:01]MH_SAM_APDU [14:15:01]CAPDU: 80 11 00 00 [14:15:01]Write to MH i2c: E2 08 00 83 39 80 11 00 00 00 00 00 00 36 [14:15:01]Write i2c OK [14:15:01]MH_I2C_Read... [14:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:01]Read from MH i2c: E2 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 17 00 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 17 00 83 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 88 [14:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:15:01]wFMCommunicate OK [14:15:01]requested_item fd.num is exist - process it [14:15:01]SAM_PROTO_GetFieldsCounters [14:15:01]wFMCommunicate request_size=4 [14:15:01]MH_SAM_APDU [14:15:01]CAPDU: 80 13 00 00 [14:15:01]Write to MH i2c: E2 08 00 84 39 80 13 00 00 00 00 00 00 39 [14:15:01]Write i2c OK [14:15:01]MH_I2C_Read... [14:15:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:01]Read from MH i2c: E2 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 62 00 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 62 00 84 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 66 56 00 00 0E 04 04 00 45 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 C5 [14:15: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 66 56 00 00 0E 04 04 00 45 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 [14:15:01]wFMCommunicate OK [14:15:01]SAM_PROTO_GetFieldsCounters done [14:15:01]requested_item shift.num is exist - process it [14:15:01]requested_item shift.opened is exist - process it [14:15:01]req_shift_opened [14:15:01]FM_GetShiftState [14:15:01]SAM_PROTO_GetShiftState [14:15:01]wFMCommunicate request_size=4 [14:15:01]MH_SAM_APDU [14:15:01]CAPDU: 80 13 01 00 [14:15:01]Write to MH i2c: E2 08 00 85 39 80 13 01 00 00 00 00 00 3B [14:15:01]Write i2c OK [14:15:01]MH_I2C_Read... [14:15:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:01]Read from MH i2c: E2 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 0E 00 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 0E 00 85 39 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 AC [14:15:01]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [14:15:01]wFMCommunicate OK [14:15:01]SAM_PROTO_GetShiftState done [14:15:01]FM_GetShiftState done [14:15:01]req_shift_opened done [14:15:01]requested_item shift.open_date is exist - process it [14:15:01]req_shift_open_date [14:15:01]req_shift_open_date done [14:15:01]produce_requested_data done [14:15:01]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22118,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [14:15:01]process_action_free close_receipt [14:15:01]json_value_free [14:15:01]json_value_free done [14:15:01]process_json_proto returns [14:15:01]Send response to host [14:15:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22118,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [14:15:01]free response buf [14:15:01]execute_script done [14:15:01]execute_script returns [14:15:01]free content buf [14:15:01]Sock 8.Close socket [14:15:01]Sock 8.Thread stoped [14:15:05]OFD Sender: No OFD packet to send [14:15:10]OFD Sender: No OFD packet to send [14:15:15]OFD Sender: No OFD packet to send [14:15:20]OFD Sender: No OFD packet to send [14:15:25]OFD Sender: No OFD packet to send [14:15:30]OFD Sender: No OFD packet to send [14:15:35]OFD Sender: No OFD packet to send [14:15:40]OFD Sender: No OFD packet to send [14:15:45]OFD Sender: No OFD packet to send [14:15:50]OFD Sender: No OFD packet to send [14:15:55]OFD Sender: No OFD packet to send [14:16:00]OFD Sender: No OFD packet to send [14:16:05]OFD Sender: No OFD packet to send [14:16:10]OFD Sender: No OFD packet to send [14:16:15]OFD Sender: No OFD packet to send [14:16:20]OFD Sender: No OFD packet to send [14:16:25]OFD Sender: No OFD packet to send [14:16:30]OFD Sender: No OFD packet to send [14:16:35]OFD Sender: No OFD packet to send [14:16:40]OFD Sender: No OFD packet to send [14:16:45]OFD Sender: No OFD packet to send [14:16:50]OFD Sender: No OFD packet to send [14:16:55]OFD Sender: No OFD packet to send [14:17:00]OFD Sender: No OFD packet to send [14:17:05]OFD Sender: No OFD packet to send [14:17:10]OFD Sender: No OFD packet to send [14:17:15]OFD Sender: No OFD packet to send [14:17:20]OFD Sender: No OFD packet to send [14:17:25]OFD Sender: No OFD packet to send [14:17:30]OFD Sender: No OFD packet to send [14:17:35]OFD Sender: No OFD packet to send [14:17:40]OFD Sender: No OFD packet to send [14:17:45]OFD Sender: No OFD packet to send [14:17:50]OFD Sender: No OFD packet to send [14:17:55]OFD Sender: No OFD packet to send [14:18:00]OFD Sender: No OFD packet to send [14:18:05]OFD Sender: No OFD packet to send [14:18:10]OFD Sender: No OFD packet to send [14:18:15]OFD Sender: No OFD packet to send [14:18:20]OFD Sender: No OFD packet to send [14:18:25]OFD Sender: No OFD packet to send [14:18:30]OFD Sender: No OFD packet to send [14:18:35]OFD Sender: No OFD packet to send [14:18:40]OFD Sender: No OFD packet to send [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:02]accept exits with 9 [14:19:02]New connection [14:19:02]New thread 3067321700 created [14:19:02]Thread 3067178340 joined [14:19:02]Waiting for new connection... [14:19:02] Sock 9.Parse request [14:19:02]Sock 9.Check first char [14:19:02]Sock 9.First char is OK [14:19:02]request: POST /json_proto HTTP/1.0 [14:19:02]Method: POST [14:19:02]URL: /json_proto [14:19:02]Method is POST - this is cgi request [14:19:02]url: /json_proto [14:19:02]query_string will be loaded in cgi processing [14:19:02]execute_cgi json_proto POST (null) [14:19:02]execute_cgi path=json_proto method=POST [14:19:02]POST find Content-Length [14:19:02]Host: 172.17.35.133:8080 [14:19:02]Content-Length: 949 [14:19:02]Content-Type: application/json [14:19:02] [14:19:02]POST finish read [14:19:02]Found Content-Length = 949 [14:19:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254342", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:02]execute_script... [14:19: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)254342", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:02]POST & json_proto [14:19:02]process_json_proto [14:19:02]json parsed OK: [14:19:02]protocol is kg_v1.0 [14:19:02]action value=close_receipt [14:19:02]process_action close_receipt [14:19:02]cmd_close_receipt [14:19:02]MH_GetDate [14:19:02]Write to MH i2c: F0 00 00 86 39 AE [14:19:02]Write i2c OK [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: F0 [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: F0 09 00 [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: F0 09 00 86 39 00 65 51 6C 66 8C 55 28 65 AD [14:19:02]GetLastDocTimeStamp 1718374511 [14:19:02]current date 1718374757 [14:19:02]FM_GetShiftState [14:19:02]SAM_PROTO_GetShiftState [14:19:02]wFMCommunicate request_size=4 [14:19:02]MH_SAM_APDU [14:19:02]CAPDU: 80 13 01 00 [14:19:02]Write to MH i2c: E2 08 00 87 39 80 13 01 00 00 00 00 00 3D [14:19:02]Write i2c OK [14:19:02]MH_I2C_Read... [14:19:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:03]Read from MH i2c: E2 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 0E 00 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 0E 00 87 39 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 AE [14:19:03]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [14:19:03]wFMCommunicate OK [14:19:03]SAM_PROTO_GetShiftState done [14:19:03]FM_GetShiftState done [14:19:03]opened in 1718324742 [14:19:03]opened+sec_in_day 1718411142 [14:19:03]quantity*price = 12500 [14:19:03]sum+1 = 12501 [14:19:03]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 125.00 袧小袩 1% : 1.11 袧袛小 12% : 13.27 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 125.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 33 14.06.2024 14:19 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袗袣袘 袣褘褉谐褘蟹褋褌邪薪 肖袦: 0000000000965344 肖袛: 22119 肖袩袛: 195809545832173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T141917&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22119&fm=195809545832173&tin=02508201610067®Number=0000000000099755&sum=12500 0 [14:19:04]StoreToDocumentArchive [14:19:04]shift 325 fd 22119 [14:19:04]save to /storage/0325/doc_00022119 [14:19:04]save last doc name /storage/0325/doc_00022119 to /storage/kkm_last_doc_name [14:19:04]save OK [14:19:04]Clear old archive folders... [14:19:04]ProcessDocumentItem done err = 0, tmpTLVsize=312 [14:19:04]tlvbuf is 002BD4D0 [14:19:04]SAM_PROTO_ClearQueue [14:19:04]wFMCommunicate request_size=4 [14:19:04]MH_SAM_APDU [14:19:04]CAPDU: 80 09 00 00 [14:19:04]Write to MH i2c: E2 08 00 94 39 80 09 00 00 00 00 00 00 3F [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:04]Read from MH i2c: E2 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 03 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 03 00 94 39 00 90 00 41 [14:19:04]RAPDU: 90 00 [14:19:04]wFMCommunicate OK [14:19:04]SAM_PROTO_ClearQueue done [14:19:04]KKMCreateOFDPacket [14:19:04]OFDProtocolAddRootSTLVToBuf [14:19:04]FM_MakeSignedData [14:19:04]FM_MakeSignedData [14:19:04]SAM_PROTO_SignData [14:19:04]wFMCommunicate request_size=4 [14:19:04]MH_SAM_APDU [14:19:04]CAPDU: 80 0D 01 02 [14:19:04]Write to MH i2c: E2 08 00 95 39 80 0D 01 02 00 00 00 00 47 [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:04]Read from MH i2c: E2 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 03 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 03 00 95 39 00 90 00 42 [14:19:04]RAPDU: 90 00 [14:19:04]wFMCommunicate OK [14:19:04]wFMCommunicate request_size=255 [14:19:04]MH_SAM_APDU [14:19:04]CAPDU: 80 0D 02 02 FA 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 65 51 6C 66 0E 04 04 00 45 [14:19:04]Write to MH i2c: E2 02 01 96 39 80 0D 02 02 FA 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 65 51 6C 66 0E 04 04 00 45 00 00 51 [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:04]Read from MH i2c: E2 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 03 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 03 00 96 39 00 90 00 43 [14:19:04]RAPDU: 90 00 [14:19:04]wFMCommunicate OK [14:19:04]wFMCommunicate request_size=71 [14:19:04]MH_SAM_APDU [14:19:04]CAPDU: 80 0D 02 02 42 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 56 00 00 35 04 06 00 B2 16 76 6C 46 ED [14:19:04]Write to MH i2c: E2 4A 00 97 39 80 0D 02 02 42 00 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 56 00 00 35 04 06 00 B2 16 76 6C 46 ED 00 00 07 [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:04]Read from MH i2c: E2 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 03 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 03 00 97 39 00 90 00 44 [14:19:04]RAPDU: 90 00 [14:19:04]wFMCommunicate OK [14:19:04]wFMCommunicate request_size=4 [14:19:04]MH_SAM_APDU [14:19:04]CAPDU: 80 0D 03 02 [14:19:04]Write to MH i2c: E2 08 00 98 39 80 0D 03 02 00 00 00 00 4C [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:04]Read from MH i2c: E2 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 0B 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 0B 00 98 39 00 32 C9 C1 97 7A 03 C0 10 90 00 ED [14:19:04]RAPDU: 32 C9 C1 97 7A 03 C0 10 90 00 [14:19:04]wFMCommunicate OK [14:19:04]SAM_PROTO_SignData done [14:19:04]FM_MakeSignedData done [14:19:04]CreateOFDProtocolMessage [14:19:04]wFMCommunicate request_size=4 [14:19:04]MH_SAM_APDU [14:19:04]CAPDU: 80 11 00 00 [14:19:04]Write to MH i2c: E2 08 00 99 39 80 11 00 00 00 00 00 00 4C [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:04]Read from MH i2c: E2 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 17 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 17 00 99 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 9E [14:19:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:19:04]wFMCommunicate OK [14:19:04]CreateOFDProtocolMessage done [14:19:04]OFDSenderStorePacket 22119 [14:19:04]StoreOFDPacket docnum=22119 [14:19: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 4C 01 00 00 65 C7 44 01 6C BC 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 65 51 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 B2 16 76 6C 46 ED 32 C9 C1 97 7A 03 C0 10 [14:19:04]CheckFolder [14:19:04]dirname=/storage/ofd_packets [14:19:04]CheckFolder done [14:19:04]ProducePacketName [14:19:04]name=ofd_packets/00022119 [14:19:04]NVStorageSaveData ofd_packets/00022119 [14:19:04]File name is /storage/ofd_packets/00022119 [14:19:04]Write 362 bytes [14:19:04]NVStorageSaveData done [14:19:04]OFDSenderStorePacket done [14:19:04]KKMCreateOFDPacket done [14:19:04]NVStorageSaveData kkm_last_timestamp [14:19:04]File name is /storage/kkm_last_timestamp [14:19:04]Write 4 bytes [14:19:04]NVStorageSaveData done [14:19:04]ExternCall_PrintAddStr [14:19:04]wPrintStart [14:19:04]Write to MH i2c: 01 00 00 9A 39 D3 [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: 01 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: 01 07 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: 01 07 00 9A 39 00 00 00 00 00 FF 0F E8 [14:19:04]RasterBufferAndPrint [14:19:04]line 小褔械褌 N : (3)254342 [14:19:04]line 袠袧袧: 02508201610067 [14:19:04]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:19:04]line 袩袪袨袛袗袞袗 [14:19:04]line 孝芯胁邪褉: 4870202521254 [14:19:04]line 效邪泄 褏芯谢芯写薪褘泄 MAXI 褔械褉薪褘泄 褋芯 胁泻褍褋芯屑 泻谢褍斜薪 [14:19:04]line 1.000 * 125.00 [14:19:04]line = 125.00 [14:19:04]line 袧袛小 12% 袧小袩 1% [14:19:04]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:19:04]line 袠孝袨袚袨: 125.00 [14:19:04]line 袧小袩 1% : 1.11 [14:19:04]line 袧袛小 12% : 13.27 [14:19:04]line 袧邪谢懈褔薪褘屑懈: 0.00 [14:19:04]line 袘械蟹薪邪谢.: 125.00 [14:19:04]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [14:19:04]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [14:19:04]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:19:04]line 效械泻 33 14.06.2024 14:19 [14:19:04]line 小屑械薪邪: 325 肖肖袛: 1.0 [14:19:04]line 袟袧袦: 0300000200 [14:19:04]line 袪袧袦: 0000000000099755 [14:19:04]line 袙械褉褋懈褟 袣袣袦: 001 [14:19:04]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袗袣袘 袣褘褉谐褘蟹褋褌邪薪 [14:19:04]line 肖袦: 0000000000965344 [14:19:04]line 肖袛: 22119 [14:19:04]line 肖袩袛: 195809545832173 [14:19:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T141917&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22119&fm=195809545832173&tin=02508201610067®Number=0000000000099755&sum=12500 [14:19:05]line 0 [14:19:05]OFD Sender: Processing packet 22119 [packets to send 5, broken 4] [14:19:05]ProducePacketName [14:19:05]name=ofd_packets/00022119 [14:19:05]OFD Sender: To server: 嚂鰌G, [14:19:05]CommunicateWithHost lk.salyk.kg:30040 [14:19:05]ConnectInit lk.salyk.kg [14:19:05]written 0, free lines is 4095 [14:19:05]Connected sock=10 [14:19: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 4C 01 00 00 65 C7 44 01 6C BC 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 65 51 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 B2 16 76 6C 46 ED 32 C9 C1 97 7A 03 C0 10 [14:19: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 94 89 47 00 BF 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 67 56 00 00 F4 03 04 00 25 FA 6B 66 B6 04 01 00 00 D6 69 53 C2 4D 77 20 C7 [14:19:05]CommunicateWithHost err = 0 [14:19:05]CheckOFDResponse [14:19:05]1017 (14) - 77093643461234 [14:19:05]1041 (16) - 0000000000965344 [14:19:05]1040 (4) - 22119 [14:19:05]1012 (4) - 14.06.2024 08:07 [14:19:05]1206 (1) - 0 [14:19:05]OFD Sender: Remove packet 22119 [14:19:05]ProducePacketName [14:19:05]name=ofd_packets/00022119 [14:19:05]NVStorageDeleteData [14:19:05]Write to MH i2c: 01 00 00 C5 39 FE [14:19:05]Write i2c OK [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: 01 [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: 01 07 00 [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: 01 07 00 C5 39 00 00 00 00 00 07 0D 19 [14:19:05]RasterBufferAndPrint [14:19:05]line [14:19:05]line [14:19:05]line [14:19:05]line [14:19:05]line [14:19:05]written 0, free lines is 3344 [14:19:05]MH_Cut [14:19:05]Write to MH i2c: D1 01 00 CC 39 01 D7 [14:19:05]Write i2c OK [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: D1 [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: D1 01 00 [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: D1 01 00 CC 39 00 D6 [14:19:05]Write to MH i2c: 01 00 00 CD 39 06 [14:19:05]Write i2c OK [14:19:05]MH_I2C_Read... [14:19:05]OFD Sender: No OFD packet to send [14:19:06]*** Cut start [14:19:06]*** Partial cut [14:19:06]*** CUTSNS_PIN = 1 [14:19:06]*** CUTSNS_PIN = 0 [14:19:06]*** Brake cut motor [14:19:06]Read from MH i2c: 01 [14:19:06]MH_I2C_Read... [14:19:06]*** Stop cut motor [14:19:06]*** Cut end [14:19:06]Read from MH i2c: 01 07 00 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: 01 07 00 CD 39 00 00 00 00 00 FF 0F 1B [14:19:06]process_action close_receipt done [14:19:06]requested_data is exist [14:19:06]produce_requested_data [14:19:06]requested_item fm.sn is exist - process it [14:19:06]wFMCommunicate request_size=4 [14:19:06]MH_SAM_APDU [14:19:06]CAPDU: 80 11 00 00 [14:19:06]Write to MH i2c: E2 08 00 CE 39 80 11 00 00 00 00 00 00 81 [14:19:06]Write i2c OK [14:19:06]MH_I2C_Read... [14:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:06]Read from MH i2c: E2 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 17 00 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 17 00 CE 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 D3 [14:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:19:06]wFMCommunicate OK [14:19:06]requested_item fd.num is exist - process it [14:19:06]SAM_PROTO_GetFieldsCounters [14:19:06]wFMCommunicate request_size=4 [14:19:06]MH_SAM_APDU [14:19:06]CAPDU: 80 13 00 00 [14:19:06]Write to MH i2c: E2 08 00 CF 39 80 13 00 00 00 00 00 00 84 [14:19:06]Write i2c OK [14:19:06]MH_I2C_Read... [14:19:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:07]Read from MH i2c: E2 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 62 00 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 62 00 CF 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 67 56 00 00 0E 04 04 00 45 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 14 [14:19: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 67 56 00 00 0E 04 04 00 45 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 [14:19:07]wFMCommunicate OK [14:19:07]SAM_PROTO_GetFieldsCounters done [14:19:07]requested_item shift.num is exist - process it [14:19:07]requested_item shift.opened is exist - process it [14:19:07]req_shift_opened [14:19:07]FM_GetShiftState [14:19:07]SAM_PROTO_GetShiftState [14:19:07]wFMCommunicate request_size=4 [14:19:07]MH_SAM_APDU [14:19:07]CAPDU: 80 13 01 00 [14:19:07]Write to MH i2c: E2 08 00 D0 39 80 13 01 00 00 00 00 00 86 [14:19:07]Write i2c OK [14:19:07]MH_I2C_Read... [14:19:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:07]Read from MH i2c: E2 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 0E 00 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 0E 00 D0 39 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 F7 [14:19:07]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [14:19:07]wFMCommunicate OK [14:19:07]SAM_PROTO_GetShiftState done [14:19:07]FM_GetShiftState done [14:19:07]req_shift_opened done [14:19:07]requested_item shift.open_date is exist - process it [14:19:07]req_shift_open_date [14:19:07]req_shift_open_date done [14:19:07]produce_requested_data done [14:19:07]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22119,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [14:19:07]process_action_free close_receipt [14:19:07]json_value_free [14:19:07]json_value_free done [14:19:07]process_json_proto returns [14:19:07]Send response to host [14:19:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22119,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [14:19:07]free response buf [14:19:07]execute_script done [14:19:07]execute_script returns [14:19:07]free content buf [14:19:07]Sock 9.Close socket [14:19:07]Sock 9.Thread stoped [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [14:38:21]OFD Sender: No OFD packet to send [14:38:26]OFD Sender: No OFD packet to send [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:36]OFD Sender: No OFD packet to send [14:39:41]OFD Sender: No OFD packet to send [14:39:46]OFD Sender: No OFD packet to send [14:39:51]OFD Sender: No OFD packet to send [14:39:56]OFD Sender: No OFD packet to send [14:40:01]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40: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:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42: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:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:42]OFD Sender: No OFD packet to send [14:57:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:42]OFD Sender: No OFD packet to send [14:58:47]OFD Sender: No OFD packet to send [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:37]OFD Sender: No OFD packet to send [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:27]accept exits with 8 [15:03:27]New connection [15:03:27]New thread 3067178340 created [15:03:27]Thread 3067321700 joined [15:03:27]Waiting for new connection... [15:03:27] Sock 8.Parse request [15:03:27]Sock 8.Check first char [15:03:27]Sock 8.First char is OK [15:03:27]request: POST /json_proto HTTP/1.0 [15:03:27]Method: POST [15:03:27]URL: /json_proto [15:03:27]Method is POST - this is cgi request [15:03:27]url: /json_proto [15:03:27]query_string will be loaded in cgi processing [15:03:27]execute_cgi json_proto POST (null) [15:03:27]execute_cgi path=json_proto method=POST [15:03:27]POST find Content-Length [15:03:27]Host: 172.17.35.133:8080 [15:03:27]Content-Length: 912 [15:03:27]Content-Type: application/json [15:03:27] [15:03:27]POST finish read [15:03:27]Found Content-Length = 912 [15:03:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254343", "tax_sys" : 0, "items" : [ { "code": "4700003010803", "name": "\u0427\u0430\u0439 \u041B\u0435\u0442\u0441 \u0413\u043E\u0443 \u041C\u0430\u043B\u0438\u043D\u0430 0,9\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:27]execute_script... [15:03:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254343", "tax_sys" : 0, "items" : [ { "code": "4700003010803", "name": "\u0427\u0430\u0439 \u041B\u0435\u0442\u0441 \u0413\u043E\u0443 \u041C\u0430\u043B\u0438\u043D\u0430 0,9\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:27]POST & json_proto [15:03:27]process_json_proto [15:03:27]json parsed OK: [15:03:27]protocol is kg_v1.0 [15:03:27]action value=close_receipt [15:03:27]process_action close_receipt [15:03:27]cmd_close_receipt [15:03:27]MH_GetDate [15:03:27]Write to MH i2c: F0 00 00 D1 39 F9 [15:03:27]Write i2c OK [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: F0 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: F0 09 00 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: F0 09 00 D1 39 00 CD 5B 6C 66 8C 55 28 65 6A [15:03:27]GetLastDocTimeStamp 1718374757 [15:03:27]current date 1718377421 [15:03:27]FM_GetShiftState [15:03:27]SAM_PROTO_GetShiftState [15:03:27]wFMCommunicate request_size=4 [15:03:27]MH_SAM_APDU [15:03:27]CAPDU: 80 13 01 00 [15:03:27]Write to MH i2c: E2 08 00 D2 39 80 13 01 00 00 00 00 00 88 [15:03:27]Write i2c OK [15:03:27]MH_I2C_Read... [15:03:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:27]Read from MH i2c: E2 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 0E 00 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 0E 00 D2 39 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 F9 [15:03:27]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [15:03:27]wFMCommunicate OK [15:03:27]SAM_PROTO_GetShiftState done [15:03:27]FM_GetShiftState done [15:03:27]opened in 1718324742 [15:03:27]opened+sec_in_day 1718411142 [15:03:27]quantity*price = 8500 [15:03:27]sum+1 = 8501 [15:03:27]Check (price>sum+1) || (price+1sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 5449000066473 袙芯写邪 袘芯薪邪泻胁邪 1谢 1.000 * 50.00 = 50.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 135.00 袧小袩 1% : 1.19 袧袛小 12% : 14.34 袧邪谢懈褔薪褘屑懈: 135.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 34 14.06.2024 15:03 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22120 肖袩袛: 129503604279831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T150341&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22120&fm=129503604279831&tin=02508201610067®Number=0000000000099755&sum=13500 0 [15:03:28]StoreToDocumentArchive [15:03:28]shift 325 fd 22120 [15:03:28]save to /storage/0325/doc_00022120 [15:03:28]save last doc name /storage/0325/doc_00022120 to /storage/kkm_last_doc_name [15:03:28]save OK [15:03:28]Clear old archive folders... [15:03:28]ProcessDocumentItem done err = 0, tmpTLVsize=382 [15:03:28]tlvbuf is B6E021F0 [15:03:28]SAM_PROTO_ClearQueue [15:03:28]wFMCommunicate request_size=4 [15:03:28]MH_SAM_APDU [15:03:28]CAPDU: 80 09 00 00 [15:03:28]Write to MH i2c: E2 08 00 DF 39 80 09 00 00 00 00 00 00 8A [15:03:28]Write i2c OK [15:03:28]MH_I2C_Read... [15:03:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:28]Read from MH i2c: E2 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 03 00 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 03 00 DF 39 00 90 00 8C [15:03:28]RAPDU: 90 00 [15:03:28]wFMCommunicate OK [15:03:28]SAM_PROTO_ClearQueue done [15:03:28]KKMCreateOFDPacket [15:03:28]OFDProtocolAddRootSTLVToBuf [15:03:28]FM_MakeSignedData [15:03:28]FM_MakeSignedData [15:03:28]SAM_PROTO_SignData [15:03:28]wFMCommunicate request_size=4 [15:03:28]MH_SAM_APDU [15:03:28]CAPDU: 80 0D 01 02 [15:03:28]Write to MH i2c: E2 08 00 E0 39 80 0D 01 02 00 00 00 00 92 [15:03:28]Write i2c OK [15:03:28]MH_I2C_Read... [15:03:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:28]Read from MH i2c: E2 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 03 00 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 03 00 E0 39 00 90 00 8D [15:03:28]RAPDU: 90 00 [15:03:28]wFMCommunicate OK [15:03:28]wFMCommunicate request_size=255 [15:03:28]MH_SAM_APDU [15:03:28]CAPDU: 80 0D 02 02 FA 03 00 7E 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 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 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 [15:03:28]Write to MH i2c: E2 02 01 E1 39 80 0D 02 02 FA 00 03 00 7E 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 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 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 EF [15:03:28]Write i2c OK [15:03:28]MH_I2C_Read... [15:03:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:28]Read from MH i2c: E2 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 03 00 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 03 00 E1 39 00 90 00 8E [15:03:28]RAPDU: 90 00 [15:03:28]wFMCommunicate OK [15:03:28]wFMCommunicate request_size=141 [15:03:28]MH_SAM_APDU [15:03:28]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 CD 5B 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 75 C8 68 54 8A 17 [15:03:28]Write to MH i2c: E2 90 00 E2 39 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 CD 5B 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 75 C8 68 54 8A 17 00 00 24 [15:03:28]Write i2c OK [15:03:28]MH_I2C_Read... [15:03:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:28]Read from MH i2c: E2 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 03 00 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 03 00 E2 39 00 90 00 8F [15:03:28]RAPDU: 90 00 [15:03:28]wFMCommunicate OK [15:03:28]wFMCommunicate request_size=4 [15:03:28]MH_SAM_APDU [15:03:28]CAPDU: 80 0D 03 02 [15:03:28]Write to MH i2c: E2 08 00 E3 39 80 0D 03 02 00 00 00 00 97 [15:03:28]Write i2c OK [15:03:28]MH_I2C_Read... [15:03:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:28]Read from MH i2c: E2 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 0B 00 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 0B 00 E3 39 00 1F 09 E9 7C 06 BF F4 FC 90 00 DA [15:03:28]RAPDU: 1F 09 E9 7C 06 BF F4 FC 90 00 [15:03:28]wFMCommunicate OK [15:03:28]SAM_PROTO_SignData done [15:03:28]FM_MakeSignedData done [15:03:28]CreateOFDProtocolMessage [15:03:28]wFMCommunicate request_size=4 [15:03:28]MH_SAM_APDU [15:03:28]CAPDU: 80 11 00 00 [15:03:28]Write to MH i2c: E2 08 00 E4 39 80 11 00 00 00 00 00 00 97 [15:03:28]Write i2c OK [15:03:28]MH_I2C_Read... [15:03:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:28]Read from MH i2c: E2 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 17 00 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: E2 17 00 E4 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 E9 [15:03:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:03:28]wFMCommunicate OK [15:03:28]CreateOFDProtocolMessage done [15:03:28]OFDSenderStorePacket 22120 [15:03:28]StoreOFDPacket docnum=22120 [15:03: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 92 01 00 00 2A D1 8A 01 D0 2C 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 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 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 CD 5B 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 75 C8 68 54 8A 17 1F 09 E9 7C 06 BF F4 FC [15:03:28]CheckFolder [15:03:28]dirname=/storage/ofd_packets [15:03:28]CheckFolder done [15:03:28]ProducePacketName [15:03:28]name=ofd_packets/00022120 [15:03:28]NVStorageSaveData ofd_packets/00022120 [15:03:28]File name is /storage/ofd_packets/00022120 [15:03:28]Write 432 bytes [15:03:28]NVStorageSaveData done [15:03:28]OFDSenderStorePacket done [15:03:28]KKMCreateOFDPacket done [15:03:28]NVStorageSaveData kkm_last_timestamp [15:03:28]File name is /storage/kkm_last_timestamp [15:03:28]Write 4 bytes [15:03:28]NVStorageSaveData done [15:03:28]ExternCall_PrintAddStr [15:03:28]wPrintStart [15:03:28]Write to MH i2c: 01 00 00 E5 39 1E [15:03:28]Write i2c OK [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: 01 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: 01 07 00 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: 01 07 00 E5 39 00 00 00 00 00 FF 0F 33 [15:03:28]RasterBufferAndPrint [15:03:29]line 小褔械褌 N : (3)254343 [15:03:29]line 袠袧袧: 02508201610067 [15:03:29]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [15:03:29]line 袩袪袨袛袗袞袗 [15:03:29]line 孝芯胁邪褉: 4700003010803 [15:03:29]line 效邪泄 袥械褌褋 袚芯褍 袦邪谢懈薪邪 0,9谢 [15:03:29]line 1.000 * 85.00 [15:03:29]line = 85.00 [15:03:29]line 袧袛小 12% 袧小袩 1% [15:03:29]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [15:03:29]line 孝芯胁邪褉: 5449000066473 [15:03:29]line 袙芯写邪 袘芯薪邪泻胁邪 1谢 [15:03:29]line 1.000 * 50.00 [15:03:29]line = 50.00 [15:03:29]line 袧袛小 12% 袧小袩 1% [15:03:29]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [15:03:29]line 袠孝袨袚袨: 135.00 [15:03:29]line 袧小袩 1% : 1.19 [15:03:29]line 袧袛小 12% : 14.34 [15:03:29]line 袧邪谢懈褔薪褘屑懈: 135.00 [15:03:29]line 袘械蟹薪邪谢.: 0.00 [15:03:29]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [15:03:29]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [15:03:29]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [15:03:29]line 效械泻 34 14.06.2024 15:03 [15:03:29]line 小屑械薪邪: 325 肖肖袛: 1.0 [15:03:29]line 袟袧袦: 0300000200 [15:03:29]line 袪袧袦: 0000000000099755 [15:03:29]line 袙械褉褋懈褟 袣袣袦: 001 [15:03:29]line 肖袦: 0000000000965344 [15:03:29]line 肖袛: 22120 [15:03:29]line 肖袩袛: 129503604279831 [15:03:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T150341&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22120&fm=129503604279831&tin=02508201610067®Number=0000000000099755&sum=13500 [15:03:29]line 0 [15:03:29]OFD Sender: Processing packet 22120 [packets to send 5, broken 4] [15:03:29]ProducePacketName [15:03:29]name=ofd_packets/00022120 [15:03:29]OFD Sender: To server: 嚂鰌G, [15:03:29]CommunicateWithHost lk.salyk.kg:30040 [15:03:29]ConnectInit lk.salyk.kg [15:03:29]written 0, free lines is 4095 [15:03:29]Connected sock=10 [15:03:29]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 92 01 00 00 2A D1 8A 01 D0 2C 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 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 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 CD 5B 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 75 C8 68 54 8A 17 1F 09 E9 7C 06 BF F4 FC [15:03: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 3A 9C 47 00 72 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 68 56 00 00 F4 03 04 00 8D 04 6C 66 B6 04 01 00 00 00 57 05 6F CF 7D C5 A1 [15:03:29]CommunicateWithHost err = 0 [15:03:29]CheckOFDResponse [15:03:29]1017 (14) - 77093643461234 [15:03:29]1041 (16) - 0000000000965344 [15:03:29]1040 (4) - 22120 [15:03:29]1012 (4) - 14.06.2024 08:51 [15:03:29]1206 (1) - 0 [15:03:29]OFD Sender: Remove packet 22120 [15:03:29]ProducePacketName [15:03:29]name=ofd_packets/00022120 [15:03:29]NVStorageDeleteData [15:03:29]Write to MH i2c: 01 00 00 13 3A 4D [15:03:29]Write i2c OK [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: 01 [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: 01 07 00 [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: 01 07 00 13 3A 00 00 00 00 00 C1 0C 21 [15:03:29]RasterBufferAndPrint [15:03:29]line [15:03:29]line [15:03:29]line [15:03:29]line [15:03:29]line [15:03:29]written 0, free lines is 3271 [15:03:29]MH_Cut [15:03:29]Write to MH i2c: D1 01 00 1A 3A 01 26 [15:03:29]Write i2c OK [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: D1 [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: D1 01 00 [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: D1 01 00 1A 3A 00 25 [15:03:29]Write to MH i2c: 01 00 00 1B 3A 55 [15:03:29]Write i2c OK [15:03:29]MH_I2C_Read... [15:03:30]OFD Sender: No OFD packet to send [15:03:30]*** Cut start [15:03:30]*** Partial cut [15:03:30]*** CUTSNS_PIN = 1 [15:03:30]*** CUTSNS_PIN = 0 [15:03:30]*** Brake cut motor [15:03:30]Read from MH i2c: 01 [15:03:31]MH_I2C_Read... [15:03:31]*** Stop cut motor [15:03:31]*** Cut end [15:03:31]Read from MH i2c: 01 07 00 [15:03:31]MH_I2C_Read... [15:03:31]Read from MH i2c: 01 07 00 1B 3A 00 00 00 00 00 FF 0F 6A [15:03:31]process_action close_receipt done [15:03:31]requested_data is exist [15:03:31]produce_requested_data [15:03:31]requested_item fm.sn is exist - process it [15:03:31]wFMCommunicate request_size=4 [15:03:31]MH_SAM_APDU [15:03:31]CAPDU: 80 11 00 00 [15:03:31]Write to MH i2c: E2 08 00 1C 3A 80 11 00 00 00 00 00 00 D0 [15:03:31]Write i2c OK [15:03:31]MH_I2C_Read... [15:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:31]Read from MH i2c: E2 [15:03:31]MH_I2C_Read... [15:03:31]Read from MH i2c: E2 17 00 [15:03:31]MH_I2C_Read... [15:03:31]Read from MH i2c: E2 17 00 1C 3A 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: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 [15:03:31]wFMCommunicate OK [15:03:31]requested_item fd.num is exist - process it [15:03:31]SAM_PROTO_GetFieldsCounters [15:03:31]wFMCommunicate request_size=4 [15:03:31]MH_SAM_APDU [15:03:31]CAPDU: 80 13 00 00 [15:03:31]Write to MH i2c: E2 08 00 1D 3A 80 13 00 00 00 00 00 00 D3 [15:03:31]Write i2c OK [15:03:31]MH_I2C_Read... [15:03:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:31]Read from MH i2c: E2 [15:03:31]MH_I2C_Read... [15:03:31]Read from MH i2c: E2 62 00 [15:03:31]MH_I2C_Read... [15:03:31]Read from MH i2c: E2 62 00 1D 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 68 56 00 00 0E 04 04 00 45 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 67 [15:03:31]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 56 00 00 0E 04 04 00 45 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 [15:03:31]wFMCommunicate OK [15:03:31]SAM_PROTO_GetFieldsCounters done [15:03:31]requested_item shift.num is exist - process it [15:03:31]requested_item shift.opened is exist - process it [15:03:31]req_shift_opened [15:03:31]FM_GetShiftState [15:03:31]SAM_PROTO_GetShiftState [15:03:31]wFMCommunicate request_size=4 [15:03:31]MH_SAM_APDU [15:03:31]CAPDU: 80 13 01 00 [15:03:31]Write to MH i2c: E2 08 00 1E 3A 80 13 01 00 00 00 00 00 D5 [15:03:31]Write i2c OK [15:03:31]MH_I2C_Read... [15:03:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:31]Read from MH i2c: E2 [15:03:31]MH_I2C_Read... [15:03:31]Read from MH i2c: E2 0E 00 [15:03:31]MH_I2C_Read... [15:03:31]Read from MH i2c: E2 0E 00 1E 3A 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 46 [15:03:31]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [15:03:31]wFMCommunicate OK [15:03:31]SAM_PROTO_GetShiftState done [15:03:31]FM_GetShiftState done [15:03:31]req_shift_opened done [15:03:31]requested_item shift.open_date is exist - process it [15:03:31]req_shift_open_date [15:03:31]req_shift_open_date done [15:03:31]produce_requested_data done [15:03:31]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22120,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [15:03:31]process_action_free close_receipt [15:03:31]json_value_free [15:03:31]json_value_free done [15:03:31]process_json_proto returns [15:03:31]Send response to host [15:03:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22120,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [15:03:31]free response buf [15:03:31]execute_script done [15:03:31]execute_script returns [15:03:31]free content buf [15:03:31]Sock 8.Close socket [15:03:31]Sock 8.Thread stoped [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]OFD Sender: No OFD packet to send [15:10:10]OFD Sender: No OFD packet to send [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:40]OFD Sender: No OFD packet to send [15:11:45]OFD Sender: No OFD packet to send [15:11:50]OFD Sender: No OFD packet to send [15:11:55]OFD Sender: No OFD packet to send [15:12:00]OFD Sender: No OFD packet to send [15:12:05]OFD Sender: No OFD packet to send [15:12:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:20]OFD Sender: No OFD packet to send [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:48]accept exits with 9 [15:14:48]New connection [15:14:48]New thread 3067321700 created [15:14:48]Thread 3067178340 joined [15:14:48]Waiting for new connection... [15:14:48] Sock 9.Parse request [15:14:48]Sock 9.Check first char [15:14:48]Sock 9.First char is OK [15:14:48]request: POST /json_proto HTTP/1.0 [15:14:48]Method: POST [15:14:48]URL: /json_proto [15:14:48]Method is POST - this is cgi request [15:14:48]url: /json_proto [15:14:48]query_string will be loaded in cgi processing [15:14:48]execute_cgi json_proto POST (null) [15:14:48]execute_cgi path=json_proto method=POST [15:14:48]POST find Content-Length [15:14:48]Host: 172.17.35.133:8080 [15:14:48]Content-Length: 657 [15:14:48]Content-Type: application/json [15:14:48] [15:14:48]POST finish read [15:14:48]Found Content-Length = 657 [15:14:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254344", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 3.000, "sum" : 216.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" ] } } [15:14:48]execute_script... [15:14: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)254344", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 3.000, "sum" : 216.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" ] } } [15:14:48]POST & json_proto [15:14:48]process_json_proto [15:14:48]json parsed OK: [15:14:48]protocol is kg_v1.0 [15:14:48]action value=close_receipt [15:14:48]process_action close_receipt [15:14:48]cmd_close_receipt [15:14:48]MH_GetDate [15:14:48]Write to MH i2c: F0 00 00 1F 3A 48 [15:14:48]Write i2c OK [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: F0 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: F0 09 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: F0 09 00 1F 3A 00 77 5E 6C 66 8C 55 28 65 66 [15:14:48]GetLastDocTimeStamp 1718377421 [15:14:48]current date 1718378103 [15:14:48]FM_GetShiftState [15:14:48]SAM_PROTO_GetShiftState [15:14:48]wFMCommunicate request_size=4 [15:14:48]MH_SAM_APDU [15:14:48]CAPDU: 80 13 01 00 [15:14:48]Write to MH i2c: E2 08 00 20 3A 80 13 01 00 00 00 00 00 D7 [15:14:48]Write i2c OK [15:14:48]MH_I2C_Read... [15:14:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:48]Read from MH i2c: E2 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 0E 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 0E 00 20 3A 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 48 [15:14:48]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [15:14:48]wFMCommunicate OK [15:14:48]SAM_PROTO_GetShiftState done [15:14:48]FM_GetShiftState done [15:14:48]opened in 1718324742 [15:14:48]opened+sec_in_day 1718411142 [15:14:48]quantity*price = 21600 [15:14:48]sum+1 = 21601 [15:14:48]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 216.00 袧小袩 1% : 1.91 袧袛小 12% : 22.94 袧邪谢懈褔薪褘屑懈: 216.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 35 14.06.2024 15:15 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22121 肖袩袛: 191902000087708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T151503&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22121&fm=191902000087708&tin=02508201610067®Number=0000000000099755&sum=21600 0 [15:14:50]StoreToDocumentArchive [15:14:50]shift 325 fd 22121 [15:14:50]save to /storage/0325/doc_00022121 [15:14:50]save last doc name /storage/0325/doc_00022121 to /storage/kkm_last_doc_name [15:14:50]save OK [15:14:50]Clear old archive folders... [15:14:50]ProcessDocumentItem done err = 0, tmpTLVsize=294 [15:14:50]tlvbuf is 002C55C0 [15:14:50]SAM_PROTO_ClearQueue [15:14:50]wFMCommunicate request_size=4 [15:14:50]MH_SAM_APDU [15:14:50]CAPDU: 80 09 00 00 [15:14:50]Write to MH i2c: E2 08 00 2D 3A 80 09 00 00 00 00 00 00 D9 [15:14:50]Write i2c OK [15:14:50]MH_I2C_Read... [15:14:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:50]Read from MH i2c: E2 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: E2 03 00 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: E2 03 00 2D 3A 00 90 00 DB [15:14:50]RAPDU: 90 00 [15:14:50]wFMCommunicate OK [15:14:50]SAM_PROTO_ClearQueue done [15:14:50]KKMCreateOFDPacket [15:14:50]OFDProtocolAddRootSTLVToBuf [15:14:50]FM_MakeSignedData [15:14:50]FM_MakeSignedData [15:14:50]SAM_PROTO_SignData [15:14:50]wFMCommunicate request_size=4 [15:14:50]MH_SAM_APDU [15:14:50]CAPDU: 80 0D 01 02 [15:14:50]Write to MH i2c: E2 08 00 2E 3A 80 0D 01 02 00 00 00 00 E1 [15:14:50]Write i2c OK [15:14:50]MH_I2C_Read... [15:14:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:50]Read from MH i2c: E2 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: E2 03 00 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: E2 03 00 2E 3A 00 90 00 DC [15:14:50]RAPDU: 90 00 [15:14:50]wFMCommunicate OK [15:14:50]wFMCommunicate request_size=255 [15:14:50]MH_SAM_APDU [15:14:50]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 60 54 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 23 00 00 00 F4 03 04 00 77 5E 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [15:14:50]Write to MH i2c: E2 02 01 2F 3A 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 60 54 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 23 00 00 00 F4 03 04 00 77 5E 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 99 [15:14:50]Write i2c OK [15:14:50]MH_I2C_Read... [15:14:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:50]Read from MH i2c: E2 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: E2 03 00 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: E2 03 00 2F 3A 00 90 00 DD [15:14:50]RAPDU: 90 00 [15:14:50]wFMCommunicate OK [15:14:50]wFMCommunicate request_size=53 [15:14:50]MH_SAM_APDU [15:14:50]CAPDU: 80 0D 02 02 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 56 00 00 35 04 06 00 AE 88 AA 8C 02 9C [15:14:50]Write to MH i2c: E2 38 00 30 3A 80 0D 02 02 30 00 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 56 00 00 35 04 06 00 AE 88 AA 8C 02 9C 00 00 AB [15:14:50]Write i2c OK [15:14:50]MH_I2C_Read... [15:14:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:50]Read from MH i2c: E2 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: E2 03 00 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: E2 03 00 30 3A 00 90 00 DE [15:14:50]RAPDU: 90 00 [15:14:50]wFMCommunicate OK [15:14:50]wFMCommunicate request_size=4 [15:14:50]MH_SAM_APDU [15:14:50]CAPDU: 80 0D 03 02 [15:14:50]Write to MH i2c: E2 08 00 31 3A 80 0D 03 02 00 00 00 00 E6 [15:14:50]Write i2c OK [15:14:50]MH_I2C_Read... [15:14:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:50]Read from MH i2c: E2 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: E2 0B 00 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: E2 0B 00 31 3A 00 A3 CE E3 4C DA 3A B0 B1 90 00 FC [15:14:50]RAPDU: A3 CE E3 4C DA 3A B0 B1 90 00 [15:14:50]wFMCommunicate OK [15:14:50]SAM_PROTO_SignData done [15:14:50]FM_MakeSignedData done [15:14:50]CreateOFDProtocolMessage [15:14:50]wFMCommunicate request_size=4 [15:14:50]MH_SAM_APDU [15:14:50]CAPDU: 80 11 00 00 [15:14:50]Write to MH i2c: E2 08 00 32 3A 80 11 00 00 00 00 00 00 E6 [15:14:50]Write i2c OK [15:14:50]MH_I2C_Read... [15:14:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:50]Read from MH i2c: E2 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: E2 17 00 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: E2 17 00 32 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 38 [15:14: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:14:50]wFMCommunicate OK [15:14:50]CreateOFDProtocolMessage done [15:14:50]OFDSenderStorePacket 22121 [15:14:50]StoreOFDPacket docnum=22121 [15:14: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 3A 01 00 00 85 A7 32 01 CD 29 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 60 54 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 23 00 00 00 F4 03 04 00 77 5E 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 AE 88 AA 8C 02 9C A3 CE E3 4C DA 3A B0 B1 [15:14:50]CheckFolder [15:14:50]dirname=/storage/ofd_packets [15:14:50]CheckFolder done [15:14:50]ProducePacketName [15:14:50]name=ofd_packets/00022121 [15:14:50]NVStorageSaveData ofd_packets/00022121 [15:14:50]File name is /storage/ofd_packets/00022121 [15:14:50]Write 344 bytes [15:14:50]NVStorageSaveData done [15:14:50]OFDSenderStorePacket done [15:14:50]KKMCreateOFDPacket done [15:14:50]NVStorageSaveData kkm_last_timestamp [15:14:50]File name is /storage/kkm_last_timestamp [15:14:50]OFD Sender: Processing packet 22121 [packets to send 5, broken 4] [15:14:50]ProducePacketName [15:14:50]name=ofd_packets/00022121 [15:14:50]OFD Sender: To server: 嚂鰌G, [15:14:50]CommunicateWithHost lk.salyk.kg:30040 [15:14:50]ConnectInit lk.salyk.kg [15:14:50]Write 4 bytes [15:14:50]NVStorageSaveData done [15:14:50]ExternCall_PrintAddStr [15:14:50]wPrintStart [15:14:50]Write to MH i2c: 01 00 00 33 3A 6D [15:14:50]Write i2c OK [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: 01 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: 01 07 00 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: 01 07 00 33 3A 00 00 00 00 00 FF 0F 82 [15:14:50]RasterBufferAndPrint [15:14:50]line 小褔械褌 N : (3)254344 [15:14:50]line 袠袧袧: 02508201610067 [15:14:50]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [15:14:50]line 袩袪袨袛袗袞袗 [15:14:50]line 孝芯胁邪褉: 4600682557456 [15:14:50]line 袧邪锌懈褌芯泻 FLash up energy 褝薪 卸/斜 0,5/0,45谢 [15:14:50]line 3.000 * 72.00 [15:14:50]line = 216.00 [15:14:50]line 袧袛小 12% 袧小袩 1% [15:14:50]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [15:14:50]line 袠孝袨袚袨: 216.00 [15:14:50]line 袧小袩 1% : 1.91 [15:14:50]line 袧袛小 12% : 22.94 [15:14:50]line 袧邪谢懈褔薪褘屑懈: 216.00 [15:14:50]line 袘械蟹薪邪谢.: 0.00 [15:14:50]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [15:14:50]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [15:14:50]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [15:14:50]line 效械泻 35 14.06.2024 15:15 [15:14:50]line 小屑械薪邪: 325 肖肖袛: 1.0 [15:14:50]line 袟袧袦: 0300000200 [15:14:50]line 袪袧袦: 0000000000099755 [15:14:50]line 袙械褉褋懈褟 袣袣袦: 001 [15:14:50]line 肖袦: 0000000000965344 [15:14:50]line 肖袛: 22121 [15:14:50]line 肖袩袛: 191902000087708 [15:14:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T151503&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22121&fm=191902000087708&tin=02508201610067®Number=0000000000099755&sum=21600 [15:14:50]line 0 [15:14:50]Connected sock=11 [15:14:50]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 3A 01 00 00 85 A7 32 01 CD 29 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 60 54 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 23 00 00 00 F4 03 04 00 77 5E 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 AE 88 AA 8C 02 9C A3 CE E3 4C DA 3A B0 B1 [15:14:50]written 0, free lines is 4095 [15:14: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 07 91 47 00 96 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 69 56 00 00 F4 03 04 00 37 07 6C 66 B6 04 01 00 00 AD DA B9 2B C4 43 46 E8 [15:14:51]CommunicateWithHost err = 0 [15:14:51]CheckOFDResponse [15:14:51]1017 (14) - 77093643461234 [15:14:51]1041 (16) - 0000000000965344 [15:14:51]1040 (4) - 22121 [15:14:51]1012 (4) - 14.06.2024 09:02 [15:14:51]1206 (1) - 0 [15:14:51]OFD Sender: Remove packet 22121 [15:14:51]ProducePacketName [15:14:51]name=ofd_packets/00022121 [15:14:51]NVStorageDeleteData [15:14:51]Write to MH i2c: 01 00 00 5C 3A 96 [15:14:51]Write i2c OK [15:14:51]MH_I2C_Read... [15:14:51]Read from MH i2c: 01 [15:14:51]MH_I2C_Read... [15:14:51]Read from MH i2c: 01 07 00 [15:14:51]MH_I2C_Read... [15:14:51]Read from MH i2c: 01 07 00 5C 3A 00 00 00 00 00 0E 0D B8 [15:14:51]RasterBufferAndPrint [15:14:51]line [15:14:51]line [15:14:51]line [15:14:51]line [15:14:51]line [15:14:51]written 0, free lines is 3349 [15:14:51]MH_Cut [15:14:51]Write to MH i2c: D1 01 00 63 3A 01 6F [15:14:51]Write i2c OK [15:14:51]MH_I2C_Read... [15:14:51]Read from MH i2c: D1 [15:14:51]MH_I2C_Read... [15:14:51]Read from MH i2c: D1 01 00 [15:14:51]MH_I2C_Read... [15:14:51]Read from MH i2c: D1 01 00 63 3A 00 6E [15:14:51]Write to MH i2c: 01 00 00 64 3A 9E [15:14:51]Write i2c OK [15:14:51]MH_I2C_Read... [15:14:51]OFD Sender: No OFD packet to send [15:14:52]*** Cut start [15:14:52]*** Partial cut [15:14:52]*** CUTSNS_PIN = 1 [15:14:52]*** CUTSNS_PIN = 0 [15:14:52]*** Brake cut motor [15:14:52]Read from MH i2c: 01 [15:14:52]MH_I2C_Read... [15:14:52]*** Stop cut motor [15:14:52]*** Cut end [15:14:52]Read from MH i2c: 01 07 00 [15:14:52]MH_I2C_Read... [15:14:52]Read from MH i2c: 01 07 00 64 3A 00 00 00 00 00 FF 0F B3 [15:14:52]process_action close_receipt done [15:14:52]requested_data is exist [15:14:52]produce_requested_data [15:14:52]requested_item fm.sn is exist - process it [15:14:52]wFMCommunicate request_size=4 [15:14:52]MH_SAM_APDU [15:14:52]CAPDU: 80 11 00 00 [15:14:52]Write to MH i2c: E2 08 00 65 3A 80 11 00 00 00 00 00 00 19 [15:14:52]Write i2c OK [15:14:52]MH_I2C_Read... [15:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:52]Read from MH i2c: E2 [15:14:52]MH_I2C_Read... [15:14:52]Read from MH i2c: E2 17 00 [15:14:52]MH_I2C_Read... [15:14:52]Read from MH i2c: E2 17 00 65 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 6B [15:14:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:14:52]wFMCommunicate OK [15:14:52]requested_item fd.num is exist - process it [15:14:52]SAM_PROTO_GetFieldsCounters [15:14:52]wFMCommunicate request_size=4 [15:14:52]MH_SAM_APDU [15:14:52]CAPDU: 80 13 00 00 [15:14:52]Write to MH i2c: E2 08 00 66 3A 80 13 00 00 00 00 00 00 1C [15:14:52]Write i2c OK [15:14:52]MH_I2C_Read... [15:14:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:52]Read from MH i2c: E2 [15:14:52]MH_I2C_Read... [15:14:52]Read from MH i2c: E2 62 00 [15:14:52]MH_I2C_Read... [15:14:52]Read from MH i2c: E2 62 00 66 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 69 56 00 00 0E 04 04 00 45 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 B4 [15:14:52]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 56 00 00 0E 04 04 00 45 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 [15:14:52]wFMCommunicate OK [15:14:52]SAM_PROTO_GetFieldsCounters done [15:14:52]requested_item shift.num is exist - process it [15:14:52]requested_item shift.opened is exist - process it [15:14:52]req_shift_opened [15:14:52]FM_GetShiftState [15:14:52]SAM_PROTO_GetShiftState [15:14:52]wFMCommunicate request_size=4 [15:14:52]MH_SAM_APDU [15:14:52]CAPDU: 80 13 01 00 [15:14:52]Write to MH i2c: E2 08 00 67 3A 80 13 01 00 00 00 00 00 1E [15:14:52]Write i2c OK [15:14:52]MH_I2C_Read... [15:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:52]Read from MH i2c: E2 [15:14:52]MH_I2C_Read... [15:14:52]Read from MH i2c: E2 0E 00 [15:14:52]MH_I2C_Read... [15:14:52]Read from MH i2c: E2 0E 00 67 3A 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 8F [15:14:52]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [15:14:52]wFMCommunicate OK [15:14:52]SAM_PROTO_GetShiftState done [15:14:52]FM_GetShiftState done [15:14:52]req_shift_opened done [15:14:52]requested_item shift.open_date is exist - process it [15:14:52]req_shift_open_date [15:14:52]req_shift_open_date done [15:14:52]produce_requested_data done [15:14:52]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22121,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [15:14:52]process_action_free close_receipt [15:14:52]json_value_free [15:14:52]json_value_free done [15:14:52]process_json_proto returns [15:14:52]Send response to host [15:14:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22121,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [15:14:52]free response buf [15:14:52]execute_script done [15:14:52]execute_script returns [15:14:52]free content buf [15:14:52]Sock 9.Close socket [15:14:52]Sock 9.Thread stoped [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:22]accept exits with 8 [15:15:22]New connection [15:15:22]New thread 3067178340 created [15:15:22]Thread 3067321700 joined [15:15:22]Waiting for new connection... [15:15:22] Sock 8.Parse request [15:15:22]Sock 8.Check first char [15:15:22]Sock 8.First char is OK [15:15:22]request: POST /json_proto HTTP/1.0 [15:15:22]Method: POST [15:15:22]URL: /json_proto [15:15:22]Method is POST - this is cgi request [15:15:22]url: /json_proto [15:15:22]query_string will be loaded in cgi processing [15:15:22]execute_cgi json_proto POST (null) [15:15:22]execute_cgi path=json_proto method=POST [15:15:22]POST find Content-Length [15:15:22]Host: 172.17.35.133:8080 [15:15:22]Content-Length: 696 [15:15:22]Content-Type: application/json [15:15:22] [15:15:22]POST finish read [15:15:22]Found Content-Length = 696 [15:15:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254345", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 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:15:22]execute_script... [15:15: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)254345", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 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:15:22]POST & json_proto [15:15:22]process_json_proto [15:15:22]json parsed OK: [15:15:22]protocol is kg_v1.0 [15:15:22]action value=close_receipt [15:15:22]process_action close_receipt [15:15:22]cmd_close_receipt [15:15:22]MH_GetDate [15:15:22]Write to MH i2c: F0 00 00 68 3A 91 [15:15:22]Write i2c OK [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: F0 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: F0 09 00 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: F0 09 00 68 3A 00 99 5E 6C 66 8C 55 28 65 D1 [15:15:22]GetLastDocTimeStamp 1718378103 [15:15:22]current date 1718378137 [15:15:22]FM_GetShiftState [15:15:22]SAM_PROTO_GetShiftState [15:15:22]wFMCommunicate request_size=4 [15:15:22]MH_SAM_APDU [15:15:22]CAPDU: 80 13 01 00 [15:15:22]Write to MH i2c: E2 08 00 69 3A 80 13 01 00 00 00 00 00 20 [15:15:22]Write i2c OK [15:15:22]MH_I2C_Read... [15:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:22]Read from MH i2c: E2 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 0E 00 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 0E 00 69 3A 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 91 [15:15:22]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [15:15:22]wFMCommunicate OK [15:15:22]SAM_PROTO_GetShiftState done [15:15:22]FM_GetShiftState done [15:15:22]opened in 1718324742 [15:15:22]opened+sec_in_day 1718411142 [15:15:22]quantity*price = 11300 [15:15:22]sum+1 = 11301 [15:15:22]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 113.00 袧小袩 1% : 1.00 袧袛小 12% : 12.00 袧邪谢懈褔薪褘屑懈: 113.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 36 14.06.2024 15:15 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22122 肖袩袛: 247172434732912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T151537&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22122&fm=247172434732912&tin=02508201610067®Number=0000000000099755&sum=11300 0 [15:15:24]StoreToDocumentArchive [15:15:24]shift 325 fd 22122 [15:15:24]save to /storage/0325/doc_00022122 [15:15:24]save last doc name /storage/0325/doc_00022122 to /storage/kkm_last_doc_name [15:15:24]save OK [15:15:24]Clear old archive folders... [15:15:24]ProcessDocumentItem done err = 0, tmpTLVsize=296 [15:15:24]tlvbuf is 002558A0 [15:15:24]SAM_PROTO_ClearQueue [15:15:24]wFMCommunicate request_size=4 [15:15:24]MH_SAM_APDU [15:15:24]CAPDU: 80 09 00 00 [15:15:24]Write to MH i2c: E2 08 00 76 3A 80 09 00 00 00 00 00 00 22 [15:15:24]Write i2c OK [15:15:24]MH_I2C_Read... [15:15:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:24]Read from MH i2c: E2 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: E2 03 00 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: E2 03 00 76 3A 00 90 00 24 [15:15:24]RAPDU: 90 00 [15:15:24]wFMCommunicate OK [15:15:24]SAM_PROTO_ClearQueue done [15:15:24]KKMCreateOFDPacket [15:15:24]OFDProtocolAddRootSTLVToBuf [15:15:24]FM_MakeSignedData [15:15:24]FM_MakeSignedData [15:15:24]SAM_PROTO_SignData [15:15:24]wFMCommunicate request_size=4 [15:15:24]MH_SAM_APDU [15:15:24]CAPDU: 80 0D 01 02 [15:15:24]Write to MH i2c: E2 08 00 77 3A 80 0D 01 02 00 00 00 00 2A [15:15:24]Write i2c OK [15:15:24]MH_I2C_Read... [15:15:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:24]Read from MH i2c: E2 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: E2 03 00 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: E2 03 00 77 3A 00 90 00 25 [15:15:24]RAPDU: 90 00 [15:15:24]wFMCommunicate OK [15:15:24]wFMCommunicate request_size=255 [15:15:24]MH_SAM_APDU [15:15:24]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 24 00 00 00 F4 03 04 00 99 5E 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [15:15:24]Write to MH i2c: E2 02 01 78 3A 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 24 00 00 00 F4 03 04 00 99 5E 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 B6 [15:15:24]Write i2c OK [15:15:24]MH_I2C_Read... [15:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:24]Read from MH i2c: E2 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: E2 03 00 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: E2 03 00 78 3A 00 90 00 26 [15:15:24]RAPDU: 90 00 [15:15:24]wFMCommunicate OK [15:15:24]wFMCommunicate request_size=55 [15:15:24]MH_SAM_APDU [15:15:24]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 6A 56 00 00 35 04 06 00 E0 CD 51 2B A7 70 [15:15:24]Write to MH i2c: E2 3A 00 79 3A 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 6A 56 00 00 35 04 06 00 E0 CD 51 2B A7 70 00 00 8F [15:15:24]Write i2c OK [15:15:24]MH_I2C_Read... [15:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:24]Read from MH i2c: E2 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: E2 03 00 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: E2 03 00 79 3A 00 90 00 27 [15:15:24]RAPDU: 90 00 [15:15:24]wFMCommunicate OK [15:15:24]wFMCommunicate request_size=4 [15:15:24]MH_SAM_APDU [15:15:24]CAPDU: 80 0D 03 02 [15:15:24]Write to MH i2c: E2 08 00 7A 3A 80 0D 03 02 00 00 00 00 2F [15:15:24]Write i2c OK [15:15:24]MH_I2C_Read... [15:15:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:24]Read from MH i2c: E2 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: E2 0B 00 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: E2 0B 00 7A 3A 00 65 83 4E 76 A8 0F 31 87 90 00 4B [15:15:24]RAPDU: 65 83 4E 76 A8 0F 31 87 90 00 [15:15:24]wFMCommunicate OK [15:15:24]SAM_PROTO_SignData done [15:15:24]FM_MakeSignedData done [15:15:24]CreateOFDProtocolMessage [15:15:24]wFMCommunicate request_size=4 [15:15:24]MH_SAM_APDU [15:15:24]CAPDU: 80 11 00 00 [15:15:24]Write to MH i2c: E2 08 00 7B 3A 80 11 00 00 00 00 00 00 2F [15:15:24]Write i2c OK [15:15:24]MH_I2C_Read... [15:15:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:24]Read from MH i2c: E2 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: E2 17 00 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: E2 17 00 7B 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 81 [15:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:15:24]wFMCommunicate OK [15:15:24]CreateOFDProtocolMessage done [15:15:24]OFDSenderStorePacket 22122 [15:15:24]StoreOFDPacket docnum=22122 [15:15:24]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 C7 15 34 01 4B 75 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 24 00 00 00 F4 03 04 00 99 5E 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 E0 CD 51 2B A7 70 65 83 4E 76 A8 0F 31 87 [15:15:24]CheckFolder [15:15:24]dirname=/storage/ofd_packets [15:15:24]CheckFolder done [15:15:24]ProducePacketName [15:15:24]name=ofd_packets/00022122 [15:15:24]NVStorageSaveData ofd_packets/00022122 [15:15:24]File name is /storage/ofd_packets/00022122 [15:15:24]Write 346 bytes [15:15:24]NVStorageSaveData done [15:15:24]OFDSenderStorePacket done [15:15:24]KKMCreateOFDPacket done [15:15:24]NVStorageSaveData kkm_last_timestamp [15:15:24]File name is /storage/kkm_last_timestamp [15:15:24]Write 4 bytes [15:15:24]NVStorageSaveData done [15:15:24]ExternCall_PrintAddStr [15:15:24]wPrintStart [15:15:24]Write to MH i2c: 01 00 00 7C 3A B6 [15:15:24]Write i2c OK [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: 01 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: 01 07 00 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: 01 07 00 7C 3A 00 00 00 00 00 FF 0F CB [15:15:24]RasterBufferAndPrint [15:15:24]line 小褔械褌 N : (3)254345 [15:15:24]line 袠袧袧: 02508201610067 [15:15:24]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [15:15:24]line 袩袪袨袛袗袞袗 [15:15:24]line 孝芯胁邪褉: 4870202521261 [15:15:24]line 袧邪锌懈褌芯泻 MAXI 褔邪泄 1,2 谢械褋薪褘械 褟谐芯写褘 [15:15:24]line 1.000 * 113.00 [15:15:24]line = 113.00 [15:15:24]line 袧袛小 12% 袧小袩 1% [15:15:24]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [15:15:24]line 袠孝袨袚袨: 113.00 [15:15:24]line 袧小袩 1% : 1.00 [15:15:24]line 袧袛小 12% : 12.00 [15:15:24]line 袧邪谢懈褔薪褘屑懈: 113.00 [15:15:24]line 袘械蟹薪邪谢.: 0.00 [15:15:24]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [15:15:24]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [15:15:24]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [15:15:24]line 效械泻 36 14.06.2024 15:15 [15:15:24]line 小屑械薪邪: 325 肖肖袛: 1.0 [15:15:24]line 袟袧袦: 0300000200 [15:15:24]line 袪袧袦: 0000000000099755 [15:15:24]line 袙械褉褋懈褟 袣袣袦: 001 [15:15:24]line 肖袦: 0000000000965344 [15:15:24]line 肖袛: 22122 [15:15:24]line 肖袩袛: 247172434732912 [15:15:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T151537&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22122&fm=247172434732912&tin=02508201610067®Number=0000000000099755&sum=11300 [15:15:24]line 0 [15:15:24]OFD Sender: Processing packet 22122 [packets to send 5, broken 4] [15:15:24]ProducePacketName [15:15:24]name=ofd_packets/00022122 [15:15:24]OFD Sender: To server: 嚂鰌G, [15:15:24]CommunicateWithHost lk.salyk.kg:30040 [15:15:24]ConnectInit lk.salyk.kg [15:15:24]written 0, free lines is 4095 [15:15:25]Connected sock=10 [15:15: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 3C 01 00 00 C7 15 34 01 4B 75 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 24 00 00 00 F4 03 04 00 99 5E 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 E0 CD 51 2B A7 70 65 83 4E 76 A8 0F 31 87 [15:15:25]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 94 64 47 00 2C 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 6A 56 00 00 F4 03 04 00 59 07 6C 66 B6 04 01 00 00 BB D3 56 61 13 1A A4 50 [15:15:25]CommunicateWithHost err = 0 [15:15:25]CheckOFDResponse [15:15:25]1017 (14) - 77093643461234 [15:15:25]1041 (16) - 0000000000965344 [15:15:25]1040 (4) - 22122 [15:15:25]1012 (4) - 14.06.2024 09:03 [15:15:25]1206 (1) - 0 [15:15:25]OFD Sender: Remove packet 22122 [15:15:25]ProducePacketName [15:15:25]name=ofd_packets/00022122 [15:15:25]NVStorageDeleteData [15:15:25]Write to MH i2c: 01 00 00 A5 3A DF [15:15:25]Write i2c OK [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: 01 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: 01 07 00 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: 01 07 00 A5 3A 00 00 00 00 00 0F 0D 02 [15:15:25]RasterBufferAndPrint [15:15:25]line [15:15:25]line [15:15:25]line [15:15:25]line [15:15:25]line [15:15:25]written 0, free lines is 3349 [15:15:25]MH_Cut [15:15:25]Write to MH i2c: D1 01 00 AC 3A 01 B8 [15:15:25]Write i2c OK [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: D1 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: D1 01 00 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: D1 01 00 AC 3A 00 B7 [15:15:25]Write to MH i2c: 01 00 00 AD 3A E7 [15:15:25]Write i2c OK [15:15:25]MH_I2C_Read... [15:15:25]OFD Sender: No OFD packet to send [15:15:26]*** Cut start [15:15:26]*** Partial cut [15:15:26]*** CUTSNS_PIN = 1 [15:15:26]*** CUTSNS_PIN = 0 [15:15:26]*** Brake cut motor [15:15:26]Read from MH i2c: 01 [15:15:26]MH_I2C_Read... [15:15:26]*** Stop cut motor [15:15:26]*** Cut end [15:15:26]Read from MH i2c: 01 07 00 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: 01 07 00 AD 3A 00 00 00 00 00 FF 0F FC [15:15:26]process_action close_receipt done [15:15:26]requested_data is exist [15:15:26]produce_requested_data [15:15:26]requested_item fm.sn is exist - process it [15:15:26]wFMCommunicate request_size=4 [15:15:26]MH_SAM_APDU [15:15:26]CAPDU: 80 11 00 00 [15:15:26]Write to MH i2c: E2 08 00 AE 3A 80 11 00 00 00 00 00 00 62 [15:15:26]Write i2c OK [15:15:26]MH_I2C_Read... [15:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:26]Read from MH i2c: E2 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 17 00 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 17 00 AE 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 B4 [15:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:15:26]wFMCommunicate OK [15:15:26]requested_item fd.num is exist - process it [15:15:26]SAM_PROTO_GetFieldsCounters [15:15:26]wFMCommunicate request_size=4 [15:15:26]MH_SAM_APDU [15:15:26]CAPDU: 80 13 00 00 [15:15:26]Write to MH i2c: E2 08 00 AF 3A 80 13 00 00 00 00 00 00 65 [15:15:26]Write i2c OK [15:15:26]MH_I2C_Read... [15:15:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:26]Read from MH i2c: E2 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 62 00 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 62 00 AF 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 6A 56 00 00 0E 04 04 00 45 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 01 [15:15: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 6A 56 00 00 0E 04 04 00 45 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 [15:15:26]wFMCommunicate OK [15:15:26]SAM_PROTO_GetFieldsCounters done [15:15:26]requested_item shift.num is exist - process it [15:15:26]requested_item shift.opened is exist - process it [15:15:26]req_shift_opened [15:15:26]FM_GetShiftState [15:15:26]SAM_PROTO_GetShiftState [15:15:26]wFMCommunicate request_size=4 [15:15:26]MH_SAM_APDU [15:15:26]CAPDU: 80 13 01 00 [15:15:26]Write to MH i2c: E2 08 00 B0 3A 80 13 01 00 00 00 00 00 67 [15:15:26]Write i2c OK [15:15:26]MH_I2C_Read... [15:15:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:26]Read from MH i2c: E2 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 0E 00 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 0E 00 B0 3A 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 D8 [15:15:26]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [15:15:26]wFMCommunicate OK [15:15:26]SAM_PROTO_GetShiftState done [15:15:26]FM_GetShiftState done [15:15:26]req_shift_opened done [15:15:26]requested_item shift.open_date is exist - process it [15:15:26]req_shift_open_date [15:15:26]req_shift_open_date done [15:15:26]produce_requested_data done [15:15:26]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22122,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [15:15:26]process_action_free close_receipt [15:15:26]json_value_free [15:15:26]json_value_free done [15:15:26]process_json_proto returns [15:15:26]Send response to host [15:15:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22122,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [15:15:26]free response buf [15:15:26]execute_script done [15:15:26]execute_script returns [15:15:26]free content buf [15:15:26]Sock 8.Close socket [15:15:26]Sock 8.Thread stoped [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:12]OFD Sender: No OFD packet to send [16:01:17]OFD Sender: No OFD packet to send [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:08]accept exits with 9 [16:11:08]New connection [16:11:08]New thread 3067321700 created [16:11:08]Thread 3067178340 joined [16:11:08]Waiting for new connection... [16:11:08] Sock 9.Parse request [16:11:08]Sock 9.Check first char [16:11:08]Sock 9.First char is OK [16:11:08]request: POST /json_proto HTTP/1.0 [16:11:08]Method: POST [16:11:08]URL: /json_proto [16:11:08]Method is POST - this is cgi request [16:11:08]url: /json_proto [16:11:08]query_string will be loaded in cgi processing [16:11:08]execute_cgi json_proto POST (null) [16:11:08]execute_cgi path=json_proto method=POST [16:11:08]POST find Content-Length [16:11:08]Host: 172.17.35.133:8080 [16:11:08]Content-Length: 711 [16:11:08]Content-Type: application/json [16:11:08] [16:11:08]POST finish read [16:11:08]Found Content-Length = 711 [16:11:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254346", "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" ] } } [16:11:08]execute_script... [16:11:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254346", "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" ] } } [16:11:08]POST & json_proto [16:11:08]process_json_proto [16:11:08]json parsed OK: [16:11:08]protocol is kg_v1.0 [16:11:08]action value=close_receipt [16:11:08]process_action close_receipt [16:11:08]cmd_close_receipt [16:11:08]MH_GetDate [16:11:08]Write to MH i2c: F0 00 00 B1 3A DA [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: F0 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: F0 09 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: F0 09 00 B1 3A 00 AB 6B 6C 66 8C 55 28 65 39 [16:11:08]GetLastDocTimeStamp 1718378137 [16:11:08]current date 1718381483 [16:11:08]FM_GetShiftState [16:11:08]SAM_PROTO_GetShiftState [16:11:08]wFMCommunicate request_size=4 [16:11:08]MH_SAM_APDU [16:11:08]CAPDU: 80 13 01 00 [16:11:08]Write to MH i2c: E2 08 00 B2 3A 80 13 01 00 00 00 00 00 69 [16:11:08]Write i2c OK [16:11:08]MH_I2C_Read... [16:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:08]Read from MH i2c: E2 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 0E 00 [16:11:08]MH_I2C_Read... [16:11:08]Read from MH i2c: E2 0E 00 B2 3A 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 DA [16:11:08]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [16:11:08]wFMCommunicate OK [16:11:08]SAM_PROTO_GetShiftState done [16:11:08]FM_GetShiftState done [16:11:08]opened in 1718324742 [16:11:08]opened+sec_in_day 1718411142 [16:11:08]quantity*price = 11300 [16:11:08]sum+1 = 11301 [16:11:08]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 113.00 袧小袩 1% : 1.00 袧袛小 12% : 12.00 袧邪谢懈褔薪褘屑懈: 113.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 37 14.06.2024 16:11 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22123 肖袩袛: 15692564618445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T161123&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22123&fm=15692564618445&tin=02508201610067®Number=0000000000099755&sum=11300 0 [16:11:10]StoreToDocumentArchive [16:11:10]shift 325 fd 22123 [16:11:10]save to /storage/0325/doc_00022123 [16:11:10]save last doc name /storage/0325/doc_00022123 to /storage/kkm_last_doc_name [16:11:10]save OK [16:11:10]Clear old archive folders... [16:11:10]ProcessDocumentItem done err = 0, tmpTLVsize=303 [16:11:10]tlvbuf is 002BDA00 [16:11:10]SAM_PROTO_ClearQueue [16:11:10]wFMCommunicate request_size=4 [16:11:10]MH_SAM_APDU [16:11:10]CAPDU: 80 09 00 00 [16:11:10]Write to MH i2c: E2 08 00 BF 3A 80 09 00 00 00 00 00 00 6B [16:11:10]Write i2c OK [16:11:10]MH_I2C_Read... [16:11:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:10]Read from MH i2c: E2 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: E2 03 00 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: E2 03 00 BF 3A 00 90 00 6D [16:11:10]RAPDU: 90 00 [16:11:10]wFMCommunicate OK [16:11:10]SAM_PROTO_ClearQueue done [16:11:10]KKMCreateOFDPacket [16:11:10]OFDProtocolAddRootSTLVToBuf [16:11:10]FM_MakeSignedData [16:11:10]FM_MakeSignedData [16:11:10]SAM_PROTO_SignData [16:11:10]wFMCommunicate request_size=4 [16:11:10]MH_SAM_APDU [16:11:10]CAPDU: 80 0D 01 02 [16:11:10]Write to MH i2c: E2 08 00 C0 3A 80 0D 01 02 00 00 00 00 73 [16:11:10]Write i2c OK [16:11:10]MH_I2C_Read... [16:11:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:10]Read from MH i2c: E2 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: E2 03 00 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: E2 03 00 C0 3A 00 90 00 6E [16:11:10]RAPDU: 90 00 [16:11:10]wFMCommunicate OK [16:11:10]wFMCommunicate request_size=255 [16:11:10]MH_SAM_APDU [16:11:10]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 25 00 00 00 F4 03 04 00 AB 6B 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D [16:11:10]Write to MH i2c: E2 02 01 C1 3A 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 25 00 00 00 F4 03 04 00 AB 6B 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 00 00 91 [16:11:10]Write i2c OK [16:11:10]MH_I2C_Read... [16:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:10]Read from MH i2c: E2 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: E2 03 00 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: E2 03 00 C1 3A 00 90 00 6F [16:11:10]RAPDU: 90 00 [16:11:10]wFMCommunicate OK [16:11:10]wFMCommunicate request_size=62 [16:11:10]MH_SAM_APDU [16:11:10]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 6B 56 00 00 35 04 06 00 0E 45 B5 BD 5C CD [16:11:10]Write to MH i2c: E2 41 00 C2 3A 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 6B 56 00 00 35 04 06 00 0E 45 B5 BD 5C CD 00 00 69 [16:11:10]Write i2c OK [16:11:10]MH_I2C_Read... [16:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:10]Read from MH i2c: E2 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: E2 03 00 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: E2 03 00 C2 3A 00 90 00 70 [16:11:10]RAPDU: 90 00 [16:11:10]wFMCommunicate OK [16:11:10]wFMCommunicate request_size=4 [16:11:10]MH_SAM_APDU [16:11:10]CAPDU: 80 0D 03 02 [16:11:10]Write to MH i2c: E2 08 00 C3 3A 80 0D 03 02 00 00 00 00 78 [16:11:10]Write i2c OK [16:11:10]MH_I2C_Read... [16:11:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:10]Read from MH i2c: E2 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: E2 0B 00 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: E2 0B 00 C3 3A 00 B6 A4 37 91 BD 5D 8F 39 90 00 7D [16:11:10]RAPDU: B6 A4 37 91 BD 5D 8F 39 90 00 [16:11:10]wFMCommunicate OK [16:11:10]SAM_PROTO_SignData done [16:11:10]FM_MakeSignedData done [16:11:10]CreateOFDProtocolMessage [16:11:10]wFMCommunicate request_size=4 [16:11:10]MH_SAM_APDU [16:11:10]CAPDU: 80 11 00 00 [16:11:10]Write to MH i2c: E2 08 00 C4 3A 80 11 00 00 00 00 00 00 78 [16:11:10]Write i2c OK [16:11:10]MH_I2C_Read... [16:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:10]Read from MH i2c: E2 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: E2 17 00 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: E2 17 00 C4 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 CA [16:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [16:11:10]wFMCommunicate OK [16:11:10]CreateOFDProtocolMessage done [16:11:10]OFDSenderStorePacket 22123 [16:11:10]StoreOFDPacket docnum=22123 [16:11:10]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 44 8F 3B 01 49 66 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 25 00 00 00 F4 03 04 00 AB 6B 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 0E 45 B5 BD 5C CD B6 A4 37 91 BD 5D 8F 39 [16:11:10]CheckFolder [16:11:10]dirname=/storage/ofd_packets [16:11:10]CheckFolder done [16:11:10]ProducePacketName [16:11:10]name=ofd_packets/00022123 [16:11:10]NVStorageSaveData ofd_packets/00022123 [16:11:10]File name is /storage/ofd_packets/00022123 [16:11:10]Write 353 bytes [16:11:10]NVStorageSaveData done [16:11:10]OFDSenderStorePacket done [16:11:10]KKMCreateOFDPacket done [16:11:10]NVStorageSaveData kkm_last_timestamp [16:11:10]File name is /storage/kkm_last_timestamp [16:11:10]Write 4 bytes [16:11:10]NVStorageSaveData done [16:11:10]ExternCall_PrintAddStr [16:11:10]wPrintStart [16:11:10]Write to MH i2c: 01 00 00 C5 3A FF [16:11:10]Write i2c OK [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: 01 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: 01 07 00 [16:11:10]MH_I2C_Read... [16:11:10]Read from MH i2c: 01 07 00 C5 3A 00 00 00 00 00 FF 0F 14 [16:11:10]RasterBufferAndPrint [16:11:10]line 小褔械褌 N : (3)254346 [16:11:10]line 袠袧袧: 02508201610067 [16:11:10]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:11:10]line 袩袪袨袛袗袞袗 [16:11:10]line 孝芯胁邪褉: 4870202521216 [16:11:10]line 袧邪锌懈褌芯泻 MAXI 褔邪泄 1,2 蟹械谢.谢懈屑芯薪 (薪芯胁褘泄) [16:11:10]line 1.000 * 113.00 [16:11:10]line = 113.00 [16:11:10]line 袧袛小 12% 袧小袩 1% [16:11:10]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:11:10]line 袠孝袨袚袨: 113.00 [16:11:10]line 袧小袩 1% : 1.00 [16:11:10]line 袧袛小 12% : 12.00 [16:11:10]line 袧邪谢懈褔薪褘屑懈: 113.00 [16:11:10]line 袘械蟹薪邪谢.: 0.00 [16:11:10]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [16:11:10]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [16:11:10]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:11:10]line 效械泻 37 14.06.2024 16:11 [16:11:10]line 小屑械薪邪: 325 肖肖袛: 1.0 [16:11:10]line 袟袧袦: 0300000200 [16:11:10]line 袪袧袦: 0000000000099755 [16:11:10]line 袙械褉褋懈褟 袣袣袦: 001 [16:11:10]line 肖袦: 0000000000965344 [16:11:10]line 肖袛: 22123 [16:11:10]line 肖袩袛: 15692564618445 [16:11:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T161123&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22123&fm=15692564618445&tin=02508201610067®Number=0000000000099755&sum=11300 [16:11:11]line 0 [16:11:11]OFD Sender: Processing packet 22123 [packets to send 5, broken 4] [16:11:11]ProducePacketName [16:11:11]name=ofd_packets/00022123 [16:11:11]OFD Sender: To server: 嚂鰌G, [16:11:11]CommunicateWithHost lk.salyk.kg:30040 [16:11:11]ConnectInit lk.salyk.kg [16:11:11]written 0, free lines is 4095 [16:11:11]Connected sock=10 [16:11:11]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 44 8F 3B 01 49 66 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 25 00 00 00 F4 03 04 00 AB 6B 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 0E 45 B5 BD 5C CD B6 A4 37 91 BD 5D 8F 39 [16:11:11]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 DA 6D 47 00 69 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 6B 56 00 00 F4 03 04 00 6B 14 6C 66 B6 04 01 00 00 83 2D 80 90 D8 44 60 AE [16:11:11]CommunicateWithHost err = 0 [16:11:11]CheckOFDResponse [16:11:11]1017 (14) - 77093643461234 [16:11:11]1041 (16) - 0000000000965344 [16:11:11]1040 (4) - 22123 [16:11:11]1012 (4) - 14.06.2024 09:59 [16:11:11]1206 (1) - 0 [16:11:11]OFD Sender: Remove packet 22123 [16:11:11]ProducePacketName [16:11:11]name=ofd_packets/00022123 [16:11:11]NVStorageDeleteData [16:11:11]Write to MH i2c: 01 00 00 EE 3A 28 [16:11:11]Write i2c OK [16:11:11]MH_I2C_Read... [16:11:11]Read from MH i2c: 01 [16:11:11]MH_I2C_Read... [16:11:11]Read from MH i2c: 01 07 00 [16:11:11]MH_I2C_Read... [16:11:11]Read from MH i2c: 01 07 00 EE 3A 00 00 00 00 00 0C 0D 48 [16:11:11]RasterBufferAndPrint [16:11:11]line [16:11:11]line [16:11:11]line [16:11:11]line [16:11:11]line [16:11:11]written 0, free lines is 3346 [16:11:11]MH_Cut [16:11:11]Write to MH i2c: D1 01 00 F5 3A 01 01 [16:11:11]Write i2c OK [16:11:11]MH_I2C_Read... [16:11:11]Read from MH i2c: D1 [16:11:11]MH_I2C_Read... [16:11:11]Read from MH i2c: D1 01 00 [16:11:11]MH_I2C_Read... [16:11:11]Read from MH i2c: D1 01 00 F5 3A 00 00 [16:11:11]Write to MH i2c: 01 00 00 F6 3A 30 [16:11:11]Write i2c OK [16:11:11]MH_I2C_Read... [16:11:11]OFD Sender: No OFD packet to send [16:11:12]*** Cut start [16:11:12]*** Partial cut [16:11:12]*** CUTSNS_PIN = 1 [16:11:12]*** CUTSNS_PIN = 0 [16:11:12]*** Brake cut motor [16:11:12]Read from MH i2c: 01 [16:11:12]MH_I2C_Read... [16:11:12]*** Stop cut motor [16:11:12]*** Cut end [16:11:12]Read from MH i2c: 01 07 00 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: 01 07 00 F6 3A 00 00 00 00 00 FF 0F 45 [16:11:12]process_action close_receipt done [16:11:12]requested_data is exist [16:11:12]produce_requested_data [16:11:12]requested_item fm.sn is exist - process it [16:11:12]wFMCommunicate request_size=4 [16:11:12]MH_SAM_APDU [16:11:12]CAPDU: 80 11 00 00 [16:11:12]Write to MH i2c: E2 08 00 F7 3A 80 11 00 00 00 00 00 00 AB [16:11:12]Write i2c OK [16:11:12]MH_I2C_Read... [16:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:12]Read from MH i2c: E2 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 17 00 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 17 00 F7 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 FD [16:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [16:11:12]wFMCommunicate OK [16:11:12]requested_item fd.num is exist - process it [16:11:12]SAM_PROTO_GetFieldsCounters [16:11:12]wFMCommunicate request_size=4 [16:11:12]MH_SAM_APDU [16:11:12]CAPDU: 80 13 00 00 [16:11:12]Write to MH i2c: E2 08 00 F8 3A 80 13 00 00 00 00 00 00 AE [16:11:12]Write i2c OK [16:11:12]MH_I2C_Read... [16:11:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:12]Read from MH i2c: E2 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 62 00 [16:11:12]MH_I2C_Read... [16:11:12]Read from MH i2c: E2 62 00 F8 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 6B 56 00 00 0E 04 04 00 45 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 4E [16:11:12]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 56 00 00 0E 04 04 00 45 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 [16:11:12]wFMCommunicate OK [16:11:12]SAM_PROTO_GetFieldsCounters done [16:11:12]requested_item shift.num is exist - process it [16:11:12]requested_item shift.opened is exist - process it [16:11:12]req_shift_opened [16:11:12]FM_GetShiftState [16:11:12]SAM_PROTO_GetShiftState [16:11:12]wFMCommunicate request_size=4 [16:11:12]MH_SAM_APDU [16:11:12]CAPDU: 80 13 01 00 [16:11:12]Write to MH i2c: E2 08 00 F9 3A 80 13 01 00 00 00 00 00 B0 [16:11:12]Write i2c OK [16:11:12]MH_I2C_Read... [16:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:13]Read from MH i2c: E2 [16:11:13]MH_I2C_Read... [16:11:13]Read from MH i2c: E2 0E 00 [16:11:13]MH_I2C_Read... [16:11:13]Read from MH i2c: E2 0E 00 F9 3A 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 21 [16:11:13]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [16:11:13]wFMCommunicate OK [16:11:13]SAM_PROTO_GetShiftState done [16:11:13]FM_GetShiftState done [16:11:13]req_shift_opened done [16:11:13]requested_item shift.open_date is exist - process it [16:11:13]req_shift_open_date [16:11:13]req_shift_open_date done [16:11:13]produce_requested_data done [16:11:13]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22123,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [16:11:13]process_action_free close_receipt [16:11:13]json_value_free [16:11:13]json_value_free done [16:11:13]process_json_proto returns [16:11:13]Send response to host [16:11:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22123,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [16:11:13]free response buf [16:11:13]execute_script done [16:11:13]execute_script returns [16:11:13]free content buf [16:11:13]Sock 9.Close socket [16:11:13]Sock 9.Thread stoped [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:08]accept exits with 8 [16:13:08]New connection [16:13:08]New thread 3067178340 created [16:13:08]Thread 3067321700 joined [16:13:08]Waiting for new connection... [16:13:08] Sock 8.Parse request [16:13:08]Sock 8.Check first char [16:13:08]Sock 8.First char is OK [16:13:08]request: POST /json_proto HTTP/1.0 [16:13:08]Method: POST [16:13:08]URL: /json_proto [16:13:08]Method is POST - this is cgi request [16:13:08]url: /json_proto [16:13:08]query_string will be loaded in cgi processing [16:13:08]execute_cgi json_proto POST (null) [16:13:08]execute_cgi path=json_proto method=POST [16:13:08]POST find Content-Length [16:13:08]Host: 172.17.35.133:8080 [16:13:08]Content-Length: 782 [16:13:08]Content-Type: application/json [16:13:08] [16:13:08]POST finish read [16:13:08]Found Content-Length = 782 [16:13:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254347", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:08]execute_script... [16:13:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254347", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:08]POST & json_proto [16:13:08]process_json_proto [16:13:08]json parsed OK: [16:13:08]protocol is kg_v1.0 [16:13:08]action value=close_receipt [16:13:08]process_action close_receipt [16:13:08]cmd_close_receipt [16:13:08]MH_GetDate [16:13:08]Write to MH i2c: F0 00 00 FA 3A 23 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: F0 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: F0 09 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: F0 09 00 FA 3A 00 23 6C 6C 66 8C 55 28 65 FB [16:13:08]GetLastDocTimeStamp 1718381483 [16:13:08]current date 1718381603 [16:13:08]FM_GetShiftState [16:13:08]SAM_PROTO_GetShiftState [16:13:08]wFMCommunicate request_size=4 [16:13:08]MH_SAM_APDU [16:13:08]CAPDU: 80 13 01 00 [16:13:08]Write to MH i2c: E2 08 00 FB 3A 80 13 01 00 00 00 00 00 B2 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:08]Read from MH i2c: E2 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 0E 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 0E 00 FB 3A 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 23 [16:13:08]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [16:13:08]wFMCommunicate OK [16:13:08]SAM_PROTO_GetShiftState done [16:13:08]FM_GetShiftState done [16:13:08]opened in 1718324742 [16:13:08]opened+sec_in_day 1718411142 [16:13:08]quantity*price = 14000 [16:13:08]sum+1 = 14001 [16:13:08]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 140.00 袧小袩 1% : 1.24 袧袛小 12% : 14.87 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 140.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 38 14.06.2024 16:13 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: O! 写械薪褜谐懈 肖袦: 0000000000965344 肖袛: 22124 肖袩袛: 187833754263434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T161323&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22124&fm=187833754263434&tin=02508201610067®Number=0000000000099755&sum=14000 0 [16:13:09]StoreToDocumentArchive [16:13:09]shift 325 fd 22124 [16:13:09]save to /storage/0325/doc_00022124 [16:13:09]save last doc name /storage/0325/doc_00022124 to /storage/kkm_last_doc_name [16:13:10]save OK [16:13:10]Clear old archive folders... [16:13:10]ProcessDocumentItem done err = 0, tmpTLVsize=273 [16:13:10]tlvbuf is 00255B80 [16:13:10]SAM_PROTO_ClearQueue [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 09 00 00 [16:13:10]Write to MH i2c: E2 08 00 08 3B 80 09 00 00 00 00 00 00 B5 [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 03 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 03 00 08 3B 00 90 00 B7 [16:13:10]RAPDU: 90 00 [16:13:10]wFMCommunicate OK [16:13:10]SAM_PROTO_ClearQueue done [16:13:10]KKMCreateOFDPacket [16:13:10]OFDProtocolAddRootSTLVToBuf [16:13:10]FM_MakeSignedData [16:13:10]FM_MakeSignedData [16:13:10]SAM_PROTO_SignData [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 0D 01 02 [16:13:10]Write to MH i2c: E2 08 00 09 3B 80 0D 01 02 00 00 00 00 BD [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 03 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 03 00 09 3B 00 90 00 B8 [16:13:10]RAPDU: 90 00 [16:13:10]wFMCommunicate OK [16:13:10]wFMCommunicate request_size=255 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 23 6C 6C 66 0E 04 04 00 45 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 [16:13:10]Write to MH i2c: E2 02 01 0A 3B 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 23 6C 6C 66 0E 04 04 00 45 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 89 [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 03 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 03 00 0A 3B 00 90 00 B9 [16:13:10]RAPDU: 90 00 [16:13:10]wFMCommunicate OK [16:13:10]wFMCommunicate request_size=32 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 34 34 10 04 04 00 6C 56 00 00 35 04 06 00 AA D5 74 33 1F 8A [16:13:10]Write to MH i2c: E2 23 00 0B 3B 80 0D 02 02 1B 00 30 30 30 39 36 35 33 34 34 10 04 04 00 6C 56 00 00 35 04 06 00 AA D5 74 33 1F 8A 00 00 AD [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 03 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 03 00 0B 3B 00 90 00 BA [16:13:10]RAPDU: 90 00 [16:13:10]wFMCommunicate OK [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 0D 03 02 [16:13:10]Write to MH i2c: E2 08 00 0C 3B 80 0D 03 02 00 00 00 00 C2 [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 0B 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 0B 00 0C 3B 00 74 3E 32 6D 92 2D 1B 0B 90 00 F9 [16:13:10]RAPDU: 74 3E 32 6D 92 2D 1B 0B 90 00 [16:13:10]wFMCommunicate OK [16:13:10]SAM_PROTO_SignData done [16:13:10]FM_MakeSignedData done [16:13:10]CreateOFDProtocolMessage [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 11 00 00 [16:13:10]Write to MH i2c: E2 08 00 0D 3B 80 11 00 00 00 00 00 00 C2 [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 17 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 17 00 0D 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 14 [16:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [16:13:10]wFMCommunicate OK [16:13:10]CreateOFDProtocolMessage done [16:13:10]OFDSenderStorePacket 22124 [16:13:10]StoreOFDPacket docnum=22124 [16:13:10]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 32 88 1D 01 45 85 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 23 6C 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 AA D5 74 33 1F 8A 74 3E 32 6D 92 2D 1B 0B [16:13:10]CheckFolder [16:13:10]dirname=/storage/ofd_packets [16:13:10]CheckFolder done [16:13:10]ProducePacketName [16:13:10]name=ofd_packets/00022124 [16:13:10]NVStorageSaveData ofd_packets/00022124 [16:13:10]File name is /storage/ofd_packets/00022124 [16:13:10]Write 323 bytes [16:13:10]NVStorageSaveData done [16:13:10]OFDSenderStorePacket done [16:13:10]KKMCreateOFDPacket done [16:13:10]NVStorageSaveData kkm_last_timestamp [16:13:10]File name is /storage/kkm_last_timestamp [16:13:10]Write 4 bytes [16:13:10]NVStorageSaveData done [16:13:10]ExternCall_PrintAddStr [16:13:10]wPrintStart [16:13:10]Write to MH i2c: 01 00 00 0E 3B 49 [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: 01 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: 01 07 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: 01 07 00 0E 3B 00 00 00 00 00 FF 0F 5E [16:13:10]RasterBufferAndPrint [16:13:10]line 小褔械褌 N : (3)254347 [16:13:10]line 袠袧袧: 02508201610067 [16:13:10]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:13:10]line 袩袪袨袛袗袞袗 [16:13:10]line 孝芯胁邪褉: 48743570 [16:13:10]line 小懈谐邪褉械褌褘 Winston XStyle Blue [16:13:10]line 1.000 * 140.00 [16:13:10]line = 140.00 [16:13:10]line 袧袛小 12% 袧小袩 1% [16:13:10]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:13:10]line 袠孝袨袚袨: 140.00 [16:13:10]line 袧小袩 1% : 1.24 [16:13:10]line 袧袛小 12% : 14.87 [16:13:10]line 袧邪谢懈褔薪褘屑懈: 0.00 [16:13:10]line 袘械蟹薪邪谢.: 140.00 [16:13:10]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [16:13:10]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [16:13:10]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:13:10]line 效械泻 38 14.06.2024 16:13 [16:13:10]line 小屑械薪邪: 325 肖肖袛: 1.0 [16:13:10]line 袟袧袦: 0300000200 [16:13:10]line 袪袧袦: 0000000000099755 [16:13:10]line 袙械褉褋懈褟 袣袣袦: 001 [16:13:10]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: O! 写械薪褜谐懈 [16:13:10]line 肖袦: 0000000000965344 [16:13:10]line 肖袛: 22124 [16:13:10]line 肖袩袛: 187833754263434 [16:13:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T161323&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22124&fm=187833754263434&tin=02508201610067®Number=0000000000099755&sum=14000 [16:13:10]line 0 [16:13:10]OFD Sender: Processing packet 22124 [packets to send 5, broken 4] [16:13:10]ProducePacketName [16:13:10]name=ofd_packets/00022124 [16:13:10]OFD Sender: To server: 嚂鰌G, [16:13:10]CommunicateWithHost lk.salyk.kg:30040 [16:13:10]ConnectInit lk.salyk.kg [16:13:10]written 0, free lines is 4095 [16:13:10]Connected sock=10 [16:13:10]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 32 88 1D 01 45 85 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 23 6C 6C 66 0E 04 04 00 45 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 56 00 00 35 04 06 00 AA D5 74 33 1F 8A 74 3E 32 6D 92 2D 1B 0B [16:13:11]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 13 4A 47 00 9C 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 6C 56 00 00 F4 03 04 00 E3 14 6C 66 B6 04 01 00 00 96 CC 36 E4 39 BF E9 D1 [16:13:11]CommunicateWithHost err = 0 [16:13:11]CheckOFDResponse [16:13:11]1017 (14) - 77093643461234 [16:13:11]1041 (16) - 0000000000965344 [16:13:11]1040 (4) - 22124 [16:13:11]1012 (4) - 14.06.2024 10:01 [16:13:11]1206 (1) - 0 [16:13:11]OFD Sender: Remove packet 22124 [16:13:11]ProducePacketName [16:13:11]name=ofd_packets/00022124 [16:13:11]NVStorageDeleteData [16:13:11]Write to MH i2c: 01 00 00 38 3B 73 [16:13:11]Write i2c OK [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: 01 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: 01 07 00 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: 01 07 00 38 3B 00 00 00 00 00 F7 0C 7D [16:13:11]RasterBufferAndPrint [16:13:11]line [16:13:11]line [16:13:11]line [16:13:11]line [16:13:11]line [16:13:11]written 0, free lines is 3326 [16:13:11]MH_Cut [16:13:11]Write to MH i2c: D1 01 00 3F 3B 01 4C [16:13:11]Write i2c OK [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: D1 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: D1 01 00 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: D1 01 00 3F 3B 00 4B [16:13:11]Write to MH i2c: 01 00 00 40 3B 7B [16:13:11]Write i2c OK [16:13:11]MH_I2C_Read... [16:13:11]OFD Sender: No OFD packet to send [16:13:12]*** Cut start [16:13:12]*** Partial cut [16:13:12]*** CUTSNS_PIN = 1 [16:13:12]*** CUTSNS_PIN = 0 [16:13:12]*** Brake cut motor [16:13:12]Read from MH i2c: 01 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: 01 07 00 [16:13:12]MH_I2C_Read... [16:13:12]*** Stop cut motor [16:13:12]*** Cut end [16:13:12]Read from MH i2c: 01 07 00 40 3B 00 00 00 00 00 FF 0F 90 [16:13:12]process_action close_receipt done [16:13:12]requested_data is exist [16:13:12]produce_requested_data [16:13:12]requested_item fm.sn is exist - process it [16:13:12]wFMCommunicate request_size=4 [16:13:12]MH_SAM_APDU [16:13:12]CAPDU: 80 11 00 00 [16:13:12]Write to MH i2c: E2 08 00 41 3B 80 11 00 00 00 00 00 00 F6 [16:13:12]Write i2c OK [16:13:12]MH_I2C_Read... [16:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:12]Read from MH i2c: E2 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 17 00 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 17 00 41 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 48 [16:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [16:13:12]wFMCommunicate OK [16:13:12]requested_item fd.num is exist - process it [16:13:12]SAM_PROTO_GetFieldsCounters [16:13:12]wFMCommunicate request_size=4 [16:13:12]MH_SAM_APDU [16:13:12]CAPDU: 80 13 00 00 [16:13:12]Write to MH i2c: E2 08 00 42 3B 80 13 00 00 00 00 00 00 F9 [16:13:12]Write i2c OK [16:13:12]MH_I2C_Read... [16:13:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:12]Read from MH i2c: E2 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 62 00 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 62 00 42 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 6C 56 00 00 0E 04 04 00 45 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 9D [16:13:12]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 56 00 00 0E 04 04 00 45 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 [16:13:12]wFMCommunicate OK [16:13:12]SAM_PROTO_GetFieldsCounters done [16:13:12]requested_item shift.num is exist - process it [16:13:12]requested_item shift.opened is exist - process it [16:13:12]req_shift_opened [16:13:12]FM_GetShiftState [16:13:12]SAM_PROTO_GetShiftState [16:13:12]wFMCommunicate request_size=4 [16:13:12]MH_SAM_APDU [16:13:12]CAPDU: 80 13 01 00 [16:13:12]Write to MH i2c: E2 08 00 43 3B 80 13 01 00 00 00 00 00 FB [16:13:12]Write i2c OK [16:13:12]MH_I2C_Read... [16:13:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:12]Read from MH i2c: E2 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 0E 00 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 0E 00 43 3B 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 6C [16:13:12]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [16:13:12]wFMCommunicate OK [16:13:12]SAM_PROTO_GetShiftState done [16:13:12]FM_GetShiftState done [16:13:12]req_shift_opened done [16:13:12]requested_item shift.open_date is exist - process it [16:13:12]req_shift_open_date [16:13:12]req_shift_open_date done [16:13:12]produce_requested_data done [16:13:12]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22124,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [16:13:12]process_action_free close_receipt [16:13:12]json_value_free [16:13:12]json_value_free done [16:13:12]process_json_proto returns [16:13:12]Send response to host [16:13:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22124,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [16:13:12]free response buf [16:13:12]execute_script done [16:13:12]execute_script returns [16:13:12]free content buf [16:13:12]Sock 8.Close socket [16:13:12]Sock 8.Thread stoped [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:51]OFD Sender: No OFD packet to send [16:15:56]OFD Sender: No OFD packet to send [16:16:01]OFD Sender: No OFD packet to send [16:16:06]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:14]accept exits with 9 [16:16:14]New connection [16:16:14]New thread 3067321700 created [16:16:14]Thread 3067178340 joined [16:16:14]Waiting for new connection... [16:16:14] Sock 9.Parse request [16:16:14]Sock 9.Check first char [16:16:14]Sock 9.First char is OK [16:16:14]request: POST /json_proto HTTP/1.0 [16:16:14]Method: POST [16:16:14]URL: /json_proto [16:16:14]Method is POST - this is cgi request [16:16:14]url: /json_proto [16:16:14]query_string will be loaded in cgi processing [16:16:14]execute_cgi json_proto POST (null) [16:16:14]execute_cgi path=json_proto method=POST [16:16:14]POST find Content-Length [16:16:14]Host: 172.17.35.133:8080 [16:16:14]Content-Length: 843 [16:16:14]Content-Type: application/json [16:16:14] [16:16:14]POST finish read [16:16:14]Found Content-Length = 843 [16:16:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254348", "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" : 1.000, "sum" : 560.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" : 560.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:14]execute_script... [16:16:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254348", "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" : 1.000, "sum" : 560.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" : 560.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:14]POST & json_proto [16:16:14]process_json_proto [16:16:14]json parsed OK: [16:16:14]protocol is kg_v1.0 [16:16:14]action value=close_receipt [16:16:14]process_action close_receipt [16:16:14]cmd_close_receipt [16:16:14]MH_GetDate [16:16:14]Write to MH i2c: F0 00 00 44 3B 6E [16:16:14]Write i2c OK [16:16:14]MH_I2C_Read... [16:16:14]Read from MH i2c: F0 [16:16:14]MH_I2C_Read... [16:16:14]Read from MH i2c: F0 09 00 [16:16:14]MH_I2C_Read... [16:16:14]Read from MH i2c: F0 09 00 44 3B 00 DD 6C 6C 66 8C 55 28 65 00 [16:16:14]GetLastDocTimeStamp 1718381603 [16:16:14]current date 1718381789 [16:16:14]FM_GetShiftState [16:16:14]SAM_PROTO_GetShiftState [16:16:14]wFMCommunicate request_size=4 [16:16:14]MH_SAM_APDU [16:16:14]CAPDU: 80 13 01 00 [16:16:14]Write to MH i2c: E2 08 00 45 3B 80 13 01 00 00 00 00 00 FD [16:16:14]Write i2c OK [16:16:14]MH_I2C_Read... [16:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:14]Read from MH i2c: E2 [16:16:14]MH_I2C_Read... [16:16:14]Read from MH i2c: E2 0E 00 [16:16:14]MH_I2C_Read... [16:16:14]Read from MH i2c: E2 0E 00 45 3B 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 6E [16:16:14]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [16:16:14]wFMCommunicate OK [16:16:14]SAM_PROTO_GetShiftState done [16:16:14]FM_GetShiftState done [16:16:14]opened in 1718324742 [16:16:14]opened+sec_in_day 1718411142 [16:16:14]quantity*price = 56000 [16:16:14]sum+1 = 56001 [16:16:14]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 560.00 袧小袩 1% : 4.96 袧袛小 12% : 59.47 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 560.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 39 14.06.2024 16:16 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袗袣袘 袣褘褉谐褘蟹褋褌邪薪 肖袦: 0000000000965344 肖袛: 22125 肖袩袛: 202934219875806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T161629&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22125&fm=202934219875806&tin=02508201610067®Number=0000000000099755&sum=56000 0 [16:16:15]StoreToDocumentArchive [16:16:15]shift 325 fd 22125 [16:16:15]save to /storage/0325/doc_00022125 [16:16:15]save last doc name /storage/0325/doc_00022125 to /storage/kkm_last_doc_name [16:16:15]save OK [16:16:15]Clear old archive folders... [16:16:15]ProcessDocumentItem done err = 0, tmpTLVsize=282 [16:16:15]tlvbuf is 0022A5E0 [16:16:15]SAM_PROTO_ClearQueue [16:16:15]wFMCommunicate request_size=4 [16:16:15]MH_SAM_APDU [16:16:15]CAPDU: 80 09 00 00 [16:16:15]Write to MH i2c: E2 08 00 52 3B 80 09 00 00 00 00 00 00 FF [16:16:15]Write i2c OK [16:16:15]MH_I2C_Read... [16:16:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:15]Read from MH i2c: E2 [16:16:15]MH_I2C_Read... [16:16:15]Read from MH i2c: E2 03 00 [16:16:15]MH_I2C_Read... [16:16:15]Read from MH i2c: E2 03 00 52 3B 00 90 00 01 [16:16:15]RAPDU: 90 00 [16:16:15]wFMCommunicate OK [16:16:15]SAM_PROTO_ClearQueue done [16:16:15]KKMCreateOFDPacket [16:16:15]OFDProtocolAddRootSTLVToBuf [16:16:15]FM_MakeSignedData [16:16:15]FM_MakeSignedData [16:16:15]SAM_PROTO_SignData [16:16:15]wFMCommunicate request_size=4 [16:16:15]MH_SAM_APDU [16:16:15]CAPDU: 80 0D 01 02 [16:16:15]Write to MH i2c: E2 08 00 53 3B 80 0D 01 02 00 00 00 00 07 [16:16:15]Write i2c OK [16:16:15]MH_I2C_Read... [16:16:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:15]Read from MH i2c: E2 [16:16:15]MH_I2C_Read... [16:16:15]Read from MH i2c: E2 03 00 [16:16:15]MH_I2C_Read... [16:16:15]Read from MH i2c: E2 03 00 53 3B 00 90 00 02 [16:16:15]RAPDU: 90 00 [16:16:15]wFMCommunicate OK [16:16:15]wFMCommunicate request_size=255 [16:16:15]MH_SAM_APDU [16:16:15]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 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 DD 6C 6C 66 0E 04 04 00 45 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 [16:16:15]Write to MH i2c: E2 02 01 54 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 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 DD 6C 6C 66 0E 04 04 00 45 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 32 [16:16:16]Write i2c OK [16:16:16]MH_I2C_Read... [16:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:16]Read from MH i2c: E2 [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: E2 03 00 [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: E2 03 00 54 3B 00 90 00 03 [16:16:16]RAPDU: 90 00 [16:16:16]wFMCommunicate OK [16:16:16]wFMCommunicate request_size=41 [16:16:16]MH_SAM_APDU [16:16:16]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 6D 56 00 00 35 04 06 00 B8 91 4E 16 A5 DE [16:16:16]Write to MH i2c: E2 2C 00 55 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 6D 56 00 00 35 04 06 00 B8 91 4E 16 A5 DE 00 00 CB [16:16:16]Write i2c OK [16:16:16]MH_I2C_Read... [16:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:16]Read from MH i2c: E2 [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: E2 03 00 [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: E2 03 00 55 3B 00 90 00 04 [16:16:16]RAPDU: 90 00 [16:16:16]wFMCommunicate OK [16:16:16]wFMCommunicate request_size=4 [16:16:16]MH_SAM_APDU [16:16:16]CAPDU: 80 0D 03 02 [16:16:16]Write to MH i2c: E2 08 00 56 3B 80 0D 03 02 00 00 00 00 0C [16:16:16]Write i2c OK [16:16:16]MH_I2C_Read... [16:16:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:16]Read from MH i2c: E2 [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: E2 0B 00 [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: E2 0B 00 56 3B 00 8D 0B C8 E0 C7 C4 8A 59 90 00 BB [16:16:16]RAPDU: 8D 0B C8 E0 C7 C4 8A 59 90 00 [16:16:16]wFMCommunicate OK [16:16:16]SAM_PROTO_SignData done [16:16:16]FM_MakeSignedData done [16:16:16]CreateOFDProtocolMessage [16:16:16]wFMCommunicate request_size=4 [16:16:16]MH_SAM_APDU [16:16:16]CAPDU: 80 11 00 00 [16:16:16]Write to MH i2c: E2 08 00 57 3B 80 11 00 00 00 00 00 00 0C [16:16:16]Write i2c OK [16:16:16]MH_I2C_Read... [16:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:16]Read from MH i2c: E2 [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: E2 17 00 [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: E2 17 00 57 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 5E [16:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [16:16:16]wFMCommunicate OK [16:16:16]CreateOFDProtocolMessage done [16:16:16]OFDSenderStorePacket 22125 [16:16:16]StoreOFDPacket docnum=22125 [16:16:16]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 DC AE 26 01 7E DC 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 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 DD 6C 6C 66 0E 04 04 00 45 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 6D 56 00 00 35 04 06 00 B8 91 4E 16 A5 DE 8D 0B C8 E0 C7 C4 8A 59 [16:16:16]CheckFolder [16:16:16]dirname=/storage/ofd_packets [16:16:16]CheckFolder done [16:16:16]ProducePacketName [16:16:16]name=ofd_packets/00022125 [16:16:16]NVStorageSaveData ofd_packets/00022125 [16:16:16]File name is /storage/ofd_packets/00022125 [16:16:16]Write 332 bytes [16:16:16]NVStorageSaveData done [16:16:16]OFDSenderStorePacket done [16:16:16]KKMCreateOFDPacket done [16:16:16]NVStorageSaveData kkm_last_timestamp [16:16:16]File name is /storage/kkm_last_timestamp [16:16:16]Write 4 bytes [16:16:16]NVStorageSaveData done [16:16:16]ExternCall_PrintAddStr [16:16:16]OFD Sender: Processing packet 22125 [packets to send 5, broken 4] [16:16:16]ProducePacketName [16:16:16]name=ofd_packets/00022125 [16:16:16]OFD Sender: To server: 嚂鰌G, [16:16:16]CommunicateWithHost lk.salyk.kg:30040 [16:16:16]ConnectInit lk.salyk.kg [16:16:16]wPrintStart [16:16:16]Write to MH i2c: 01 00 00 58 3B 93 [16:16:16]Write i2c OK [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: 01 [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: 01 07 00 [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: 01 07 00 58 3B 00 00 00 00 00 FF 0F A8 [16:16:16]RasterBufferAndPrint [16:16:16]line 小褔械褌 N : (3)254348 [16:16:16]line 袠袧袧: 02508201610067 [16:16:16]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:16:16]line 袩袪袨袛袗袞袗 [16:16:16]line 孝芯胁邪褉: 4700003150936 [16:16:16]line 袧芯胁邪褟 袙芯写泻邪 Organic 40% 0,48谢 [16:16:16]line 1.000 * 560.00 [16:16:16]line = 560.00 [16:16:16]line 袧袛小 12% 袧小袩 1% [16:16:16]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:16:16]line 袠孝袨袚袨: 560.00 [16:16:16]line 袧小袩 1% : 4.96 [16:16:16]line 袧袛小 12% : 59.47 [16:16:16]line 袧邪谢懈褔薪褘屑懈: 0.00 [16:16:16]line 袘械蟹薪邪谢.: 560.00 [16:16:16]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [16:16:16]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [16:16:16]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:16:16]line 效械泻 39 14.06.2024 16:16 [16:16:16]line 小屑械薪邪: 325 肖肖袛: 1.0 [16:16:16]line 袟袧袦: 0300000200 [16:16:16]line 袪袧袦: 0000000000099755 [16:16:16]line 袙械褉褋懈褟 袣袣袦: 001 [16:16:16]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袗袣袘 袣褘褉谐褘蟹褋褌邪薪 [16:16:16]line 肖袦: 0000000000965344 [16:16:16]line 肖袛: 22125 [16:16:16]line 肖袩袛: 202934219875806 [16:16:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T161629&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22125&fm=202934219875806&tin=02508201610067®Number=0000000000099755&sum=56000 [16:16:16]line 0 [16:16:16]written 0, free lines is 4095 [16:16:16]Connected sock=10 [16:16:16]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 DC AE 26 01 7E DC 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 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 DD 6C 6C 66 0E 04 04 00 45 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 6D 56 00 00 35 04 06 00 B8 91 4E 16 A5 DE 8D 0B C8 E0 C7 C4 8A 59 [16:16: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 25 C7 47 00 A4 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 6D 56 00 00 F4 03 04 00 9D 15 6C 66 B6 04 01 00 00 96 94 2D D3 7E F1 D9 23 [16:16:16]CommunicateWithHost err = 0 [16:16:16]CheckOFDResponse [16:16:16]1017 (14) - 77093643461234 [16:16:16]1041 (16) - 0000000000965344 [16:16:16]1040 (4) - 22125 [16:16:16]1012 (4) - 14.06.2024 10:04 [16:16:16]1206 (1) - 0 [16:16:16]OFD Sender: Remove packet 22125 [16:16:16]ProducePacketName [16:16:16]name=ofd_packets/00022125 [16:16:16]NVStorageDeleteData [16:16:17]Write to MH i2c: 01 00 00 83 3B BE [16:16:17]Write i2c OK [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: 01 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: 01 07 00 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: 01 07 00 83 3B 00 00 00 00 00 F1 0C C2 [16:16:17]RasterBufferAndPrint [16:16:17]line [16:16:17]line [16:16:17]line [16:16:17]line [16:16:17]line [16:16:17]written 0, free lines is 3320 [16:16:17]MH_Cut [16:16:17]Write to MH i2c: D1 01 00 8A 3B 01 97 [16:16:17]Write i2c OK [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: D1 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: D1 01 00 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: D1 01 00 8A 3B 00 96 [16:16:17]Write to MH i2c: 01 00 00 8B 3B C6 [16:16:17]Write i2c OK [16:16:17]MH_I2C_Read... [16:16:17]OFD Sender: No OFD packet to send [16:16:17]*** Cut start [16:16:17]*** Partial cut [16:16:17]*** CUTSNS_PIN = 1 [16:16:17]*** CUTSNS_PIN = 0 [16:16:18]*** Brake cut motor [16:16:18]Read from MH i2c: 01 [16:16:18]MH_I2C_Read... [16:16:18]*** Stop cut motor [16:16:18]*** Cut end [16:16:18]Read from MH i2c: 01 07 00 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: 01 07 00 8B 3B 00 00 00 00 00 FF 0F DB [16:16:18]process_action close_receipt done [16:16:18]requested_data is exist [16:16:18]produce_requested_data [16:16:18]requested_item fm.sn is exist - process it [16:16:18]wFMCommunicate request_size=4 [16:16:18]MH_SAM_APDU [16:16:18]CAPDU: 80 11 00 00 [16:16:18]Write to MH i2c: E2 08 00 8C 3B 80 11 00 00 00 00 00 00 41 [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:18]Read from MH i2c: E2 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 17 00 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 17 00 8C 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 93 [16:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [16:16:18]wFMCommunicate OK [16:16:18]requested_item fd.num is exist - process it [16:16:18]SAM_PROTO_GetFieldsCounters [16:16:18]wFMCommunicate request_size=4 [16:16:18]MH_SAM_APDU [16:16:18]CAPDU: 80 13 00 00 [16:16:18]Write to MH i2c: E2 08 00 8D 3B 80 13 00 00 00 00 00 00 44 [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:18]Read from MH i2c: E2 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 62 00 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 62 00 8D 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 6D 56 00 00 0E 04 04 00 45 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 EC [16:16:18]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 6D 56 00 00 0E 04 04 00 45 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 [16:16:18]wFMCommunicate OK [16:16:18]SAM_PROTO_GetFieldsCounters done [16:16:18]requested_item shift.num is exist - process it [16:16:18]requested_item shift.opened is exist - process it [16:16:18]req_shift_opened [16:16:18]FM_GetShiftState [16:16:18]SAM_PROTO_GetShiftState [16:16:18]wFMCommunicate request_size=4 [16:16:18]MH_SAM_APDU [16:16:18]CAPDU: 80 13 01 00 [16:16:18]Write to MH i2c: E2 08 00 8E 3B 80 13 01 00 00 00 00 00 46 [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:18]Read from MH i2c: E2 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 0E 00 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 0E 00 8E 3B 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 B7 [16:16:18]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [16:16:18]wFMCommunicate OK [16:16:18]SAM_PROTO_GetShiftState done [16:16:18]FM_GetShiftState done [16:16:18]req_shift_opened done [16:16:18]requested_item shift.open_date is exist - process it [16:16:18]req_shift_open_date [16:16:18]req_shift_open_date done [16:16:18]produce_requested_data done [16:16:18]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22125,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [16:16:18]process_action_free close_receipt [16:16:18]json_value_free [16:16:18]json_value_free done [16:16:18]process_json_proto returns [16:16:18]Send response to host [16:16:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22125,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [16:16:18]free response buf [16:16:18]execute_script done [16:16:18]execute_script returns [16:16:18]free content buf [16:16:18]Sock 9.Close socket [16:16:18]Sock 9.Thread stoped [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:27]OFD Sender: No OFD packet to send [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:42]OFD Sender: No OFD packet to send [16:23:47]OFD Sender: No OFD packet to send [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:18]OFD Sender: No OFD packet to send [16:31:23]OFD Sender: No OFD packet to send [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:43]OFD Sender: No OFD packet to send [16:31:48]OFD Sender: No OFD packet to send [16:31:53]OFD Sender: No OFD packet to send [16:31:58]OFD Sender: No OFD packet to send [16:32:03]OFD Sender: No OFD packet to send [16:32:08]OFD Sender: No OFD packet to send [16:32:13]OFD Sender: No OFD packet to send [16:32:18]OFD Sender: No OFD packet to send [16:32:23]OFD Sender: No OFD packet to send [16:32:28]OFD Sender: No OFD packet to send [16:32:33]OFD Sender: No OFD packet to send [16:32:38]OFD Sender: No OFD packet to send [16:32:43]OFD Sender: No OFD packet to send [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:35]accept exits with 8 [16:40:35]New connection [16:40:35]New thread 3067178340 created [16:40:35]Thread 3067321700 joined [16:40:35]Waiting for new connection... [16:40:35] Sock 8.Parse request [16:40:35]Sock 8.Check first char [16:40:35]Sock 8.First char is OK [16:40:35]request: POST /json_proto HTTP/1.0 [16:40:35]Method: POST [16:40:35]URL: /json_proto [16:40:35]Method is POST - this is cgi request [16:40:35]url: /json_proto [16:40:35]query_string will be loaded in cgi processing [16:40:35]execute_cgi json_proto POST (null) [16:40:35]execute_cgi path=json_proto method=POST [16:40:35]POST find Content-Length [16:40:35]Host: 172.17.35.133:8080 [16:40:35]Content-Length: 878 [16:40:35]Content-Type: application/json [16:40:35] [16:40:35]POST finish read [16:40:35]Found Content-Length = 878 [16:40:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254349", "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": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:35]execute_script... [16:40:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254349", "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": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:35]POST & json_proto [16:40:35]process_json_proto [16:40:35]json parsed OK: [16:40:35]protocol is kg_v1.0 [16:40:35]action value=close_receipt [16:40:35]process_action close_receipt [16:40:35]cmd_close_receipt [16:40:35]MH_GetDate [16:40:35]Write to MH i2c: F0 00 00 8F 3B B9 [16:40:35]Write i2c OK [16:40:35]MH_I2C_Read... [16:40:35]Read from MH i2c: F0 [16:40:35]MH_I2C_Read... [16:40:35]Read from MH i2c: F0 09 00 [16:40:35]MH_I2C_Read... [16:40:35]Read from MH i2c: F0 09 00 8F 3B 00 92 72 6C 66 8C 55 28 65 06 [16:40:35]GetLastDocTimeStamp 1718381789 [16:40:35]current date 1718383250 [16:40:35]FM_GetShiftState [16:40:35]SAM_PROTO_GetShiftState [16:40:35]wFMCommunicate request_size=4 [16:40:35]MH_SAM_APDU [16:40:35]CAPDU: 80 13 01 00 [16:40:35]Write to MH i2c: E2 08 00 90 3B 80 13 01 00 00 00 00 00 48 [16:40:35]Write i2c OK [16:40:35]MH_I2C_Read... [16:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:35]Read from MH i2c: E2 [16:40:35]MH_I2C_Read... [16:40:35]Read from MH i2c: E2 0E 00 [16:40:35]MH_I2C_Read... [16:40:35]Read from MH i2c: E2 0E 00 90 3B 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 B9 [16:40:35]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [16:40:35]wFMCommunicate OK [16:40:35]SAM_PROTO_GetShiftState done [16:40:35]FM_GetShiftState done [16:40:35]opened in 1718324742 [16:40:35]opened+sec_in_day 1718411142 [16:40:35]quantity*price = 7500 [16:40:35]sum+1 = 7501 [16:40:35]Check (price>sum+1) || (price+1sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 4870001570071 袧邪锌懈褌芯泻 Pepsi 1谢 1.000 * 110.00 = 110.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 185.00 袧小袩 1% : 1.63 袧袛小 12% : 19.64 袧邪谢懈褔薪褘屑懈: 185.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 40 14.06.2024 16:40 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22126 肖袩袛: 154972673637218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T164050&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22126&fm=154972673637218&tin=02508201610067®Number=0000000000099755&sum=18500 0 [16:40:36]StoreToDocumentArchive [16:40:36]shift 325 fd 22126 [16:40:36]save to /storage/0325/doc_00022126 [16:40:36]save last doc name /storage/0325/doc_00022126 to /storage/kkm_last_doc_name [16:40:36]save OK [16:40:36]Clear old archive folders... [16:40:36]ProcessDocumentItem done err = 0, tmpTLVsize=378 [16:40:36]tlvbuf is 002BDC50 [16:40:36]SAM_PROTO_ClearQueue [16:40:36]wFMCommunicate request_size=4 [16:40:36]MH_SAM_APDU [16:40:36]CAPDU: 80 09 00 00 [16:40:36]Write to MH i2c: E2 08 00 9D 3B 80 09 00 00 00 00 00 00 4A [16:40:36]Write i2c OK [16:40:36]MH_I2C_Read... [16:40:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:36]Read from MH i2c: E2 [16:40:36]MH_I2C_Read... [16:40:36]Read from MH i2c: E2 03 00 [16:40:36]MH_I2C_Read... [16:40:36]Read from MH i2c: E2 03 00 9D 3B 00 90 00 4C [16:40:36]RAPDU: 90 00 [16:40:36]wFMCommunicate OK [16:40:36]SAM_PROTO_ClearQueue done [16:40:36]KKMCreateOFDPacket [16:40:36]OFDProtocolAddRootSTLVToBuf [16:40:36]FM_MakeSignedData [16:40:36]FM_MakeSignedData [16:40:36]SAM_PROTO_SignData [16:40:36]wFMCommunicate request_size=4 [16:40:36]MH_SAM_APDU [16:40:36]CAPDU: 80 0D 01 02 [16:40:36]Write to MH i2c: E2 08 00 9E 3B 80 0D 01 02 00 00 00 00 52 [16:40:36]Write i2c OK [16:40:36]MH_I2C_Read... [16:40:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:36]Read from MH i2c: E2 [16:40:36]MH_I2C_Read... [16:40:36]Read from MH i2c: E2 03 00 [16:40:36]MH_I2C_Read... [16:40:36]Read from MH i2c: E2 03 00 9E 3B 00 90 00 4D [16:40:36]RAPDU: 90 00 [16:40:36]wFMCommunicate OK [16:40:36]wFMCommunicate request_size=255 [16:40:36]MH_SAM_APDU [16:40:36]CAPDU: 80 0D 02 02 FA 03 00 7A 01 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 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 [16:40:36]Write to MH i2c: E2 02 01 9F 3B 80 0D 02 02 FA 00 03 00 7A 01 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 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 00 00 F7 [16:40:36]Write i2c OK [16:40:36]MH_I2C_Read... [16:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:36]Read from MH i2c: E2 [16:40:36]MH_I2C_Read... [16:40:36]Read from MH i2c: E2 03 00 [16:40:36]MH_I2C_Read... [16:40:36]Read from MH i2c: E2 03 00 9F 3B 00 90 00 4E [16:40:36]RAPDU: 90 00 [16:40:36]wFMCommunicate OK [16:40:36]wFMCommunicate request_size=137 [16:40:36]MH_SAM_APDU [16:40:36]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 07 00 00 00 00 07 04 06 00 44 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 28 00 00 00 F4 03 04 00 92 72 6C 66 0E 04 04 00 45 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 6E 56 00 00 35 04 06 00 8C F2 63 29 7B 62 [16:40:36]Write to MH i2c: E2 8C 00 A0 3B 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 07 00 00 00 00 07 04 06 00 44 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 28 00 00 00 F4 03 04 00 92 72 6C 66 0E 04 04 00 45 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 6E 56 00 00 35 04 06 00 8C F2 63 29 7B 62 00 00 C1 [16:40:36]Write i2c OK [16:40:36]MH_I2C_Read... [16:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:36]Read from MH i2c: E2 [16:40:36]MH_I2C_Read... [16:40:36]Read from MH i2c: E2 03 00 [16:40:36]MH_I2C_Read... [16:40:36]Read from MH i2c: E2 03 00 A0 3B 00 90 00 4F [16:40:36]RAPDU: 90 00 [16:40:36]wFMCommunicate OK [16:40:36]wFMCommunicate request_size=4 [16:40:36]MH_SAM_APDU [16:40:36]CAPDU: 80 0D 03 02 [16:40:36]Write to MH i2c: E2 08 00 A1 3B 80 0D 03 02 00 00 00 00 57 [16:40:36]Write i2c OK [16:40:36]MH_I2C_Read... [16:40:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:36]Read from MH i2c: E2 [16:40:36]MH_I2C_Read... [16:40:36]Read from MH i2c: E2 0B 00 [16:40:36]MH_I2C_Read... [16:40:36]Read from MH i2c: E2 0B 00 A1 3B 00 68 D1 2F 66 F6 F5 41 29 90 00 7B [16:40:36]RAPDU: 68 D1 2F 66 F6 F5 41 29 90 00 [16:40:36]wFMCommunicate OK [16:40:36]SAM_PROTO_SignData done [16:40:36]FM_MakeSignedData done [16:40:36]CreateOFDProtocolMessage [16:40:36]wFMCommunicate request_size=4 [16:40:36]MH_SAM_APDU [16:40:36]CAPDU: 80 11 00 00 [16:40:36]Write to MH i2c: E2 08 00 A2 3B 80 11 00 00 00 00 00 00 57 [16:40:36]Write i2c OK [16:40:36]MH_I2C_Read... [16:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:36]Read from MH i2c: E2 [16:40:36]MH_I2C_Read... [16:40:36]Read from MH i2c: E2 17 00 [16:40:36]MH_I2C_Read... [16:40:36]Read from MH i2c: E2 17 00 A2 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 A9 [16:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [16:40:36]wFMCommunicate OK [16:40:36]CreateOFDProtocolMessage done [16:40:36]OFDSenderStorePacket 22126 [16:40:36]StoreOFDPacket docnum=22126 [16:40: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 8E 01 00 00 EF 9E 86 01 12 93 5A 03 01 00 03 00 7A 01 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 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 07 00 00 00 00 07 04 06 00 44 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 28 00 00 00 F4 03 04 00 92 72 6C 66 0E 04 04 00 45 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 6E 56 00 00 35 04 06 00 8C F2 63 29 7B 62 68 D1 2F 66 F6 F5 41 29 [16:40:36]CheckFolder [16:40:36]dirname=/storage/ofd_packets [16:40:36]CheckFolder done [16:40:36]ProducePacketName [16:40:36]name=ofd_packets/00022126 [16:40:36]NVStorageSaveData ofd_packets/00022126 [16:40:36]File name is /storage/ofd_packets/00022126 [16:40:36]Write 428 bytes [16:40:36]NVStorageSaveData done [16:40:36]OFDSenderStorePacket done [16:40:36]KKMCreateOFDPacket done [16:40:36]NVStorageSaveData kkm_last_timestamp [16:40:36]File name is /storage/kkm_last_timestamp [16:40:36]Write 4 bytes [16:40:36]NVStorageSaveData done [16:40:36]ExternCall_PrintAddStr [16:40:36]wPrintStart [16:40:36]Write to MH i2c: 01 00 00 A3 3B DE [16:40:36]Write i2c OK [16:40:36]MH_I2C_Read... [16:40:36]Read from MH i2c: 01 [16:40:36]MH_I2C_Read... [16:40:36]Read from MH i2c: 01 07 00 [16:40:36]MH_I2C_Read... [16:40:36]Read from MH i2c: 01 07 00 A3 3B 00 00 00 00 00 FF 0F F3 [16:40:36]RasterBufferAndPrint [16:40:36]line 小褔械褌 N : (3)254349 [16:40:36]line 袠袧袧: 02508201610067 [16:40:36]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:40:36]line 袩袪袨袛袗袞袗 [16:40:37]line 孝芯胁邪褉: 2000034730018 [16:40:37]line 袣芯褎械 袗屑械褉懈泻邪薪芯 (GABB TRADE) [16:40:37]line 1.000 * 75.00 [16:40:37]line = 75.00 [16:40:37]line 袧袛小 12% 袧小袩 1% [16:40:37]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:40:37]line 孝芯胁邪褉: 4870001570071 [16:40:37]line 袧邪锌懈褌芯泻 Pepsi 1谢 [16:40:37]line 1.000 * 110.00 [16:40:37]line = 110.00 [16:40:37]line 袧袛小 12% 袧小袩 1% [16:40:37]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:40:37]line 袠孝袨袚袨: 185.00 [16:40:37]line 袧小袩 1% : 1.63 [16:40:37]line 袧袛小 12% : 19.64 [16:40:37]line 袧邪谢懈褔薪褘屑懈: 185.00 [16:40:37]line 袘械蟹薪邪谢.: 0.00 [16:40:37]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [16:40:37]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [16:40:37]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:40:37]line 效械泻 40 14.06.2024 16:40 [16:40:37]line 小屑械薪邪: 325 肖肖袛: 1.0 [16:40:37]line 袟袧袦: 0300000200 [16:40:37]line 袪袧袦: 0000000000099755 [16:40:37]line 袙械褉褋懈褟 袣袣袦: 001 [16:40:37]line 肖袦: 0000000000965344 [16:40:37]line 肖袛: 22126 [16:40:37]line 肖袩袛: 154972673637218 [16:40:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T164050&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22126&fm=154972673637218&tin=02508201610067®Number=0000000000099755&sum=18500 [16:40:37]line 0 [16:40:37]OFD Sender: Processing packet 22126 [packets to send 5, broken 4] [16:40:37]ProducePacketName [16:40:37]name=ofd_packets/00022126 [16:40:37]OFD Sender: To server: 嚂鰌G, [16:40:37]CommunicateWithHost lk.salyk.kg:30040 [16:40:37]ConnectInit lk.salyk.kg [16:40:37]written 0, free lines is 4095 [16:40:37]Connected sock=10 [16:40:37]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 8E 01 00 00 EF 9E 86 01 12 93 5A 03 01 00 03 00 7A 01 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 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 07 00 00 00 00 07 04 06 00 44 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 28 00 00 00 F4 03 04 00 92 72 6C 66 0E 04 04 00 45 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 6E 56 00 00 35 04 06 00 8C F2 63 29 7B 62 68 D1 2F 66 F6 F5 41 29 [16:40:37]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 E6 F7 47 00 34 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 6E 56 00 00 F4 03 04 00 52 1B 6C 66 B6 04 01 00 00 75 E6 1F 06 5C 3E 22 0D [16:40:37]CommunicateWithHost err = 0 [16:40:37]CheckOFDResponse [16:40:37]1017 (14) - 77093643461234 [16:40:37]1041 (16) - 0000000000965344 [16:40:37]1040 (4) - 22126 [16:40:37]1012 (4) - 14.06.2024 10:28 [16:40:37]1206 (1) - 0 [16:40:37]OFD Sender: Remove packet 22126 [16:40:37]ProducePacketName [16:40:37]name=ofd_packets/00022126 [16:40:37]NVStorageDeleteData [16:40:37]Write to MH i2c: 01 00 00 D2 3B 0D [16:40:37]Write i2c OK [16:40:37]MH_I2C_Read... [16:40:37]Read from MH i2c: 01 [16:40:37]MH_I2C_Read... [16:40:37]Read from MH i2c: 01 07 00 [16:40:37]MH_I2C_Read... [16:40:37]Read from MH i2c: 01 07 00 D2 3B 00 00 00 00 00 B6 0C D6 [16:40:37]RasterBufferAndPrint [16:40:37]line [16:40:37]line [16:40:37]line [16:40:37]line [16:40:37]line [16:40:37]written 0, free lines is 3262 [16:40:37]MH_Cut [16:40:37]Write to MH i2c: D1 01 00 D9 3B 01 E6 [16:40:37]Write i2c OK [16:40:37]MH_I2C_Read... [16:40:37]Read from MH i2c: D1 [16:40:37]MH_I2C_Read... [16:40:37]Read from MH i2c: D1 01 00 [16:40:37]MH_I2C_Read... [16:40:37]Read from MH i2c: D1 01 00 D9 3B 00 E5 [16:40:37]Write to MH i2c: 01 00 00 DA 3B 15 [16:40:37]Write i2c OK [16:40:37]MH_I2C_Read... [16:40:38]OFD Sender: No OFD packet to send [16:40:38]*** Cut start [16:40:38]*** Partial cut [16:40:38]*** CUTSNS_PIN = 1 [16:40:38]*** CUTSNS_PIN = 0 [16:40:38]*** Brake cut motor [16:40:39]Read from MH i2c: 01 [16:40:39]MH_I2C_Read... [16:40:39]*** Stop cut motor [16:40:39]*** Cut end [16:40:39]Read from MH i2c: 01 07 00 [16:40:39]MH_I2C_Read... [16:40:39]Read from MH i2c: 01 07 00 DA 3B 00 00 00 00 00 FF 0F 2A [16:40:39]process_action close_receipt done [16:40:39]requested_data is exist [16:40:39]produce_requested_data [16:40:39]requested_item fm.sn is exist - process it [16:40:39]wFMCommunicate request_size=4 [16:40:39]MH_SAM_APDU [16:40:39]CAPDU: 80 11 00 00 [16:40:39]Write to MH i2c: E2 08 00 DB 3B 80 11 00 00 00 00 00 00 90 [16:40:39]Write i2c OK [16:40:39]MH_I2C_Read... [16:40:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:39]Read from MH i2c: E2 [16:40:39]MH_I2C_Read... [16:40:39]Read from MH i2c: E2 17 00 [16:40:39]MH_I2C_Read... [16:40:39]Read from MH i2c: E2 17 00 DB 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 E2 [16:40:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [16:40:39]wFMCommunicate OK [16:40:39]requested_item fd.num is exist - process it [16:40:39]SAM_PROTO_GetFieldsCounters [16:40:39]wFMCommunicate request_size=4 [16:40:39]MH_SAM_APDU [16:40:39]CAPDU: 80 13 00 00 [16:40:39]Write to MH i2c: E2 08 00 DC 3B 80 13 00 00 00 00 00 00 93 [16:40:39]Write i2c OK [16:40:39]MH_I2C_Read... [16:40:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:39]Read from MH i2c: E2 [16:40:39]MH_I2C_Read... [16:40:39]Read from MH i2c: E2 62 00 [16:40:39]MH_I2C_Read... [16:40:39]Read from MH i2c: E2 62 00 DC 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 6E 56 00 00 0E 04 04 00 45 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 3F [16:40:39]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 6E 56 00 00 0E 04 04 00 45 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 [16:40:39]wFMCommunicate OK [16:40:39]SAM_PROTO_GetFieldsCounters done [16:40:39]requested_item shift.num is exist - process it [16:40:39]requested_item shift.opened is exist - process it [16:40:39]req_shift_opened [16:40:39]FM_GetShiftState [16:40:39]SAM_PROTO_GetShiftState [16:40:39]wFMCommunicate request_size=4 [16:40:39]MH_SAM_APDU [16:40:39]CAPDU: 80 13 01 00 [16:40:39]Write to MH i2c: E2 08 00 DD 3B 80 13 01 00 00 00 00 00 95 [16:40:39]Write i2c OK [16:40:39]MH_I2C_Read... [16:40:39]Read from MH i2c: E2 [16:40:39]MH_I2C_Read... [16:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:39]Read from MH i2c: E2 0E 00 [16:40:39]MH_I2C_Read... [16:40:39]Read from MH i2c: E2 0E 00 DD 3B 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 06 [16:40:39]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [16:40:39]wFMCommunicate OK [16:40:39]SAM_PROTO_GetShiftState done [16:40:39]FM_GetShiftState done [16:40:39]req_shift_opened done [16:40:39]requested_item shift.open_date is exist - process it [16:40:39]req_shift_open_date [16:40:39]req_shift_open_date done [16:40:39]produce_requested_data done [16:40:39]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22126,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [16:40:39]process_action_free close_receipt [16:40:39]json_value_free [16:40:39]json_value_free done [16:40:39]process_json_proto returns [16:40:39]Send response to host [16:40:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22126,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [16:40:39]free response buf [16:40:39]execute_script done [16:40:39]execute_script returns [16:40:39]free content buf [16:40:39]Sock 8.Close socket [16:40:39]Sock 8.Thread stoped [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:23]OFD Sender: No OFD packet to send [16:46:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:23]OFD Sender: No OFD packet to send [16:53:28]OFD Sender: No OFD packet to send [16:53:33]OFD Sender: No OFD packet to send [16:53:38]OFD Sender: No OFD packet to send [16:53:43]OFD Sender: No OFD packet to send [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:13]OFD Sender: No OFD packet to send [16:55:14]accept exits with 9 [16:55:14]New connection [16:55:14]New thread 3067321700 created [16:55:14]Thread 3067178340 joined [16:55:14]Waiting for new connection... [16:55:14] Sock 9.Parse request [16:55:14]Sock 9.Check first char [16:55:14]Sock 9.First char is OK [16:55:14]request: POST /json_proto HTTP/1.0 [16:55:14]Method: POST [16:55:14]URL: /json_proto [16:55:14]Method is POST - this is cgi request [16:55:14]url: /json_proto [16:55:14]query_string will be loaded in cgi processing [16:55:14]execute_cgi json_proto POST (null) [16:55:14]execute_cgi path=json_proto method=POST [16:55:14]POST find Content-Length [16:55:14]Host: 172.17.35.133:8080 [16:55:14]Content-Length: 658 [16:55:14]Content-Type: application/json [16:55:14] [16:55:14]POST finish read [16:55:14]Found Content-Length = 658 [16:55:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254350", "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" : 2.000, "sum" : 226.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 226.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:14]execute_script... [16:55:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254350", "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" : 2.000, "sum" : 226.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 226.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:14]POST & json_proto [16:55:14]process_json_proto [16:55:14]json parsed OK: [16:55:14]protocol is kg_v1.0 [16:55:14]action value=close_receipt [16:55:14]process_action close_receipt [16:55:14]cmd_close_receipt [16:55:14]MH_GetDate [16:55:14]Write to MH i2c: F0 00 00 DE 3B 08 [16:55:14]Write i2c OK [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: F0 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: F0 09 00 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: F0 09 00 DE 3B 00 01 76 6C 66 8C 55 28 65 C8 [16:55:14]GetLastDocTimeStamp 1718383250 [16:55:14]current date 1718384129 [16:55:14]FM_GetShiftState [16:55:14]SAM_PROTO_GetShiftState [16:55:14]wFMCommunicate request_size=4 [16:55:14]MH_SAM_APDU [16:55:14]CAPDU: 80 13 01 00 [16:55:14]Write to MH i2c: E2 08 00 DF 3B 80 13 01 00 00 00 00 00 97 [16:55:14]Write i2c OK [16:55:14]MH_I2C_Read... [16:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:14]Read from MH i2c: E2 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 0E 00 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 0E 00 DF 3B 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 08 [16:55:14]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [16:55:14]wFMCommunicate OK [16:55:14]SAM_PROTO_GetShiftState done [16:55:14]FM_GetShiftState done [16:55:14]opened in 1718324742 [16:55:14]opened+sec_in_day 1718411142 [16:55:14]quantity*price = 22600 [16:55:14]sum+1 = 22601 [16:55:14]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 226.00 袧小袩 1% : 2.00 袧袛小 12% : 24.00 袧邪谢懈褔薪褘屑懈: 226.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 41 14.06.2024 16:55 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22127 肖袩袛: 25806229913031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T165529&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22127&fm=25806229913031&tin=02508201610067®Number=0000000000099755&sum=22600 0 [16:55:15]StoreToDocumentArchive [16:55:15]shift 325 fd 22127 [16:55:15]save to /storage/0325/doc_00022127 [16:55:15]save last doc name /storage/0325/doc_00022127 to /storage/kkm_last_doc_name [16:55:15]save OK [16:55:15]Clear old archive folders... [16:55:15]ProcessDocumentItem done err = 0, tmpTLVsize=278 [16:55:15]tlvbuf is 0028B130 [16:55:15]SAM_PROTO_ClearQueue [16:55:15]wFMCommunicate request_size=4 [16:55:15]MH_SAM_APDU [16:55:15]CAPDU: 80 09 00 00 [16:55:15]Write to MH i2c: E2 08 00 EC 3B 80 09 00 00 00 00 00 00 99 [16:55:15]Write i2c OK [16:55:15]MH_I2C_Read... [16:55:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:15]Read from MH i2c: E2 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 03 00 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 03 00 EC 3B 00 90 00 9B [16:55:15]RAPDU: 90 00 [16:55:15]wFMCommunicate OK [16:55:15]SAM_PROTO_ClearQueue done [16:55:15]KKMCreateOFDPacket [16:55:15]OFDProtocolAddRootSTLVToBuf [16:55:15]FM_MakeSignedData [16:55:15]FM_MakeSignedData [16:55:15]SAM_PROTO_SignData [16:55:15]wFMCommunicate request_size=4 [16:55:15]MH_SAM_APDU [16:55:15]CAPDU: 80 0D 01 02 [16:55:15]Write to MH i2c: E2 08 00 ED 3B 80 0D 01 02 00 00 00 00 A1 [16:55:15]Write i2c OK [16:55:15]MH_I2C_Read... [16:55:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:16]Read from MH i2c: E2 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 03 00 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 03 00 ED 3B 00 90 00 9C [16:55:16]RAPDU: 90 00 [16:55:16]wFMCommunicate OK [16:55:16]wFMCommunicate request_size=255 [16:55:16]MH_SAM_APDU [16:55:16]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 09 00 00 00 00 07 04 06 00 48 58 00 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 01 76 6C 66 0E 04 04 00 45 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 [16:55:16]Write to MH i2c: E2 02 01 EE 3B 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 09 00 00 00 00 07 04 06 00 48 58 00 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 01 76 6C 66 0E 04 04 00 45 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 A9 [16:55:16]Write i2c OK [16:55:16]MH_I2C_Read... [16:55:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:16]Read from MH i2c: E2 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 03 00 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 03 00 EE 3B 00 90 00 9D [16:55:16]RAPDU: 90 00 [16:55:16]wFMCommunicate OK [16:55:16]wFMCommunicate request_size=37 [16:55:16]MH_SAM_APDU [16:55:16]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 6F 56 00 00 35 04 06 00 17 78 7B 2A BD C7 [16:55:16]Write to MH i2c: E2 28 00 EF 3B 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 6F 56 00 00 35 04 06 00 17 78 7B 2A BD C7 00 00 77 [16:55:16]Write i2c OK [16:55:16]MH_I2C_Read... [16:55:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:16]Read from MH i2c: E2 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 03 00 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 03 00 EF 3B 00 90 00 9E [16:55:16]RAPDU: 90 00 [16:55:16]wFMCommunicate OK [16:55:16]wFMCommunicate request_size=4 [16:55:16]MH_SAM_APDU [16:55:16]CAPDU: 80 0D 03 02 [16:55:16]Write to MH i2c: E2 08 00 F0 3B 80 0D 03 02 00 00 00 00 A6 [16:55:16]Write i2c OK [16:55:16]MH_I2C_Read... [16:55:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:16]Read from MH i2c: E2 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 0B 00 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 0B 00 F0 3B 00 3F 54 E7 80 28 A7 66 3B 90 00 11 [16:55:16]RAPDU: 3F 54 E7 80 28 A7 66 3B 90 00 [16:55:16]wFMCommunicate OK [16:55:16]SAM_PROTO_SignData done [16:55:16]FM_MakeSignedData done [16:55:16]CreateOFDProtocolMessage [16:55:16]wFMCommunicate request_size=4 [16:55:16]MH_SAM_APDU [16:55:16]CAPDU: 80 11 00 00 [16:55:16]Write to MH i2c: E2 08 00 F1 3B 80 11 00 00 00 00 00 00 A6 [16:55:16]Write i2c OK [16:55:16]MH_I2C_Read... [16:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:16]Read from MH i2c: E2 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 17 00 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 17 00 F1 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 F8 [16:55:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [16:55:16]wFMCommunicate OK [16:55:16]CreateOFDProtocolMessage done [16:55:16]OFDSenderStorePacket 22127 [16:55:16]StoreOFDPacket docnum=22127 [16:55:16]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 4E 92 22 01 A1 90 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 09 00 00 00 00 07 04 06 00 48 58 00 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 01 76 6C 66 0E 04 04 00 45 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 6F 56 00 00 35 04 06 00 17 78 7B 2A BD C7 3F 54 E7 80 28 A7 66 3B [16:55:16]CheckFolder [16:55:16]dirname=/storage/ofd_packets [16:55:16]CheckFolder done [16:55:16]ProducePacketName [16:55:16]name=ofd_packets/00022127 [16:55:16]NVStorageSaveData ofd_packets/00022127 [16:55:16]File name is /storage/ofd_packets/00022127 [16:55:16]Write 328 bytes [16:55:16]NVStorageSaveData done [16:55:16]OFDSenderStorePacket done [16:55:16]KKMCreateOFDPacket done [16:55:16]NVStorageSaveData kkm_last_timestamp [16:55:16]File name is /storage/kkm_last_timestamp [16:55:16]Write 4 bytes [16:55:16]NVStorageSaveData done [16:55:16]ExternCall_PrintAddStr [16:55:16]wPrintStart [16:55:16]Write to MH i2c: 01 00 00 F2 3B 2D [16:55:16]Write i2c OK [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: 01 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: 01 07 00 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: 01 07 00 F2 3B 00 00 00 00 00 FF 0F 42 [16:55:16]RasterBufferAndPrint [16:55:16]line 小褔械褌 N : (3)254350 [16:55:16]line 袠袧袧: 02508201610067 [16:55:16]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:55:16]line 袩袪袨袛袗袞袗 [16:55:16]line 孝芯胁邪褉: 5449000054227 [16:55:16]line 袧邪锌懈褌芯泻 袣芯泻邪-袣芯谢邪 1谢 [16:55:16]line 2.000 * 113.00 [16:55:16]line = 226.00 [16:55:16]line 袧袛小 12% 袧小袩 1% [16:55:16]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:55:16]line 袠孝袨袚袨: 226.00 [16:55:16]line 袧小袩 1% : 2.00 [16:55:16]line 袧袛小 12% : 24.00 [16:55:16]line 袧邪谢懈褔薪褘屑懈: 226.00 [16:55:16]line 袘械蟹薪邪谢.: 0.00 [16:55:16]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [16:55:16]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [16:55:16]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:55:16]line 效械泻 41 14.06.2024 16:55 [16:55:16]line 小屑械薪邪: 325 肖肖袛: 1.0 [16:55:16]line 袟袧袦: 0300000200 [16:55:16]line 袪袧袦: 0000000000099755 [16:55:16]line 袙械褉褋懈褟 袣袣袦: 001 [16:55:16]line 肖袦: 0000000000965344 [16:55:16]line 肖袛: 22127 [16:55:16]line 肖袩袛: 25806229913031 [16:55:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T165529&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22127&fm=25806229913031&tin=02508201610067®Number=0000000000099755&sum=22600 [16:55:16]line 0 [16:55:16]OFD Sender: Processing packet 22127 [packets to send 5, broken 4] [16:55:16]ProducePacketName [16:55:16]name=ofd_packets/00022127 [16:55:16]OFD Sender: To server: 嚂鰌G, [16:55:16]CommunicateWithHost lk.salyk.kg:30040 [16:55:16]ConnectInit lk.salyk.kg [16:55:16]written 0, free lines is 4095 [16:55:16]Connected sock=10 [16:55:16]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 4E 92 22 01 A1 90 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 09 00 00 00 00 07 04 06 00 48 58 00 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 01 76 6C 66 0E 04 04 00 45 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 6F 56 00 00 35 04 06 00 17 78 7B 2A BD C7 3F 54 E7 80 28 A7 66 3B [16:55:17]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 1D FF 47 00 B9 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 6F 56 00 00 F4 03 04 00 C1 1E 6C 66 B6 04 01 00 00 AB 55 2E D5 77 5D A9 38 [16:55:17]CommunicateWithHost err = 0 [16:55:17]CheckOFDResponse [16:55:17]1017 (14) - 77093643461234 [16:55:17]1041 (16) - 0000000000965344 [16:55:17]1040 (4) - 22127 [16:55:17]1012 (4) - 14.06.2024 10:43 [16:55:17]1206 (1) - 0 [16:55:17]OFD Sender: Remove packet 22127 [16:55:17]ProducePacketName [16:55:17]name=ofd_packets/00022127 [16:55:17]NVStorageDeleteData [16:55:17]Write to MH i2c: 01 00 00 1A 3C 56 [16:55:17]Write i2c OK [16:55:17]MH_I2C_Read... [16:55:17]Read from MH i2c: 01 [16:55:17]MH_I2C_Read... [16:55:17]Read from MH i2c: 01 07 00 [16:55:17]MH_I2C_Read... [16:55:17]Read from MH i2c: 01 07 00 1A 3C 00 00 00 00 00 16 0D 80 [16:55:17]RasterBufferAndPrint [16:55:17]line [16:55:17]line [16:55:17]line [16:55:17]line [16:55:17]line [16:55:17]written 0, free lines is 3360 [16:55:17]MH_Cut [16:55:17]Write to MH i2c: D1 01 00 21 3C 01 2F [16:55:17]Write i2c OK [16:55:17]MH_I2C_Read... [16:55:17]Read from MH i2c: D1 [16:55:17]MH_I2C_Read... [16:55:17]Read from MH i2c: D1 01 00 [16:55:17]MH_I2C_Read... [16:55:17]Read from MH i2c: D1 01 00 21 3C 00 2E [16:55:17]Write to MH i2c: 01 00 00 22 3C 5E [16:55:17]Write i2c OK [16:55:17]MH_I2C_Read... [16:55:17]OFD Sender: No OFD packet to send [16:55:17]*** Cut start [16:55:17]*** Partial cut [16:55:17]*** CUTSNS_PIN = 1 [16:55:17]*** CUTSNS_PIN = 0 [16:55:18]*** Brake cut motor [16:55:18]Read from MH i2c: 01 [16:55:18]MH_I2C_Read... [16:55:18]*** Stop cut motor [16:55:18]*** Cut end [16:55:18]Read from MH i2c: 01 07 00 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: 01 07 00 22 3C 00 00 00 00 00 FF 0F 73 [16:55:18]process_action close_receipt done [16:55:18]requested_data is exist [16:55:18]produce_requested_data [16:55:18]requested_item fm.sn is exist - process it [16:55:18]wFMCommunicate request_size=4 [16:55:18]MH_SAM_APDU [16:55:18]CAPDU: 80 11 00 00 [16:55:18]Write to MH i2c: E2 08 00 23 3C 80 11 00 00 00 00 00 00 D9 [16:55:18]Write i2c OK [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 [16:55:18]MH_I2C_Read... [16:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:18]Read from MH i2c: E2 17 00 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 17 00 23 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 2B [16:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [16:55:18]wFMCommunicate OK [16:55:18]requested_item fd.num is exist - process it [16:55:18]SAM_PROTO_GetFieldsCounters [16:55:18]wFMCommunicate request_size=4 [16:55:18]MH_SAM_APDU [16:55:18]CAPDU: 80 13 00 00 [16:55:18]Write to MH i2c: E2 08 00 24 3C 80 13 00 00 00 00 00 00 DC [16:55:18]Write i2c OK [16:55:18]MH_I2C_Read... [16:55:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:18]Read from MH i2c: E2 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 62 00 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 62 00 24 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 6F 56 00 00 0E 04 04 00 45 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 8C [16:55:18]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 6F 56 00 00 0E 04 04 00 45 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 [16:55:18]wFMCommunicate OK [16:55:18]SAM_PROTO_GetFieldsCounters done [16:55:18]requested_item shift.num is exist - process it [16:55:18]requested_item shift.opened is exist - process it [16:55:18]req_shift_opened [16:55:18]FM_GetShiftState [16:55:18]SAM_PROTO_GetShiftState [16:55:18]wFMCommunicate request_size=4 [16:55:18]MH_SAM_APDU [16:55:18]CAPDU: 80 13 01 00 [16:55:18]Write to MH i2c: E2 08 00 25 3C 80 13 01 00 00 00 00 00 DE [16:55:18]Write i2c OK [16:55:18]MH_I2C_Read... [16:55:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:18]Read from MH i2c: E2 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 0E 00 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 0E 00 25 3C 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 4F [16:55:18]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [16:55:18]wFMCommunicate OK [16:55:18]SAM_PROTO_GetShiftState done [16:55:18]FM_GetShiftState done [16:55:18]req_shift_opened done [16:55:18]requested_item shift.open_date is exist - process it [16:55:18]req_shift_open_date [16:55:18]req_shift_open_date done [16:55:18]produce_requested_data done [16:55:18]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22127,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [16:55:18]process_action_free close_receipt [16:55:18]json_value_free [16:55:18]json_value_free done [16:55:18]process_json_proto returns [16:55:18]Send response to host [16:55:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22127,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [16:55:18]free response buf [16:55:18]execute_script done [16:55:18]execute_script returns [16:55:18]free content buf [16:55:18]Sock 9.Close socket [16:55:18]Sock 9.Thread stoped [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:43]OFD Sender: No OFD packet to send [17:04:48]OFD Sender: No OFD packet to send [17:04:53]OFD Sender: No OFD packet to send [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]OFD Sender: No OFD packet to send [17:05:13]OFD Sender: No OFD packet to send [17:05:18]OFD Sender: No OFD packet to send [17:05:23]OFD Sender: No OFD packet to send [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [17:05:38]OFD Sender: No OFD packet to send [17:05:43]OFD Sender: No OFD packet to send [17:05:48]OFD Sender: No OFD packet to send [17:05:53]OFD Sender: No OFD packet to send [17:05:58]OFD Sender: No OFD packet to send [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:53]OFD Sender: No OFD packet to send [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:20]accept exits with 8 [17:24:20]New connection [17:24:20]New thread 3067178340 created [17:24:20]Thread 3067321700 joined [17:24:20]Waiting for new connection... [17:24:20] Sock 8.Parse request [17:24:20]Sock 8.Check first char [17:24:20]Sock 8.First char is OK [17:24:20]request: POST /json_proto HTTP/1.0 [17:24:20]Method: POST [17:24:20]URL: /json_proto [17:24:20]Method is POST - this is cgi request [17:24:20]url: /json_proto [17:24:20]query_string will be loaded in cgi processing [17:24:20]execute_cgi json_proto POST (null) [17:24:20]execute_cgi path=json_proto method=POST [17:24:20]POST find Content-Length [17:24:20]Host: 172.17.35.133:8080 [17:24:20]Content-Length: 628 [17:24:20]Content-Type: application/json [17:24:20] [17:24:20]POST finish read [17:24:20]Found Content-Length = 628 [17:24:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254351", "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" ] } } [17:24:20]execute_script... [17:24:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254351", "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" ] } } [17:24:20]POST & json_proto [17:24:20]process_json_proto [17:24:20]json parsed OK: [17:24:20]protocol is kg_v1.0 [17:24:20]action value=close_receipt [17:24:20]process_action close_receipt [17:24:20]cmd_close_receipt [17:24:20]MH_GetDate [17:24:20]Write to MH i2c: F0 00 00 26 3C 51 [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: F0 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: F0 09 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: F0 09 00 26 3C 00 D3 7C 6C 66 8C 55 28 65 E9 [17:24:20]GetLastDocTimeStamp 1718384129 [17:24:20]current date 1718385875 [17:24:20]FM_GetShiftState [17:24:20]SAM_PROTO_GetShiftState [17:24:20]wFMCommunicate request_size=4 [17:24:20]MH_SAM_APDU [17:24:20]CAPDU: 80 13 01 00 [17:24:20]Write to MH i2c: E2 08 00 27 3C 80 13 01 00 00 00 00 00 E0 [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:20]Read from MH i2c: E2 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 0E 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 0E 00 27 3C 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 51 [17:24:20]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [17:24:20]wFMCommunicate OK [17:24:20]SAM_PROTO_GetShiftState done [17:24:20]FM_GetShiftState done [17:24:20]opened in 1718324742 [17:24:20]opened+sec_in_day 1718411142 [17:24:20]quantity*price = 13000 [17:24:20]sum+1 = 13001 [17:24:20]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 130.00 袧小袩 1% : 1.15 袧袛小 12% : 13.80 袧邪谢懈褔薪褘屑懈: 130.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 42 14.06.2024 17:24 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22128 肖袩袛: 84768588625415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T172435&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22128&fm=84768588625415&tin=02508201610067®Number=0000000000099755&sum=13000 0 [17:24:21]StoreToDocumentArchive [17:24:21]shift 325 fd 22128 [17:24:21]save to /storage/0325/doc_00022128 [17:24:21]save last doc name /storage/0325/doc_00022128 to /storage/kkm_last_doc_name [17:24:21]save OK [17:24:21]Clear old archive folders... [17:24:21]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:24:21]tlvbuf is 0029D1A0 [17:24:21]SAM_PROTO_ClearQueue [17:24:21]wFMCommunicate request_size=4 [17:24:21]MH_SAM_APDU [17:24:21]CAPDU: 80 09 00 00 [17:24:21]Write to MH i2c: E2 08 00 34 3C 80 09 00 00 00 00 00 00 E2 [17:24:21]Write i2c OK [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 [17:24:21]MH_I2C_Read... [17:24:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:21]Read from MH i2c: E2 03 00 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 03 00 34 3C 00 90 00 E4 [17:24:21]RAPDU: 90 00 [17:24:21]wFMCommunicate OK [17:24:21]SAM_PROTO_ClearQueue done [17:24:21]KKMCreateOFDPacket [17:24:21]OFDProtocolAddRootSTLVToBuf [17:24:21]FM_MakeSignedData [17:24:21]FM_MakeSignedData [17:24:21]SAM_PROTO_SignData [17:24:21]wFMCommunicate request_size=4 [17:24:21]MH_SAM_APDU [17:24:21]CAPDU: 80 0D 01 02 [17:24:21]Write to MH i2c: E2 08 00 35 3C 80 0D 01 02 00 00 00 00 EA [17:24:21]Write i2c OK [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 [17:24:21]MH_I2C_Read... [17:24:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:21]Read from MH i2c: E2 03 00 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 03 00 35 3C 00 90 00 E5 [17:24:21]RAPDU: 90 00 [17:24:21]wFMCommunicate OK [17:24:21]wFMCommunicate request_size=255 [17:24:21]MH_SAM_APDU [17:24:21]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 2A 00 00 00 F4 03 04 00 D3 7C 6C 66 0E 04 04 00 45 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 [17:24:21]Write to MH i2c: E2 02 01 36 3C 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 2A 00 00 00 F4 03 04 00 D3 7C 6C 66 0E 04 04 00 45 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 A0 [17:24:22]Write i2c OK [17:24:22]MH_I2C_Read... [17:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:22]Read from MH i2c: E2 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 03 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 03 00 36 3C 00 90 00 E6 [17:24:22]RAPDU: 90 00 [17:24:22]wFMCommunicate OK [17:24:22]wFMCommunicate request_size=35 [17:24:22]MH_SAM_APDU [17:24:22]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 70 56 00 00 35 04 06 00 4D 18 B9 9C F6 07 [17:24:22]Write to MH i2c: E2 26 00 37 3C 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 70 56 00 00 35 04 06 00 4D 18 B9 9C F6 07 00 00 5C [17:24:22]Write i2c OK [17:24:22]MH_I2C_Read... [17:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:22]Read from MH i2c: E2 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 03 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 03 00 37 3C 00 90 00 E7 [17:24:22]RAPDU: 90 00 [17:24:22]wFMCommunicate OK [17:24:22]wFMCommunicate request_size=4 [17:24:22]MH_SAM_APDU [17:24:22]CAPDU: 80 0D 03 02 [17:24:22]Write to MH i2c: E2 08 00 38 3C 80 0D 03 02 00 00 00 00 EF [17:24:22]Write i2c OK [17:24:22]MH_I2C_Read... [17:24:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:22]Read from MH i2c: E2 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 0B 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 0B 00 38 3C 00 9D D2 B2 50 BE F1 A7 F4 90 00 AB [17:24:22]RAPDU: 9D D2 B2 50 BE F1 A7 F4 90 00 [17:24:22]wFMCommunicate OK [17:24:22]SAM_PROTO_SignData done [17:24:22]FM_MakeSignedData done [17:24:22]CreateOFDProtocolMessage [17:24:22]wFMCommunicate request_size=4 [17:24:22]MH_SAM_APDU [17:24:22]CAPDU: 80 11 00 00 [17:24:22]Write to MH i2c: E2 08 00 39 3C 80 11 00 00 00 00 00 00 EF [17:24:22]Write i2c OK [17:24:22]MH_I2C_Read... [17:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:22]Read from MH i2c: E2 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 17 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 17 00 39 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 41 [17:24:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [17:24:22]wFMCommunicate OK [17:24:22]CreateOFDProtocolMessage done [17:24:22]OFDSenderStorePacket 22128 [17:24:22]StoreOFDPacket docnum=22128 [17:24: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 28 01 00 00 25 D6 20 01 9C 3F 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 2A 00 00 00 F4 03 04 00 D3 7C 6C 66 0E 04 04 00 45 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 70 56 00 00 35 04 06 00 4D 18 B9 9C F6 07 9D D2 B2 50 BE F1 A7 F4 [17:24:22]CheckFolder [17:24:22]dirname=/storage/ofd_packets [17:24:22]CheckFolder done [17:24:22]ProducePacketName [17:24:22]name=ofd_packets/00022128 [17:24:22]NVStorageSaveData ofd_packets/00022128 [17:24:22]File name is /storage/ofd_packets/00022128 [17:24:22]Write 326 bytes [17:24:22]NVStorageSaveData done [17:24:22]OFDSenderStorePacket done [17:24:22]KKMCreateOFDPacket done [17:24:22]NVStorageSaveData kkm_last_timestamp [17:24:22]File name is /storage/kkm_last_timestamp [17:24:22]Write 4 bytes [17:24:22]NVStorageSaveData done [17:24:22]ExternCall_PrintAddStr [17:24:22]wPrintStart [17:24:22]Write to MH i2c: 01 00 00 3A 3C 76 [17:24:22]OFD Sender: Processing packet 22128 [packets to send 5, broken 4] [17:24:22]ProducePacketName [17:24:22]name=ofd_packets/00022128 [17:24:22]OFD Sender: To server: 嚂鰌G, [17:24:22]CommunicateWithHost lk.salyk.kg:30040 [17:24:22]ConnectInit lk.salyk.kg [17:24:22]Write i2c OK [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: 01 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: 01 07 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: 01 07 00 3A 3C 00 00 00 00 00 FF 0F 8B [17:24:22]RasterBufferAndPrint [17:24:22]line 小褔械褌 N : (3)254351 [17:24:22]line 袠袧袧: 02508201610067 [17:24:22]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:24:22]line 袩袪袨袛袗袞袗 [17:24:22]line 孝芯胁邪褉: 2000036230011 [17:24:22]line 袣芯褎械 袥邪褌褌械 XL(GABB TRADE) [17:24:22]line 1.000 * 130.00 [17:24:22]line = 130.00 [17:24:22]line 袧袛小 12% 袧小袩 1% [17:24:22]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:24:22]line 袠孝袨袚袨: 130.00 [17:24:22]line 袧小袩 1% : 1.15 [17:24:22]line 袧袛小 12% : 13.80 [17:24:22]line 袧邪谢懈褔薪褘屑懈: 130.00 [17:24:22]line 袘械蟹薪邪谢.: 0.00 [17:24:22]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [17:24:22]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [17:24:22]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:24:22]line 效械泻 42 14.06.2024 17:24 [17:24:22]line 小屑械薪邪: 325 肖肖袛: 1.0 [17:24:22]line 袟袧袦: 0300000200 [17:24:22]line 袪袧袦: 0000000000099755 [17:24:22]line 袙械褉褋懈褟 袣袣袦: 001 [17:24:22]line 肖袦: 0000000000965344 [17:24:22]line 肖袛: 22128 [17:24:22]line 肖袩袛: 84768588625415 [17:24:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T172435&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22128&fm=84768588625415&tin=02508201610067®Number=0000000000099755&sum=13000 [17:24:22]line 0 [17:24:22]Connected sock=10 [17:24: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 28 01 00 00 25 D6 20 01 9C 3F 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 2A 00 00 00 F4 03 04 00 D3 7C 6C 66 0E 04 04 00 45 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 70 56 00 00 35 04 06 00 4D 18 B9 9C F6 07 9D D2 B2 50 BE F1 A7 F4 [17:24:22]written 0, free lines is 4095 [17:24: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 AE 94 47 00 12 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 70 56 00 00 F4 03 04 00 93 25 6C 66 B6 04 01 00 00 53 28 07 FA 8E 24 7C CA [17:24:22]CommunicateWithHost err = 0 [17:24:22]CheckOFDResponse [17:24:22]1017 (14) - 77093643461234 [17:24:22]1041 (16) - 0000000000965344 [17:24:22]1040 (4) - 22128 [17:24:22]1012 (4) - 14.06.2024 11:12 [17:24:22]1206 (1) - 0 [17:24:22]OFD Sender: Remove packet 22128 [17:24:22]ProducePacketName [17:24:22]name=ofd_packets/00022128 [17:24:22]NVStorageDeleteData [17:24:23]Write to MH i2c: 01 00 00 62 3C 9E [17:24:23]Write i2c OK [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: 01 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: 01 07 00 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: 01 07 00 62 3C 00 00 00 00 00 1D 0D CF [17:24:23]RasterBufferAndPrint [17:24:23]line [17:24:23]line [17:24:23]line [17:24:23]line [17:24:23]line [17:24:23]written 0, free lines is 3363 [17:24:23]MH_Cut [17:24:23]Write to MH i2c: D1 01 00 69 3C 01 77 [17:24:23]Write i2c OK [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: D1 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: D1 01 00 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: D1 01 00 69 3C 00 76 [17:24:23]Write to MH i2c: 01 00 00 6A 3C A6 [17:24:23]Write i2c OK [17:24:23]MH_I2C_Read... [17:24:23]OFD Sender: No OFD packet to send [17:24:23]*** Cut start [17:24:23]*** Partial cut [17:24:23]*** CUTSNS_PIN = 1 [17:24:23]*** CUTSNS_PIN = 0 [17:24:24]*** Brake cut motor [17:24:24]Read from MH i2c: 01 [17:24:24]MH_I2C_Read... [17:24:24]*** Stop cut motor [17:24:24]*** Cut end [17:24:24]Read from MH i2c: 01 07 00 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: 01 07 00 6A 3C 00 00 00 00 00 FF 0F BB [17:24:24]process_action close_receipt done [17:24:24]requested_data is exist [17:24:24]produce_requested_data [17:24:24]requested_item fm.sn is exist - process it [17:24:24]wFMCommunicate request_size=4 [17:24:24]MH_SAM_APDU [17:24:24]CAPDU: 80 11 00 00 [17:24:24]Write to MH i2c: E2 08 00 6B 3C 80 11 00 00 00 00 00 00 21 [17:24:24]Write i2c OK [17:24:24]MH_I2C_Read... [17:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:24]Read from MH i2c: E2 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 17 00 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 17 00 6B 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 73 [17:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [17:24:24]wFMCommunicate OK [17:24:24]requested_item fd.num is exist - process it [17:24:24]SAM_PROTO_GetFieldsCounters [17:24:24]wFMCommunicate request_size=4 [17:24:24]MH_SAM_APDU [17:24:24]CAPDU: 80 13 00 00 [17:24:24]Write to MH i2c: E2 08 00 6C 3C 80 13 00 00 00 00 00 00 24 [17:24:24]Write i2c OK [17:24:24]MH_I2C_Read... [17:24:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:24]Read from MH i2c: E2 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 62 00 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 62 00 6C 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 70 56 00 00 0E 04 04 00 45 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 D8 [17:24: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 70 56 00 00 0E 04 04 00 45 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 [17:24:24]wFMCommunicate OK [17:24:24]SAM_PROTO_GetFieldsCounters done [17:24:24]requested_item shift.num is exist - process it [17:24:24]requested_item shift.opened is exist - process it [17:24:24]req_shift_opened [17:24:24]FM_GetShiftState [17:24:24]SAM_PROTO_GetShiftState [17:24:24]wFMCommunicate request_size=4 [17:24:24]MH_SAM_APDU [17:24:24]CAPDU: 80 13 01 00 [17:24:24]Write to MH i2c: E2 08 00 6D 3C 80 13 01 00 00 00 00 00 26 [17:24:24]Write i2c OK [17:24:24]MH_I2C_Read... [17:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:24]Read from MH i2c: E2 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 0E 00 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 0E 00 6D 3C 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 97 [17:24:24]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [17:24:24]wFMCommunicate OK [17:24:24]SAM_PROTO_GetShiftState done [17:24:24]FM_GetShiftState done [17:24:24]req_shift_opened done [17:24:24]requested_item shift.open_date is exist - process it [17:24:24]req_shift_open_date [17:24:24]req_shift_open_date done [17:24:24]produce_requested_data done [17:24:24]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22128,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [17:24:24]process_action_free close_receipt [17:24:24]json_value_free [17:24:24]json_value_free done [17:24:24]process_json_proto returns [17:24:24]Send response to host [17:24:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22128,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [17:24:24]free response buf [17:24:24]execute_script done [17:24:24]execute_script returns [17:24:24]free content buf [17:24:24]Sock 8.Close socket [17:24:24]Sock 8.Thread stoped [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:58]OFD Sender: No OFD packet to send [17:31:03]OFD Sender: No OFD packet to send [17:31:08]OFD Sender: No OFD packet to send [17:31:13]OFD Sender: No OFD packet to send [17:31:18]OFD Sender: No OFD packet to send [17:31:23]OFD Sender: No OFD packet to send [17:31:28]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send [17:33:13]OFD Sender: No OFD packet to send [17:33:18]OFD Sender: No OFD packet to send [17:33:23]OFD Sender: No OFD packet to send [17:33:28]OFD Sender: No OFD packet to send [17:33:33]OFD Sender: No OFD packet to send [17:33:38]OFD Sender: No OFD packet to send [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:08]OFD Sender: No OFD packet to send [17:34:13]OFD Sender: No OFD packet to send [17:34:18]OFD Sender: No OFD packet to send [17:34:23]OFD Sender: No OFD packet to send [17:34:28]OFD Sender: No OFD packet to send [17:34:33]OFD Sender: No OFD packet to send [17:34:38]OFD Sender: No OFD packet to send [17:34:43]OFD Sender: No OFD packet to send [17:34:48]OFD Sender: No OFD packet to send [17:34:53]OFD Sender: No OFD packet to send [17:34:58]OFD Sender: No OFD packet to send [17:35:03]OFD Sender: No OFD packet to send [17:35:08]OFD Sender: No OFD packet to send [17:35:13]OFD Sender: No OFD packet to send [17:35:18]OFD Sender: No OFD packet to send [17:35:23]OFD Sender: No OFD packet to send [17:35:28]OFD Sender: No OFD packet to send [17:35:31]accept exits with 9 [17:35:31]New connection [17:35:31]New thread 3067321700 created [17:35:31]Thread 3067178340 joined [17:35:31]Waiting for new connection... [17:35:31] Sock 9.Parse request [17:35:31]Sock 9.Check first char [17:35:31]Sock 9.First char is OK [17:35:31]request: POST /json_proto HTTP/1.0 [17:35:31]Method: POST [17:35:31]URL: /json_proto [17:35:31]Method is POST - this is cgi request [17:35:31]url: /json_proto [17:35:31]query_string will be loaded in cgi processing [17:35:31]execute_cgi json_proto POST (null) [17:35:31]execute_cgi path=json_proto method=POST [17:35:31]POST find Content-Length [17:35:31]Host: 172.17.35.133:8080 [17:35:31]Content-Length: 829 [17:35:31]Content-Type: application/json [17:35:31] [17:35:31]POST finish read [17:35:31]Found Content-Length = 829 [17:35:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254352", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:31]execute_script... [17:35: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)254352", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:31]POST & json_proto [17:35:31]process_json_proto [17:35:31]json parsed OK: [17:35:31]protocol is kg_v1.0 [17:35:31]action value=close_receipt [17:35:31]process_action close_receipt [17:35:31]cmd_close_receipt [17:35:31]MH_GetDate [17:35:31]Write to MH i2c: F0 00 00 6E 3C 99 [17:35:31]Write i2c OK [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: F0 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: F0 09 00 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: F0 09 00 6E 3C 00 73 7F 6C 66 8C 55 28 65 D4 [17:35:31]GetLastDocTimeStamp 1718385875 [17:35:31]current date 1718386547 [17:35:31]FM_GetShiftState [17:35:31]SAM_PROTO_GetShiftState [17:35:31]wFMCommunicate request_size=4 [17:35:31]MH_SAM_APDU [17:35:31]CAPDU: 80 13 01 00 [17:35:31]Write to MH i2c: E2 08 00 6F 3C 80 13 01 00 00 00 00 00 28 [17:35:31]Write i2c OK [17:35:31]MH_I2C_Read... [17:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:31]Read from MH i2c: E2 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: E2 0E 00 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: E2 0E 00 6F 3C 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 99 [17:35:31]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [17:35:31]wFMCommunicate OK [17:35:31]SAM_PROTO_GetShiftState done [17:35:31]FM_GetShiftState done [17:35:31]opened in 1718324742 [17:35:31]opened+sec_in_day 1718411142 [17:35:31]quantity*price = 26000 [17:35:31]sum+1 = 26001 [17:35:31]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 260.00 袧小袩 1% : 2.30 袧袛小 12% : 27.61 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 260.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 43 14.06.2024 17:35 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袗袣袘 袣褘褉谐褘蟹褋褌邪薪 肖袦: 0000000000965344 肖袛: 22129 肖袩袛: 167179823959297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T173547&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22129&fm=167179823959297&tin=02508201610067®Number=0000000000099755&sum=26000 0 [17:35:33]StoreToDocumentArchive [17:35:33]shift 325 fd 22129 [17:35:33]save to /storage/0325/doc_00022129 [17:35:33]save last doc name /storage/0325/doc_00022129 to /storage/kkm_last_doc_name [17:35:33]save OK [17:35:33]Clear old archive folders... [17:35:33]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:35:33]tlvbuf is 0022A1A0 [17:35:33]SAM_PROTO_ClearQueue [17:35:33]wFMCommunicate request_size=4 [17:35:33]MH_SAM_APDU [17:35:33]CAPDU: 80 09 00 00 [17:35:33]Write to MH i2c: E2 08 00 7C 3C 80 09 00 00 00 00 00 00 2A [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:33]Read from MH i2c: E2 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 7C 3C 00 90 00 2C [17:35:33]RAPDU: 90 00 [17:35:33]wFMCommunicate OK [17:35:33]SAM_PROTO_ClearQueue done [17:35:33]KKMCreateOFDPacket [17:35:33]OFDProtocolAddRootSTLVToBuf [17:35:33]FM_MakeSignedData [17:35:33]FM_MakeSignedData [17:35:33]SAM_PROTO_SignData [17:35:33]wFMCommunicate request_size=4 [17:35:33]MH_SAM_APDU [17:35:33]CAPDU: 80 0D 01 02 [17:35:33]Write to MH i2c: E2 08 00 7D 3C 80 0D 01 02 00 00 00 00 32 [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:33]Read from MH i2c: E2 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 7D 3C 00 90 00 2D [17:35:33]RAPDU: 90 00 [17:35:33]wFMCommunicate OK [17:35:33]wFMCommunicate request_size=255 [17:35:33]MH_SAM_APDU [17:35:33]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 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 73 7F 6C 66 0E 04 04 00 45 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 [17:35:33]Write to MH i2c: E2 02 01 7E 3C 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 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 73 7F 6C 66 0E 04 04 00 45 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 46 [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:33]Read from MH i2c: E2 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 7E 3C 00 90 00 2E [17:35:33]RAPDU: 90 00 [17:35:33]wFMCommunicate OK [17:35:33]wFMCommunicate request_size=35 [17:35:33]MH_SAM_APDU [17:35:33]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 71 56 00 00 35 04 06 00 98 0C 96 05 4D 01 [17:35:33]Write to MH i2c: E2 26 00 7F 3C 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 71 56 00 00 35 04 06 00 98 0C 96 05 4D 01 00 00 7B [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:33]Read from MH i2c: E2 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 7F 3C 00 90 00 2F [17:35:33]RAPDU: 90 00 [17:35:33]wFMCommunicate OK [17:35:33]wFMCommunicate request_size=4 [17:35:33]MH_SAM_APDU [17:35:33]CAPDU: 80 0D 03 02 [17:35:33]Write to MH i2c: E2 08 00 80 3C 80 0D 03 02 00 00 00 00 37 [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:33]Read from MH i2c: E2 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 0B 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 0B 00 80 3C 00 3E 7B E0 75 7A BF B1 D3 90 00 03 [17:35:33]RAPDU: 3E 7B E0 75 7A BF B1 D3 90 00 [17:35:33]wFMCommunicate OK [17:35:33]SAM_PROTO_SignData done [17:35:33]FM_MakeSignedData done [17:35:33]CreateOFDProtocolMessage [17:35:33]wFMCommunicate request_size=4 [17:35:33]MH_SAM_APDU [17:35:33]CAPDU: 80 11 00 00 [17:35:33]Write to MH i2c: E2 08 00 81 3C 80 11 00 00 00 00 00 00 37 [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:33]Read from MH i2c: E2 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 17 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 17 00 81 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 89 [17:35:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [17:35:33]wFMCommunicate OK [17:35:33]CreateOFDProtocolMessage done [17:35:33]OFDSenderStorePacket 22129 [17:35:33]StoreOFDPacket docnum=22129 [17:35: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 28 01 00 00 2E DE 20 01 FA 76 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 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 73 7F 6C 66 0E 04 04 00 45 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 71 56 00 00 35 04 06 00 98 0C 96 05 4D 01 3E 7B E0 75 7A BF B1 D3 [17:35:33]CheckFolder [17:35:33]dirname=/storage/ofd_packets [17:35:33]CheckFolder done [17:35:33]ProducePacketName [17:35:33]name=ofd_packets/00022129 [17:35:33]NVStorageSaveData ofd_packets/00022129 [17:35:33]File name is /storage/ofd_packets/00022129 [17:35:33]Write 326 bytes [17:35:33]NVStorageSaveData done [17:35:33]OFDSenderStorePacket done [17:35:33]KKMCreateOFDPacket done [17:35:33]NVStorageSaveData kkm_last_timestamp [17:35:33]File name is /storage/kkm_last_timestamp [17:35:33]Write 4 bytes [17:35:33]NVStorageSaveData done [17:35:33]ExternCall_PrintAddStr [17:35:33]wPrintStart [17:35:33]Write to MH i2c: 01 00 00 82 3C BE [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: 01 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: 01 07 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: 01 07 00 82 3C 00 00 00 00 00 FF 0F D3 [17:35:33]RasterBufferAndPrint [17:35:33]line 小褔械褌 N : (3)254352 [17:35:33]line 袠袧袧: 02508201610067 [17:35:33]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:35:33]line 袩袪袨袛袗袞袗 [17:35:33]line 孝芯胁邪褉: 2000036230011 [17:35:33]line 袣芯褎械 袥邪褌褌械 XL(GABB TRADE) [17:35:33]line 2.000 * 130.00 [17:35:33]line = 260.00 [17:35:33]line 袧袛小 12% 袧小袩 1% [17:35:33]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:35:33]line 袠孝袨袚袨: 260.00 [17:35:33]line 袧小袩 1% : 2.30 [17:35:33]line 袧袛小 12% : 27.61 [17:35:33]line 袧邪谢懈褔薪褘屑懈: 0.00 [17:35:33]line 袘械蟹薪邪谢.: 260.00 [17:35:33]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [17:35:33]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [17:35:33]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:35:33]line 效械泻 43 14.06.2024 17:35 [17:35:33]line 小屑械薪邪: 325 肖肖袛: 1.0 [17:35:33]line 袟袧袦: 0300000200 [17:35:33]line 袪袧袦: 0000000000099755 [17:35:33]line 袙械褉褋懈褟 袣袣袦: 001 [17:35:33]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袗袣袘 袣褘褉谐褘蟹褋褌邪薪 [17:35:33]line 肖袦: 0000000000965344 [17:35:33]line 肖袛: 22129 [17:35:33]line 肖袩袛: 167179823959297 [17:35:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T173547&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22129&fm=167179823959297&tin=02508201610067®Number=0000000000099755&sum=26000 [17:35:33]line 0 [17:35:33]OFD Sender: Processing packet 22129 [packets to send 5, broken 4] [17:35:33]ProducePacketName [17:35:33]name=ofd_packets/00022129 [17:35:33]OFD Sender: To server: 嚂鰌G, [17:35:33]CommunicateWithHost lk.salyk.kg:30040 [17:35:33]ConnectInit lk.salyk.kg [17:35:33]written 0, free lines is 4095 [17:35:34]Connected sock=10 [17:35: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 28 01 00 00 2E DE 20 01 FA 76 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 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 73 7F 6C 66 0E 04 04 00 45 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 71 56 00 00 35 04 06 00 98 0C 96 05 4D 01 3E 7B E0 75 7A BF B1 D3 [17:35: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 5F C0 47 00 CA AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 71 56 00 00 F4 03 04 00 32 28 6C 66 B6 04 01 00 00 29 D5 1C B5 E1 F9 69 B0 [17:35:34]CommunicateWithHost err = 0 [17:35:34]CheckOFDResponse [17:35:34]1017 (14) - 77093643461234 [17:35:34]1041 (16) - 0000000000965344 [17:35:34]1040 (4) - 22129 [17:35:34]1012 (4) - 14.06.2024 11:23 [17:35:34]1206 (1) - 0 [17:35:34]OFD Sender: Remove packet 22129 [17:35:34]ProducePacketName [17:35:34]name=ofd_packets/00022129 [17:35:34]NVStorageDeleteData [17:35:34]Write to MH i2c: 01 00 00 AC 3C E8 [17:35:34]Write i2c OK [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: 01 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: 01 07 00 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: 01 07 00 AC 3C 00 00 00 00 00 03 0D FF [17:35:34]RasterBufferAndPrint [17:35:34]line [17:35:34]line [17:35:34]line [17:35:34]line [17:35:34]line [17:35:34]written 0, free lines is 3337 [17:35:34]MH_Cut [17:35:34]Write to MH i2c: D1 01 00 B3 3C 01 C1 [17:35:34]Write i2c OK [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: D1 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: D1 01 00 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: D1 01 00 B3 3C 00 C0 [17:35:34]Write to MH i2c: 01 00 00 B4 3C F0 [17:35:34]Write i2c OK [17:35:34]MH_I2C_Read... [17:35:34]OFD Sender: No OFD packet to send [17:35:35]*** Cut start [17:35:35]*** Partial cut [17:35:35]*** CUTSNS_PIN = 1 [17:35:35]*** CUTSNS_PIN = 0 [17:35:35]*** Brake cut motor [17:35:35]Read from MH i2c: 01 [17:35:35]MH_I2C_Read... [17:35:35]*** Stop cut motor [17:35:35]*** Cut end [17:35:35]Read from MH i2c: 01 07 00 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: 01 07 00 B4 3C 00 00 00 00 00 FF 0F 05 [17:35:35]process_action close_receipt done [17:35:35]requested_data is exist [17:35:35]produce_requested_data [17:35:35]requested_item fm.sn is exist - process it [17:35:35]wFMCommunicate request_size=4 [17:35:35]MH_SAM_APDU [17:35:35]CAPDU: 80 11 00 00 [17:35:35]Write to MH i2c: E2 08 00 B5 3C 80 11 00 00 00 00 00 00 6B [17:35:35]Write i2c OK [17:35:35]MH_I2C_Read... [17:35:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:35]Read from MH i2c: E2 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 17 00 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 17 00 B5 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 BD [17:35:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [17:35:35]wFMCommunicate OK [17:35:35]requested_item fd.num is exist - process it [17:35:35]SAM_PROTO_GetFieldsCounters [17:35:35]wFMCommunicate request_size=4 [17:35:35]MH_SAM_APDU [17:35:35]CAPDU: 80 13 00 00 [17:35:35]Write to MH i2c: E2 08 00 B6 3C 80 13 00 00 00 00 00 00 6E [17:35:35]Write i2c OK [17:35:35]MH_I2C_Read... [17:35:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:35]Read from MH i2c: E2 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 62 00 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 62 00 B6 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 71 56 00 00 0E 04 04 00 45 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 26 [17:35: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 71 56 00 00 0E 04 04 00 45 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 [17:35:35]wFMCommunicate OK [17:35:35]SAM_PROTO_GetFieldsCounters done [17:35:35]requested_item shift.num is exist - process it [17:35:35]requested_item shift.opened is exist - process it [17:35:35]req_shift_opened [17:35:35]FM_GetShiftState [17:35:35]SAM_PROTO_GetShiftState [17:35:35]wFMCommunicate request_size=4 [17:35:35]MH_SAM_APDU [17:35:35]CAPDU: 80 13 01 00 [17:35:35]Write to MH i2c: E2 08 00 B7 3C 80 13 01 00 00 00 00 00 70 [17:35:35]Write i2c OK [17:35:35]MH_I2C_Read... [17:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:35]Read from MH i2c: E2 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 0E 00 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 0E 00 B7 3C 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 E1 [17:35:35]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [17:35:35]wFMCommunicate OK [17:35:35]SAM_PROTO_GetShiftState done [17:35:35]FM_GetShiftState done [17:35:35]req_shift_opened done [17:35:35]requested_item shift.open_date is exist - process it [17:35:35]req_shift_open_date [17:35:35]req_shift_open_date done [17:35:35]produce_requested_data done [17:35:35]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22129,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [17:35:35]process_action_free close_receipt [17:35:35]json_value_free [17:35:35]json_value_free done [17:35:35]process_json_proto returns [17:35:35]Send response to host [17:35:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22129,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [17:35:35]free response buf [17:35:35]execute_script done [17:35:35]execute_script returns [17:35:35]free content buf [17:35:35]Sock 9.Close socket [17:35:35]Sock 9.Thread stoped [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]OFD Sender: No OFD packet to send [17:40:14]OFD Sender: No OFD packet to send [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:40:59]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:18]accept exits with 8 [17:44:18]New connection [17:44:18]New thread 3067178340 created [17:44:18]Thread 3067321700 joined [17:44:18]Waiting for new connection... [17:44:18] Sock 8.Parse request [17:44:18]Sock 8.Check first char [17:44:18]Sock 8.First char is OK [17:44:18]request: POST /json_proto HTTP/1.0 [17:44:18]Method: POST [17:44:18]URL: /json_proto [17:44:18]Method is POST - this is cgi request [17:44:18]url: /json_proto [17:44:18]query_string will be loaded in cgi processing [17:44:18]execute_cgi json_proto POST (null) [17:44:18]execute_cgi path=json_proto method=POST [17:44:18]POST find Content-Length [17:44:18]Host: 172.17.35.133:8080 [17:44:18]Content-Length: 683 [17:44:18]Content-Type: application/json [17:44:18] [17:44:18]POST finish read [17:44:18]Found Content-Length = 683 [17:44:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254353", "tax_sys" : 0, "items" : [ { "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:18]execute_script... [17:44:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254353", "tax_sys" : 0, "items" : [ { "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:18]POST & json_proto [17:44:18]process_json_proto [17:44:18]json parsed OK: [17:44:18]protocol is kg_v1.0 [17:44:18]action value=close_receipt [17:44:18]process_action close_receipt [17:44:18]cmd_close_receipt [17:44:18]MH_GetDate [17:44:18]Write to MH i2c: F0 00 00 B8 3C E3 [17:44:18]Write i2c OK [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: F0 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: F0 09 00 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: F0 09 00 B8 3C 00 81 81 6C 66 8C 55 28 65 2E [17:44:18]GetLastDocTimeStamp 1718386547 [17:44:18]current date 1718387073 [17:44:18]FM_GetShiftState [17:44:18]SAM_PROTO_GetShiftState [17:44:18]wFMCommunicate request_size=4 [17:44:18]MH_SAM_APDU [17:44:18]CAPDU: 80 13 01 00 [17:44:18]Write to MH i2c: E2 08 00 B9 3C 80 13 01 00 00 00 00 00 72 [17:44:18]Write i2c OK [17:44:18]MH_I2C_Read... [17:44:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:18]Read from MH i2c: E2 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: E2 0E 00 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: E2 0E 00 B9 3C 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 E3 [17:44:18]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [17:44:18]wFMCommunicate OK [17:44:18]SAM_PROTO_GetShiftState done [17:44:18]FM_GetShiftState done [17:44:18]opened in 1718324742 [17:44:18]opened+sec_in_day 1718411142 [17:44:18]quantity*price = 10000 [17:44:18]sum+1 = 10001 [17:44:18]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 100.00 袧小袩 1% : 0.88 袧袛小 12% : 10.62 袧邪谢懈褔薪褘屑懈: 100.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 44 14.06.2024 17:44 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22130 肖袩袛: 194712612771814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T174434&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22130&fm=194712612771814&tin=02508201610067®Number=0000000000099755&sum=10000 0 [17:44:19]StoreToDocumentArchive [17:44:19]shift 325 fd 22130 [17:44:19]save to /storage/0325/doc_00022130 [17:44:19]save last doc name /storage/0325/doc_00022130 to /storage/kkm_last_doc_name [17:44:19]save OK [17:44:19]Clear old archive folders... [17:44:19]ProcessDocumentItem done err = 0, tmpTLVsize=291 [17:44:19]tlvbuf is 00316FB0 [17:44:19]SAM_PROTO_ClearQueue [17:44:19]wFMCommunicate request_size=4 [17:44:19]MH_SAM_APDU [17:44:19]CAPDU: 80 09 00 00 [17:44:19]Write to MH i2c: E2 08 00 C6 3C 80 09 00 00 00 00 00 00 74 [17:44:19]Write i2c OK [17:44:19]MH_I2C_Read... [17:44:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:19]Read from MH i2c: E2 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 03 00 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 03 00 C6 3C 00 90 00 76 [17:44:19]RAPDU: 90 00 [17:44:19]wFMCommunicate OK [17:44:19]SAM_PROTO_ClearQueue done [17:44:19]KKMCreateOFDPacket [17:44:19]OFDProtocolAddRootSTLVToBuf [17:44:19]FM_MakeSignedData [17:44:19]FM_MakeSignedData [17:44:19]SAM_PROTO_SignData [17:44:19]wFMCommunicate request_size=4 [17:44:19]MH_SAM_APDU [17:44:19]CAPDU: 80 0D 01 02 [17:44:19]Write to MH i2c: E2 08 00 C7 3C 80 0D 01 02 00 00 00 00 7C [17:44:19]Write i2c OK [17:44:19]MH_I2C_Read... [17:44:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:19]Read from MH i2c: E2 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 03 00 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 03 00 C7 3C 00 90 00 77 [17:44:19]RAPDU: 90 00 [17:44:19]wFMCommunicate OK [17:44:19]wFMCommunicate request_size=255 [17:44:19]MH_SAM_APDU [17:44:19]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 82 81 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [17:44:20]Write to MH i2c: E2 02 01 C8 3C 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 82 81 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 E7 [17:44:20]Write i2c OK [17:44:20]MH_I2C_Read... [17:44:20]OFD Sender: No OFD packet to send [17:44:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:20]Read from MH i2c: E2 [17:44:20]MH_I2C_Read... [17:44:20]Read from MH i2c: E2 03 00 [17:44:20]MH_I2C_Read... [17:44:20]Read from MH i2c: E2 03 00 C8 3C 00 90 00 78 [17:44:20]RAPDU: 90 00 [17:44:20]wFMCommunicate OK [17:44:20]wFMCommunicate request_size=50 [17:44:20]MH_SAM_APDU [17:44:20]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 72 56 00 00 35 04 06 00 B1 17 10 1E 17 E6 [17:44:20]Write to MH i2c: E2 35 00 C9 3C 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 72 56 00 00 35 04 06 00 B1 17 10 1E 17 E6 00 00 A2 [17:44:20]Write i2c OK [17:44:20]MH_I2C_Read... [17:44:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:20]Read from MH i2c: E2 [17:44:20]MH_I2C_Read... [17:44:20]Read from MH i2c: E2 03 00 [17:44:20]MH_I2C_Read... [17:44:20]Read from MH i2c: E2 03 00 C9 3C 00 90 00 79 [17:44:20]RAPDU: 90 00 [17:44:20]wFMCommunicate OK [17:44:20]wFMCommunicate request_size=4 [17:44:20]MH_SAM_APDU [17:44:20]CAPDU: 80 0D 03 02 [17:44:20]Write to MH i2c: E2 08 00 CA 3C 80 0D 03 02 00 00 00 00 81 [17:44:20]Write i2c OK [17:44:20]MH_I2C_Read... [17:44:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:20]Read from MH i2c: E2 [17:44:20]MH_I2C_Read... [17:44:20]Read from MH i2c: E2 0B 00 [17:44:20]MH_I2C_Read... [17:44:20]Read from MH i2c: E2 0B 00 CA 3C 00 CC 8E AD 76 6F 34 A8 99 90 00 E3 [17:44:20]RAPDU: CC 8E AD 76 6F 34 A8 99 90 00 [17:44:20]wFMCommunicate OK [17:44:20]SAM_PROTO_SignData done [17:44:20]FM_MakeSignedData done [17:44:20]CreateOFDProtocolMessage [17:44:20]wFMCommunicate request_size=4 [17:44:20]MH_SAM_APDU [17:44:20]CAPDU: 80 11 00 00 [17:44:20]Write to MH i2c: E2 08 00 CB 3C 80 11 00 00 00 00 00 00 81 [17:44:20]Write i2c OK [17:44:20]MH_I2C_Read... [17:44:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:20]Read from MH i2c: E2 [17:44:20]MH_I2C_Read... [17:44:20]Read from MH i2c: E2 17 00 [17:44:20]MH_I2C_Read... [17:44:20]Read from MH i2c: E2 17 00 CB 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 D3 [17:44:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [17:44:20]wFMCommunicate OK [17:44:20]CreateOFDProtocolMessage done [17:44:20]OFDSenderStorePacket 22130 [17:44:20]StoreOFDPacket docnum=22130 [17:44:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 37 01 00 00 D4 92 2F 01 B3 3E 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 82 81 6C 66 0E 04 04 00 45 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 72 56 00 00 35 04 06 00 B1 17 10 1E 17 E6 CC 8E AD 76 6F 34 A8 99 [17:44:20]CheckFolder [17:44:20]dirname=/storage/ofd_packets [17:44:20]CheckFolder done [17:44:20]ProducePacketName [17:44:20]name=ofd_packets/00022130 [17:44:20]NVStorageSaveData ofd_packets/00022130 [17:44:20]File name is /storage/ofd_packets/00022130 [17:44:20]Write 341 bytes [17:44:20]NVStorageSaveData done [17:44:20]OFDSenderStorePacket done [17:44:20]KKMCreateOFDPacket done [17:44:20]NVStorageSaveData kkm_last_timestamp [17:44:20]File name is /storage/kkm_last_timestamp [17:44:20]Write 4 bytes [17:44:20]NVStorageSaveData done [17:44:20]ExternCall_PrintAddStr [17:44:20]wPrintStart [17:44:20]Write to MH i2c: 01 00 00 CC 3C 08 [17:44:20]Write i2c OK [17:44:20]MH_I2C_Read... [17:44:20]Read from MH i2c: 01 [17:44:20]MH_I2C_Read... [17:44:20]Read from MH i2c: 01 07 00 [17:44:20]MH_I2C_Read... [17:44:20]Read from MH i2c: 01 07 00 CC 3C 00 00 00 00 00 FF 0F 1D [17:44:20]RasterBufferAndPrint [17:44:20]line 小褔械褌 N : (3)254353 [17:44:20]line 袠袧袧: 02508201610067 [17:44:20]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:44:20]line 袩袪袨袛袗袞袗 [17:44:20]line 孝芯胁邪褉: 4870002328398 [17:44:20]line 袙芯写邪 ASU 锌懈褌 薪.谐邪蟹 屑褟褌邪 袩协孝 1谢 [17:44:20]line 1.000 * 100.00 [17:44:20]line = 100.00 [17:44:20]line 袧袛小 12% 袧小袩 1% [17:44:20]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:44:20]line 袠孝袨袚袨: 100.00 [17:44:20]line 袧小袩 1% : 0.88 [17:44:20]line 袧袛小 12% : 10.62 [17:44:20]line 袧邪谢懈褔薪褘屑懈: 100.00 [17:44:20]line 袘械蟹薪邪谢.: 0.00 [17:44:20]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [17:44:20]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [17:44:20]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:44:20]line 效械泻 44 14.06.2024 17:44 [17:44:20]line 小屑械薪邪: 325 肖肖袛: 1.0 [17:44:20]line 袟袧袦: 0300000200 [17:44:20]line 袪袧袦: 0000000000099755 [17:44:20]line 袙械褉褋懈褟 袣袣袦: 001 [17:44:20]line 肖袦: 0000000000965344 [17:44:20]line 肖袛: 22130 [17:44:20]line 肖袩袛: 194712612771814 [17:44:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T174434&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22130&fm=194712612771814&tin=02508201610067®Number=0000000000099755&sum=10000 [17:44:20]line 0 [17:44:20]OFD Sender: Processing packet 22130 [packets to send 5, broken 4] [17:44:20]ProducePacketName [17:44:20]name=ofd_packets/00022130 [17:44:20]OFD Sender: To server: 嚂鰌G, [17:44:20]CommunicateWithHost lk.salyk.kg:30040 [17:44:20]ConnectInit lk.salyk.kg [17:44:20]written 0, free lines is 4095 [17:44:20]Connected sock=10 [17:44:20]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 37 01 00 00 D4 92 2F 01 B3 3E 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 82 81 6C 66 0E 04 04 00 45 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 72 56 00 00 35 04 06 00 B1 17 10 1E 17 E6 CC 8E AD 76 6F 34 A8 99 [17:44: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 A1 38 47 00 12 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 72 56 00 00 F4 03 04 00 41 2A 6C 66 B6 04 01 00 00 1D E1 7D 7D 85 A7 07 A3 [17:44:21]CommunicateWithHost err = 0 [17:44:21]CheckOFDResponse [17:44:21]1017 (14) - 77093643461234 [17:44:21]1041 (16) - 0000000000965344 [17:44:21]1040 (4) - 22130 [17:44:21]1012 (4) - 14.06.2024 11:32 [17:44:21]1206 (1) - 0 [17:44:21]OFD Sender: Remove packet 22130 [17:44:21]ProducePacketName [17:44:21]name=ofd_packets/00022130 [17:44:21]NVStorageDeleteData [17:44:21]Write to MH i2c: 01 00 00 F5 3C 31 [17:44:21]Write i2c OK [17:44:21]MH_I2C_Read... [17:44:21]Read from MH i2c: 01 [17:44:21]MH_I2C_Read... [17:44:21]Read from MH i2c: 01 07 00 [17:44:21]MH_I2C_Read... [17:44:21]Read from MH i2c: 01 07 00 F5 3C 00 00 00 00 00 14 0D 59 [17:44:21]RasterBufferAndPrint [17:44:21]line [17:44:21]line [17:44:21]line [17:44:21]line [17:44:21]line [17:44:21]written 0, free lines is 3357 [17:44:21]MH_Cut [17:44:21]Write to MH i2c: D1 01 00 FC 3C 01 0A [17:44:21]Write i2c OK [17:44:21]MH_I2C_Read... [17:44:21]Read from MH i2c: D1 [17:44:21]MH_I2C_Read... [17:44:21]Read from MH i2c: D1 01 00 [17:44:21]MH_I2C_Read... [17:44:21]Read from MH i2c: D1 01 00 FC 3C 00 09 [17:44:21]Write to MH i2c: 01 00 00 FD 3C 39 [17:44:21]Write i2c OK [17:44:21]MH_I2C_Read... [17:44:21]OFD Sender: No OFD packet to send [17:44:21]*** Cut start [17:44:21]*** Partial cut [17:44:21]*** CUTSNS_PIN = 1 [17:44:21]*** CUTSNS_PIN = 0 [17:44:22]*** Brake cut motor [17:44:22]Read from MH i2c: 01 [17:44:22]MH_I2C_Read... [17:44:22]*** Stop cut motor [17:44:22]*** Cut end [17:44:22]Read from MH i2c: 01 07 00 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: 01 07 00 FD 3C 00 00 00 00 00 FF 0F 4E [17:44:22]process_action close_receipt done [17:44:22]requested_data is exist [17:44:22]produce_requested_data [17:44:22]requested_item fm.sn is exist - process it [17:44:22]wFMCommunicate request_size=4 [17:44:22]MH_SAM_APDU [17:44:22]CAPDU: 80 11 00 00 [17:44:22]Write to MH i2c: E2 08 00 FE 3C 80 11 00 00 00 00 00 00 B4 [17:44:22]Write i2c OK [17:44:22]MH_I2C_Read... [17:44:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:22]Read from MH i2c: E2 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 17 00 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 17 00 FE 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 06 [17:44:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [17:44:22]wFMCommunicate OK [17:44:22]requested_item fd.num is exist - process it [17:44:22]SAM_PROTO_GetFieldsCounters [17:44:22]wFMCommunicate request_size=4 [17:44:22]MH_SAM_APDU [17:44:22]CAPDU: 80 13 00 00 [17:44:22]Write to MH i2c: E2 08 00 FF 3C 80 13 00 00 00 00 00 00 B7 [17:44:22]Write i2c OK [17:44:22]MH_I2C_Read... [17:44:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:22]Read from MH i2c: E2 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 62 00 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 62 00 FF 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 72 56 00 00 0E 04 04 00 45 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 73 [17:44:22]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 72 56 00 00 0E 04 04 00 45 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 [17:44:22]wFMCommunicate OK [17:44:22]SAM_PROTO_GetFieldsCounters done [17:44:22]requested_item shift.num is exist - process it [17:44:22]requested_item shift.opened is exist - process it [17:44:22]req_shift_opened [17:44:22]FM_GetShiftState [17:44:22]SAM_PROTO_GetShiftState [17:44:22]wFMCommunicate request_size=4 [17:44:22]MH_SAM_APDU [17:44:22]CAPDU: 80 13 01 00 [17:44:22]Write to MH i2c: E2 08 00 00 3D 80 13 01 00 00 00 00 00 BA [17:44:22]Write i2c OK [17:44:22]MH_I2C_Read... [17:44:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:22]Read from MH i2c: E2 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 0E 00 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 0E 00 00 3D 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 2B [17:44:22]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [17:44:22]wFMCommunicate OK [17:44:22]SAM_PROTO_GetShiftState done [17:44:22]FM_GetShiftState done [17:44:22]req_shift_opened done [17:44:22]requested_item shift.open_date is exist - process it [17:44:22]req_shift_open_date [17:44:22]req_shift_open_date done [17:44:22]produce_requested_data done [17:44:22]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22130,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [17:44:22]process_action_free close_receipt [17:44:22]json_value_free [17:44:22]json_value_free done [17:44:22]process_json_proto returns [17:44:22]Send response to host [17:44:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22130,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [17:44:22]free response buf [17:44:22]execute_script done [17:44:22]execute_script returns [17:44:22]free content buf [17:44:22]Sock 8.Close socket [17:44:22]Sock 8.Thread stoped [17:44:26]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:50]accept exits with 9 [17:47:50]New connection [17:47:50]New thread 3067321700 created [17:47:50]Thread 3067178340 joined [17:47:50]Waiting for new connection... [17:47:50] Sock 9.Parse request [17:47:50]Sock 9.Check first char [17:47:50]Sock 9.First char is OK [17:47:50]request: POST /json_proto HTTP/1.0 [17:47:50]Method: POST [17:47:50]URL: /json_proto [17:47:50]Method is POST - this is cgi request [17:47:50]url: /json_proto [17:47:50]query_string will be loaded in cgi processing [17:47:50]execute_cgi json_proto POST (null) [17:47:50]execute_cgi path=json_proto method=POST [17:47:50]POST find Content-Length [17:47:50]Host: 172.17.35.133:8080 [17:47:50]Content-Length: 638 [17:47:50]Content-Type: application/json [17:47:50] [17:47:50]POST finish read [17:47:50]Found Content-Length = 638 [17:47:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254354", "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" ] } } [17:47:50]execute_script... [17:47: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)254354", "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" ] } } [17:47:50]POST & json_proto [17:47:50]process_json_proto [17:47:50]json parsed OK: [17:47:50]protocol is kg_v1.0 [17:47:50]action value=close_receipt [17:47:50]process_action close_receipt [17:47:50]cmd_close_receipt [17:47:50]MH_GetDate [17:47:50]Write to MH i2c: F0 00 00 01 3D 2D [17:47:50]Write i2c OK [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: F0 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: F0 09 00 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: F0 09 00 01 3D 00 56 82 6C 66 8C 55 28 65 4E [17:47:50]GetLastDocTimeStamp 1718387074 [17:47:50]current date 1718387286 [17:47:50]FM_GetShiftState [17:47:50]SAM_PROTO_GetShiftState [17:47:50]wFMCommunicate request_size=4 [17:47:50]MH_SAM_APDU [17:47:50]CAPDU: 80 13 01 00 [17:47:50]Write to MH i2c: E2 08 00 02 3D 80 13 01 00 00 00 00 00 BC [17:47:50]Write i2c OK [17:47:50]MH_I2C_Read... [17:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:50]Read from MH i2c: E2 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 0E 00 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 0E 00 02 3D 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 2D [17:47:50]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [17:47:50]wFMCommunicate OK [17:47:50]SAM_PROTO_GetShiftState done [17:47:50]FM_GetShiftState done [17:47:50]opened in 1718324742 [17:47:50]opened+sec_in_day 1718411142 [17:47:50]quantity*price = 7000 [17:47:50]sum+1 = 7001 [17:47:50]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 70.00 袧小袩 1% : 0.62 袧袛小 12% : 7.43 袧邪谢懈褔薪褘屑懈: 70.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 45 14.06.2024 17:48 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22131 肖袩袛: 70370540734797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T174806&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22131&fm=70370540734797&tin=02508201610067®Number=0000000000099755&sum=7000 0 [17:47:51]StoreToDocumentArchive [17:47:51]shift 325 fd 22131 [17:47:51]save to /storage/0325/doc_00022131 [17:47:51]save last doc name /storage/0325/doc_00022131 to /storage/kkm_last_doc_name [17:47:51]save OK [17:47:51]Clear old archive folders... [17:47:51]ProcessDocumentItem done err = 0, tmpTLVsize=273 [17:47:51]tlvbuf is 002C50A0 [17:47:51]SAM_PROTO_ClearQueue [17:47:51]wFMCommunicate request_size=4 [17:47:51]MH_SAM_APDU [17:47:51]CAPDU: 80 09 00 00 [17:47:51]Write to MH i2c: E2 08 00 0F 3D 80 09 00 00 00 00 00 00 BE [17:47:51]Write i2c OK [17:47:51]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:52]Read from MH i2c: E2 03 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 0F 3D 00 90 00 C0 [17:47:52]RAPDU: 90 00 [17:47:52]wFMCommunicate OK [17:47:52]SAM_PROTO_ClearQueue done [17:47:52]KKMCreateOFDPacket [17:47:52]OFDProtocolAddRootSTLVToBuf [17:47:52]FM_MakeSignedData [17:47:52]FM_MakeSignedData [17:47:52]SAM_PROTO_SignData [17:47:52]wFMCommunicate request_size=4 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 0D 01 02 [17:47:52]Write to MH i2c: E2 08 00 10 3D 80 0D 01 02 00 00 00 00 C6 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 10 3D 00 90 00 C1 [17:47:52]RAPDU: 90 00 [17:47:52]wFMCommunicate OK [17:47:52]wFMCommunicate request_size=255 [17:47:52]MH_SAM_APDU [17:47:52]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 2D 00 00 00 F4 03 04 00 56 82 6C 66 0E 04 04 00 45 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 [17:47:52]Write to MH i2c: E2 02 01 11 3D 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 2D 00 00 00 F4 03 04 00 56 82 6C 66 0E 04 04 00 45 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 08 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 11 3D 00 90 00 C2 [17:47:52]RAPDU: 90 00 [17:47:52]wFMCommunicate OK [17:47:52]wFMCommunicate request_size=32 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 34 34 10 04 04 00 73 56 00 00 35 04 06 00 40 00 6B 15 49 4D [17:47:52]Write to MH i2c: E2 23 00 12 3D 80 0D 02 02 1B 00 30 30 30 39 36 35 33 34 34 10 04 04 00 73 56 00 00 35 04 06 00 40 00 6B 15 49 4D 00 00 44 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 12 3D 00 90 00 C3 [17:47:52]RAPDU: 90 00 [17:47:52]wFMCommunicate OK [17:47:52]wFMCommunicate request_size=4 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 0D 03 02 [17:47:52]Write to MH i2c: E2 08 00 13 3D 80 0D 03 02 00 00 00 00 CB [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 0B 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 0B 00 13 3D 00 68 71 52 6A BF 79 B5 8D 90 00 DB [17:47:52]RAPDU: 68 71 52 6A BF 79 B5 8D 90 00 [17:47:52]wFMCommunicate OK [17:47:52]SAM_PROTO_SignData done [17:47:52]FM_MakeSignedData done [17:47:52]CreateOFDProtocolMessage [17:47:52]wFMCommunicate request_size=4 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 11 00 00 [17:47:52]Write to MH i2c: E2 08 00 14 3D 80 11 00 00 00 00 00 00 CB [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 17 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 17 00 14 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 1D [17:47:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [17:47:52]wFMCommunicate OK [17:47:52]CreateOFDProtocolMessage done [17:47:52]OFDSenderStorePacket 22131 [17:47:52]StoreOFDPacket docnum=22131 [17:47: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 25 01 00 00 76 87 1D 01 DC A5 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 2D 00 00 00 F4 03 04 00 56 82 6C 66 0E 04 04 00 45 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 73 56 00 00 35 04 06 00 40 00 6B 15 49 4D 68 71 52 6A BF 79 B5 8D [17:47:52]CheckFolder [17:47:52]dirname=/storage/ofd_packets [17:47:52]CheckFolder done [17:47:52]ProducePacketName [17:47:52]name=ofd_packets/00022131 [17:47:52]NVStorageSaveData ofd_packets/00022131 [17:47:52]File name is /storage/ofd_packets/00022131 [17:47:52]Write 323 bytes [17:47:52]NVStorageSaveData done [17:47:52]OFDSenderStorePacket done [17:47:52]KKMCreateOFDPacket done [17:47:52]NVStorageSaveData kkm_last_timestamp [17:47:52]File name is /storage/kkm_last_timestamp [17:47:52]Write 4 bytes [17:47:52]NVStorageSaveData done [17:47:52]ExternCall_PrintAddStr [17:47:52]wPrintStart [17:47:52]Write to MH i2c: 01 00 00 15 3D 52 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: 01 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: 01 07 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: 01 07 00 15 3D 00 00 00 00 00 FF 0F 67 [17:47:52]RasterBufferAndPrint [17:47:52]line 小褔械褌 N : (3)254354 [17:47:52]line 袠袧袧: 02508201610067 [17:47:52]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:47:52]line 袩袪袨袛袗袞袗 [17:47:52]line 孝芯胁邪褉: 4700002082931 [17:47:52]line 袙芯写泻邪 啸芯褉芯褕邪褟 0,1谢 [17:47:52]line 1.000 * 70.00 [17:47:52]line = 70.00 [17:47:52]line 袧袛小 12% 袧小袩 1% [17:47:52]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:47:52]line 袠孝袨袚袨: 70.00 [17:47:52]line 袧小袩 1% : 0.62 [17:47:52]line 袧袛小 12% : 7.43 [17:47:52]line 袧邪谢懈褔薪褘屑懈: 70.00 [17:47:52]line 袘械蟹薪邪谢.: 0.00 [17:47:52]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [17:47:52]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [17:47:52]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:47:52]line 效械泻 45 14.06.2024 17:48 [17:47:52]line 小屑械薪邪: 325 肖肖袛: 1.0 [17:47:52]line 袟袧袦: 0300000200 [17:47:52]line 袪袧袦: 0000000000099755 [17:47:52]line 袙械褉褋懈褟 袣袣袦: 001 [17:47:52]line 肖袦: 0000000000965344 [17:47:52]line 肖袛: 22131 [17:47:52]line 肖袩袛: 70370540734797 [17:47:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T174806&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22131&fm=70370540734797&tin=02508201610067®Number=0000000000099755&sum=7000 [17:47:52]line 0 [17:47:52]written 0, free lines is 4095 [17:47:52]OFD Sender: Processing packet 22131 [packets to send 5, broken 4] [17:47:52]ProducePacketName [17:47:52]name=ofd_packets/00022131 [17:47:52]OFD Sender: To server: 嚂鰌G, [17:47:52]CommunicateWithHost lk.salyk.kg:30040 [17:47:52]ConnectInit lk.salyk.kg [17:47:53]Connected sock=10 [17:47: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 25 01 00 00 76 87 1D 01 DC A5 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 2D 00 00 00 F4 03 04 00 56 82 6C 66 0E 04 04 00 45 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 73 56 00 00 35 04 06 00 40 00 6B 15 49 4D 68 71 52 6A BF 79 B5 8D [17:47:53]Write to MH i2c: 01 00 00 3D 3D 7A [17:47:53]Write i2c OK [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: 01 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: 01 07 00 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: 01 07 00 3D 3D 00 00 00 00 00 20 0D AE [17:47:53]RasterBufferAndPrint [17:47:53]line [17:47:53]line [17:47:53]line [17:47:53]line [17:47:53]line [17:47:53]written 0, free lines is 3366 [17:47:53]MH_Cut [17:47:53]Write to MH i2c: D1 01 00 44 3D 01 53 [17:47:53]Write i2c OK [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: D1 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: D1 01 00 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: D1 01 00 44 3D 00 52 [17:47:53]Write to MH i2c: 01 00 00 45 3D 82 [17:47:53]Write i2c OK [17:47:53]MH_I2C_Read... [17:47: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 6B 57 47 00 A4 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 73 56 00 00 F4 03 04 00 16 2B 6C 66 B6 04 01 00 00 F7 E6 2F 49 32 FB A2 CD [17:47:53]CommunicateWithHost err = 0 [17:47:53]CheckOFDResponse [17:47:53]1017 (14) - 77093643461234 [17:47:53]1041 (16) - 0000000000965344 [17:47:53]1040 (4) - 22131 [17:47:53]1012 (4) - 14.06.2024 11:35 [17:47:53]1206 (1) - 0 [17:47:53]OFD Sender: Remove packet 22131 [17:47:53]ProducePacketName [17:47:53]name=ofd_packets/00022131 [17:47:53]NVStorageDeleteData [17:47:53]*** Cut start [17:47:53]*** Partial cut [17:47:53]*** CUTSNS_PIN = 1 [17:47:53]OFD Sender: No OFD packet to send [17:47:53]*** CUTSNS_PIN = 0 [17:47:54]*** Brake cut motor [17:47:54]Read from MH i2c: 01 [17:47:54]MH_I2C_Read... [17:47:54]*** Stop cut motor [17:47:54]*** Cut end [17:47:54]Read from MH i2c: 01 07 00 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: 01 07 00 45 3D 00 00 00 00 00 FF 0F 97 [17:47:54]process_action close_receipt done [17:47:54]requested_data is exist [17:47:54]produce_requested_data [17:47:54]requested_item fm.sn is exist - process it [17:47:54]wFMCommunicate request_size=4 [17:47:54]MH_SAM_APDU [17:47:54]CAPDU: 80 11 00 00 [17:47:54]Write to MH i2c: E2 08 00 46 3D 80 11 00 00 00 00 00 00 FD [17:47:54]Write i2c OK [17:47:54]MH_I2C_Read... [17:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:54]Read from MH i2c: E2 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 17 00 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 17 00 46 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 4F [17:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [17:47:54]wFMCommunicate OK [17:47:54]requested_item fd.num is exist - process it [17:47:54]SAM_PROTO_GetFieldsCounters [17:47:54]wFMCommunicate request_size=4 [17:47:54]MH_SAM_APDU [17:47:54]CAPDU: 80 13 00 00 [17:47:54]Write to MH i2c: E2 08 00 47 3D 80 13 00 00 00 00 00 00 00 [17:47:54]Write i2c OK [17:47:54]MH_I2C_Read... [17:47:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:54]Read from MH i2c: E2 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 62 00 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 62 00 47 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 73 56 00 00 0E 04 04 00 45 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 C0 [17:47:54]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 73 56 00 00 0E 04 04 00 45 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 [17:47:54]wFMCommunicate OK [17:47:54]SAM_PROTO_GetFieldsCounters done [17:47:54]requested_item shift.num is exist - process it [17:47:54]requested_item shift.opened is exist - process it [17:47:54]req_shift_opened [17:47:54]FM_GetShiftState [17:47:54]SAM_PROTO_GetShiftState [17:47:54]wFMCommunicate request_size=4 [17:47:54]MH_SAM_APDU [17:47:54]CAPDU: 80 13 01 00 [17:47:54]Write to MH i2c: E2 08 00 48 3D 80 13 01 00 00 00 00 00 02 [17:47:54]Write i2c OK [17:47:54]MH_I2C_Read... [17:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:54]Read from MH i2c: E2 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 0E 00 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 0E 00 48 3D 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 73 [17:47:54]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [17:47:54]wFMCommunicate OK [17:47:54]SAM_PROTO_GetShiftState done [17:47:54]FM_GetShiftState done [17:47:54]req_shift_opened done [17:47:54]requested_item shift.open_date is exist - process it [17:47:54]req_shift_open_date [17:47:54]req_shift_open_date done [17:47:54]produce_requested_data done [17:47:54]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22131,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [17:47:54]process_action_free close_receipt [17:47:54]json_value_free [17:47:54]json_value_free done [17:47:54]process_json_proto returns [17:47:54]Send response to host [17:47:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22131,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [17:47:54]free response buf [17:47:54]execute_script done [17:47:54]execute_script returns [17:47:54]free content buf [17:47:54]Sock 9.Close socket [17:47:54]Sock 9.Thread stoped [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:49]OFD Sender: No OFD packet to send [17:50:54]OFD Sender: No OFD packet to send [17:50:59]OFD Sender: No OFD packet to send [17:51:04]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:29]OFD Sender: No OFD packet to send [17:56:34]OFD Sender: No OFD packet to send [17:56:39]OFD Sender: No OFD packet to send [17:56:44]OFD Sender: No OFD packet to send [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:49]OFD Sender: No OFD packet to send [18:02:54]OFD Sender: No OFD packet to send [18:02:59]OFD Sender: No OFD packet to send [18:03:04]OFD Sender: No OFD packet to send [18:03:09]OFD Sender: No OFD packet to send [18:03:14]OFD Sender: No OFD packet to send [18:03:19]OFD Sender: No OFD packet to send [18:03:24]OFD Sender: No OFD packet to send [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:49]OFD Sender: No OFD packet to send [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:09]OFD Sender: No OFD packet to send [18:04:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:24]OFD Sender: No OFD packet to send [18:04:29]OFD Sender: No OFD packet to send [18:04:34]OFD Sender: No OFD packet to send [18:04:39]OFD Sender: No OFD packet to send [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:39]OFD Sender: No OFD packet to send [18:06:44]OFD Sender: No OFD packet to send [18:06:49]OFD Sender: No OFD packet to send [18:06:54]OFD Sender: No OFD packet to send [18:06:59]OFD Sender: No OFD packet to send [18:07:04]OFD Sender: No OFD packet to send [18:07:09]OFD Sender: No OFD packet to send [18:07:14]OFD Sender: No OFD packet to send [18:07:19]OFD Sender: No OFD packet to send [18:07:24]OFD Sender: No OFD packet to send [18:07:29]OFD Sender: No OFD packet to send [18:07:34]OFD Sender: No OFD packet to send [18:07:39]OFD Sender: No OFD packet to send [18:07:44]OFD Sender: No OFD packet to send [18:07:49]OFD Sender: No OFD packet to send [18:07:54]OFD Sender: No OFD packet to send [18:07:59]OFD Sender: No OFD packet to send [18:08:04]OFD Sender: No OFD packet to send [18:08:09]OFD Sender: No OFD packet to send [18:08:14]OFD Sender: No OFD packet to send [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:39]OFD Sender: No OFD packet to send [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:14]OFD Sender: No OFD packet to send [18:09:19]OFD Sender: No OFD packet to send [18:09:24]OFD Sender: No OFD packet to send [18:09:29]OFD Sender: No OFD packet to send [18:09:34]OFD Sender: No OFD packet to send [18:09:39]OFD Sender: No OFD packet to send [18:09:44]OFD Sender: No OFD packet to send [18:09:49]OFD Sender: No OFD packet to send [18:09:54]OFD Sender: No OFD packet to send [18:09:59]OFD Sender: No OFD packet to send [18:10:05]OFD Sender: No OFD packet to send [18:10:10]OFD Sender: No OFD packet to send [18:10:15]OFD Sender: No OFD packet to send [18:10:20]OFD Sender: No OFD packet to send [18:10:25]OFD Sender: No OFD packet to send [18:10:30]OFD Sender: No OFD packet to send [18:10:35]OFD Sender: No OFD packet to send [18:10:40]OFD Sender: No OFD packet to send [18:10:45]OFD Sender: No OFD packet to send [18:10:50]OFD Sender: No OFD packet to send [18:10:55]OFD Sender: No OFD packet to send [18:11:00]OFD Sender: No OFD packet to send [18:11:05]OFD Sender: No OFD packet to send [18:11:10]OFD Sender: No OFD packet to send [18:11:15]OFD Sender: No OFD packet to send [18:11:20]OFD Sender: No OFD packet to send [18:11:25]OFD Sender: No OFD packet to send [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:12:00]OFD Sender: No OFD packet to send [18:12:05]OFD Sender: No OFD packet to send [18:12:10]OFD Sender: No OFD packet to send [18:12:10]accept exits with 8 [18:12:10]New connection [18:12:10]New thread 3067178340 created [18:12:10]Thread 3067321700 joined [18:12:10]Waiting for new connection... [18:12:10] Sock 8.Parse request [18:12:10]Sock 8.Check first char [18:12:10]Sock 8.First char is OK [18:12:10]request: POST /json_proto HTTP/1.0 [18:12:10]Method: POST [18:12:10]URL: /json_proto [18:12:10]Method is POST - this is cgi request [18:12:10]url: /json_proto [18:12:10]query_string will be loaded in cgi processing [18:12:10]execute_cgi json_proto POST (null) [18:12:10]execute_cgi path=json_proto method=POST [18:12:10]POST find Content-Length [18:12:10]Host: 172.17.35.133:8080 [18:12:10]Content-Length: 1237 [18:12:10]Content-Type: application/json [18:12:10] [18:12:10]POST finish read [18:12:10]Found Content-Length = 1237 [18:12:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254355", "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 }]} ,{ "code": "4700007110066", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043C\u0430\u0439\u043E\u043D\u0435\u0437\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 376.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:10]execute_script... [18:12:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254355", "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 }]} ,{ "code": "4700007110066", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043C\u0430\u0439\u043E\u043D\u0435\u0437\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 376.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:10]POST & json_proto [18:12:10]process_json_proto [18:12:10]json parsed OK: [18:12:10]protocol is kg_v1.0 [18:12:10]action value=close_receipt [18:12:10]process_action close_receipt [18:12:10]cmd_close_receipt [18:12:10]MH_GetDate [18:12:10]Write to MH i2c: F0 00 00 49 3D 75 [18:12:10]Write i2c OK [18:12:10]MH_I2C_Read... [18:12:10]Read from MH i2c: F0 [18:12:10]MH_I2C_Read... [18:12:10]Read from MH i2c: F0 09 00 [18:12:10]MH_I2C_Read... [18:12:10]Read from MH i2c: F0 09 00 49 3D 00 09 88 6C 66 8C 55 28 65 4F [18:12:10]GetLastDocTimeStamp 1718387286 [18:12:10]current date 1718388745 [18:12:10]FM_GetShiftState [18:12:10]SAM_PROTO_GetShiftState [18:12:10]wFMCommunicate request_size=4 [18:12:10]MH_SAM_APDU [18:12:10]CAPDU: 80 13 01 00 [18:12:10]Write to MH i2c: E2 08 00 4A 3D 80 13 01 00 00 00 00 00 04 [18:12:10]Write i2c OK [18:12:10]MH_I2C_Read... [18:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:10]Read from MH i2c: E2 [18:12:10]MH_I2C_Read... [18:12:10]Read from MH i2c: E2 0E 00 [18:12:10]MH_I2C_Read... [18:12:10]Read from MH i2c: E2 0E 00 4A 3D 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 75 [18:12:10]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [18:12:10]wFMCommunicate OK [18:12:10]SAM_PROTO_GetShiftState done [18:12:10]FM_GetShiftState done [18:12:10]opened in 1718324742 [18:12:10]opened+sec_in_day 1718411142 [18:12:10]quantity*price = 8500 [18:12:10]sum+1 = 8501 [18:12:10]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 4700007110066 小褝薪写胁懈褔 褋 屑邪泄芯薪械蟹芯屑 孝邪谢邪褋 袛邪邪屑褘 2.000 * 70.00 = 140.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 48742245 小懈谐邪褉械褌褘 Parliament Silver Blue 1.000 * 151.00 = 151.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 376.00 袧小袩 1% : 3.33 袧袛小 12% : 39.93 袧邪谢懈褔薪褘屑懈: 376.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 46 14.06.2024 18:12 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22132 肖袩袛: 41933279098959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T181225&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22132&fm=41933279098959&tin=02508201610067®Number=0000000000099755&sum=37600 0 [18:12:11]StoreToDocumentArchive [18:12:11]shift 325 fd 22132 [18:12:11]save to /storage/0325/doc_00022132 [18:12:11]save last doc name /storage/0325/doc_00022132 to /storage/kkm_last_doc_name [18:12:11]save OK [18:12:11]Clear old archive folders... [18:12:11]ProcessDocumentItem done err = 0, tmpTLVsize=524 [18:12:11]tlvbuf is 0028AE10 [18:12:11]SAM_PROTO_ClearQueue [18:12:11]wFMCommunicate request_size=4 [18:12:11]MH_SAM_APDU [18:12:11]CAPDU: 80 09 00 00 [18:12:11]Write to MH i2c: E2 08 00 57 3D 80 09 00 00 00 00 00 00 06 [18:12:11]Write i2c OK [18:12:11]MH_I2C_Read... [18:12:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:11]Read from MH i2c: E2 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 03 00 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 03 00 57 3D 00 90 00 08 [18:12:11]RAPDU: 90 00 [18:12:11]wFMCommunicate OK [18:12:11]SAM_PROTO_ClearQueue done [18:12:11]KKMCreateOFDPacket [18:12:11]OFDProtocolAddRootSTLVToBuf [18:12:11]FM_MakeSignedData [18:12:11]FM_MakeSignedData [18:12:11]SAM_PROTO_SignData [18:12:11]wFMCommunicate request_size=4 [18:12:11]MH_SAM_APDU [18:12:11]CAPDU: 80 0D 01 02 [18:12:11]Write to MH i2c: E2 08 00 58 3D 80 0D 01 02 00 00 00 00 0E [18:12:11]Write i2c OK [18:12:11]MH_I2C_Read... [18:12:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:11]Read from MH i2c: E2 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 03 00 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 03 00 58 3D 00 90 00 09 [18:12:11]RAPDU: 90 00 [18:12:11]wFMCommunicate OK [18:12:11]wFMCommunicate request_size=255 [18:12:11]MH_SAM_APDU [18:12:11]CAPDU: 80 0D 02 02 FA 03 00 0C 02 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 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 [18:12:11]Write to MH i2c: E2 02 01 59 3D 80 0D 02 02 FA 00 03 00 0C 02 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 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 93 [18:12:11]Write i2c OK [18:12:11]MH_I2C_Read... [18:12:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:12]Read from MH i2c: E2 [18:12:12]MH_I2C_Read... [18:12:12]Read from MH i2c: E2 03 00 [18:12:12]MH_I2C_Read... [18:12:12]Read from MH i2c: E2 03 00 59 3D 00 90 00 0A [18:12:12]RAPDU: 90 00 [18:12:12]wFMCommunicate OK [18:12:12]wFMCommunicate request_size=255 [18:12:12]MH_SAM_APDU [18:12:12]CAPDU: 80 0D 02 02 FA 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 0F 00 00 00 00 07 04 06 00 E0 92 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 09 88 6C 66 0E 04 04 00 45 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 [18:12:12]Write to MH i2c: E2 02 01 5A 3D 80 0D 02 02 FA 00 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 0F 00 00 00 00 07 04 06 00 E0 92 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 09 88 6C 66 0E 04 04 00 45 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 C8 [18:12:12]Write i2c OK [18:12:12]MH_I2C_Read... [18:12:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:12]Read from MH i2c: E2 [18:12:12]MH_I2C_Read... [18:12:12]Read from MH i2c: E2 03 00 [18:12:12]MH_I2C_Read... [18:12:12]Read from MH i2c: E2 03 00 5A 3D 00 90 00 0B [18:12:12]RAPDU: 90 00 [18:12:12]wFMCommunicate OK [18:12:12]wFMCommunicate request_size=33 [18:12:12]MH_SAM_APDU [18:12:12]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 36 35 33 34 34 10 04 04 00 74 56 00 00 35 04 06 00 26 23 5A 34 78 4F [18:12:12]Write to MH i2c: E2 24 00 5B 3D 80 0D 02 02 1C 00 30 30 30 30 39 36 35 33 34 34 10 04 04 00 74 56 00 00 35 04 06 00 26 23 5A 34 78 4F 00 00 08 [18:12:12]Write i2c OK [18:12:12]MH_I2C_Read... [18:12:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:12]Read from MH i2c: E2 [18:12:12]MH_I2C_Read... [18:12:12]Read from MH i2c: E2 03 00 [18:12:12]MH_I2C_Read... [18:12:12]Read from MH i2c: E2 03 00 5B 3D 00 90 00 0C [18:12:12]RAPDU: 90 00 [18:12:12]wFMCommunicate OK [18:12:12]wFMCommunicate request_size=4 [18:12:12]MH_SAM_APDU [18:12:12]CAPDU: 80 0D 03 02 [18:12:12]Write to MH i2c: E2 08 00 5C 3D 80 0D 03 02 00 00 00 00 14 [18:12:12]Write i2c OK [18:12:12]MH_I2C_Read... [18:12:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:12]Read from MH i2c: E2 [18:12:12]MH_I2C_Read... [18:12:12]Read from MH i2c: E2 0B 00 [18:12:12]MH_I2C_Read... [18:12:12]Read from MH i2c: E2 0B 00 5C 3D 00 92 84 D5 CE CD BB C3 59 90 00 72 [18:12:12]RAPDU: 92 84 D5 CE CD BB C3 59 90 00 [18:12:12]wFMCommunicate OK [18:12:12]SAM_PROTO_SignData done [18:12:12]FM_MakeSignedData done [18:12:12]CreateOFDProtocolMessage [18:12:12]wFMCommunicate request_size=4 [18:12:12]MH_SAM_APDU [18:12:12]CAPDU: 80 11 00 00 [18:12:12]Write to MH i2c: E2 08 00 5D 3D 80 11 00 00 00 00 00 00 14 [18:12:12]Write i2c OK [18:12:12]MH_I2C_Read... [18:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:12]Read from MH i2c: E2 [18:12:12]MH_I2C_Read... [18:12:12]Read from MH i2c: E2 17 00 [18:12:12]MH_I2C_Read... [18:12:12]Read from MH i2c: E2 17 00 5D 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 66 [18:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [18:12:12]wFMCommunicate OK [18:12:12]CreateOFDProtocolMessage done [18:12:12]OFDSenderStorePacket 22132 [18:12:12]StoreOFDPacket docnum=22132 [18:12:12]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 02 00 00 22 20 18 02 FA 37 5A 03 01 00 03 00 0C 02 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 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 0F 00 00 00 00 07 04 06 00 E0 92 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 09 88 6C 66 0E 04 04 00 45 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 74 56 00 00 35 04 06 00 26 23 5A 34 78 4F 92 84 D5 CE CD BB C3 59 [18:12:12]CheckFolder [18:12:12]dirname=/storage/ofd_packets [18:12:12]CheckFolder done [18:12:12]ProducePacketName [18:12:12]name=ofd_packets/00022132 [18:12:12]NVStorageSaveData ofd_packets/00022132 [18:12:12]File name is /storage/ofd_packets/00022132 [18:12:12]Write 574 bytes [18:12:12]NVStorageSaveData done [18:12:12]OFDSenderStorePacket done [18:12:12]KKMCreateOFDPacket done [18:12:12]NVStorageSaveData kkm_last_timestamp [18:12:12]File name is /storage/kkm_last_timestamp [18:12:12]Write 4 bytes [18:12:12]NVStorageSaveData done [18:12:12]ExternCall_PrintAddStr [18:12:12]wPrintStart [18:12:12]Write to MH i2c: 01 00 00 5E 3D 9B [18:12:12]Write i2c OK [18:12:12]MH_I2C_Read... [18:12:12]Read from MH i2c: 01 [18:12:12]MH_I2C_Read... [18:12:12]Read from MH i2c: 01 07 00 [18:12:12]MH_I2C_Read... [18:12:12]Read from MH i2c: 01 07 00 5E 3D 00 00 00 00 00 FF 0F B0 [18:12:12]RasterBufferAndPrint [18:12:12]line 小褔械褌 N : (3)254355 [18:12:12]line 袠袧袧: 02508201610067 [18:12:12]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:12:12]line 袩袪袨袛袗袞袗 [18:12:12]line 孝芯胁邪褉: 4700000481453 [18:12:12]line 袧邪锌懈褌芯泻 褝薪械褉谐 Nitro Max 0,45 卸/斜 [18:12:12]line 1.000 * 85.00 [18:12:12]line = 85.00 [18:12:12]line 袧袛小 12% 袧小袩 1% [18:12:12]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:12:12]line 孝芯胁邪褉: 4700007110066 [18:12:12]line 小褝薪写胁懈褔 褋 屑邪泄芯薪械蟹芯屑 孝邪谢邪褋 袛邪邪屑褘 [18:12:12]line 2.000 * 70.00 [18:12:12]line = 140.00 [18:12:12]line 袧袛小 12% 袧小袩 1% [18:12:12]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:12:12]line 孝芯胁邪褉: 48742245 [18:12:12]line 小懈谐邪褉械褌褘 Parliament Silver Blue [18:12:12]line 1.000 * 151.00 [18:12:12]line = 151.00 [18:12:12]line 袧袛小 12% 袧小袩 1% [18:12:12]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:12:12]line 袠孝袨袚袨: 376.00 [18:12:12]line 袧小袩 1% : 3.33 [18:12:12]line 袧袛小 12% : 39.93 [18:12:12]line 袧邪谢懈褔薪褘屑懈: 376.00 [18:12:12]line 袘械蟹薪邪谢.: 0.00 [18:12:12]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [18:12:12]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [18:12:12]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:12:12]line 效械泻 46 14.06.2024 18:12 [18:12:12]line 小屑械薪邪: 325 肖肖袛: 1.0 [18:12:12]line 袟袧袦: 0300000200 [18:12:12]line 袪袧袦: 0000000000099755 [18:12:12]line 袙械褉褋懈褟 袣袣袦: 001 [18:12:12]line 肖袦: 0000000000965344 [18:12:12]line 肖袛: 22132 [18:12:12]line 肖袩袛: 41933279098959 [18:12:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T181225&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22132&fm=41933279098959&tin=02508201610067®Number=0000000000099755&sum=37600 [18:12:12]OFD Sender: Processing packet 22132 [packets to send 5, broken 4] [18:12:12]ProducePacketName [18:12:12]name=ofd_packets/00022132 [18:12:12]OFD Sender: To server: 嚂鰌G, [18:12:12]CommunicateWithHost lk.salyk.kg:30040 [18:12:12]ConnectInit lk.salyk.kg [18:12:12]Connected sock=11 [18:12:12]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 02 00 00 22 20 18 02 FA 37 5A 03 01 00 03 00 0C 02 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 line 0 [18:12:12]01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 0F 00 00 00 00 07 04 06 00 E0 92 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 09 88 6C 66 0E 04 04 00 45 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 74 56 00 00 35 04 06 00 26 23 5A 34 78 4F 92 84 D5 CE CD BB C3 59 [18:12:12]written 0, free lines is 4095 [18:12:13]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 E2 EB 47 00 C2 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 74 56 00 00 F4 03 04 00 C9 30 6C 66 B6 04 01 00 00 C3 A2 87 01 3F 2D 91 7C [18:12:13]CommunicateWithHost err = 0 [18:12:13]CheckOFDResponse [18:12:13]1017 (14) - 77093643461234 [18:12:13]1041 (16) - 0000000000965344 [18:12:13]1040 (4) - 22132 [18:12:13]1012 (4) - 14.06.2024 12:00 [18:12:13]1206 (1) - 0 [18:12:13]OFD Sender: Remove packet 22132 [18:12:13]ProducePacketName [18:12:13]name=ofd_packets/00022132 [18:12:13]NVStorageDeleteData [18:12:13]Write to MH i2c: 01 00 00 95 3D D2 [18:12:13]Write i2c OK [18:12:13]MH_I2C_Read... [18:12:13]Read from MH i2c: 01 [18:12:13]MH_I2C_Read... [18:12:13]Read from MH i2c: 01 07 00 [18:12:13]MH_I2C_Read... [18:12:13]Read from MH i2c: 01 07 00 95 3D 00 00 00 00 00 46 0C 2B [18:12:13]RasterBufferAndPrint [18:12:13]line [18:12:13]line [18:12:13]line [18:12:13]line [18:12:13]line [18:12:13]written 0, free lines is 3151 [18:12:13]MH_Cut [18:12:13]Write to MH i2c: D1 01 00 9C 3D 01 AB [18:12:13]Write i2c OK [18:12:13]MH_I2C_Read... [18:12:13]Read from MH i2c: D1 [18:12:13]MH_I2C_Read... [18:12:13]Read from MH i2c: D1 01 00 [18:12:13]MH_I2C_Read... [18:12:13]Read from MH i2c: D1 01 00 9C 3D 00 AA [18:12:13]Write to MH i2c: 01 00 00 9D 3D DA [18:12:13]Write i2c OK [18:12:13]MH_I2C_Read... [18:12:13]OFD Sender: No OFD packet to send [18:12:14]*** Cut start [18:12:14]*** Partial cut [18:12:14]*** CUTSNS_PIN = 1 [18:12:14]*** CUTSNS_PIN = 0 [18:12:14]*** Brake cut motor [18:12:14]Read from MH i2c: 01 [18:12:14]MH_I2C_Read... [18:12:14]*** Stop cut motor [18:12:14]*** Cut end [18:12:14]Read from MH i2c: 01 07 00 [18:12:14]MH_I2C_Read... [18:12:14]Read from MH i2c: 01 07 00 9D 3D 00 00 00 00 00 FF 0F EF [18:12:14]process_action close_receipt done [18:12:14]requested_data is exist [18:12:14]produce_requested_data [18:12:14]requested_item fm.sn is exist - process it [18:12:14]wFMCommunicate request_size=4 [18:12:14]MH_SAM_APDU [18:12:14]CAPDU: 80 11 00 00 [18:12:14]Write to MH i2c: E2 08 00 9E 3D 80 11 00 00 00 00 00 00 55 [18:12:14]Write i2c OK [18:12:14]MH_I2C_Read... [18:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:14]Read from MH i2c: E2 [18:12:14]MH_I2C_Read... [18:12:14]Read from MH i2c: E2 17 00 [18:12:14]MH_I2C_Read... [18:12:14]Read from MH i2c: E2 17 00 9E 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 A7 [18:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [18:12:14]wFMCommunicate OK [18:12:14]requested_item fd.num is exist - process it [18:12:14]SAM_PROTO_GetFieldsCounters [18:12:14]wFMCommunicate request_size=4 [18:12:14]MH_SAM_APDU [18:12:14]CAPDU: 80 13 00 00 [18:12:14]Write to MH i2c: E2 08 00 9F 3D 80 13 00 00 00 00 00 00 58 [18:12:14]Write i2c OK [18:12:14]MH_I2C_Read... [18:12:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:15]Read from MH i2c: E2 [18:12:15]MH_I2C_Read... [18:12:15]Read from MH i2c: E2 62 00 [18:12:15]MH_I2C_Read... [18:12:15]Read from MH i2c: E2 62 00 9F 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 74 56 00 00 0E 04 04 00 45 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 1C [18:12:15]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 74 56 00 00 0E 04 04 00 45 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 [18:12:15]wFMCommunicate OK [18:12:15]SAM_PROTO_GetFieldsCounters done [18:12:15]requested_item shift.num is exist - process it [18:12:15]requested_item shift.opened is exist - process it [18:12:15]req_shift_opened [18:12:15]FM_GetShiftState [18:12:15]SAM_PROTO_GetShiftState [18:12:15]wFMCommunicate request_size=4 [18:12:15]MH_SAM_APDU [18:12:15]CAPDU: 80 13 01 00 [18:12:15]Write to MH i2c: E2 08 00 A0 3D 80 13 01 00 00 00 00 00 5A [18:12:15]Write i2c OK [18:12:15]MH_I2C_Read... [18:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:15]Read from MH i2c: E2 [18:12:15]MH_I2C_Read... [18:12:15]Read from MH i2c: E2 0E 00 [18:12:15]MH_I2C_Read... [18:12:15]Read from MH i2c: E2 0E 00 A0 3D 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 CB [18:12:15]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [18:12:15]wFMCommunicate OK [18:12:15]SAM_PROTO_GetShiftState done [18:12:15]FM_GetShiftState done [18:12:15]req_shift_opened done [18:12:15]requested_item shift.open_date is exist - process it [18:12:15]req_shift_open_date [18:12:15]req_shift_open_date done [18:12:15]produce_requested_data done [18:12:15]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22132,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [18:12:15]process_action_free close_receipt [18:12:15]json_value_free [18:12:15]json_value_free done [18:12:15]process_json_proto returns [18:12:15]Send response to host [18:12:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22132,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [18:12:15]free response buf [18:12:15]execute_script done [18:12:15]execute_script returns [18:12:15]free content buf [18:12:15]Sock 8.Close socket [18:12:15]Sock 8.Thread stoped [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:29]OFD Sender: No OFD packet to send [18:20:34]OFD Sender: No OFD packet to send [18:20:39]OFD Sender: No OFD packet to send [18:20:44]OFD Sender: No OFD packet to send [18:20:49]OFD Sender: No OFD packet to send [18:20:54]OFD Sender: No OFD packet to send [18:20:59]OFD Sender: No OFD packet to send [18:21:04]OFD Sender: No OFD packet to send [18:21:09]OFD Sender: No OFD packet to send [18:21:14]OFD Sender: No OFD packet to send [18:21:19]OFD Sender: No OFD packet to send [18:21:24]OFD Sender: No OFD packet to send [18:21:29]OFD Sender: No OFD packet to send [18:21:34]OFD Sender: No OFD packet to send [18:21:39]OFD Sender: No OFD packet to send [18:21:44]OFD Sender: No OFD packet to send [18:21:49]OFD Sender: No OFD packet to send [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:49]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:49]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:09]OFD Sender: No OFD packet to send [18:29:14]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:49]OFD Sender: No OFD packet to send [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:39]OFD Sender: No OFD packet to send [18:38:44]OFD Sender: No OFD packet to send [18:38:49]OFD Sender: No OFD packet to send [18:38:54]OFD Sender: No OFD packet to send [18:38:59]OFD Sender: No OFD packet to send [18:39:04]OFD Sender: No OFD packet to send [18:39:09]OFD Sender: No OFD packet to send [18:39:14]OFD Sender: No OFD packet to send [18:39:19]OFD Sender: No OFD packet to send [18:39:24]OFD Sender: No OFD packet to send [18:39:29]OFD Sender: No OFD packet to send [18:39:34]OFD Sender: No OFD packet to send [18:39:39]OFD Sender: No OFD packet to send [18:39:44]OFD Sender: No OFD packet to send [18:39:49]OFD Sender: No OFD packet to send [18:39:54]OFD Sender: No OFD packet to send [18:39:59]OFD Sender: No OFD packet to send [18:40:04]OFD Sender: No OFD packet to send [18:40:09]OFD Sender: No OFD packet to send [18:40:14]OFD Sender: No OFD packet to send [18:40:19]OFD Sender: No OFD packet to send [18:40:24]OFD Sender: No OFD packet to send [18:40:29]OFD Sender: No OFD packet to send [18:40:34]OFD Sender: No OFD packet to send [18:40:39]OFD Sender: No OFD packet to send [18:40:44]OFD Sender: No OFD packet to send [18:40:49]OFD Sender: No OFD packet to send [18:40:54]OFD Sender: No OFD packet to send [18:40:59]OFD Sender: No OFD packet to send [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:14]OFD Sender: No OFD packet to send [18:41:19]OFD Sender: No OFD packet to send [18:41:24]OFD Sender: No OFD packet to send [18:41:29]OFD Sender: No OFD packet to send [18:41:34]OFD Sender: No OFD packet to send [18:41:39]OFD Sender: No OFD packet to send [18:41:44]OFD Sender: No OFD packet to send [18:41:49]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:35]OFD Sender: No OFD packet to send [18:54:40]OFD Sender: No OFD packet to send [18:54:45]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:01]accept exits with 9 [18:59:01]New connection [18:59:01]New thread 3067321700 created [18:59:01]Thread 3067178340 joined [18:59:01]Waiting for new connection... [18:59:01] Sock 9.Parse request [18:59:01]Sock 9.Check first char [18:59:01]Sock 9.First char is OK [18:59:01]request: POST /json_proto HTTP/1.0 [18:59:01]Method: POST [18:59:01]URL: /json_proto [18:59:01]Method is POST - this is cgi request [18:59:01]url: /json_proto [18:59:01]query_string will be loaded in cgi processing [18:59:01]execute_cgi json_proto POST (null) [18:59:01]execute_cgi path=json_proto method=POST [18:59:01]POST find Content-Length [18:59:01]Host: 172.17.35.133:8080 [18:59:01]Content-Length: 715 [18:59:01]Content-Type: application/json [18:59:01] [18:59:01]POST finish read [18:59:01]Found Content-Length = 715 [18:59:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254356", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:01]execute_script... [18:59: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)254356", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:01]POST & json_proto [18:59:01]process_json_proto [18:59:01]json parsed OK: [18:59:01]protocol is kg_v1.0 [18:59:01]action value=close_receipt [18:59:01]process_action close_receipt [18:59:01]cmd_close_receipt [18:59:01]MH_GetDate [18:59:01]Write to MH i2c: F0 00 00 A1 3D CD [18:59:01]Write i2c OK [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: F0 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: F0 09 00 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: F0 09 00 A1 3D 00 05 93 6C 66 8C 55 28 65 AE [18:59:01]GetLastDocTimeStamp 1718388745 [18:59:01]current date 1718391557 [18:59:01]FM_GetShiftState [18:59:01]SAM_PROTO_GetShiftState [18:59:01]wFMCommunicate request_size=4 [18:59:01]MH_SAM_APDU [18:59:01]CAPDU: 80 13 01 00 [18:59:01]Write to MH i2c: E2 08 00 A2 3D 80 13 01 00 00 00 00 00 5C [18:59:01]Write i2c OK [18:59:01]MH_I2C_Read... [18:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:01]Read from MH i2c: E2 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 0E 00 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 0E 00 A2 3D 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 CD [18:59:01]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [18:59:01]wFMCommunicate OK [18:59:01]SAM_PROTO_GetShiftState done [18:59:01]FM_GetShiftState done [18:59:01]opened in 1718324742 [18:59:01]opened+sec_in_day 1718411142 [18:59:01]quantity*price = 7000 [18:59:01]sum+1 = 7001 [18:59:01]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 70.00 袧小袩 1% : 0.62 袧袛小 12% : 7.43 袧邪谢懈褔薪褘屑懈: 70.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 47 14.06.2024 18:59 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22133 肖袩袛: 203629426649221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T185917&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22133&fm=203629426649221&tin=02508201610067®Number=0000000000099755&sum=7000 0 [18:59:02]StoreToDocumentArchive [18:59:02]shift 325 fd 22133 [18:59:02]save to /storage/0325/doc_00022133 [18:59:02]save last doc name /storage/0325/doc_00022133 to /storage/kkm_last_doc_name [18:59:02]save OK [18:59:02]Clear old archive folders... [18:59:02]ProcessDocumentItem done err = 0, tmpTLVsize=298 [18:59:02]tlvbuf is 003426B0 [18:59:02]SAM_PROTO_ClearQueue [18:59:02]wFMCommunicate request_size=4 [18:59:02]MH_SAM_APDU [18:59:02]CAPDU: 80 09 00 00 [18:59:02]Write to MH i2c: E2 08 00 AF 3D 80 09 00 00 00 00 00 00 5E [18:59:02]Write i2c OK [18:59:02]MH_I2C_Read... [18:59:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:02]Read from MH i2c: E2 [18:59:02]MH_I2C_Read... [18:59:02]Read from MH i2c: E2 03 00 [18:59:02]MH_I2C_Read... [18:59:02]Read from MH i2c: E2 03 00 AF 3D 00 90 00 60 [18:59:02]RAPDU: 90 00 [18:59:02]wFMCommunicate OK [18:59:02]SAM_PROTO_ClearQueue done [18:59:02]KKMCreateOFDPacket [18:59:02]OFDProtocolAddRootSTLVToBuf [18:59:02]FM_MakeSignedData [18:59:02]FM_MakeSignedData [18:59:02]SAM_PROTO_SignData [18:59:02]wFMCommunicate request_size=4 [18:59:02]MH_SAM_APDU [18:59:02]CAPDU: 80 0D 01 02 [18:59:02]Write to MH i2c: E2 08 00 B0 3D 80 0D 01 02 00 00 00 00 66 [18:59:02]Write i2c OK [18:59:02]MH_I2C_Read... [18:59:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:02]Read from MH i2c: E2 [18:59:02]MH_I2C_Read... [18:59:02]Read from MH i2c: E2 03 00 [18:59:02]MH_I2C_Read... [18:59:02]Read from MH i2c: E2 03 00 B0 3D 00 90 00 61 [18:59:02]RAPDU: 90 00 [18:59:02]wFMCommunicate OK [18:59:02]wFMCommunicate request_size=255 [18:59:02]MH_SAM_APDU [18:59:02]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 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 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 2F 00 00 00 F4 03 04 00 05 93 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [18:59:02]Write to MH i2c: E2 02 01 B1 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 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 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 2F 00 00 00 F4 03 04 00 05 93 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 EC [18:59:02]Write i2c OK [18:59:02]MH_I2C_Read... [18:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:03]Read from MH i2c: E2 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 03 00 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 03 00 B1 3D 00 90 00 62 [18:59:03]RAPDU: 90 00 [18:59:03]wFMCommunicate OK [18:59:03]wFMCommunicate request_size=57 [18:59:03]MH_SAM_APDU [18:59:03]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 75 56 00 00 35 04 06 00 B9 33 2B A4 28 85 [18:59:03]Write to MH i2c: E2 3C 00 B2 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 75 56 00 00 35 04 06 00 B9 33 2B A4 28 85 00 00 62 [18:59:03]Write i2c OK [18:59:03]MH_I2C_Read... [18:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:03]Read from MH i2c: E2 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 03 00 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 03 00 B2 3D 00 90 00 63 [18:59:03]RAPDU: 90 00 [18:59:03]wFMCommunicate OK [18:59:03]wFMCommunicate request_size=4 [18:59:03]MH_SAM_APDU [18:59:03]CAPDU: 80 0D 03 02 [18:59:03]Write to MH i2c: E2 08 00 B3 3D 80 0D 03 02 00 00 00 00 6B [18:59:03]Write i2c OK [18:59:03]MH_I2C_Read... [18:59:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:03]Read from MH i2c: E2 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 0B 00 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 0B 00 B3 3D 00 5E 6D 05 5E E7 BC 36 6C 90 00 DF [18:59:03]RAPDU: 5E 6D 05 5E E7 BC 36 6C 90 00 [18:59:03]wFMCommunicate OK [18:59:03]SAM_PROTO_SignData done [18:59:03]FM_MakeSignedData done [18:59:03]CreateOFDProtocolMessage [18:59:03]wFMCommunicate request_size=4 [18:59:03]MH_SAM_APDU [18:59:03]CAPDU: 80 11 00 00 [18:59:03]Write to MH i2c: E2 08 00 B4 3D 80 11 00 00 00 00 00 00 6B [18:59:03]Write i2c OK [18:59:03]MH_I2C_Read... [18:59:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:03]Read from MH i2c: E2 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 17 00 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 17 00 B4 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 BD [18:59:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [18:59:03]wFMCommunicate OK [18:59:03]CreateOFDProtocolMessage done [18:59:03]OFDSenderStorePacket 22133 [18:59:03]StoreOFDPacket docnum=22133 [18:59: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 3E 01 00 00 6B 03 36 01 B8 D9 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 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 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 2F 00 00 00 F4 03 04 00 05 93 6C 66 0E 04 04 00 45 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 75 56 00 00 35 04 06 00 B9 33 2B A4 28 85 5E 6D 05 5E E7 BC 36 6C [18:59:03]CheckFolder [18:59:03]dirname=/storage/ofd_packets [18:59:03]CheckFolder done [18:59:03]ProducePacketName [18:59:03]name=ofd_packets/00022133 [18:59:03]NVStorageSaveData ofd_packets/00022133 [18:59:03]File name is /storage/ofd_packets/00022133 [18:59:03]Write 348 bytes [18:59:03]NVStorageSaveData done [18:59:03]OFDSenderStorePacket done [18:59:03]KKMCreateOFDPacket done [18:59:03]NVStorageSaveData kkm_last_timestamp [18:59:03]File name is /storage/kkm_last_timestamp [18:59:03]Write 4 bytes [18:59:03]NVStorageSaveData done [18:59:03]ExternCall_PrintAddStr [18:59:03]wPrintStart [18:59:03]Write to MH i2c: 01 00 00 B5 3D F2 [18:59:03]Write i2c OK [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: 01 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: 01 07 00 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: 01 07 00 B5 3D 00 00 00 00 00 FF 0F 07 [18:59:03]RasterBufferAndPrint [18:59:03]line 小褔械褌 N : (3)254356 [18:59:03]line 袠袧袧: 02508201610067 [18:59:03]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:59:03]line 袩袪袨袛袗袞袗 [18:59:03]line 孝芯胁邪褉: 4700007110073 [18:59:03]line 小褝薪写胁懈褔 褋 泻械褌褔褍锌芯屑 孝邪谢邪褋 袛邪邪屑褘 [18:59:03]line 1.000 * 70.00 [18:59:03]line = 70.00 [18:59:03]line 袧袛小 12% 袧小袩 1% [18:59:03]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:59:03]line 袠孝袨袚袨: 70.00 [18:59:03]line 袧小袩 1% : 0.62 [18:59:03]line 袧袛小 12% : 7.43 [18:59:03]line 袧邪谢懈褔薪褘屑懈: 70.00 [18:59:03]line 袘械蟹薪邪谢.: 0.00 [18:59:03]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [18:59:03]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [18:59:03]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:59:03]line 效械泻 47 14.06.2024 18:59 [18:59:03]line 小屑械薪邪: 325 肖肖袛: 1.0 [18:59:03]line 袟袧袦: 0300000200 [18:59:03]line 袪袧袦: 0000000000099755 [18:59:03]line 袙械褉褋懈褟 袣袣袦: 001 [18:59:03]line 肖袦: 0000000000965344 [18:59:03]line 肖袛: 22133 [18:59:03]line 肖袩袛: 203629426649221 [18:59:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T185917&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22133&fm=203629426649221&tin=02508201610067®Number=0000000000099755&sum=7000 [18:59:03]line 0 [18:59:03]OFD Sender: Processing packet 22133 [packets to send 5, broken 4] [18:59:03]ProducePacketName [18:59:03]name=ofd_packets/00022133 [18:59:03]OFD Sender: To server: 嚂鰌G, [18:59:03]CommunicateWithHost lk.salyk.kg:30040 [18:59:03]ConnectInit lk.salyk.kg [18:59:03]written 0, free lines is 4095 [18:59:03]Connected sock=10 [18:59: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 3E 01 00 00 6B 03 36 01 B8 D9 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 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 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 2F 00 00 00 F4 03 04 00 05 93 6C 66 0E 04 04 00 45 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 75 56 00 00 35 04 06 00 B9 33 2B A4 28 85 5E 6D 05 5E E7 BC 36 6C [18:59: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 9C 9F 47 00 2B 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 75 56 00 00 F4 03 04 00 C4 3B 6C 66 B6 04 01 00 00 92 DD 7B D6 D0 D6 9D 6E [18:59:04]CommunicateWithHost err = 0 [18:59:04]CheckOFDResponse [18:59:04]1017 (14) - 77093643461234 [18:59:04]1041 (16) - 0000000000965344 [18:59:04]1040 (4) - 22133 [18:59:04]1012 (4) - 14.06.2024 12:47 [18:59:04]1206 (1) - 0 [18:59:04]OFD Sender: Remove packet 22133 [18:59:04]ProducePacketName [18:59:04]name=ofd_packets/00022133 [18:59:04]NVStorageDeleteData [18:59:04]Write to MH i2c: 01 00 00 DE 3D 1B [18:59:04]Write i2c OK [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: 01 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: 01 07 00 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: 01 07 00 DE 3D 00 00 00 00 00 14 0D 43 [18:59:04]RasterBufferAndPrint [18:59:04]line [18:59:04]line [18:59:04]line [18:59:04]line [18:59:04]line [18:59:04]written 0, free lines is 3354 [18:59:04]MH_Cut [18:59:04]Write to MH i2c: D1 01 00 E5 3D 01 F4 [18:59:04]Write i2c OK [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: D1 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: D1 01 00 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: D1 01 00 E5 3D 00 F3 [18:59:04]Write to MH i2c: 01 00 00 E6 3D 23 [18:59:04]Write i2c OK [18:59:04]MH_I2C_Read... [18:59:04]OFD Sender: No OFD packet to send [18:59:04]*** Cut start [18:59:04]*** Partial cut [18:59:04]*** CUTSNS_PIN = 1 [18:59:04]*** CUTSNS_PIN = 0 [18:59:05]*** Brake cut motor [18:59:05]Read from MH i2c: 01 [18:59:05]MH_I2C_Read... [18:59:05]*** Stop cut motor [18:59:05]*** Cut end [18:59:05]Read from MH i2c: 01 07 00 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: 01 07 00 E6 3D 00 00 00 00 00 FF 0F 38 [18:59:05]process_action close_receipt done [18:59:05]requested_data is exist [18:59:05]produce_requested_data [18:59:05]requested_item fm.sn is exist - process it [18:59:05]wFMCommunicate request_size=4 [18:59:05]MH_SAM_APDU [18:59:05]CAPDU: 80 11 00 00 [18:59:05]Write to MH i2c: E2 08 00 E7 3D 80 11 00 00 00 00 00 00 9E [18:59:05]Write i2c OK [18:59:05]MH_I2C_Read... [18:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:05]Read from MH i2c: E2 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 17 00 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 17 00 E7 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 F0 [18:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [18:59:05]wFMCommunicate OK [18:59:05]requested_item fd.num is exist - process it [18:59:05]SAM_PROTO_GetFieldsCounters [18:59:05]wFMCommunicate request_size=4 [18:59:05]MH_SAM_APDU [18:59:05]CAPDU: 80 13 00 00 [18:59:05]Write to MH i2c: E2 08 00 E8 3D 80 13 00 00 00 00 00 00 A1 [18:59:05]Write i2c OK [18:59:05]MH_I2C_Read... [18:59:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:05]Read from MH i2c: E2 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 62 00 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 62 00 E8 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 75 56 00 00 0E 04 04 00 45 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 69 [18:59: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 75 56 00 00 0E 04 04 00 45 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 [18:59:05]wFMCommunicate OK [18:59:05]SAM_PROTO_GetFieldsCounters done [18:59:05]requested_item shift.num is exist - process it [18:59:05]requested_item shift.opened is exist - process it [18:59:05]req_shift_opened [18:59:05]FM_GetShiftState [18:59:05]SAM_PROTO_GetShiftState [18:59:05]wFMCommunicate request_size=4 [18:59:05]MH_SAM_APDU [18:59:05]CAPDU: 80 13 01 00 [18:59:05]Write to MH i2c: E2 08 00 E9 3D 80 13 01 00 00 00 00 00 A3 [18:59:05]Write i2c OK [18:59:05]MH_I2C_Read... [18:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:05]Read from MH i2c: E2 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 0E 00 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 0E 00 E9 3D 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 14 [18:59:05]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [18:59:05]wFMCommunicate OK [18:59:05]SAM_PROTO_GetShiftState done [18:59:05]FM_GetShiftState done [18:59:05]req_shift_opened done [18:59:05]requested_item shift.open_date is exist - process it [18:59:05]req_shift_open_date [18:59:05]req_shift_open_date done [18:59:05]produce_requested_data done [18:59:05]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22133,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [18:59:05]process_action_free close_receipt [18:59:05]json_value_free [18:59:05]json_value_free done [18:59:05]process_json_proto returns [18:59:05]Send response to host [18:59:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22133,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [18:59:05]free response buf [18:59:05]execute_script done [18:59:05]execute_script returns [18:59:05]free content buf [18:59:05]Sock 9.Close socket [18:59:05]Sock 9.Thread stoped [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:19]OFD Sender: No OFD packet to send [19:01:24]OFD Sender: No OFD packet to send [19:01:29]OFD Sender: No OFD packet to send [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:01:59]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:19]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:29]OFD Sender: No OFD packet to send [19:05:34]OFD Sender: No OFD packet to send [19:05:39]OFD Sender: No OFD packet to send [19:05:44]OFD Sender: No OFD packet to send [19:05:49]OFD Sender: No OFD packet to send [19:05:54]OFD Sender: No OFD packet to send [19:05:59]OFD Sender: No OFD packet to send [19:06:04]OFD Sender: No OFD packet to send [19:06:09]OFD Sender: No OFD packet to send [19:06:14]OFD Sender: No OFD packet to send [19:06:19]OFD Sender: No OFD packet to send [19:06:24]OFD Sender: No OFD packet to send [19:06:29]OFD Sender: No OFD packet to send [19:06:34]OFD Sender: No OFD packet to send [19:06:39]OFD Sender: No OFD packet to send [19:06:44]OFD Sender: No OFD packet to send [19:06:49]OFD Sender: No OFD packet to send [19:06:54]OFD Sender: No OFD packet to send [19:06:59]OFD Sender: No OFD packet to send [19:07:04]OFD Sender: No OFD packet to send [19:07:09]OFD Sender: No OFD packet to send [19:07:14]OFD Sender: No OFD packet to send [19:07:19]OFD Sender: No OFD packet to send [19:07:24]OFD Sender: No OFD packet to send [19:07:29]OFD Sender: No OFD packet to send [19:07:34]OFD Sender: No OFD packet to send [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:59]OFD Sender: No OFD packet to send [19:08:04]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:08:59]accept exits with 8 [19:08:59]New connection [19:08:59]New thread 3067178340 created [19:08:59]Thread 3067321700 joined [19:08:59]Waiting for new connection... [19:08:59] Sock 8.Parse request [19:08:59]Sock 8.Check first char [19:08:59]Sock 8.First char is OK [19:08:59]request: POST /json_proto HTTP/1.0 [19:08:59]Method: POST [19:08:59]URL: /json_proto [19:08:59]Method is POST - this is cgi request [19:08:59]url: /json_proto [19:08:59]query_string will be loaded in cgi processing [19:08:59]execute_cgi json_proto POST (null) [19:08:59]execute_cgi path=json_proto method=POST [19:08:59]POST find Content-Length [19:08:59]Host: 172.17.35.133:8080 [19:08:59]Content-Length: 668 [19:08:59]Content-Type: application/json [19:08:59] [19:08:59]POST finish read [19:08:59]Found Content-Length = 668 [19:08:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254357", "tax_sys" : 0, "items" : [ { "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "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" ] } } [19:08:59]execute_script... [19:08: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)254357", "tax_sys" : 0, "items" : [ { "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "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" ] } } [19:08:59]POST & json_proto [19:08:59]process_json_proto [19:08:59]json parsed OK: [19:08:59]protocol is kg_v1.0 [19:08:59]action value=close_receipt [19:08:59]process_action close_receipt [19:08:59]cmd_close_receipt [19:08:59]MH_GetDate [19:08:59]Write to MH i2c: F0 00 00 EA 3D 16 [19:08:59]Write i2c OK [19:08:59]MH_I2C_Read... [19:08:59]Read from MH i2c: F0 [19:08:59]MH_I2C_Read... [19:08:59]Read from MH i2c: F0 09 00 [19:08:59]MH_I2C_Read... [19:08:59]Read from MH i2c: F0 09 00 EA 3D 00 5B 95 6C 66 8C 55 28 65 4F [19:08:59]GetLastDocTimeStamp 1718391557 [19:08:59]current date 1718392155 [19:08:59]FM_GetShiftState [19:08:59]SAM_PROTO_GetShiftState [19:08:59]wFMCommunicate request_size=4 [19:08:59]MH_SAM_APDU [19:08:59]CAPDU: 80 13 01 00 [19:08:59]Write to MH i2c: E2 08 00 EB 3D 80 13 01 00 00 00 00 00 A5 [19:08:59]Write i2c OK [19:08:59]MH_I2C_Read... [19:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:59]Read from MH i2c: E2 [19:08:59]MH_I2C_Read... [19:08:59]Read from MH i2c: E2 0E 00 [19:08:59]MH_I2C_Read... [19:08:59]Read from MH i2c: E2 0E 00 EB 3D 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 16 [19:08:59]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [19:08:59]wFMCommunicate OK [19:08:59]SAM_PROTO_GetShiftState done [19:08:59]FM_GetShiftState done [19:08:59]opened in 1718324742 [19:08:59]opened+sec_in_day 1718411142 [19:08:59]quantity*price = 7000 [19:08:59]sum+1 = 7001 [19:08:59]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 70.00 袧小袩 1% : 0.62 袧袛小 12% : 7.43 袧邪谢懈褔薪褘屑懈: 70.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 48 14.06.2024 19:09 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22134 肖袩袛: 138921495565383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T190915&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22134&fm=138921495565383&tin=02508201610067®Number=0000000000099755&sum=7000 0 [19:09:00]StoreToDocumentArchive [19:09:00]shift 325 fd 22134 [19:09:00]save to /storage/0325/doc_00022134 [19:09:00]save last doc name /storage/0325/doc_00022134 to /storage/kkm_last_doc_name [19:09:00]save OK [19:09:00]Clear old archive folders... [19:09:00]ProcessDocumentItem done err = 0, tmpTLVsize=283 [19:09:00]tlvbuf is B6E025A0 [19:09:00]SAM_PROTO_ClearQueue [19:09:00]wFMCommunicate request_size=4 [19:09:00]MH_SAM_APDU [19:09:00]CAPDU: 80 09 00 00 [19:09:00]Write to MH i2c: E2 08 00 F8 3D 80 09 00 00 00 00 00 00 A7 [19:09:00]Write i2c OK [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 [19:09:00]MH_I2C_Read... [19:09:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:00]Read from MH i2c: E2 03 00 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 03 00 F8 3D 00 90 00 A9 [19:09:00]RAPDU: 90 00 [19:09:00]wFMCommunicate OK [19:09:00]SAM_PROTO_ClearQueue done [19:09:00]KKMCreateOFDPacket [19:09:00]OFDProtocolAddRootSTLVToBuf [19:09:00]FM_MakeSignedData [19:09:00]FM_MakeSignedData [19:09:00]SAM_PROTO_SignData [19:09:00]wFMCommunicate request_size=4 [19:09:00]MH_SAM_APDU [19:09:00]CAPDU: 80 0D 01 02 [19:09:00]Write to MH i2c: E2 08 00 F9 3D 80 0D 01 02 00 00 00 00 AF [19:09:00]Write i2c OK [19:09:00]MH_I2C_Read... [19:09:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:00]Read from MH i2c: E2 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 03 00 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 03 00 F9 3D 00 90 00 AA [19:09:01]RAPDU: 90 00 [19:09:01]wFMCommunicate OK [19:09:01]wFMCommunicate request_size=255 [19:09:01]MH_SAM_APDU [19:09:01]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 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 30 00 00 00 F4 03 04 00 5B 95 6C 66 0E 04 04 00 45 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 [19:09:01]Write to MH i2c: E2 02 01 FA 3D 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 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 30 00 00 00 F4 03 04 00 5B 95 6C 66 0E 04 04 00 45 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 00 00 18 [19:09:01]Write i2c OK [19:09:01]MH_I2C_Read... [19:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:01]Read from MH i2c: E2 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: E2 03 00 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: E2 03 00 FA 3D 00 90 00 AB [19:09:01]RAPDU: 90 00 [19:09:01]wFMCommunicate OK [19:09:01]wFMCommunicate request_size=42 [19:09:01]MH_SAM_APDU [19:09:01]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 76 56 00 00 35 04 06 00 7E 59 2E 65 14 47 [19:09:01]Write to MH i2c: E2 2D 00 FB 3D 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 76 56 00 00 35 04 06 00 7E 59 2E 65 14 47 00 00 17 [19:09:01]Write i2c OK [19:09:01]MH_I2C_Read... [19:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:01]Read from MH i2c: E2 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: E2 03 00 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: E2 03 00 FB 3D 00 90 00 AC [19:09:01]RAPDU: 90 00 [19:09:01]wFMCommunicate OK [19:09:01]wFMCommunicate request_size=4 [19:09:01]MH_SAM_APDU [19:09:01]CAPDU: 80 0D 03 02 [19:09:01]Write to MH i2c: E2 08 00 FC 3D 80 0D 03 02 00 00 00 00 B4 [19:09:01]Write i2c OK [19:09:01]MH_I2C_Read... [19:09:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:01]Read from MH i2c: E2 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: E2 0B 00 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: E2 0B 00 FC 3D 00 14 C0 AA B1 94 5E C0 EF 90 00 85 [19:09:01]RAPDU: 14 C0 AA B1 94 5E C0 EF 90 00 [19:09:01]wFMCommunicate OK [19:09:01]SAM_PROTO_SignData done [19:09:01]FM_MakeSignedData done [19:09:01]CreateOFDProtocolMessage [19:09:01]wFMCommunicate request_size=4 [19:09:01]MH_SAM_APDU [19:09:01]CAPDU: 80 11 00 00 [19:09:01]Write to MH i2c: E2 08 00 FD 3D 80 11 00 00 00 00 00 00 B4 [19:09:01]Write i2c OK [19:09:01]MH_I2C_Read... [19:09:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:01]Read from MH i2c: E2 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: E2 17 00 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: E2 17 00 FD 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 06 [19:09:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [19:09:01]wFMCommunicate OK [19:09:01]CreateOFDProtocolMessage done [19:09:01]OFDSenderStorePacket 22134 [19:09:01]StoreOFDPacket docnum=22134 [19:09: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 2F 01 00 00 75 F0 27 01 70 B1 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 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 30 00 00 00 F4 03 04 00 5B 95 6C 66 0E 04 04 00 45 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 76 56 00 00 35 04 06 00 7E 59 2E 65 14 47 14 C0 AA B1 94 5E C0 EF [19:09:01]CheckFolder [19:09:01]dirname=/storage/ofd_packets [19:09:01]CheckFolder done [19:09:01]ProducePacketName [19:09:01]name=ofd_packets/00022134 [19:09:01]NVStorageSaveData ofd_packets/00022134 [19:09:01]File name is /storage/ofd_packets/00022134 [19:09:01]Write 333 bytes [19:09:01]NVStorageSaveData done [19:09:01]OFDSenderStorePacket done [19:09:01]KKMCreateOFDPacket done [19:09:01]NVStorageSaveData kkm_last_timestamp [19:09:01]File name is /storage/kkm_last_timestamp [19:09:01]Write 4 bytes [19:09:01]NVStorageSaveData done [19:09:01]ExternCall_PrintAddStr [19:09:01]wPrintStart [19:09:01]Write to MH i2c: 01 00 00 FE 3D 3B [19:09:01]Write i2c OK [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: 01 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: 01 07 00 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: 01 07 00 FE 3D 00 00 00 00 00 FF 0F 50 [19:09:01]RasterBufferAndPrint [19:09:01]line 小褔械褌 N : (3)254357 [19:09:01]line 袠袧袧: 02508201610067 [19:09:01]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:09:01]line 袩袪袨袛袗袞袗 [19:09:01]line 孝芯胁邪褉: 4630007400655 [19:09:01]line 小械屑械褔泻懈 袛袞袠袧袧 70谐 褋懈薪懈泄 [19:09:01]line 1.000 * 70.00 [19:09:01]line = 70.00 [19:09:01]line 袧袛小 12% 袧小袩 1% [19:09:01]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:09:01]line 袠孝袨袚袨: 70.00 [19:09:01]line 袧小袩 1% : 0.62 [19:09:01]line 袧袛小 12% : 7.43 [19:09:01]line 袧邪谢懈褔薪褘屑懈: 70.00 [19:09:01]line 袘械蟹薪邪谢.: 0.00 [19:09:01]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [19:09:01]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [19:09:01]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:09:01]line 效械泻 48 14.06.2024 19:09 [19:09:01]line 小屑械薪邪: 325 肖肖袛: 1.0 [19:09:01]line 袟袧袦: 0300000200 [19:09:01]line 袪袧袦: 0000000000099755 [19:09:01]line 袙械褉褋懈褟 袣袣袦: 001 [19:09:01]line 肖袦: 0000000000965344 [19:09:01]line 肖袛: 22134 [19:09:01]line 肖袩袛: 138921495565383 [19:09:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T190915&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22134&fm=138921495565383&tin=02508201610067®Number=0000000000099755&sum=7000 [19:09:01]OFD Sender: Processing packet 22134 [packets to send 5, broken 4] [19:09:01]ProducePacketName [19:09:01]name=ofd_packets/00022134 [19:09:01]OFD Sender: To server: 嚂鰌G, [19:09:01]CommunicateWithHost lk.salyk.kg:30040 [19:09:01]ConnectInit lk.salyk.kg [19:09:01]line 0 [19:09:01]written 0, free lines is 4095 [19:09:01]Connected sock=11 [19:09: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 2F 01 00 00 75 F0 27 01 70 B1 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 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 30 00 00 00 F4 03 04 00 5B 95 6C 66 0E 04 04 00 45 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 76 56 00 00 35 04 06 00 7E 59 2E 65 14 47 14 C0 AA B1 94 5E C0 EF [19:09: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 1A 51 47 00 00 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 76 56 00 00 F4 03 04 00 1A 3E 6C 66 B6 04 01 00 00 C3 B0 74 02 46 D1 A5 9B [19:09:02]CommunicateWithHost err = 0 [19:09:02]CheckOFDResponse [19:09:02]1017 (14) - 77093643461234 [19:09:02]1041 (16) - 0000000000965344 [19:09:02]1040 (4) - 22134 [19:09:02]1012 (4) - 14.06.2024 12:56 [19:09:02]1206 (1) - 0 [19:09:02]OFD Sender: Remove packet 22134 [19:09:02]ProducePacketName [19:09:02]name=ofd_packets/00022134 [19:09:02]NVStorageDeleteData [19:09:02]Write to MH i2c: 01 00 00 26 3E 64 [19:09:02]Write i2c OK [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: 01 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: 01 07 00 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: 01 07 00 26 3E 00 00 00 00 00 27 0D 9F [19:09:02]RasterBufferAndPrint [19:09:02]line [19:09:02]line [19:09:02]line [19:09:02]line [19:09:02]line [19:09:02]written 0, free lines is 3373 [19:09:02]MH_Cut [19:09:02]Write to MH i2c: D1 01 00 2D 3E 01 3D [19:09:02]Write i2c OK [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: D1 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: D1 01 00 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: D1 01 00 2D 3E 00 3C [19:09:02]Write to MH i2c: 01 00 00 2E 3E 6C [19:09:02]Write i2c OK [19:09:02]MH_I2C_Read... [19:09:02]OFD Sender: No OFD packet to send [19:09:02]*** Cut start [19:09:02]*** Partial cut [19:09:02]*** CUTSNS_PIN = 1 [19:09:02]*** CUTSNS_PIN = 0 [19:09:03]*** Brake cut motor [19:09:03]Read from MH i2c: 01 [19:09:03]MH_I2C_Read... [19:09:03]*** Stop cut motor [19:09:03]*** Cut end [19:09:03]Read from MH i2c: 01 07 00 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: 01 07 00 2E 3E 00 00 00 00 00 FF 0F 81 [19:09:03]process_action close_receipt done [19:09:03]requested_data is exist [19:09:03]produce_requested_data [19:09:03]requested_item fm.sn is exist - process it [19:09:03]wFMCommunicate request_size=4 [19:09:03]MH_SAM_APDU [19:09:03]CAPDU: 80 11 00 00 [19:09:03]Write to MH i2c: E2 08 00 2F 3E 80 11 00 00 00 00 00 00 E7 [19:09:03]Write i2c OK [19:09:03]MH_I2C_Read... [19:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:03]Read from MH i2c: E2 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: E2 17 00 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: E2 17 00 2F 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 39 [19:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [19:09:03]wFMCommunicate OK [19:09:03]requested_item fd.num is exist - process it [19:09:03]SAM_PROTO_GetFieldsCounters [19:09:03]wFMCommunicate request_size=4 [19:09:03]MH_SAM_APDU [19:09:03]CAPDU: 80 13 00 00 [19:09:03]Write to MH i2c: E2 08 00 30 3E 80 13 00 00 00 00 00 00 EA [19:09:03]Write i2c OK [19:09:03]MH_I2C_Read... [19:09:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:03]Read from MH i2c: E2 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: E2 62 00 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: E2 62 00 30 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 76 56 00 00 0E 04 04 00 45 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 B6 [19:09: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 76 56 00 00 0E 04 04 00 45 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 [19:09:03]wFMCommunicate OK [19:09:03]SAM_PROTO_GetFieldsCounters done [19:09:03]requested_item shift.num is exist - process it [19:09:03]requested_item shift.opened is exist - process it [19:09:03]req_shift_opened [19:09:03]FM_GetShiftState [19:09:03]SAM_PROTO_GetShiftState [19:09:03]wFMCommunicate request_size=4 [19:09:03]MH_SAM_APDU [19:09:03]CAPDU: 80 13 01 00 [19:09:03]Write to MH i2c: E2 08 00 31 3E 80 13 01 00 00 00 00 00 EC [19:09:03]Write i2c OK [19:09:03]MH_I2C_Read... [19:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:03]Read from MH i2c: E2 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: E2 0E 00 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: E2 0E 00 31 3E 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 5D [19:09:03]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [19:09:03]wFMCommunicate OK [19:09:03]SAM_PROTO_GetShiftState done [19:09:03]FM_GetShiftState done [19:09:03]req_shift_opened done [19:09:03]requested_item shift.open_date is exist - process it [19:09:03]req_shift_open_date [19:09:03]req_shift_open_date done [19:09:03]produce_requested_data done [19:09:03]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22134,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [19:09:03]process_action_free close_receipt [19:09:03]json_value_free [19:09:03]json_value_free done [19:09:03]process_json_proto returns [19:09:03]Send response to host [19:09:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22134,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [19:09:03]free response buf [19:09:03]execute_script done [19:09:03]execute_script returns [19:09:03]free content buf [19:09:03]Sock 8.Close socket [19:09:03]Sock 8.Thread stoped [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:07]OFD Sender: No OFD packet to send [19:15:12]OFD Sender: No OFD packet to send [19:15:17]OFD Sender: No OFD packet to send [19:15:22]OFD Sender: No OFD packet to send [19:15:27]OFD Sender: No OFD packet to send [19:15:32]OFD Sender: No OFD packet to send [19:15:37]OFD Sender: No OFD packet to send [19:15:42]OFD Sender: No OFD packet to send [19:15:47]OFD Sender: No OFD packet to send [19:15:52]OFD Sender: No OFD packet to send [19:15:57]OFD Sender: No OFD packet to send [19:16:02]OFD Sender: No OFD packet to send [19:16:07]OFD Sender: No OFD packet to send [19:16:12]OFD Sender: No OFD packet to send [19:16:17]OFD Sender: No OFD packet to send [19:16:22]OFD Sender: No OFD packet to send [19:16:27]OFD Sender: No OFD packet to send [19:16:32]OFD Sender: No OFD packet to send [19:16:37]OFD Sender: No OFD packet to send [19:16:42]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:52]OFD Sender: No OFD packet to send [19:16:57]OFD Sender: No OFD packet to send [19:17:02]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:22]accept exits with 9 [19:26:22]New connection [19:26:22]New thread 3067321700 created [19:26:22]Thread 3067178340 joined [19:26:22]Waiting for new connection... [19:26:22] Sock 9.Parse request [19:26:22]Sock 9.Check first char [19:26:22]Sock 9.First char is OK [19:26:22]request: POST /json_proto HTTP/1.0 [19:26:22]Method: POST [19:26:22]URL: /json_proto [19:26:22]Method is POST - this is cgi request [19:26:22]url: /json_proto [19:26:22]query_string will be loaded in cgi processing [19:26:22]execute_cgi json_proto POST (null) [19:26:22]execute_cgi path=json_proto method=POST [19:26:22]POST find Content-Length [19:26:22]Host: 172.17.35.133:8080 [19:26:22]Content-Length: 709 [19:26:22]Content-Type: application/json [19:26:22] [19:26:22]POST finish read [19:26:22]Found Content-Length = 709 [19:26:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254358", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "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" ] } } [19:26:22]execute_script... [19:26: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)254358", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "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" ] } } [19:26:22]POST & json_proto [19:26:22]process_json_proto [19:26:22]json parsed OK: [19:26:22]protocol is kg_v1.0 [19:26:22]action value=close_receipt [19:26:22]process_action close_receipt [19:26:22]cmd_close_receipt [19:26:22]MH_GetDate [19:26:22]Write to MH i2c: F0 00 00 32 3E 5F [19:26:22]Write i2c OK [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: F0 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: F0 09 00 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: F0 09 00 32 3E 00 6E 99 6C 66 8C 55 28 65 AF [19:26:22]GetLastDocTimeStamp 1718392155 [19:26:22]current date 1718393198 [19:26:22]FM_GetShiftState [19:26:22]SAM_PROTO_GetShiftState [19:26:22]wFMCommunicate request_size=4 [19:26:22]MH_SAM_APDU [19:26:22]CAPDU: 80 13 01 00 [19:26:22]Write to MH i2c: E2 08 00 33 3E 80 13 01 00 00 00 00 00 EE [19:26:22]Write i2c OK [19:26:22]MH_I2C_Read... [19:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:22]Read from MH i2c: E2 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 0E 00 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 0E 00 33 3E 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 5F [19:26:22]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [19:26:22]wFMCommunicate OK [19:26:22]SAM_PROTO_GetShiftState done [19:26:22]FM_GetShiftState done [19:26:22]opened in 1718324742 [19:26:22]opened+sec_in_day 1718411142 [19:26:22]quantity*price = 9500 [19:26:22]sum+1 = 9501 [19:26:22]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 95.00 袧小袩 1% : 0.84 袧袛小 12% : 10.09 袧邪谢懈褔薪褘屑懈: 95.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 49 14.06.2024 19:26 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22135 肖袩袛: 52101247159543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T192638&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22135&fm=52101247159543&tin=02508201610067®Number=0000000000099755&sum=9500 0 [19:26:23]StoreToDocumentArchive [19:26:23]shift 325 fd 22135 [19:26:23]save to /storage/0325/doc_00022135 [19:26:23]save last doc name /storage/0325/doc_00022135 to /storage/kkm_last_doc_name [19:26:23]save OK [19:26:23]Clear old archive folders... [19:26:23]ProcessDocumentItem done err = 0, tmpTLVsize=304 [19:26:23]tlvbuf is 0032E970 [19:26:23]SAM_PROTO_ClearQueue [19:26:23]wFMCommunicate request_size=4 [19:26:23]MH_SAM_APDU [19:26:23]CAPDU: 80 09 00 00 [19:26:23]Write to MH i2c: E2 08 00 40 3E 80 09 00 00 00 00 00 00 F0 [19:26:23]Write i2c OK [19:26:23]MH_I2C_Read... [19:26:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:23]Read from MH i2c: E2 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: E2 03 00 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: E2 03 00 40 3E 00 90 00 F2 [19:26:23]RAPDU: 90 00 [19:26:23]wFMCommunicate OK [19:26:23]SAM_PROTO_ClearQueue done [19:26:23]KKMCreateOFDPacket [19:26:23]OFDProtocolAddRootSTLVToBuf [19:26:23]FM_MakeSignedData [19:26:23]FM_MakeSignedData [19:26:23]SAM_PROTO_SignData [19:26:23]wFMCommunicate request_size=4 [19:26:23]MH_SAM_APDU [19:26:23]CAPDU: 80 0D 01 02 [19:26:23]Write to MH i2c: E2 08 00 41 3E 80 0D 01 02 00 00 00 00 F8 [19:26:23]Write i2c OK [19:26:23]MH_I2C_Read... [19:26:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:23]Read from MH i2c: E2 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: E2 03 00 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: E2 03 00 41 3E 00 90 00 F3 [19:26:23]RAPDU: 90 00 [19:26:23]wFMCommunicate OK [19:26:23]wFMCommunicate request_size=255 [19:26:23]MH_SAM_APDU [19:26:23]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 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 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 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 31 00 00 00 F4 03 04 00 6E 99 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 [19:26:23]Write to MH i2c: E2 02 01 42 3E 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 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 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 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 31 00 00 00 F4 03 04 00 6E 99 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 00 00 8E [19:26:23]Write i2c OK [19:26:23]MH_I2C_Read... [19:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:24]Read from MH i2c: E2 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 03 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 03 00 42 3E 00 90 00 F4 [19:26:24]RAPDU: 90 00 [19:26:24]wFMCommunicate OK [19:26:24]wFMCommunicate request_size=63 [19:26:24]MH_SAM_APDU [19:26:24]CAPDU: 80 0D 02 02 3A 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 77 56 00 00 35 04 06 00 2F 62 C4 54 4C F7 [19:26:24]Write to MH i2c: E2 42 00 43 3E 80 0D 02 02 3A 00 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 77 56 00 00 35 04 06 00 2F 62 C4 54 4C F7 00 00 07 [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:24]Read from MH i2c: E2 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 03 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 03 00 43 3E 00 90 00 F5 [19:26:24]RAPDU: 90 00 [19:26:24]wFMCommunicate OK [19:26:24]wFMCommunicate request_size=4 [19:26:24]MH_SAM_APDU [19:26:24]CAPDU: 80 0D 03 02 [19:26:24]Write to MH i2c: E2 08 00 44 3E 80 0D 03 02 00 00 00 00 FD [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:24]Read from MH i2c: E2 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 0B 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 0B 00 44 3E 00 21 0C 8D 80 71 2F CD 81 90 00 26 [19:26:24]RAPDU: 21 0C 8D 80 71 2F CD 81 90 00 [19:26:24]wFMCommunicate OK [19:26:24]SAM_PROTO_SignData done [19:26:24]FM_MakeSignedData done [19:26:24]CreateOFDProtocolMessage [19:26:24]wFMCommunicate request_size=4 [19:26:24]MH_SAM_APDU [19:26:24]CAPDU: 80 11 00 00 [19:26:24]Write to MH i2c: E2 08 00 45 3E 80 11 00 00 00 00 00 00 FD [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:24]Read from MH i2c: E2 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 17 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 17 00 45 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 4F [19:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [19:26:24]wFMCommunicate OK [19:26:24]CreateOFDProtocolMessage done [19:26:24]OFDSenderStorePacket 22135 [19:26:24]StoreOFDPacket docnum=22135 [19:26:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 44 01 00 00 5C D1 3C 01 6D 6D 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 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 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 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 31 00 00 00 F4 03 04 00 6E 99 6C 66 0E 04 04 00 45 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 77 56 00 00 35 04 06 00 2F 62 C4 54 4C F7 21 0C 8D 80 71 2F CD 81 [19:26:24]CheckFolder [19:26:24]dirname=/storage/ofd_packets [19:26:24]CheckFolder done [19:26:24]ProducePacketName [19:26:24]name=ofd_packets/00022135 [19:26:24]NVStorageSaveData ofd_packets/00022135 [19:26:24]File name is /storage/ofd_packets/00022135 [19:26:24]Write 354 bytes [19:26:24]NVStorageSaveData done [19:26:24]OFDSenderStorePacket done [19:26:24]KKMCreateOFDPacket done [19:26:24]NVStorageSaveData kkm_last_timestamp [19:26:24]File name is /storage/kkm_last_timestamp [19:26:24]Write 4 bytes [19:26:24]NVStorageSaveData done [19:26:24]ExternCall_PrintAddStr [19:26:24]wPrintStart [19:26:24]Write to MH i2c: 01 00 00 46 3E 84 [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: 01 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: 01 07 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: 01 07 00 46 3E 00 00 00 00 00 FF 0F 99 [19:26:24]RasterBufferAndPrint [19:26:24]line 小褔械褌 N : (3)254358 [19:26:24]line 袠袧袧: 02508201610067 [19:26:24]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:26:24]line 袩袪袨袛袗袞袗 [19:26:24]line 孝芯胁邪褉: 4700000480302 [19:26:24]line 袧邪锌懈褌芯泻 褝薪械褉谐 Nitro 屑邪薪谐芯-泻谢褍斜 0.45 卸/斜 [19:26:24]line 1.000 * 95.00 [19:26:24]line = 95.00 [19:26:24]line 袧袛小 12% 袧小袩 1% [19:26:24]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:26:24]line 袠孝袨袚袨: 95.00 [19:26:24]line 袧小袩 1% : 0.84 [19:26:24]line 袧袛小 12% : 10.09 [19:26:24]line 袧邪谢懈褔薪褘屑懈: 95.00 [19:26:24]line 袘械蟹薪邪谢.: 0.00 [19:26:24]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [19:26:24]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [19:26:24]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:26:24]line 效械泻 49 14.06.2024 19:26 [19:26:24]line 小屑械薪邪: 325 肖肖袛: 1.0 [19:26:24]line 袟袧袦: 0300000200 [19:26:24]line 袪袧袦: 0000000000099755 [19:26:24]line 袙械褉褋懈褟 袣袣袦: 001 [19:26:24]line 肖袦: 0000000000965344 [19:26:24]line 肖袛: 22135 [19:26:24]line 肖袩袛: 52101247159543 [19:26:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T192638&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22135&fm=52101247159543&tin=02508201610067®Number=0000000000099755&sum=9500 [19:26:24]line 0 [19:26:24]OFD Sender: Processing packet 22135 [packets to send 5, broken 4] [19:26:24]ProducePacketName [19:26:24]name=ofd_packets/00022135 [19:26:24]OFD Sender: To server: 嚂鰌G, [19:26:24]CommunicateWithHost lk.salyk.kg:30040 [19:26:24]ConnectInit lk.salyk.kg [19:26:24]written 0, free lines is 4095 [19:26:24]Connected sock=10 [19:26: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 44 01 00 00 5C D1 3C 01 6D 6D 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 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 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 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 31 00 00 00 F4 03 04 00 6E 99 6C 66 0E 04 04 00 45 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 77 56 00 00 35 04 06 00 2F 62 C4 54 4C F7 21 0C 8D 80 71 2F CD 81 [19:26:25]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 A7 52 47 00 52 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 77 56 00 00 F4 03 04 00 2D 42 6C 66 B6 04 01 00 00 E8 DA 9E 03 7E CC F4 53 [19:26:25]CommunicateWithHost err = 0 [19:26:25]CheckOFDResponse [19:26:25]1017 (14) - 77093643461234 [19:26:25]1041 (16) - 0000000000965344 [19:26:25]1040 (4) - 22135 [19:26:25]1012 (4) - 14.06.2024 13:14 [19:26:25]1206 (1) - 0 [19:26:25]OFD Sender: Remove packet 22135 [19:26:25]ProducePacketName [19:26:25]name=ofd_packets/00022135 [19:26:25]NVStorageDeleteData [19:26:25]Write to MH i2c: 01 00 00 6F 3E AD [19:26:25]Write i2c OK [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: 01 [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: 01 07 00 [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: 01 07 00 6F 3E 00 00 00 00 00 1D 0D DE [19:26:25]RasterBufferAndPrint [19:26:25]line [19:26:25]line [19:26:25]line [19:26:25]line [19:26:25]line [19:26:25]written 0, free lines is 3365 [19:26:25]MH_Cut [19:26:25]Write to MH i2c: D1 01 00 76 3E 01 86 [19:26:25]Write i2c OK [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: D1 [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: D1 01 00 [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: D1 01 00 76 3E 00 85 [19:26:25]Write to MH i2c: 01 00 00 77 3E B5 [19:26:25]Write i2c OK [19:26:25]MH_I2C_Read... [19:26:25]OFD Sender: No OFD packet to send [19:26:25]*** Cut start [19:26:25]*** Partial cut [19:26:25]*** CUTSNS_PIN = 1 [19:26:25]*** CUTSNS_PIN = 0 [19:26:26]*** Brake cut motor [19:26:26]Read from MH i2c: 01 [19:26:26]MH_I2C_Read... [19:26:26]*** Stop cut motor [19:26:26]*** Cut end [19:26:26]Read from MH i2c: 01 07 00 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: 01 07 00 77 3E 00 00 00 00 00 FF 0F CA [19:26:26]process_action close_receipt done [19:26:26]requested_data is exist [19:26:26]produce_requested_data [19:26:26]requested_item fm.sn is exist - process it [19:26:26]wFMCommunicate request_size=4 [19:26:26]MH_SAM_APDU [19:26:26]CAPDU: 80 11 00 00 [19:26:26]Write to MH i2c: E2 08 00 78 3E 80 11 00 00 00 00 00 00 30 [19:26:26]Write i2c OK [19:26:26]MH_I2C_Read... [19:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:26]Read from MH i2c: E2 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 17 00 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 17 00 78 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 82 [19:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [19:26:26]wFMCommunicate OK [19:26:26]requested_item fd.num is exist - process it [19:26:26]SAM_PROTO_GetFieldsCounters [19:26:26]wFMCommunicate request_size=4 [19:26:26]MH_SAM_APDU [19:26:26]CAPDU: 80 13 00 00 [19:26:26]Write to MH i2c: E2 08 00 79 3E 80 13 00 00 00 00 00 00 33 [19:26:26]Write i2c OK [19:26:26]MH_I2C_Read... [19:26:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:26]Read from MH i2c: E2 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 62 00 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 62 00 79 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 77 56 00 00 0E 04 04 00 45 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 03 [19:26: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 77 56 00 00 0E 04 04 00 45 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 [19:26:26]wFMCommunicate OK [19:26:26]SAM_PROTO_GetFieldsCounters done [19:26:26]requested_item shift.num is exist - process it [19:26:26]requested_item shift.opened is exist - process it [19:26:26]req_shift_opened [19:26:26]FM_GetShiftState [19:26:26]SAM_PROTO_GetShiftState [19:26:26]wFMCommunicate request_size=4 [19:26:26]MH_SAM_APDU [19:26:26]CAPDU: 80 13 01 00 [19:26:26]Write to MH i2c: E2 08 00 7A 3E 80 13 01 00 00 00 00 00 35 [19:26:26]Write i2c OK [19:26:26]MH_I2C_Read... [19:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:26]Read from MH i2c: E2 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 0E 00 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 0E 00 7A 3E 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 A6 [19:26:26]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [19:26:26]wFMCommunicate OK [19:26:26]SAM_PROTO_GetShiftState done [19:26:26]FM_GetShiftState done [19:26:26]req_shift_opened done [19:26:26]requested_item shift.open_date is exist - process it [19:26:26]req_shift_open_date [19:26:26]req_shift_open_date done [19:26:26]produce_requested_data done [19:26:26]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22135,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [19:26:26]process_action_free close_receipt [19:26:26]json_value_free [19:26:26]json_value_free done [19:26:26]process_json_proto returns [19:26:26]Send response to host [19:26:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22135,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [19:26:26]free response buf [19:26:26]execute_script done [19:26:26]execute_script returns [19:26:26]free content buf [19:26:26]Sock 9.Close socket [19:26:26]Sock 9.Thread stoped [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:28:58]accept exits with 8 [19:28:58]New connection [19:28:58]New thread 3067178340 created [19:28:58]Thread 3067321700 joined [19:28:58]Waiting for new connection... [19:28:58] Sock 8.Parse request [19:28:58]Sock 8.Check first char [19:28:58]Sock 8.First char is OK [19:28:58]request: POST /json_proto HTTP/1.0 [19:28:58]Method: POST [19:28:58]URL: /json_proto [19:28:58]Method is POST - this is cgi request [19:28:58]url: /json_proto [19:28:58]query_string will be loaded in cgi processing [19:28:58]execute_cgi json_proto POST (null) [19:28:58]execute_cgi path=json_proto method=POST [19:28:58]POST find Content-Length [19:28:58]Host: 172.17.35.133:8080 [19:28:58]Content-Length: 2399 [19:28:58]Content-Type: application/json [19:28:58] [19:28:58]POST finish read [19:28:58]Found Content-Length = 2399 [19:28:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254359", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.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 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 743.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:58]execute_script... [19:28: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)254359", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.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 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 743.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:59]POST & json_proto [19:28:59]process_json_proto [19:28:59]json parsed OK: [19:28:59]protocol is kg_v1.0 [19:28:59]action value=close_receipt [19:28:59]process_action close_receipt [19:28:59]cmd_close_receipt [19:28:59]MH_GetDate [19:28:59]Write to MH i2c: F0 00 00 7B 3E A8 [19:28:59]Write i2c OK [19:28:59]MH_I2C_Read... [19:28:59]Read from MH i2c: F0 [19:28:59]MH_I2C_Read... [19:28:59]Read from MH i2c: F0 09 00 [19:28:59]MH_I2C_Read... [19:28:59]Read from MH i2c: F0 09 00 7B 3E 00 0A 9A 6C 66 8C 55 28 65 95 [19:28:59]GetLastDocTimeStamp 1718393198 [19:28:59]current date 1718393354 [19:28:59]FM_GetShiftState [19:28:59]SAM_PROTO_GetShiftState [19:28:59]wFMCommunicate request_size=4 [19:28:59]MH_SAM_APDU [19:28:59]CAPDU: 80 13 01 00 [19:28:59]Write to MH i2c: E2 08 00 7C 3E 80 13 01 00 00 00 00 00 37 [19:28:59]Write i2c OK [19:28:59]MH_I2C_Read... [19:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:59]Read from MH i2c: E2 [19:28:59]MH_I2C_Read... [19:28:59]Read from MH i2c: E2 0E 00 [19:28:59]MH_I2C_Read... [19:28:59]Read from MH i2c: E2 0E 00 7C 3E 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 A8 [19:28:59]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [19:28:59]wFMCommunicate OK [19:28:59]SAM_PROTO_GetShiftState done [19:28:59]FM_GetShiftState done [19:28:59]opened in 1718324742 [19:28:59]opened+sec_in_day 1718411142 [19:28:59]quantity*price = 13000 [19:28:59]sum+1 = 13001 [19:28:59]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 5449000027450 袧邪锌懈褌芯泻 FuzeTea 褔邪泄 屑邪薪谐芯,褉芯屑 0,5谢 1.000 * 75.00 = 75.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 4600338001623 袙芯写邪 肖褉褍褌芯 袧携袧携 薪械谐邪蟹懈褉 写/写械褌械泄 0,33谢 1.000 * 80.00 = 80.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 4700000160211 袙芯写邪 袥械谐械薪写邪 0,5谢 1.000 * 40.00 = 40.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 48744683 小懈谐邪褉械褌褘 Winston XStyle Caster+ 1.000 * 143.00 = 143.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 2000027340020 袩邪泻械褌 斜褍屑邪卸薪褘泄 胁懈褌邪褟 褉褍褔泻邪 1.000 * 25.00 = 25.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 2000036220012 袣芯褎械 袣邪锌褍褔懈薪芯 XL(GABB TRADE) 2.000 * 125.00 = 250.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 743.00 袧小袩 1% : 6.56 袧袛小 12% : 78.90 袧邪谢懈褔薪褘屑懈: 743.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 50 14.06.2024 19:29 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22136 肖袩袛: 185023892027302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T192914&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22136&fm=185023892027302&tin=02508201610067®Number=0000000000099755&sum=74300 0 [19:29:00]StoreToDocumentArchive [19:29:00]shift 325 fd 22136 [19:29:00]save to /storage/0325/doc_00022136 [19:29:00]save last doc name /storage/0325/doc_00022136 to /storage/kkm_last_doc_name [19:29:00]save OK [19:29:00]Clear old archive folders... [19:29:00]ProcessDocumentItem done err = 0, tmpTLVsize=996 [19:29:00]tlvbuf is 00364B40 [19:29:00]SAM_PROTO_ClearQueue [19:29:00]wFMCommunicate request_size=4 [19:29:00]MH_SAM_APDU [19:29:00]CAPDU: 80 09 00 00 [19:29:00]Write to MH i2c: E2 08 00 89 3E 80 09 00 00 00 00 00 00 39 [19:29:00]OFD Sender: No OFD packet to send [19:29:00]Write i2c OK [19:29:00]MH_I2C_Read... [19:29:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:00]Read from MH i2c: E2 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 03 00 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 03 00 89 3E 00 90 00 3B [19:29:00]RAPDU: 90 00 [19:29:00]wFMCommunicate OK [19:29:00]SAM_PROTO_ClearQueue done [19:29:00]KKMCreateOFDPacket [19:29:00]OFDProtocolAddRootSTLVToBuf [19:29:00]FM_MakeSignedData [19:29:00]FM_MakeSignedData [19:29:00]SAM_PROTO_SignData [19:29:00]wFMCommunicate request_size=4 [19:29:00]MH_SAM_APDU [19:29:00]CAPDU: 80 0D 01 02 [19:29:00]Write to MH i2c: E2 08 00 8A 3E 80 0D 01 02 00 00 00 00 41 [19:29:00]Write i2c OK [19:29:00]MH_I2C_Read... [19:29:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:00]Read from MH i2c: E2 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 03 00 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: E2 03 00 8A 3E 00 90 00 3C [19:29:00]RAPDU: 90 00 [19:29:00]wFMCommunicate OK [19:29:00]wFMCommunicate request_size=255 [19:29:00]MH_SAM_APDU [19:29:00]CAPDU: 80 0D 02 02 FA 03 00 E4 03 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 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 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 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 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 [19:29:00]Write to MH i2c: E2 02 01 8B 3E 80 0D 02 02 FA 00 03 00 E4 03 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 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 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 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 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 00 00 CD [19:29:00]Write i2c OK [19:29:00]MH_I2C_Read... [19:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:01]Read from MH i2c: E2 [19:29:01]MH_I2C_Read... [19:29:01]Read from MH i2c: E2 03 00 [19:29:01]MH_I2C_Read... [19:29:01]Read from MH i2c: E2 03 00 8B 3E 00 90 00 3D [19:29:01]RAPDU: 90 00 [19:29:01]wFMCommunicate OK [19:29:01]wFMCommunicate request_size=255 [19:29:01]MH_SAM_APDU [19:29:01]CAPDU: 80 0D 02 02 FA 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 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 23 04 66 00 [19:29:01]Write to MH i2c: E2 02 01 8C 3E 80 0D 02 02 FA 00 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 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 23 04 66 00 00 00 CF [19:29:01]Write i2c OK [19:29:01]MH_I2C_Read... [19:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:01]Read from MH i2c: E2 [19:29:01]MH_I2C_Read... [19:29:01]Read from MH i2c: E2 03 00 [19:29:01]MH_I2C_Read... [19:29:01]Read from MH i2c: E2 03 00 8C 3E 00 90 00 3E [19:29:01]RAPDU: 90 00 [19:29:01]wFMCommunicate OK [19:29:01]wFMCommunicate request_size=255 [19:29:01]MH_SAM_APDU [19:29:01]CAPDU: 80 0D 02 02 FA 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B 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 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 [19:29:01]Write to MH i2c: E2 02 01 8D 3E 80 0D 02 02 FA 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B 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 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 00 00 5A [19:29:01]Write i2c OK [19:29:01]MH_I2C_Read... [19:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:01]Read from MH i2c: E2 [19:29:01]MH_I2C_Read... [19:29:01]Read from MH i2c: E2 03 00 [19:29:01]MH_I2C_Read... [19:29:01]Read from MH i2c: E2 03 00 8D 3E 00 90 00 3F [19:29:01]RAPDU: 90 00 [19:29:01]wFMCommunicate OK [19:29:01]wFMCommunicate request_size=255 [19:29:01]MH_SAM_APDU [19:29:01]CAPDU: 80 0D 02 02 FA D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1E 00 00 00 00 07 04 06 00 3C 22 01 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 0A 9A 6C 66 0E 04 04 00 45 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 78 56 00 00 35 04 06 00 A8 47 3B 5B F7 A6 [19:29:01]Write to MH i2c: E2 02 01 8E 3E 80 0D 02 02 FA 00 D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1E 00 00 00 00 07 04 06 00 3C 22 01 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 0A 9A 6C 66 0E 04 04 00 45 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 78 56 00 00 35 04 06 00 A8 47 3B 5B F7 A6 00 00 A8 [19:29:01]Write i2c OK [19:29:01]MH_I2C_Read... [19:29:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:02]Read from MH i2c: E2 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 03 00 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 03 00 8E 3E 00 90 00 40 [19:29:02]RAPDU: 90 00 [19:29:02]wFMCommunicate OK [19:29:02]wFMCommunicate request_size=4 [19:29:02]MH_SAM_APDU [19:29:02]CAPDU: 80 0D 03 02 [19:29:02]Write to MH i2c: E2 08 00 8F 3E 80 0D 03 02 00 00 00 00 48 [19:29:02]Write i2c OK [19:29:02]MH_I2C_Read... [19:29:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:02]Read from MH i2c: E2 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 0B 00 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 0B 00 8F 3E 00 DE 8C 1F D8 F0 C7 64 AB 90 00 70 [19:29:02]RAPDU: DE 8C 1F D8 F0 C7 64 AB 90 00 [19:29:02]wFMCommunicate OK [19:29:02]SAM_PROTO_SignData done [19:29:02]FM_MakeSignedData done [19:29:02]CreateOFDProtocolMessage [19:29:02]wFMCommunicate request_size=4 [19:29:02]MH_SAM_APDU [19:29:02]CAPDU: 80 11 00 00 [19:29:02]Write to MH i2c: E2 08 00 90 3E 80 11 00 00 00 00 00 00 48 [19:29:02]Write i2c OK [19:29:02]MH_I2C_Read... [19:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:02]Read from MH i2c: E2 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 17 00 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 17 00 90 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 9A [19:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [19:29:02]wFMCommunicate OK [19:29:02]CreateOFDProtocolMessage done [19:29:02]OFDSenderStorePacket 22136 [19:29:02]StoreOFDPacket docnum=22136 [19:29:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 F8 03 00 00 99 36 F0 03 40 2B 5A 03 01 00 03 00 E4 03 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 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 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 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 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 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 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 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B 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 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1E 00 00 00 00 07 04 06 00 3C 22 01 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 0A 9A 6C 66 0E 04 04 00 45 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 78 56 00 00 35 04 06 00 A8 47 3B 5B F7 A6 DE 8C 1F D8 F0 C7 64 AB [19:29:02]CheckFolder [19:29:02]dirname=/storage/ofd_packets [19:29:02]CheckFolder done [19:29:02]ProducePacketName [19:29:02]name=ofd_packets/00022136 [19:29:02]NVStorageSaveData ofd_packets/00022136 [19:29:02]File name is /storage/ofd_packets/00022136 [19:29:02]Write 1046 bytes [19:29:02]NVStorageSaveData done [19:29:02]OFDSenderStorePacket done [19:29:02]KKMCreateOFDPacket done [19:29:02]NVStorageSaveData kkm_last_timestamp [19:29:02]File name is /storage/kkm_last_timestamp [19:29:02]Write 4 bytes [19:29:02]NVStorageSaveData done [19:29:02]ExternCall_PrintAddStr [19:29:02]wPrintStart [19:29:02]Write to MH i2c: 01 00 00 91 3E CF [19:29:02]Write i2c OK [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: 01 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: 01 07 00 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: 01 07 00 91 3E 00 00 00 00 00 FF 0F E4 [19:29:02]RasterBufferAndPrint [19:29:02]line 小褔械褌 N : (3)254359 [19:29:02]line 袠袧袧: 02508201610067 [19:29:02]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:29:02]line 袩袪袨袛袗袞袗 [19:29:02]line 孝芯胁邪褉: 4870002325441 [19:29:02]line 袙芯写邪 ASU 锌懈褌 薪.谐邪蟹 谢懈屑芯薪 袩协孝 0,5谢 [19:29:02]line 2.000 * 65.00 [19:29:02]line = 130.00 [19:29:02]line 袧袛小 12% 袧小袩 1% [19:29:02]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:29:02]line 孝芯胁邪褉: 5449000027450 [19:29:02]line 袧邪锌懈褌芯泻 FuzeTea 褔邪泄 屑邪薪谐芯,褉芯屑 0,5谢 [19:29:02]line 1.000 * 75.00 [19:29:02]line = 75.00 [19:29:02]line 袧袛小 12% 袧小袩 1% [19:29:02]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:29:02]line 孝芯胁邪褉: 4600338001623 [19:29:02]line 袙芯写邪 肖褉褍褌芯 袧携袧携 薪械谐邪蟹懈褉 写/写械褌械泄 0,33谢 [19:29:02]line 1.000 * 80.00 [19:29:02]line = 80.00 [19:29:02]line 袧袛小 12% 袧小袩 1% [19:29:02]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:29:02]line 孝芯胁邪褉: 4700000160211 [19:29:02]line 袙芯写邪 袥械谐械薪写邪 0,5谢 [19:29:02]line 1.000 * 40.00 [19:29:02]line = 40.00 [19:29:02]line 袧袛小 12% 袧小袩 1% [19:29:02]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:29:02]line 孝芯胁邪褉: 48744683 [19:29:02]line 小懈谐邪褉械褌褘 Winston XStyle Caster+ [19:29:02]line 1.000 * 143.00 [19:29:02]line = 143.00 [19:29:02]line 袧袛小 12% 袧小袩 1% [19:29:02]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:29:02]line 孝芯胁邪褉: 2000027340020 [19:29:02]line 袩邪泻械褌 斜褍屑邪卸薪褘泄 胁懈褌邪褟 褉褍褔泻邪 [19:29:02]line 1.000 * 25.00 [19:29:02]line = 25.00 [19:29:02]line 袧袛小 12% 袧小袩 1% [19:29:02]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:29:02]line 孝芯胁邪褉: 2000036220012 [19:29:02]line 袣芯褎械 袣邪锌褍褔懈薪芯 XL(GABB TRADE) [19:29:02]line 2.000 * 125.00 [19:29:02]line = 250.00 [19:29:02]line 袧袛小 12% 袧小袩 1% [19:29:02]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:29:02]line 袠孝袨袚袨: 743.00 [19:29:02]line 袧小袩 1% : 6.56 [19:29:02]line 袧袛小 12% : 78.90 [19:29:02]line 袧邪谢懈褔薪褘屑懈: 743.00 [19:29:02]line 袘械蟹薪邪谢.: 0.00 [19:29:02]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [19:29:02]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [19:29:02]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:29:02]line 效械泻 50 14.06.2024 19:29 [19:29:02]line 小屑械薪邪: 325 肖肖袛: 1.0 [19:29:02]line 袟袧袦: 0300000200 [19:29:02]line 袪袧袦: 0000000000099755 [19:29:02]line 袙械褉褋懈褟 袣袣袦: 001 [19:29:02]line 肖袦: 0000000000965344 [19:29:02]line 肖袛: 22136 [19:29:02]line 肖袩袛: 185023892027302 [19:29:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T192914&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22136&fm=185023892027302&tin=02508201610067®Number=0000000000099755&sum=74300 [19:29:02]line 0 [19:29:02]written 0, free lines is 4095 [19:29:02]OFD Sender: Processing packet 22136 [packets to send 5, broken 4] [19:29:02]ProducePacketName [19:29:02]name=ofd_packets/00022136 [19:29:02]OFD Sender: To server: 嚂鰌G, [19:29:02]CommunicateWithHost lk.salyk.kg:30040 [19:29:02]ConnectInit lk.salyk.kg [19:29:02]Connected sock=10 [19:29:02]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 F8 03 00 00 99 36 F0 03 40 2B 5A 03 01 00 03 00 E4 03 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 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 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 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 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 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 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 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B 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 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1E 00 00 00 00 07 04 06 00 3C 22 01 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 0A 9A 6C 66 0E 04 04 00 45 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 78 56 00 00 35 04 06 00 A8 47 3B 5B F7 A6 DE 8C 1F D8 F0 C7 64 AB [19:29: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 A3 71 47 00 27 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 78 56 00 00 F4 03 04 00 CB 42 6C 66 B6 04 01 00 00 7C CB BC 17 2B 39 E6 50 [19:29:02]CommunicateWithHost err = 0 [19:29:02]CheckOFDResponse [19:29:02]1017 (14) - 77093643461234 [19:29:02]1041 (16) - 0000000000965344 [19:29:02]1040 (4) - 22136 [19:29:02]1012 (4) - 14.06.2024 13:16 [19:29:02]1206 (1) - 0 [19:29:02]OFD Sender: Remove packet 22136 [19:29:02]ProducePacketName [19:29:02]name=ofd_packets/00022136 [19:29:02]NVStorageDeleteData [19:29:03]Write to MH i2c: 01 00 00 E2 3E 20 [19:29:03]Write i2c OK [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: 01 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: 01 07 00 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: 01 07 00 E2 3E 00 00 00 00 00 1C 0B 4E [19:29:03]RasterBufferAndPrint [19:29:03]line [19:29:03]line [19:29:03]line [19:29:03]line [19:29:03]line [19:29:03]written 0, free lines is 2856 [19:29:03]MH_Cut [19:29:03]Write to MH i2c: D1 01 00 E9 3E 01 F9 [19:29:03]Write i2c OK [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: D1 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: D1 01 00 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: D1 01 00 E9 3E 00 F8 [19:29:03]Write to MH i2c: 01 00 00 EA 3E 28 [19:29:03]Write i2c OK [19:29:03]MH_I2C_Read... [19:29:03]OFD Sender: No OFD packet to send [19:29:04]*** Cut start [19:29:04]*** Partial cut [19:29:04]*** CUTSNS_PIN = 1 [19:29:04]*** CUTSNS_PIN = 0 [19:29:04]*** Brake cut motor [19:29:04]Read from MH i2c: 01 [19:29:04]MH_I2C_Read... [19:29:04]*** Stop cut motor [19:29:04]*** Cut end [19:29:04]Read from MH i2c: 01 07 00 [19:29:04]MH_I2C_Read... [19:29:04]Read from MH i2c: 01 07 00 EA 3E 00 00 00 00 00 FF 0F 3D [19:29:04]process_action close_receipt done [19:29:04]requested_data is exist [19:29:04]produce_requested_data [19:29:04]requested_item fm.sn is exist - process it [19:29:04]wFMCommunicate request_size=4 [19:29:04]MH_SAM_APDU [19:29:04]CAPDU: 80 11 00 00 [19:29:04]Write to MH i2c: E2 08 00 EB 3E 80 11 00 00 00 00 00 00 A3 [19:29:04]Write i2c OK [19:29:04]MH_I2C_Read... [19:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:05]Read from MH i2c: E2 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: E2 17 00 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: E2 17 00 EB 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 F5 [19:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [19:29:05]wFMCommunicate OK [19:29:05]requested_item fd.num is exist - process it [19:29:05]SAM_PROTO_GetFieldsCounters [19:29:05]wFMCommunicate request_size=4 [19:29:05]MH_SAM_APDU [19:29:05]CAPDU: 80 13 00 00 [19:29:05]Write to MH i2c: E2 08 00 EC 3E 80 13 00 00 00 00 00 00 A6 [19:29:05]Write i2c OK [19:29:05]MH_I2C_Read... [19:29:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:05]Read from MH i2c: E2 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: E2 62 00 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: E2 62 00 EC 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 78 56 00 00 0E 04 04 00 45 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 7A [19:29: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 78 56 00 00 0E 04 04 00 45 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 [19:29:05]wFMCommunicate OK [19:29:05]SAM_PROTO_GetFieldsCounters done [19:29:05]requested_item shift.num is exist - process it [19:29:05]requested_item shift.opened is exist - process it [19:29:05]req_shift_opened [19:29:05]FM_GetShiftState [19:29:05]SAM_PROTO_GetShiftState [19:29:05]wFMCommunicate request_size=4 [19:29:05]MH_SAM_APDU [19:29:05]CAPDU: 80 13 01 00 [19:29:05]Write to MH i2c: E2 08 00 ED 3E 80 13 01 00 00 00 00 00 A8 [19:29:05]Write i2c OK [19:29:05]MH_I2C_Read... [19:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:05]Read from MH i2c: E2 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: E2 0E 00 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: E2 0E 00 ED 3E 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 19 [19:29:05]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [19:29:05]wFMCommunicate OK [19:29:05]SAM_PROTO_GetShiftState done [19:29:05]FM_GetShiftState done [19:29:05]req_shift_opened done [19:29:05]requested_item shift.open_date is exist - process it [19:29:05]req_shift_open_date [19:29:05]req_shift_open_date done [19:29:05]produce_requested_data done [19:29:05]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22136,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [19:29:05]process_action_free close_receipt [19:29:05]json_value_free [19:29:05]json_value_free done [19:29:05]process_json_proto returns [19:29:05]Send response to host [19:29:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22136,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [19:29:05]free response buf [19:29:05]execute_script done [19:29:05]execute_script returns [19:29:05]free content buf [19:29:05]Sock 8.Close socket [19:29:05]Sock 8.Thread stoped [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:19]accept exits with 9 [19:38:19]New connection [19:38:19]New thread 3067321700 created [19:38:19]Thread 3067178340 joined [19:38:19]Waiting for new connection... [19:38:19] Sock 9.Parse request [19:38:19]Sock 9.Check first char [19:38:19]Sock 9.First char is OK [19:38:19]request: POST /json_proto HTTP/1.0 [19:38:19]Method: POST [19:38:19]URL: /json_proto [19:38:19]Method is POST - this is cgi request [19:38:19]url: /json_proto [19:38:19]query_string will be loaded in cgi processing [19:38:19]execute_cgi json_proto POST (null) [19:38:19]execute_cgi path=json_proto method=POST [19:38:19]POST find Content-Length [19:38:19]Host: 172.17.35.133:8080 [19:38:19]Content-Length: 639 [19:38:19]Content-Type: application/json [19:38:19] [19:38:19]POST finish read [19:38:19]Found Content-Length = 639 [19:38:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254360", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "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" ] } } [19:38:19]execute_script... [19:38: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)254360", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "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" ] } } [19:38:19]POST & json_proto [19:38:19]process_json_proto [19:38:19]json parsed OK: [19:38:19]protocol is kg_v1.0 [19:38:19]action value=close_receipt [19:38:19]process_action close_receipt [19:38:19]cmd_close_receipt [19:38:19]MH_GetDate [19:38:19]Write to MH i2c: F0 00 00 EE 3E 1B [19:38:19]Write i2c OK [19:38:19]MH_I2C_Read... [19:38:19]Read from MH i2c: F0 [19:38:19]MH_I2C_Read... [19:38:19]Read from MH i2c: F0 09 00 [19:38:19]MH_I2C_Read... [19:38:19]Read from MH i2c: F0 09 00 EE 3E 00 3B 9C 6C 66 8C 55 28 65 3B [19:38:19]GetLastDocTimeStamp 1718393354 [19:38:19]current date 1718393915 [19:38:19]FM_GetShiftState [19:38:19]SAM_PROTO_GetShiftState [19:38:19]wFMCommunicate request_size=4 [19:38:19]MH_SAM_APDU [19:38:19]CAPDU: 80 13 01 00 [19:38:19]Write to MH i2c: E2 08 00 EF 3E 80 13 01 00 00 00 00 00 AA [19:38:19]Write i2c OK [19:38:19]MH_I2C_Read... [19:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:19]Read from MH i2c: E2 [19:38:19]MH_I2C_Read... [19:38:19]Read from MH i2c: E2 0E 00 [19:38:19]MH_I2C_Read... [19:38:19]Read from MH i2c: E2 0E 00 EF 3E 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 1B [19:38:19]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [19:38:19]wFMCommunicate OK [19:38:19]SAM_PROTO_GetShiftState done [19:38:19]FM_GetShiftState done [19:38:19]opened in 1718324742 [19:38:19]opened+sec_in_day 1718411142 [19:38:19]quantity*price = 11300 [19:38:19]sum+1 = 11301 [19:38:19]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 113.00 袧小袩 1% : 1.00 袧袛小 12% : 12.00 袧邪谢懈褔薪褘屑懈: 113.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 51 14.06.2024 19:38 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22137 肖袩袛: 79865066202247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T193835&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22137&fm=79865066202247&tin=02508201610067®Number=0000000000099755&sum=11300 0 [19:38:20]StoreToDocumentArchive [19:38:20]shift 325 fd 22137 [19:38:20]save to /storage/0325/doc_00022137 [19:38:20]save last doc name /storage/0325/doc_00022137 to /storage/kkm_last_doc_name [19:38:20]save OK [19:38:20]Clear old archive folders... [19:38:20]ProcessDocumentItem done err = 0, tmpTLVsize=271 [19:38:20]tlvbuf is 00248DE0 [19:38:20]SAM_PROTO_ClearQueue [19:38:20]wFMCommunicate request_size=4 [19:38:20]MH_SAM_APDU [19:38:20]CAPDU: 80 09 00 00 [19:38:20]Write to MH i2c: E2 08 00 FC 3E 80 09 00 00 00 00 00 00 AC [19:38:20]Write i2c OK [19:38:20]MH_I2C_Read... [19:38:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:20]Read from MH i2c: E2 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 03 00 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 03 00 FC 3E 00 90 00 AE [19:38:20]RAPDU: 90 00 [19:38:20]wFMCommunicate OK [19:38:20]SAM_PROTO_ClearQueue done [19:38:20]KKMCreateOFDPacket [19:38:20]OFDProtocolAddRootSTLVToBuf [19:38:20]FM_MakeSignedData [19:38:20]FM_MakeSignedData [19:38:20]SAM_PROTO_SignData [19:38:20]wFMCommunicate request_size=4 [19:38:20]MH_SAM_APDU [19:38:20]CAPDU: 80 0D 01 02 [19:38:20]Write to MH i2c: E2 08 00 FD 3E 80 0D 01 02 00 00 00 00 B4 [19:38:20]Write i2c OK [19:38:20]MH_I2C_Read... [19:38:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:20]Read from MH i2c: E2 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 03 00 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 03 00 FD 3E 00 90 00 AF [19:38:20]RAPDU: 90 00 [19:38:20]wFMCommunicate OK [19:38:20]wFMCommunicate request_size=255 [19:38:20]MH_SAM_APDU [19:38:20]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 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 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 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 33 00 00 00 F4 03 04 00 3B 9C 6C 66 0E 04 04 00 45 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 [19:38:20]Write to MH i2c: E2 02 01 FE 3E 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 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 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 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 33 00 00 00 F4 03 04 00 3B 9C 6C 66 0E 04 04 00 45 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 8A [19:38:20]Write i2c OK [19:38:20]MH_I2C_Read... [19:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:21]Read from MH i2c: E2 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 03 00 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 03 00 FE 3E 00 90 00 B0 [19:38:21]RAPDU: 90 00 [19:38:21]wFMCommunicate OK [19:38:21]wFMCommunicate request_size=30 [19:38:21]MH_SAM_APDU [19:38:21]CAPDU: 80 0D 02 02 19 30 39 36 35 33 34 34 10 04 04 00 79 56 00 00 35 04 06 00 48 A3 08 E6 A4 87 [19:38:21]Write to MH i2c: E2 21 00 FF 3E 80 0D 02 02 19 00 30 39 36 35 33 34 34 10 04 04 00 79 56 00 00 35 04 06 00 48 A3 08 E6 A4 87 00 00 82 [19:38:21]Write i2c OK [19:38:21]MH_I2C_Read... [19:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:21]Read from MH i2c: E2 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 03 00 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 03 00 FF 3E 00 90 00 B1 [19:38:21]RAPDU: 90 00 [19:38:21]wFMCommunicate OK [19:38:21]wFMCommunicate request_size=4 [19:38:21]MH_SAM_APDU [19:38:21]CAPDU: 80 0D 03 02 [19:38:21]Write to MH i2c: E2 08 00 00 3F 80 0D 03 02 00 00 00 00 BA [19:38:21]Write i2c OK [19:38:21]MH_I2C_Read... [19:38:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:21]Read from MH i2c: E2 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 0B 00 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 0B 00 00 3F 00 BF 5D 3E 2C 97 A6 F7 75 90 00 EA [19:38:21]RAPDU: BF 5D 3E 2C 97 A6 F7 75 90 00 [19:38:21]wFMCommunicate OK [19:38:21]SAM_PROTO_SignData done [19:38:21]FM_MakeSignedData done [19:38:21]CreateOFDProtocolMessage [19:38:21]wFMCommunicate request_size=4 [19:38:21]MH_SAM_APDU [19:38:21]CAPDU: 80 11 00 00 [19:38:21]Write to MH i2c: E2 08 00 01 3F 80 11 00 00 00 00 00 00 BA [19:38:21]Write i2c OK [19:38:21]MH_I2C_Read... [19:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:21]Read from MH i2c: E2 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 17 00 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 17 00 01 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 0C [19:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [19:38:21]wFMCommunicate OK [19:38:21]CreateOFDProtocolMessage done [19:38:21]OFDSenderStorePacket 22137 [19:38:21]StoreOFDPacket docnum=22137 [19:38: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 23 01 00 00 84 38 1B 01 FB 98 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 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 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 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 33 00 00 00 F4 03 04 00 3B 9C 6C 66 0E 04 04 00 45 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 79 56 00 00 35 04 06 00 48 A3 08 E6 A4 87 BF 5D 3E 2C 97 A6 F7 75 [19:38:21]CheckFolder [19:38:21]dirname=/storage/ofd_packets [19:38:21]CheckFolder done [19:38:21]ProducePacketName [19:38:21]name=ofd_packets/00022137 [19:38:21]NVStorageSaveData ofd_packets/00022137 [19:38:21]File name is /storage/ofd_packets/00022137 [19:38:21]Write 321 bytes [19:38:21]NVStorageSaveData done [19:38:21]OFDSenderStorePacket done [19:38:21]KKMCreateOFDPacket done [19:38:21]NVStorageSaveData kkm_last_timestamp [19:38:21]File name is /storage/kkm_last_timestamp [19:38:21]Write 4 bytes [19:38:21]NVStorageSaveData done [19:38:21]ExternCall_PrintAddStr [19:38:21]wPrintStart [19:38:21]Write to MH i2c: 01 00 00 02 3F 41 [19:38:21]Write i2c OK [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: 01 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: 01 07 00 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: 01 07 00 02 3F 00 00 00 00 00 FF 0F 56 [19:38:21]RasterBufferAndPrint [19:38:21]line 小褔械褌 N : (3)254360 [19:38:21]line 袠袧袧: 02508201610067 [19:38:21]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:38:21]line 袩袪袨袛袗袞袗 [19:38:21]line 孝芯胁邪褉: 5449000006271 [19:38:21]line 袧邪锌懈褌芯泻 肖邪薪褌邪 1谢 [19:38:21]line 1.000 * 113.00 [19:38:21]line = 113.00 [19:38:21]line 袧袛小 12% 袧小袩 1% [19:38:21]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:38:21]line 袠孝袨袚袨: 113.00 [19:38:21]line 袧小袩 1% : 1.00 [19:38:21]line 袧袛小 12% : 12.00 [19:38:21]line 袧邪谢懈褔薪褘屑懈: 113.00 [19:38:21]line 袘械蟹薪邪谢.: 0.00 [19:38:21]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [19:38:21]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [19:38:21]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:38:21]line 效械泻 51 14.06.2024 19:38 [19:38:21]line 小屑械薪邪: 325 肖肖袛: 1.0 [19:38:21]line 袟袧袦: 0300000200 [19:38:21]line 袪袧袦: 0000000000099755 [19:38:21]line 袙械褉褋懈褟 袣袣袦: 001 [19:38:21]line 肖袦: 0000000000965344 [19:38:21]line 肖袛: 22137 [19:38:21]line 肖袩袛: 79865066202247 [19:38:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T193835&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22137&fm=79865066202247&tin=02508201610067®Number=0000000000099755&sum=11300 [19:38:21]OFD Sender: Processing packet 22137 [packets to send 5, broken 4] [19:38:21]ProducePacketName [19:38:21]name=ofd_packets/00022137 [19:38:21]OFD Sender: To server: 嚂鰌G, [19:38:21]CommunicateWithHost lk.salyk.kg:30040 [19:38:21]ConnectInit lk.salyk.kg [19:38:21]line 0 [19:38:21]written 0, free lines is 4095 [19:38:21]Connected sock=11 [19:38: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 23 01 00 00 84 38 1B 01 FB 98 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 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 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 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 33 00 00 00 F4 03 04 00 3B 9C 6C 66 0E 04 04 00 45 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 79 56 00 00 35 04 06 00 48 A3 08 E6 A4 87 BF 5D 3E 2C 97 A6 F7 75 [19:38: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 79 7C 47 00 7C BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 79 56 00 00 F4 03 04 00 FA 44 6C 66 B6 04 01 00 00 B7 F8 DA 62 3A A1 7A 15 [19:38:21]CommunicateWithHost err = 0 [19:38:21]CheckOFDResponse [19:38:21]1017 (14) - 77093643461234 [19:38:21]1041 (16) - 0000000000965344 [19:38:21]1040 (4) - 22137 [19:38:21]1012 (4) - 14.06.2024 13:26 [19:38:21]1206 (1) - 0 [19:38:21]OFD Sender: Remove packet 22137 [19:38:21]ProducePacketName [19:38:21]name=ofd_packets/00022137 [19:38:21]NVStorageDeleteData [19:38:22]Write to MH i2c: 01 00 00 2A 3F 69 [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: 01 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: 01 07 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: 01 07 00 2A 3F 00 00 00 00 00 11 0D 8E [19:38:22]RasterBufferAndPrint [19:38:22]line [19:38:22]line [19:38:22]line [19:38:22]line [19:38:22]line [19:38:22]written 0, free lines is 3353 [19:38:22]MH_Cut [19:38:22]Write to MH i2c: D1 01 00 31 3F 01 42 [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: D1 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: D1 01 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: D1 01 00 31 3F 00 41 [19:38:22]Write to MH i2c: 01 00 00 32 3F 71 [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]OFD Sender: No OFD packet to send [19:38:22]*** Cut start [19:38:22]*** Partial cut [19:38:22]*** CUTSNS_PIN = 1 [19:38:22]*** CUTSNS_PIN = 0 [19:38:23]*** Brake cut motor [19:38:23]Read from MH i2c: 01 [19:38:23]MH_I2C_Read... [19:38:23]*** Stop cut motor [19:38:23]*** Cut end [19:38:23]Read from MH i2c: 01 07 00 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: 01 07 00 32 3F 00 00 00 00 00 FF 0F 86 [19:38:23]process_action close_receipt done [19:38:23]requested_data is exist [19:38:23]produce_requested_data [19:38:23]requested_item fm.sn is exist - process it [19:38:23]wFMCommunicate request_size=4 [19:38:23]MH_SAM_APDU [19:38:23]CAPDU: 80 11 00 00 [19:38:23]Write to MH i2c: E2 08 00 33 3F 80 11 00 00 00 00 00 00 EC [19:38:23]Write i2c OK [19:38:23]MH_I2C_Read... [19:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:23]Read from MH i2c: E2 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: E2 17 00 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: E2 17 00 33 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 3E [19:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [19:38:23]wFMCommunicate OK [19:38:23]requested_item fd.num is exist - process it [19:38:23]SAM_PROTO_GetFieldsCounters [19:38:23]wFMCommunicate request_size=4 [19:38:23]MH_SAM_APDU [19:38:23]CAPDU: 80 13 00 00 [19:38:23]Write to MH i2c: E2 08 00 34 3F 80 13 00 00 00 00 00 00 EF [19:38:23]Write i2c OK [19:38:23]MH_I2C_Read... [19:38:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:23]Read from MH i2c: E2 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: E2 62 00 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: E2 62 00 34 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 79 56 00 00 0E 04 04 00 45 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 C7 [19:38: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 79 56 00 00 0E 04 04 00 45 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 [19:38:23]wFMCommunicate OK [19:38:23]SAM_PROTO_GetFieldsCounters done [19:38:23]requested_item shift.num is exist - process it [19:38:23]requested_item shift.opened is exist - process it [19:38:23]req_shift_opened [19:38:23]FM_GetShiftState [19:38:23]SAM_PROTO_GetShiftState [19:38:23]wFMCommunicate request_size=4 [19:38:23]MH_SAM_APDU [19:38:23]CAPDU: 80 13 01 00 [19:38:23]Write to MH i2c: E2 08 00 35 3F 80 13 01 00 00 00 00 00 F1 [19:38:23]Write i2c OK [19:38:23]MH_I2C_Read... [19:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:23]Read from MH i2c: E2 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: E2 0E 00 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: E2 0E 00 35 3F 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 62 [19:38:23]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [19:38:23]wFMCommunicate OK [19:38:23]SAM_PROTO_GetShiftState done [19:38:23]FM_GetShiftState done [19:38:23]req_shift_opened done [19:38:23]requested_item shift.open_date is exist - process it [19:38:23]req_shift_open_date [19:38:23]req_shift_open_date done [19:38:23]produce_requested_data done [19:38:23]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22137,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [19:38:23]process_action_free close_receipt [19:38:23]json_value_free [19:38:23]json_value_free done [19:38:23]process_json_proto returns [19:38:23]Send response to host [19:38:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22137,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [19:38:23]free response buf [19:38:23]execute_script done [19:38:23]execute_script returns [19:38:23]free content buf [19:38:23]Sock 9.Close socket [19:38:23]Sock 9.Thread stoped [19:38:27]OFD Sender: No OFD packet to send [19:38:32]OFD Sender: No OFD packet to send [19:38:37]OFD Sender: No OFD packet to send [19:38:42]OFD Sender: No OFD packet to send [19:38:47]OFD Sender: No OFD packet to send [19:38:52]OFD Sender: No OFD packet to send [19:38:57]OFD Sender: No OFD packet to send [19:39:02]OFD Sender: No OFD packet to send [19:39:07]OFD Sender: No OFD packet to send [19:39:12]OFD Sender: No OFD packet to send [19:39:17]OFD Sender: No OFD packet to send [19:39:22]OFD Sender: No OFD packet to send [19:39:27]OFD Sender: No OFD packet to send [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:42]OFD Sender: No OFD packet to send [19:39:47]OFD Sender: No OFD packet to send [19:39:52]OFD Sender: No OFD packet to send [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:12]OFD Sender: No OFD packet to send [19:40:17]OFD Sender: No OFD packet to send [19:40:22]OFD Sender: No OFD packet to send [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:30]accept exits with 8 [19:46:30]New connection [19:46:30]New thread 3067178340 created [19:46:30]Thread 3067321700 joined [19:46:30]Waiting for new connection... [19:46:30] Sock 8.Parse request [19:46:30]Sock 8.Check first char [19:46:30]Sock 8.First char is OK [19:46:30]request: POST /json_proto HTTP/1.0 [19:46:30]Method: POST [19:46:30]URL: /json_proto [19:46:30]Method is POST - this is cgi request [19:46:30]url: /json_proto [19:46:30]query_string will be loaded in cgi processing [19:46:30]execute_cgi json_proto POST (null) [19:46:30]execute_cgi path=json_proto method=POST [19:46:30]POST find Content-Length [19:46:30]Host: 172.17.35.133:8080 [19:46:30]Content-Length: 654 [19:46:30]Content-Type: application/json [19:46:30] [19:46:30]POST finish read [19:46:30]Found Content-Length = 654 [19:46:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254361", "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" ] } } [19:46:30]execute_script... [19:46: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)254361", "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" ] } } [19:46:30]POST & json_proto [19:46:30]process_json_proto [19:46:30]json parsed OK: [19:46:30]protocol is kg_v1.0 [19:46:30]action value=close_receipt [19:46:30]process_action close_receipt [19:46:30]cmd_close_receipt [19:46:30]MH_GetDate [19:46:30]Write to MH i2c: F0 00 00 36 3F 64 [19:46:30]Write i2c OK [19:46:30]MH_I2C_Read... [19:46:30]Read from MH i2c: F0 [19:46:30]MH_I2C_Read... [19:46:30]Read from MH i2c: F0 09 00 [19:46:30]MH_I2C_Read... [19:46:30]Read from MH i2c: F0 09 00 36 3F 00 26 9E 6C 66 8C 55 28 65 71 [19:46:30]GetLastDocTimeStamp 1718393915 [19:46:30]current date 1718394406 [19:46:30]FM_GetShiftState [19:46:30]SAM_PROTO_GetShiftState [19:46:30]wFMCommunicate request_size=4 [19:46:30]MH_SAM_APDU [19:46:30]CAPDU: 80 13 01 00 [19:46:30]Write to MH i2c: E2 08 00 37 3F 80 13 01 00 00 00 00 00 F3 [19:46:30]Write i2c OK [19:46:30]MH_I2C_Read... [19:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:30]Read from MH i2c: E2 [19:46:30]MH_I2C_Read... [19:46:30]Read from MH i2c: E2 0E 00 [19:46:30]MH_I2C_Read... [19:46:30]Read from MH i2c: E2 0E 00 37 3F 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 64 [19:46:30]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [19:46:30]wFMCommunicate OK [19:46:30]SAM_PROTO_GetShiftState done [19:46:30]FM_GetShiftState done [19:46:30]opened in 1718324742 [19:46:30]opened+sec_in_day 1718411142 [19:46:30]quantity*price = 9500 [19:46:30]sum+1 = 9501 [19:46:30]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 95.00 袧小袩 1% : 0.84 袧袛小 12% : 10.09 袧邪谢懈褔薪褘屑懈: 95.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 52 14.06.2024 19:46 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22138 肖袩袛: 268852666966324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T194646&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22138&fm=268852666966324&tin=02508201610067®Number=0000000000099755&sum=9500 0 [19:46:31]StoreToDocumentArchive [19:46:31]shift 325 fd 22138 [19:46:31]save to /storage/0325/doc_00022138 [19:46:31]save last doc name /storage/0325/doc_00022138 to /storage/kkm_last_doc_name [19:46:31]save OK [19:46:31]Clear old archive folders... [19:46:31]ProcessDocumentItem done err = 0, tmpTLVsize=293 [19:46:31]tlvbuf is B6F34A90 [19:46:31]SAM_PROTO_ClearQueue [19:46:31]wFMCommunicate request_size=4 [19:46:31]MH_SAM_APDU [19:46:31]CAPDU: 80 09 00 00 [19:46:31]Write to MH i2c: E2 08 00 44 3F 80 09 00 00 00 00 00 00 F5 [19:46:31]Write i2c OK [19:46:31]MH_I2C_Read... [19:46:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:31]Read from MH i2c: E2 [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: E2 03 00 [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: E2 03 00 44 3F 00 90 00 F7 [19:46:31]RAPDU: 90 00 [19:46:31]wFMCommunicate OK [19:46:31]SAM_PROTO_ClearQueue done [19:46:31]KKMCreateOFDPacket [19:46:31]OFDProtocolAddRootSTLVToBuf [19:46:31]FM_MakeSignedData [19:46:31]FM_MakeSignedData [19:46:31]SAM_PROTO_SignData [19:46:31]wFMCommunicate request_size=4 [19:46:31]MH_SAM_APDU [19:46:31]CAPDU: 80 0D 01 02 [19:46:31]Write to MH i2c: E2 08 00 45 3F 80 0D 01 02 00 00 00 00 FD [19:46:31]Write i2c OK [19:46:31]MH_I2C_Read... [19:46:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:31]Read from MH i2c: E2 [19:46:31]MH_I2C_Read... [19:46:31]Read from MH i2c: E2 03 00 [19:46:31]MH_I2C_Read... [19:46:32]Read from MH i2c: E2 03 00 45 3F 00 90 00 F8 [19:46:32]RAPDU: 90 00 [19:46:32]wFMCommunicate OK [19:46:32]wFMCommunicate request_size=255 [19:46:32]MH_SAM_APDU [19:46:32]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 34 00 00 00 F4 03 04 00 26 9E 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [19:46:32]Write to MH i2c: E2 02 01 46 3F 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 34 00 00 00 F4 03 04 00 26 9E 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 AD [19:46:32]Write i2c OK [19:46:32]MH_I2C_Read... [19:46:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:32]Read from MH i2c: E2 [19:46:32]MH_I2C_Read... [19:46:32]Read from MH i2c: E2 03 00 [19:46:32]MH_I2C_Read... [19:46:32]Read from MH i2c: E2 03 00 46 3F 00 90 00 F9 [19:46:32]RAPDU: 90 00 [19:46:32]wFMCommunicate OK [19:46:32]wFMCommunicate request_size=52 [19:46:32]MH_SAM_APDU [19:46:32]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 7A 56 00 00 35 04 06 00 F4 85 23 B6 21 34 [19:46:32]Write to MH i2c: E2 37 00 47 3F 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 7A 56 00 00 35 04 06 00 F4 85 23 B6 21 34 00 00 43 [19:46:32]Write i2c OK [19:46:32]MH_I2C_Read... [19:46:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:32]Read from MH i2c: E2 [19:46:32]MH_I2C_Read... [19:46:32]Read from MH i2c: E2 03 00 [19:46:32]MH_I2C_Read... [19:46:32]Read from MH i2c: E2 03 00 47 3F 00 90 00 FA [19:46:32]RAPDU: 90 00 [19:46:32]wFMCommunicate OK [19:46:32]wFMCommunicate request_size=4 [19:46:32]MH_SAM_APDU [19:46:32]CAPDU: 80 0D 03 02 [19:46:32]Write to MH i2c: E2 08 00 48 3F 80 0D 03 02 00 00 00 00 02 [19:46:32]Write i2c OK [19:46:32]MH_I2C_Read... [19:46:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:32]Read from MH i2c: E2 [19:46:32]MH_I2C_Read... [19:46:32]Read from MH i2c: E2 0B 00 [19:46:32]MH_I2C_Read... [19:46:32]Read from MH i2c: E2 0B 00 48 3F 00 C4 CF F5 7E 10 83 3C 11 90 00 E9 [19:46:32]RAPDU: C4 CF F5 7E 10 83 3C 11 90 00 [19:46:32]wFMCommunicate OK [19:46:32]SAM_PROTO_SignData done [19:46:32]FM_MakeSignedData done [19:46:32]CreateOFDProtocolMessage [19:46:32]wFMCommunicate request_size=4 [19:46:32]MH_SAM_APDU [19:46:32]CAPDU: 80 11 00 00 [19:46:32]Write to MH i2c: E2 08 00 49 3F 80 11 00 00 00 00 00 00 02 [19:46:32]Write i2c OK [19:46:32]MH_I2C_Read... [19:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:32]Read from MH i2c: E2 [19:46:32]MH_I2C_Read... [19:46:32]Read from MH i2c: E2 17 00 [19:46:32]MH_I2C_Read... [19:46:32]Read from MH i2c: E2 17 00 49 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 54 [19:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [19:46:32]wFMCommunicate OK [19:46:32]CreateOFDProtocolMessage done [19:46:32]OFDSenderStorePacket 22138 [19:46:32]StoreOFDPacket docnum=22138 [19:46:32]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 A1 80 31 01 AD B0 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 34 00 00 00 F4 03 04 00 26 9E 6C 66 0E 04 04 00 45 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 7A 56 00 00 35 04 06 00 F4 85 23 B6 21 34 C4 CF F5 7E 10 83 3C 11 [19:46:32]CheckFolder [19:46:32]dirname=/storage/ofd_packets [19:46:32]CheckFolder done [19:46:32]ProducePacketName [19:46:32]name=ofd_packets/00022138 [19:46:32]NVStorageSaveData ofd_packets/00022138 [19:46:32]File name is /storage/ofd_packets/00022138 [19:46:32]Write 343 bytes [19:46:32]NVStorageSaveData done [19:46:32]OFDSenderStorePacket done [19:46:32]KKMCreateOFDPacket done [19:46:32]NVStorageSaveData kkm_last_timestamp [19:46:32]File name is /storage/kkm_last_timestamp [19:46:32]Write 4 bytes [19:46:32]NVStorageSaveData done [19:46:32]ExternCall_PrintAddStr [19:46:32]wPrintStart [19:46:32]Write to MH i2c: 01 00 00 4A 3F 89 [19:46:32]Write i2c OK [19:46:32]MH_I2C_Read... [19:46:32]Read from MH i2c: 01 [19:46:32]MH_I2C_Read... [19:46:32]Read from MH i2c: 01 07 00 [19:46:32]MH_I2C_Read... [19:46:32]Read from MH i2c: 01 07 00 4A 3F 00 00 00 00 00 FF 0F 9E [19:46:32]RasterBufferAndPrint [19:46:32]line 小褔械褌 N : (3)254361 [19:46:32]line 袠袧袧: 02508201610067 [19:46:32]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:46:32]line 袩袪袨袛袗袞袗 [19:46:32]line 孝芯胁邪褉: 4700000480050 [19:46:32]line 袧邪锌懈褌芯泻 Nitro Energy 褝薪 green 卸/斜 0,45谢 [19:46:32]line 1.000 * 95.00 [19:46:32]line = 95.00 [19:46:32]line 袧袛小 12% 袧小袩 1% [19:46:32]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:46:32]line 袠孝袨袚袨: 95.00 [19:46:32]line 袧小袩 1% : 0.84 [19:46:32]line 袧袛小 12% : 10.09 [19:46:32]line 袧邪谢懈褔薪褘屑懈: 95.00 [19:46:32]line 袘械蟹薪邪谢.: 0.00 [19:46:32]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [19:46:32]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [19:46:32]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:46:32]line 效械泻 52 14.06.2024 19:46 [19:46:32]line 小屑械薪邪: 325 肖肖袛: 1.0 [19:46:32]line 袟袧袦: 0300000200 [19:46:32]line 袪袧袦: 0000000000099755 [19:46:32]line 袙械褉褋懈褟 袣袣袦: 001 [19:46:32]line 肖袦: 0000000000965344 [19:46:32]line 肖袛: 22138 [19:46:32]line 肖袩袛: 268852666966324 [19:46:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T194646&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22138&fm=268852666966324&tin=02508201610067®Number=0000000000099755&sum=9500 [19:46:32]line 0 [19:46:32]OFD Sender: Processing packet 22138 [packets to send 5, broken 4] [19:46:32]ProducePacketName [19:46:32]name=ofd_packets/00022138 [19:46:32]OFD Sender: To server: 嚂鰌G, [19:46:32]CommunicateWithHost lk.salyk.kg:30040 [19:46:32]ConnectInit lk.salyk.kg [19:46:32]written 0, free lines is 4095 [19:46:32]Connected sock=10 [19:46: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 39 01 00 00 A1 80 31 01 AD B0 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 34 00 00 00 F4 03 04 00 26 9E 6C 66 0E 04 04 00 45 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 7A 56 00 00 35 04 06 00 F4 85 23 B6 21 34 C4 CF F5 7E 10 83 3C 11 [19:46:33]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 7E 63 47 00 F9 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 7A 56 00 00 F4 03 04 00 E5 46 6C 66 B6 04 01 00 00 0E B9 13 90 ED D3 DC 38 [19:46:33]CommunicateWithHost err = 0 [19:46:33]CheckOFDResponse [19:46:33]1017 (14) - 77093643461234 [19:46:33]1041 (16) - 0000000000965344 [19:46:33]1040 (4) - 22138 [19:46:33]1012 (4) - 14.06.2024 13:34 [19:46:33]1206 (1) - 0 [19:46:33]OFD Sender: Remove packet 22138 [19:46:33]ProducePacketName [19:46:33]name=ofd_packets/00022138 [19:46:33]NVStorageDeleteData [19:46:33]Write to MH i2c: 01 00 00 73 3F B2 [19:46:33]Write i2c OK [19:46:33]MH_I2C_Read... [19:46:33]Read from MH i2c: 01 [19:46:33]MH_I2C_Read... [19:46:33]Read from MH i2c: 01 07 00 [19:46:33]MH_I2C_Read... [19:46:33]Read from MH i2c: 01 07 00 73 3F 00 00 00 00 00 0D 0D D3 [19:46:33]RasterBufferAndPrint [19:46:33]line [19:46:33]line [19:46:33]line [19:46:33]line [19:46:33]line [19:46:33]written 0, free lines is 3350 [19:46:33]MH_Cut [19:46:33]Write to MH i2c: D1 01 00 7A 3F 01 8B [19:46:33]Write i2c OK [19:46:33]MH_I2C_Read... [19:46:33]Read from MH i2c: D1 [19:46:33]MH_I2C_Read... [19:46:33]Read from MH i2c: D1 01 00 [19:46:33]MH_I2C_Read... [19:46:33]Read from MH i2c: D1 01 00 7A 3F 00 8A [19:46:33]Write to MH i2c: 01 00 00 7B 3F BA [19:46:33]Write i2c OK [19:46:33]MH_I2C_Read... [19:46:33]OFD Sender: No OFD packet to send [19:46:33]*** Cut start [19:46:33]*** Partial cut [19:46:33]*** CUTSNS_PIN = 1 [19:46:33]*** CUTSNS_PIN = 0 [19:46:34]*** Brake cut motor [19:46:34]Read from MH i2c: 01 [19:46:34]MH_I2C_Read... [19:46:34]*** Stop cut motor [19:46:34]*** Cut end [19:46:34]Read from MH i2c: 01 07 00 [19:46:34]MH_I2C_Read... [19:46:34]Read from MH i2c: 01 07 00 7B 3F 00 00 00 00 00 FF 0F CF [19:46:34]process_action close_receipt done [19:46:34]requested_data is exist [19:46:34]produce_requested_data [19:46:34]requested_item fm.sn is exist - process it [19:46:34]wFMCommunicate request_size=4 [19:46:34]MH_SAM_APDU [19:46:34]CAPDU: 80 11 00 00 [19:46:34]Write to MH i2c: E2 08 00 7C 3F 80 11 00 00 00 00 00 00 35 [19:46:34]Write i2c OK [19:46:34]MH_I2C_Read... [19:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:34]Read from MH i2c: E2 [19:46:34]MH_I2C_Read... [19:46:34]Read from MH i2c: E2 17 00 [19:46:34]MH_I2C_Read... [19:46:34]Read from MH i2c: E2 17 00 7C 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 87 [19:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [19:46:34]wFMCommunicate OK [19:46:34]requested_item fd.num is exist - process it [19:46:34]SAM_PROTO_GetFieldsCounters [19:46:34]wFMCommunicate request_size=4 [19:46:34]MH_SAM_APDU [19:46:34]CAPDU: 80 13 00 00 [19:46:34]Write to MH i2c: E2 08 00 7D 3F 80 13 00 00 00 00 00 00 38 [19:46:34]Write i2c OK [19:46:34]MH_I2C_Read... [19:46:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:34]Read from MH i2c: E2 [19:46:34]MH_I2C_Read... [19:46:34]Read from MH i2c: E2 62 00 [19:46:34]MH_I2C_Read... [19:46:34]Read from MH i2c: E2 62 00 7D 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 7A 56 00 00 0E 04 04 00 45 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 [19:46: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 7A 56 00 00 0E 04 04 00 45 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 [19:46:34]wFMCommunicate OK [19:46:34]SAM_PROTO_GetFieldsCounters done [19:46:34]requested_item shift.num is exist - process it [19:46:34]requested_item shift.opened is exist - process it [19:46:34]req_shift_opened [19:46:34]FM_GetShiftState [19:46:34]SAM_PROTO_GetShiftState [19:46:34]wFMCommunicate request_size=4 [19:46:34]MH_SAM_APDU [19:46:34]CAPDU: 80 13 01 00 [19:46:34]Write to MH i2c: E2 08 00 7E 3F 80 13 01 00 00 00 00 00 3A [19:46:34]Write i2c OK [19:46:34]MH_I2C_Read... [19:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:34]Read from MH i2c: E2 [19:46:34]MH_I2C_Read... [19:46:34]Read from MH i2c: E2 0E 00 [19:46:34]MH_I2C_Read... [19:46:34]Read from MH i2c: E2 0E 00 7E 3F 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 AB [19:46:34]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [19:46:34]wFMCommunicate OK [19:46:34]SAM_PROTO_GetShiftState done [19:46:34]FM_GetShiftState done [19:46:34]req_shift_opened done [19:46:34]requested_item shift.open_date is exist - process it [19:46:34]req_shift_open_date [19:46:34]req_shift_open_date done [19:46:34]produce_requested_data done [19:46:34]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22138,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [19:46:34]process_action_free close_receipt [19:46:34]json_value_free [19:46:34]json_value_free done [19:46:34]process_json_proto returns [19:46:34]Send response to host [19:46:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22138,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [19:46:34]free response buf [19:46:34]execute_script done [19:46:34]execute_script returns [19:46:34]free content buf [19:46:34]Sock 8.Close socket [19:46:34]Sock 8.Thread stoped [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:55]accept exits with 9 [19:46:55]New connection [19:46:55]New thread 3067321700 created [19:46:55]Thread 3067178340 joined [19:46:55]Waiting for new connection... [19:46:55] Sock 9.Parse request [19:46:55]Sock 9.Check first char [19:46:55]Sock 9.First char is OK [19:46:55]request: POST /json_proto HTTP/1.0 [19:46:55]Method: POST [19:46:55]URL: /json_proto [19:46:55]Method is POST - this is cgi request [19:46:55]url: /json_proto [19:46:55]query_string will be loaded in cgi processing [19:46:55]execute_cgi json_proto POST (null) [19:46:55]execute_cgi path=json_proto method=POST [19:46:55]POST find Content-Length [19:46:55]Host: 172.17.35.133:8080 [19:46:55]Content-Length: 616 [19:46:55]Content-Type: application/json [19:46:55] [19:46:55]POST finish read [19:46:55]Found Content-Length = 616 [19:46:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254362", "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" ] } } [19:46:55]execute_script... [19:46:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254362", "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" ] } } [19:46:55]POST & json_proto [19:46:55]process_json_proto [19:46:55]json parsed OK: [19:46:55]protocol is kg_v1.0 [19:46:55]action value=close_receipt [19:46:55]process_action close_receipt [19:46:55]cmd_close_receipt [19:46:55]MH_GetDate [19:46:55]Write to MH i2c: F0 00 00 7F 3F AD [19:46:55]Write i2c OK [19:46:55]MH_I2C_Read... [19:46:55]Read from MH i2c: F0 [19:46:55]MH_I2C_Read... [19:46:55]Read from MH i2c: F0 09 00 [19:46:55]MH_I2C_Read... [19:46:55]Read from MH i2c: F0 09 00 7F 3F 00 3F 9E 6C 66 8C 55 28 65 D3 [19:46:55]GetLastDocTimeStamp 1718394406 [19:46:55]current date 1718394431 [19:46:55]FM_GetShiftState [19:46:55]SAM_PROTO_GetShiftState [19:46:55]wFMCommunicate request_size=4 [19:46:55]MH_SAM_APDU [19:46:55]CAPDU: 80 13 01 00 [19:46:55]Write to MH i2c: E2 08 00 80 3F 80 13 01 00 00 00 00 00 3C [19:46:55]Write i2c OK [19:46:55]MH_I2C_Read... [19:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:55]Read from MH i2c: E2 [19:46:55]MH_I2C_Read... [19:46:55]Read from MH i2c: E2 0E 00 [19:46:55]MH_I2C_Read... [19:46:55]Read from MH i2c: E2 0E 00 80 3F 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 AD [19:46:55]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [19:46:55]wFMCommunicate OK [19:46:55]SAM_PROTO_GetShiftState done [19:46:55]FM_GetShiftState done [19:46:55]opened in 1718324742 [19:46:55]opened+sec_in_day 1718411142 [19:46:55]quantity*price = 14300 [19:46:55]sum+1 = 14301 [19:46:55]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 143.00 袧小袩 1% : 1.26 袧袛小 12% : 15.19 袧邪谢懈褔薪褘屑懈: 143.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 53 14.06.2024 19:47 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22139 肖袩袛: 36261508069274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T194711&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22139&fm=36261508069274&tin=02508201610067®Number=0000000000099755&sum=14300 0 [19:46:56]StoreToDocumentArchive [19:46:56]shift 325 fd 22139 [19:46:56]save to /storage/0325/doc_00022139 [19:46:56]save last doc name /storage/0325/doc_00022139 to /storage/kkm_last_doc_name [19:46:56]save OK [19:46:56]Clear old archive folders... [19:46:56]ProcessDocumentItem done err = 0, tmpTLVsize=268 [19:46:56]tlvbuf is 00255F60 [19:46:56]SAM_PROTO_ClearQueue [19:46:56]wFMCommunicate request_size=4 [19:46:56]MH_SAM_APDU [19:46:56]CAPDU: 80 09 00 00 [19:46:56]Write to MH i2c: E2 08 00 8D 3F 80 09 00 00 00 00 00 00 3E [19:46:56]Write i2c OK [19:46:56]MH_I2C_Read... [19:46:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:56]Read from MH i2c: E2 [19:46:56]MH_I2C_Read... [19:46:56]Read from MH i2c: E2 03 00 [19:46:56]MH_I2C_Read... [19:46:56]Read from MH i2c: E2 03 00 8D 3F 00 90 00 40 [19:46:56]RAPDU: 90 00 [19:46:56]wFMCommunicate OK [19:46:56]SAM_PROTO_ClearQueue done [19:46:56]KKMCreateOFDPacket [19:46:56]OFDProtocolAddRootSTLVToBuf [19:46:56]FM_MakeSignedData [19:46:56]FM_MakeSignedData [19:46:56]SAM_PROTO_SignData [19:46:56]wFMCommunicate request_size=4 [19:46:56]MH_SAM_APDU [19:46:56]CAPDU: 80 0D 01 02 [19:46:56]Write to MH i2c: E2 08 00 8E 3F 80 0D 01 02 00 00 00 00 46 [19:46:56]Write i2c OK [19:46:56]MH_I2C_Read... [19:46:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:56]Read from MH i2c: E2 [19:46:56]MH_I2C_Read... [19:46:56]Read from MH i2c: E2 03 00 [19:46:56]MH_I2C_Read... [19:46:56]Read from MH i2c: E2 03 00 8E 3F 00 90 00 41 [19:46:56]RAPDU: 90 00 [19:46:56]wFMCommunicate OK [19:46:56]wFMCommunicate request_size=255 [19:46:56]MH_SAM_APDU [19:46:56]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 35 00 00 00 F4 03 04 00 3F 9E 6C 66 0E 04 04 00 45 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 [19:46:56]Write to MH i2c: E2 02 01 8F 3F 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 35 00 00 00 F4 03 04 00 3F 9E 6C 66 0E 04 04 00 45 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 3E [19:46:56]Write i2c OK [19:46:56]MH_I2C_Read... [19:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:57]Read from MH i2c: E2 [19:46:57]MH_I2C_Read... [19:46:57]Read from MH i2c: E2 03 00 [19:46:57]MH_I2C_Read... [19:46:57]Read from MH i2c: E2 03 00 8F 3F 00 90 00 42 [19:46:57]RAPDU: 90 00 [19:46:57]wFMCommunicate OK [19:46:57]wFMCommunicate request_size=27 [19:46:57]MH_SAM_APDU [19:46:57]CAPDU: 80 0D 02 02 16 35 33 34 34 10 04 04 00 7B 56 00 00 35 04 06 00 20 FA CA 4E B7 9A [19:46:57]Write to MH i2c: E2 1E 00 90 3F 80 0D 02 02 16 00 35 33 34 34 10 04 04 00 7B 56 00 00 35 04 06 00 20 FA CA 4E B7 9A 00 00 F0 [19:46:57]Write i2c OK [19:46:57]MH_I2C_Read... [19:46:57]Read from MH i2c: E2 [19:46:57]MH_I2C_Read... [19:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:57]Read from MH i2c: E2 03 00 [19:46:57]MH_I2C_Read... [19:46:57]Read from MH i2c: E2 03 00 90 3F 00 90 00 43 [19:46:57]RAPDU: 90 00 [19:46:57]wFMCommunicate OK [19:46:57]wFMCommunicate request_size=4 [19:46:57]MH_SAM_APDU [19:46:57]CAPDU: 80 0D 03 02 [19:46:57]Write to MH i2c: E2 08 00 91 3F 80 0D 03 02 00 00 00 00 4B [19:46:57]Write i2c OK [19:46:57]MH_I2C_Read... [19:46:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:57]Read from MH i2c: E2 [19:46:57]MH_I2C_Read... [19:46:57]Read from MH i2c: E2 0B 00 [19:46:57]MH_I2C_Read... [19:46:57]Read from MH i2c: E2 0B 00 91 3F 00 83 B8 B3 CF 13 8F A3 05 90 00 53 [19:46:57]RAPDU: 83 B8 B3 CF 13 8F A3 05 90 00 [19:46:57]wFMCommunicate OK [19:46:57]SAM_PROTO_SignData done [19:46:57]FM_MakeSignedData done [19:46:57]CreateOFDProtocolMessage [19:46:57]wFMCommunicate request_size=4 [19:46:57]MH_SAM_APDU [19:46:57]CAPDU: 80 11 00 00 [19:46:57]Write to MH i2c: E2 08 00 92 3F 80 11 00 00 00 00 00 00 4B [19:46:57]Write i2c OK [19:46:57]MH_I2C_Read... [19:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:57]Read from MH i2c: E2 [19:46:57]MH_I2C_Read... [19:46:57]Read from MH i2c: E2 17 00 [19:46:57]MH_I2C_Read... [19:46:57]Read from MH i2c: E2 17 00 92 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 9D [19:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [19:46:57]wFMCommunicate OK [19:46:57]CreateOFDProtocolMessage done [19:46:57]OFDSenderStorePacket 22139 [19:46:57]StoreOFDPacket docnum=22139 [19:46:57]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 6A 29 18 01 41 E7 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 35 00 00 00 F4 03 04 00 3F 9E 6C 66 0E 04 04 00 45 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 7B 56 00 00 35 04 06 00 20 FA CA 4E B7 9A 83 B8 B3 CF 13 8F A3 05 [19:46:57]CheckFolder [19:46:57]dirname=/storage/ofd_packets [19:46:57]CheckFolder done [19:46:57]ProducePacketName [19:46:57]name=ofd_packets/00022139 [19:46:57]NVStorageSaveData ofd_packets/00022139 [19:46:57]File name is /storage/ofd_packets/00022139 [19:46:57]Write 318 bytes [19:46:57]NVStorageSaveData done [19:46:57]OFDSenderStorePacket done [19:46:57]KKMCreateOFDPacket done [19:46:57]NVStorageSaveData kkm_last_timestamp [19:46:57]File name is /storage/kkm_last_timestamp [19:46:57]Write 4 bytes [19:46:57]NVStorageSaveData done [19:46:57]ExternCall_PrintAddStr [19:46:57]wPrintStart [19:46:57]Write to MH i2c: 01 00 00 93 3F D2 [19:46:57]Write i2c OK [19:46:57]MH_I2C_Read... [19:46:57]Read from MH i2c: 01 [19:46:57]MH_I2C_Read... [19:46:57]Read from MH i2c: 01 07 00 [19:46:57]MH_I2C_Read... [19:46:57]Read from MH i2c: 01 07 00 93 3F 00 00 00 00 00 FF 0F E7 [19:46:57]RasterBufferAndPrint [19:46:57]line 小褔械褌 N : (3)254362 [19:46:57]line 袠袧袧: 02508201610067 [19:46:57]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:46:57]line 袩袪袨袛袗袞袗 [19:46:57]line 孝芯胁邪褉: 4640030091584 [19:46:57]line 小懈谐邪褉械褌褘 Esse Gold [19:46:57]line 1.000 * 143.00 [19:46:57]line = 143.00 [19:46:57]line 袧袛小 12% 袧小袩 1% [19:46:57]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:46:57]line 袠孝袨袚袨: 143.00 [19:46:57]line 袧小袩 1% : 1.26 [19:46:57]line 袧袛小 12% : 15.19 [19:46:57]line 袧邪谢懈褔薪褘屑懈: 143.00 [19:46:57]line 袘械蟹薪邪谢.: 0.00 [19:46:57]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [19:46:57]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [19:46:57]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:46:57]line 效械泻 53 14.06.2024 19:47 [19:46:57]line 小屑械薪邪: 325 肖肖袛: 1.0 [19:46:57]line 袟袧袦: 0300000200 [19:46:57]line 袪袧袦: 0000000000099755 [19:46:57]line 袙械褉褋懈褟 袣袣袦: 001 [19:46:57]line 肖袦: 0000000000965344 [19:46:57]line 肖袛: 22139 [19:46:57]line 肖袩袛: 36261508069274 [19:46:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T194711&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22139&fm=36261508069274&tin=02508201610067®Number=0000000000099755&sum=14300 [19:46:57]line 0 [19:46:57]OFD Sender: Processing packet 22139 [packets to send 5, broken 4] [19:46:57]ProducePacketName [19:46:57]name=ofd_packets/00022139 [19:46:57]OFD Sender: To server: 嚂鰌G, [19:46:57]CommunicateWithHost lk.salyk.kg:30040 [19:46:57]ConnectInit lk.salyk.kg [19:46:57]written 0, free lines is 4095 [19:46:57]Connected sock=8 [19:46:57]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 6A 29 18 01 41 E7 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 35 00 00 00 F4 03 04 00 3F 9E 6C 66 0E 04 04 00 45 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 7B 56 00 00 35 04 06 00 20 FA CA 4E B7 9A 83 B8 B3 CF 13 8F A3 05 [19:46:58]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 A4 0D 47 00 EB 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 7B 56 00 00 F4 03 04 00 FE 46 6C 66 B6 04 01 00 00 8B 6C 37 CD A0 AE 97 A2 [19:46:58]CommunicateWithHost err = 0 [19:46:58]CheckOFDResponse [19:46:58]1017 (14) - 77093643461234 [19:46:58]1041 (16) - 0000000000965344 [19:46:58]1040 (4) - 22139 [19:46:58]1012 (4) - 14.06.2024 13:34 [19:46:58]1206 (1) - 0 [19:46:58]OFD Sender: Remove packet 22139 [19:46:58]ProducePacketName [19:46:58]name=ofd_packets/00022139 [19:46:58]NVStorageDeleteData [19:46:58]Write to MH i2c: 01 00 00 BB 3F FA [19:46:58]Write i2c OK [19:46:58]MH_I2C_Read... [19:46:58]Read from MH i2c: 01 [19:46:58]MH_I2C_Read... [19:46:58]Read from MH i2c: 01 07 00 [19:46:58]MH_I2C_Read... [19:46:58]Read from MH i2c: 01 07 00 BB 3F 00 00 00 00 00 12 0D 20 [19:46:58]RasterBufferAndPrint [19:46:58]line [19:46:58]line [19:46:58]line [19:46:58]line [19:46:58]line [19:46:58]written 0, free lines is 3354 [19:46:58]MH_Cut [19:46:58]Write to MH i2c: D1 01 00 C2 3F 01 D3 [19:46:58]Write i2c OK [19:46:58]MH_I2C_Read... [19:46:58]Read from MH i2c: D1 [19:46:58]MH_I2C_Read... [19:46:58]Read from MH i2c: D1 01 00 [19:46:58]MH_I2C_Read... [19:46:58]Read from MH i2c: D1 01 00 C2 3F 00 D2 [19:46:58]Write to MH i2c: 01 00 00 C3 3F 02 [19:46:58]Write i2c OK [19:46:58]MH_I2C_Read... [19:46:58]OFD Sender: No OFD packet to send [19:46:58]*** Cut start [19:46:58]*** Partial cut [19:46:58]*** CUTSNS_PIN = 1 [19:46:58]*** CUTSNS_PIN = 0 [19:46:59]*** Brake cut motor [19:46:59]Read from MH i2c: 01 [19:46:59]MH_I2C_Read... [19:46:59]*** Stop cut motor [19:46:59]*** Cut end [19:46:59]Read from MH i2c: 01 07 00 [19:46:59]MH_I2C_Read... [19:46:59]Read from MH i2c: 01 07 00 C3 3F 00 00 00 00 00 FF 0F 17 [19:46:59]process_action close_receipt done [19:46:59]requested_data is exist [19:46:59]produce_requested_data [19:46:59]requested_item fm.sn is exist - process it [19:46:59]wFMCommunicate request_size=4 [19:46:59]MH_SAM_APDU [19:46:59]CAPDU: 80 11 00 00 [19:46:59]Write to MH i2c: E2 08 00 C4 3F 80 11 00 00 00 00 00 00 7D [19:46:59]Write i2c OK [19:46:59]MH_I2C_Read... [19:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:59]Read from MH i2c: E2 [19:46:59]MH_I2C_Read... [19:46:59]Read from MH i2c: E2 17 00 [19:46:59]MH_I2C_Read... [19:46:59]Read from MH i2c: E2 17 00 C4 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 CF [19:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [19:46:59]wFMCommunicate OK [19:46:59]requested_item fd.num is exist - process it [19:46:59]SAM_PROTO_GetFieldsCounters [19:46:59]wFMCommunicate request_size=4 [19:46:59]MH_SAM_APDU [19:46:59]CAPDU: 80 13 00 00 [19:46:59]Write to MH i2c: E2 08 00 C5 3F 80 13 00 00 00 00 00 00 80 [19:46:59]Write i2c OK [19:46:59]MH_I2C_Read... [19:46:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:59]Read from MH i2c: E2 [19:46:59]MH_I2C_Read... [19:46:59]Read from MH i2c: E2 62 00 [19:46:59]MH_I2C_Read... [19:46:59]Read from MH i2c: E2 62 00 C5 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 7B 56 00 00 0E 04 04 00 45 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 60 [19:46:59]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 7B 56 00 00 0E 04 04 00 45 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 [19:46:59]wFMCommunicate OK [19:46:59]SAM_PROTO_GetFieldsCounters done [19:46:59]requested_item shift.num is exist - process it [19:46:59]requested_item shift.opened is exist - process it [19:46:59]req_shift_opened [19:46:59]FM_GetShiftState [19:46:59]SAM_PROTO_GetShiftState [19:46:59]wFMCommunicate request_size=4 [19:46:59]MH_SAM_APDU [19:46:59]CAPDU: 80 13 01 00 [19:46:59]Write to MH i2c: E2 08 00 C6 3F 80 13 01 00 00 00 00 00 82 [19:46:59]Write i2c OK [19:46:59]MH_I2C_Read... [19:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:59]Read from MH i2c: E2 [19:46:59]MH_I2C_Read... [19:46:59]Read from MH i2c: E2 0E 00 [19:46:59]MH_I2C_Read... [19:46:59]Read from MH i2c: E2 0E 00 C6 3F 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 F3 [19:46:59]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [19:46:59]wFMCommunicate OK [19:46:59]SAM_PROTO_GetShiftState done [19:46:59]FM_GetShiftState done [19:46:59]req_shift_opened done [19:46:59]requested_item shift.open_date is exist - process it [19:46:59]req_shift_open_date [19:46:59]req_shift_open_date done [19:46:59]produce_requested_data done [19:46:59]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22139,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [19:46:59]process_action_free close_receipt [19:46:59]json_value_free [19:46:59]json_value_free done [19:46:59]process_json_proto returns [19:46:59]Send response to host [19:46:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22139,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [19:46:59]free response buf [19:46:59]execute_script done [19:46:59]execute_script returns [19:46:59]free content buf [19:46:59]Sock 9.Close socket [19:46:59]Sock 9.Thread stoped [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:23]OFD Sender: No OFD packet to send [19:55:28]OFD Sender: No OFD packet to send [19:55:33]OFD Sender: No OFD packet to send [19:55:38]OFD Sender: No OFD packet to send [19:55:43]OFD Sender: No OFD packet to send [19:55:48]OFD Sender: No OFD packet to send [19:55:53]OFD Sender: No OFD packet to send [19:55:58]OFD Sender: No OFD packet to send [19:56:03]OFD Sender: No OFD packet to send [19:56:08]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:29]OFD Sender: No OFD packet to send [20:03:34]OFD Sender: No OFD packet to send [20:03:39]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:59]OFD Sender: No OFD packet to send [20:04:04]OFD Sender: No OFD packet to send [20:04:09]OFD Sender: No OFD packet to send [20:04:14]OFD Sender: No OFD packet to send [20:04:19]OFD Sender: No OFD packet to send [20:04:24]OFD Sender: No OFD packet to send [20:04:29]OFD Sender: No OFD packet to send [20:04:34]OFD Sender: No OFD packet to send [20:04:39]OFD Sender: No OFD packet to send [20:04:44]OFD Sender: No OFD packet to send [20:04:49]OFD Sender: No OFD packet to send [20:04:54]OFD Sender: No OFD packet to send [20:04:59]OFD Sender: No OFD packet to send [20:05:04]OFD Sender: No OFD packet to send [20:05:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]OFD Sender: No OFD packet to send [20:05:34]OFD Sender: No OFD packet to send [20:05:39]OFD Sender: No OFD packet to send [20:05:44]OFD Sender: No OFD packet to send [20:05:49]OFD Sender: No OFD packet to send [20:05:49]accept exits with 10 [20:05:49]New connection [20:05:49]New thread 3067178340 created [20:05:49]Thread 3067321700 joined [20:05:49]Waiting for new connection... [20:05:49] Sock 10.Parse request [20:05:49]Sock 10.Check first char [20:05:49]Sock 10.First char is OK [20:05:49]request: POST /json_proto HTTP/1.0 [20:05:49]Method: POST [20:05:49]URL: /json_proto [20:05:49]Method is POST - this is cgi request [20:05:49]url: /json_proto [20:05:49]query_string will be loaded in cgi processing [20:05:49]execute_cgi json_proto POST (null) [20:05:49]execute_cgi path=json_proto method=POST [20:05:49]POST find Content-Length [20:05:49]Host: 172.17.35.133:8080 [20:05:49]Content-Length: 708 [20:05:49]Content-Type: application/json [20:05:49] [20:05:49]POST finish read [20:05:49]Found Content-Length = 708 [20:05:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254363", "tax_sys" : 0, "items" : [ { "code": "4600338007564", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043C\u0443\u043B\u044C\u0442\u0438\u0444\u0440\u0443\u043A\u0442 0,2\u043B", "price" : 65.00, "quantity" : 3.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:49]execute_script... [20:05: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)254363", "tax_sys" : 0, "items" : [ { "code": "4600338007564", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043C\u0443\u043B\u044C\u0442\u0438\u0444\u0440\u0443\u043A\u0442 0,2\u043B", "price" : 65.00, "quantity" : 3.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:49]POST & json_proto [20:05:49]process_json_proto [20:05:49]json parsed OK: [20:05:49]protocol is kg_v1.0 [20:05:49]action value=close_receipt [20:05:49]process_action close_receipt [20:05:49]cmd_close_receipt [20:05:49]MH_GetDate [20:05:49]Write to MH i2c: F0 00 00 C7 3F F5 [20:05:49]Write i2c OK [20:05:49]MH_I2C_Read... [20:05:49]Read from MH i2c: F0 [20:05:49]MH_I2C_Read... [20:05:49]Read from MH i2c: F0 09 00 [20:05:49]MH_I2C_Read... [20:05:49]Read from MH i2c: F0 09 00 C7 3F 00 AD A2 6C 66 8C 55 28 65 8D [20:05:49]GetLastDocTimeStamp 1718394431 [20:05:49]current date 1718395565 [20:05:49]FM_GetShiftState [20:05:49]SAM_PROTO_GetShiftState [20:05:49]wFMCommunicate request_size=4 [20:05:49]MH_SAM_APDU [20:05:49]CAPDU: 80 13 01 00 [20:05:49]Write to MH i2c: E2 08 00 C8 3F 80 13 01 00 00 00 00 00 84 [20:05:49]Write i2c OK [20:05:49]MH_I2C_Read... [20:05:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:49]Read from MH i2c: E2 [20:05:49]MH_I2C_Read... [20:05:49]Read from MH i2c: E2 0E 00 [20:05:49]MH_I2C_Read... [20:05:49]Read from MH i2c: E2 0E 00 C8 3F 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 F5 [20:05:49]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [20:05:49]wFMCommunicate OK [20:05:49]SAM_PROTO_GetShiftState done [20:05:49]FM_GetShiftState done [20:05:49]opened in 1718324742 [20:05:49]opened+sec_in_day 1718411142 [20:05:49]quantity*price = 19500 [20:05:49]sum+1 = 19501 [20:05:49]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 195.00 袧小袩 1% : 1.73 袧袛小 12% : 20.71 袧邪谢懈褔薪褘屑懈: 195.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 54 14.06.2024 20:06 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22140 肖袩袛: 275026488969363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T200605&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22140&fm=275026488969363&tin=02508201610067®Number=0000000000099755&sum=19500 0 [20:05:50]StoreToDocumentArchive [20:05:50]shift 325 fd 22140 [20:05:50]save to /storage/0325/doc_00022140 [20:05:50]save last doc name /storage/0325/doc_00022140 to /storage/kkm_last_doc_name [20:05:50]save OK [20:05:50]Clear old archive folders... [20:05:50]ProcessDocumentItem done err = 0, tmpTLVsize=297 [20:05:50]tlvbuf is B6FB2810 [20:05:50]SAM_PROTO_ClearQueue [20:05:50]wFMCommunicate request_size=4 [20:05:50]MH_SAM_APDU [20:05:50]CAPDU: 80 09 00 00 [20:05:50]Write to MH i2c: E2 08 00 D5 3F 80 09 00 00 00 00 00 00 86 [20:05:50]Write i2c OK [20:05:50]MH_I2C_Read... [20:05:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:50]Read from MH i2c: E2 [20:05:50]MH_I2C_Read... [20:05:50]Read from MH i2c: E2 03 00 [20:05:50]MH_I2C_Read... [20:05:50]Read from MH i2c: E2 03 00 D5 3F 00 90 00 88 [20:05:50]RAPDU: 90 00 [20:05:50]wFMCommunicate OK [20:05:50]SAM_PROTO_ClearQueue done [20:05:50]KKMCreateOFDPacket [20:05:50]OFDProtocolAddRootSTLVToBuf [20:05:50]FM_MakeSignedData [20:05:50]FM_MakeSignedData [20:05:50]SAM_PROTO_SignData [20:05:50]wFMCommunicate request_size=4 [20:05:50]MH_SAM_APDU [20:05:50]CAPDU: 80 0D 01 02 [20:05:50]Write to MH i2c: E2 08 00 D6 3F 80 0D 01 02 00 00 00 00 8E [20:05:50]Write i2c OK [20:05:50]MH_I2C_Read... [20:05:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:50]Read from MH i2c: E2 [20:05:50]MH_I2C_Read... [20:05:50]Read from MH i2c: E2 03 00 [20:05:50]MH_I2C_Read... [20:05:50]Read from MH i2c: E2 03 00 D6 3F 00 90 00 89 [20:05:50]RAPDU: 90 00 [20:05:50]wFMCommunicate OK [20:05:50]wFMCommunicate request_size=255 [20:05:50]MH_SAM_APDU [20:05:50]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AD A2 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [20:05:50]Write to MH i2c: E2 02 01 D7 3F 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AD A2 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 AD [20:05:50]Write i2c OK [20:05:50]MH_I2C_Read... [20:05:51]Read from MH i2c: E2 [20:05:51]MH_I2C_Read... [20:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:51]Read from MH i2c: E2 03 00 [20:05:51]MH_I2C_Read... [20:05:51]Read from MH i2c: E2 03 00 D7 3F 00 90 00 8A [20:05:51]RAPDU: 90 00 [20:05:51]wFMCommunicate OK [20:05:51]wFMCommunicate request_size=56 [20:05:51]MH_SAM_APDU [20:05:51]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 7C 56 00 00 35 04 06 00 FA 22 98 2D C8 93 [20:05:51]Write to MH i2c: E2 3B 00 D8 3F 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 7C 56 00 00 35 04 06 00 FA 22 98 2D C8 93 00 00 33 [20:05:51]Write i2c OK [20:05:51]MH_I2C_Read... [20:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:51]Read from MH i2c: E2 [20:05:51]MH_I2C_Read... [20:05:51]Read from MH i2c: E2 03 00 [20:05:51]MH_I2C_Read... [20:05:51]Read from MH i2c: E2 03 00 D8 3F 00 90 00 8B [20:05:51]RAPDU: 90 00 [20:05:51]wFMCommunicate OK [20:05:51]wFMCommunicate request_size=4 [20:05:51]MH_SAM_APDU [20:05:51]CAPDU: 80 0D 03 02 [20:05:51]Write to MH i2c: E2 08 00 D9 3F 80 0D 03 02 00 00 00 00 93 [20:05:51]Write i2c OK [20:05:51]MH_I2C_Read... [20:05:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:51]Read from MH i2c: E2 [20:05:51]MH_I2C_Read... [20:05:51]Read from MH i2c: E2 0B 00 [20:05:51]MH_I2C_Read... [20:05:51]Read from MH i2c: E2 0B 00 D9 3F 00 C2 08 E2 E5 73 E8 7A 57 90 00 51 [20:05:51]RAPDU: C2 08 E2 E5 73 E8 7A 57 90 00 [20:05:51]wFMCommunicate OK [20:05:51]SAM_PROTO_SignData done [20:05:51]FM_MakeSignedData done [20:05:51]CreateOFDProtocolMessage [20:05:51]wFMCommunicate request_size=4 [20:05:51]MH_SAM_APDU [20:05:51]CAPDU: 80 11 00 00 [20:05:51]Write to MH i2c: E2 08 00 DA 3F 80 11 00 00 00 00 00 00 93 [20:05:51]Write i2c OK [20:05:51]MH_I2C_Read... [20:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:51]Read from MH i2c: E2 [20:05:51]MH_I2C_Read... [20:05:51]Read from MH i2c: E2 17 00 [20:05:51]MH_I2C_Read... [20:05:51]Read from MH i2c: E2 17 00 DA 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 E5 [20:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [20:05:51]wFMCommunicate OK [20:05:51]CreateOFDProtocolMessage done [20:05:51]OFDSenderStorePacket 22140 [20:05:51]StoreOFDPacket docnum=22140 [20:05: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 3D 01 00 00 85 24 35 01 D8 7F 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AD A2 6C 66 0E 04 04 00 45 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 7C 56 00 00 35 04 06 00 FA 22 98 2D C8 93 C2 08 E2 E5 73 E8 7A 57 [20:05:51]CheckFolder [20:05:51]dirname=/storage/ofd_packets [20:05:51]CheckFolder done [20:05:51]ProducePacketName [20:05:51]name=ofd_packets/00022140 [20:05:51]NVStorageSaveData ofd_packets/00022140 [20:05:51]File name is /storage/ofd_packets/00022140 [20:05:51]Write 347 bytes [20:05:51]NVStorageSaveData done [20:05:51]OFDSenderStorePacket done [20:05:51]KKMCreateOFDPacket done [20:05:51]NVStorageSaveData kkm_last_timestamp [20:05:51]File name is /storage/kkm_last_timestamp [20:05:51]Write 4 bytes [20:05:51]NVStorageSaveData done [20:05:51]ExternCall_PrintAddStr [20:05:51]wPrintStart [20:05:51]Write to MH i2c: 01 00 00 DB 3F 1A [20:05:51]Write i2c OK [20:05:51]MH_I2C_Read... [20:05:51]Read from MH i2c: 01 [20:05:51]MH_I2C_Read... [20:05:51]Read from MH i2c: 01 07 00 [20:05:51]MH_I2C_Read... [20:05:51]Read from MH i2c: 01 07 00 DB 3F 00 00 00 00 00 FF 0F 2F [20:05:51]RasterBufferAndPrint [20:05:51]line 小褔械褌 N : (3)254363 [20:05:51]line 袠袧袧: 02508201610067 [20:05:51]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:05:51]line 袩袪袨袛袗袞袗 [20:05:51]line 孝芯胁邪褉: 4600338007564 [20:05:51]line 小芯泻 肖褉褍褌芯 袧携袧携 屑褍谢褜褌懈褎褉褍泻褌 0,2谢 [20:05:51]line 3.000 * 65.00 [20:05:51]line = 195.00 [20:05:51]line 袧袛小 12% 袧小袩 1% [20:05:51]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:05:51]line 袠孝袨袚袨: 195.00 [20:05:51]line 袧小袩 1% : 1.73 [20:05:51]line 袧袛小 12% : 20.71 [20:05:51]line 袧邪谢懈褔薪褘屑懈: 195.00 [20:05:51]line 袘械蟹薪邪谢.: 0.00 [20:05:51]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [20:05:51]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [20:05:51]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:05:51]line 效械泻 54 14.06.2024 20:06 [20:05:51]line 小屑械薪邪: 325 肖肖袛: 1.0 [20:05:51]line 袟袧袦: 0300000200 [20:05:51]line 袪袧袦: 0000000000099755 [20:05:51]line 袙械褉褋懈褟 袣袣袦: 001 [20:05:51]line 肖袦: 0000000000965344 [20:05:51]line 肖袛: 22140 [20:05:51]line 肖袩袛: 275026488969363 [20:05:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T200605&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22140&fm=275026488969363&tin=02508201610067®Number=0000000000099755&sum=19500 [20:05:51]line 0 [20:05:51]OFD Sender: Processing packet 22140 [packets to send 5, broken 4] [20:05:51]ProducePacketName [20:05:51]name=ofd_packets/00022140 [20:05:51]OFD Sender: To server: 嚂鰌G, [20:05:51]CommunicateWithHost lk.salyk.kg:30040 [20:05:51]ConnectInit lk.salyk.kg [20:05:51]written 0, free lines is 4095 [20:05:51]Connected sock=9 [20:05: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 3D 01 00 00 85 24 35 01 D8 7F 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AD A2 6C 66 0E 04 04 00 45 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 7C 56 00 00 35 04 06 00 FA 22 98 2D C8 93 C2 08 E2 E5 73 E8 7A 57 [20:05: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 A5 44 47 00 3C EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 7C 56 00 00 F4 03 04 00 6C 4B 6C 66 B6 04 01 00 00 23 47 76 A4 FC 92 36 15 [20:05:52]CommunicateWithHost err = 0 [20:05:52]CheckOFDResponse [20:05:52]1017 (14) - 77093643461234 [20:05:52]1041 (16) - 0000000000965344 [20:05:52]1040 (4) - 22140 [20:05:52]1012 (4) - 14.06.2024 13:53 [20:05:52]1206 (1) - 0 [20:05:52]OFD Sender: Remove packet 22140 [20:05:52]ProducePacketName [20:05:52]name=ofd_packets/00022140 [20:05:52]NVStorageDeleteData [20:05:52]Write to MH i2c: 01 00 00 04 40 44 [20:05:52]Write i2c OK [20:05:52]MH_I2C_Read... [20:05:52]Read from MH i2c: 01 [20:05:52]MH_I2C_Read... [20:05:52]Read from MH i2c: 01 07 00 [20:05:52]MH_I2C_Read... [20:05:52]Read from MH i2c: 01 07 00 04 40 00 00 00 00 00 08 0D 60 [20:05:52]RasterBufferAndPrint [20:05:52]line [20:05:52]line [20:05:52]line [20:05:52]line [20:05:52]line [20:05:52]written 0, free lines is 3345 [20:05:52]MH_Cut [20:05:52]Write to MH i2c: D1 01 00 0B 40 01 1D [20:05:52]Write i2c OK [20:05:52]MH_I2C_Read... [20:05:52]Read from MH i2c: D1 [20:05:52]MH_I2C_Read... [20:05:52]Read from MH i2c: D1 01 00 [20:05:52]MH_I2C_Read... [20:05:52]Read from MH i2c: D1 01 00 0B 40 00 1C [20:05:52]Write to MH i2c: 01 00 00 0C 40 4C [20:05:52]Write i2c OK [20:05:52]MH_I2C_Read... [20:05:52]OFD Sender: No OFD packet to send [20:05:52]*** Cut start [20:05:52]*** Partial cut [20:05:52]*** CUTSNS_PIN = 1 [20:05:52]*** CUTSNS_PIN = 0 [20:05:53]*** Brake cut motor [20:05:53]Read from MH i2c: 01 [20:05:53]MH_I2C_Read... [20:05:53]*** Stop cut motor [20:05:53]*** Cut end [20:05:53]Read from MH i2c: 01 07 00 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: 01 07 00 0C 40 00 00 00 00 00 FF 0F 61 [20:05:53]process_action close_receipt done [20:05:53]requested_data is exist [20:05:53]produce_requested_data [20:05:53]requested_item fm.sn is exist - process it [20:05:53]wFMCommunicate request_size=4 [20:05:53]MH_SAM_APDU [20:05:53]CAPDU: 80 11 00 00 [20:05:53]Write to MH i2c: E2 08 00 0D 40 80 11 00 00 00 00 00 00 C7 [20:05:53]Write i2c OK [20:05:53]MH_I2C_Read... [20:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:53]Read from MH i2c: E2 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: E2 17 00 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: E2 17 00 0D 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 19 [20:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [20:05:53]wFMCommunicate OK [20:05:53]requested_item fd.num is exist - process it [20:05:53]SAM_PROTO_GetFieldsCounters [20:05:53]wFMCommunicate request_size=4 [20:05:53]MH_SAM_APDU [20:05:53]CAPDU: 80 13 00 00 [20:05:53]Write to MH i2c: E2 08 00 0E 40 80 13 00 00 00 00 00 00 CA [20:05:53]Write i2c OK [20:05:53]MH_I2C_Read... [20:05:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:53]Read from MH i2c: E2 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: E2 62 00 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: E2 62 00 0E 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 7C 56 00 00 0E 04 04 00 45 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 AE [20:05: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 7C 56 00 00 0E 04 04 00 45 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 [20:05:53]wFMCommunicate OK [20:05:53]SAM_PROTO_GetFieldsCounters done [20:05:53]requested_item shift.num is exist - process it [20:05:53]requested_item shift.opened is exist - process it [20:05:53]req_shift_opened [20:05:53]FM_GetShiftState [20:05:53]SAM_PROTO_GetShiftState [20:05:53]wFMCommunicate request_size=4 [20:05:53]MH_SAM_APDU [20:05:53]CAPDU: 80 13 01 00 [20:05:53]Write to MH i2c: E2 08 00 0F 40 80 13 01 00 00 00 00 00 CC [20:05:53]Write i2c OK [20:05:53]MH_I2C_Read... [20:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:53]Read from MH i2c: E2 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: E2 0E 00 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: E2 0E 00 0F 40 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 3D [20:05:53]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [20:05:53]wFMCommunicate OK [20:05:53]SAM_PROTO_GetShiftState done [20:05:53]FM_GetShiftState done [20:05:53]req_shift_opened done [20:05:53]requested_item shift.open_date is exist - process it [20:05:53]req_shift_open_date [20:05:53]req_shift_open_date done [20:05:53]produce_requested_data done [20:05:53]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22140,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [20:05:53]process_action_free close_receipt [20:05:53]json_value_free [20:05:53]json_value_free done [20:05:53]process_json_proto returns [20:05:53]Send response to host [20:05:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22140,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [20:05:53]free response buf [20:05:53]execute_script done [20:05:53]execute_script returns [20:05:53]free content buf [20:05:53]Sock 10.Close socket [20:05:53]Sock 10.Thread stoped [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:27]OFD Sender: No OFD packet to send [20:12:32]OFD Sender: No OFD packet to send [20:12:37]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:02]OFD Sender: No OFD packet to send [20:13:07]OFD Sender: No OFD packet to send [20:13:12]OFD Sender: No OFD packet to send [20:13:17]OFD Sender: No OFD packet to send [20:13:22]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:47]OFD Sender: No OFD packet to send [20:13:52]OFD Sender: No OFD packet to send [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:32]OFD Sender: No OFD packet to send [20:14:37]OFD Sender: No OFD packet to send [20:14:42]OFD Sender: No OFD packet to send [20:14:47]OFD Sender: No OFD packet to send [20:14:52]OFD Sender: No OFD packet to send [20:14:57]OFD Sender: No OFD packet to send [20:15:02]OFD Sender: No OFD packet to send [20:15:07]OFD Sender: No OFD packet to send [20:15:12]OFD Sender: No OFD packet to send [20:15:17]OFD Sender: No OFD packet to send [20:15:22]OFD Sender: No OFD packet to send [20:15:27]OFD Sender: No OFD packet to send [20:15:32]OFD Sender: No OFD packet to send [20:15:37]OFD Sender: No OFD packet to send [20:15:42]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26:03]OFD Sender: No OFD packet to send [20:26:08]OFD Sender: No OFD packet to send [20:26:13]OFD Sender: No OFD packet to send [20:26:18]OFD Sender: No OFD packet to send [20:26:23]OFD Sender: No OFD packet to send [20:26:28]OFD Sender: No OFD packet to send [20:26:33]OFD Sender: No OFD packet to send [20:26:38]OFD Sender: No OFD packet to send [20:26:43]OFD Sender: No OFD packet to send [20:26:48]OFD Sender: No OFD packet to send [20:26:53]OFD Sender: No OFD packet to send [20:26:58]OFD Sender: No OFD packet to send [20:27:03]OFD Sender: No OFD packet to send [20:27:08]OFD Sender: No OFD packet to send [20:27:13]OFD Sender: No OFD packet to send [20:27:18]OFD Sender: No OFD packet to send [20:27:23]OFD Sender: No OFD packet to send [20:27:28]OFD Sender: No OFD packet to send [20:27:33]OFD Sender: No OFD packet to send [20:27:38]OFD Sender: No OFD packet to send [20:27:43]OFD Sender: No OFD packet to send [20:27:48]OFD Sender: No OFD packet to send [20:27:53]OFD Sender: No OFD packet to send [20:27:58]OFD Sender: No OFD packet to send [20:28:03]OFD Sender: No OFD packet to send [20:28:08]OFD Sender: No OFD packet to send [20:28:13]OFD Sender: No OFD packet to send [20:28:18]OFD Sender: No OFD packet to send [20:28:23]OFD Sender: No OFD packet to send [20:28:28]OFD Sender: No OFD packet to send [20:28:33]OFD Sender: No OFD packet to send [20:28:38]OFD Sender: No OFD packet to send [20:28:43]OFD Sender: No OFD packet to send [20:28:48]OFD Sender: No OFD packet to send [20:28:53]OFD Sender: No OFD packet to send [20:28:58]OFD Sender: No OFD packet to send [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30:18]OFD Sender: No OFD packet to send [20:30:23]OFD Sender: No OFD packet to send [20:30:28]OFD Sender: No OFD packet to send [20:30:33]OFD Sender: No OFD packet to send [20:30:38]OFD Sender: No OFD packet to send [20:30:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:43]OFD Sender: No OFD packet to send [20:34:48]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:58]OFD Sender: No OFD packet to send [20:35:03]OFD Sender: No OFD packet to send [20:35:08]OFD Sender: No OFD packet to send [20:35:13]OFD Sender: No OFD packet to send [20:35:18]OFD Sender: No OFD packet to send [20:35:23]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:33]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:38]OFD Sender: No OFD packet to send [20:36:43]OFD Sender: No OFD packet to send [20:36:48]OFD Sender: No OFD packet to send [20:36:53]OFD Sender: No OFD packet to send [20:36:58]OFD Sender: No OFD packet to send [20:37:03]OFD Sender: No OFD packet to send [20:37:08]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:47]accept exits with 8 [20:37:47]New connection [20:37:47]New thread 3067321700 created [20:37:47]Thread 3067178340 joined [20:37:47]Waiting for new connection... [20:37:47] Sock 8.Parse request [20:37:47]Sock 8.Check first char [20:37:47]Sock 8.First char is OK [20:37:47]request: POST /json_proto HTTP/1.0 [20:37:47]Method: POST [20:37:47]URL: /json_proto [20:37:47]Method is POST - this is cgi request [20:37:47]url: /json_proto [20:37:47]query_string will be loaded in cgi processing [20:37:47]execute_cgi json_proto POST (null) [20:37:47]execute_cgi path=json_proto method=POST [20:37:47]POST find Content-Length [20:37:47]Host: 172.17.35.133:8080 [20:37:47]Content-Length: 626 [20:37:47]Content-Type: application/json [20:37:47] [20:37:47]POST finish read [20:37:47]Found Content-Length = 626 [20:37:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254364", "tax_sys" : 0, "items" : [ { "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:47]execute_script... [20:37: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)254364", "tax_sys" : 0, "items" : [ { "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:47]POST & json_proto [20:37:47]process_json_proto [20:37:47]json parsed OK: [20:37:47]protocol is kg_v1.0 [20:37:47]action value=close_receipt [20:37:47]process_action close_receipt [20:37:47]cmd_close_receipt [20:37:47]MH_GetDate [20:37:47]Write to MH i2c: F0 00 00 10 40 3F [20:37:47]Write i2c OK [20:37:47]MH_I2C_Read... [20:37:47]Read from MH i2c: F0 [20:37:47]MH_I2C_Read... [20:37:47]Read from MH i2c: F0 09 00 [20:37:47]MH_I2C_Read... [20:37:47]Read from MH i2c: F0 09 00 10 40 00 2B AA 6C 66 8C 55 28 65 5D [20:37:47]GetLastDocTimeStamp 1718395565 [20:37:47]current date 1718397483 [20:37:47]FM_GetShiftState [20:37:47]SAM_PROTO_GetShiftState [20:37:47]wFMCommunicate request_size=4 [20:37:47]MH_SAM_APDU [20:37:47]CAPDU: 80 13 01 00 [20:37:47]Write to MH i2c: E2 08 00 11 40 80 13 01 00 00 00 00 00 CE [20:37:47]Write i2c OK [20:37:47]MH_I2C_Read... [20:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:47]Read from MH i2c: E2 [20:37:47]MH_I2C_Read... [20:37:47]Read from MH i2c: E2 0E 00 [20:37:47]MH_I2C_Read... [20:37:47]Read from MH i2c: E2 0E 00 11 40 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 3F [20:37:47]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [20:37:47]wFMCommunicate OK [20:37:47]SAM_PROTO_GetShiftState done [20:37:47]FM_GetShiftState done [20:37:47]opened in 1718324742 [20:37:47]opened+sec_in_day 1718411142 [20:37:47]quantity*price = 1000 [20:37:47]sum+1 = 1001 [20:37:47]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 10.00 袧小袩 1% : 0.09 袧袛小 12% : 1.06 袧邪谢懈褔薪褘屑懈: 10.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 55 14.06.2024 20:38 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22141 肖袩袛: 123484770457000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T203803&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22141&fm=123484770457000&tin=02508201610067®Number=0000000000099755&sum=1000 0 [20:37:48]StoreToDocumentArchive [20:37:48]shift 325 fd 22141 [20:37:48]save to /storage/0325/doc_00022141 [20:37:48]save last doc name /storage/0325/doc_00022141 to /storage/kkm_last_doc_name [20:37:48]save OK [20:37:48]Clear old archive folders... [20:37:48]ProcessDocumentItem done err = 0, tmpTLVsize=273 [20:37:48]tlvbuf is 0037A520 [20:37:48]SAM_PROTO_ClearQueue [20:37:48]wFMCommunicate request_size=4 [20:37:48]MH_SAM_APDU [20:37:48]CAPDU: 80 09 00 00 [20:37:48]Write to MH i2c: E2 08 00 1E 40 80 09 00 00 00 00 00 00 D0 [20:37:48]Write i2c OK [20:37:48]MH_I2C_Read... [20:37:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:37:48]Read from MH i2c: E2 [20:37:48]MH_I2C_Read... [20:37:48]Read from MH i2c: E2 03 00 [20:37:48]MH_I2C_Read... [20:37:48]Read from MH i2c: E2 03 00 1E 40 00 90 00 D2 [20:37:48]RAPDU: 90 00 [20:37:48]wFMCommunicate OK [20:37:48]SAM_PROTO_ClearQueue done [20:37:48]KKMCreateOFDPacket [20:37:48]OFDProtocolAddRootSTLVToBuf [20:37:48]FM_MakeSignedData [20:37:48]FM_MakeSignedData [20:37:48]SAM_PROTO_SignData [20:37:48]wFMCommunicate request_size=4 [20:37:48]MH_SAM_APDU [20:37:48]CAPDU: 80 0D 01 02 [20:37:48]Write to MH i2c: E2 08 00 1F 40 80 0D 01 02 00 00 00 00 D8 [20:37:48]Write i2c OK [20:37:48]MH_I2C_Read... [20:37:48]Read from MH i2c: E2 [20:37:48]MH_I2C_Read... [20:37:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:37:48]Read from MH i2c: E2 03 00 [20:37:48]MH_I2C_Read... [20:37:48]Read from MH i2c: E2 03 00 1F 40 00 90 00 D3 [20:37:48]RAPDU: 90 00 [20:37:48]wFMCommunicate OK [20:37:48]wFMCommunicate request_size=255 [20:37:48]MH_SAM_APDU [20:37:48]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 2B AA 6C 66 0E 04 04 00 45 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 [20:37:48]Write to MH i2c: E2 02 01 20 40 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 2B AA 6C 66 0E 04 04 00 45 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 45 [20:37:48]Write i2c OK [20:37:48]MH_I2C_Read... [20:37:49]OFD Sender: No OFD packet to send [20:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:49]Read from MH i2c: E2 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: E2 03 00 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: E2 03 00 20 40 00 90 00 D4 [20:37:49]RAPDU: 90 00 [20:37:49]wFMCommunicate OK [20:37:49]wFMCommunicate request_size=32 [20:37:49]MH_SAM_APDU [20:37:49]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 34 34 10 04 04 00 7D 56 00 00 35 04 06 00 70 4F 09 E0 D5 A8 [20:37:49]Write to MH i2c: E2 23 00 21 40 80 0D 02 02 1B 00 30 30 30 39 36 35 33 34 34 10 04 04 00 7D 56 00 00 35 04 06 00 70 4F 09 E0 D5 A8 00 00 2F [20:37:49]Write i2c OK [20:37:49]MH_I2C_Read... [20:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:49]Read from MH i2c: E2 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: E2 03 00 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: E2 03 00 21 40 00 90 00 D5 [20:37:49]RAPDU: 90 00 [20:37:49]wFMCommunicate OK [20:37:49]wFMCommunicate request_size=4 [20:37:49]MH_SAM_APDU [20:37:49]CAPDU: 80 0D 03 02 [20:37:49]Write to MH i2c: E2 08 00 22 40 80 0D 03 02 00 00 00 00 DD [20:37:49]Write i2c OK [20:37:49]MH_I2C_Read... [20:37:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:37:49]Read from MH i2c: E2 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: E2 0B 00 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: E2 0B 00 22 40 00 9D C4 8C A8 46 10 90 74 90 00 CD [20:37:49]RAPDU: 9D C4 8C A8 46 10 90 74 90 00 [20:37:49]wFMCommunicate OK [20:37:49]SAM_PROTO_SignData done [20:37:49]FM_MakeSignedData done [20:37:49]CreateOFDProtocolMessage [20:37:49]wFMCommunicate request_size=4 [20:37:49]MH_SAM_APDU [20:37:49]CAPDU: 80 11 00 00 [20:37:49]Write to MH i2c: E2 08 00 23 40 80 11 00 00 00 00 00 00 DD [20:37:49]Write i2c OK [20:37:49]MH_I2C_Read... [20:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:49]Read from MH i2c: E2 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: E2 17 00 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: E2 17 00 23 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 2F [20:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [20:37:49]wFMCommunicate OK [20:37:49]CreateOFDProtocolMessage done [20:37:49]OFDSenderStorePacket 22141 [20:37:49]StoreOFDPacket docnum=22141 [20:37:49]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 0D 72 1D 01 44 CB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 2B AA 6C 66 0E 04 04 00 45 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 7D 56 00 00 35 04 06 00 70 4F 09 E0 D5 A8 9D C4 8C A8 46 10 90 74 [20:37:49]CheckFolder [20:37:49]dirname=/storage/ofd_packets [20:37:49]CheckFolder done [20:37:49]ProducePacketName [20:37:49]name=ofd_packets/00022141 [20:37:49]NVStorageSaveData ofd_packets/00022141 [20:37:49]File name is /storage/ofd_packets/00022141 [20:37:49]Write 323 bytes [20:37:49]NVStorageSaveData done [20:37:49]OFDSenderStorePacket done [20:37:49]KKMCreateOFDPacket done [20:37:49]NVStorageSaveData kkm_last_timestamp [20:37:49]File name is /storage/kkm_last_timestamp [20:37:49]Write 4 bytes [20:37:49]NVStorageSaveData done [20:37:49]ExternCall_PrintAddStr [20:37:49]wPrintStart [20:37:49]Write to MH i2c: 01 00 00 24 40 64 [20:37:49]Write i2c OK [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: 01 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: 01 07 00 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: 01 07 00 24 40 00 00 00 00 00 FF 0F 79 [20:37:49]RasterBufferAndPrint [20:37:49]line 小褔械褌 N : (3)254364 [20:37:49]line 袠袧袧: 02508201610067 [20:37:49]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:37:49]line 袩袪袨袛袗袞袗 [20:37:49]line 孝芯胁邪褉: 46226624 [20:37:49]line Mentos 袩袙 袣谢褍斜薪懈泻邪 6*100*2 [20:37:49]line 1.000 * 10.00 [20:37:49]line = 10.00 [20:37:49]line 袧袛小 12% 袧小袩 1% [20:37:49]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:37:49]line 袠孝袨袚袨: 10.00 [20:37:49]line 袧小袩 1% : 0.09 [20:37:49]line 袧袛小 12% : 1.06 [20:37:49]line 袧邪谢懈褔薪褘屑懈: 10.00 [20:37:49]line 袘械蟹薪邪谢.: 0.00 [20:37:49]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [20:37:49]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [20:37:49]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:37:49]line 效械泻 55 14.06.2024 20:38 [20:37:49]line 小屑械薪邪: 325 肖肖袛: 1.0 [20:37:49]line 袟袧袦: 0300000200 [20:37:49]line 袪袧袦: 0000000000099755 [20:37:49]line 袙械褉褋懈褟 袣袣袦: 001 [20:37:49]line 肖袦: 0000000000965344 [20:37:49]line 肖袛: 22141 [20:37:49]line 肖袩袛: 123484770457000 [20:37:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T203803&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22141&fm=123484770457000&tin=02508201610067®Number=0000000000099755&sum=1000 [20:37:49]line 0 [20:37:49]OFD Sender: Processing packet 22141 [packets to send 5, broken 4] [20:37:49]ProducePacketName [20:37:49]name=ofd_packets/00022141 [20:37:49]OFD Sender: To server: 嚂鰌G, [20:37:49]CommunicateWithHost lk.salyk.kg:30040 [20:37:49]ConnectInit lk.salyk.kg [20:37:49]written 0, free lines is 4095 [20:37:49]Connected sock=10 [20:37: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 25 01 00 00 0D 72 1D 01 44 CB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 2B AA 6C 66 0E 04 04 00 45 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 7D 56 00 00 35 04 06 00 70 4F 09 E0 D5 A8 9D C4 8C A8 46 10 90 74 [20:37: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 A7 CB 47 00 34 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 7D 56 00 00 F4 03 04 00 EA 52 6C 66 B6 04 01 00 00 0F 96 D8 0C FC 1D 55 25 [20:37:49]CommunicateWithHost err = 0 [20:37:49]CheckOFDResponse [20:37:49]1017 (14) - 77093643461234 [20:37:49]1041 (16) - 0000000000965344 [20:37:49]1040 (4) - 22141 [20:37:49]1012 (4) - 14.06.2024 14:25 [20:37:49]1206 (1) - 0 [20:37:49]OFD Sender: Remove packet 22141 [20:37:49]ProducePacketName [20:37:49]name=ofd_packets/00022141 [20:37:49]NVStorageDeleteData [20:37:50]Write to MH i2c: 01 00 00 4C 40 8C [20:37:50]Write i2c OK [20:37:50]MH_I2C_Read... [20:37:50]Read from MH i2c: 01 [20:37:50]MH_I2C_Read... [20:37:50]Read from MH i2c: 01 07 00 [20:37:50]MH_I2C_Read... [20:37:50]Read from MH i2c: 01 07 00 4C 40 00 00 00 00 00 17 0D B7 [20:37:50]RasterBufferAndPrint [20:37:50]line [20:37:50]line [20:37:50]line [20:37:50]line [20:37:50]line [20:37:50]written 0, free lines is 3358 [20:37:50]MH_Cut [20:37:50]Write to MH i2c: D1 01 00 53 40 01 65 [20:37:50]Write i2c OK [20:37:50]MH_I2C_Read... [20:37:50]Read from MH i2c: D1 [20:37:50]MH_I2C_Read... [20:37:50]Read from MH i2c: D1 01 00 [20:37:50]MH_I2C_Read... [20:37:50]Read from MH i2c: D1 01 00 53 40 00 64 [20:37:50]Write to MH i2c: 01 00 00 54 40 94 [20:37:50]Write i2c OK [20:37:50]MH_I2C_Read... [20:37:50]OFD Sender: No OFD packet to send [20:37:50]*** Cut start [20:37:50]*** Partial cut [20:37:50]*** CUTSNS_PIN = 1 [20:37:50]*** CUTSNS_PIN = 0 [20:37:50]*** Brake cut motor [20:37:51]Read from MH i2c: 01 [20:37:51]MH_I2C_Read... [20:37:51]*** Stop cut motor [20:37:51]*** Cut end [20:37:51]Read from MH i2c: 01 07 00 [20:37:51]MH_I2C_Read... [20:37:51]Read from MH i2c: 01 07 00 54 40 00 00 00 00 00 FF 0F A9 [20:37:51]process_action close_receipt done [20:37:51]requested_data is exist [20:37:51]produce_requested_data [20:37:51]requested_item fm.sn is exist - process it [20:37:51]wFMCommunicate request_size=4 [20:37:51]MH_SAM_APDU [20:37:51]CAPDU: 80 11 00 00 [20:37:51]Write to MH i2c: E2 08 00 55 40 80 11 00 00 00 00 00 00 0F [20:37:51]Write i2c OK [20:37:51]MH_I2C_Read... [20:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:51]Read from MH i2c: E2 [20:37:51]MH_I2C_Read... [20:37:51]Read from MH i2c: E2 17 00 [20:37:51]MH_I2C_Read... [20:37:51]Read from MH i2c: E2 17 00 55 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 61 [20:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [20:37:51]wFMCommunicate OK [20:37:51]requested_item fd.num is exist - process it [20:37:51]SAM_PROTO_GetFieldsCounters [20:37:51]wFMCommunicate request_size=4 [20:37:51]MH_SAM_APDU [20:37:51]CAPDU: 80 13 00 00 [20:37:51]Write to MH i2c: E2 08 00 56 40 80 13 00 00 00 00 00 00 12 [20:37:51]Write i2c OK [20:37:51]MH_I2C_Read... [20:37:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:51]Read from MH i2c: E2 [20:37:51]MH_I2C_Read... [20:37:51]Read from MH i2c: E2 62 00 [20:37:51]MH_I2C_Read... [20:37:51]Read from MH i2c: E2 62 00 56 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 7D 56 00 00 0E 04 04 00 45 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 FA [20:37:51]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 7D 56 00 00 0E 04 04 00 45 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 [20:37:51]wFMCommunicate OK [20:37:51]SAM_PROTO_GetFieldsCounters done [20:37:51]requested_item shift.num is exist - process it [20:37:51]requested_item shift.opened is exist - process it [20:37:51]req_shift_opened [20:37:51]FM_GetShiftState [20:37:51]SAM_PROTO_GetShiftState [20:37:51]wFMCommunicate request_size=4 [20:37:51]MH_SAM_APDU [20:37:51]CAPDU: 80 13 01 00 [20:37:51]Write to MH i2c: E2 08 00 57 40 80 13 01 00 00 00 00 00 14 [20:37:51]Write i2c OK [20:37:51]MH_I2C_Read... [20:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:51]Read from MH i2c: E2 [20:37:51]MH_I2C_Read... [20:37:51]Read from MH i2c: E2 0E 00 [20:37:51]MH_I2C_Read... [20:37:51]Read from MH i2c: E2 0E 00 57 40 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 85 [20:37:51]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [20:37:51]wFMCommunicate OK [20:37:51]SAM_PROTO_GetShiftState done [20:37:51]FM_GetShiftState done [20:37:51]req_shift_opened done [20:37:51]requested_item shift.open_date is exist - process it [20:37:51]req_shift_open_date [20:37:51]req_shift_open_date done [20:37:51]produce_requested_data done [20:37:51]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22141,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [20:37:51]process_action_free close_receipt [20:37:51]json_value_free [20:37:51]json_value_free done [20:37:51]process_json_proto returns [20:37:51]Send response to host [20:37:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22141,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [20:37:51]free response buf [20:37:51]execute_script done [20:37:51]execute_script returns [20:37:51]free content buf [20:37:51]Sock 8.Close socket [20:37:51]Sock 8.Thread stoped [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:35]OFD Sender: No OFD packet to send [20:38:40]OFD Sender: No OFD packet to send [20:38:45]OFD Sender: No OFD packet to send [20:38:50]OFD Sender: No OFD packet to send [20:38:55]OFD Sender: No OFD packet to send [20:39:00]OFD Sender: No OFD packet to send [20:39:05]OFD Sender: No OFD packet to send [20:39:10]OFD Sender: No OFD packet to send [20:39:15]OFD Sender: No OFD packet to send [20:39:20]OFD Sender: No OFD packet to send [20:39:25]OFD Sender: No OFD packet to send [20:39:30]OFD Sender: No OFD packet to send [20:39:35]OFD Sender: No OFD packet to send [20:39:40]OFD Sender: No OFD packet to send [20:39:45]OFD Sender: No OFD packet to send [20:39:50]OFD Sender: No OFD packet to send [20:39:55]OFD Sender: No OFD packet to send [20:40:00]OFD Sender: No OFD packet to send [20:40:05]OFD Sender: No OFD packet to send [20:40:10]OFD Sender: No OFD packet to send [20:40:15]OFD Sender: No OFD packet to send [20:40:20]OFD Sender: No OFD packet to send [20:40:25]OFD Sender: No OFD packet to send [20:40:30]OFD Sender: No OFD packet to send [20:40:35]OFD Sender: No OFD packet to send [20:40:40]OFD Sender: No OFD packet to send [20:40:45]OFD Sender: No OFD packet to send [20:40:50]OFD Sender: No OFD packet to send [20:40:55]OFD Sender: No OFD packet to send [20:41:00]OFD Sender: No OFD packet to send [20:41:05]OFD Sender: No OFD packet to send [20:41:10]OFD Sender: No OFD packet to send [20:41:15]OFD Sender: No OFD packet to send [20:41:20]OFD Sender: No OFD packet to send [20:41:25]OFD Sender: No OFD packet to send [20:41:30]OFD Sender: No OFD packet to send [20:41:35]OFD Sender: No OFD packet to send [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:25]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:45]OFD Sender: No OFD packet to send [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:25]OFD Sender: No OFD packet to send [20:43:30]OFD Sender: No OFD packet to send [20:43:35]OFD Sender: No OFD packet to send [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:46:59]accept exits with 9 [20:46:59]New connection [20:46:59]New thread 3067178340 created [20:46:59]Thread 3067321700 joined [20:46:59]Waiting for new connection... [20:46:59] Sock 9.Parse request [20:46:59]Sock 9.Check first char [20:46:59]Sock 9.First char is OK [20:46:59]request: POST /json_proto HTTP/1.0 [20:46:59]Method: POST [20:46:59]URL: /json_proto [20:46:59]Method is POST - this is cgi request [20:46:59]url: /json_proto [20:46:59]query_string will be loaded in cgi processing [20:46:59]execute_cgi json_proto POST (null) [20:46:59]execute_cgi path=json_proto method=POST [20:46:59]POST find Content-Length [20:46:59]Host: 172.17.35.133:8080 [20:46:59]Content-Length: 708 [20:46:59]Content-Type: application/json [20:46:59] [20:46:59]POST finish read [20:46:59]Found Content-Length = 708 [20:46:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254365", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:59]execute_script... [20:46: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)254365", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:59]POST & json_proto [20:46:59]process_json_proto [20:46:59]json parsed OK: [20:46:59]protocol is kg_v1.0 [20:46:59]action value=close_receipt [20:46:59]process_action close_receipt [20:46:59]cmd_close_receipt [20:46:59]MH_GetDate [20:46:59]Write to MH i2c: F0 00 00 58 40 87 [20:46:59]Write i2c OK [20:46:59]MH_I2C_Read... [20:46:59]Read from MH i2c: F0 [20:46:59]MH_I2C_Read... [20:46:59]Read from MH i2c: F0 09 00 [20:46:59]MH_I2C_Read... [20:46:59]Read from MH i2c: F0 09 00 58 40 00 53 AC 6C 66 8C 55 28 65 CF [20:46:59]GetLastDocTimeStamp 1718397483 [20:46:59]current date 1718398035 [20:46:59]FM_GetShiftState [20:46:59]SAM_PROTO_GetShiftState [20:46:59]wFMCommunicate request_size=4 [20:46:59]MH_SAM_APDU [20:46:59]CAPDU: 80 13 01 00 [20:46:59]Write to MH i2c: E2 08 00 59 40 80 13 01 00 00 00 00 00 16 [20:46:59]Write i2c OK [20:46:59]MH_I2C_Read... [20:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:59]Read from MH i2c: E2 [20:46:59]MH_I2C_Read... [20:46:59]Read from MH i2c: E2 0E 00 [20:46:59]MH_I2C_Read... [20:46:59]Read from MH i2c: E2 0E 00 59 40 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 87 [20:46:59]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [20:46:59]wFMCommunicate OK [20:46:59]SAM_PROTO_GetShiftState done [20:46:59]FM_GetShiftState done [20:46:59]opened in 1718324742 [20:46:59]opened+sec_in_day 1718411142 [20:46:59]quantity*price = 9000 [20:46:59]sum+1 = 9001 [20:46:59]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 90.00 袧小袩 1% : 0.80 袧袛小 12% : 9.56 袧邪谢懈褔薪褘屑懈: 90.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 56 14.06.2024 20:47 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22142 肖袩袛: 57175303548551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T204715&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22142&fm=57175303548551&tin=02508201610067®Number=0000000000099755&sum=9000 0 [20:47:00]StoreToDocumentArchive [20:47:00]shift 325 fd 22142 [20:47:00]save to /storage/0325/doc_00022142 [20:47:00]save last doc name /storage/0325/doc_00022142 to /storage/kkm_last_doc_name [20:47:00]save OK [20:47:00]Clear old archive folders... [20:47:00]ProcessDocumentItem done err = 0, tmpTLVsize=299 [20:47:00]tlvbuf is 00316EB0 [20:47:00]SAM_PROTO_ClearQueue [20:47:00]wFMCommunicate request_size=4 [20:47:00]MH_SAM_APDU [20:47:00]CAPDU: 80 09 00 00 [20:47:00]Write to MH i2c: E2 08 00 66 40 80 09 00 00 00 00 00 00 18 [20:47:00]Write i2c OK [20:47:00]MH_I2C_Read... [20:47:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:47:00]Read from MH i2c: E2 [20:47:00]MH_I2C_Read... [20:47:00]Read from MH i2c: E2 03 00 [20:47:00]MH_I2C_Read... [20:47:00]Read from MH i2c: E2 03 00 66 40 00 90 00 1A [20:47:00]RAPDU: 90 00 [20:47:00]wFMCommunicate OK [20:47:00]SAM_PROTO_ClearQueue done [20:47:00]KKMCreateOFDPacket [20:47:00]OFDProtocolAddRootSTLVToBuf [20:47:00]FM_MakeSignedData [20:47:00]FM_MakeSignedData [20:47:00]SAM_PROTO_SignData [20:47:00]wFMCommunicate request_size=4 [20:47:00]MH_SAM_APDU [20:47:00]CAPDU: 80 0D 01 02 [20:47:00]Write to MH i2c: E2 08 00 67 40 80 0D 01 02 00 00 00 00 20 [20:47:00]Write i2c OK [20:47:00]MH_I2C_Read... [20:47:00]OFD Sender: No OFD packet to send [20:47:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:47:00]Read from MH i2c: E2 [20:47:00]MH_I2C_Read... [20:47:00]Read from MH i2c: E2 03 00 [20:47:00]MH_I2C_Read... [20:47:00]Read from MH i2c: E2 03 00 67 40 00 90 00 1B [20:47:00]RAPDU: 90 00 [20:47:00]wFMCommunicate OK [20:47:00]wFMCommunicate request_size=255 [20:47:00]MH_SAM_APDU [20:47:00]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 38 00 00 00 F4 03 04 00 53 AC 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [20:47:00]Write to MH i2c: E2 02 01 68 40 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 38 00 00 00 F4 03 04 00 53 AC 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 73 [20:47:00]Write i2c OK [20:47:00]MH_I2C_Read... [20:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:01]Read from MH i2c: E2 [20:47:01]MH_I2C_Read... [20:47:01]Read from MH i2c: E2 03 00 [20:47:01]MH_I2C_Read... [20:47:01]Read from MH i2c: E2 03 00 68 40 00 90 00 1C [20:47:01]RAPDU: 90 00 [20:47:01]wFMCommunicate OK [20:47:01]wFMCommunicate request_size=58 [20:47:01]MH_SAM_APDU [20:47:01]CAPDU: 80 0D 02 02 35 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 7E 56 00 00 35 04 06 00 34 00 29 A8 6E 87 [20:47:01]Write to MH i2c: E2 3D 00 69 40 80 0D 02 02 35 00 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 7E 56 00 00 35 04 06 00 34 00 29 A8 6E 87 00 00 E9 [20:47:01]Write i2c OK [20:47:01]MH_I2C_Read... [20:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:01]Read from MH i2c: E2 [20:47:01]MH_I2C_Read... [20:47:01]Read from MH i2c: E2 03 00 [20:47:01]MH_I2C_Read... [20:47:01]Read from MH i2c: E2 03 00 69 40 00 90 00 1D [20:47:01]RAPDU: 90 00 [20:47:01]wFMCommunicate OK [20:47:01]wFMCommunicate request_size=4 [20:47:01]MH_SAM_APDU [20:47:01]CAPDU: 80 0D 03 02 [20:47:01]Write to MH i2c: E2 08 00 6A 40 80 0D 03 02 00 00 00 00 25 [20:47:01]Write i2c OK [20:47:01]MH_I2C_Read... [20:47:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:47:01]Read from MH i2c: E2 [20:47:01]MH_I2C_Read... [20:47:01]Read from MH i2c: E2 0B 00 [20:47:01]MH_I2C_Read... [20:47:01]Read from MH i2c: E2 0B 00 6A 40 00 85 C5 60 3C F0 E2 EE B5 90 00 81 [20:47:01]RAPDU: 85 C5 60 3C F0 E2 EE B5 90 00 [20:47:01]wFMCommunicate OK [20:47:01]SAM_PROTO_SignData done [20:47:01]FM_MakeSignedData done [20:47:01]CreateOFDProtocolMessage [20:47:01]wFMCommunicate request_size=4 [20:47:01]MH_SAM_APDU [20:47:01]CAPDU: 80 11 00 00 [20:47:01]Write to MH i2c: E2 08 00 6B 40 80 11 00 00 00 00 00 00 25 [20:47:01]Write i2c OK [20:47:01]MH_I2C_Read... [20:47:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:01]Read from MH i2c: E2 [20:47:01]MH_I2C_Read... [20:47:01]Read from MH i2c: E2 17 00 [20:47:01]MH_I2C_Read... [20:47:01]Read from MH i2c: E2 17 00 6B 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 77 [20:47:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [20:47:01]wFMCommunicate OK [20:47:01]CreateOFDProtocolMessage done [20:47:01]OFDSenderStorePacket 22142 [20:47:01]StoreOFDPacket docnum=22142 [20:47: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 3F 01 00 00 B1 8E 37 01 CA C6 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 38 00 00 00 F4 03 04 00 53 AC 6C 66 0E 04 04 00 45 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 7E 56 00 00 35 04 06 00 34 00 29 A8 6E 87 85 C5 60 3C F0 E2 EE B5 [20:47:01]CheckFolder [20:47:01]dirname=/storage/ofd_packets [20:47:01]CheckFolder done [20:47:01]ProducePacketName [20:47:01]name=ofd_packets/00022142 [20:47:01]NVStorageSaveData ofd_packets/00022142 [20:47:01]File name is /storage/ofd_packets/00022142 [20:47:01]Write 349 bytes [20:47:01]NVStorageSaveData done [20:47:01]OFDSenderStorePacket done [20:47:01]KKMCreateOFDPacket done [20:47:01]NVStorageSaveData kkm_last_timestamp [20:47:01]File name is /storage/kkm_last_timestamp [20:47:01]Write 4 bytes [20:47:01]NVStorageSaveData done [20:47:01]ExternCall_PrintAddStr [20:47:01]wPrintStart [20:47:01]Write to MH i2c: 01 00 00 6C 40 AC [20:47:01]Write i2c OK [20:47:01]MH_I2C_Read... [20:47:01]Read from MH i2c: 01 [20:47:01]MH_I2C_Read... [20:47:01]Read from MH i2c: 01 07 00 [20:47:01]MH_I2C_Read... [20:47:01]Read from MH i2c: 01 07 00 6C 40 00 00 00 00 00 FF 0F C1 [20:47:01]RasterBufferAndPrint [20:47:01]line 小褔械褌 N : (3)254365 [20:47:01]line 袠袧袧: 02508201610067 [20:47:01]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:47:01]line 袩袪袨袛袗袞袗 [20:47:01]line 孝芯胁邪褉: 4660085515163 [20:47:01]line 楔芯泻 袘邪褌芯薪褔懈泻 小薪懈泻械褉褋 褋褍锌械褉 95/80谐 [20:47:01]line 1.000 * 90.00 [20:47:01]line = 90.00 [20:47:01]line 袧袛小 12% 袧小袩 1% [20:47:01]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:47:01]line 袠孝袨袚袨: 90.00 [20:47:01]line 袧小袩 1% : 0.80 [20:47:01]line 袧袛小 12% : 9.56 [20:47:01]line 袧邪谢懈褔薪褘屑懈: 90.00 [20:47:01]line 袘械蟹薪邪谢.: 0.00 [20:47:01]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [20:47:01]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [20:47:01]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:47:01]line 效械泻 56 14.06.2024 20:47 [20:47:01]line 小屑械薪邪: 325 肖肖袛: 1.0 [20:47:01]line 袟袧袦: 0300000200 [20:47:01]line 袪袧袦: 0000000000099755 [20:47:01]line 袙械褉褋懈褟 袣袣袦: 001 [20:47:01]line 肖袦: 0000000000965344 [20:47:01]line 肖袛: 22142 [20:47:01]line 肖袩袛: 57175303548551 [20:47:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T204715&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22142&fm=57175303548551&tin=02508201610067®Number=0000000000099755&sum=9000 [20:47:01]line 0 [20:47:01]OFD Sender: Processing packet 22142 [packets to send 5, broken 4] [20:47:01]ProducePacketName [20:47:01]name=ofd_packets/00022142 [20:47:01]OFD Sender: To server: 嚂鰌G, [20:47:01]CommunicateWithHost lk.salyk.kg:30040 [20:47:01]ConnectInit lk.salyk.kg [20:47:01]written 0, free lines is 4095 [20:47:01]Connected sock=8 [20:47: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 3F 01 00 00 B1 8E 37 01 CA C6 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 38 00 00 00 F4 03 04 00 53 AC 6C 66 0E 04 04 00 45 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 7E 56 00 00 35 04 06 00 34 00 29 A8 6E 87 85 C5 60 3C F0 E2 EE B5 [20:47: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 B9 68 47 00 6C A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 7E 56 00 00 F4 03 04 00 12 55 6C 66 B6 04 01 00 00 EF 98 5E AE 0F 0F F9 72 [20:47:02]CommunicateWithHost err = 0 [20:47:02]CheckOFDResponse [20:47:02]1017 (14) - 77093643461234 [20:47:02]1041 (16) - 0000000000965344 [20:47:02]1040 (4) - 22142 [20:47:02]1012 (4) - 14.06.2024 14:34 [20:47:02]1206 (1) - 0 [20:47:02]OFD Sender: Remove packet 22142 [20:47:02]ProducePacketName [20:47:02]name=ofd_packets/00022142 [20:47:02]NVStorageDeleteData [20:47:02]Write to MH i2c: 01 00 00 95 40 D5 [20:47:02]Write i2c OK [20:47:02]MH_I2C_Read... [20:47:02]Read from MH i2c: 01 [20:47:02]MH_I2C_Read... [20:47:02]Read from MH i2c: 01 07 00 [20:47:02]MH_I2C_Read... [20:47:02]Read from MH i2c: 01 07 00 95 40 00 00 00 00 00 0C 0D F5 [20:47:02]RasterBufferAndPrint [20:47:02]line [20:47:02]line [20:47:02]line [20:47:02]line [20:47:02]line [20:47:02]written 0, free lines is 3349 [20:47:02]MH_Cut [20:47:02]Write to MH i2c: D1 01 00 9C 40 01 AE [20:47:02]Write i2c OK [20:47:02]MH_I2C_Read... [20:47:02]Read from MH i2c: D1 [20:47:02]MH_I2C_Read... [20:47:02]Read from MH i2c: D1 01 00 [20:47:02]MH_I2C_Read... [20:47:02]Read from MH i2c: D1 01 00 9C 40 00 AD [20:47:02]Write to MH i2c: 01 00 00 9D 40 DD [20:47:02]Write i2c OK [20:47:02]MH_I2C_Read... [20:47:02]OFD Sender: No OFD packet to send [20:47:02]*** Cut start [20:47:02]*** Partial cut [20:47:02]*** CUTSNS_PIN = 1 [20:47:02]*** CUTSNS_PIN = 0 [20:47:03]*** Brake cut motor [20:47:03]Read from MH i2c: 01 [20:47:03]MH_I2C_Read... [20:47:03]*** Stop cut motor [20:47:03]*** Cut end [20:47:03]Read from MH i2c: 01 07 00 [20:47:03]MH_I2C_Read... [20:47:03]Read from MH i2c: 01 07 00 9D 40 00 00 00 00 00 FF 0F F2 [20:47:03]process_action close_receipt done [20:47:03]requested_data is exist [20:47:03]produce_requested_data [20:47:03]requested_item fm.sn is exist - process it [20:47:03]wFMCommunicate request_size=4 [20:47:03]MH_SAM_APDU [20:47:03]CAPDU: 80 11 00 00 [20:47:03]Write to MH i2c: E2 08 00 9E 40 80 11 00 00 00 00 00 00 58 [20:47:03]Write i2c OK [20:47:03]MH_I2C_Read... [20:47:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:03]Read from MH i2c: E2 [20:47:03]MH_I2C_Read... [20:47:03]Read from MH i2c: E2 17 00 [20:47:03]MH_I2C_Read... [20:47:03]Read from MH i2c: E2 17 00 9E 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 AA [20:47:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [20:47:03]wFMCommunicate OK [20:47:03]requested_item fd.num is exist - process it [20:47:03]SAM_PROTO_GetFieldsCounters [20:47:03]wFMCommunicate request_size=4 [20:47:03]MH_SAM_APDU [20:47:03]CAPDU: 80 13 00 00 [20:47:03]Write to MH i2c: E2 08 00 9F 40 80 13 00 00 00 00 00 00 5B [20:47:03]Write i2c OK [20:47:03]MH_I2C_Read... [20:47:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:03]Read from MH i2c: E2 [20:47:03]MH_I2C_Read... [20:47:03]Read from MH i2c: E2 62 00 [20:47:03]MH_I2C_Read... [20:47:03]Read from MH i2c: E2 62 00 9F 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 7E 56 00 00 0E 04 04 00 45 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 47 [20:47: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 7E 56 00 00 0E 04 04 00 45 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 [20:47:03]wFMCommunicate OK [20:47:03]SAM_PROTO_GetFieldsCounters done [20:47:03]requested_item shift.num is exist - process it [20:47:03]requested_item shift.opened is exist - process it [20:47:03]req_shift_opened [20:47:03]FM_GetShiftState [20:47:03]SAM_PROTO_GetShiftState [20:47:03]wFMCommunicate request_size=4 [20:47:03]MH_SAM_APDU [20:47:03]CAPDU: 80 13 01 00 [20:47:03]Write to MH i2c: E2 08 00 A0 40 80 13 01 00 00 00 00 00 5D [20:47:03]Write i2c OK [20:47:03]MH_I2C_Read... [20:47:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:03]Read from MH i2c: E2 [20:47:03]MH_I2C_Read... [20:47:03]Read from MH i2c: E2 0E 00 [20:47:03]MH_I2C_Read... [20:47:03]Read from MH i2c: E2 0E 00 A0 40 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 CE [20:47:03]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [20:47:03]wFMCommunicate OK [20:47:03]SAM_PROTO_GetShiftState done [20:47:03]FM_GetShiftState done [20:47:03]req_shift_opened done [20:47:03]requested_item shift.open_date is exist - process it [20:47:03]req_shift_open_date [20:47:03]req_shift_open_date done [20:47:03]produce_requested_data done [20:47:03]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22142,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [20:47:03]process_action_free close_receipt [20:47:03]json_value_free [20:47:03]json_value_free done [20:47:03]process_json_proto returns [20:47:03]Send response to host [20:47:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22142,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [20:47:03]free response buf [20:47:03]execute_script done [20:47:03]execute_script returns [20:47:03]free content buf [20:47:03]Sock 9.Close socket [20:47:03]Sock 9.Thread stoped [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:37]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:45]accept exits with 10 [20:48:45]New connection [20:48:45]New thread 3067321700 created [20:48:45]Thread 3067178340 joined [20:48:45]Waiting for new connection... [20:48:45] Sock 10.Parse request [20:48:45]Sock 10.Check first char [20:48:45]Sock 10.First char is OK [20:48:45]request: POST /json_proto HTTP/1.0 [20:48:45]Method: POST [20:48:45]URL: /json_proto [20:48:45]Method is POST - this is cgi request [20:48:45]url: /json_proto [20:48:45]query_string will be loaded in cgi processing [20:48:45]execute_cgi json_proto POST (null) [20:48:45]execute_cgi path=json_proto method=POST [20:48:45]POST find Content-Length [20:48:45]Host: 172.17.35.133:8080 [20:48:45]Content-Length: 912 [20:48:45]Content-Type: application/json [20:48:45] [20:48:45]POST finish read [20:48:45]Found Content-Length = 912 [20:48:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254366", "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 }]} ], "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" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:45]execute_script... [20:48:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254366", "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 }]} ], "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" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:45]POST & json_proto [20:48:45]process_json_proto [20:48:45]json parsed OK: [20:48:45]protocol is kg_v1.0 [20:48:45]action value=close_receipt [20:48:45]process_action close_receipt [20:48:45]cmd_close_receipt [20:48:45]MH_GetDate [20:48:45]Write to MH i2c: F0 00 00 A1 40 D0 [20:48:45]Write i2c OK [20:48:45]MH_I2C_Read... [20:48:45]Read from MH i2c: F0 [20:48:45]MH_I2C_Read... [20:48:45]Read from MH i2c: F0 09 00 [20:48:45]MH_I2C_Read... [20:48:45]Read from MH i2c: F0 09 00 A1 40 00 BD AC 6C 66 8C 55 28 65 82 [20:48:45]GetLastDocTimeStamp 1718398035 [20:48:45]current date 1718398141 [20:48:45]FM_GetShiftState [20:48:45]SAM_PROTO_GetShiftState [20:48:45]wFMCommunicate request_size=4 [20:48:45]MH_SAM_APDU [20:48:45]CAPDU: 80 13 01 00 [20:48:45]Write to MH i2c: E2 08 00 A2 40 80 13 01 00 00 00 00 00 5F [20:48:45]Write i2c OK [20:48:45]MH_I2C_Read... [20:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:45]Read from MH i2c: E2 [20:48:45]MH_I2C_Read... [20:48:45]Read from MH i2c: E2 0E 00 [20:48:45]MH_I2C_Read... [20:48:45]Read from MH i2c: E2 0E 00 A2 40 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 D0 [20:48:45]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [20:48:45]wFMCommunicate OK [20:48:45]SAM_PROTO_GetShiftState done [20:48:45]FM_GetShiftState done [20:48:45]opened in 1718324742 [20:48:45]opened+sec_in_day 1718411142 [20:48:45]quantity*price = 11300 [20:48:45]sum+1 = 11301 [20:48:45]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 113.00 袧小袩 1% : 1.00 袧袛小 12% : 12.00 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 113.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 57 14.06.2024 20:49 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袗袣袘 袣褘褉谐褘蟹褋褌邪薪 肖袦: 0000000000965344 肖袛: 22143 肖袩袛: 28713485294355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T204901&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22143&fm=28713485294355&tin=02508201610067®Number=0000000000099755&sum=11300 0 [20:48:46]StoreToDocumentArchive [20:48:46]shift 325 fd 22143 [20:48:46]save to /storage/0325/doc_00022143 [20:48:46]save last doc name /storage/0325/doc_00022143 to /storage/kkm_last_doc_name [20:48:46]save OK [20:48:46]Clear old archive folders... [20:48:46]ProcessDocumentItem done err = 0, tmpTLVsize=303 [20:48:46]tlvbuf is 003420A0 [20:48:46]SAM_PROTO_ClearQueue [20:48:46]wFMCommunicate request_size=4 [20:48:46]MH_SAM_APDU [20:48:46]CAPDU: 80 09 00 00 [20:48:46]Write to MH i2c: E2 08 00 AF 40 80 09 00 00 00 00 00 00 61 [20:48:46]Write i2c OK [20:48:46]MH_I2C_Read... [20:48:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:46]Read from MH i2c: E2 [20:48:46]MH_I2C_Read... [20:48:46]Read from MH i2c: E2 03 00 [20:48:46]MH_I2C_Read... [20:48:46]Read from MH i2c: E2 03 00 AF 40 00 90 00 63 [20:48:46]RAPDU: 90 00 [20:48:46]wFMCommunicate OK [20:48:46]SAM_PROTO_ClearQueue done [20:48:46]KKMCreateOFDPacket [20:48:46]OFDProtocolAddRootSTLVToBuf [20:48:46]FM_MakeSignedData [20:48:46]FM_MakeSignedData [20:48:46]SAM_PROTO_SignData [20:48:46]wFMCommunicate request_size=4 [20:48:46]MH_SAM_APDU [20:48:46]CAPDU: 80 0D 01 02 [20:48:46]Write to MH i2c: E2 08 00 B0 40 80 0D 01 02 00 00 00 00 69 [20:48:46]Write i2c OK [20:48:46]MH_I2C_Read... [20:48:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:46]Read from MH i2c: E2 [20:48:46]MH_I2C_Read... [20:48:46]Read from MH i2c: E2 03 00 [20:48:46]MH_I2C_Read... [20:48:46]Read from MH i2c: E2 03 00 B0 40 00 90 00 64 [20:48:46]RAPDU: 90 00 [20:48:46]wFMCommunicate OK [20:48:46]wFMCommunicate request_size=255 [20:48:46]MH_SAM_APDU [20:48:46]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 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 BD AC 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D [20:48:46]Write to MH i2c: E2 02 01 B1 40 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 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 BD AC 6C 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 00 00 EE [20:48:46]Write i2c OK [20:48:46]MH_I2C_Read... [20:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:47]Read from MH i2c: E2 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: E2 03 00 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: E2 03 00 B1 40 00 90 00 65 [20:48:47]RAPDU: 90 00 [20:48:47]wFMCommunicate OK [20:48:47]wFMCommunicate request_size=62 [20:48:47]MH_SAM_APDU [20:48:47]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 7F 56 00 00 35 04 06 00 1A 1D 61 17 5B 13 [20:48:47]Write to MH i2c: E2 41 00 B2 40 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 7F 56 00 00 35 04 06 00 1A 1D 61 17 5B 13 00 00 A2 [20:48:47]Write i2c OK [20:48:47]MH_I2C_Read... [20:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:47]Read from MH i2c: E2 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: E2 03 00 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: E2 03 00 B2 40 00 90 00 66 [20:48:47]RAPDU: 90 00 [20:48:47]wFMCommunicate OK [20:48:47]wFMCommunicate request_size=4 [20:48:47]MH_SAM_APDU [20:48:47]CAPDU: 80 0D 03 02 [20:48:47]Write to MH i2c: E2 08 00 B3 40 80 0D 03 02 00 00 00 00 6E [20:48:47]Write i2c OK [20:48:47]MH_I2C_Read... [20:48:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:47]Read from MH i2c: E2 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: E2 0B 00 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: E2 0B 00 B3 40 00 90 28 FE EF A1 AF 4F 7D 90 00 30 [20:48:47]RAPDU: 90 28 FE EF A1 AF 4F 7D 90 00 [20:48:47]wFMCommunicate OK [20:48:47]SAM_PROTO_SignData done [20:48:47]FM_MakeSignedData done [20:48:47]CreateOFDProtocolMessage [20:48:47]wFMCommunicate request_size=4 [20:48:47]MH_SAM_APDU [20:48:47]CAPDU: 80 11 00 00 [20:48:47]Write to MH i2c: E2 08 00 B4 40 80 11 00 00 00 00 00 00 6E [20:48:47]Write i2c OK [20:48:47]MH_I2C_Read... [20:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:47]Read from MH i2c: E2 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: E2 17 00 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: E2 17 00 B4 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 C0 [20:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [20:48:47]wFMCommunicate OK [20:48:47]CreateOFDProtocolMessage done [20:48:47]OFDSenderStorePacket 22143 [20:48:47]StoreOFDPacket docnum=22143 [20:48:47]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 A6 68 3B 01 3D E5 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 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 BD AC 6C 66 0E 04 04 00 45 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 7F 56 00 00 35 04 06 00 1A 1D 61 17 5B 13 90 28 FE EF A1 AF 4F 7D [20:48:47]CheckFolder [20:48:47]dirname=/storage/ofd_packets [20:48:47]CheckFolder done [20:48:47]ProducePacketName [20:48:47]name=ofd_packets/00022143 [20:48:47]NVStorageSaveData ofd_packets/00022143 [20:48:47]File name is /storage/ofd_packets/00022143 [20:48:47]Write 353 bytes [20:48:47]NVStorageSaveData done [20:48:47]OFDSenderStorePacket done [20:48:47]KKMCreateOFDPacket done [20:48:47]NVStorageSaveData kkm_last_timestamp [20:48:47]File name is /storage/kkm_last_timestamp [20:48:47]Write 4 bytes [20:48:47]NVStorageSaveData done [20:48:47]ExternCall_PrintAddStr [20:48:47]wPrintStart [20:48:47]Write to MH i2c: 01 00 00 B5 40 F5 [20:48:47]Write i2c OK [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: 01 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: 01 07 00 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: 01 07 00 B5 40 00 00 00 00 00 FF 0F 0A [20:48:47]RasterBufferAndPrint [20:48:47]line 小褔械褌 N : (3)254366 [20:48:47]line 袠袧袧: 02508201610067 [20:48:47]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:48:47]line 袩袪袨袛袗袞袗 [20:48:47]line 孝芯胁邪褉: 4870202521216 [20:48:47]line 袧邪锌懈褌芯泻 MAXI 褔邪泄 1,2 蟹械谢.谢懈屑芯薪 (薪芯胁褘泄) [20:48:47]line 1.000 * 113.00 [20:48:47]line = 113.00 [20:48:47]line 袧袛小 12% 袧小袩 1% [20:48:47]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:48:47]line 袠孝袨袚袨: 113.00 [20:48:47]line 袧小袩 1% : 1.00 [20:48:47]line 袧袛小 12% : 12.00 [20:48:47]line 袧邪谢懈褔薪褘屑懈: 0.00 [20:48:47]line 袘械蟹薪邪谢.: 113.00 [20:48:47]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [20:48:47]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [20:48:47]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:48:47]line 效械泻 57 14.06.2024 20:49 [20:48:47]line 小屑械薪邪: 325 肖肖袛: 1.0 [20:48:47]line 袟袧袦: 0300000200 [20:48:47]line 袪袧袦: 0000000000099755 [20:48:47]line 袙械褉褋懈褟 袣袣袦: 001 [20:48:47]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袗袣袘 袣褘褉谐褘蟹褋褌邪薪 [20:48:47]line 肖袦: 0000000000965344 [20:48:47]line 肖袛: 22143 [20:48:47]line 肖袩袛: 28713485294355 [20:48:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T204901&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22143&fm=28713485294355&tin=02508201610067®Number=0000000000099755&sum=11300 [20:48:47]line 0 [20:48:47]OFD Sender: Processing packet 22143 [packets to send 5, broken 4] [20:48:47]ProducePacketName [20:48:47]name=ofd_packets/00022143 [20:48:47]OFD Sender: To server: 嚂鰌G, [20:48:47]CommunicateWithHost lk.salyk.kg:30040 [20:48:47]ConnectInit lk.salyk.kg [20:48:47]written 0, free lines is 4095 [20:48:47]Connected sock=9 [20:48:47]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 A6 68 3B 01 3D E5 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 00 00 00 00 00 00 39 04 06 00 24 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 BD AC 6C 66 0E 04 04 00 45 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 7F 56 00 00 35 04 06 00 1A 1D 61 17 5B 13 90 28 FE EF A1 AF 4F 7D [20:48:48]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 6C 6C 47 00 05 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 7F 56 00 00 F4 03 04 00 7C 55 6C 66 B6 04 01 00 00 98 B1 25 03 71 68 F4 51 [20:48:48]CommunicateWithHost err = 0 [20:48:48]CheckOFDResponse [20:48:48]1017 (14) - 77093643461234 [20:48:48]1041 (16) - 0000000000965344 [20:48:48]1040 (4) - 22143 [20:48:48]1012 (4) - 14.06.2024 14:36 [20:48:48]1206 (1) - 0 [20:48:48]OFD Sender: Remove packet 22143 [20:48:48]ProducePacketName [20:48:48]name=ofd_packets/00022143 [20:48:48]NVStorageDeleteData [20:48:48]Write to MH i2c: 01 00 00 E0 40 20 [20:48:48]Write i2c OK [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: 01 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: 01 07 00 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: 01 07 00 E0 40 00 00 00 00 00 F1 0C 24 [20:48:48]RasterBufferAndPrint [20:48:48]line [20:48:48]line [20:48:48]line [20:48:48]line [20:48:48]line [20:48:48]written 0, free lines is 3320 [20:48:48]MH_Cut [20:48:48]Write to MH i2c: D1 01 00 E7 40 01 F9 [20:48:48]Write i2c OK [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: D1 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: D1 01 00 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: D1 01 00 E7 40 00 F8 [20:48:48]Write to MH i2c: 01 00 00 E8 40 28 [20:48:48]Write i2c OK [20:48:48]MH_I2C_Read... [20:48:48]OFD Sender: No OFD packet to send [20:48:48]*** Cut start [20:48:48]*** Partial cut [20:48:48]*** CUTSNS_PIN = 1 [20:48:48]*** CUTSNS_PIN = 0 [20:48:49]*** Brake cut motor [20:48:49]Read from MH i2c: 01 [20:48:49]MH_I2C_Read... [20:48:49]*** Stop cut motor [20:48:49]*** Cut end [20:48:49]Read from MH i2c: 01 07 00 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: 01 07 00 E8 40 00 00 00 00 00 FF 0F 3D [20:48:49]process_action close_receipt done [20:48:49]requested_data is exist [20:48:49]produce_requested_data [20:48:49]requested_item fm.sn is exist - process it [20:48:49]wFMCommunicate request_size=4 [20:48:49]MH_SAM_APDU [20:48:49]CAPDU: 80 11 00 00 [20:48:49]Write to MH i2c: E2 08 00 E9 40 80 11 00 00 00 00 00 00 A3 [20:48:49]Write i2c OK [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: E2 [20:48:49]MH_I2C_Read... [20:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:49]Read from MH i2c: E2 17 00 [20:48:49]MH_I2C_Read... [20:48:49]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 [20:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [20:48:49]wFMCommunicate OK [20:48:49]requested_item fd.num is exist - process it [20:48:49]SAM_PROTO_GetFieldsCounters [20:48:49]wFMCommunicate request_size=4 [20:48:49]MH_SAM_APDU [20:48:49]CAPDU: 80 13 00 00 [20:48:49]Write to MH i2c: E2 08 00 EA 40 80 13 00 00 00 00 00 00 A6 [20:48:49]Write i2c OK [20:48:49]MH_I2C_Read... [20:48:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:49]Read from MH i2c: E2 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: E2 62 00 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: E2 62 00 EA 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 7F 56 00 00 0E 04 04 00 45 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 96 [20:48:49]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 7F 56 00 00 0E 04 04 00 45 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 [20:48:49]wFMCommunicate OK [20:48:49]SAM_PROTO_GetFieldsCounters done [20:48:49]requested_item shift.num is exist - process it [20:48:49]requested_item shift.opened is exist - process it [20:48:49]req_shift_opened [20:48:49]FM_GetShiftState [20:48:49]SAM_PROTO_GetShiftState [20:48:49]wFMCommunicate request_size=4 [20:48:49]MH_SAM_APDU [20:48:49]CAPDU: 80 13 01 00 [20:48:49]Write to MH i2c: E2 08 00 EB 40 80 13 01 00 00 00 00 00 A8 [20:48:49]Write i2c OK [20:48:49]MH_I2C_Read... [20:48:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:49]Read from MH i2c: E2 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: E2 0E 00 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: E2 0E 00 EB 40 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 19 [20:48:49]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [20:48:49]wFMCommunicate OK [20:48:49]SAM_PROTO_GetShiftState done [20:48:49]FM_GetShiftState done [20:48:49]req_shift_opened done [20:48:49]requested_item shift.open_date is exist - process it [20:48:49]req_shift_open_date [20:48:49]req_shift_open_date done [20:48:49]produce_requested_data done [20:48:49]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22143,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [20:48:49]process_action_free close_receipt [20:48:49]json_value_free [20:48:49]json_value_free done [20:48:49]process_json_proto returns [20:48:49]Send response to host [20:48:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22143,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [20:48:49]free response buf [20:48:49]execute_script done [20:48:49]execute_script returns [20:48:49]free content buf [20:48:49]Sock 10.Close socket [20:48:49]Sock 10.Thread stoped [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:59]OFD Sender: No OFD packet to send [20:59:04]OFD Sender: No OFD packet to send [20:59:09]OFD Sender: No OFD packet to send [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:39]OFD Sender: No OFD packet to send [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:04]accept exits with 8 [21:07:04]New connection [21:07:04]New thread 3067178340 created [21:07:04]Thread 3067321700 joined [21:07:04]Waiting for new connection... [21:07:04] Sock 8.Parse request [21:07:04]Sock 8.Check first char [21:07:04]Sock 8.First char is OK [21:07:04]request: POST /json_proto HTTP/1.0 [21:07:04]Method: POST [21:07:04]URL: /json_proto [21:07:04]Method is POST - this is cgi request [21:07:04]url: /json_proto [21:07:04]query_string will be loaded in cgi processing [21:07:04]execute_cgi json_proto POST (null) [21:07:04]execute_cgi path=json_proto method=POST [21:07:04]POST find Content-Length [21:07:04]Host: 172.17.35.133:8080 [21:07:04]Content-Length: 640 [21:07:04]Content-Type: application/json [21:07:04] [21:07:04]POST finish read [21:07:04]Found Content-Length = 640 [21:07:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254367", "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" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:04]execute_script... [21:07:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254367", "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" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:04]POST & json_proto [21:07:04]process_json_proto [21:07:04]json parsed OK: [21:07:04]protocol is kg_v1.0 [21:07:04]action value=close_receipt [21:07:04]process_action close_receipt [21:07:04]cmd_close_receipt [21:07:04]MH_GetDate [21:07:04]Write to MH i2c: F0 00 00 EC 40 1B [21:07:04]Write i2c OK [21:07:04]MH_I2C_Read... [21:07:04]Read from MH i2c: F0 [21:07:04]MH_I2C_Read... [21:07:04]Read from MH i2c: F0 09 00 [21:07:04]MH_I2C_Read... [21:07:04]Read from MH i2c: F0 09 00 EC 40 00 08 B1 6C 66 8C 55 28 65 1D [21:07:04]GetLastDocTimeStamp 1718398141 [21:07:04]current date 1718399240 [21:07:04]FM_GetShiftState [21:07:04]SAM_PROTO_GetShiftState [21:07:04]wFMCommunicate request_size=4 [21:07:04]MH_SAM_APDU [21:07:04]CAPDU: 80 13 01 00 [21:07:04]Write to MH i2c: E2 08 00 ED 40 80 13 01 00 00 00 00 00 AA [21:07:04]Write i2c OK [21:07:04]MH_I2C_Read... [21:07:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:04]Read from MH i2c: E2 [21:07:04]MH_I2C_Read... [21:07:04]Read from MH i2c: E2 0E 00 [21:07:04]MH_I2C_Read... [21:07:04]Read from MH i2c: E2 0E 00 ED 40 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 1B [21:07:04]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [21:07:04]wFMCommunicate OK [21:07:04]SAM_PROTO_GetShiftState done [21:07:04]FM_GetShiftState done [21:07:04]opened in 1718324742 [21:07:04]opened+sec_in_day 1718411142 [21:07:04]quantity*price = 14000 [21:07:04]sum+1 = 14001 [21:07:04]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 140.00 袧小袩 1% : 1.24 袧袛小 12% : 14.87 袧邪谢懈褔薪褘屑懈: 140.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 58 14.06.2024 21:07 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22144 肖袩袛: 36674024389109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T210720&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22144&fm=36674024389109&tin=02508201610067®Number=0000000000099755&sum=14000 0 [21:07:05]StoreToDocumentArchive [21:07:05]shift 325 fd 22144 [21:07:05]save to /storage/0325/doc_00022144 [21:07:05]save last doc name /storage/0325/doc_00022144 to /storage/kkm_last_doc_name [21:07:05]save OK [21:07:05]Clear old archive folders... [21:07:05]ProcessDocumentItem done err = 0, tmpTLVsize=273 [21:07:05]tlvbuf is 00250140 [21:07:05]SAM_PROTO_ClearQueue [21:07:05]wFMCommunicate request_size=4 [21:07:05]MH_SAM_APDU [21:07:05]CAPDU: 80 09 00 00 [21:07:05]Write to MH i2c: E2 08 00 FA 40 80 09 00 00 00 00 00 00 AC [21:07:05]Write i2c OK [21:07:05]MH_I2C_Read... [21:07:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:05]Read from MH i2c: E2 [21:07:05]MH_I2C_Read... [21:07:05]Read from MH i2c: E2 03 00 [21:07:05]MH_I2C_Read... [21:07:05]Read from MH i2c: E2 03 00 FA 40 00 90 00 AE [21:07:05]RAPDU: 90 00 [21:07:05]wFMCommunicate OK [21:07:05]SAM_PROTO_ClearQueue done [21:07:05]KKMCreateOFDPacket [21:07:05]OFDProtocolAddRootSTLVToBuf [21:07:05]FM_MakeSignedData [21:07:05]FM_MakeSignedData [21:07:05]SAM_PROTO_SignData [21:07:05]wFMCommunicate request_size=4 [21:07:05]MH_SAM_APDU [21:07:05]CAPDU: 80 0D 01 02 [21:07:05]Write to MH i2c: E2 08 00 FB 40 80 0D 01 02 00 00 00 00 B4 [21:07:05]Write i2c OK [21:07:05]MH_I2C_Read... [21:07:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:05]Read from MH i2c: E2 [21:07:05]MH_I2C_Read... [21:07:05]Read from MH i2c: E2 03 00 [21:07:05]MH_I2C_Read... [21:07:05]Read from MH i2c: E2 03 00 FB 40 00 90 00 AF [21:07:05]RAPDU: 90 00 [21:07:05]wFMCommunicate OK [21:07:05]wFMCommunicate request_size=255 [21:07:05]MH_SAM_APDU [21:07:05]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 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 08 B1 6C 66 0E 04 04 00 45 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 [21:07:05]Write to MH i2c: E2 02 01 FC 40 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 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 08 B1 6C 66 0E 04 04 00 45 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 52 [21:07:05]Write i2c OK [21:07:05]MH_I2C_Read... [21:07:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:06]Read from MH i2c: E2 [21:07:06]MH_I2C_Read... [21:07:06]Read from MH i2c: E2 03 00 [21:07:06]MH_I2C_Read... [21:07:06]Read from MH i2c: E2 03 00 FC 40 00 90 00 B0 [21:07:06]RAPDU: 90 00 [21:07:06]wFMCommunicate OK [21:07:06]wFMCommunicate request_size=32 [21:07:06]MH_SAM_APDU [21:07:06]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 34 34 10 04 04 00 80 56 00 00 35 04 06 00 21 5A D6 32 39 F5 [21:07:06]Write to MH i2c: E2 23 00 FD 40 80 0D 02 02 1B 00 30 30 30 39 36 35 33 34 34 10 04 04 00 80 56 00 00 35 04 06 00 21 5A D6 32 39 F5 00 00 9A [21:07:06]Write i2c OK [21:07:06]MH_I2C_Read... [21:07:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:06]Read from MH i2c: E2 [21:07:06]MH_I2C_Read... [21:07:06]Read from MH i2c: E2 03 00 [21:07:06]MH_I2C_Read... [21:07:06]Read from MH i2c: E2 03 00 FD 40 00 90 00 B1 [21:07:06]RAPDU: 90 00 [21:07:06]wFMCommunicate OK [21:07:06]wFMCommunicate request_size=4 [21:07:06]MH_SAM_APDU [21:07:06]CAPDU: 80 0D 03 02 [21:07:06]Write to MH i2c: E2 08 00 FE 40 80 0D 03 02 00 00 00 00 B9 [21:07:06]Write i2c OK [21:07:06]MH_I2C_Read... [21:07:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:06]Read from MH i2c: E2 [21:07:06]MH_I2C_Read... [21:07:06]Read from MH i2c: E2 0B 00 [21:07:06]MH_I2C_Read... [21:07:06]Read from MH i2c: E2 0B 00 FE 40 00 80 3E A4 9A 25 E3 3B 24 90 00 1D [21:07:06]RAPDU: 80 3E A4 9A 25 E3 3B 24 90 00 [21:07:06]wFMCommunicate OK [21:07:06]SAM_PROTO_SignData done [21:07:06]FM_MakeSignedData done [21:07:06]CreateOFDProtocolMessage [21:07:06]wFMCommunicate request_size=4 [21:07:06]MH_SAM_APDU [21:07:06]CAPDU: 80 11 00 00 [21:07:06]Write to MH i2c: E2 08 00 FF 40 80 11 00 00 00 00 00 00 B9 [21:07:06]Write i2c OK [21:07:06]MH_I2C_Read... [21:07:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:06]Read from MH i2c: E2 [21:07:06]MH_I2C_Read... [21:07:06]Read from MH i2c: E2 17 00 [21:07:06]MH_I2C_Read... [21:07:06]Read from MH i2c: E2 17 00 FF 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 0B [21:07:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [21:07:06]wFMCommunicate OK [21:07:06]CreateOFDProtocolMessage done [21:07:06]OFDSenderStorePacket 22144 [21:07:06]StoreOFDPacket docnum=22144 [21:07:06]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 58 3C 1D 01 94 7A 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 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 08 B1 6C 66 0E 04 04 00 45 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 80 56 00 00 35 04 06 00 21 5A D6 32 39 F5 80 3E A4 9A 25 E3 3B 24 [21:07:06]CheckFolder [21:07:06]dirname=/storage/ofd_packets [21:07:06]CheckFolder done [21:07:06]ProducePacketName [21:07:06]name=ofd_packets/00022144 [21:07:06]NVStorageSaveData ofd_packets/00022144 [21:07:06]File name is /storage/ofd_packets/00022144 [21:07:06]Write 323 bytes [21:07:06]NVStorageSaveData done [21:07:06]OFDSenderStorePacket done [21:07:06]KKMCreateOFDPacket done [21:07:06]NVStorageSaveData kkm_last_timestamp [21:07:06]File name is /storage/kkm_last_timestamp [21:07:06]Write 4 bytes [21:07:06]NVStorageSaveData done [21:07:06]ExternCall_PrintAddStr [21:07:06]wPrintStart [21:07:06]Write to MH i2c: 01 00 00 00 41 41 [21:07:06]Write i2c OK [21:07:06]MH_I2C_Read... [21:07:06]Read from MH i2c: 01 [21:07:06]MH_I2C_Read... [21:07:06]Read from MH i2c: 01 07 00 [21:07:06]MH_I2C_Read... [21:07:06]Read from MH i2c: 01 07 00 00 41 00 00 00 00 00 FF 0F 56 [21:07:06]RasterBufferAndPrint [21:07:06]line 小褔械褌 N : (3)254367 [21:07:06]line 袠袧袧: 02508201610067 [21:07:06]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:07:06]line 袩袪袨袛袗袞袗 [21:07:06]line 孝芯胁邪褉: 4700002082931 [21:07:06]line 袙芯写泻邪 啸芯褉芯褕邪褟 0,1谢 [21:07:06]line 2.000 * 70.00 [21:07:06]line = 140.00 [21:07:06]line 袧袛小 12% 袧小袩 1% [21:07:06]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:07:06]line 袠孝袨袚袨: 140.00 [21:07:06]line 袧小袩 1% : 1.24 [21:07:06]line 袧袛小 12% : 14.87 [21:07:06]line 袧邪谢懈褔薪褘屑懈: 140.00 [21:07:06]line 袘械蟹薪邪谢.: 0.00 [21:07:06]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [21:07:06]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [21:07:06]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:07:06]line 效械泻 58 14.06.2024 21:07 [21:07:06]line 小屑械薪邪: 325 肖肖袛: 1.0 [21:07:06]line 袟袧袦: 0300000200 [21:07:06]line 袪袧袦: 0000000000099755 [21:07:06]line 袙械褉褋懈褟 袣袣袦: 001 [21:07:06]line 肖袦: 0000000000965344 [21:07:06]line 肖袛: 22144 [21:07:06]line 肖袩袛: 36674024389109 [21:07:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T210720&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22144&fm=36674024389109&tin=02508201610067®Number=0000000000099755&sum=14000 [21:07:06]line 0 [21:07:06]OFD Sender: Processing packet 22144 [packets to send 5, broken 4] [21:07:06]ProducePacketName [21:07:06]name=ofd_packets/00022144 [21:07:06]OFD Sender: To server: 嚂鰌G, [21:07:06]CommunicateWithHost lk.salyk.kg:30040 [21:07:06]ConnectInit lk.salyk.kg [21:07:06]written 0, free lines is 4095 [21:07:06]Connected sock=10 [21:07: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 25 01 00 00 58 3C 1D 01 94 7A 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 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 08 B1 6C 66 0E 04 04 00 45 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 80 56 00 00 35 04 06 00 21 5A D6 32 39 F5 80 3E A4 9A 25 E3 3B 24 [21:07: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 98 25 47 00 7E 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 80 56 00 00 F4 03 04 00 C7 59 6C 66 B6 04 01 00 00 72 16 03 EB 2A 3A 1F 31 [21:07:06]CommunicateWithHost err = 0 [21:07:06]CheckOFDResponse [21:07:06]1017 (14) - 77093643461234 [21:07:06]1041 (16) - 0000000000965344 [21:07:06]1040 (4) - 22144 [21:07:06]1012 (4) - 14.06.2024 14:55 [21:07:06]1206 (1) - 0 [21:07:06]OFD Sender: Remove packet 22144 [21:07:06]ProducePacketName [21:07:06]name=ofd_packets/00022144 [21:07:06]NVStorageDeleteData [21:07:07]Write to MH i2c: 01 00 00 28 41 69 [21:07:07]Write i2c OK [21:07:07]MH_I2C_Read... [21:07:07]Read from MH i2c: 01 [21:07:07]MH_I2C_Read... [21:07:07]Read from MH i2c: 01 07 00 [21:07:07]MH_I2C_Read... [21:07:07]Read from MH i2c: 01 07 00 28 41 00 00 00 00 00 2B 0D A8 [21:07:07]RasterBufferAndPrint [21:07:07]line [21:07:07]line [21:07:07]line [21:07:07]line [21:07:07]line [21:07:07]written 0, free lines is 3379 [21:07:07]MH_Cut [21:07:07]Write to MH i2c: D1 01 00 2F 41 01 42 [21:07:07]Write i2c OK [21:07:07]MH_I2C_Read... [21:07:07]Read from MH i2c: D1 [21:07:07]MH_I2C_Read... [21:07:07]Read from MH i2c: D1 01 00 [21:07:07]MH_I2C_Read... [21:07:07]Read from MH i2c: D1 01 00 2F 41 00 41 [21:07:07]Write to MH i2c: 01 00 00 30 41 71 [21:07:07]Write i2c OK [21:07:07]MH_I2C_Read... [21:07:07]OFD Sender: No OFD packet to send [21:07:07]*** Cut start [21:07:07]*** Partial cut [21:07:07]*** CUTSNS_PIN = 1 [21:07:07]*** CUTSNS_PIN = 0 [21:07:07]*** Brake cut motor [21:07:08]Read from MH i2c: 01 [21:07:08]MH_I2C_Read... [21:07:08]*** Stop cut motor [21:07:08]*** Cut end [21:07:08]Read from MH i2c: 01 07 00 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: 01 07 00 30 41 00 00 00 00 00 FF 0F 86 [21:07:08]process_action close_receipt done [21:07:08]requested_data is exist [21:07:08]produce_requested_data [21:07:08]requested_item fm.sn is exist - process it [21:07:08]wFMCommunicate request_size=4 [21:07:08]MH_SAM_APDU [21:07:08]CAPDU: 80 11 00 00 [21:07:08]Write to MH i2c: E2 08 00 31 41 80 11 00 00 00 00 00 00 EC [21:07:08]Write i2c OK [21:07:08]MH_I2C_Read... [21:07:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:08]Read from MH i2c: E2 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: E2 17 00 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: E2 17 00 31 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 3E [21:07:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [21:07:08]wFMCommunicate OK [21:07:08]requested_item fd.num is exist - process it [21:07:08]SAM_PROTO_GetFieldsCounters [21:07:08]wFMCommunicate request_size=4 [21:07:08]MH_SAM_APDU [21:07:08]CAPDU: 80 13 00 00 [21:07:08]Write to MH i2c: E2 08 00 32 41 80 13 00 00 00 00 00 00 EF [21:07:08]Write i2c OK [21:07:08]MH_I2C_Read... [21:07:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:08]Read from MH i2c: E2 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: E2 62 00 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: E2 62 00 32 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 80 56 00 00 0E 04 04 00 45 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 E3 [21:07:08]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 80 56 00 00 0E 04 04 00 45 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 [21:07:08]wFMCommunicate OK [21:07:08]SAM_PROTO_GetFieldsCounters done [21:07:08]requested_item shift.num is exist - process it [21:07:08]requested_item shift.opened is exist - process it [21:07:08]req_shift_opened [21:07:08]FM_GetShiftState [21:07:08]SAM_PROTO_GetShiftState [21:07:08]wFMCommunicate request_size=4 [21:07:08]MH_SAM_APDU [21:07:08]CAPDU: 80 13 01 00 [21:07:08]Write to MH i2c: E2 08 00 33 41 80 13 01 00 00 00 00 00 F1 [21:07:08]Write i2c OK [21:07:08]MH_I2C_Read... [21:07:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:08]Read from MH i2c: E2 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: E2 0E 00 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: E2 0E 00 33 41 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 62 [21:07:08]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [21:07:08]wFMCommunicate OK [21:07:08]SAM_PROTO_GetShiftState done [21:07:08]FM_GetShiftState done [21:07:08]req_shift_opened done [21:07:08]requested_item shift.open_date is exist - process it [21:07:08]req_shift_open_date [21:07:08]req_shift_open_date done [21:07:08]produce_requested_data done [21:07:08]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22144,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [21:07:08]process_action_free close_receipt [21:07:08]json_value_free [21:07:08]json_value_free done [21:07:08]process_json_proto returns [21:07:08]Send response to host [21:07:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22144,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [21:07:08]free response buf [21:07:08]execute_script done [21:07:08]execute_script returns [21:07:08]free content buf [21:07:08]Sock 8.Close socket [21:07:08]Sock 8.Thread stoped [21:07:12]OFD Sender: No OFD packet to send [21:07:17]OFD Sender: No OFD packet to send [21:07:22]OFD Sender: No OFD packet to send [21:07:27]OFD Sender: No OFD packet to send [21:07:32]OFD Sender: No OFD packet to send [21:07:37]OFD Sender: No OFD packet to send [21:07:42]OFD Sender: No OFD packet to send [21:07:47]OFD Sender: No OFD packet to send [21:07:52]OFD Sender: No OFD packet to send [21:07:57]OFD Sender: No OFD packet to send [21:08:02]OFD Sender: No OFD packet to send [21:08:07]OFD Sender: No OFD packet to send [21:08:12]OFD Sender: No OFD packet to send [21:08:17]OFD Sender: No OFD packet to send [21:08:22]OFD Sender: No OFD packet to send [21:08:27]OFD Sender: No OFD packet to send [21:08:32]OFD Sender: No OFD packet to send [21:08:37]OFD Sender: No OFD packet to send [21:08:42]OFD Sender: No OFD packet to send [21:08:47]OFD Sender: No OFD packet to send [21:08:52]OFD Sender: No OFD packet to send [21:08:57]OFD Sender: No OFD packet to send [21:09:02]OFD Sender: No OFD packet to send [21:09:07]OFD Sender: No OFD packet to send [21:09:12]OFD Sender: No OFD packet to send [21:09:17]OFD Sender: No OFD packet to send [21:09:22]OFD Sender: No OFD packet to send [21:09:27]OFD Sender: No OFD packet to send [21:09:32]OFD Sender: No OFD packet to send [21:09:37]OFD Sender: No OFD packet to send [21:09:42]OFD Sender: No OFD packet to send [21:09:47]OFD Sender: No OFD packet to send [21:09:52]OFD Sender: No OFD packet to send [21:09:57]OFD Sender: No OFD packet to send [21:10:02]OFD Sender: No OFD packet to send [21:10:07]OFD Sender: No OFD packet to send [21:10:12]OFD Sender: No OFD packet to send [21:10:17]OFD Sender: No OFD packet to send [21:10:22]OFD Sender: No OFD packet to send [21:10:27]OFD Sender: No OFD packet to send [21:10:32]OFD Sender: No OFD packet to send [21:10:37]OFD Sender: No OFD packet to send [21:10:42]OFD Sender: No OFD packet to send [21:10:47]accept exits with 9 [21:10:47]New connection [21:10:47]New thread 3067321700 created [21:10:47]Thread 3067178340 joined [21:10:47]Waiting for new connection... [21:10:47] Sock 9.Parse request [21:10:47]Sock 9.Check first char [21:10:47]Sock 9.First char is OK [21:10:47]request: POST /json_proto HTTP/1.0 [21:10:47]Method: POST [21:10:47]URL: /json_proto [21:10:47]Method is POST - this is cgi request [21:10:47]url: /json_proto [21:10:47]query_string will be loaded in cgi processing [21:10:47]execute_cgi json_proto POST (null) [21:10:47]execute_cgi path=json_proto method=POST [21:10:47]POST find Content-Length [21:10:47]Host: 172.17.35.133:8080 [21:10:47]Content-Length: 823 [21:10:47]Content-Type: application/json [21:10:47] [21:10:47]POST finish read [21:10:47]Found Content-Length = 823 [21:10:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254368", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:47]execute_script... [21:10: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)254368", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:47]POST & json_proto [21:10:47]process_json_proto [21:10:47]json parsed OK: [21:10:47]protocol is kg_v1.0 [21:10:47]action value=close_receipt [21:10:47]process_action close_receipt [21:10:47]cmd_close_receipt [21:10:47]MH_GetDate [21:10:47]Write to MH i2c: F0 00 00 34 41 64 [21:10:47]Write i2c OK [21:10:47]MH_I2C_Read... [21:10:47]Read from MH i2c: F0 [21:10:47]MH_I2C_Read... [21:10:47]Read from MH i2c: F0 09 00 [21:10:47]MH_I2C_Read... [21:10:47]Read from MH i2c: F0 09 00 34 41 00 E7 B1 6C 66 8C 55 28 65 45 [21:10:47]GetLastDocTimeStamp 1718399240 [21:10:47]current date 1718399463 [21:10:47]FM_GetShiftState [21:10:47]SAM_PROTO_GetShiftState [21:10:47]wFMCommunicate request_size=4 [21:10:47]MH_SAM_APDU [21:10:47]CAPDU: 80 13 01 00 [21:10:47]Write to MH i2c: E2 08 00 35 41 80 13 01 00 00 00 00 00 F3 [21:10:47]Write i2c OK [21:10:47]MH_I2C_Read... [21:10:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:47]OFD Sender: No OFD packet to send [21:10:47]Read from MH i2c: E2 [21:10:47]MH_I2C_Read... [21:10:47]Read from MH i2c: E2 0E 00 [21:10:47]MH_I2C_Read... [21:10:47]Read from MH i2c: E2 0E 00 35 41 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 64 [21:10:47]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [21:10:47]wFMCommunicate OK [21:10:47]SAM_PROTO_GetShiftState done [21:10:47]FM_GetShiftState done [21:10:47]opened in 1718324742 [21:10:47]opened+sec_in_day 1718411142 [21:10:47]quantity*price = 13800 [21:10:47]sum+1 = 13801 [21:10:47]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 138.00 袧小袩 1% : 1.22 袧袛小 12% : 14.65 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 138.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 59 14.06.2024 21:11 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袗袣袘 袣褘褉谐褘蟹褋褌邪薪 肖袦: 0000000000965344 肖袛: 22145 肖袩袛: 25749480265993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T211103&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22145&fm=25749480265993&tin=02508201610067®Number=0000000000099755&sum=13800 0 [21:10:48]StoreToDocumentArchive [21:10:48]shift 325 fd 22145 [21:10:48]save to /storage/0325/doc_00022145 [21:10:48]save last doc name /storage/0325/doc_00022145 to /storage/kkm_last_doc_name [21:10:48]save OK [21:10:48]Clear old archive folders... [21:10:48]ProcessDocumentItem done err = 0, tmpTLVsize=274 [21:10:48]tlvbuf is B6FB2230 [21:10:48]SAM_PROTO_ClearQueue [21:10:48]wFMCommunicate request_size=4 [21:10:48]MH_SAM_APDU [21:10:48]CAPDU: 80 09 00 00 [21:10:48]Write to MH i2c: E2 08 00 42 41 80 09 00 00 00 00 00 00 F5 [21:10:48]Write i2c OK [21:10:48]MH_I2C_Read... [21:10:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:48]Read from MH i2c: E2 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 03 00 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 03 00 42 41 00 90 00 F7 [21:10:48]RAPDU: 90 00 [21:10:48]wFMCommunicate OK [21:10:48]SAM_PROTO_ClearQueue done [21:10:48]KKMCreateOFDPacket [21:10:48]OFDProtocolAddRootSTLVToBuf [21:10:48]FM_MakeSignedData [21:10:48]FM_MakeSignedData [21:10:48]SAM_PROTO_SignData [21:10:48]wFMCommunicate request_size=4 [21:10:48]MH_SAM_APDU [21:10:48]CAPDU: 80 0D 01 02 [21:10:48]Write to MH i2c: E2 08 00 43 41 80 0D 01 02 00 00 00 00 FD [21:10:48]Write i2c OK [21:10:48]MH_I2C_Read... [21:10:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:48]Read from MH i2c: E2 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 03 00 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 03 00 43 41 00 90 00 F8 [21:10:48]RAPDU: 90 00 [21:10:48]wFMCommunicate OK [21:10:48]wFMCommunicate request_size=255 [21:10:48]MH_SAM_APDU [21:10:48]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E7 B1 6C 66 0E 04 04 00 45 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 [21:10:48]Write to MH i2c: E2 02 01 44 41 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E7 B1 6C 66 0E 04 04 00 45 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 2F [21:10:48]Write i2c OK [21:10:48]MH_I2C_Read... [21:10:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:49]Read from MH i2c: E2 [21:10:49]MH_I2C_Read... [21:10:49]Read from MH i2c: E2 03 00 [21:10:49]MH_I2C_Read... [21:10:49]Read from MH i2c: E2 03 00 44 41 00 90 00 F9 [21:10:49]RAPDU: 90 00 [21:10:49]wFMCommunicate OK [21:10:49]wFMCommunicate request_size=33 [21:10:49]MH_SAM_APDU [21:10:49]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 36 35 33 34 34 10 04 04 00 81 56 00 00 35 04 06 00 17 6B 44 9F D9 09 [21:10:49]Write to MH i2c: E2 24 00 45 41 80 0D 02 02 1C 00 30 30 30 30 39 36 35 33 34 34 10 04 04 00 81 56 00 00 35 04 06 00 17 6B 44 9F D9 09 00 00 AC [21:10:49]Write i2c OK [21:10:49]MH_I2C_Read... [21:10:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:49]Read from MH i2c: E2 [21:10:49]MH_I2C_Read... [21:10:49]Read from MH i2c: E2 03 00 [21:10:49]MH_I2C_Read... [21:10:49]Read from MH i2c: E2 03 00 45 41 00 90 00 FA [21:10:49]RAPDU: 90 00 [21:10:49]wFMCommunicate OK [21:10:49]wFMCommunicate request_size=4 [21:10:49]MH_SAM_APDU [21:10:49]CAPDU: 80 0D 03 02 [21:10:49]Write to MH i2c: E2 08 00 46 41 80 0D 03 02 00 00 00 00 02 [21:10:49]Write i2c OK [21:10:49]MH_I2C_Read... [21:10:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:49]Read from MH i2c: E2 [21:10:49]MH_I2C_Read... [21:10:49]Read from MH i2c: E2 0B 00 [21:10:49]MH_I2C_Read... [21:10:49]Read from MH i2c: E2 0B 00 46 41 00 BC 10 A0 87 7A 6C DE 87 90 00 41 [21:10:49]RAPDU: BC 10 A0 87 7A 6C DE 87 90 00 [21:10:49]wFMCommunicate OK [21:10:49]SAM_PROTO_SignData done [21:10:49]FM_MakeSignedData done [21:10:49]CreateOFDProtocolMessage [21:10:49]wFMCommunicate request_size=4 [21:10:49]MH_SAM_APDU [21:10:49]CAPDU: 80 11 00 00 [21:10:49]Write to MH i2c: E2 08 00 47 41 80 11 00 00 00 00 00 00 02 [21:10:49]Write i2c OK [21:10:49]MH_I2C_Read... [21:10:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:49]Read from MH i2c: E2 [21:10:49]MH_I2C_Read... [21:10:49]Read from MH i2c: E2 17 00 [21:10:49]MH_I2C_Read... [21:10:49]Read from MH i2c: E2 17 00 47 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 54 [21:10:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [21:10:49]wFMCommunicate OK [21:10:49]CreateOFDProtocolMessage done [21:10:49]OFDSenderStorePacket 22145 [21:10:49]StoreOFDPacket docnum=22145 [21:10:49]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 4C BD 1E 01 AF 9A 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E7 B1 6C 66 0E 04 04 00 45 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 81 56 00 00 35 04 06 00 17 6B 44 9F D9 09 BC 10 A0 87 7A 6C DE 87 [21:10:49]CheckFolder [21:10:49]dirname=/storage/ofd_packets [21:10:49]CheckFolder done [21:10:49]ProducePacketName [21:10:49]name=ofd_packets/00022145 [21:10:49]NVStorageSaveData ofd_packets/00022145 [21:10:49]File name is /storage/ofd_packets/00022145 [21:10:49]Write 324 bytes [21:10:49]NVStorageSaveData done [21:10:49]OFDSenderStorePacket done [21:10:49]KKMCreateOFDPacket done [21:10:49]NVStorageSaveData kkm_last_timestamp [21:10:49]File name is /storage/kkm_last_timestamp [21:10:49]Write 4 bytes [21:10:49]NVStorageSaveData done [21:10:49]ExternCall_PrintAddStr [21:10:49]wPrintStart [21:10:49]Write to MH i2c: 01 00 00 48 41 89 [21:10:49]Write i2c OK [21:10:49]MH_I2C_Read... [21:10:49]Read from MH i2c: 01 [21:10:49]MH_I2C_Read... [21:10:49]Read from MH i2c: 01 07 00 [21:10:49]MH_I2C_Read... [21:10:49]Read from MH i2c: 01 07 00 48 41 00 00 00 00 00 FF 0F 9E [21:10:49]RasterBufferAndPrint [21:10:49]line 小褔械褌 N : (3)254368 [21:10:49]line 袠袧袧: 02508201610067 [21:10:49]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:10:49]line 袩袪袨袛袗袞袗 [21:10:49]line 孝芯胁邪褉: 4640030091645 [21:10:49]line 小懈谐邪褉械褌褘 ESSE Exchange M [21:10:49]line 1.000 * 138.00 [21:10:49]line = 138.00 [21:10:49]line 袧袛小 12% 袧小袩 1% [21:10:49]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:10:49]line 袠孝袨袚袨: 138.00 [21:10:49]line 袧小袩 1% : 1.22 [21:10:49]line 袧袛小 12% : 14.65 [21:10:49]line 袧邪谢懈褔薪褘屑懈: 0.00 [21:10:49]line 袘械蟹薪邪谢.: 138.00 [21:10:49]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [21:10:49]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [21:10:49]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:10:49]line 效械泻 59 14.06.2024 21:11 [21:10:49]line 小屑械薪邪: 325 肖肖袛: 1.0 [21:10:49]line 袟袧袦: 0300000200 [21:10:49]line 袪袧袦: 0000000000099755 [21:10:49]line 袙械褉褋懈褟 袣袣袦: 001 [21:10:49]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袗袣袘 袣褘褉谐褘蟹褋褌邪薪 [21:10:49]line 肖袦: 0000000000965344 [21:10:49]line 肖袛: 22145 [21:10:49]line 肖袩袛: 25749480265993 [21:10:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T211103&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22145&fm=25749480265993&tin=02508201610067®Number=0000000000099755&sum=13800 [21:10:49]line 0 [21:10:49]OFD Sender: Processing packet 22145 [packets to send 5, broken 4] [21:10:49]ProducePacketName [21:10:49]name=ofd_packets/00022145 [21:10:49]OFD Sender: To server: 嚂鰌G, [21:10:49]CommunicateWithHost lk.salyk.kg:30040 [21:10:49]ConnectInit lk.salyk.kg [21:10:49]written 0, free lines is 4095 [21:10:49]Connected sock=10 [21:10: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 4C BD 1E 01 AF 9A 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E7 B1 6C 66 0E 04 04 00 45 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 81 56 00 00 35 04 06 00 17 6B 44 9F D9 09 BC 10 A0 87 7A 6C DE 87 [21:10: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 26 83 47 00 DF C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 81 56 00 00 F4 03 04 00 A6 5A 6C 66 B6 04 01 00 00 AA 96 2D DE D8 FD C2 47 [21:10:49]CommunicateWithHost err = 0 [21:10:49]CheckOFDResponse [21:10:49]1017 (14) - 77093643461234 [21:10:49]1041 (16) - 0000000000965344 [21:10:49]1040 (4) - 22145 [21:10:49]1012 (4) - 14.06.2024 14:58 [21:10:49]1206 (1) - 0 [21:10:49]OFD Sender: Remove packet 22145 [21:10:49]ProducePacketName [21:10:49]name=ofd_packets/00022145 [21:10:49]NVStorageDeleteData [21:10:50]Write to MH i2c: 01 00 00 72 41 B3 [21:10:50]Write i2c OK [21:10:50]MH_I2C_Read... [21:10:50]Read from MH i2c: 01 [21:10:50]MH_I2C_Read... [21:10:50]Read from MH i2c: 01 07 00 [21:10:50]MH_I2C_Read... [21:10:50]Read from MH i2c: 01 07 00 72 41 00 00 00 00 00 0D 0D D4 [21:10:50]RasterBufferAndPrint [21:10:50]line [21:10:50]line [21:10:50]line [21:10:50]line [21:10:50]line [21:10:50]written 0, free lines is 3347 [21:10:50]MH_Cut [21:10:50]Write to MH i2c: D1 01 00 79 41 01 8C [21:10:50]Write i2c OK [21:10:50]MH_I2C_Read... [21:10:50]Read from MH i2c: D1 [21:10:50]MH_I2C_Read... [21:10:50]Read from MH i2c: D1 01 00 [21:10:50]MH_I2C_Read... [21:10:50]Read from MH i2c: D1 01 00 79 41 00 8B [21:10:50]Write to MH i2c: 01 00 00 7A 41 BB [21:10:50]Write i2c OK [21:10:50]MH_I2C_Read... [21:10:50]OFD Sender: No OFD packet to send [21:10:50]*** Cut start [21:10:50]*** Partial cut [21:10:50]*** CUTSNS_PIN = 1 [21:10:50]*** CUTSNS_PIN = 0 [21:10:50]*** Brake cut motor [21:10:51]Read from MH i2c: 01 [21:10:51]MH_I2C_Read... [21:10:51]*** Stop cut motor [21:10:51]*** Cut end [21:10:51]Read from MH i2c: 01 07 00 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: 01 07 00 7A 41 00 00 00 00 00 FF 0F D0 [21:10:51]process_action close_receipt done [21:10:51]requested_data is exist [21:10:51]produce_requested_data [21:10:51]requested_item fm.sn is exist - process it [21:10:51]wFMCommunicate request_size=4 [21:10:51]MH_SAM_APDU [21:10:51]CAPDU: 80 11 00 00 [21:10:51]Write to MH i2c: E2 08 00 7B 41 80 11 00 00 00 00 00 00 36 [21:10:51]Write i2c OK [21:10:51]MH_I2C_Read... [21:10:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:51]Read from MH i2c: E2 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: E2 17 00 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: E2 17 00 7B 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 88 [21:10:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [21:10:51]wFMCommunicate OK [21:10:51]requested_item fd.num is exist - process it [21:10:51]SAM_PROTO_GetFieldsCounters [21:10:51]wFMCommunicate request_size=4 [21:10:51]MH_SAM_APDU [21:10:51]CAPDU: 80 13 00 00 [21:10:51]Write to MH i2c: E2 08 00 7C 41 80 13 00 00 00 00 00 00 39 [21:10:51]Write i2c OK [21:10:51]MH_I2C_Read... [21:10:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:51]Read from MH i2c: E2 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: E2 62 00 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: E2 62 00 7C 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 81 56 00 00 0E 04 04 00 45 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 31 [21:10:51]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 81 56 00 00 0E 04 04 00 45 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 [21:10:51]wFMCommunicate OK [21:10:51]SAM_PROTO_GetFieldsCounters done [21:10:51]requested_item shift.num is exist - process it [21:10:51]requested_item shift.opened is exist - process it [21:10:51]req_shift_opened [21:10:51]FM_GetShiftState [21:10:51]SAM_PROTO_GetShiftState [21:10:51]wFMCommunicate request_size=4 [21:10:51]MH_SAM_APDU [21:10:51]CAPDU: 80 13 01 00 [21:10:51]Write to MH i2c: E2 08 00 7D 41 80 13 01 00 00 00 00 00 3B [21:10:51]Write i2c OK [21:10:51]MH_I2C_Read... [21:10:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:51]Read from MH i2c: E2 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: E2 0E 00 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: E2 0E 00 7D 41 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 AC [21:10:51]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [21:10:51]wFMCommunicate OK [21:10:51]SAM_PROTO_GetShiftState done [21:10:51]FM_GetShiftState done [21:10:51]req_shift_opened done [21:10:51]requested_item shift.open_date is exist - process it [21:10:51]req_shift_open_date [21:10:51]req_shift_open_date done [21:10:51]produce_requested_data done [21:10:51]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22145,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [21:10:51]process_action_free close_receipt [21:10:51]json_value_free [21:10:51]json_value_free done [21:10:51]process_json_proto returns [21:10:51]Send response to host [21:10:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22145,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [21:10:51]free response buf [21:10:51]execute_script done [21:10:51]execute_script returns [21:10:51]free content buf [21:10:51]Sock 9.Close socket [21:10:51]Sock 9.Thread stoped [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:51]accept exits with 8 [21:36:51]New connection [21:36:51]New thread 3067178340 created [21:36:51]Thread 3067321700 joined [21:36:51]Waiting for new connection... [21:36:51] Sock 8.Parse request [21:36:51]Sock 8.Check first char [21:36:51]Sock 8.First char is OK [21:36:51]request: POST /json_proto HTTP/1.0 [21:36:51]Method: POST [21:36:51]URL: /json_proto [21:36:51]Method is POST - this is cgi request [21:36:51]url: /json_proto [21:36:51]query_string will be loaded in cgi processing [21:36:51]execute_cgi json_proto POST (null) [21:36:51]execute_cgi path=json_proto method=POST [21:36:51]POST find Content-Length [21:36:51]Host: 172.17.35.133:8080 [21:36:51]Content-Length: 1216 [21:36:51]Content-Type: application/json [21:36:51] [21:36:51]POST finish read [21:36:51]Found Content-Length = 1216 [21:36:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254369", "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": "4700000482757", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043C\u0430\u043D\u0433,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:51]execute_script... [21:36:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254369", "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": "4700000482757", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043C\u0430\u043D\u0433,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:51]POST & json_proto [21:36:51]process_json_proto [21:36:51]json parsed OK: [21:36:51]protocol is kg_v1.0 [21:36:51]action value=close_receipt [21:36:51]process_action close_receipt [21:36:51]cmd_close_receipt [21:36:51]MH_GetDate [21:36:51]Write to MH i2c: F0 00 00 7E 41 AE [21:36:51]Write i2c OK [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: F0 [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: F0 09 00 [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: F0 09 00 7E 41 00 03 B8 6C 66 8C 55 28 65 B2 [21:36:51]GetLastDocTimeStamp 1718399463 [21:36:51]current date 1718401027 [21:36:51]FM_GetShiftState [21:36:51]SAM_PROTO_GetShiftState [21:36:51]wFMCommunicate request_size=4 [21:36:51]MH_SAM_APDU [21:36:51]CAPDU: 80 13 01 00 [21:36:51]Write to MH i2c: E2 08 00 7F 41 80 13 01 00 00 00 00 00 3D [21:36:51]Write i2c OK [21:36:51]MH_I2C_Read... [21:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:51]Read from MH i2c: E2 [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: E2 0E 00 [21:36:51]MH_I2C_Read... [21:36:51]Read from MH i2c: E2 0E 00 7F 41 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 AE [21:36:51]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [21:36:51]wFMCommunicate OK [21:36:51]SAM_PROTO_GetShiftState done [21:36:51]FM_GetShiftState done [21:36:51]opened in 1718324742 [21:36:51]opened+sec_in_day 1718411142 [21:36:51]quantity*price = 10000 [21:36:51]sum+1 = 10001 [21:36:51]Check (price>sum+1) || (price+1sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 孝芯胁邪褉: 4700000482757 袧邪锌懈褌芯泻 Nitro Fr 谐邪蟹 屑邪薪谐,泻谢褍斜 卸/斜 0,45谢 1.000 * 95.00 = 95.00 袧袛小 12% 袧小袩 1% > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 195.00 袧小袩 1% : 1.72 袧袛小 12% : 20.71 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 195.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 60 14.06.2024 21:37 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袗袣袘 袣褘褉谐褘蟹褋褌邪薪 肖袦: 0000000000965344 肖袛: 22146 肖袩袛: 7191809898213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T213707&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22146&fm=7191809898213&tin=02508201610067®Number=0000000000099755&sum=19500 0 [21:36:52]StoreToDocumentArchive [21:36:52]shift 325 fd 22146 [21:36:52]save to /storage/0325/doc_00022146 [21:36:52]save last doc name /storage/0325/doc_00022146 to /storage/kkm_last_doc_name [21:36:52]save OK [21:36:52]Clear old archive folders... [21:36:52]ProcessDocumentItem done err = 0, tmpTLVsize=431 [21:36:52]tlvbuf is 0029D290 [21:36:52]SAM_PROTO_ClearQueue [21:36:52]wFMCommunicate request_size=4 [21:36:52]MH_SAM_APDU [21:36:52]CAPDU: 80 09 00 00 [21:36:52]Write to MH i2c: E2 08 00 8C 41 80 09 00 00 00 00 00 00 3F [21:36:52]Write i2c OK [21:36:52]MH_I2C_Read... [21:36:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:52]Read from MH i2c: E2 [21:36:52]MH_I2C_Read... [21:36:52]Read from MH i2c: E2 03 00 [21:36:52]MH_I2C_Read... [21:36:52]Read from MH i2c: E2 03 00 8C 41 00 90 00 41 [21:36:52]RAPDU: 90 00 [21:36:52]wFMCommunicate OK [21:36:52]SAM_PROTO_ClearQueue done [21:36:52]KKMCreateOFDPacket [21:36:52]OFDProtocolAddRootSTLVToBuf [21:36:52]FM_MakeSignedData [21:36:52]FM_MakeSignedData [21:36:52]SAM_PROTO_SignData [21:36:52]wFMCommunicate request_size=4 [21:36:52]MH_SAM_APDU [21:36:52]CAPDU: 80 0D 01 02 [21:36:52]Write to MH i2c: E2 08 00 8D 41 80 0D 01 02 00 00 00 00 47 [21:36:52]Write i2c OK [21:36:52]MH_I2C_Read... [21:36:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:52]Read from MH i2c: E2 [21:36:52]MH_I2C_Read... [21:36:52]Read from MH i2c: E2 03 00 [21:36:52]MH_I2C_Read... [21:36:52]Read from MH i2c: E2 03 00 8D 41 00 90 00 42 [21:36:52]RAPDU: 90 00 [21:36:52]wFMCommunicate OK [21:36:52]wFMCommunicate request_size=255 [21:36:52]MH_SAM_APDU [21:36:52]CAPDU: 80 0D 02 02 FA 03 00 AF 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 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C [21:36:52]Write to MH i2c: E2 02 01 8E 41 80 0D 02 02 FA 00 03 00 AF 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 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 00 00 66 [21:36:53]Write i2c OK [21:36:53]MH_I2C_Read... [21:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:53]Read from MH i2c: E2 [21:36:53]MH_I2C_Read... [21:36:53]Read from MH i2c: E2 03 00 [21:36:53]MH_I2C_Read... [21:36:53]Read from MH i2c: E2 03 00 8E 41 00 90 00 43 [21:36:53]RAPDU: 90 00 [21:36:53]wFMCommunicate OK [21:36:53]wFMCommunicate request_size=190 [21:36:53]MH_SAM_APDU [21:36:53]CAPDU: 80 0D 02 02 B9 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 03 B8 6C 66 0E 04 04 00 45 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 82 56 00 00 35 04 06 00 06 8A 79 46 36 E5 [21:36:53]Write to MH i2c: E2 C1 00 8F 41 80 0D 02 02 B9 00 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 03 B8 6C 66 0E 04 04 00 45 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 82 56 00 00 35 04 06 00 06 8A 79 46 36 E5 00 00 EC [21:36:53]Write i2c OK [21:36:53]MH_I2C_Read... [21:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:53]Read from MH i2c: E2 [21:36:53]MH_I2C_Read... [21:36:53]Read from MH i2c: E2 03 00 [21:36:53]MH_I2C_Read... [21:36:53]Read from MH i2c: E2 03 00 8F 41 00 90 00 44 [21:36:53]RAPDU: 90 00 [21:36:53]wFMCommunicate OK [21:36:53]wFMCommunicate request_size=4 [21:36:53]MH_SAM_APDU [21:36:53]CAPDU: 80 0D 03 02 [21:36:53]Write to MH i2c: E2 08 00 90 41 80 0D 03 02 00 00 00 00 4C [21:36:53]Write i2c OK [21:36:53]MH_I2C_Read... [21:36:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:53]Read from MH i2c: E2 [21:36:53]MH_I2C_Read... [21:36:53]Read from MH i2c: E2 0B 00 [21:36:53]MH_I2C_Read... [21:36:53]Read from MH i2c: E2 0B 00 90 41 00 3C EA 9F E0 1E 6C C2 71 90 00 AF [21:36:53]RAPDU: 3C EA 9F E0 1E 6C C2 71 90 00 [21:36:53]wFMCommunicate OK [21:36:53]SAM_PROTO_SignData done [21:36:53]FM_MakeSignedData done [21:36:53]CreateOFDProtocolMessage [21:36:53]wFMCommunicate request_size=4 [21:36:53]MH_SAM_APDU [21:36:53]CAPDU: 80 11 00 00 [21:36:53]Write to MH i2c: E2 08 00 91 41 80 11 00 00 00 00 00 00 4C [21:36:53]Write i2c OK [21:36:53]MH_I2C_Read... [21:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:53]Read from MH i2c: E2 [21:36:53]MH_I2C_Read... [21:36:53]Read from MH i2c: E2 17 00 [21:36:53]MH_I2C_Read... [21:36:53]Read from MH i2c: E2 17 00 91 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 9E [21:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [21:36:53]wFMCommunicate OK [21:36:53]CreateOFDProtocolMessage done [21:36:53]OFDSenderStorePacket 22146 [21:36:53]StoreOFDPacket docnum=22146 [21:36:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 C3 01 00 00 04 5B BB 01 C9 BD 5A 03 01 00 03 00 AF 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 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 03 B8 6C 66 0E 04 04 00 45 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 82 56 00 00 35 04 06 00 06 8A 79 46 36 E5 3C EA 9F E0 1E 6C C2 71 [21:36:53]CheckFolder [21:36:53]dirname=/storage/ofd_packets [21:36:53]CheckFolder done [21:36:53]ProducePacketName [21:36:53]name=ofd_packets/00022146 [21:36:53]NVStorageSaveData ofd_packets/00022146 [21:36:53]File name is /storage/ofd_packets/00022146 [21:36:53]Write 481 bytes [21:36:53]NVStorageSaveData done [21:36:53]OFDSenderStorePacket done [21:36:53]KKMCreateOFDPacket done [21:36:53]NVStorageSaveData kkm_last_timestamp [21:36:53]File name is /storage/kkm_last_timestamp [21:36:53]Write 4 bytes [21:36:53]NVStorageSaveData done [21:36:53]ExternCall_PrintAddStr [21:36:53]wPrintStart [21:36:53]Write to MH i2c: 01 00 00 92 41 D3 [21:36:53]Write i2c OK [21:36:53]MH_I2C_Read... [21:36:53]Read from MH i2c: 01 [21:36:53]MH_I2C_Read... [21:36:53]Read from MH i2c: 01 07 00 [21:36:53]MH_I2C_Read... [21:36:53]Read from MH i2c: 01 07 00 92 41 00 00 00 00 00 FF 0F E8 [21:36:53]RasterBufferAndPrint [21:36:53]line 小褔械褌 N : (3)254369 [21:36:53]line 袠袧袧: 02508201610067 [21:36:53]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:36:53]line 袩袪袨袛袗袞袗 [21:36:53]line 孝芯胁邪褉: 4870001571528 [21:36:53]line 袙芯写邪 ASU 锌懈褌 薪.谐邪蟹 锌械褉褋懈泻 袩协孝 1,0 谢 [21:36:53]line 1.000 * 100.00 [21:36:53]line = 100.00 [21:36:53]line 袧袛小 12% 袧小袩 1% [21:36:53]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:36:53]line 孝芯胁邪褉: 4700000482757 [21:36:53]line 袧邪锌懈褌芯泻 Nitro Fr 谐邪蟹 屑邪薪谐,泻谢褍斜 卸/斜 0,45谢 [21:36:53]line 1.000 * 95.00 [21:36:53]line = 95.00 [21:36:53]line 袧袛小 12% 袧小袩 1% [21:36:53]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:36:53]line 袠孝袨袚袨: 195.00 [21:36:53]line 袧小袩 1% : 1.72 [21:36:53]line 袧袛小 12% : 20.71 [21:36:53]line 袧邪谢懈褔薪褘屑懈: 0.00 [21:36:53]line 袘械蟹薪邪谢.: 195.00 [21:36:53]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [21:36:53]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [21:36:53]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:36:53]line 效械泻 60 14.06.2024 21:37 [21:36:53]line 小屑械薪邪: 325 肖肖袛: 1.0 [21:36:53]line 袟袧袦: 0300000200 [21:36:53]line 袪袧袦: 0000000000099755 [21:36:53]line 袙械褉褋懈褟 袣袣袦: 001 [21:36:53]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袗袣袘 袣褘褉谐褘蟹褋褌邪薪 [21:36:53]line 肖袦: 0000000000965344 [21:36:53]line 肖袛: 22146 [21:36:53]line 肖袩袛: 7191809898213 [21:36:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T213707&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22146&fm=7191809898213&tin=02508201610067®Number=0000000000099755&sum=19500 [21:36:53]line 0 [21:36:53]written 0, free lines is 4095 [21:36:53]OFD Sender: Processing packet 22146 [packets to send 5, broken 4] [21:36:53]ProducePacketName [21:36:53]name=ofd_packets/00022146 [21:36:53]OFD Sender: To server: 嚂鰌G, [21:36:53]CommunicateWithHost lk.salyk.kg:30040 [21:36:53]ConnectInit lk.salyk.kg [21:36:54]Connected sock=10 [21:36:54]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 C3 01 00 00 04 5B BB 01 C9 BD 5A 03 01 00 03 00 AF 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 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 03 B8 6C 66 0E 04 04 00 45 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 82 56 00 00 35 04 06 00 06 8A 79 46 36 E5 3C EA 9F E0 1E 6C C2 71 [21:36:54]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 33 47 00 23 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 82 56 00 00 F4 03 04 00 C3 60 6C 66 B6 04 01 00 00 E1 A4 7E 7B F0 46 09 24 [21:36:54]CommunicateWithHost err = 0 [21:36:54]CheckOFDResponse [21:36:54]1017 (14) - 77093643461234 [21:36:54]1041 (16) - 0000000000965344 [21:36:54]1040 (4) - 22146 [21:36:54]1012 (4) - 14.06.2024 15:24 [21:36:54]1206 (1) - 0 [21:36:54]OFD Sender: Remove packet 22146 [21:36:54]ProducePacketName [21:36:54]name=ofd_packets/00022146 [21:36:54]NVStorageDeleteData [21:36:54]Write to MH i2c: 01 00 00 C4 41 05 [21:36:54]Write i2c OK [21:36:54]MH_I2C_Read... [21:36:54]Read from MH i2c: 01 [21:36:54]MH_I2C_Read... [21:36:54]Read from MH i2c: 01 07 00 [21:36:54]MH_I2C_Read... [21:36:54]Read from MH i2c: 01 07 00 C4 41 00 00 00 00 00 B1 0C C9 [21:36:54]RasterBufferAndPrint [21:36:54]line [21:36:54]line [21:36:54]line [21:36:54]line [21:36:54]line [21:36:54]written 0, free lines is 3258 [21:36:54]MH_Cut [21:36:54]Write to MH i2c: D1 01 00 CB 41 01 DE [21:36:54]Write i2c OK [21:36:54]MH_I2C_Read... [21:36:54]Read from MH i2c: D1 [21:36:54]MH_I2C_Read... [21:36:54]Read from MH i2c: D1 01 00 [21:36:54]MH_I2C_Read... [21:36:54]Read from MH i2c: D1 01 00 CB 41 00 DD [21:36:54]Write to MH i2c: 01 00 00 CC 41 0D [21:36:54]Write i2c OK [21:36:54]MH_I2C_Read... [21:36:54]OFD Sender: No OFD packet to send [21:36:55]*** Cut start [21:36:55]*** Partial cut [21:36:55]*** CUTSNS_PIN = 1 [21:36:55]*** CUTSNS_PIN = 0 [21:36:55]*** Brake cut motor [21:36:55]Read from MH i2c: 01 [21:36:55]MH_I2C_Read... [21:36:55]*** Stop cut motor [21:36:55]*** Cut end [21:36:55]Read from MH i2c: 01 07 00 [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: 01 07 00 CC 41 00 00 00 00 00 FF 0F 22 [21:36:55]process_action close_receipt done [21:36:55]requested_data is exist [21:36:55]produce_requested_data [21:36:55]requested_item fm.sn is exist - process it [21:36:55]wFMCommunicate request_size=4 [21:36:55]MH_SAM_APDU [21:36:55]CAPDU: 80 11 00 00 [21:36:55]Write to MH i2c: E2 08 00 CD 41 80 11 00 00 00 00 00 00 88 [21:36:55]Write i2c OK [21:36:55]MH_I2C_Read... [21:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:55]Read from MH i2c: E2 [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: E2 17 00 [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: E2 17 00 CD 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 DA [21:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [21:36:55]wFMCommunicate OK [21:36:55]requested_item fd.num is exist - process it [21:36:55]SAM_PROTO_GetFieldsCounters [21:36:55]wFMCommunicate request_size=4 [21:36:55]MH_SAM_APDU [21:36:55]CAPDU: 80 13 00 00 [21:36:55]Write to MH i2c: E2 08 00 CE 41 80 13 00 00 00 00 00 00 8B [21:36:55]Write i2c OK [21:36:55]MH_I2C_Read... [21:36:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:55]Read from MH i2c: E2 [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: E2 62 00 [21:36:55]MH_I2C_Read... [21:36:55]Read from MH i2c: E2 62 00 CE 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 82 56 00 00 0E 04 04 00 45 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 87 [21:36: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 82 56 00 00 0E 04 04 00 45 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 [21:36:55]wFMCommunicate OK [21:36:55]SAM_PROTO_GetFieldsCounters done [21:36:55]requested_item shift.num is exist - process it [21:36:55]requested_item shift.opened is exist - process it [21:36:55]req_shift_opened [21:36:55]FM_GetShiftState [21:36:55]SAM_PROTO_GetShiftState [21:36:55]wFMCommunicate request_size=4 [21:36:55]MH_SAM_APDU [21:36:55]CAPDU: 80 13 01 00 [21:36:55]Write to MH i2c: E2 08 00 CF 41 80 13 01 00 00 00 00 00 8D [21:36:55]Write i2c OK [21:36:55]MH_I2C_Read... [21:36:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:56]Read from MH i2c: E2 [21:36:56]MH_I2C_Read... [21:36:56]Read from MH i2c: E2 0E 00 [21:36:56]MH_I2C_Read... [21:36:56]Read from MH i2c: E2 0E 00 CF 41 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 FE [21:36:56]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [21:36:56]wFMCommunicate OK [21:36:56]SAM_PROTO_GetShiftState done [21:36:56]FM_GetShiftState done [21:36:56]req_shift_opened done [21:36:56]requested_item shift.open_date is exist - process it [21:36:56]req_shift_open_date [21:36:56]req_shift_open_date done [21:36:56]produce_requested_data done [21:36:56]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22146,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [21:36:56]process_action_free close_receipt [21:36:56]json_value_free [21:36:56]json_value_free done [21:36:56]process_json_proto returns [21:36:56]Send response to host [21:36:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22146,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [21:36:56]free response buf [21:36:56]execute_script done [21:36:56]execute_script returns [21:36:56]free content buf [21:36:56]Sock 8.Close socket [21:36:56]Sock 8.Thread stoped [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:54]OFD Sender: No OFD packet to send [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:29]OFD Sender: No OFD packet to send [21:39:34]OFD Sender: No OFD packet to send [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:49]OFD Sender: No OFD packet to send [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:04]ConnectInit Can't connect to host [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:09]ConnectInit Can't connect to host [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:57:47]ConnectInit Can't connect to host [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]accept exits with 9 [21:58:50]New connection [21:58:50]New thread 3067321700 created [21:58:50]Thread 3067178340 joined [21:58:50]Waiting for new connection... [21:58:50] Sock 9.Parse request [21:58:50]Sock 9.Check first char [21:58:50]Sock 9.First char is OK [21:58:50]request: POST /json_proto HTTP/1.0 [21:58:50]Method: POST [21:58:50]URL: /json_proto [21:58:50]Method is POST - this is cgi request [21:58:50]url: /json_proto [21:58:50]query_string will be loaded in cgi processing [21:58:50]execute_cgi json_proto POST (null) [21:58:50]execute_cgi path=json_proto method=POST [21:58:50]POST find Content-Length [21:58:50]Host: 172.17.35.133:8080 [21:58:50]Content-Length: 672 [21:58:50]Content-Type: application/json [21:58:50] [21:58:50]POST finish read [21:58:50]Found Content-Length = 672 [21:58:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254370", "tax_sys" : 0, "items" : [ { "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" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:50]execute_script... [21:58: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)254370", "tax_sys" : 0, "items" : [ { "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" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:50]POST & json_proto [21:58:50]process_json_proto [21:58:50]json parsed OK: [21:58:50]protocol is kg_v1.0 [21:58:50]action value=close_receipt [21:58:50]process_action close_receipt [21:58:50]cmd_close_receipt [21:58:50]MH_GetDate [21:58:50]Write to MH i2c: F0 00 00 D0 41 00 [21:58:50]Write i2c OK [21:58:50]MH_I2C_Read... [21:58:50]Read from MH i2c: F0 [21:58:50]MH_I2C_Read... [21:58:50]Read from MH i2c: F0 09 00 [21:58:50]MH_I2C_Read... [21:58:50]Read from MH i2c: F0 09 00 D0 41 00 2A BD 6C 66 8C 55 28 65 30 [21:58:50]GetLastDocTimeStamp 1718401027 [21:58:50]current date 1718402346 [21:58:50]FM_GetShiftState [21:58:50]SAM_PROTO_GetShiftState [21:58:50]wFMCommunicate request_size=4 [21:58:50]MH_SAM_APDU [21:58:50]CAPDU: 80 13 01 00 [21:58:50]Write to MH i2c: E2 08 00 D1 41 80 13 01 00 00 00 00 00 8F [21:58:50]Write i2c OK [21:58:50]MH_I2C_Read... [21:58:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:50]Read from MH i2c: E2 [21:58:50]MH_I2C_Read... [21:58:50]Read from MH i2c: E2 0E 00 [21:58:50]MH_I2C_Read... [21:58:50]Read from MH i2c: E2 0E 00 D1 41 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 00 [21:58:50]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [21:58:50]wFMCommunicate OK [21:58:50]SAM_PROTO_GetShiftState done [21:58:50]FM_GetShiftState done [21:58:50]opened in 1718324742 [21:58:50]opened+sec_in_day 1718411142 [21:58:50]quantity*price = 4900 [21:58:50]sum+1 = 4901 [21:58:50]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 49.00 袧小袩 1% : 0.43 袧袛小 12% : 5.20 袧邪谢懈褔薪褘屑懈: 49.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 61 14.06.2024 21:59 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000965344 肖袛: 22147 肖袩袛: 186868936660100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T215906&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22147&fm=186868936660100&tin=02508201610067®Number=0000000000099755&sum=4900 0 [21:58:51]StoreToDocumentArchive [21:58:51]shift 325 fd 22147 [21:58:51]save to /storage/0325/doc_00022147 [21:58:51]save last doc name /storage/0325/doc_00022147 to /storage/kkm_last_doc_name [21:58:51]save OK [21:58:51]Clear old archive folders... [21:58:51]ProcessDocumentItem done err = 0, tmpTLVsize=287 [21:58:51]tlvbuf is B6FB2BC0 [21:58:51]SAM_PROTO_ClearQueue [21:58:51]wFMCommunicate request_size=4 [21:58:51]MH_SAM_APDU [21:58:51]CAPDU: 80 09 00 00 [21:58:51]Write to MH i2c: E2 08 00 DE 41 80 09 00 00 00 00 00 00 91 [21:58:51]Write i2c OK [21:58:51]MH_I2C_Read... [21:58:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:51]Read from MH i2c: E2 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 03 00 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 03 00 DE 41 00 90 00 93 [21:58:51]RAPDU: 90 00 [21:58:51]wFMCommunicate OK [21:58:51]SAM_PROTO_ClearQueue done [21:58:51]KKMCreateOFDPacket [21:58:51]OFDProtocolAddRootSTLVToBuf [21:58:51]FM_MakeSignedData [21:58:51]FM_MakeSignedData [21:58:51]SAM_PROTO_SignData [21:58:51]wFMCommunicate request_size=4 [21:58:51]MH_SAM_APDU [21:58:51]CAPDU: 80 0D 01 02 [21:58:51]Write to MH i2c: E2 08 00 DF 41 80 0D 01 02 00 00 00 00 99 [21:58:51]Write i2c OK [21:58:51]MH_I2C_Read... [21:58:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:51]Read from MH i2c: E2 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 03 00 [21:58:51]MH_I2C_Read... [21:58:51]Read from MH i2c: E2 03 00 DF 41 00 90 00 94 [21:58:51]RAPDU: 90 00 [21:58:51]wFMCommunicate OK [21:58:51]wFMCommunicate request_size=255 [21:58:51]MH_SAM_APDU [21:58:51]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 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 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 3D 00 00 00 F4 03 04 00 2A BD 6C 66 0E 04 04 00 45 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 [21:58:51]Write to MH i2c: E2 02 01 E0 41 80 0D 02 02 FA 00 03 00 1F 01 1E 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 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 3D 00 00 00 F4 03 04 00 2A BD 6C 66 0E 04 04 00 45 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 00 00 85 [21:58:51]Write i2c OK [21:58:51]MH_I2C_Read... [21:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:52]Read from MH i2c: E2 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 E0 41 00 90 00 95 [21:58:52]RAPDU: 90 00 [21:58:52]wFMCommunicate OK [21:58:52]wFMCommunicate request_size=46 [21:58:52]MH_SAM_APDU [21:58:52]CAPDU: 80 0D 02 02 29 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 83 56 00 00 35 04 06 00 A9 F4 D0 96 D4 84 [21:58:52]Write to MH i2c: E2 31 00 E1 41 80 0D 02 02 29 00 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 83 56 00 00 35 04 06 00 A9 F4 D0 96 D4 84 00 00 5E [21:58:52]Write i2c OK [21:58:52]MH_I2C_Read... [21:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:52]Read from MH i2c: E2 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 03 00 E1 41 00 90 00 96 [21:58:52]RAPDU: 90 00 [21:58:52]wFMCommunicate OK [21:58:52]wFMCommunicate request_size=4 [21:58:52]MH_SAM_APDU [21:58:52]CAPDU: 80 0D 03 02 [21:58:52]Write to MH i2c: E2 08 00 E2 41 80 0D 03 02 00 00 00 00 9E [21:58:52]Write i2c OK [21:58:52]MH_I2C_Read... [21:58:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:52]Read from MH i2c: E2 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 0B 00 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 0B 00 E2 41 00 60 64 A7 13 07 7F 38 9A 90 00 75 [21:58:52]RAPDU: 60 64 A7 13 07 7F 38 9A 90 00 [21:58:52]wFMCommunicate OK [21:58:52]SAM_PROTO_SignData done [21:58:52]FM_MakeSignedData done [21:58:52]CreateOFDProtocolMessage [21:58:52]wFMCommunicate request_size=4 [21:58:52]MH_SAM_APDU [21:58:52]CAPDU: 80 11 00 00 [21:58:52]Write to MH i2c: E2 08 00 E3 41 80 11 00 00 00 00 00 00 9E [21:58:52]Write i2c OK [21:58:52]MH_I2C_Read... [21:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:52]Read from MH i2c: E2 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 17 00 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: E2 17 00 E3 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 F0 [21:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [21:58:52]wFMCommunicate OK [21:58:52]CreateOFDProtocolMessage done [21:58:52]OFDSenderStorePacket 22147 [21:58:52]StoreOFDPacket docnum=22147 [21:58: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 33 01 00 00 7D E1 2B 01 B9 C7 5A 03 01 00 03 00 1F 01 1E 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 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 3D 00 00 00 F4 03 04 00 2A BD 6C 66 0E 04 04 00 45 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 83 56 00 00 35 04 06 00 A9 F4 D0 96 D4 84 60 64 A7 13 07 7F 38 9A [21:58:52]CheckFolder [21:58:52]dirname=/storage/ofd_packets [21:58:52]CheckFolder done [21:58:52]ProducePacketName [21:58:52]name=ofd_packets/00022147 [21:58:52]NVStorageSaveData ofd_packets/00022147 [21:58:52]File name is /storage/ofd_packets/00022147 [21:58:52]Write 337 bytes [21:58:52]NVStorageSaveData done [21:58:52]OFDSenderStorePacket done [21:58:52]KKMCreateOFDPacket done [21:58:52]NVStorageSaveData kkm_last_timestamp [21:58:52]File name is /storage/kkm_last_timestamp [21:58:52]Write 4 bytes [21:58:52]NVStorageSaveData done [21:58:52]ExternCall_PrintAddStr [21:58:52]wPrintStart [21:58:52]Write to MH i2c: 01 00 00 E4 41 25 [21:58:52]Write i2c OK [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: 01 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: 01 07 00 [21:58:52]MH_I2C_Read... [21:58:52]Read from MH i2c: 01 07 00 E4 41 00 00 00 00 00 FF 0F 3A [21:58:52]RasterBufferAndPrint [21:58:52]line 小褔械褌 N : (3)254370 [21:58:52]line 袠袧袧: 02508201610067 [21:58:52]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:58:52]line 袩袪袨袛袗袞袗 [21:58:52]line 孝芯胁邪褉: 46214621 [21:58:52]line 袪/卸 mentos 褌褍褌褌懈-褎褉褍褌褌懈 褉芯谢谢 16谐 [21:58:52]line 1.000 * 49.00 [21:58:52]line = 49.00 [21:58:52]line 袧袛小 12% 袧小袩 1% [21:58:52]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:58:52]line 袠孝袨袚袨: 49.00 [21:58:52]line 袧小袩 1% : 0.43 [21:58:52]line 袧袛小 12% : 5.20 [21:58:52]line 袧邪谢懈褔薪褘屑懈: 49.00 [21:58:52]line 袘械蟹薪邪谢.: 0.00 [21:58:52]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [21:58:52]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [21:58:52]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:58:52]line 效械泻 61 14.06.2024 21:59 [21:58:52]line 小屑械薪邪: 325 肖肖袛: 1.0 [21:58:52]line 袟袧袦: 0300000200 [21:58:52]line 袪袧袦: 0000000000099755 [21:58:52]line 袙械褉褋懈褟 袣袣袦: 001 [21:58:52]line 肖袦: 0000000000965344 [21:58:52]line 肖袛: 22147 [21:58:52]line 肖袩袛: 186868936660100 [21:58:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T215906&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22147&fm=186868936660100&tin=02508201610067®Number=0000000000099755&sum=4900 [21:58:52]line 0 [21:58:52]OFD Sender: Processing packet 22147 [packets to send 5, broken 4] [21:58:52]ProducePacketName [21:58:52]name=ofd_packets/00022147 [21:58:52]OFD Sender: To server: 嚂鰌G, [21:58:52]CommunicateWithHost lk.salyk.kg:30040 [21:58:52]ConnectInit lk.salyk.kg [21:58:52]written 0, free lines is 4095 [21:58:52]Connected sock=10 [21:58:52]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 01 00 00 7D E1 2B 01 B9 C7 5A 03 01 00 03 00 1F 01 1E 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 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 3D 00 00 00 F4 03 04 00 2A BD 6C 66 0E 04 04 00 45 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 83 56 00 00 35 04 06 00 A9 F4 D0 96 D4 84 60 64 A7 13 07 7F 38 9A [21:58:53]Write to MH i2c: 01 00 00 0D 42 4F [21:58:53]Write i2c OK [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: 01 [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: 01 07 00 [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: 01 07 00 0D 42 00 00 00 00 00 07 0D 6A [21:58:53]RasterBufferAndPrint [21:58:53]line [21:58:53]line [21:58:53]line [21:58:53]line [21:58:53]line [21:58:53]written 0, free lines is 3344 [21:58:53]MH_Cut [21:58:53]Write to MH i2c: D1 01 00 14 42 01 28 [21:58:53]Write i2c OK [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: D1 [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: D1 01 00 [21:58:53]MH_I2C_Read... [21:58:53]Read from MH i2c: D1 01 00 14 42 00 27 [21:58:53]Write to MH i2c: 01 00 00 15 42 57 [21:58:53]Write i2c OK [21:58:53]MH_I2C_Read... [21:58: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 9D 20 47 00 AD DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 83 56 00 00 F4 03 04 00 EA 65 6C 66 B6 04 01 00 00 D7 19 5A 14 E3 50 20 D4 [21:58:53]CommunicateWithHost err = 0 [21:58:53]CheckOFDResponse [21:58:53]1017 (14) - 77093643461234 [21:58:53]1041 (16) - 0000000000965344 [21:58:53]1040 (4) - 22147 [21:58:53]1012 (4) - 14.06.2024 15:46 [21:58:53]1206 (1) - 0 [21:58:53]OFD Sender: Remove packet 22147 [21:58:53]ProducePacketName [21:58:53]name=ofd_packets/00022147 [21:58:53]NVStorageDeleteData [21:58:53]*** Cut start [21:58:53]*** Partial cut [21:58:53]*** CUTSNS_PIN = 1 [21:58:53]*** CUTSNS_PIN = 0 [21:58:53]OFD Sender: No OFD packet to send [21:58:54]*** Brake cut motor [21:58:54]Read from MH i2c: 01 [21:58:54]MH_I2C_Read... [21:58:54]*** Stop cut motor [21:58:54]*** Cut end [21:58:54]Read from MH i2c: 01 07 00 [21:58:54]MH_I2C_Read... [21:58:54]Read from MH i2c: 01 07 00 15 42 00 00 00 00 00 FF 0F 6C [21:58:54]process_action close_receipt done [21:58:54]requested_data is exist [21:58:54]produce_requested_data [21:58:54]requested_item fm.sn is exist - process it [21:58:54]wFMCommunicate request_size=4 [21:58:54]MH_SAM_APDU [21:58:54]CAPDU: 80 11 00 00 [21:58:54]Write to MH i2c: E2 08 00 16 42 80 11 00 00 00 00 00 00 D2 [21:58:54]Write i2c OK [21:58:54]MH_I2C_Read... [21:58:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:54]Read from MH i2c: E2 [21:58:54]MH_I2C_Read... [21:58:54]Read from MH i2c: E2 17 00 [21:58:54]MH_I2C_Read... [21:58:54]Read from MH i2c: E2 17 00 16 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 24 [21:58:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [21:58:54]wFMCommunicate OK [21:58:54]requested_item fd.num is exist - process it [21:58:54]SAM_PROTO_GetFieldsCounters [21:58:54]wFMCommunicate request_size=4 [21:58:54]MH_SAM_APDU [21:58:54]CAPDU: 80 13 00 00 [21:58:54]Write to MH i2c: E2 08 00 17 42 80 13 00 00 00 00 00 00 D5 [21:58:54]Write i2c OK [21:58:54]MH_I2C_Read... [21:58:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:54]Read from MH i2c: E2 [21:58:54]MH_I2C_Read... [21:58:54]Read from MH i2c: E2 62 00 [21:58:54]MH_I2C_Read... [21:58:54]Read from MH i2c: E2 62 00 17 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 83 56 00 00 0E 04 04 00 45 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 D5 [21:58:54]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 83 56 00 00 0E 04 04 00 45 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 [21:58:54]wFMCommunicate OK [21:58:54]SAM_PROTO_GetFieldsCounters done [21:58:54]requested_item shift.num is exist - process it [21:58:54]requested_item shift.opened is exist - process it [21:58:54]req_shift_opened [21:58:54]FM_GetShiftState [21:58:54]SAM_PROTO_GetShiftState [21:58:54]wFMCommunicate request_size=4 [21:58:54]MH_SAM_APDU [21:58:54]CAPDU: 80 13 01 00 [21:58:54]Write to MH i2c: E2 08 00 18 42 80 13 01 00 00 00 00 00 D7 [21:58:54]Write i2c OK [21:58:54]MH_I2C_Read... [21:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:54]Read from MH i2c: E2 [21:58:54]MH_I2C_Read... [21:58:54]Read from MH i2c: E2 0E 00 [21:58:54]MH_I2C_Read... [21:58:54]Read from MH i2c: E2 0E 00 18 42 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 48 [21:58:54]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [21:58:54]wFMCommunicate OK [21:58:54]SAM_PROTO_GetShiftState done [21:58:54]FM_GetShiftState done [21:58:54]req_shift_opened done [21:58:54]requested_item shift.open_date is exist - process it [21:58:54]req_shift_open_date [21:58:54]req_shift_open_date done [21:58:54]produce_requested_data done [21:58:54]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22147,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [21:58:54]process_action_free close_receipt [21:58:54]json_value_free [21:58:54]json_value_free done [21:58:54]process_json_proto returns [21:58:54]Send response to host [21:58:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22147,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [21:58:54]free response buf [21:58:54]execute_script done [21:58:54]execute_script returns [21:58:54]free content buf [21:58:54]Sock 9.Close socket [21:58:54]Sock 9.Thread stoped [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: Processing packet 22148 [packets to send 5, broken 4] [22:04:03]ProducePacketName [22:04:03]name=ofd_packets/00022148 [22:04:03]OFD Sender: To server: 嚂鰌G, [22:04:03]CommunicateWithHost lk.salyk.kg:30040 [22:04:03]ConnectInit lk.salyk.kg [22:04:08]ConnectInit Can't take IP for lk.salyk.kg [22:04:08]CommunicateWithHost connect error [22:04:08]CommunicateWithHost err = -1 [22:04:08]OFD Sender: Server communicate error [22:04:11]ConnectInit Can't connect to host [22:04:13]OFD Sender: Processing packet 22148 [packets to send 5, broken 4] [22:04:13]ProducePacketName [22:04:13]name=ofd_packets/00022148 [22:04:13]OFD Sender: To server: 嚂鰌G, [22:04:13]CommunicateWithHost lk.salyk.kg:30040 [22:04:13]ConnectInit lk.salyk.kg [22:04:18]ConnectInit Can't take IP for lk.salyk.kg [22:04:18]CommunicateWithHost connect error [22:04:18]CommunicateWithHost err = -1 [22:04:18]OFD Sender: Server communicate error [22:04:23]OFD Sender: Processing packet 22148 [packets to send 5, broken 4] [22:04:23]ProducePacketName [22:04:23]name=ofd_packets/00022148 [22:04:23]OFD Sender: To server: 嚂鰌G, [22:04:23]CommunicateWithHost lk.salyk.kg:30040 [22:04:23]ConnectInit lk.salyk.kg [22:04:28]ConnectInit Can't take IP for lk.salyk.kg [22:04:28]CommunicateWithHost connect error [22:04:28]CommunicateWithHost err = -1 [22:04:28]OFD Sender: Server communicate error [22:04:33]OFD Sender: Processing packet 22148 [packets to send 5, broken 4] [22:04:33]ProducePacketName [22:04:33]name=ofd_packets/00022148 [22:04:33]OFD Sender: To server: 嚂鰌G, [22:04:33]CommunicateWithHost lk.salyk.kg:30040 [22:04:33]ConnectInit lk.salyk.kg [22:04:38]ConnectInit Can't take IP for lk.salyk.kg [22:04:38]CommunicateWithHost connect error [22:04:38]CommunicateWithHost err = -1 [22:04:38]OFD Sender: Server communicate error [22:04:43]OFD Sender: Processing packet 22148 [packets to send 5, broken 4] [22:04:43]ProducePacketName [22:04:43]name=ofd_packets/00022148 [22:04:43]OFD Sender: To server: 嚂鰌G, [22:04:43]CommunicateWithHost lk.salyk.kg:30040 [22:04:43]ConnectInit lk.salyk.kg [22:04:48]ConnectInit Can't take IP for lk.salyk.kg [22:04:48]CommunicateWithHost connect error [22:04:48]CommunicateWithHost err = -1 [22:04:48]OFD Sender: Server communicate error [22:04:53]OFD Sender: Processing packet 22148 [packets to send 5, broken 4] [22:04:53]ProducePacketName [22:04:53]name=ofd_packets/00022148 [22:04:53]OFD Sender: To server: 嚂鰌G, [22:04:53]CommunicateWithHost lk.salyk.kg:30040 [22:04:53]ConnectInit lk.salyk.kg [22:04:58]ConnectInit Can't take IP for lk.salyk.kg [22:04:58]CommunicateWithHost connect error [22:04:58]CommunicateWithHost err = -1 [22:04:58]OFD Sender: Server communicate error [22:05:03]OFD Sender: Processing packet 22148 [packets to send 5, broken 4] [22:05:03]ProducePacketName [22:05:03]name=ofd_packets/00022148 [22:05:03]OFD Sender: To server: 嚂鰌G, [22:05:03]CommunicateWithHost lk.salyk.kg:30040 [22:05:03]ConnectInit lk.salyk.kg [22:05:08]ConnectInit Can't take IP for lk.salyk.kg [22:05:08]CommunicateWithHost connect error [22:05:08]CommunicateWithHost err = -1 [22:05:08]OFD Sender: Server communicate error [22:05:13]OFD Sender: Processing packet 22148 [packets to send 5, broken 4] [22:05:13]ProducePacketName [22:05:13]name=ofd_packets/00022148 [22:05:13]OFD Sender: To server: 嚂鰌G, [22:05:13]CommunicateWithHost lk.salyk.kg:30040 [22:05:13]ConnectInit lk.salyk.kg [22:05:18]ConnectInit Can't take IP for lk.salyk.kg [22:05:18]CommunicateWithHost connect error [22:05:18]CommunicateWithHost err = -1 [22:05:18]OFD Sender: Server communicate error [22:05:23]OFD Sender: Processing packet 22148 [packets to send 5, broken 4] [22:05:23]ProducePacketName [22:05:23]name=ofd_packets/00022148 [22:05:23]OFD Sender: To server: 嚂鰌G, [22:05:23]CommunicateWithHost lk.salyk.kg:30040 [22:05:23]ConnectInit lk.salyk.kg [22:05:28]ConnectInit Can't take IP for lk.salyk.kg [22:05:28]CommunicateWithHost connect error [22:05:28]CommunicateWithHost err = -1 [22:05:28]OFD Sender: Server communicate error [22:05:33]OFD Sender: Processing packet 22148 [packets to send 5, broken 4] [22:05:33]ProducePacketName [22:05:33]name=ofd_packets/00022148 [22:05:33]OFD Sender: To server: 嚂鰌G, [22:05:33]CommunicateWithHost lk.salyk.kg:30040 [22:05:33]ConnectInit lk.salyk.kg [22:05:38]Connected sock=8 [22:05:38]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 44 01 00 00 21 AC 3C 01 A2 8D 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0E 00 34 37 30 30 30 34 30 35 39 39 30 30 31 36 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 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 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 57 BE 6C 66 0E 04 04 00 45 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 84 56 00 00 35 04 06 00 23 AF AB B7 85 D1 AC B8 E6 F3 1F 3E 9E B6 [22:05:38]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 18 47 00 77 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 84 56 00 00 F4 03 04 00 7F 67 6C 66 B6 04 01 00 00 69 1B 2C A6 F0 CF AA 29 [22:05:38]CommunicateWithHost err = 0 [22:05:38]CheckOFDResponse [22:05:38]1017 (14) - 77093643461234 [22:05:38]1041 (16) - 0000000000965344 [22:05:38]1040 (4) - 22148 [22:05:38]1012 (4) - 14.06.2024 15:53 [22:05:38]1206 (1) - 0 [22:05:38]OFD Sender: Remove packet 22148 [22:05:38]ProducePacketName [22:05:38]name=ofd_packets/00022148 [22:05:38]NVStorageDeleteData [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:29]ConnectInit Can't connect to host [22:06:34]OFD Sender: No OFD packet to send [22:06:34]ConnectInit Can't connect to host [22:06:39]OFD Sender: No OFD packet to send [22:06:39]ConnectInit Can't connect to host [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:13:04]ConnectInit Can't connect to host [22:13:04]ConnectInit Can't connect to host [22:13:04]CommunicateWithHost connect error [22:13:04]CommunicateWithHost err = -1 [22:13:04]OFD Sender: Server communicate error [22:13:09]OFD Sender: Processing packet 22149 [packets to send 5, broken 4] [22:13:09]ProducePacketName [22:13:09]name=ofd_packets/00022149 [22:13:09]OFD Sender: To server: 嚂鰌G, [22:13:09]CommunicateWithHost lk.salyk.kg:30040 [22:13:09]ConnectInit lk.salyk.kg [22:13:10]accept exits with 9 [22:13:10]New connection [22:13:10]New thread 3067178340 created [22:13:10]Thread 3067321700 joined [22:13:10]Waiting for new connection... [22:13:10] Sock 9.Parse request [22:13:10]Sock 9.Check first char [22:13:10]Sock 9.First char is OK [22:13:10]request: POST /json_proto HTTP/1.0 [22:13:10]Method: POST [22:13:10]URL: /json_proto [22:13:10]Method is POST - this is cgi request [22:13:10]url: /json_proto [22:13:10]query_string will be loaded in cgi processing [22:13:10]execute_cgi json_proto POST (null) [22:13:10]execute_cgi path=json_proto method=POST [22:13:10]POST find Content-Length [22:13:10]Host: 172.17.35.133:8080 [22:13:10]Content-Length: 846 [22:13:10]Content-Type: application/json [22:13:10] [22:13:10]POST finish read [22:13:10]Found Content-Length = 846 [22:13:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254373", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:10]execute_script... [22:13:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254373", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:10]POST & json_proto [22:13:10]process_json_proto [22:13:10]json parsed OK: [22:13:10]protocol is kg_v1.0 [22:13:10]action value=close_receipt [22:13:10]process_action close_receipt [22:13:10]cmd_close_receipt [22:13:10]MH_GetDate [22:13:10]Write to MH i2c: F0 00 00 C5 42 F6 [22:13:10]Write i2c OK [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: F0 [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: F0 09 00 [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: F0 09 00 C5 42 00 86 C0 6C 66 8C 55 28 65 85 [22:13:10]GetLastDocTimeStamp 1718402971 [22:13:10]current date 1718403206 [22:13:10]FM_GetShiftState [22:13:10]SAM_PROTO_GetShiftState [22:13:10]wFMCommunicate request_size=4 [22:13:10]MH_SAM_APDU [22:13:10]CAPDU: 80 13 01 00 [22:13:10]Write to MH i2c: E2 08 00 C6 42 80 13 01 00 00 00 00 00 85 [22:13:10]Write i2c OK [22:13:10]MH_I2C_Read... [22:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:10]Read from MH i2c: E2 [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: E2 0E 00 [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: E2 0E 00 C6 42 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 F6 [22:13:10]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [22:13:10]wFMCommunicate OK [22:13:10]SAM_PROTO_GetShiftState done [22:13:10]FM_GetShiftState done [22:13:10]opened in 1718324742 [22:13:10]opened+sec_in_day 1718411142 [22:13:10]quantity*price = 6000 [22:13:10]sum+1 = 6001 [22:13:10]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 60.00 袧小袩 1% : 0.53 袧袛小 12% : 6.37 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 60.00 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 64 14.06.2024 22:13 小屑械薪邪: 325 肖肖袛: 1.0 袟袧袦: 0300000200 袪袧袦: 0000000000099755 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袗袣袘 袣褘褉谐褘蟹褋褌邪薪 肖袦: 0000000000965344 肖袛: 22150 肖袩袛: 143210039022849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T221326&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22150&fm=143210039022849&tin=02508201610067®Number=0000000000099755&sum=6000 0 [22:13:11]StoreToDocumentArchive [22:13:11]shift 325 fd 22150 [22:13:11]save to /storage/0325/doc_00022150 [22:13:11]save last doc name /storage/0325/doc_00022150 to /storage/kkm_last_doc_name [22:13:11]save OK [22:13:11]Clear old archive folders... [22:13:11]ProcessDocumentItem done err = 0, tmpTLVsize=276 [22:13:11]tlvbuf is 0029D2F0 [22:13:11]SAM_PROTO_ClearQueue [22:13:11]wFMCommunicate request_size=4 [22:13:11]MH_SAM_APDU [22:13:11]CAPDU: 80 09 00 00 [22:13:11]Write to MH i2c: E2 08 00 D3 42 80 09 00 00 00 00 00 00 87 [22:13:11]Write i2c OK [22:13:11]MH_I2C_Read... [22:13:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:11]Read from MH i2c: E2 [22:13:11]MH_I2C_Read... [22:13:11]Read from MH i2c: E2 03 00 [22:13:11]MH_I2C_Read... [22:13:11]Read from MH i2c: E2 03 00 D3 42 00 90 00 89 [22:13:11]RAPDU: 90 00 [22:13:11]wFMCommunicate OK [22:13:11]SAM_PROTO_ClearQueue done [22:13:11]KKMCreateOFDPacket [22:13:11]OFDProtocolAddRootSTLVToBuf [22:13:11]FM_MakeSignedData [22:13:11]FM_MakeSignedData [22:13:11]SAM_PROTO_SignData [22:13:11]wFMCommunicate request_size=4 [22:13:11]MH_SAM_APDU [22:13:11]CAPDU: 80 0D 01 02 [22:13:11]Write to MH i2c: E2 08 00 D4 42 80 0D 01 02 00 00 00 00 8F [22:13:11]Write i2c OK [22:13:11]MH_I2C_Read... [22:13:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:11]Read from MH i2c: E2 [22:13:11]MH_I2C_Read... [22:13:11]Read from MH i2c: E2 03 00 [22:13:11]MH_I2C_Read... [22:13:11]Read from MH i2c: E2 03 00 D4 42 00 90 00 8A [22:13:11]RAPDU: 90 00 [22:13:11]wFMCommunicate OK [22:13:11]wFMCommunicate request_size=255 [22:13:11]MH_SAM_APDU [22:13:11]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 86 C0 6C 66 0E 04 04 00 45 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 [22:13:11]Write to MH i2c: E2 02 01 D5 42 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 86 C0 6C 66 0E 04 04 00 45 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 72 [22:13:11]Write i2c OK [22:13:11]MH_I2C_Read... [22:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:12]Read from MH i2c: E2 [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: E2 03 00 [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: E2 03 00 D5 42 00 90 00 8B [22:13:12]RAPDU: 90 00 [22:13:12]wFMCommunicate OK [22:13:12]wFMCommunicate request_size=35 [22:13:12]MH_SAM_APDU [22:13:12]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 86 56 00 00 35 04 06 00 82 3F AF 81 15 01 [22:13:12]Write to MH i2c: E2 26 00 D6 42 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 86 56 00 00 35 04 06 00 82 3F AF 81 15 01 00 00 67 [22:13:12]Write i2c OK [22:13:12]MH_I2C_Read... [22:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:12]Read from MH i2c: E2 [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: E2 03 00 [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: E2 03 00 D6 42 00 90 00 8C [22:13:12]RAPDU: 90 00 [22:13:12]wFMCommunicate OK [22:13:12]wFMCommunicate request_size=4 [22:13:12]MH_SAM_APDU [22:13:12]CAPDU: 80 0D 03 02 [22:13:12]Write to MH i2c: E2 08 00 D7 42 80 0D 03 02 00 00 00 00 94 [22:13:12]Write i2c OK [22:13:12]MH_I2C_Read... [22:13:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:12]Read from MH i2c: E2 [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: E2 0B 00 [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: E2 0B 00 D7 42 00 F2 29 99 79 64 FD 94 C9 90 00 80 [22:13:12]RAPDU: F2 29 99 79 64 FD 94 C9 90 00 [22:13:12]wFMCommunicate OK [22:13:12]SAM_PROTO_SignData done [22:13:12]FM_MakeSignedData done [22:13:12]CreateOFDProtocolMessage [22:13:12]wFMCommunicate request_size=4 [22:13:12]MH_SAM_APDU [22:13:12]CAPDU: 80 11 00 00 [22:13:12]Write to MH i2c: E2 08 00 D8 42 80 11 00 00 00 00 00 00 94 [22:13:12]Write i2c OK [22:13:12]MH_I2C_Read... [22:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:12]Read from MH i2c: E2 [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: E2 17 00 [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: E2 17 00 D8 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 E6 [22:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [22:13:12]wFMCommunicate OK [22:13:12]CreateOFDProtocolMessage done [22:13:12]OFDSenderStorePacket 22150 [22:13:12]StoreOFDPacket docnum=22150 [22:13:12]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 60 8E 20 01 36 3A 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 86 C0 6C 66 0E 04 04 00 45 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 86 56 00 00 35 04 06 00 82 3F AF 81 15 01 F2 29 99 79 64 FD 94 C9 [22:13:12]CheckFolder [22:13:12]dirname=/storage/ofd_packets [22:13:12]CheckFolder done [22:13:12]ProducePacketName [22:13:12]name=ofd_packets/00022150 [22:13:12]NVStorageSaveData ofd_packets/00022150 [22:13:12]File name is /storage/ofd_packets/00022150 [22:13:12]Write 326 bytes [22:13:12]NVStorageSaveData done [22:13:12]OFDSenderStorePacket done [22:13:12]KKMCreateOFDPacket done [22:13:12]NVStorageSaveData kkm_last_timestamp [22:13:12]File name is /storage/kkm_last_timestamp [22:13:12]Write 4 bytes [22:13:12]NVStorageSaveData done [22:13:12]ExternCall_PrintAddStr [22:13:12]wPrintStart [22:13:12]Write to MH i2c: 01 00 00 D9 42 1B [22:13:12]Write i2c OK [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: 01 [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: 01 07 00 [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: 01 07 00 D9 42 00 00 00 00 00 FF 0F 30 [22:13:12]RasterBufferAndPrint [22:13:12]line 小褔械褌 N : (3)254373 [22:13:12]line 袠袧袧: 02508201610067 [22:13:12]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [22:13:12]line 袩袪袨袛袗袞袗 [22:13:12]line 孝芯胁邪褉: 4700000310043 [22:13:12]line 袙芯写邪 袞邪谢邪谢邪斜邪褌 27 1谢 [22:13:12]line 1.000 * 60.00 [22:13:12]line = 60.00 [22:13:12]line 袧袛小 12% 袧小袩 1% [22:13:12]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [22:13:12]line 袠孝袨袚袨: 60.00 [22:13:12]line 袧小袩 1% : 0.53 [22:13:12]line 袧袛小 12% : 6.37 [22:13:12]line 袧邪谢懈褔薪褘屑懈: 0.00 [22:13:12]line 袘械蟹薪邪谢.: 60.00 [22:13:12]line 袦械褋褌芯: 袗袟小 鈩 76 "袩邪褉褌薪械褉 袧械褎褌褜" [22:13:12]line 袗写褉械褋: 720001, 褋. 效邪褌-袘邪蟹邪褉, 褌褉邪褋褋邪 孝邪谢邪褋-小褍褍褋邪屑褘褉, 42.485056, 72.552224 [22:13:12]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [22:13:12]line 效械泻 64 14.06.2024 22:13 [22:13:12]line 小屑械薪邪: 325 肖肖袛: 1.0 [22:13:12]line 袟袧袦: 0300000200 [22:13:12]line 袪袧袦: 0000000000099755 [22:13:12]line 袙械褉褋懈褟 袣袣袦: 001 [22:13:12]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袗袣袘 袣褘褉谐褘蟹褋褌邪薪 [22:13:12]line 肖袦: 0000000000965344 [22:13:12]line 肖袛: 22150 [22:13:12]line 肖袩袛: 143210039022849 [22:13:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240614T221326&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22150&fm=143210039022849&tin=02508201610067®Number=0000000000099755&sum=6000 [22:13:12]line 0 [22:13:12]written 0, free lines is 4095 [22:13:12]Write to MH i2c: 01 00 00 03 43 46 [22:13:12]Write i2c OK [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: 01 [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: 01 07 00 [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: 01 07 00 03 43 00 00 00 00 00 05 0D 5F [22:13:12]RasterBufferAndPrint [22:13:12]line [22:13:12]line [22:13:12]line [22:13:12]line [22:13:12]line [22:13:12]written 0, free lines is 3342 [22:13:12]MH_Cut [22:13:12]Write to MH i2c: D1 01 00 0A 43 01 1F [22:13:13]Write i2c OK [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: D1 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: D1 01 00 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: D1 01 00 0A 43 00 1E [22:13:13]Write to MH i2c: 01 00 00 0B 43 4E [22:13:13]Write i2c OK [22:13:13]MH_I2C_Read... [22:13:13]*** Cut start [22:13:13]*** Partial cut [22:13:13]*** CUTSNS_PIN = 1 [22:13:13]*** CUTSNS_PIN = 0 [22:13:13]*** Brake cut motor [22:13:14]ConnectInit Can't take IP for lk.salyk.kg [22:13:14]CommunicateWithHost connect error [22:13:14]CommunicateWithHost err = -1 [22:13:14]OFD Sender: Server communicate error [22:13:14]OFD Sender: Processing packet 22149 [packets to send 6, broken 4] [22:13:14]ProducePacketName [22:13:14]name=ofd_packets/00022149 [22:13:14]OFD Sender: To server: 嚂鰌G, [22:13:14]CommunicateWithHost lk.salyk.kg:30040 [22:13:14]ConnectInit lk.salyk.kg [22:13:14]Read from MH i2c: 01 [22:13:14]MH_I2C_Read... [22:13:14]*** Stop cut motor [22:13:14]*** Cut end [22:13:14]Read from MH i2c: 01 07 00 [22:13:14]MH_I2C_Read... [22:13:14]Read from MH i2c: 01 07 00 0B 43 00 00 00 00 00 FF 0F 63 [22:13:14]process_action close_receipt done [22:13:14]requested_data is exist [22:13:14]produce_requested_data [22:13:14]requested_item fm.sn is exist - process it [22:13:14]wFMCommunicate request_size=4 [22:13:14]MH_SAM_APDU [22:13:14]CAPDU: 80 11 00 00 [22:13:14]Write to MH i2c: E2 08 00 0C 43 80 11 00 00 00 00 00 00 C9 [22:13:14]Write i2c OK [22:13:14]MH_I2C_Read... [22:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:14]Read from MH i2c: E2 [22:13:14]MH_I2C_Read... [22:13:14]Read from MH i2c: E2 17 00 [22:13:14]MH_I2C_Read... [22:13:14]Read from MH i2c: E2 17 00 0C 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 1B [22:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [22:13:14]wFMCommunicate OK [22:13:14]requested_item fd.num is exist - process it [22:13:14]SAM_PROTO_GetFieldsCounters [22:13:14]wFMCommunicate request_size=4 [22:13:14]MH_SAM_APDU [22:13:14]CAPDU: 80 13 00 00 [22:13:14]Write to MH i2c: E2 08 00 0D 43 80 13 00 00 00 00 00 00 CC [22:13:14]Write i2c OK [22:13:14]MH_I2C_Read... [22:13:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:14]Read from MH i2c: E2 [22:13:14]MH_I2C_Read... [22:13:14]Read from MH i2c: E2 62 00 [22:13:14]MH_I2C_Read... [22:13:14]Read from MH i2c: E2 62 00 0D 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 86 56 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [22:13:14]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 86 56 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:13:14]wFMCommunicate OK [22:13:14]SAM_PROTO_GetFieldsCounters done [22:13:14]requested_item shift.num is exist - process it [22:13:14]requested_item shift.opened is exist - process it [22:13:14]req_shift_opened [22:13:14]FM_GetShiftState [22:13:14]SAM_PROTO_GetShiftState [22:13:14]wFMCommunicate request_size=4 [22:13:14]MH_SAM_APDU [22:13:14]CAPDU: 80 13 01 00 [22:13:14]Write to MH i2c: E2 08 00 0E 43 80 13 01 00 00 00 00 00 CE [22:13:14]Write i2c OK [22:13:14]MH_I2C_Read... [22:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:14]Read from MH i2c: E2 [22:13:14]MH_I2C_Read... [22:13:14]Read from MH i2c: E2 0E 00 [22:13:14]MH_I2C_Read... [22:13:14]Read from MH i2c: E2 0E 00 0E 43 00 09 00 01 06 8E 6B 66 00 00 00 00 90 00 3F [22:13:14]RAPDU: 09 00 01 06 8E 6B 66 00 00 00 00 90 00 [22:13:14]wFMCommunicate OK [22:13:14]SAM_PROTO_GetShiftState done [22:13:14]FM_GetShiftState done [22:13:14]req_shift_opened done [22:13:14]requested_item shift.open_date is exist - process it [22:13:14]req_shift_open_date [22:13:14]req_shift_open_date done [22:13:14]produce_requested_data done [22:13:14]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22150,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742} [22:13:14]process_action_free close_receipt [22:13:14]json_value_free [22:13:14]json_value_free done [22:13:14]process_json_proto returns [22:13:14]Send response to host [22:13:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22150,"shift.num":325,"shift.opened":1,"shift.open_date":1718324742}}} [22:13:14]free response buf [22:13:14]execute_script done [22:13:14]execute_script returns [22:13:14]free content buf [22:13:14]Sock 9.Close socket [22:13:14]Sock 9.Thread stoped [22:13:17]Connected sock=10 [22:13:17]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 D3 02 00 00 3E 8B CB 02 16 78 5A 03 01 00 03 00 BF 02 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 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 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 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 23 04 69 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 32 37 32 38 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 20 00 00 00 00 07 04 06 00 98 34 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 9B BF 6C 66 0E 04 04 00 45 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 85 56 00 00 35 04 06 00 93 07 A0 D8 F3 DB D4 AB C4 AD 67 C0 62 F9 [22:13: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 7D 2B 47 00 FC 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 85 56 00 00 F4 03 04 00 4B 69 6C 66 B6 04 01 00 00 FD 58 00 E4 68 0D 77 AD [22:13:18]CommunicateWithHost err = 0 [22:13:18]CheckOFDResponse [22:13:18]1017 (14) - 77093643461234 [22:13:18]1041 (16) - 0000000000965344 [22:13:18]1040 (4) - 22149 [22:13:18]1012 (4) - 14.06.2024 16:01 [22:13:18]1206 (1) - 0 [22:13:18]OFD Sender: Remove packet 22149 [22:13:18]ProducePacketName [22:13:18]name=ofd_packets/00022149 [22:13:18]NVStorageDeleteData [22:13:18]OFD Sender: Processing packet 22150 [packets to send 5, broken 4] [22:13:18]ProducePacketName [22:13:18]name=ofd_packets/00022150 [22:13:18]OFD Sender: To server: 嚂鰌G, [22:13:18]CommunicateWithHost lk.salyk.kg:30040 [22:13:18]ConnectInit lk.salyk.kg [22:13:19]Connected sock=8 [22:13: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 28 01 00 00 60 8E 20 01 36 3A 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 86 C0 6C 66 0E 04 04 00 45 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 86 56 00 00 35 04 06 00 82 3F AF 81 15 01 F2 29 99 79 64 FD 94 C9 [22:13: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 5B 32 47 00 5B 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 86 56 00 00 F4 03 04 00 4C 69 6C 66 B6 04 01 00 00 DC 10 71 BB 17 85 A2 85 [22:13:19]CommunicateWithHost err = 0 [22:13:19]CheckOFDResponse [22:13:19]1017 (14) - 77093643461234 [22:13:19]1041 (16) - 0000000000965344 [22:13:19]1040 (4) - 22150 [22:13:19]1012 (4) - 14.06.2024 16:01 [22:13:19]1206 (1) - 0 [22:13:19]OFD Sender: Remove packet 22150 [22:13:19]ProducePacketName [22:13:19]name=ofd_packets/00022150 [22:13:19]NVStorageDeleteData [22:13:20]OFD Sender: No OFD packet to send [22:13:25]OFD Sender: No OFD packet to send [22:13:30]OFD Sender: No OFD packet to send [22:13:35]OFD Sender: No OFD packet to send [01:01:19]ConnectInit Can't connect to host [01:01:19]ConnectInit Can't take IP for lk.salyk.kg [01:01:19]CommunicateWithHost connect error [01:01:19]CommunicateWithHost err = -1 [01:01:19]OFD Sender: Server communicate error [01:06:23]ConnectInit Can't connect to host [01:06:24]OFD Sender: Processing packet 22152 [packets to send 9, broken 4] [01:06:24]ProducePacketName [01:06:24]name=ofd_packets/00022152 [01:06:24]OFD Sender: To server: 嚂鰌G, [01:06:24]CommunicateWithHost lk.salyk.kg:30040 [01:06:24]ConnectInit lk.salyk.kg