[02:59:20]OFD Sender: No OFD packet to send [02:59:25]OFD Sender: No OFD packet to send [02:59:30]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send [02:59:40]OFD Sender: No OFD packet to send [02:59:45]OFD Sender: No OFD packet to send [02:59:50]OFD Sender: No OFD packet to send [02:59:55]OFD Sender: No OFD packet to send [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send [03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04:21]OFD Sender: No OFD packet to send [03:04:26]OFD Sender: No OFD packet to send [03:04:31]OFD Sender: No OFD packet to send [03:04:36]OFD Sender: No OFD packet to send [03:04:41]OFD Sender: No OFD packet to send [03:04:46]OFD Sender: No OFD packet to send [03:04:51]OFD Sender: No OFD packet to send [03:04:56]OFD Sender: No OFD packet to send [03:05:01]OFD Sender: No OFD packet to send [03:05:06]OFD Sender: No OFD packet to send [03:05:11]OFD Sender: No OFD packet to send [03:05:16]OFD Sender: No OFD packet to send [03:05:21]OFD Sender: No OFD packet to send [03:05:26]OFD Sender: No OFD packet to send [03:05:31]OFD Sender: No OFD packet to send [03:05:36]OFD Sender: No OFD packet to send [03:05:41]OFD Sender: No OFD packet to send [03:05:46]OFD Sender: No OFD packet to send [03:05:51]OFD Sender: No OFD packet to send [03:05:56]OFD Sender: No OFD packet to send [03:06:01]OFD Sender: No OFD packet to send [03:06:06]OFD Sender: No OFD packet to send [03:06:11]OFD Sender: No OFD packet to send [03:06:16]OFD Sender: No OFD packet to send [03:06:21]OFD Sender: No OFD packet to send [03:06:26]OFD Sender: No OFD packet to send [03:06:31]OFD Sender: No OFD packet to send [03:06:36]OFD Sender: No OFD packet to send [03:06:41]OFD Sender: No OFD packet to send [03:06:46]OFD Sender: No OFD packet to send [03:06:51]OFD Sender: No OFD packet to send [03:06:56]OFD Sender: No OFD packet to send [03:07:01]OFD Sender: No OFD packet to send [03:07:06]OFD Sender: No OFD packet to send [03:07:11]OFD Sender: No OFD packet to send [03:07:16]OFD Sender: No OFD packet to send [03:07:21]OFD Sender: No OFD packet to send [03:07:26]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07:51]OFD Sender: No OFD packet to send [03:07:56]OFD Sender: No OFD packet to send [03:08:01]OFD Sender: No OFD packet to send [03:08:06]OFD Sender: No OFD packet to send [03:08:11]OFD Sender: No OFD packet to send [03:08:16]OFD Sender: No OFD packet to send [03:08:21]OFD Sender: No OFD packet to send [03:08:26]OFD Sender: No OFD packet to send [03:08:31]OFD Sender: No OFD packet to send [03:08:36]OFD Sender: No OFD packet to send [03:08:41]OFD Sender: No OFD packet to send [03:08:46]OFD Sender: No OFD packet to send [03:08:51]OFD Sender: No OFD packet to send [03:08:56]OFD Sender: No OFD packet to send [03:09:01]OFD Sender: No OFD packet to send [03:09:06]OFD Sender: No OFD packet to send [03:09:11]OFD Sender: No OFD packet to send [03:09:16]OFD Sender: No OFD packet to send [03:09:21]OFD Sender: No OFD packet to send [03:09:26]OFD Sender: No OFD packet to send [03:09:31]OFD Sender: No OFD packet to send [03:09:36]OFD Sender: No OFD packet to send [03:09:41]OFD Sender: No OFD packet to send [03:09:46]OFD Sender: No OFD packet to send [03:09:51]OFD Sender: No OFD packet to send [03:09:56]OFD Sender: No OFD packet to send [03:10:01]OFD Sender: No OFD packet to send [03:10:06]OFD Sender: No OFD packet to send [03:10:11]OFD Sender: No OFD packet to send [03:10:16]OFD Sender: No OFD packet to send [03:10:21]OFD Sender: No OFD packet to send [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:17:01]OFD Sender: No OFD packet to send [03:17:06]OFD Sender: No OFD packet to send [03:17:11]OFD Sender: No OFD packet to send [03:17:16]OFD Sender: No OFD packet to send [03:17:21]OFD Sender: No OFD packet to send [03:17:26]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:51]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:52]OFD Sender: No OFD packet to send [03:23:57]OFD Sender: No OFD packet to send [03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:12]OFD Sender: No OFD packet to send [03:24:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:52]OFD Sender: No OFD packet to send [03:25:57]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:17]OFD Sender: No OFD packet to send [03:26:22]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:32]OFD Sender: No OFD packet to send [03:26:37]OFD Sender: No OFD packet to send [03:26:42]OFD Sender: No OFD packet to send [03:26:47]OFD Sender: No OFD packet to send [03:26:52]OFD Sender: No OFD packet to send [03:26:57]OFD Sender: No OFD packet to send [03:27:02]OFD Sender: No OFD packet to send [03:27:07]OFD Sender: No OFD packet to send [03:27:12]OFD Sender: No OFD packet to send [03:27:17]OFD Sender: No OFD packet to send [03:27:22]OFD Sender: No OFD packet to send [03:27:27]OFD Sender: No OFD packet to send [03:27:32]OFD Sender: No OFD packet to send [03:27:37]OFD Sender: No OFD packet to send [03:27:42]OFD Sender: No OFD packet to send [03:27:47]OFD Sender: No OFD packet to send [03:27:52]OFD Sender: No OFD packet to send [03:27:57]OFD Sender: No OFD packet to send [03:28:02]OFD Sender: No OFD packet to send [03:28:07]OFD Sender: No OFD packet to send [03:28:12]OFD Sender: No OFD packet to send [03:28:17]OFD Sender: No OFD packet to send [03:28:22]OFD Sender: No OFD packet to send [03:28:27]OFD Sender: No OFD packet to send [03:28:32]OFD Sender: No OFD packet to send [03:28:37]OFD Sender: No OFD packet to send [03:28:42]OFD Sender: No OFD packet to send [03:28:47]OFD Sender: No OFD packet to send [03:28:52]OFD Sender: No OFD packet to send [03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:52]OFD Sender: No OFD packet to send [03:33:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:47]OFD Sender: No OFD packet to send [03:34:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]OFD Sender: No OFD packet to send [03:35:17]OFD Sender: No OFD packet to send [03:35:22]OFD Sender: No OFD packet to send [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:22]OFD Sender: No OFD packet to send [03:36:27]OFD Sender: No OFD packet to send [03:36:32]OFD Sender: No OFD packet to send [03:36:37]OFD Sender: No OFD packet to send [03:36:42]OFD Sender: No OFD packet to send [03:36:47]OFD Sender: No OFD packet to send [03:36:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:37]OFD Sender: No OFD packet to send [03:37:42]OFD Sender: No OFD packet to send [03:37:47]OFD Sender: No OFD packet to send [03:37:52]OFD Sender: No OFD packet to send [03:37:57]OFD Sender: No OFD packet to send [03:38:02]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:33]OFD Sender: No OFD packet to send [03:44:38]OFD Sender: No OFD packet to send [03:44:43]OFD Sender: No OFD packet to send [03:44:48]OFD Sender: No OFD packet to send [03:44:53]OFD Sender: No OFD packet to send [03:44:58]OFD Sender: No OFD packet to send [03:45:03]OFD Sender: No OFD packet to send [03:45:08]OFD Sender: No OFD packet to send [03:45:13]OFD Sender: No OFD packet to send [03:45:18]OFD Sender: No OFD packet to send [03:45:23]OFD Sender: No OFD packet to send [03:45:28]OFD Sender: No OFD packet to send [03:45:33]OFD Sender: No OFD packet to send [03:45:38]OFD Sender: No OFD packet to send [03:45:43]OFD Sender: No OFD packet to send [03:45:48]OFD Sender: No OFD packet to send [03:45:53]OFD Sender: No OFD packet to send [03:45:58]OFD Sender: No OFD packet to send [03:46:03]OFD Sender: No OFD packet to send [03:46:08]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:23]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:08]OFD Sender: No OFD packet to send [03:55:13]OFD Sender: No OFD packet to send [03:55:18]OFD Sender: No OFD packet to send [03:55:23]OFD Sender: No OFD packet to send [03:55:28]OFD Sender: No OFD packet to send [03:55:33]OFD Sender: No OFD packet to send [03:55:38]OFD Sender: No OFD packet to send [03:55:43]OFD Sender: No OFD packet to send [03:55:48]OFD Sender: No OFD packet to send [03:55:53]OFD Sender: No OFD packet to send [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:13]OFD Sender: No OFD packet to send [03:56:18]OFD Sender: No OFD packet to send [03:56:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]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:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]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:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]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:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:32]OFD Sender: No OFD packet to send [08:57:37]OFD Sender: No OFD packet to send [08:57:42]OFD Sender: No OFD packet to send [08:57:47]OFD Sender: No OFD packet to send [08:57:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:22]OFD Sender: No OFD packet to send [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:37]OFD Sender: No OFD packet to send [08:58:42]OFD Sender: No OFD packet to send [08:58:47]OFD Sender: No OFD packet to send [08:58:52]OFD Sender: No OFD packet to send [08:58:57]OFD Sender: No OFD packet to send [08:59:02]OFD Sender: No OFD packet to send [08:59:07]OFD Sender: No OFD packet to send [08:59:12]OFD Sender: No OFD packet to send [08:59:17]OFD Sender: No OFD packet to send [08:59:22]OFD Sender: No OFD packet to send [08:59:27]OFD Sender: No OFD packet to send [08:59:32]OFD Sender: No OFD packet to send [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:58]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17:58]OFD Sender: No OFD packet to send [09:18:03]OFD Sender: No OFD packet to send [09:18:08]OFD Sender: No OFD packet to send [09:18:13]OFD Sender: No OFD packet to send [09:18:18]OFD Sender: No OFD packet to send [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19: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:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:09]OFD Sender: No OFD packet to send [09:41:14]OFD Sender: No OFD packet to send [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:43:59]OFD Sender: No OFD packet to send [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:51:58]accept exits with 9 [09:51:58]New connection [09:51:58]New thread 3066580324 created [09:51:58]Thread 3066723684 joined [09:51:58]Waiting for new connection... [09:51:58] Sock 9.Parse request [09:51:58]Sock 9.Check first char [09:51:58]Sock 9.First char is OK [09:51:58]request: POST /json_proto HTTP/1.0 [09:51:58]Method: POST [09:51:58]URL: /json_proto [09:51:58]Method is POST - this is cgi request [09:51:58]url: /json_proto [09:51:58]query_string will be loaded in cgi processing [09:51:58]execute_cgi json_proto POST (null) [09:51:58]execute_cgi path=json_proto method=POST [09:51:58]POST find Content-Length [09:51:58]Host: 172.17.37.4:8080 [09:51:58]Content-Length: 215 [09:51:58]Content-Type: application/json [09:51:58] [09:51:58]POST finish read [09:51:58]Found Content-Length = 215 [09:51:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:58]execute_script... [09:51:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:58]POST & json_proto [09:51:58]process_json_proto [09:51:58]json parsed OK: [09:51:58]protocol is kg_v1.0 [09:51:58]action value=get_value [09:51:58]process_action get_value [09:51:58]cmd_get_value [09:51:58]process_action get_value done [09:51:58]requested_data is exist [09:51:58]produce_requested_data [09:51:58]requested_item kkm.sn is exist - process it [09:51:58]requested_item kkm.ver is exist - process it [09:51:58]requested_item fm.sn is exist - process it [09:51:58]wFMCommunicate request_size=4 [09:51:58]MH_SAM_APDU [09:51:58]CAPDU: 80 11 00 00 [09:51:58]Write to MH i2c: E2 08 00 52 47 80 11 00 00 00 00 00 00 13 [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:58]Read from MH i2c: E2 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 17 00 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 17 00 52 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6A [09:51:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:51:58]wFMCommunicate OK [09:51:58]requested_item fd.num is exist - process it [09:51:58]SAM_PROTO_GetFieldsCounters [09:51:58]wFMCommunicate request_size=4 [09:51:58]MH_SAM_APDU [09:51:58]CAPDU: 80 13 00 00 [09:51:58]Write to MH i2c: E2 08 00 53 47 80 13 00 00 00 00 00 00 16 [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:58]Read from MH i2c: E2 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 62 00 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 62 00 53 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 0A E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [09:51:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 0A E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:58]wFMCommunicate OK [09:51:58]SAM_PROTO_GetFieldsCounters done [09:51:58]requested_item shift.num is exist - process it [09:51:58]requested_item shift.opened is exist - process it [09:51:58]req_shift_opened [09:51:58]FM_GetShiftState [09:51:58]SAM_PROTO_GetShiftState [09:51:58]wFMCommunicate request_size=4 [09:51:58]MH_SAM_APDU [09:51:58]CAPDU: 80 13 01 00 [09:51:58]Write to MH i2c: E2 08 00 54 47 80 13 01 00 00 00 00 00 18 [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:58]Read from MH i2c: E2 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 0E 00 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 0E 00 54 47 00 09 00 01 98 11 45 67 00 00 00 00 90 00 79 [09:51:58]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [09:51:58]wFMCommunicate OK [09:51:58]SAM_PROTO_GetShiftState done [09:51:58]FM_GetShiftState done [09:51:58]req_shift_opened done [09:51:58]requested_item shift.open_date is exist - process it [09:51:58]req_shift_open_date [09:51:58]req_shift_open_date done [09:51:58]produce_requested_data done [09:51:58]produce_requested_data return {"kkm.sn":"0300000033","kkm.ver":"001","fm.sn":"0000000000874881","fd.num":123146,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [09:51:58]process_action_free get_value [09:51:58]json_value_free [09:51:58]json_value_free done [09:51:58]process_json_proto returns [09:51:58]Send response to host [09:51:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000033","kkm.ver":"001","fm.sn":"0000000000874881","fd.num":123146,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [09:51:58]free response buf [09:51:58]execute_script done [09:51:58]execute_script returns [09:51:58]free content buf [09:51:58]Sock 9.Close socket [09:51:58]Sock 9.Thread stoped [09:51:58]accept exits with 7 [09:51:58]New connection [09:51:58]New thread 3066723684 created [09:51:58]Thread 3066580324 joined [09:51:58]Waiting for new connection... [09:51:58] Sock 7.Parse request [09:51:58]Sock 7.Check first char [09:51:58]Sock 7.First char is OK [09:51:58]request: POST /json_proto HTTP/1.0 [09:51:58]Method: POST [09:51:58]URL: /json_proto [09:51:58]Method is POST - this is cgi request [09:51:58]url: /json_proto [09:51:58]query_string will be loaded in cgi processing [09:51:58]execute_cgi json_proto POST (null) [09:51:58]execute_cgi path=json_proto method=POST [09:51:58]POST find Content-Length [09:51:58]Host: 172.17.37.4:8080 [09:51:58]Content-Length: 331 [09:51:58]Content-Type: application/json [09:51:58] [09:51:58]POST finish read [09:51:58]Found Content-Length = 331 [09:51:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:51:58]execute_script... [09:51:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:51:58]POST & json_proto [09:51:58]process_json_proto [09:51:58]json parsed OK: [09:51:58]protocol is kg_v1.0 [09:51:58]action value=get_value [09:51:58]process_action get_value [09:51:58]cmd_get_value [09:51:58]process_action get_value done [09:51:58]requested_data is exist [09:51:58]produce_requested_data [09:51:58]requested_item fm.sale.total is exist - process it [09:51:58]SAM_PROTO_GetFMData [09:51:58]wFMCommunicate request_size=4 [09:51:58]MH_SAM_APDU [09:51:58]CAPDU: 80 13 03 00 [09:51:58]Write to MH i2c: E2 08 00 55 47 80 13 03 00 00 00 00 00 1B [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:51:59]Read from MH i2c: E2 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 FD 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 FD 00 55 47 00 C5 04 85 04 C1 04 6E 04 04 00 B2 DC 01 00 69 04 A3 00 6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 4E AC 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 EF 03 09 90 00 84 [09:51:59]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 B2 DC 01 00 69 04 A3 00 6F 04 04 00 B3 CD 01 00 B1 04 05 00 AF 7F 97 44 02 70 04 05 00 A4 50 53 C0 01 72 04 04 00 0B 2F 44 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 4E AC 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3D 96 23 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 0E 00 00 B1 04 04 00 18 19 BC 26 70 04 04 00 18 19 BC 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 3A 1D 04 EF 03 09 90 00 [09:51:59]wFMCommunicate OK [09:51:59]wFMCommunicate request_size=4 [09:51:59]MH_SAM_APDU [09:51:59]CAPDU: 80 17 00 00 [09:51:59]Write to MH i2c: E2 08 00 56 47 80 17 00 00 00 00 00 00 1D [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:51:59]Read from MH i2c: E2 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 FD 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 FD 00 56 47 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 AB [09:51:59]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BE C3 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [09:51:59]wFMCommunicate OK [09:51:59]wFMCommunicate request_size=4 [09:51:59]MH_SAM_APDU [09:51:59]CAPDU: 80 17 00 00 [09:51:59]Write to MH i2c: E2 08 00 57 47 80 17 00 00 00 00 00 00 1E [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:51:59]Read from MH i2c: E2 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 FD 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 FD 00 57 47 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 30 [09:51:59]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [09:51:59]wFMCommunicate OK [09:51:59]wFMCommunicate request_size=4 [09:51:59]MH_SAM_APDU [09:51:59]CAPDU: 80 17 00 00 [09:51:59]Write to MH i2c: E2 08 00 58 47 80 17 00 00 00 00 00 00 1F [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:51:59]Read from MH i2c: E2 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 FD 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 FD 00 58 47 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 AB [09:51:59]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [09:51:59]wFMCommunicate OK [09:51:59]wFMCommunicate request_size=4 [09:51:59]MH_SAM_APDU [09:51:59]CAPDU: 80 17 00 00 [09:51:59]Write to MH i2c: E2 08 00 59 47 80 17 00 00 00 00 00 00 20 [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:52:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [09:52:00]Read from MH i2c: E2 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 E2 00 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 E2 00 59 47 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FE [09:52:00]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:52:00]wFMCommunicate OK [09:52:00]SAM_PROTO_GetFMData done [09:52:00]requested_item fm.sale_refund.total is exist - process it [09:52:00]requested_item fm.buy.total is exist - process it [09:52:00]requested_item shift.sale.total is exist - process it [09:52:00]SAM_PROTO_GetShiftData [09:52:00]wFMCommunicate request_size=4 [09:52:00]MH_SAM_APDU [09:52:00]CAPDU: 80 13 02 00 [09:52:00]Write to MH i2c: E2 08 00 5A 47 80 13 02 00 00 00 00 00 1F [09:52:00]Write i2c OK [09:52:00]MH_I2C_Read... [09:52:00]OFD Sender: No OFD packet to send [09:52:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:52:00]Read from MH i2c: E2 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 FD 00 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 FD 00 5A 47 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 92 [09:52:00]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [09:52:00]wFMCommunicate OK [09:52:00]wFMCommunicate request_size=4 [09:52:00]MH_SAM_APDU [09:52:00]CAPDU: 80 17 00 00 [09:52:00]Write to MH i2c: E2 08 00 5B 47 80 17 00 00 00 00 00 00 22 [09:52:00]Write i2c OK [09:52:00]MH_I2C_Read... [09:52:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:52:00]Read from MH i2c: E2 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 FD 00 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 FD 00 5B 47 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 2A [09:52:00]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [09:52:00]wFMCommunicate OK [09:52:00]wFMCommunicate request_size=4 [09:52:00]MH_SAM_APDU [09:52:00]CAPDU: 80 17 00 00 [09:52:00]Write to MH i2c: E2 08 00 5C 47 80 17 00 00 00 00 00 00 23 [09:52:00]Write i2c OK [09:52:00]MH_I2C_Read... [09:52:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:52:01]Read from MH i2c: E2 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 FD 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 FD 00 5C 47 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 F5 [09:52:01]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [09:52:01]wFMCommunicate OK [09:52:01]wFMCommunicate request_size=4 [09:52:01]MH_SAM_APDU [09:52:01]CAPDU: 80 17 00 00 [09:52:01]Write to MH i2c: E2 08 00 5D 47 80 17 00 00 00 00 00 00 24 [09:52:01]Write i2c OK [09:52:01]MH_I2C_Read... [09:52:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:52:01]Read from MH i2c: E2 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 FD 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 FD 00 5D 47 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 96 [09:52:01]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [09:52:01]wFMCommunicate OK [09:52:01]wFMCommunicate request_size=4 [09:52:01]MH_SAM_APDU [09:52:01]CAPDU: 80 17 00 00 [09:52:01]Write to MH i2c: E2 08 00 5E 47 80 17 00 00 00 00 00 00 25 [09:52:01]Write i2c OK [09:52:01]MH_I2C_Read... [09:52:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [09:52:01]Read from MH i2c: E2 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 BD 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 BD 00 5E 47 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0B [09:52:01]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:52:01]wFMCommunicate OK [09:52:01]SAM_PROTO_GetShiftData done [09:52:01]requested_item shift.sale.total_cash is exist - process it [09:52:01]requested_item shift.sale_refund.total is exist - process it [09:52:01]requested_item shift.sale_refund.total_cash is exist - process it [09:52:01]requested_item shift.buy.total is exist - process it [09:52:01]requested_item shift.buy.total_cash is exist - process it [09:52:01]produce_requested_data done [09:52:01]produce_requested_data return {"fm.sale.total":97407139.03,"fm.sale_refund.total":6498614.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:52:01]process_action_free get_value [09:52:01]json_value_free [09:52:01]json_value_free done [09:52:01]process_json_proto returns [09:52:01]Send response to host [09:52:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":97407139.03,"fm.sale_refund.total":6498614.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:52:01]free response buf [09:52:01]execute_script done [09:52:01]execute_script returns [09:52:01]free content buf [09:52:01]Sock 7.Close socket [09:52:01]Sock 7.Thread stoped [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:22]accept exits with 9 [09:53:22]New connection [09:53:22]New thread 3066580324 created [09:53:22]Thread 3066723684 joined [09:53:22]Waiting for new connection... [09:53:22] Sock 9.Parse request [09:53:22]Sock 9.Check first char [09:53:22]Sock 9.First char is OK [09:53:22]request: POST /json_proto HTTP/1.0 [09:53:22]Method: POST [09:53:22]URL: /json_proto [09:53:22]Method is POST - this is cgi request [09:53:22]url: /json_proto [09:53:22]query_string will be loaded in cgi processing [09:53:22]execute_cgi json_proto POST (null) [09:53:22]execute_cgi path=json_proto method=POST [09:53:22]POST find Content-Length [09:53:22]Host: 172.17.37.4:8080 [09:53:22]Content-Length: 677 [09:53:22]Content-Type: application/json [09:53:22] [09:53:22]POST finish read [09:53:22]Found Content-Length = 677 [09:53:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:22]execute_script... [09:53:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:22]POST & json_proto [09:53:22]process_json_proto [09:53:22]json parsed OK: [09:53:22]protocol is kg_v1.0 [09:53:22]action value=close_receipt [09:53:22]process_action close_receipt [09:53:22]cmd_close_receipt [09:53:22]MH_GetDate [09:53:22]Write to MH i2c: F0 00 00 5F 47 95 [09:53:22]Write i2c OK [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: F0 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: F0 09 00 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: F0 09 00 5F 47 00 9C 9A 45 67 B8 5A 43 67 3C [09:53:22]GetLastDocTimeStamp 1732579736 [09:53:22]current date 1732614812 [09:53:22]FM_GetShiftState [09:53:22]SAM_PROTO_GetShiftState [09:53:22]wFMCommunicate request_size=4 [09:53:22]MH_SAM_APDU [09:53:22]CAPDU: 80 13 01 00 [09:53:22]Write to MH i2c: E2 08 00 60 47 80 13 01 00 00 00 00 00 24 [09:53:22]Write i2c OK [09:53:22]MH_I2C_Read... [09:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:22]Read from MH i2c: E2 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: E2 0E 00 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: E2 0E 00 60 47 00 09 00 01 98 11 45 67 00 00 00 00 90 00 85 [09:53:22]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [09:53:22]wFMCommunicate OK [09:53:22]SAM_PROTO_GetShiftState done [09:53:22]FM_GetShiftState done [09:53:22]opened in 1732579736 [09:53:22]opened+sec_in_day 1732666136 [09:53:22]quantity*price = 50010 [09:53:22]sum+1 = 50012 [09:53:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 1 26.11.2024 09:53 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123147 ФПД: 79871479469817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T095332&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123147&fm=79871479469817&tin=02508201610067®Number=0000000000092681&sum=50000 [09:53:23]StoreToDocumentArchive [09:53:23]shift 557 fd 123147 [09:53:23]save to /storage/0557/doc_00123147 [09:53:23]save last doc name /storage/0557/doc_00123147 to /storage/kkm_last_doc_name [09:53:23]save OK [09:53:23]Clear old archive folders... [09:53:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:23]tlvbuf is B6EA2530 [09:53:23]SAM_PROTO_ClearQueue [09:53:23]wFMCommunicate request_size=4 [09:53:23]MH_SAM_APDU [09:53:23]CAPDU: 80 09 00 00 [09:53:23]Write to MH i2c: E2 08 00 6D 47 80 09 00 00 00 00 00 00 26 [09:53:23]Write i2c OK [09:53:23]MH_I2C_Read... [09:53:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:23]Read from MH i2c: E2 [09:53:23]MH_I2C_Read... [09:53:23]Read from MH i2c: E2 03 00 [09:53:23]MH_I2C_Read... [09:53:23]Read from MH i2c: E2 03 00 6D 47 00 90 00 28 [09:53:23]RAPDU: 90 00 [09:53:23]wFMCommunicate OK [09:53:23]SAM_PROTO_ClearQueue done [09:53:23]KKMCreateOFDPacket [09:53:23]OFDProtocolAddRootSTLVToBuf [09:53:23]FM_MakeSignedData [09:53:23]FM_MakeSignedData [09:53:23]SAM_PROTO_SignData [09:53:23]wFMCommunicate request_size=4 [09:53:23]MH_SAM_APDU [09:53:23]CAPDU: 80 0D 01 02 [09:53:23]Write to MH i2c: E2 08 00 6E 47 80 0D 01 02 00 00 00 00 2E [09:53:23]Write i2c OK [09:53:23]MH_I2C_Read... [09:53:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:23]Read from MH i2c: E2 [09:53:23]MH_I2C_Read... [09:53:23]Read from MH i2c: E2 03 00 [09:53:23]MH_I2C_Read... [09:53:23]Read from MH i2c: E2 03 00 6E 47 00 90 00 29 [09:53:23]RAPDU: 90 00 [09:53:23]wFMCommunicate OK [09:53:23]wFMCommunicate request_size=255 [09:53:23]MH_SAM_APDU [09:53:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 9C 9A 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0B E1 01 00 35 04 06 00 48 [09:53:23]Write to MH i2c: E2 02 01 6F 47 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 9C 9A 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0B E1 01 00 35 04 06 00 48 00 00 DC [09:53:23]Write i2c OK [09:53:23]MH_I2C_Read... [09:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:23]Read from MH i2c: E2 [09:53:23]MH_I2C_Read... [09:53:23]Read from MH i2c: E2 03 00 [09:53:23]MH_I2C_Read... [09:53:23]Read from MH i2c: E2 03 00 6F 47 00 90 00 2A [09:53:23]RAPDU: 90 00 [09:53:23]wFMCommunicate OK [09:53:23]wFMCommunicate request_size=10 [09:53:23]MH_SAM_APDU [09:53:23]CAPDU: 80 0D 02 02 05 A4 87 29 56 F9 [09:53:23]Write to MH i2c: E2 0D 00 70 47 80 0D 02 02 05 00 A4 87 29 56 F9 00 00 DE [09:53:23]Write i2c OK [09:53:23]MH_I2C_Read... [09:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:23]Read from MH i2c: E2 [09:53:23]MH_I2C_Read... [09:53:23]Read from MH i2c: E2 03 00 [09:53:23]MH_I2C_Read... [09:53:23]Read from MH i2c: E2 03 00 70 47 00 90 00 2B [09:53:23]RAPDU: 90 00 [09:53:23]wFMCommunicate OK [09:53:23]wFMCommunicate request_size=4 [09:53:23]MH_SAM_APDU [09:53:23]CAPDU: 80 0D 03 02 [09:53:23]Write to MH i2c: E2 08 00 71 47 80 0D 03 02 00 00 00 00 33 [09:53:23]Write i2c OK [09:53:23]MH_I2C_Read... [09:53:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:24]Read from MH i2c: E2 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: E2 0B 00 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: E2 0B 00 71 47 00 1F 6B AF A5 83 2D 19 01 90 00 DC [09:53:24]RAPDU: 1F 6B AF A5 83 2D 19 01 90 00 [09:53:24]wFMCommunicate OK [09:53:24]SAM_PROTO_SignData done [09:53:24]FM_MakeSignedData done [09:53:24]CreateOFDProtocolMessage [09:53:24]wFMCommunicate request_size=4 [09:53:24]MH_SAM_APDU [09:53:24]CAPDU: 80 11 00 00 [09:53:24]Write to MH i2c: E2 08 00 72 47 80 11 00 00 00 00 00 00 33 [09:53:24]Write i2c OK [09:53:24]MH_I2C_Read... [09:53:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:24]Read from MH i2c: E2 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: E2 17 00 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: E2 17 00 72 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8A [09:53:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:53:24]wFMCommunicate OK [09:53:24]CreateOFDProtocolMessage done [09:53:24]OFDSenderStorePacket 123147 [09:53:24]StoreOFDPacket docnum=123147 [09:53:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 56 C6 07 01 6C 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 9C 9A 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0B E1 01 00 35 04 06 00 48 A4 87 29 56 F9 1F 6B AF A5 83 2D 19 01 [09:53:24]CheckFolder [09:53:24]dirname=/storage/ofd_packets [09:53:24]CheckFolder done [09:53:24]ProducePacketName [09:53:24]name=ofd_packets/00123147 [09:53:24]NVStorageSaveData ofd_packets/00123147 [09:53:24]File name is /storage/ofd_packets/00123147 [09:53:24]Write 301 bytes [09:53:24]NVStorageSaveData done [09:53:24]OFDSenderStorePacket done [09:53:24]KKMCreateOFDPacket done [09:53:24]NVStorageSaveData kkm_last_timestamp [09:53:24]File name is /storage/kkm_last_timestamp [09:53:24]Write 4 bytes [09:53:24]NVStorageSaveData done [09:53:24]ExternCall_PrintAddStr [09:53:24]wPrintStart [09:53:24]Write to MH i2c: 01 00 00 73 47 BA [09:53:24]Write i2c OK [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: 01 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: 01 07 00 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: 01 07 00 73 47 00 00 00 00 00 FF 0F CF [09:53:24]RasterBufferAndPrint [09:53:24]line Счет N : (1)717983 [09:53:24]line ИНН: 02508201610067 [09:53:24]line Контрольно-Кассовый Чек [09:53:24]line ПРОДАЖА [09:53:24]line ТРК (МРК, ГНК) : 22 [09:53:24]line Товар: 2710124130 [09:53:24]line Аи-92-К-4 [09:53:24]line 7.420 * 67.40 [09:53:24]line = 500.11 [09:53:24]line НДС 12% НСП 1% [09:53:24]line > о реализуемом товаре [09:53:24]line ОКРУГЛЕНИЕ: -0.11 [09:53:24]line ИТОГО: 500.00 [09:53:24]line Внесено: 500.00 [09:53:24]line СДАЧА: 0.00 [09:53:24]line НСП 1% : 4.43 [09:53:24]line НДС 12% : 53.11 [09:53:24]line Наличными: 500.00 [09:53:24]line Безнал.: 0.00 [09:53:24]line Место: АЗС № 64 "Партнер Нефть" [09:53:24]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:53:24]line СНО: Общий режим [09:53:24]line Чек 1 26.11.2024 09:53 [09:53:24]line Смена: 557 ФФД: 1.0 [09:53:24]line ЗНМ: 0300000033 [09:53:24]line РНМ: 0000000000092681 [09:53:24]line Версия ККМ: 001 [09:53:24]line ФМ: 0000000000874881 [09:53:24]line ФД: 123147 [09:53:24]line ФПД: 79871479469817 [09:53:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T095332&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123147&fm=79871479469817&tin=02508201610067®Number=0000000000092681&sum=50000 [09:53:24]OFD Sender: Processing packet 123147 [packets to send 7, broken 6] [09:53:24]ProducePacketName [09:53:24]name=ofd_packets/00123147 [09:53:24]OFD Sender: To server: pG, [09:53:24]CommunicateWithHost lk.salyk.kg:30040 [09:53:24]ConnectInit lk.salyk.kg [09:53:24]written 0, free lines is 4095 [09:53:24]Connected sock=10 [09:53:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 56 C6 07 01 6C 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 9C 9A 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0B E1 01 00 35 04 06 00 48 A4 87 29 56 F9 1F 6B AF A5 83 2D 19 01 [09:53:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 26 75 47 00 B1 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 38 37 34 38 38 31 10 04 04 00 0B E1 01 00 F4 03 04 00 5F 46 45 67 B6 04 01 00 00 60 35 91 64 24 25 DF AB [09:53:24]CommunicateWithHost err = 0 [09:53:24]CheckOFDResponse [09:53:24]1017 (14) - 77093643461234 [09:53:24]1041 (16) - 0000000000874881 [09:53:24]1040 (4) - 123147 [09:53:24]1012 (4) - 26.11.2024 03:54 [09:53:24]1206 (1) - 0 [09:53:24]OFD Sender: Remove packet 123147 [09:53:24]ProducePacketName [09:53:24]name=ofd_packets/00123147 [09:53:24]NVStorageDeleteData [09:53:24]Write to MH i2c: 01 00 00 9E 47 E5 [09:53:24]Write i2c OK [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: 01 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: 01 07 00 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: 01 07 00 9E 47 00 00 00 00 00 40 0C 38 [09:53:24]RasterBufferAndPrint [09:53:24]line [09:53:24]line [09:53:24]line [09:53:24]line [09:53:24]line [09:53:24]written 0, free lines is 3140 [09:53:24]MH_Cut [09:53:24]Write to MH i2c: D1 01 00 A5 47 01 BE [09:53:24]Write i2c OK [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: D1 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: D1 01 00 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: D1 01 00 A5 47 00 BD [09:53:24]Write to MH i2c: 01 00 00 A6 47 ED [09:53:24]Write i2c OK [09:53:24]MH_I2C_Read... [09:53:25]OFD Sender: No OFD packet to send [09:53:26]*** Cut start [09:53:26]*** Partial cut [09:53:26]*** CUTSNS_PIN = 1 [09:53:26]*** CUTSNS_PIN = 0 [09:53:26]*** Brake cut motor [09:53:26]Read from MH i2c: 01 [09:53:26]MH_I2C_Read... [09:53:26]*** Stop cut motor [09:53:26]*** Cut end [09:53:26]Read from MH i2c: 01 07 00 [09:53:26]MH_I2C_Read... [09:53:26]Read from MH i2c: 01 07 00 A6 47 00 00 00 00 00 FF 0F 02 [09:53:26]process_action close_receipt done [09:53:26]requested_data is exist [09:53:26]produce_requested_data [09:53:26]requested_item fm.sn is exist - process it [09:53:26]wFMCommunicate request_size=4 [09:53:26]MH_SAM_APDU [09:53:26]CAPDU: 80 11 00 00 [09:53:26]Write to MH i2c: E2 08 00 A7 47 80 11 00 00 00 00 00 00 68 [09:53:26]Write i2c OK [09:53:26]MH_I2C_Read... [09:53:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:27]Read from MH i2c: E2 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 17 00 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 17 00 A7 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BF [09:53:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:53:27]wFMCommunicate OK [09:53:27]requested_item fd.num is exist - process it [09:53:27]SAM_PROTO_GetFieldsCounters [09:53:27]wFMCommunicate request_size=4 [09:53:27]MH_SAM_APDU [09:53:27]CAPDU: 80 13 00 00 [09:53:27]Write to MH i2c: E2 08 00 A8 47 80 13 00 00 00 00 00 00 6B [09:53:27]Write i2c OK [09:53:27]MH_I2C_Read... [09:53:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:27]Read from MH i2c: E2 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 62 00 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 62 00 A8 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 0B E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [09:53:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 0B E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:27]wFMCommunicate OK [09:53:27]SAM_PROTO_GetFieldsCounters done [09:53:27]requested_item shift.num is exist - process it [09:53:27]requested_item shift.opened is exist - process it [09:53:27]req_shift_opened [09:53:27]FM_GetShiftState [09:53:27]SAM_PROTO_GetShiftState [09:53:27]wFMCommunicate request_size=4 [09:53:27]MH_SAM_APDU [09:53:27]CAPDU: 80 13 01 00 [09:53:27]Write to MH i2c: E2 08 00 A9 47 80 13 01 00 00 00 00 00 6D [09:53:27]Write i2c OK [09:53:27]MH_I2C_Read... [09:53:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:27]Read from MH i2c: E2 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 0E 00 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 0E 00 A9 47 00 09 00 01 98 11 45 67 00 00 00 00 90 00 CE [09:53:27]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [09:53:27]wFMCommunicate OK [09:53:27]SAM_PROTO_GetShiftState done [09:53:27]FM_GetShiftState done [09:53:27]req_shift_opened done [09:53:27]requested_item shift.open_date is exist - process it [09:53:27]req_shift_open_date [09:53:27]req_shift_open_date done [09:53:27]produce_requested_data done [09:53:27]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123147,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [09:53:27]process_action_free close_receipt [09:53:27]json_value_free [09:53:27]json_value_free done [09:53:27]process_json_proto returns [09:53:27]Send response to host [09:53:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123147,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [09:53:27]free response buf [09:53:27]execute_script done [09:53:27]execute_script returns [09:53:27]free content buf [09:53:27]Sock 9.Close socket [09:53:27]Sock 9.Thread stoped [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:37]accept exits with 7 [09:53:37]New connection [09:53:37]New thread 3066723684 created [09:53:37]Thread 3066580324 joined [09:53:37]Waiting for new connection... [09:53:37] Sock 7.Parse request [09:53:37]Sock 7.Check first char [09:53:37]Sock 7.First char is OK [09:53:37]request: POST /json_proto HTTP/1.0 [09:53:37]Method: POST [09:53:37]URL: /json_proto [09:53:37]Method is POST - this is cgi request [09:53:37]url: /json_proto [09:53:37]query_string will be loaded in cgi processing [09:53:37]execute_cgi json_proto POST (null) [09:53:37]execute_cgi path=json_proto method=POST [09:53:37]POST find Content-Length [09:53:37]Host: 172.17.37.4:8080 [09:53:37]Content-Length: 682 [09:53:37]Content-Type: application/json [09:53:37] [09:53:37]POST finish read [09:53:37]Found Content-Length = 682 [09:53:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:37]execute_script... [09:53:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:37]POST & json_proto [09:53:37]process_json_proto [09:53:37]json parsed OK: [09:53:37]protocol is kg_v1.0 [09:53:37]action value=close_receipt [09:53:37]process_action close_receipt [09:53:37]cmd_close_receipt [09:53:37]MH_GetDate [09:53:37]Write to MH i2c: F0 00 00 AA 47 E0 [09:53:37]Write i2c OK [09:53:37]MH_I2C_Read... [09:53:37]Read from MH i2c: F0 [09:53:37]MH_I2C_Read... [09:53:37]Read from MH i2c: F0 09 00 [09:53:37]MH_I2C_Read... [09:53:37]Read from MH i2c: F0 09 00 AA 47 00 AB 9A 45 67 B8 5A 43 67 96 [09:53:37]GetLastDocTimeStamp 1732614812 [09:53:37]current date 1732614827 [09:53:37]FM_GetShiftState [09:53:37]SAM_PROTO_GetShiftState [09:53:37]wFMCommunicate request_size=4 [09:53:37]MH_SAM_APDU [09:53:37]CAPDU: 80 13 01 00 [09:53:37]Write to MH i2c: E2 08 00 AB 47 80 13 01 00 00 00 00 00 6F [09:53:37]Write i2c OK [09:53:37]MH_I2C_Read... [09:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:37]Read from MH i2c: E2 [09:53:37]MH_I2C_Read... [09:53:37]Read from MH i2c: E2 0E 00 [09:53:37]MH_I2C_Read... [09:53:37]Read from MH i2c: E2 0E 00 AB 47 00 09 00 01 98 11 45 67 00 00 00 00 90 00 D0 [09:53:37]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [09:53:37]wFMCommunicate OK [09:53:37]SAM_PROTO_GetShiftState done [09:53:37]FM_GetShiftState done [09:53:37]opened in 1732579736 [09:53:37]opened+sec_in_day 1732666136 [09:53:37]quantity*price = 100021 [09:53:37]sum+1 = 100023 [09:53:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 2 26.11.2024 09:53 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123148 ФПД: 226049709166813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T095347&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123148&fm=226049709166813&tin=02508201610067®Number=0000000000092681&sum=100000 [09:53:38]StoreToDocumentArchive [09:53:38]shift 557 fd 123148 [09:53:38]save to /storage/0557/doc_00123148 [09:53:38]save last doc name /storage/0557/doc_00123148 to /storage/kkm_last_doc_name [09:53:38]save OK [09:53:38]Clear old archive folders... [09:53:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:38]tlvbuf is 01F5E830 [09:53:38]SAM_PROTO_ClearQueue [09:53:38]wFMCommunicate request_size=4 [09:53:38]MH_SAM_APDU [09:53:38]CAPDU: 80 09 00 00 [09:53:38]Write to MH i2c: E2 08 00 B8 47 80 09 00 00 00 00 00 00 71 [09:53:38]Write i2c OK [09:53:38]MH_I2C_Read... [09:53:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:38]Read from MH i2c: E2 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 03 00 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 03 00 B8 47 00 90 00 73 [09:53:38]RAPDU: 90 00 [09:53:38]wFMCommunicate OK [09:53:38]SAM_PROTO_ClearQueue done [09:53:38]KKMCreateOFDPacket [09:53:38]OFDProtocolAddRootSTLVToBuf [09:53:38]FM_MakeSignedData [09:53:38]FM_MakeSignedData [09:53:38]SAM_PROTO_SignData [09:53:38]wFMCommunicate request_size=4 [09:53:38]MH_SAM_APDU [09:53:38]CAPDU: 80 0D 01 02 [09:53:38]Write to MH i2c: E2 08 00 B9 47 80 0D 01 02 00 00 00 00 79 [09:53:38]Write i2c OK [09:53:38]MH_I2C_Read... [09:53:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:38]Read from MH i2c: E2 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 03 00 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 03 00 B9 47 00 90 00 74 [09:53:38]RAPDU: 90 00 [09:53:38]wFMCommunicate OK [09:53:38]wFMCommunicate request_size=255 [09:53:38]MH_SAM_APDU [09:53:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 AB 9A 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0C E1 01 00 35 04 06 00 CD [09:53:38]Write to MH i2c: E2 02 01 BA 47 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 AB 9A 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0C E1 01 00 35 04 06 00 CD 00 00 AD [09:53:38]Write i2c OK [09:53:38]MH_I2C_Read... [09:53:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:38]Read from MH i2c: E2 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 03 00 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 03 00 BA 47 00 90 00 75 [09:53:38]RAPDU: 90 00 [09:53:38]wFMCommunicate OK [09:53:38]wFMCommunicate request_size=10 [09:53:38]MH_SAM_APDU [09:53:38]CAPDU: 80 0D 02 02 05 97 4C 9D D0 DD [09:53:38]Write to MH i2c: E2 0D 00 BB 47 80 0D 02 02 05 00 97 4C 9D D0 DD 00 00 B3 [09:53:38]Write i2c OK [09:53:38]MH_I2C_Read... [09:53:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:38]Read from MH i2c: E2 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 03 00 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 03 00 BB 47 00 90 00 76 [09:53:38]RAPDU: 90 00 [09:53:38]wFMCommunicate OK [09:53:38]wFMCommunicate request_size=4 [09:53:38]MH_SAM_APDU [09:53:38]CAPDU: 80 0D 03 02 [09:53:38]Write to MH i2c: E2 08 00 BC 47 80 0D 03 02 00 00 00 00 7E [09:53:38]Write i2c OK [09:53:38]MH_I2C_Read... [09:53:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:38]Read from MH i2c: E2 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 0B 00 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 0B 00 BC 47 00 13 68 F1 F0 DA 82 C3 34 90 00 2E [09:53:38]RAPDU: 13 68 F1 F0 DA 82 C3 34 90 00 [09:53:38]wFMCommunicate OK [09:53:38]SAM_PROTO_SignData done [09:53:38]FM_MakeSignedData done [09:53:38]CreateOFDProtocolMessage [09:53:38]wFMCommunicate request_size=4 [09:53:38]MH_SAM_APDU [09:53:38]CAPDU: 80 11 00 00 [09:53:38]Write to MH i2c: E2 08 00 BD 47 80 11 00 00 00 00 00 00 7E [09:53:38]Write i2c OK [09:53:38]MH_I2C_Read... [09:53:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:38]Read from MH i2c: E2 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 17 00 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 17 00 BD 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D5 [09:53:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:53:38]wFMCommunicate OK [09:53:38]CreateOFDProtocolMessage done [09:53:38]OFDSenderStorePacket 123148 [09:53:38]StoreOFDPacket docnum=123148 [09:53:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DB CA 07 01 74 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 AB 9A 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0C E1 01 00 35 04 06 00 CD 97 4C 9D D0 DD 13 68 F1 F0 DA 82 C3 34 [09:53:38]CheckFolder [09:53:38]dirname=/storage/ofd_packets [09:53:38]CheckFolder done [09:53:38]ProducePacketName [09:53:38]name=ofd_packets/00123148 [09:53:38]NVStorageSaveData ofd_packets/00123148 [09:53:38]File name is /storage/ofd_packets/00123148 [09:53:38]Write 301 bytes [09:53:38]NVStorageSaveData done [09:53:38]OFDSenderStorePacket done [09:53:38]KKMCreateOFDPacket done [09:53:38]NVStorageSaveData kkm_last_timestamp [09:53:38]File name is /storage/kkm_last_timestamp [09:53:38]Write 4 bytes [09:53:38]NVStorageSaveData done [09:53:38]ExternCall_PrintAddStr [09:53:38]wPrintStart [09:53:38]Write to MH i2c: 01 00 00 BE 47 05 [09:53:38]Write i2c OK [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: 01 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: 01 07 00 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: 01 07 00 BE 47 00 00 00 00 00 FF 0F 1A [09:53:38]RasterBufferAndPrint [09:53:38]line Счет N : (1)717984 [09:53:38]line ИНН: 02508201610067 [09:53:38]line Контрольно-Кассовый Чек [09:53:38]line ПРОДАЖА [09:53:38]line ТРК (МРК, ГНК) : 12 [09:53:38]line Товар: 2710124130 [09:53:38]line Аи-92-К-4 [09:53:38]line 14.840 * 67.40 [09:53:38]line = 1000.22 [09:53:38]line НДС 12% НСП 1% [09:53:38]line > о реализуемом товаре [09:53:38]line ОКРУГЛЕНИЕ: -0.22 [09:53:38]line ИТОГО: 1000.00 [09:53:38]line Внесено: 1000.00 [09:53:38]line СДАЧА: 0.00 [09:53:38]line НСП 1% : 8.85 [09:53:38]line НДС 12% : 106.22 [09:53:38]line Наличными: 1000.00 [09:53:38]line Безнал.: 0.00 [09:53:38]line Место: АЗС № 64 "Партнер Нефть" [09:53:38]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:53:38]line СНО: Общий режим [09:53:38]line Чек 2 26.11.2024 09:53 [09:53:38]line Смена: 557 ФФД: 1.0 [09:53:38]line ЗНМ: 0300000033 [09:53:38]line РНМ: 0000000000092681 [09:53:38]line Версия ККМ: 001 [09:53:38]line ФМ: 0000000000874881 [09:53:38]line ФД: 123148 [09:53:38]line ФПД: 226049709166813 [09:53:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T095347&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123148&fm=226049709166813&tin=02508201610067®Number=0000000000092681&sum=100000 [09:53:39]OFD Sender: Processing packet 123148 [packets to send 7, broken 6] [09:53:39]ProducePacketName [09:53:39]name=ofd_packets/00123148 [09:53:39]OFD Sender: To server: pG, [09:53:39]CommunicateWithHost lk.salyk.kg:30040 [09:53:39]ConnectInit lk.salyk.kg [09:53:39]written 0, free lines is 4095 [09:53:39]Connected sock=10 [09:53:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DB CA 07 01 74 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 AB 9A 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0C E1 01 00 35 04 06 00 CD 97 4C 9D D0 DD 13 68 F1 F0 DA 82 C3 34 [09:53:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 55 05 47 00 A3 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0C E1 01 00 F4 03 04 00 6D 46 45 67 B6 04 01 00 00 34 D8 A1 25 05 BF A3 5F [09:53:39]CommunicateWithHost err = 0 [09:53:39]CheckOFDResponse [09:53:39]1017 (14) - 77093643461234 [09:53:39]1041 (16) - 0000000000874881 [09:53:39]1040 (4) - 123148 [09:53:39]1012 (4) - 26.11.2024 03:54 [09:53:39]1206 (1) - 0 [09:53:39]OFD Sender: Remove packet 123148 [09:53:39]ProducePacketName [09:53:39]name=ofd_packets/00123148 [09:53:39]NVStorageDeleteData [09:53:39]Write to MH i2c: 01 00 00 E9 47 30 [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: 01 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: 01 07 00 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: 01 07 00 E9 47 00 00 00 00 00 41 0C 84 [09:53:39]RasterBufferAndPrint [09:53:39]line [09:53:39]line [09:53:39]line [09:53:39]line [09:53:39]line [09:53:39]written 0, free lines is 3142 [09:53:39]MH_Cut [09:53:39]Write to MH i2c: D1 01 00 F0 47 01 09 [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: D1 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: D1 01 00 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: D1 01 00 F0 47 00 08 [09:53:39]Write to MH i2c: 01 00 00 F1 47 38 [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:39]OFD Sender: No OFD packet to send [09:53:40]*** Cut start [09:53:40]*** Partial cut [09:53:40]*** CUTSNS_PIN = 1 [09:53:41]*** CUTSNS_PIN = 0 [09:53:41]*** Brake cut motor [09:53:41]Read from MH i2c: 01 [09:53:41]MH_I2C_Read... [09:53:41]*** Stop cut motor [09:53:41]*** Cut end [09:53:41]Read from MH i2c: 01 07 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: 01 07 00 F1 47 00 00 00 00 00 FF 0F 4D [09:53:41]process_action close_receipt done [09:53:41]requested_data is exist [09:53:41]produce_requested_data [09:53:41]requested_item fm.sn is exist - process it [09:53:41]wFMCommunicate request_size=4 [09:53:41]MH_SAM_APDU [09:53:41]CAPDU: 80 11 00 00 [09:53:41]Write to MH i2c: E2 08 00 F2 47 80 11 00 00 00 00 00 00 B3 [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:41]Read from MH i2c: E2 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 17 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 17 00 F2 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0A [09:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:53:41]wFMCommunicate OK [09:53:41]requested_item fd.num is exist - process it [09:53:41]SAM_PROTO_GetFieldsCounters [09:53:41]wFMCommunicate request_size=4 [09:53:41]MH_SAM_APDU [09:53:41]CAPDU: 80 13 00 00 [09:53:41]Write to MH i2c: E2 08 00 F3 47 80 13 00 00 00 00 00 00 B6 [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:41]Read from MH i2c: E2 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 62 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 62 00 F3 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 0C E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [09:53:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 0C E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:41]wFMCommunicate OK [09:53:41]SAM_PROTO_GetFieldsCounters done [09:53:41]requested_item shift.num is exist - process it [09:53:41]requested_item shift.opened is exist - process it [09:53:41]req_shift_opened [09:53:41]FM_GetShiftState [09:53:41]SAM_PROTO_GetShiftState [09:53:41]wFMCommunicate request_size=4 [09:53:41]MH_SAM_APDU [09:53:41]CAPDU: 80 13 01 00 [09:53:41]Write to MH i2c: E2 08 00 F4 47 80 13 01 00 00 00 00 00 B8 [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:41]Read from MH i2c: E2 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 0E 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 0E 00 F4 47 00 09 00 01 98 11 45 67 00 00 00 00 90 00 19 [09:53:41]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [09:53:41]wFMCommunicate OK [09:53:41]SAM_PROTO_GetShiftState done [09:53:41]FM_GetShiftState done [09:53:41]req_shift_opened done [09:53:41]requested_item shift.open_date is exist - process it [09:53:41]req_shift_open_date [09:53:41]req_shift_open_date done [09:53:41]produce_requested_data done [09:53:41]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123148,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [09:53:41]process_action_free close_receipt [09:53:41]json_value_free [09:53:41]json_value_free done [09:53:41]process_json_proto returns [09:53:41]Send response to host [09:53:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123148,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [09:53:41]free response buf [09:53:41]execute_script done [09:53:41]execute_script returns [09:53:41]free content buf [09:53:41]Sock 7.Close socket [09:53:41]Sock 7.Thread stoped [09:53:44]OFD Sender: No OFD packet to send [09:53:45]accept exits with 9 [09:53:45]New connection [09:53:45]New thread 3066580324 created [09:53:45]Thread 3066723684 joined [09:53:45]Waiting for new connection... [09:53:45] Sock 9.Parse request [09:53:45]Sock 9.Check first char [09:53:45]Sock 9.First char is OK [09:53:45]request: POST /json_proto HTTP/1.0 [09:53:45]Method: POST [09:53:45]URL: /json_proto [09:53:45]Method is POST - this is cgi request [09:53:45]url: /json_proto [09:53:45]query_string will be loaded in cgi processing [09:53:45]execute_cgi json_proto POST (null) [09:53:45]execute_cgi path=json_proto method=POST [09:53:45]POST find Content-Length [09:53:45]Host: 172.17.37.4:8080 [09:53:45]Content-Length: 678 [09:53:45]Content-Type: application/json [09:53:45] [09:53:45]POST finish read [09:53:45]Found Content-Length = 678 [09:53:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:45]execute_script... [09:53:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:45]POST & json_proto [09:53:45]process_json_proto [09:53:45]json parsed OK: [09:53:45]protocol is kg_v1.0 [09:53:45]action value=close_receipt [09:53:45]process_action close_receipt [09:53:45]cmd_close_receipt [09:53:45]MH_GetDate [09:53:45]Write to MH i2c: F0 00 00 F5 47 2B [09:53:45]Write i2c OK [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: F0 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: F0 09 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: F0 09 00 F5 47 00 B3 9A 45 67 B8 5A 43 67 E9 [09:53:45]GetLastDocTimeStamp 1732614827 [09:53:45]current date 1732614835 [09:53:45]FM_GetShiftState [09:53:45]SAM_PROTO_GetShiftState [09:53:45]wFMCommunicate request_size=4 [09:53:45]MH_SAM_APDU [09:53:45]CAPDU: 80 13 01 00 [09:53:45]Write to MH i2c: E2 08 00 F6 47 80 13 01 00 00 00 00 00 BA [09:53:45]Write i2c OK [09:53:45]MH_I2C_Read... [09:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:45]Read from MH i2c: E2 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 0E 00 [09:53:45]MH_I2C_Read... [09:53:45]Read from MH i2c: E2 0E 00 F6 47 00 09 00 01 98 11 45 67 00 00 00 00 90 00 1B [09:53:45]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [09:53:45]wFMCommunicate OK [09:53:45]SAM_PROTO_GetShiftState done [09:53:45]FM_GetShiftState done [09:53:45]opened in 1732579736 [09:53:45]opened+sec_in_day 1732666136 [09:53:45]quantity*price = 70028 [09:53:45]sum+1 = 70030 [09:53:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 3 26.11.2024 09:53 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123149 ФПД: 278807730505917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T095355&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123149&fm=278807730505917&tin=02508201610067®Number=0000000000092681&sum=70000 [09:53:46]StoreToDocumentArchive [09:53:46]shift 557 fd 123149 [09:53:46]save to /storage/0557/doc_00123149 [09:53:46]save last doc name /storage/0557/doc_00123149 to /storage/kkm_last_doc_name [09:53:46]save OK [09:53:46]Clear old archive folders... [09:53:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:46]tlvbuf is 01F3A920 [09:53:46]SAM_PROTO_ClearQueue [09:53:46]wFMCommunicate request_size=4 [09:53:46]MH_SAM_APDU [09:53:46]CAPDU: 80 09 00 00 [09:53:46]Write to MH i2c: E2 08 00 03 48 80 09 00 00 00 00 00 00 BD [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:46]Read from MH i2c: E2 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 03 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 03 00 03 48 00 90 00 BF [09:53:46]RAPDU: 90 00 [09:53:46]wFMCommunicate OK [09:53:46]SAM_PROTO_ClearQueue done [09:53:46]KKMCreateOFDPacket [09:53:46]OFDProtocolAddRootSTLVToBuf [09:53:46]FM_MakeSignedData [09:53:46]FM_MakeSignedData [09:53:46]SAM_PROTO_SignData [09:53:46]wFMCommunicate request_size=4 [09:53:46]MH_SAM_APDU [09:53:46]CAPDU: 80 0D 01 02 [09:53:46]Write to MH i2c: E2 08 00 04 48 80 0D 01 02 00 00 00 00 C5 [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:46]Read from MH i2c: E2 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 03 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 03 00 04 48 00 90 00 C0 [09:53:46]RAPDU: 90 00 [09:53:46]wFMCommunicate OK [09:53:46]wFMCommunicate request_size=255 [09:53:46]MH_SAM_APDU [09:53:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B3 9A 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0D E1 01 00 35 04 06 00 FD [09:53:46]Write to MH i2c: E2 02 01 05 48 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 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B3 9A 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0D E1 01 00 35 04 06 00 FD 00 00 51 [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:46]Read from MH i2c: E2 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 03 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 03 00 05 48 00 90 00 C1 [09:53:46]RAPDU: 90 00 [09:53:46]wFMCommunicate OK [09:53:46]wFMCommunicate request_size=10 [09:53:46]MH_SAM_APDU [09:53:46]CAPDU: 80 0D 02 02 05 92 FB BC C8 BD [09:53:46]Write to MH i2c: E2 0D 00 06 48 80 0D 02 02 05 00 92 FB BC C8 BD 00 00 A0 [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:46]Read from MH i2c: E2 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 03 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 03 00 06 48 00 90 00 C2 [09:53:46]RAPDU: 90 00 [09:53:46]wFMCommunicate OK [09:53:46]wFMCommunicate request_size=4 [09:53:46]MH_SAM_APDU [09:53:46]CAPDU: 80 0D 03 02 [09:53:46]Write to MH i2c: E2 08 00 07 48 80 0D 03 02 00 00 00 00 CA [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:46]Read from MH i2c: E2 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 0B 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 0B 00 07 48 00 FE 29 A2 73 01 1C 81 1D 90 00 C2 [09:53:46]RAPDU: FE 29 A2 73 01 1C 81 1D 90 00 [09:53:46]wFMCommunicate OK [09:53:46]SAM_PROTO_SignData done [09:53:46]FM_MakeSignedData done [09:53:46]CreateOFDProtocolMessage [09:53:46]wFMCommunicate request_size=4 [09:53:46]MH_SAM_APDU [09:53:46]CAPDU: 80 11 00 00 [09:53:46]Write to MH i2c: E2 08 00 08 48 80 11 00 00 00 00 00 00 CA [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:46]Read from MH i2c: E2 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 17 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: E2 17 00 08 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 21 [09:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:53:46]wFMCommunicate OK [09:53:46]CreateOFDProtocolMessage done [09:53:46]OFDSenderStorePacket 123149 [09:53:46]StoreOFDPacket docnum=123149 [09:53:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DA 6E 07 01 91 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B3 9A 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0D E1 01 00 35 04 06 00 FD 92 FB BC C8 BD FE 29 A2 73 01 1C 81 1D [09:53:46]CheckFolder [09:53:46]dirname=/storage/ofd_packets [09:53:46]CheckFolder done [09:53:46]ProducePacketName [09:53:46]name=ofd_packets/00123149 [09:53:46]NVStorageSaveData ofd_packets/00123149 [09:53:46]File name is /storage/ofd_packets/00123149 [09:53:46]Write 301 bytes [09:53:46]NVStorageSaveData done [09:53:46]OFDSenderStorePacket done [09:53:46]KKMCreateOFDPacket done [09:53:46]NVStorageSaveData kkm_last_timestamp [09:53:46]File name is /storage/kkm_last_timestamp [09:53:46]Write 4 bytes [09:53:46]NVStorageSaveData done [09:53:46]ExternCall_PrintAddStr [09:53:46]wPrintStart [09:53:46]Write to MH i2c: 01 00 00 09 48 51 [09:53:46]Write i2c OK [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: 01 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: 01 07 00 [09:53:46]MH_I2C_Read... [09:53:46]Read from MH i2c: 01 07 00 09 48 00 00 00 00 00 FF 0F 66 [09:53:46]RasterBufferAndPrint [09:53:46]line Счет N : (1)717985 [09:53:46]line ИНН: 02508201610067 [09:53:46]line Контрольно-Кассовый Чек [09:53:46]line ПРОДАЖА [09:53:46]line ТРК (МРК, ГНК) : 42 [09:53:46]line Товар: 2710124130 [09:53:46]line Аи-92-К-4 [09:53:46]line 10.390 * 67.40 [09:53:46]line = 700.29 [09:53:46]line НДС 12% НСП 1% [09:53:46]line > о реализуемом товаре [09:53:46]line ОКРУГЛЕНИЕ: -0.29 [09:53:46]line ИТОГО: 700.00 [09:53:46]line Внесено: 700.00 [09:53:46]line СДАЧА: 0.00 [09:53:46]line НСП 1% : 6.20 [09:53:46]line НДС 12% : 74.37 [09:53:46]line Наличными: 700.00 [09:53:46]line Безнал.: 0.00 [09:53:46]line Место: АЗС № 64 "Партнер Нефть" [09:53:46]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:53:46]line СНО: Общий режим [09:53:46]line Чек 3 26.11.2024 09:53 [09:53:46]line Смена: 557 ФФД: 1.0 [09:53:46]line ЗНМ: 0300000033 [09:53:46]line РНМ: 0000000000092681 [09:53:46]line Версия ККМ: 001 [09:53:46]line ФМ: 0000000000874881 [09:53:46]line ФД: 123149 [09:53:46]line ФПД: 278807730505917 [09:53:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T095355&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123149&fm=278807730505917&tin=02508201610067®Number=0000000000092681&sum=70000 [09:53:46]written 0, free lines is 4095 [09:53:46]OFD Sender: Processing packet 123149 [packets to send 7, broken 6] [09:53:46]ProducePacketName [09:53:46]name=ofd_packets/00123149 [09:53:46]OFD Sender: To server: pG, [09:53:46]CommunicateWithHost lk.salyk.kg:30040 [09:53:46]ConnectInit lk.salyk.kg [09:53:46]Connected sock=10 [09:53:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DA 6E 07 01 91 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B3 9A 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0D E1 01 00 35 04 06 00 FD 92 FB BC C8 BD FE 29 A2 73 01 1C 81 1D [09:53:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 0A 33 47 00 94 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0D E1 01 00 F4 03 04 00 75 46 45 67 B6 04 01 00 00 7F 38 85 75 C6 10 C2 67 [09:53:47]CommunicateWithHost err = 0 [09:53:47]CheckOFDResponse [09:53:47]1017 (14) - 77093643461234 [09:53:47]1041 (16) - 0000000000874881 [09:53:47]1040 (4) - 123149 [09:53:47]1012 (4) - 26.11.2024 03:54 [09:53:47]1206 (1) - 0 [09:53:47]OFD Sender: Remove packet 123149 [09:53:47]ProducePacketName [09:53:47]name=ofd_packets/00123149 [09:53:47]NVStorageDeleteData [09:53:47]Write to MH i2c: 01 00 00 34 48 7C [09:53:47]Write i2c OK [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: 01 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: 01 07 00 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: 01 07 00 34 48 00 00 00 00 00 4E 0C DD [09:53:47]RasterBufferAndPrint [09:53:47]line [09:53:47]line [09:53:47]line [09:53:47]line [09:53:47]line [09:53:47]written 0, free lines is 3157 [09:53:47]MH_Cut [09:53:47]Write to MH i2c: D1 01 00 3B 48 01 55 [09:53:47]Write i2c OK [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: D1 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: D1 01 00 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: D1 01 00 3B 48 00 54 [09:53:47]Write to MH i2c: 01 00 00 3C 48 84 [09:53:47]Write i2c OK [09:53:47]MH_I2C_Read... [09:53:47]OFD Sender: No OFD packet to send [09:53:48]*** Cut start [09:53:48]*** Partial cut [09:53:48]*** CUTSNS_PIN = 1 [09:53:48]*** CUTSNS_PIN = 0 [09:53:48]*** Brake cut motor [09:53:49]Read from MH i2c: 01 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: 01 07 00 [09:53:49]MH_I2C_Read... [09:53:49]*** Stop cut motor [09:53:49]Read from MH i2c: 01 07 00 3C 48 00 00 00 00 00 FF 0F 99 [09:53:49]process_action close_receipt done [09:53:49]requested_data is exist [09:53:49]produce_requested_data [09:53:49]requested_item fm.sn is exist - process it [09:53:49]wFMCommunicate request_size=4 [09:53:49]MH_SAM_APDU [09:53:49]CAPDU: 80 11 00 00 [09:53:49]Write to MH i2c: E2 08 00 3D 48 80 11 00 00 00 00 00 00 FF [09:53:49]*** Cut end [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:49]Read from MH i2c: E2 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 17 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 17 00 3D 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 56 [09:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:53:49]wFMCommunicate OK [09:53:49]requested_item fd.num is exist - process it [09:53:49]SAM_PROTO_GetFieldsCounters [09:53:49]wFMCommunicate request_size=4 [09:53:49]MH_SAM_APDU [09:53:49]CAPDU: 80 13 00 00 [09:53:49]Write to MH i2c: E2 08 00 3E 48 80 13 00 00 00 00 00 00 02 [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:49]Read from MH i2c: E2 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 62 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 62 00 3E 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 0D E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [09:53:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 0D E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:49]wFMCommunicate OK [09:53:49]SAM_PROTO_GetFieldsCounters done [09:53:49]requested_item shift.num is exist - process it [09:53:49]requested_item shift.opened is exist - process it [09:53:49]req_shift_opened [09:53:49]FM_GetShiftState [09:53:49]SAM_PROTO_GetShiftState [09:53:49]wFMCommunicate request_size=4 [09:53:49]MH_SAM_APDU [09:53:49]CAPDU: 80 13 01 00 [09:53:49]Write to MH i2c: E2 08 00 3F 48 80 13 01 00 00 00 00 00 04 [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:49]Read from MH i2c: E2 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 0E 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 0E 00 3F 48 00 09 00 01 98 11 45 67 00 00 00 00 90 00 65 [09:53:49]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [09:53:49]wFMCommunicate OK [09:53:49]SAM_PROTO_GetShiftState done [09:53:49]FM_GetShiftState done [09:53:49]req_shift_opened done [09:53:49]requested_item shift.open_date is exist - process it [09:53:49]req_shift_open_date [09:53:49]req_shift_open_date done [09:53:49]produce_requested_data done [09:53:49]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123149,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [09:53:49]process_action_free close_receipt [09:53:49]json_value_free [09:53:49]json_value_free done [09:53:49]process_json_proto returns [09:53:49]Send response to host [09:53:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123149,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [09:53:49]free response buf [09:53:49]execute_script done [09:53:49]execute_script returns [09:53:49]free content buf [09:53:49]Sock 9.Close socket [09:53:49]Sock 9.Thread stoped [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:04]accept exits with 7 [10:00:04]New connection [10:00:04]New thread 3066723684 created [10:00:04]Thread 3066580324 joined [10:00:04]Waiting for new connection... [10:00:04] Sock 7.Parse request [10:00:04]Sock 7.Check first char [10:00:04]Sock 7.First char is OK [10:00:04]request: POST /json_proto HTTP/1.0 [10:00:04]Method: POST [10:00:04]URL: /json_proto [10:00:04]Method is POST - this is cgi request [10:00:04]url: /json_proto [10:00:04]query_string will be loaded in cgi processing [10:00:04]execute_cgi json_proto POST (null) [10:00:04]execute_cgi path=json_proto method=POST [10:00:04]POST find Content-Length [10:00:04]Host: 172.17.37.4:8080 [10:00:04]Content-Length: 677 [10:00:04]Content-Type: application/json [10:00:04] [10:00:04]POST finish read [10:00:04]Found Content-Length = 677 [10:00:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.540, "sum" : 238.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 238.00, "total" : 238.00, "payments": [ { "type": 0, "sum" : 238.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:04]execute_script... [10:00:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.540, "sum" : 238.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 238.00, "total" : 238.00, "payments": [ { "type": 0, "sum" : 238.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:04]POST & json_proto [10:00:04]process_json_proto [10:00:04]json parsed OK: [10:00:04]protocol is kg_v1.0 [10:00:04]action value=close_receipt [10:00:04]process_action close_receipt [10:00:04]cmd_close_receipt [10:00:04]MH_GetDate [10:00:04]Write to MH i2c: F0 00 00 40 48 77 [10:00:04]Write i2c OK [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: F0 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: F0 09 00 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: F0 09 00 40 48 00 2E 9C 45 67 B8 5A 43 67 B2 [10:00:04]GetLastDocTimeStamp 1732614835 [10:00:04]current date 1732615214 [10:00:04]FM_GetShiftState [10:00:04]SAM_PROTO_GetShiftState [10:00:04]wFMCommunicate request_size=4 [10:00:04]MH_SAM_APDU [10:00:04]CAPDU: 80 13 01 00 [10:00:04]Write to MH i2c: E2 08 00 41 48 80 13 01 00 00 00 00 00 06 [10:00:04]Write i2c OK [10:00:04]MH_I2C_Read... [10:00:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:04]Read from MH i2c: E2 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 0E 00 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 0E 00 41 48 00 09 00 01 98 11 45 67 00 00 00 00 90 00 67 [10:00:04]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:00:04]wFMCommunicate OK [10:00:04]SAM_PROTO_GetShiftState done [10:00:04]FM_GetShiftState done [10:00:04]opened in 1732579736 [10:00:04]opened+sec_in_day 1732666136 [10:00:04]quantity*price = 23859 [10:00:04]sum+1 = 23861 [10:00:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 238.00 Внесено: 238.00 СДАЧА: 0.00 НСП 1% : 2.11 НДС 12% : 25.34 Наличными: 238.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 4 26.11.2024 10:00 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123150 ФПД: 13871556970855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T100014&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123150&fm=13871556970855&tin=02508201610067®Number=0000000000092681&sum=23800 [10:00:05]StoreToDocumentArchive [10:00:05]shift 557 fd 123150 [10:00:05]save to /storage/0557/doc_00123150 [10:00:05]save last doc name /storage/0557/doc_00123150 to /storage/kkm_last_doc_name [10:00:05]save OK [10:00:05]Clear old archive folders... [10:00:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:05]tlvbuf is 0215A4C0 [10:00:05]SAM_PROTO_ClearQueue [10:00:05]wFMCommunicate request_size=4 [10:00:05]MH_SAM_APDU [10:00:05]CAPDU: 80 09 00 00 [10:00:05]Write to MH i2c: E2 08 00 4E 48 80 09 00 00 00 00 00 00 08 [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:05]Read from MH i2c: E2 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 03 00 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 03 00 4E 48 00 90 00 0A [10:00:05]RAPDU: 90 00 [10:00:05]wFMCommunicate OK [10:00:05]SAM_PROTO_ClearQueue done [10:00:05]KKMCreateOFDPacket [10:00:05]OFDProtocolAddRootSTLVToBuf [10:00:05]FM_MakeSignedData [10:00:05]FM_MakeSignedData [10:00:05]SAM_PROTO_SignData [10:00:05]wFMCommunicate request_size=4 [10:00:05]MH_SAM_APDU [10:00:05]CAPDU: 80 0D 01 02 [10:00:05]Write to MH i2c: E2 08 00 4F 48 80 0D 01 02 00 00 00 00 10 [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:05]Read from MH i2c: E2 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 03 00 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 03 00 4F 48 00 90 00 0B [10:00:05]RAPDU: 90 00 [10:00:05]wFMCommunicate OK [10:00:05]wFMCommunicate request_size=255 [10:00:05]MH_SAM_APDU [10:00:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 0D 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 34 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 09 00 00 00 00 07 04 06 00 F8 5C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 2E 9C 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0E E1 01 00 35 04 06 00 0C [10:00:05]Write to MH i2c: E2 02 01 50 48 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 34 FF 03 08 00 03 D4 0D 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 34 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 09 00 00 00 00 07 04 06 00 F8 5C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 2E 9C 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0E E1 01 00 35 04 06 00 0C 00 00 0D [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:06]Read from MH i2c: E2 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 03 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 03 00 50 48 00 90 00 0C [10:00:06]RAPDU: 90 00 [10:00:06]wFMCommunicate OK [10:00:06]wFMCommunicate request_size=10 [10:00:06]MH_SAM_APDU [10:00:06]CAPDU: 80 0D 02 02 05 9D B9 39 C9 67 [10:00:06]Write to MH i2c: E2 0D 00 51 48 80 0D 02 02 05 00 9D B9 39 C9 67 00 00 DC [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:06]Read from MH i2c: E2 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 03 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 03 00 51 48 00 90 00 0D [10:00:06]RAPDU: 90 00 [10:00:06]wFMCommunicate OK [10:00:06]wFMCommunicate request_size=4 [10:00:06]MH_SAM_APDU [10:00:06]CAPDU: 80 0D 03 02 [10:00:06]Write to MH i2c: E2 08 00 52 48 80 0D 03 02 00 00 00 00 15 [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:06]Read from MH i2c: E2 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 0B 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 0B 00 52 48 00 5A C4 D6 EF 95 4F 43 48 90 00 68 [10:00:06]RAPDU: 5A C4 D6 EF 95 4F 43 48 90 00 [10:00:06]wFMCommunicate OK [10:00:06]SAM_PROTO_SignData done [10:00:06]FM_MakeSignedData done [10:00:06]CreateOFDProtocolMessage [10:00:06]wFMCommunicate request_size=4 [10:00:06]MH_SAM_APDU [10:00:06]CAPDU: 80 11 00 00 [10:00:06]Write to MH i2c: E2 08 00 53 48 80 11 00 00 00 00 00 00 15 [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:06]Read from MH i2c: E2 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 17 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 17 00 53 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6C [10:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:00:06]wFMCommunicate OK [10:00:06]CreateOFDProtocolMessage done [10:00:06]OFDSenderStorePacket 123150 [10:00:06]StoreOFDPacket docnum=123150 [10:00:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 BA 1C 07 01 B0 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 0D 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 34 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 09 00 00 00 00 07 04 06 00 F8 5C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 2E 9C 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0E E1 01 00 35 04 06 00 0C 9D B9 39 C9 67 5A C4 D6 EF 95 4F 43 48 [10:00:06]CheckFolder [10:00:06]dirname=/storage/ofd_packets [10:00:06]CheckFolder done [10:00:06]ProducePacketName [10:00:06]name=ofd_packets/00123150 [10:00:06]NVStorageSaveData ofd_packets/00123150 [10:00:06]File name is /storage/ofd_packets/00123150 [10:00:06]Write 301 bytes [10:00:06]NVStorageSaveData done [10:00:06]OFDSenderStorePacket done [10:00:06]KKMCreateOFDPacket done [10:00:06]NVStorageSaveData kkm_last_timestamp [10:00:06]File name is /storage/kkm_last_timestamp [10:00:06]Write 4 bytes [10:00:06]NVStorageSaveData done [10:00:06]ExternCall_PrintAddStr [10:00:06]wPrintStart [10:00:06]Write to MH i2c: 01 00 00 54 48 9C [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: 01 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: 01 07 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: 01 07 00 54 48 00 00 00 00 00 FF 0F B1 [10:00:06]RasterBufferAndPrint [10:00:06]line Счет N : (1)717987 [10:00:06]line ИНН: 02508201610067 [10:00:06]line Контрольно-Кассовый Чек [10:00:06]line ПРОДАЖА [10:00:06]line ТРК (МРК, ГНК) : 32 [10:00:06]line Товар: 2710124130 [10:00:06]line Аи-92-К-4 [10:00:06]line 3.540 * 67.40 [10:00:06]line = 238.60 [10:00:06]line НДС 12% НСП 1% [10:00:06]line > о реализуемом товаре [10:00:06]line ОКРУГЛЕНИЕ: -0.60 [10:00:06]line ИТОГО: 238.00 [10:00:06]line Внесено: 238.00 [10:00:06]line СДАЧА: 0.00 [10:00:06]line НСП 1% : 2.11 [10:00:06]line НДС 12% : 25.34 [10:00:06]line Наличными: 238.00 [10:00:06]line Безнал.: 0.00 [10:00:06]line Место: АЗС № 64 "Партнер Нефть" [10:00:06]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:00:06]line СНО: Общий режим [10:00:06]line Чек 4 26.11.2024 10:00 [10:00:06]line Смена: 557 ФФД: 1.0 [10:00:06]line ЗНМ: 0300000033 [10:00:06]line РНМ: 0000000000092681 [10:00:06]line Версия ККМ: 001 [10:00:06]line ФМ: 0000000000874881 [10:00:06]line ФД: 123150 [10:00:06]line ФПД: 13871556970855 [10:00:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T100014&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123150&fm=13871556970855&tin=02508201610067®Number=0000000000092681&sum=23800 [10:00:06]written 0, free lines is 4095 [10:00:06]OFD Sender: Processing packet 123150 [packets to send 7, broken 6] [10:00:06]ProducePacketName [10:00:06]name=ofd_packets/00123150 [10:00:06]OFD Sender: To server: pG, [10:00:06]CommunicateWithHost lk.salyk.kg:30040 [10:00:06]ConnectInit lk.salyk.kg [10:00:06]Connected sock=10 [10:00:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 BA 1C 07 01 B0 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 0D 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 34 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 09 00 00 00 00 07 04 06 00 F8 5C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 2E 9C 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0E E1 01 00 35 04 06 00 0C 9D B9 39 C9 67 5A C4 D6 EF 95 4F 43 48 [10:00:06]Write to MH i2c: 01 00 00 7F 48 C7 [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: 01 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: 01 07 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: 01 07 00 7F 48 00 00 00 00 00 50 0C 2A [10:00:06]RasterBufferAndPrint [10:00:06]line [10:00:06]line [10:00:06]line [10:00:06]line [10:00:06]line [10:00:06]written 0, free lines is 3156 [10:00:06]MH_Cut [10:00:06]Write to MH i2c: D1 01 00 86 48 01 A0 [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: D1 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: D1 01 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: D1 01 00 86 48 00 9F [10:00:06]Write to MH i2c: 01 00 00 87 48 CF [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 8F 13 47 00 19 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0E E1 01 00 F4 03 04 00 F1 47 45 67 B6 04 01 00 00 E5 01 DE 6C 94 9F EF E0 [10:00:06]CommunicateWithHost err = 0 [10:00:06]CheckOFDResponse [10:00:06]1017 (14) - 77093643461234 [10:00:06]1041 (16) - 0000000000874881 [10:00:06]1040 (4) - 123150 [10:00:06]1012 (4) - 26.11.2024 04:00 [10:00:06]1206 (1) - 0 [10:00:06]OFD Sender: Remove packet 123150 [10:00:06]ProducePacketName [10:00:06]name=ofd_packets/00123150 [10:00:06]NVStorageDeleteData [10:00:07]OFD Sender: No OFD packet to send [10:00:08]*** Cut start [10:00:08]*** Partial cut [10:00:08]*** CUTSNS_PIN = 1 [10:00:08]*** CUTSNS_PIN = 0 [10:00:08]*** Brake cut motor [10:00:08]Read from MH i2c: 01 [10:00:08]MH_I2C_Read... [10:00:08]*** Stop cut motor [10:00:08]*** Cut end [10:00:08]Read from MH i2c: 01 07 00 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: 01 07 00 87 48 00 00 00 00 00 FF 0F E4 [10:00:08]process_action close_receipt done [10:00:08]requested_data is exist [10:00:08]produce_requested_data [10:00:08]requested_item fm.sn is exist - process it [10:00:08]wFMCommunicate request_size=4 [10:00:08]MH_SAM_APDU [10:00:08]CAPDU: 80 11 00 00 [10:00:08]Write to MH i2c: E2 08 00 88 48 80 11 00 00 00 00 00 00 4A [10:00:08]Write i2c OK [10:00:08]MH_I2C_Read... [10:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:08]Read from MH i2c: E2 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 17 00 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 17 00 88 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A1 [10:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:00:08]wFMCommunicate OK [10:00:08]requested_item fd.num is exist - process it [10:00:08]SAM_PROTO_GetFieldsCounters [10:00:08]wFMCommunicate request_size=4 [10:00:08]MH_SAM_APDU [10:00:08]CAPDU: 80 13 00 00 [10:00:08]Write to MH i2c: E2 08 00 89 48 80 13 00 00 00 00 00 00 4D [10:00:08]Write i2c OK [10:00:08]MH_I2C_Read... [10:00:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:08]Read from MH i2c: E2 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 62 00 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 62 00 89 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 0E E1 01 00 0E 04 04 00 2D 02 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 9E [10:00:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 0E E1 01 00 0E 04 04 00 2D 02 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 [10:00:08]wFMCommunicate OK [10:00:08]SAM_PROTO_GetFieldsCounters done [10:00:08]requested_item shift.num is exist - process it [10:00:08]requested_item shift.opened is exist - process it [10:00:08]req_shift_opened [10:00:08]FM_GetShiftState [10:00:08]SAM_PROTO_GetShiftState [10:00:08]wFMCommunicate request_size=4 [10:00:08]MH_SAM_APDU [10:00:08]CAPDU: 80 13 01 00 [10:00:08]Write to MH i2c: E2 08 00 8A 48 80 13 01 00 00 00 00 00 4F [10:00:08]Write i2c OK [10:00:08]MH_I2C_Read... [10:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:08]Read from MH i2c: E2 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 0E 00 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 0E 00 8A 48 00 09 00 01 98 11 45 67 00 00 00 00 90 00 B0 [10:00:08]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:00:08]wFMCommunicate OK [10:00:08]SAM_PROTO_GetShiftState done [10:00:08]FM_GetShiftState done [10:00:08]req_shift_opened done [10:00:08]requested_item shift.open_date is exist - process it [10:00:08]req_shift_open_date [10:00:08]req_shift_open_date done [10:00:08]produce_requested_data done [10:00:08]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123150,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:00:08]process_action_free close_receipt [10:00:08]json_value_free [10:00:08]json_value_free done [10:00:08]process_json_proto returns [10:00:08]Send response to host [10:00:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123150,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:00:08]free response buf [10:00:08]execute_script done [10:00:08]execute_script returns [10:00:08]free content buf [10:00:08]Sock 7.Close socket [10:00:08]Sock 7.Thread stoped [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:40]accept exits with 9 [10:00:40]New connection [10:00:40]New thread 3066580324 created [10:00:40]Thread 3066723684 joined [10:00:40]Waiting for new connection... [10:00:40] Sock 9.Parse request [10:00:40]Sock 9.Check first char [10:00:40]Sock 9.First char is OK [10:00:40]request: POST /json_proto HTTP/1.0 [10:00:40]Method: POST [10:00:40]URL: /json_proto [10:00:40]Method is POST - this is cgi request [10:00:40]url: /json_proto [10:00:40]query_string will be loaded in cgi processing [10:00:40]execute_cgi json_proto POST (null) [10:00:40]execute_cgi path=json_proto method=POST [10:00:40]POST find Content-Length [10:00:40]Host: 172.17.37.4:8080 [10:00:40]Content-Length: 792 [10:00:40]Content-Type: application/json [10:00:40] [10:00:40]POST finish read [10:00:40]Found Content-Length = 792 [10:00:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A89335", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:40]execute_script... [10:00:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A89335", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:40]POST & json_proto [10:00:40]process_json_proto [10:00:40]json parsed OK: [10:00:40]protocol is kg_v1.0 [10:00:40]action value=close_receipt [10:00:40]process_action close_receipt [10:00:40]cmd_close_receipt [10:00:40]MH_GetDate [10:00:40]Write to MH i2c: F0 00 00 8B 48 C2 [10:00:40]Write i2c OK [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: F0 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: F0 09 00 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: F0 09 00 8B 48 00 52 9C 45 67 B8 5A 43 67 21 [10:00:40]GetLastDocTimeStamp 1732615214 [10:00:40]current date 1732615250 [10:00:40]FM_GetShiftState [10:00:40]SAM_PROTO_GetShiftState [10:00:40]wFMCommunicate request_size=4 [10:00:40]MH_SAM_APDU [10:00:40]CAPDU: 80 13 01 00 [10:00:40]Write to MH i2c: E2 08 00 8C 48 80 13 01 00 00 00 00 00 51 [10:00:40]Write i2c OK [10:00:40]MH_I2C_Read... [10:00:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:40]Read from MH i2c: E2 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 0E 00 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 0E 00 8C 48 00 09 00 01 98 11 45 67 00 00 00 00 90 00 B2 [10:00:40]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:00:40]wFMCommunicate OK [10:00:40]SAM_PROTO_GetShiftState done [10:00:40]FM_GetShiftState done [10:00:40]opened in 1732579736 [10:00:40]opened+sec_in_day 1732666136 [10:00:40]quantity*price = 0 [10:00:40]sum+1 = 1 [10:00:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 5 26.11.2024 10:00 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 89335 ФМ: 0000000000874881 ФД: 123151 ФПД: 249477997621021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T100050&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123151&fm=249477997621021&tin=02508201610067®Number=0000000000092681&sum=0 [10:00:41]StoreToDocumentArchive [10:00:41]shift 557 fd 123151 [10:00:41]save to /storage/0557/doc_00123151 [10:00:41]save last doc name /storage/0557/doc_00123151 to /storage/kkm_last_doc_name [10:00:41]save OK [10:00:41]Clear old archive folders... [10:00:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:41]tlvbuf is 020718E0 [10:00:41]SAM_PROTO_ClearQueue [10:00:41]wFMCommunicate request_size=4 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 09 00 00 [10:00:41]Write to MH i2c: E2 08 00 99 48 80 09 00 00 00 00 00 00 53 [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 99 48 00 90 00 55 [10:00:41]RAPDU: 90 00 [10:00:41]wFMCommunicate OK [10:00:41]SAM_PROTO_ClearQueue done [10:00:41]KKMCreateOFDPacket [10:00:41]OFDProtocolAddRootSTLVToBuf [10:00:41]FM_MakeSignedData [10:00:41]FM_MakeSignedData [10:00:41]SAM_PROTO_SignData [10:00:41]wFMCommunicate request_size=4 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 0D 01 02 [10:00:41]Write to MH i2c: E2 08 00 9A 48 80 0D 01 02 00 00 00 00 5B [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 9A 48 00 90 00 56 [10:00:41]RAPDU: 90 00 [10:00:41]wFMCommunicate OK [10:00:41]wFMCommunicate request_size=255 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 52 9C 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0F E1 01 00 35 04 06 00 E2 [10:00:41]Write to MH i2c: E2 02 01 9B 48 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 52 9C 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0F E1 01 00 35 04 06 00 E2 00 00 78 [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 9B 48 00 90 00 57 [10:00:41]RAPDU: 90 00 [10:00:41]wFMCommunicate OK [10:00:41]wFMCommunicate request_size=10 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 0D 02 02 05 E6 1F 6D 6F 1D [10:00:41]Write to MH i2c: E2 0D 00 9C 48 80 0D 02 02 05 00 E6 1F 6D 6F 1D 00 00 66 [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:42]Read from MH i2c: E2 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: E2 03 00 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: E2 03 00 9C 48 00 90 00 58 [10:00:42]RAPDU: 90 00 [10:00:42]wFMCommunicate OK [10:00:42]wFMCommunicate request_size=4 [10:00:42]MH_SAM_APDU [10:00:42]CAPDU: 80 0D 03 02 [10:00:42]Write to MH i2c: E2 08 00 9D 48 80 0D 03 02 00 00 00 00 60 [10:00:42]Write i2c OK [10:00:42]MH_I2C_Read... [10:00:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:42]Read from MH i2c: E2 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: E2 0B 00 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: E2 0B 00 9D 48 00 73 54 9F 9A 64 96 29 51 90 00 D5 [10:00:42]RAPDU: 73 54 9F 9A 64 96 29 51 90 00 [10:00:42]wFMCommunicate OK [10:00:42]SAM_PROTO_SignData done [10:00:42]FM_MakeSignedData done [10:00:42]CreateOFDProtocolMessage [10:00:42]wFMCommunicate request_size=4 [10:00:42]MH_SAM_APDU [10:00:42]CAPDU: 80 11 00 00 [10:00:42]Write to MH i2c: E2 08 00 9E 48 80 11 00 00 00 00 00 00 60 [10:00:42]Write i2c OK [10:00:42]MH_I2C_Read... [10:00:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:42]Read from MH i2c: E2 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: E2 17 00 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: E2 17 00 9E 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B7 [10:00:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:00:42]wFMCommunicate OK [10:00:42]CreateOFDProtocolMessage done [10:00:42]OFDSenderStorePacket 123151 [10:00:42]StoreOFDPacket docnum=123151 [10:00:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 99 3F 07 01 0A 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 52 9C 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0F E1 01 00 35 04 06 00 E2 E6 1F 6D 6F 1D 73 54 9F 9A 64 96 29 51 [10:00:42]CheckFolder [10:00:42]dirname=/storage/ofd_packets [10:00:42]CheckFolder done [10:00:42]ProducePacketName [10:00:42]name=ofd_packets/00123151 [10:00:42]NVStorageSaveData ofd_packets/00123151 [10:00:42]File name is /storage/ofd_packets/00123151 [10:00:42]Write 301 bytes [10:00:42]NVStorageSaveData done [10:00:42]OFDSenderStorePacket done [10:00:42]KKMCreateOFDPacket done [10:00:42]NVStorageSaveData kkm_last_timestamp [10:00:42]File name is /storage/kkm_last_timestamp [10:00:42]Write 4 bytes [10:00:42]NVStorageSaveData done [10:00:42]ExternCall_PrintAddStr [10:00:42]wPrintStart [10:00:42]Write to MH i2c: 01 00 00 9F 48 E7 [10:00:42]Write i2c OK [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: 01 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: 01 07 00 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: 01 07 00 9F 48 00 00 00 00 00 FF 0F FC [10:00:42]RasterBufferAndPrint [10:00:42]line Счет N : (1)717986 [10:00:42]line ИНН: 02508201610067 [10:00:42]line Контрольно-Кассовый Чек [10:00:42]line ПРОДАЖА [10:00:42]line ТРК (МРК, ГНК) : 12 [10:00:42]line Товар: 2710124130 [10:00:42]line Аи-92-К-4 [10:00:42]line 20.000 * 0.00 [10:00:42]line = 0.00 [10:00:42]line НДС 12% НСП 1% [10:00:42]line > о реализуемом товаре [10:00:42]line ИТОГО: 0.00 [10:00:42]line НСП 1% : 0.00 [10:00:42]line НДС 12% : 0.00 [10:00:42]line Наличными: 0.00 [10:00:42]line Безнал.: 0.00 [10:00:42]line Место: АЗС № 64 "Партнер Нефть" [10:00:42]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:00:42]line СНО: Общий режим [10:00:42]line Чек 5 26.11.2024 10:00 [10:00:42]line Смена: 557 ФФД: 1.0 [10:00:42]line ЗНМ: 0300000033 [10:00:42]line РНМ: 0000000000092681 [10:00:42]line Версия ККМ: 001 [10:00:42]line Талоны: Топливная Карта [10:00:42]line 89335 [10:00:42]line ФМ: 0000000000874881 [10:00:42]line ФД: 123151 [10:00:42]line ФПД: 249477997621021 [10:00:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T100050&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123151&fm=249477997621021&tin=02508201610067®Number=0000000000092681&sum=0 [10:00:42]written 0, free lines is 4095 [10:00:42]OFD Sender: Processing packet 123151 [packets to send 7, broken 6] [10:00:42]ProducePacketName [10:00:42]name=ofd_packets/00123151 [10:00:42]OFD Sender: To server: pG, [10:00:42]CommunicateWithHost lk.salyk.kg:30040 [10:00:42]ConnectInit lk.salyk.kg [10:00:42]Connected sock=10 [10:00:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 99 3F 07 01 0A 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 52 9C 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0F E1 01 00 35 04 06 00 E2 E6 1F 6D 6F 1D 73 54 9F 9A 64 96 29 51 [10:00:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 3C 5F 47 00 07 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 0F E1 01 00 F4 03 04 00 15 48 45 67 B6 04 01 00 00 5E 63 66 A9 7C 33 DC 00 [10:00:42]CommunicateWithHost err = 0 [10:00:42]CheckOFDResponse [10:00:42]1017 (14) - 77093643461234 [10:00:42]1041 (16) - 0000000000874881 [10:00:42]1040 (4) - 123151 [10:00:42]1012 (4) - 26.11.2024 04:01 [10:00:42]1206 (1) - 0 [10:00:42]OFD Sender: Remove packet 123151 [10:00:42]ProducePacketName [10:00:42]name=ofd_packets/00123151 [10:00:42]NVStorageDeleteData [10:00:42]Write to MH i2c: 01 00 00 C9 48 11 [10:00:42]Write i2c OK [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: 01 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: 01 07 00 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: 01 07 00 C9 48 00 00 00 00 00 5C 0C 80 [10:00:42]RasterBufferAndPrint [10:00:42]line [10:00:42]line [10:00:42]line [10:00:42]line [10:00:42]line [10:00:42]written 0, free lines is 3169 [10:00:42]MH_Cut [10:00:42]Write to MH i2c: D1 01 00 D0 48 01 EA [10:00:42]Write i2c OK [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: D1 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: D1 01 00 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: D1 01 00 D0 48 00 E9 [10:00:42]Write to MH i2c: 01 00 00 D1 48 19 [10:00:42]Write i2c OK [10:00:42]MH_I2C_Read... [10:00:43]OFD Sender: No OFD packet to send [10:00:44]*** Cut start [10:00:44]*** Partial cut [10:00:44]*** CUTSNS_PIN = 1 [10:00:44]*** CUTSNS_PIN = 0 [10:00:44]*** Brake cut motor [10:00:44]Read from MH i2c: 01 [10:00:44]MH_I2C_Read... [10:00:44]*** Stop cut motor [10:00:44]*** Cut end [10:00:44]Read from MH i2c: 01 07 00 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: 01 07 00 D1 48 00 00 00 00 00 FF 0F 2E [10:00:44]process_action close_receipt done [10:00:44]requested_data is exist [10:00:44]produce_requested_data [10:00:44]requested_item fm.sn is exist - process it [10:00:44]wFMCommunicate request_size=4 [10:00:44]MH_SAM_APDU [10:00:44]CAPDU: 80 11 00 00 [10:00:44]Write to MH i2c: E2 08 00 D2 48 80 11 00 00 00 00 00 00 94 [10:00:44]Write i2c OK [10:00:44]MH_I2C_Read... [10:00:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:44]Read from MH i2c: E2 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 17 00 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 17 00 D2 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EB [10:00:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:00:44]wFMCommunicate OK [10:00:44]requested_item fd.num is exist - process it [10:00:44]SAM_PROTO_GetFieldsCounters [10:00:44]wFMCommunicate request_size=4 [10:00:44]MH_SAM_APDU [10:00:44]CAPDU: 80 13 00 00 [10:00:44]Write to MH i2c: E2 08 00 D3 48 80 13 00 00 00 00 00 00 97 [10:00:44]Write i2c OK [10:00:44]MH_I2C_Read... [10:00:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:45]Read from MH i2c: E2 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: E2 62 00 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: E2 62 00 D3 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 0F E1 01 00 0E 04 04 00 2D 02 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 EC [10:00:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 0F E1 01 00 0E 04 04 00 2D 02 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 [10:00:45]wFMCommunicate OK [10:00:45]SAM_PROTO_GetFieldsCounters done [10:00:45]requested_item shift.num is exist - process it [10:00:45]requested_item shift.opened is exist - process it [10:00:45]req_shift_opened [10:00:45]FM_GetShiftState [10:00:45]SAM_PROTO_GetShiftState [10:00:45]wFMCommunicate request_size=4 [10:00:45]MH_SAM_APDU [10:00:45]CAPDU: 80 13 01 00 [10:00:45]Write to MH i2c: E2 08 00 D4 48 80 13 01 00 00 00 00 00 99 [10:00:45]Write i2c OK [10:00:45]MH_I2C_Read... [10:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:45]Read from MH i2c: E2 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: E2 0E 00 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: E2 0E 00 D4 48 00 09 00 01 98 11 45 67 00 00 00 00 90 00 FA [10:00:45]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:00:45]wFMCommunicate OK [10:00:45]SAM_PROTO_GetShiftState done [10:00:45]FM_GetShiftState done [10:00:45]req_shift_opened done [10:00:45]requested_item shift.open_date is exist - process it [10:00:45]req_shift_open_date [10:00:45]req_shift_open_date done [10:00:45]produce_requested_data done [10:00:45]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123151,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:00:45]process_action_free close_receipt [10:00:45]json_value_free [10:00:45]json_value_free done [10:00:45]process_json_proto returns [10:00:45]Send response to host [10:00:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123151,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:00:45]free response buf [10:00:45]execute_script done [10:00:45]execute_script returns [10:00:45]free content buf [10:00:45]Sock 9.Close socket [10:00:45]Sock 9.Thread stoped [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:18]OFD Sender: No OFD packet to send [10:01:23]OFD Sender: No OFD packet to send [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:16]accept exits with 7 [10:04:16]New connection [10:04:16]New thread 3066723684 created [10:04:16]Thread 3066580324 joined [10:04:16]Waiting for new connection... [10:04:16] Sock 7.Parse request [10:04:16]Sock 7.Check first char [10:04:16]Sock 7.First char is OK [10:04:16]request: POST /json_proto HTTP/1.0 [10:04:16]Method: POST [10:04:16]URL: /json_proto [10:04:16]Method is POST - this is cgi request [10:04:16]url: /json_proto [10:04:16]query_string will be loaded in cgi processing [10:04:16]execute_cgi json_proto POST (null) [10:04:16]execute_cgi path=json_proto method=POST [10:04:16]POST find Content-Length [10:04:16]Host: 172.17.37.4:8080 [10:04:16]Content-Length: 677 [10:04:16]Content-Type: application/json [10:04:16] [10:04:16]POST finish read [10:04:16]Found Content-Length = 677 [10:04:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:16]execute_script... [10:04:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:16]POST & json_proto [10:04:16]process_json_proto [10:04:16]json parsed OK: [10:04:16]protocol is kg_v1.0 [10:04:16]action value=close_receipt [10:04:16]process_action close_receipt [10:04:16]cmd_close_receipt [10:04:16]MH_GetDate [10:04:16]Write to MH i2c: F0 00 00 D5 48 0C [10:04:16]Write i2c OK [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: F0 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: F0 09 00 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: F0 09 00 D5 48 00 2A 9D 45 67 B8 5A 43 67 44 [10:04:16]GetLastDocTimeStamp 1732615250 [10:04:16]current date 1732615466 [10:04:16]FM_GetShiftState [10:04:16]SAM_PROTO_GetShiftState [10:04:16]wFMCommunicate request_size=4 [10:04:16]MH_SAM_APDU [10:04:16]CAPDU: 80 13 01 00 [10:04:16]Write to MH i2c: E2 08 00 D6 48 80 13 01 00 00 00 00 00 9B [10:04:16]Write i2c OK [10:04:16]MH_I2C_Read... [10:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:16]Read from MH i2c: E2 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: E2 0E 00 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: E2 0E 00 D6 48 00 09 00 01 98 11 45 67 00 00 00 00 90 00 FC [10:04:16]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:04:16]wFMCommunicate OK [10:04:16]SAM_PROTO_GetShiftState done [10:04:16]FM_GetShiftState done [10:04:16]opened in 1732579736 [10:04:16]opened+sec_in_day 1732666136 [10:04:16]quantity*price = 40035 [10:04:16]sum+1 = 40037 [10:04:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 6 26.11.2024 10:04 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123152 ФПД: 120556329371457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T100426&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123152&fm=120556329371457&tin=02508201610067®Number=0000000000092681&sum=40000 [10:04:18]StoreToDocumentArchive [10:04:18]shift 557 fd 123152 [10:04:18]save to /storage/0557/doc_00123152 [10:04:18]save last doc name /storage/0557/doc_00123152 to /storage/kkm_last_doc_name [10:04:18]save OK [10:04:18]Clear old archive folders... [10:04:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:18]tlvbuf is 02138B30 [10:04:18]SAM_PROTO_ClearQueue [10:04:18]wFMCommunicate request_size=4 [10:04:18]MH_SAM_APDU [10:04:18]CAPDU: 80 09 00 00 [10:04:18]Write to MH i2c: E2 08 00 E3 48 80 09 00 00 00 00 00 00 9D [10:04:18]Write i2c OK [10:04:18]MH_I2C_Read... [10:04:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:18]Read from MH i2c: E2 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 03 00 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 03 00 E3 48 00 90 00 9F [10:04:18]RAPDU: 90 00 [10:04:18]wFMCommunicate OK [10:04:18]SAM_PROTO_ClearQueue done [10:04:18]KKMCreateOFDPacket [10:04:18]OFDProtocolAddRootSTLVToBuf [10:04:18]FM_MakeSignedData [10:04:18]FM_MakeSignedData [10:04:18]SAM_PROTO_SignData [10:04:18]wFMCommunicate request_size=4 [10:04:18]MH_SAM_APDU [10:04:18]CAPDU: 80 0D 01 02 [10:04:18]Write to MH i2c: E2 08 00 E4 48 80 0D 01 02 00 00 00 00 A5 [10:04:18]Write i2c OK [10:04:18]MH_I2C_Read... [10:04:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:18]Read from MH i2c: E2 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 03 00 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 03 00 E4 48 00 90 00 A0 [10:04:18]RAPDU: 90 00 [10:04:18]wFMCommunicate OK [10:04:18]wFMCommunicate request_size=255 [10:04:18]MH_SAM_APDU [10:04:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 2A 9D 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 10 E1 01 00 35 04 06 00 6D [10:04:18]Write to MH i2c: E2 02 01 E5 48 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 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 2A 9D 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 10 E1 01 00 35 04 06 00 6D 00 00 3A [10:04:18]Write i2c OK [10:04:18]MH_I2C_Read... [10:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:18]Read from MH i2c: E2 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 03 00 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 03 00 E5 48 00 90 00 A1 [10:04:18]RAPDU: 90 00 [10:04:18]wFMCommunicate OK [10:04:18]wFMCommunicate request_size=10 [10:04:18]MH_SAM_APDU [10:04:18]CAPDU: 80 0D 02 02 05 A5 35 30 07 41 [10:04:18]Write to MH i2c: E2 0D 00 E6 48 80 0D 02 02 05 00 A5 35 30 07 41 00 00 04 [10:04:18]Write i2c OK [10:04:18]MH_I2C_Read... [10:04:18]OFD Sender: No OFD packet to send [10:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:18]Read from MH i2c: E2 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 03 00 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 03 00 E6 48 00 90 00 A2 [10:04:18]RAPDU: 90 00 [10:04:18]wFMCommunicate OK [10:04:18]wFMCommunicate request_size=4 [10:04:18]MH_SAM_APDU [10:04:18]CAPDU: 80 0D 03 02 [10:04:18]Write to MH i2c: E2 08 00 E7 48 80 0D 03 02 00 00 00 00 AA [10:04:18]Write i2c OK [10:04:18]MH_I2C_Read... [10:04:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:18]Read from MH i2c: E2 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 0B 00 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 0B 00 E7 48 00 A7 9B FA 56 EA 4E B9 20 90 00 4E [10:04:18]RAPDU: A7 9B FA 56 EA 4E B9 20 90 00 [10:04:18]wFMCommunicate OK [10:04:18]SAM_PROTO_SignData done [10:04:18]FM_MakeSignedData done [10:04:18]CreateOFDProtocolMessage [10:04:18]wFMCommunicate request_size=4 [10:04:18]MH_SAM_APDU [10:04:18]CAPDU: 80 11 00 00 [10:04:18]Write to MH i2c: E2 08 00 E8 48 80 11 00 00 00 00 00 00 AA [10:04:18]Write i2c OK [10:04:18]MH_I2C_Read... [10:04:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:18]Read from MH i2c: E2 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 17 00 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 17 00 E8 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 01 [10:04:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:04:18]wFMCommunicate OK [10:04:18]CreateOFDProtocolMessage done [10:04:18]OFDSenderStorePacket 123152 [10:04:18]StoreOFDPacket docnum=123152 [10:04:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 46 E6 07 01 F5 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 2A 9D 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 10 E1 01 00 35 04 06 00 6D A5 35 30 07 41 A7 9B FA 56 EA 4E B9 20 [10:04:18]CheckFolder [10:04:18]dirname=/storage/ofd_packets [10:04:18]CheckFolder done [10:04:18]ProducePacketName [10:04:18]name=ofd_packets/00123152 [10:04:18]NVStorageSaveData ofd_packets/00123152 [10:04:18]File name is /storage/ofd_packets/00123152 [10:04:18]Write 301 bytes [10:04:18]NVStorageSaveData done [10:04:18]OFDSenderStorePacket done [10:04:18]KKMCreateOFDPacket done [10:04:18]NVStorageSaveData kkm_last_timestamp [10:04:18]File name is /storage/kkm_last_timestamp [10:04:18]Write 4 bytes [10:04:18]NVStorageSaveData done [10:04:18]ExternCall_PrintAddStr [10:04:18]wPrintStart [10:04:18]Write to MH i2c: 01 00 00 E9 48 31 [10:04:18]Write i2c OK [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: 01 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: 01 07 00 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: 01 07 00 E9 48 00 00 00 00 00 FF 0F 46 [10:04:18]RasterBufferAndPrint [10:04:18]line Счет N : (1)717988 [10:04:18]line ИНН: 02508201610067 [10:04:18]line Контрольно-Кассовый Чек [10:04:18]line ПРОДАЖА [10:04:18]line ТРК (МРК, ГНК) : 12 [10:04:18]line Товар: 2710124130 [10:04:18]line Аи-92-К-4 [10:04:18]line 5.940 * 67.40 [10:04:18]line = 400.36 [10:04:18]line НДС 12% НСП 1% [10:04:18]line > о реализуемом товаре [10:04:18]line ОКРУГЛЕНИЕ: -0.36 [10:04:18]line ИТОГО: 400.00 [10:04:18]line Внесено: 400.00 [10:04:18]line СДАЧА: 0.00 [10:04:18]line НСП 1% : 3.54 [10:04:18]line НДС 12% : 42.52 [10:04:18]line Наличными: 400.00 [10:04:18]line Безнал.: 0.00 [10:04:18]line Место: АЗС № 64 "Партнер Нефть" [10:04:18]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:04:18]line СНО: Общий режим [10:04:18]line Чек 6 26.11.2024 10:04 [10:04:18]line Смена: 557 ФФД: 1.0 [10:04:18]line ЗНМ: 0300000033 [10:04:18]line РНМ: 0000000000092681 [10:04:18]line Версия ККМ: 001 [10:04:18]line ФМ: 0000000000874881 [10:04:18]line ФД: 123152 [10:04:18]line ФПД: 120556329371457 [10:04:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T100426&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123152&fm=120556329371457&tin=02508201610067®Number=0000000000092681&sum=40000 [10:04:18]OFD Sender: Processing packet 123152 [packets to send 7, broken 6] [10:04:18]ProducePacketName [10:04:18]name=ofd_packets/00123152 [10:04:18]OFD Sender: To server: pG, [10:04:18]CommunicateWithHost lk.salyk.kg:30040 [10:04:18]ConnectInit lk.salyk.kg [10:04:18]written 0, free lines is 4095 [10:04:19]Connected sock=10 [10:04:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 46 E6 07 01 F5 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 2A 9D 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 10 E1 01 00 35 04 06 00 6D A5 35 30 07 41 A7 9B FA 56 EA 4E B9 20 [10:04:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 B1 E7 47 00 E7 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 10 E1 01 00 F4 03 04 00 ED 48 45 67 B6 04 01 00 00 E2 F9 27 8D BD EC 89 C3 [10:04:19]CommunicateWithHost err = 0 [10:04:19]CheckOFDResponse [10:04:19]1017 (14) - 77093643461234 [10:04:19]1041 (16) - 0000000000874881 [10:04:19]1040 (4) - 123152 [10:04:19]1012 (4) - 26.11.2024 04:05 [10:04:19]1206 (1) - 0 [10:04:19]OFD Sender: Remove packet 123152 [10:04:19]ProducePacketName [10:04:19]name=ofd_packets/00123152 [10:04:19]NVStorageDeleteData [10:04:19]Write to MH i2c: 01 00 00 14 49 5D [10:04:19]Write i2c OK [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: 01 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: 01 07 00 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: 01 07 00 14 49 00 00 00 00 00 51 0C C1 [10:04:19]RasterBufferAndPrint [10:04:19]line [10:04:19]line [10:04:19]line [10:04:19]line [10:04:19]line [10:04:19]written 0, free lines is 3158 [10:04:19]MH_Cut [10:04:19]Write to MH i2c: D1 01 00 1B 49 01 36 [10:04:19]Write i2c OK [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: D1 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: D1 01 00 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: D1 01 00 1B 49 00 35 [10:04:19]Write to MH i2c: 01 00 00 1C 49 65 [10:04:19]Write i2c OK [10:04:19]MH_I2C_Read... [10:04:19]OFD Sender: No OFD packet to send [10:04:20]*** Cut start [10:04:20]*** Partial cut [10:04:20]*** CUTSNS_PIN = 1 [10:04:20]*** CUTSNS_PIN = 0 [10:04:21]*** Brake cut motor [10:04:21]Read from MH i2c: 01 [10:04:21]MH_I2C_Read... [10:04:21]*** Stop cut motor [10:04:21]*** Cut end [10:04:21]Read from MH i2c: 01 07 00 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: 01 07 00 1C 49 00 00 00 00 00 FF 0F 7A [10:04:21]process_action close_receipt done [10:04:21]requested_data is exist [10:04:21]produce_requested_data [10:04:21]requested_item fm.sn is exist - process it [10:04:21]wFMCommunicate request_size=4 [10:04:21]MH_SAM_APDU [10:04:21]CAPDU: 80 11 00 00 [10:04:21]Write to MH i2c: E2 08 00 1D 49 80 11 00 00 00 00 00 00 E0 [10:04:21]Write i2c OK [10:04:21]MH_I2C_Read... [10:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:21]Read from MH i2c: E2 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 17 00 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 17 00 1D 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 37 [10:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:04:21]wFMCommunicate OK [10:04:21]requested_item fd.num is exist - process it [10:04:21]SAM_PROTO_GetFieldsCounters [10:04:21]wFMCommunicate request_size=4 [10:04:21]MH_SAM_APDU [10:04:21]CAPDU: 80 13 00 00 [10:04:21]Write to MH i2c: E2 08 00 1E 49 80 13 00 00 00 00 00 00 E3 [10:04:21]Write i2c OK [10:04:21]MH_I2C_Read... [10:04:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:21]Read from MH i2c: E2 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 62 00 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 62 00 1E 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 10 E1 01 00 0E 04 04 00 2D 02 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 3C [10:04:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 10 E1 01 00 0E 04 04 00 2D 02 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 [10:04:21]wFMCommunicate OK [10:04:21]SAM_PROTO_GetFieldsCounters done [10:04:21]requested_item shift.num is exist - process it [10:04:21]requested_item shift.opened is exist - process it [10:04:21]req_shift_opened [10:04:21]FM_GetShiftState [10:04:21]SAM_PROTO_GetShiftState [10:04:21]wFMCommunicate request_size=4 [10:04:21]MH_SAM_APDU [10:04:21]CAPDU: 80 13 01 00 [10:04:21]Write to MH i2c: E2 08 00 1F 49 80 13 01 00 00 00 00 00 E5 [10:04:21]Write i2c OK [10:04:21]MH_I2C_Read... [10:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:21]Read from MH i2c: E2 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 0E 00 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 0E 00 1F 49 00 09 00 01 98 11 45 67 00 00 00 00 90 00 46 [10:04:21]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:04:21]wFMCommunicate OK [10:04:21]SAM_PROTO_GetShiftState done [10:04:21]FM_GetShiftState done [10:04:21]req_shift_opened done [10:04:21]requested_item shift.open_date is exist - process it [10:04:21]req_shift_open_date [10:04:21]req_shift_open_date done [10:04:21]produce_requested_data done [10:04:21]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123152,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:04:21]process_action_free close_receipt [10:04:21]json_value_free [10:04:21]json_value_free done [10:04:21]process_json_proto returns [10:04:21]Send response to host [10:04:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123152,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:04:21]free response buf [10:04:21]execute_script done [10:04:21]execute_script returns [10:04:21]free content buf [10:04:21]Sock 7.Close socket [10:04:21]Sock 7.Thread stoped [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:29]OFD Sender: No OFD packet to send [10:05:34]OFD Sender: No OFD packet to send [10:05:39]OFD Sender: No OFD packet to send [10:05:44]OFD Sender: No OFD packet to send [10:05:49]OFD Sender: No OFD packet to send [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:21]accept exits with 9 [10:09:21]New connection [10:09:21]New thread 3066580324 created [10:09:21]Thread 3066723684 joined [10:09:21]Waiting for new connection... [10:09:21] Sock 9.Parse request [10:09:21]Sock 9.Check first char [10:09:21]Sock 9.First char is OK [10:09:21]request: POST /json_proto HTTP/1.0 [10:09:21]Method: POST [10:09:21]URL: /json_proto [10:09:21]Method is POST - this is cgi request [10:09:21]url: /json_proto [10:09:21]query_string will be loaded in cgi processing [10:09:21]execute_cgi json_proto POST (null) [10:09:21]execute_cgi path=json_proto method=POST [10:09:21]POST find Content-Length [10:09:21]Host: 172.17.37.4:8080 [10:09:21]Content-Length: 686 [10:09:21]Content-Type: application/json [10:09:21] [10:09:21]POST finish read [10:09:21]Found Content-Length = 686 [10:09:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 33.380, "sum" : 2500.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:21]execute_script... [10:09:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 33.380, "sum" : 2500.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:21]POST & json_proto [10:09:21]process_json_proto [10:09:21]json parsed OK: [10:09:21]protocol is kg_v1.0 [10:09:21]action value=close_receipt [10:09:21]process_action close_receipt [10:09:21]cmd_close_receipt [10:09:21]MH_GetDate [10:09:21]Write to MH i2c: F0 00 00 20 49 58 [10:09:21]Write i2c OK [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: F0 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: F0 09 00 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: F0 09 00 20 49 00 5B 9E 45 67 B8 5A 43 67 C2 [10:09:21]GetLastDocTimeStamp 1732615466 [10:09:21]current date 1732615771 [10:09:21]FM_GetShiftState [10:09:21]SAM_PROTO_GetShiftState [10:09:21]wFMCommunicate request_size=4 [10:09:21]MH_SAM_APDU [10:09:21]CAPDU: 80 13 01 00 [10:09:21]Write to MH i2c: E2 08 00 21 49 80 13 01 00 00 00 00 00 E7 [10:09:21]Write i2c OK [10:09:21]MH_I2C_Read... [10:09:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:21]Read from MH i2c: E2 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: E2 0E 00 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: E2 0E 00 21 49 00 09 00 01 98 11 45 67 00 00 00 00 90 00 48 [10:09:21]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:09:21]wFMCommunicate OK [10:09:21]SAM_PROTO_GetShiftState done [10:09:21]FM_GetShiftState done [10:09:21]opened in 1732579736 [10:09:21]opened+sec_in_day 1732666136 [10:09:21]quantity*price = 250016 [10:09:21]sum+1 = 250017 [10:09:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 7 26.11.2024 10:09 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123153 ФПД: 162499738430800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T100931&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123153&fm=162499738430800&tin=02508201610067®Number=0000000000092681&sum=250000 [10:09:22]StoreToDocumentArchive [10:09:22]shift 557 fd 123153 [10:09:22]save to /storage/0557/doc_00123153 [10:09:22]save last doc name /storage/0557/doc_00123153 to /storage/kkm_last_doc_name [10:09:22]save OK [10:09:22]Clear old archive folders... [10:09:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:09:23]tlvbuf is 01F2FA70 [10:09:23]SAM_PROTO_ClearQueue [10:09:23]wFMCommunicate request_size=4 [10:09:23]MH_SAM_APDU [10:09:23]CAPDU: 80 09 00 00 [10:09:23]Write to MH i2c: E2 08 00 2E 49 80 09 00 00 00 00 00 00 E9 [10:09:23]Write i2c OK [10:09:23]MH_I2C_Read... [10:09:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:23]Read from MH i2c: E2 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: E2 03 00 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: E2 03 00 2E 49 00 90 00 EB [10:09:23]RAPDU: 90 00 [10:09:23]wFMCommunicate OK [10:09:23]SAM_PROTO_ClearQueue done [10:09:23]KKMCreateOFDPacket [10:09:23]OFDProtocolAddRootSTLVToBuf [10:09:23]FM_MakeSignedData [10:09:23]FM_MakeSignedData [10:09:23]SAM_PROTO_SignData [10:09:23]wFMCommunicate request_size=4 [10:09:23]MH_SAM_APDU [10:09:23]CAPDU: 80 0D 01 02 [10:09:23]Write to MH i2c: E2 08 00 2F 49 80 0D 01 02 00 00 00 00 F1 [10:09:23]Write i2c OK [10:09:23]MH_I2C_Read... [10:09:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:23]Read from MH i2c: E2 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: E2 03 00 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: E2 03 00 2F 49 00 90 00 EC [10:09:23]RAPDU: 90 00 [10:09:23]wFMCommunicate OK [10:09:23]wFMCommunicate request_size=255 [10:09:23]MH_SAM_APDU [10:09:23]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 35 FF 03 08 00 03 64 82 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A0 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 07 00 00 00 F4 03 04 00 5B 9E 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 11 E1 01 00 35 04 06 00 [10:09:23]Write to MH i2c: E2 02 01 30 49 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 35 FF 03 08 00 03 64 82 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A0 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 07 00 00 00 F4 03 04 00 5B 9E 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 11 E1 01 00 35 04 06 00 00 00 50 [10:09:23]Write i2c OK [10:09:23]MH_I2C_Read... [10:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:23]Read from MH i2c: E2 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: E2 03 00 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: E2 03 00 30 49 00 90 00 ED [10:09:23]RAPDU: 90 00 [10:09:23]wFMCommunicate OK [10:09:23]wFMCommunicate request_size=11 [10:09:23]MH_SAM_APDU [10:09:23]CAPDU: 80 0D 02 02 06 93 CA EB 2F 6D 50 [10:09:23]Write to MH i2c: E2 0E 00 31 49 80 0D 02 02 06 00 93 CA EB 2F 6D 50 00 00 34 [10:09:23]Write i2c OK [10:09:23]MH_I2C_Read... [10:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:23]Read from MH i2c: E2 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: E2 03 00 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: E2 03 00 31 49 00 90 00 EE [10:09:23]RAPDU: 90 00 [10:09:23]wFMCommunicate OK [10:09:23]wFMCommunicate request_size=4 [10:09:23]MH_SAM_APDU [10:09:23]CAPDU: 80 0D 03 02 [10:09:23]Write to MH i2c: E2 08 00 32 49 80 0D 03 02 00 00 00 00 F6 [10:09:23]Write i2c OK [10:09:23]MH_I2C_Read... [10:09:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:23]Read from MH i2c: E2 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: E2 0B 00 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: E2 0B 00 32 49 00 EE 56 27 EF 13 0E F7 81 90 00 EA [10:09:23]RAPDU: EE 56 27 EF 13 0E F7 81 90 00 [10:09:23]wFMCommunicate OK [10:09:23]SAM_PROTO_SignData done [10:09:23]FM_MakeSignedData done [10:09:23]CreateOFDProtocolMessage [10:09:23]wFMCommunicate request_size=4 [10:09:23]MH_SAM_APDU [10:09:23]CAPDU: 80 11 00 00 [10:09:23]Write to MH i2c: E2 08 00 33 49 80 11 00 00 00 00 00 00 F6 [10:09:23]Write i2c OK [10:09:23]MH_I2C_Read... [10:09:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:23]Read from MH i2c: E2 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: E2 17 00 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: E2 17 00 33 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 4D [10:09:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:09:23]wFMCommunicate OK [10:09:23]CreateOFDProtocolMessage done [10:09:23]OFDSenderStorePacket 123153 [10:09:23]StoreOFDPacket docnum=123153 [10:09:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 DB 08 08 01 E9 39 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 35 FF 03 08 00 03 64 82 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A0 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 07 00 00 00 F4 03 04 00 5B 9E 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 11 E1 01 00 35 04 06 00 93 CA EB 2F 6D 50 EE 56 27 EF 13 0E F7 81 [10:09:23]CheckFolder [10:09:23]dirname=/storage/ofd_packets [10:09:23]CheckFolder done [10:09:23]ProducePacketName [10:09:23]name=ofd_packets/00123153 [10:09:23]NVStorageSaveData ofd_packets/00123153 [10:09:23]File name is /storage/ofd_packets/00123153 [10:09:23]Write 302 bytes [10:09:23]NVStorageSaveData done [10:09:23]OFDSenderStorePacket done [10:09:23]KKMCreateOFDPacket done [10:09:23]NVStorageSaveData kkm_last_timestamp [10:09:23]File name is /storage/kkm_last_timestamp [10:09:23]Write 4 bytes [10:09:23]NVStorageSaveData done [10:09:23]ExternCall_PrintAddStr [10:09:23]wPrintStart [10:09:23]Write to MH i2c: 01 00 00 34 49 7D [10:09:23]Write i2c OK [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: 01 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: 01 07 00 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: 01 07 00 34 49 00 00 00 00 00 FF 0F 92 [10:09:23]RasterBufferAndPrint [10:09:23]line Счет N : (1)717990 [10:09:23]line ИНН: 02508201610067 [10:09:23]line Контрольно-Кассовый Чек [10:09:23]line ПРОДАЖА [10:09:23]line ТРК (МРК, ГНК) : 6 [10:09:23]line Товар: 2710194210 [10:09:23]line ДТ(л)-К-5 [10:09:23]line 33.380 * 74.90 [10:09:23]line = 2500.16 [10:09:23]line НДС 12% НСП 1% [10:09:23]line > о реализуемом товаре [10:09:23]line ОКРУГЛЕНИЕ: -0.16 [10:09:23]line ИТОГО: 2500.00 [10:09:23]line Внесено: 2500.00 [10:09:23]line СДАЧА: 0.00 [10:09:23]line НСП 1% : 22.12 [10:09:23]line НДС 12% : 265.50 [10:09:23]line Наличными: 2500.00 [10:09:23]line Безнал.: 0.00 [10:09:23]line Место: АЗС № 64 "Партнер Нефть" [10:09:23]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:09:23]line СНО: Общий режим [10:09:23]line Чек 7 26.11.2024 10:09 [10:09:23]line Смена: 557 ФФД: 1.0 [10:09:23]line ЗНМ: 0300000033 [10:09:23]line РНМ: 0000000000092681 [10:09:23]line Версия ККМ: 001 [10:09:23]line ФМ: 0000000000874881 [10:09:23]line ФД: 123153 [10:09:23]line ФПД: 162499738430800 [10:09:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T100931&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123153&fm=162499738430800&tin=02508201610067®Number=0000000000092681&sum=250000 [10:09:23]OFD Sender: Processing packet 123153 [packets to send 7, broken 6] [10:09:23]ProducePacketName [10:09:23]name=ofd_packets/00123153 [10:09:23]OFD Sender: To server: pG, [10:09:23]CommunicateWithHost lk.salyk.kg:30040 [10:09:23]ConnectInit lk.salyk.kg [10:09:23]written 0, free lines is 4095 [10:09:23]Connected sock=10 [10:09:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 DB 08 08 01 E9 39 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 35 FF 03 08 00 03 64 82 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A0 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 07 00 00 00 F4 03 04 00 5B 9E 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 11 E1 01 00 35 04 06 00 93 CA EB 2F 6D 50 EE 56 27 EF 13 0E F7 81 [10:09:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 DF 08 47 00 38 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 11 E1 01 00 F4 03 04 00 1E 4A 45 67 B6 04 01 00 00 53 73 1B 3A BD C9 1B E9 [10:09:24]CommunicateWithHost err = 0 [10:09:24]CheckOFDResponse [10:09:24]1017 (14) - 77093643461234 [10:09:24]1041 (16) - 0000000000874881 [10:09:24]1040 (4) - 123153 [10:09:24]1012 (4) - 26.11.2024 04:10 [10:09:24]1206 (1) - 0 [10:09:24]OFD Sender: Remove packet 123153 [10:09:24]ProducePacketName [10:09:24]name=ofd_packets/00123153 [10:09:24]NVStorageDeleteData [10:09:24]Write to MH i2c: 01 00 00 5F 49 A8 [10:09:24]Write i2c OK [10:09:24]MH_I2C_Read... [10:09:24]Read from MH i2c: 01 [10:09:24]MH_I2C_Read... [10:09:24]Read from MH i2c: 01 07 00 [10:09:24]MH_I2C_Read... [10:09:24]Read from MH i2c: 01 07 00 5F 49 00 00 00 00 00 4E 0C 09 [10:09:24]RasterBufferAndPrint [10:09:24]line [10:09:24]line [10:09:24]line [10:09:24]line [10:09:24]line [10:09:24]written 0, free lines is 3153 [10:09:24]MH_Cut [10:09:24]Write to MH i2c: D1 01 00 66 49 01 81 [10:09:24]Write i2c OK [10:09:24]MH_I2C_Read... [10:09:24]Read from MH i2c: D1 [10:09:24]MH_I2C_Read... [10:09:24]Read from MH i2c: D1 01 00 [10:09:24]MH_I2C_Read... [10:09:24]Read from MH i2c: D1 01 00 66 49 00 80 [10:09:24]Write to MH i2c: 01 00 00 67 49 B0 [10:09:24]Write i2c OK [10:09:24]MH_I2C_Read... [10:09:24]OFD Sender: No OFD packet to send [10:09:25]*** Cut start [10:09:25]*** Partial cut [10:09:25]*** CUTSNS_PIN = 1 [10:09:25]*** CUTSNS_PIN = 0 [10:09:26]*** Brake cut motor [10:09:26]Read from MH i2c: 01 [10:09:26]MH_I2C_Read... [10:09:26]*** Stop cut motor [10:09:26]*** Cut end [10:09:26]Read from MH i2c: 01 07 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: 01 07 00 67 49 00 00 00 00 00 FF 0F C5 [10:09:26]process_action close_receipt done [10:09:26]requested_data is exist [10:09:26]produce_requested_data [10:09:26]requested_item fm.sn is exist - process it [10:09:26]wFMCommunicate request_size=4 [10:09:26]MH_SAM_APDU [10:09:26]CAPDU: 80 11 00 00 [10:09:26]Write to MH i2c: E2 08 00 68 49 80 11 00 00 00 00 00 00 2B [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:26]Read from MH i2c: E2 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 17 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 17 00 68 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 82 [10:09:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:09:26]wFMCommunicate OK [10:09:26]requested_item fd.num is exist - process it [10:09:26]SAM_PROTO_GetFieldsCounters [10:09:26]wFMCommunicate request_size=4 [10:09:26]MH_SAM_APDU [10:09:26]CAPDU: 80 13 00 00 [10:09:26]Write to MH i2c: E2 08 00 69 49 80 13 00 00 00 00 00 00 2E [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:26]Read from MH i2c: E2 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 62 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 62 00 69 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 11 E1 01 00 0E 04 04 00 2D 02 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 8B [10:09:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 11 E1 01 00 0E 04 04 00 2D 02 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 [10:09:26]wFMCommunicate OK [10:09:26]SAM_PROTO_GetFieldsCounters done [10:09:26]requested_item shift.num is exist - process it [10:09:26]requested_item shift.opened is exist - process it [10:09:26]req_shift_opened [10:09:26]FM_GetShiftState [10:09:26]SAM_PROTO_GetShiftState [10:09:26]wFMCommunicate request_size=4 [10:09:26]MH_SAM_APDU [10:09:26]CAPDU: 80 13 01 00 [10:09:26]Write to MH i2c: E2 08 00 6A 49 80 13 01 00 00 00 00 00 30 [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:26]Read from MH i2c: E2 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 0E 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 0E 00 6A 49 00 09 00 01 98 11 45 67 00 00 00 00 90 00 91 [10:09:26]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:09:26]wFMCommunicate OK [10:09:26]SAM_PROTO_GetShiftState done [10:09:26]FM_GetShiftState done [10:09:26]req_shift_opened done [10:09:26]requested_item shift.open_date is exist - process it [10:09:26]req_shift_open_date [10:09:26]req_shift_open_date done [10:09:26]produce_requested_data done [10:09:26]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123153,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:09:26]process_action_free close_receipt [10:09:26]json_value_free [10:09:26]json_value_free done [10:09:26]process_json_proto returns [10:09:26]Send response to host [10:09:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123153,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:09:26]free response buf [10:09:26]execute_script done [10:09:26]execute_script returns [10:09:26]free content buf [10:09:26]Sock 9.Close socket [10:09:26]Sock 9.Thread stoped [10:09:28]accept exits with 7 [10:09:28]New connection [10:09:28]New thread 3066723684 created [10:09:28]Thread 3066580324 joined [10:09:28]Waiting for new connection... [10:09:28] Sock 7.Parse request [10:09:28]Sock 7.Check first char [10:09:28]Sock 7.First char is OK [10:09:28]request: POST /json_proto HTTP/1.0 [10:09:28]Method: POST [10:09:28]URL: /json_proto [10:09:28]Method is POST - this is cgi request [10:09:28]url: /json_proto [10:09:28]query_string will be loaded in cgi processing [10:09:28]execute_cgi json_proto POST (null) [10:09:28]execute_cgi path=json_proto method=POST [10:09:28]POST find Content-Length [10:09:28]Host: 172.17.37.4:8080 [10:09:28]Content-Length: 807 [10:09:28]Content-Type: application/json [10:09:28] [10:09:28]POST finish read [10:09:28]Found Content-Length = 807 [10:09:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 26.710, "sum" : 2000.58, "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" : 2000.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:28]execute_script... [10:09:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 26.710, "sum" : 2000.58, "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" : 2000.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:28]POST & json_proto [10:09:28]process_json_proto [10:09:28]json parsed OK: [10:09:28]protocol is kg_v1.0 [10:09:28]action value=close_receipt [10:09:28]process_action close_receipt [10:09:28]cmd_close_receipt [10:09:28]MH_GetDate [10:09:28]Write to MH i2c: F0 00 00 6B 49 A3 [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: F0 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: F0 09 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: F0 09 00 6B 49 00 62 9E 45 67 B8 5A 43 67 14 [10:09:28]GetLastDocTimeStamp 1732615771 [10:09:28]current date 1732615778 [10:09:28]FM_GetShiftState [10:09:28]SAM_PROTO_GetShiftState [10:09:28]wFMCommunicate request_size=4 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 13 01 00 [10:09:28]Write to MH i2c: E2 08 00 6C 49 80 13 01 00 00 00 00 00 32 [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 0E 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 0E 00 6C 49 00 09 00 01 98 11 45 67 00 00 00 00 90 00 93 [10:09:28]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:09:28]wFMCommunicate OK [10:09:28]SAM_PROTO_GetShiftState done [10:09:28]FM_GetShiftState done [10:09:28]opened in 1732579736 [10:09:28]opened+sec_in_day 1732666136 [10:09:28]quantity*price = 200057 [10:09:28]sum+1 = 200059 [10:09:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.58 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 0.00 Безнал.: 2000.58 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 8 26.11.2024 10:09 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123154 ФПД: 258184272743349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T100938&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123154&fm=258184272743349&tin=02508201610067®Number=0000000000092681&sum=200058 [10:09:29]StoreToDocumentArchive [10:09:29]shift 557 fd 123154 [10:09:29]save to /storage/0557/doc_00123154 [10:09:29]save last doc name /storage/0557/doc_00123154 to /storage/kkm_last_doc_name [10:09:29]save OK [10:09:29]Clear old archive folders... [10:09:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:09:29]tlvbuf is 021668C0 [10:09:29]SAM_PROTO_ClearQueue [10:09:29]wFMCommunicate request_size=4 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 09 00 00 [10:09:29]Write to MH i2c: E2 08 00 79 49 80 09 00 00 00 00 00 00 34 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 79 49 00 90 00 36 [10:09:29]RAPDU: 90 00 [10:09:29]wFMCommunicate OK [10:09:29]SAM_PROTO_ClearQueue done [10:09:29]KKMCreateOFDPacket [10:09:29]OFDProtocolAddRootSTLVToBuf [10:09:29]FM_MakeSignedData [10:09:29]FM_MakeSignedData [10:09:29]SAM_PROTO_SignData [10:09:29]wFMCommunicate request_size=4 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 0D 01 02 [10:09:29]Write to MH i2c: E2 08 00 7A 49 80 0D 01 02 00 00 00 00 3C [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 7A 49 00 90 00 37 [10:09:29]RAPDU: 90 00 [10:09:29]wFMCommunicate OK [10:09:29]wFMCommunicate request_size=255 [10:09:29]MH_SAM_APDU [10:09:29]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 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 62 9E 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 12 E1 01 00 35 04 06 00 [10:09:29]Write to MH i2c: E2 02 01 7B 49 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 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 62 9E 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 12 E1 01 00 35 04 06 00 00 00 57 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]OFD Sender: No OFD packet to send [10:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 7B 49 00 90 00 38 [10:09:29]RAPDU: 90 00 [10:09:29]wFMCommunicate OK [10:09:29]wFMCommunicate request_size=11 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 0D 02 02 06 EA D1 35 DD 0B B5 [10:09:29]Write to MH i2c: E2 0E 00 7C 49 80 0D 02 02 06 00 EA D1 35 DD 0B B5 00 00 D8 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 03 00 7C 49 00 90 00 39 [10:09:29]RAPDU: 90 00 [10:09:29]wFMCommunicate OK [10:09:29]wFMCommunicate request_size=4 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 0D 03 02 [10:09:29]Write to MH i2c: E2 08 00 7D 49 80 0D 03 02 00 00 00 00 41 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 0B 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 0B 00 7D 49 00 F3 B3 6A 57 15 C0 1A 6C 90 00 04 [10:09:29]RAPDU: F3 B3 6A 57 15 C0 1A 6C 90 00 [10:09:29]wFMCommunicate OK [10:09:29]SAM_PROTO_SignData done [10:09:29]FM_MakeSignedData done [10:09:29]CreateOFDProtocolMessage [10:09:29]wFMCommunicate request_size=4 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 11 00 00 [10:09:29]Write to MH i2c: E2 08 00 7E 49 80 11 00 00 00 00 00 00 41 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 17 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 17 00 7E 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 98 [10:09:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:09:29]wFMCommunicate OK [10:09:29]CreateOFDProtocolMessage done [10:09:29]OFDSenderStorePacket 123154 [10:09:29]StoreOFDPacket docnum=123154 [10:09:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 3A 31 08 01 8E DD 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 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 62 9E 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 12 E1 01 00 35 04 06 00 EA D1 35 DD 0B B5 F3 B3 6A 57 15 C0 1A 6C [10:09:29]CheckFolder [10:09:29]dirname=/storage/ofd_packets [10:09:29]CheckFolder done [10:09:29]ProducePacketName [10:09:29]name=ofd_packets/00123154 [10:09:29]NVStorageSaveData ofd_packets/00123154 [10:09:29]File name is /storage/ofd_packets/00123154 [10:09:29]Write 302 bytes [10:09:29]NVStorageSaveData done [10:09:29]OFDSenderStorePacket done [10:09:29]KKMCreateOFDPacket done [10:09:29]NVStorageSaveData kkm_last_timestamp [10:09:29]File name is /storage/kkm_last_timestamp [10:09:29]Write 4 bytes [10:09:29]NVStorageSaveData done [10:09:29]ExternCall_PrintAddStr [10:09:29]wPrintStart [10:09:29]Write to MH i2c: 01 00 00 7F 49 C8 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 07 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 07 00 7F 49 00 00 00 00 00 FF 0F DD [10:09:29]RasterBufferAndPrint [10:09:29]line Счет N : (1)717989 [10:09:29]line ИНН: 02508201610067 [10:09:29]line Контрольно-Кассовый Чек [10:09:29]line ПРОДАЖА [10:09:29]line ТРК (МРК, ГНК) : 5 [10:09:29]line Товар: 2710194210 [10:09:29]line ДТ(л)-К-5 [10:09:29]line 26.710 * 74.90 [10:09:29]line = 2000.58 [10:09:29]line НДС 12% НСП 1% [10:09:29]line > о реализуемом товаре [10:09:29]line ИТОГО: 2000.58 [10:09:29]line НСП 1% : 17.70 [10:09:29]line НДС 12% : 212.45 [10:09:29]line Наличными: 0.00 [10:09:29]line Безнал.: 2000.58 [10:09:29]line Место: АЗС № 64 "Партнер Нефть" [10:09:29]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:09:29]line СНО: Общий режим [10:09:29]line Чек 8 26.11.2024 10:09 [10:09:29]line Смена: 557 ФФД: 1.0 [10:09:29]line ЗНМ: 0300000033 [10:09:29]line РНМ: 0000000000092681 [10:09:29]line Версия ККМ: 001 [10:09:29]line Платежная система: O! деньги [10:09:29]line ФМ: 0000000000874881 [10:09:29]line ФД: 123154 [10:09:29]line ФПД: 258184272743349 [10:09:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T100938&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123154&fm=258184272743349&tin=02508201610067®Number=0000000000092681&sum=200058 [10:09:29]written 0, free lines is 4095 [10:09:30]OFD Sender: Processing packet 123154 [packets to send 7, broken 6] [10:09:30]ProducePacketName [10:09:30]name=ofd_packets/00123154 [10:09:30]OFD Sender: To server: pG, [10:09:30]CommunicateWithHost lk.salyk.kg:30040 [10:09:30]ConnectInit lk.salyk.kg [10:09:30]Connected sock=10 [10:09:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 3A 31 08 01 8E DD 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 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 62 9E 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 12 E1 01 00 35 04 06 00 EA D1 35 DD 0B B5 F3 B3 6A 57 15 C0 1A 6C [10:09:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 B5 D0 47 00 F9 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 12 E1 01 00 F4 03 04 00 24 4A 45 67 B6 04 01 00 00 BE D6 61 D8 91 61 C8 95 [10:09:30]CommunicateWithHost err = 0 [10:09:30]CheckOFDResponse [10:09:30]1017 (14) - 77093643461234 [10:09:30]1041 (16) - 0000000000874881 [10:09:30]1040 (4) - 123154 [10:09:30]1012 (4) - 26.11.2024 04:10 [10:09:30]1206 (1) - 0 [10:09:30]OFD Sender: Remove packet 123154 [10:09:30]ProducePacketName [10:09:30]name=ofd_packets/00123154 [10:09:30]NVStorageDeleteData [10:09:30]Write to MH i2c: 01 00 00 A9 49 F2 [10:09:30]Write i2c OK [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: 01 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: 01 07 00 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: 01 07 00 A9 49 00 00 00 00 00 66 0C 6B [10:09:30]RasterBufferAndPrint [10:09:30]line [10:09:30]line [10:09:30]line [10:09:30]line [10:09:30]line [10:09:30]written 0, free lines is 3183 [10:09:30]MH_Cut [10:09:30]Write to MH i2c: D1 01 00 B0 49 01 CB [10:09:30]Write i2c OK [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: D1 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: D1 01 00 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: D1 01 00 B0 49 00 CA [10:09:30]Write to MH i2c: 01 00 00 B1 49 FA [10:09:30]Write i2c OK [10:09:30]MH_I2C_Read... [10:09:30]OFD Sender: No OFD packet to send [10:09:31]*** Cut start [10:09:31]*** Partial cut [10:09:31]*** CUTSNS_PIN = 1 [10:09:31]*** CUTSNS_PIN = 0 [10:09:32]*** Brake cut motor [10:09:32]Read from MH i2c: 01 [10:09:32]MH_I2C_Read... [10:09:32]*** Stop cut motor [10:09:32]*** Cut end [10:09:32]Read from MH i2c: 01 07 00 [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: 01 07 00 B1 49 00 00 00 00 00 FF 0F 0F [10:09:32]process_action close_receipt done [10:09:32]requested_data is exist [10:09:32]produce_requested_data [10:09:32]requested_item fm.sn is exist - process it [10:09:32]wFMCommunicate request_size=4 [10:09:32]MH_SAM_APDU [10:09:32]CAPDU: 80 11 00 00 [10:09:32]Write to MH i2c: E2 08 00 B2 49 80 11 00 00 00 00 00 00 75 [10:09:32]Write i2c OK [10:09:32]MH_I2C_Read... [10:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:32]Read from MH i2c: E2 [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: E2 17 00 [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: E2 17 00 B2 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CC [10:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:09:32]wFMCommunicate OK [10:09:32]requested_item fd.num is exist - process it [10:09:32]SAM_PROTO_GetFieldsCounters [10:09:32]wFMCommunicate request_size=4 [10:09:32]MH_SAM_APDU [10:09:32]CAPDU: 80 13 00 00 [10:09:32]Write to MH i2c: E2 08 00 B3 49 80 13 00 00 00 00 00 00 78 [10:09:32]Write i2c OK [10:09:32]MH_I2C_Read... [10:09:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:32]Read from MH i2c: E2 [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: E2 62 00 [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: E2 62 00 B3 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 12 E1 01 00 0E 04 04 00 2D 02 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 D9 [10:09:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 12 E1 01 00 0E 04 04 00 2D 02 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 [10:09:32]wFMCommunicate OK [10:09:32]SAM_PROTO_GetFieldsCounters done [10:09:32]requested_item shift.num is exist - process it [10:09:32]requested_item shift.opened is exist - process it [10:09:32]req_shift_opened [10:09:32]FM_GetShiftState [10:09:32]SAM_PROTO_GetShiftState [10:09:32]wFMCommunicate request_size=4 [10:09:32]MH_SAM_APDU [10:09:32]CAPDU: 80 13 01 00 [10:09:32]Write to MH i2c: E2 08 00 B4 49 80 13 01 00 00 00 00 00 7A [10:09:32]Write i2c OK [10:09:32]MH_I2C_Read... [10:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:32]Read from MH i2c: E2 [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: E2 0E 00 [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: E2 0E 00 B4 49 00 09 00 01 98 11 45 67 00 00 00 00 90 00 DB [10:09:32]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:09:32]wFMCommunicate OK [10:09:32]SAM_PROTO_GetShiftState done [10:09:32]FM_GetShiftState done [10:09:32]req_shift_opened done [10:09:32]requested_item shift.open_date is exist - process it [10:09:32]req_shift_open_date [10:09:32]req_shift_open_date done [10:09:32]produce_requested_data done [10:09:32]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123154,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:09:32]process_action_free close_receipt [10:09:32]json_value_free [10:09:32]json_value_free done [10:09:32]process_json_proto returns [10:09:32]Send response to host [10:09:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123154,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:09:32]free response buf [10:09:32]execute_script done [10:09:32]execute_script returns [10:09:32]free content buf [10:09:32]Sock 7.Close socket [10:09:32]Sock 7.Thread stoped [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:15]OFD Sender: No OFD packet to send [10:10:20]OFD Sender: No OFD packet to send [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:18]accept exits with 9 [10:11:18]New connection [10:11:18]New thread 3066580324 created [10:11:18]Thread 3066723684 joined [10:11:18]Waiting for new connection... [10:11:18] Sock 9.Parse request [10:11:18]Sock 9.Check first char [10:11:18]Sock 9.First char is OK [10:11:18]request: POST /json_proto HTTP/1.0 [10:11:18]Method: POST [10:11:18]URL: /json_proto [10:11:18]Method is POST - this is cgi request [10:11:18]url: /json_proto [10:11:18]query_string will be loaded in cgi processing [10:11:18]execute_cgi json_proto POST (null) [10:11:18]execute_cgi path=json_proto method=POST [10:11:18]POST find Content-Length [10:11:18]Host: 172.17.37.4:8080 [10:11:18]Content-Length: 686 [10:11:18]Content-Type: application/json [10:11:18] [10:11:18]POST finish read [10:11:18]Found Content-Length = 686 [10:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 40.060, "sum" : 3000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:18]execute_script... [10:11:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 40.060, "sum" : 3000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:18]POST & json_proto [10:11:18]process_json_proto [10:11:18]json parsed OK: [10:11:18]protocol is kg_v1.0 [10:11:18]action value=close_receipt [10:11:18]process_action close_receipt [10:11:18]cmd_close_receipt [10:11:18]MH_GetDate [10:11:18]Write to MH i2c: F0 00 00 B5 49 ED [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: F0 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: F0 09 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: F0 09 00 B5 49 00 D1 9E 45 67 B8 5A 43 67 CD [10:11:19]GetLastDocTimeStamp 1732615778 [10:11:19]current date 1732615889 [10:11:19]FM_GetShiftState [10:11:19]SAM_PROTO_GetShiftState [10:11:19]wFMCommunicate request_size=4 [10:11:19]MH_SAM_APDU [10:11:19]CAPDU: 80 13 01 00 [10:11:19]Write to MH i2c: E2 08 00 B6 49 80 13 01 00 00 00 00 00 7C [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:19]Read from MH i2c: E2 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 0E 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 0E 00 B6 49 00 09 00 01 98 11 45 67 00 00 00 00 90 00 DD [10:11:19]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:11:19]wFMCommunicate OK [10:11:19]SAM_PROTO_GetShiftState done [10:11:19]FM_GetShiftState done [10:11:19]opened in 1732579736 [10:11:19]opened+sec_in_day 1732666136 [10:11:19]quantity*price = 300049 [10:11:19]sum+1 = 300050 [10:11:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 9 26.11.2024 10:11 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123155 ФПД: 232634977171812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T101129&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123155&fm=232634977171812&tin=02508201610067®Number=0000000000092681&sum=300000 [10:11:20]StoreToDocumentArchive [10:11:20]shift 557 fd 123155 [10:11:20]save to /storage/0557/doc_00123155 [10:11:20]save last doc name /storage/0557/doc_00123155 to /storage/kkm_last_doc_name [10:11:20]save OK [10:11:20]Clear old archive folders... [10:11:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:11:20]tlvbuf is 02068DE0 [10:11:20]SAM_PROTO_ClearQueue [10:11:20]wFMCommunicate request_size=4 [10:11:20]MH_SAM_APDU [10:11:20]CAPDU: 80 09 00 00 [10:11:20]Write to MH i2c: E2 08 00 C3 49 80 09 00 00 00 00 00 00 7E [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 C3 49 00 90 00 80 [10:11:20]RAPDU: 90 00 [10:11:20]wFMCommunicate OK [10:11:20]SAM_PROTO_ClearQueue done [10:11:20]KKMCreateOFDPacket [10:11:20]OFDProtocolAddRootSTLVToBuf [10:11:20]FM_MakeSignedData [10:11:20]FM_MakeSignedData [10:11:20]SAM_PROTO_SignData [10:11:20]wFMCommunicate request_size=4 [10:11:20]MH_SAM_APDU [10:11:20]CAPDU: 80 0D 01 02 [10:11:20]Write to MH i2c: E2 08 00 C4 49 80 0D 01 02 00 00 00 00 86 [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 C4 49 00 90 00 81 [10:11:20]RAPDU: 90 00 [10:11:20]wFMCommunicate OK [10:11:20]wFMCommunicate request_size=255 [10:11:20]MH_SAM_APDU [10:11: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 35 FF 03 08 00 03 7C 9C 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 D1 9E 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 13 E1 01 00 35 04 06 00 [10:11:20]Write to MH i2c: E2 02 01 C5 49 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 35 FF 03 08 00 03 7C 9C 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 D1 9E 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 13 E1 01 00 35 04 06 00 00 00 83 [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 C5 49 00 90 00 82 [10:11:20]RAPDU: 90 00 [10:11:20]wFMCommunicate OK [10:11:20]wFMCommunicate request_size=11 [10:11:20]MH_SAM_APDU [10:11:20]CAPDU: 80 0D 02 02 06 D3 94 8D 2D 39 64 [10:11:20]Write to MH i2c: E2 0E 00 C6 49 80 0D 02 02 06 00 D3 94 8D 2D 39 64 00 00 53 [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 C6 49 00 90 00 83 [10:11:20]RAPDU: 90 00 [10:11:20]wFMCommunicate OK [10:11:20]wFMCommunicate request_size=4 [10:11:20]MH_SAM_APDU [10:11:20]CAPDU: 80 0D 03 02 [10:11:20]Write to MH i2c: E2 08 00 C7 49 80 0D 03 02 00 00 00 00 8B [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 0B 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 0B 00 C7 49 00 B2 1F 29 55 4F 10 1A 71 90 00 C5 [10:11:20]RAPDU: B2 1F 29 55 4F 10 1A 71 90 00 [10:11:20]wFMCommunicate OK [10:11:20]SAM_PROTO_SignData done [10:11:20]FM_MakeSignedData done [10:11:20]CreateOFDProtocolMessage [10:11:20]wFMCommunicate request_size=4 [10:11:20]MH_SAM_APDU [10:11:20]CAPDU: 80 11 00 00 [10:11:20]Write to MH i2c: E2 08 00 C8 49 80 11 00 00 00 00 00 00 8B [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 17 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 17 00 C8 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E2 [10:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:11:20]wFMCommunicate OK [10:11:20]CreateOFDProtocolMessage done [10:11:20]OFDSenderStorePacket 123155 [10:11:20]StoreOFDPacket docnum=123155 [10:11:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 D6 11 08 01 A5 87 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 9C 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 D1 9E 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 13 E1 01 00 35 04 06 00 D3 94 8D 2D 39 64 B2 1F 29 55 4F 10 1A 71 [10:11:20]CheckFolder [10:11:20]dirname=/storage/ofd_packets [10:11:20]CheckFolder done [10:11:20]ProducePacketName [10:11:20]name=ofd_packets/00123155 [10:11:20]NVStorageSaveData ofd_packets/00123155 [10:11:20]File name is /storage/ofd_packets/00123155 [10:11:20]Write 302 bytes [10:11:20]NVStorageSaveData done [10:11:20]OFDSenderStorePacket done [10:11:20]KKMCreateOFDPacket done [10:11:20]NVStorageSaveData kkm_last_timestamp [10:11:20]File name is /storage/kkm_last_timestamp [10:11:20]Write 4 bytes [10:11:20]NVStorageSaveData done [10:11:20]ExternCall_PrintAddStr [10:11:20]wPrintStart [10:11:20]Write to MH i2c: 01 00 00 C9 49 12 [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: 01 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: 01 07 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: 01 07 00 C9 49 00 00 00 00 00 FF 0F 27 [10:11:20]RasterBufferAndPrint [10:11:20]line Счет N : (1)717991 [10:11:20]line ИНН: 02508201610067 [10:11:20]line Контрольно-Кассовый Чек [10:11:20]line ПРОДАЖА [10:11:20]line ТРК (МРК, ГНК) : 5 [10:11:20]line Товар: 2710194210 [10:11:20]line ДТ(л)-К-5 [10:11:20]line 40.060 * 74.90 [10:11:20]line = 3000.49 [10:11:20]line НДС 12% НСП 1% [10:11:20]line > о реализуемом товаре [10:11:20]line ОКРУГЛЕНИЕ: -0.49 [10:11:20]line ИТОГО: 3000.00 [10:11:20]line Внесено: 3000.00 [10:11:20]line СДАЧА: 0.00 [10:11:20]line НСП 1% : 26.55 [10:11:20]line НДС 12% : 318.64 [10:11:20]line Наличными: 3000.00 [10:11:20]line Безнал.: 0.00 [10:11:20]line Место: АЗС № 64 "Партнер Нефть" [10:11:20]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:11:20]line СНО: Общий режим [10:11:20]line Чек 9 26.11.2024 10:11 [10:11:20]line Смена: 557 ФФД: 1.0 [10:11:20]line ЗНМ: 0300000033 [10:11:20]line РНМ: 0000000000092681 [10:11:20]line Версия ККМ: 001 [10:11:20]line ФМ: 0000000000874881 [10:11:20]line ФД: 123155 [10:11:20]line ФПД: 232634977171812 [10:11:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T101129&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123155&fm=232634977171812&tin=02508201610067®Number=0000000000092681&sum=300000 [10:11:21]OFD Sender: Processing packet 123155 [packets to send 7, broken 6] [10:11:21]ProducePacketName [10:11:21]name=ofd_packets/00123155 [10:11:21]OFD Sender: To server: pG, [10:11:21]CommunicateWithHost lk.salyk.kg:30040 [10:11:21]ConnectInit lk.salyk.kg [10:11:21]written 0, free lines is 4095 [10:11:21]Connected sock=10 [10:11:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 D6 11 08 01 A5 87 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 9C 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 D1 9E 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 13 E1 01 00 35 04 06 00 D3 94 8D 2D 39 64 B2 1F 29 55 4F 10 1A 71 [10:11:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 3A 9C 47 00 4D E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 13 E1 01 00 F4 03 04 00 93 4A 45 67 B6 04 01 00 00 0C A4 9C F5 3E 7D 9A 71 [10:11:21]CommunicateWithHost err = 0 [10:11:21]CheckOFDResponse [10:11:21]1017 (14) - 77093643461234 [10:11:21]1041 (16) - 0000000000874881 [10:11:21]1040 (4) - 123155 [10:11:21]1012 (4) - 26.11.2024 04:12 [10:11:21]1206 (1) - 0 [10:11:21]OFD Sender: Remove packet 123155 [10:11:21]ProducePacketName [10:11:21]name=ofd_packets/00123155 [10:11:21]NVStorageDeleteData [10:11:21]Write to MH i2c: 01 00 00 F4 49 3D [10:11:21]Write i2c OK [10:11:21]MH_I2C_Read... [10:11:21]Read from MH i2c: 01 [10:11:21]MH_I2C_Read... [10:11:21]Read from MH i2c: 01 07 00 [10:11:21]MH_I2C_Read... [10:11:21]Read from MH i2c: 01 07 00 F4 49 00 00 00 00 00 4E 0C 9E [10:11:21]RasterBufferAndPrint [10:11:21]line [10:11:21]line [10:11:21]line [10:11:21]line [10:11:21]line [10:11:21]written 0, free lines is 3153 [10:11:21]MH_Cut [10:11:21]Write to MH i2c: D1 01 00 FB 49 01 16 [10:11:21]Write i2c OK [10:11:21]MH_I2C_Read... [10:11:21]Read from MH i2c: D1 [10:11:21]MH_I2C_Read... [10:11:21]Read from MH i2c: D1 01 00 [10:11:21]MH_I2C_Read... [10:11:21]Read from MH i2c: D1 01 00 FB 49 00 15 [10:11:21]Write to MH i2c: 01 00 00 FC 49 45 [10:11:21]Write i2c OK [10:11:21]MH_I2C_Read... [10:11:21]OFD Sender: No OFD packet to send [10:11:22]*** Cut start [10:11:22]*** Partial cut [10:11:22]*** CUTSNS_PIN = 1 [10:11:22]*** CUTSNS_PIN = 0 [10:11:23]*** Brake cut motor [10:11:23]Read from MH i2c: 01 [10:11:23]MH_I2C_Read... [10:11:23]*** Stop cut motor [10:11:23]*** Cut end [10:11:23]Read from MH i2c: 01 07 00 [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: 01 07 00 FC 49 00 00 00 00 00 FF 0F 5A [10:11:23]process_action close_receipt done [10:11:23]requested_data is exist [10:11:23]produce_requested_data [10:11:23]requested_item fm.sn is exist - process it [10:11:23]wFMCommunicate request_size=4 [10:11:23]MH_SAM_APDU [10:11:23]CAPDU: 80 11 00 00 [10:11:23]Write to MH i2c: E2 08 00 FD 49 80 11 00 00 00 00 00 00 C0 [10:11:23]Write i2c OK [10:11:23]MH_I2C_Read... [10:11:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:23]Read from MH i2c: E2 [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: E2 17 00 [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: E2 17 00 FD 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 17 [10:11:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:11:23]wFMCommunicate OK [10:11:23]requested_item fd.num is exist - process it [10:11:23]SAM_PROTO_GetFieldsCounters [10:11:23]wFMCommunicate request_size=4 [10:11:23]MH_SAM_APDU [10:11:23]CAPDU: 80 13 00 00 [10:11:23]Write to MH i2c: E2 08 00 FE 49 80 13 00 00 00 00 00 00 C3 [10:11:23]Write i2c OK [10:11:23]MH_I2C_Read... [10:11:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:23]Read from MH i2c: E2 [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: E2 62 00 [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: E2 62 00 FE 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 13 E1 01 00 0E 04 04 00 2D 02 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 28 [10:11:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 13 E1 01 00 0E 04 04 00 2D 02 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 [10:11:23]wFMCommunicate OK [10:11:23]SAM_PROTO_GetFieldsCounters done [10:11:23]requested_item shift.num is exist - process it [10:11:23]requested_item shift.opened is exist - process it [10:11:23]req_shift_opened [10:11:23]FM_GetShiftState [10:11:23]SAM_PROTO_GetShiftState [10:11:23]wFMCommunicate request_size=4 [10:11:23]MH_SAM_APDU [10:11:23]CAPDU: 80 13 01 00 [10:11:23]Write to MH i2c: E2 08 00 FF 49 80 13 01 00 00 00 00 00 C5 [10:11:23]Write i2c OK [10:11:23]MH_I2C_Read... [10:11:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:23]Read from MH i2c: E2 [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: E2 0E 00 [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: E2 0E 00 FF 49 00 09 00 01 98 11 45 67 00 00 00 00 90 00 26 [10:11:23]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:11:23]wFMCommunicate OK [10:11:23]SAM_PROTO_GetShiftState done [10:11:23]FM_GetShiftState done [10:11:23]req_shift_opened done [10:11:23]requested_item shift.open_date is exist - process it [10:11:23]req_shift_open_date [10:11:23]req_shift_open_date done [10:11:23]produce_requested_data done [10:11:23]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123155,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:11:23]process_action_free close_receipt [10:11:23]json_value_free [10:11:23]json_value_free done [10:11:23]process_json_proto returns [10:11:23]Send response to host [10:11:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123155,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:11:23]free response buf [10:11:23]execute_script done [10:11:23]execute_script returns [10:11:23]free content buf [10:11:23]Sock 9.Close socket [10:11:23]Sock 9.Thread stoped [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:42]OFD Sender: No OFD packet to send [10:15:47]OFD Sender: No OFD packet to send [10:15:52]OFD Sender: No OFD packet to send [10:15:57]OFD Sender: No OFD packet to send [10:16:02]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:12]OFD Sender: No OFD packet to send [10:16:17]OFD Sender: No OFD packet to send [10:16:20]accept exits with 7 [10:16:20]New connection [10:16:20]New thread 3066723684 created [10:16:20]Thread 3066580324 joined [10:16:20]Waiting for new connection... [10:16:20] Sock 7.Parse request [10:16:20]Sock 7.Check first char [10:16:20]Sock 7.First char is OK [10:16:20]request: POST /json_proto HTTP/1.0 [10:16:20]Method: POST [10:16:20]URL: /json_proto [10:16:20]Method is POST - this is cgi request [10:16:20]url: /json_proto [10:16:20]query_string will be loaded in cgi processing [10:16:20]execute_cgi json_proto POST (null) [10:16:20]execute_cgi path=json_proto method=POST [10:16:20]POST find Content-Length [10:16:20]Host: 172.17.37.4:8080 [10:16:20]Content-Length: 682 [10:16:20]Content-Type: application/json [10:16:20] [10:16:20]POST finish read [10:16:20]Found Content-Length = 682 [10:16:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 12.020, "sum" : 900.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:20]execute_script... [10:16:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 12.020, "sum" : 900.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:20]POST & json_proto [10:16:20]process_json_proto [10:16:20]json parsed OK: [10:16:20]protocol is kg_v1.0 [10:16:20]action value=close_receipt [10:16:20]process_action close_receipt [10:16:20]cmd_close_receipt [10:16:20]MH_GetDate [10:16:20]Write to MH i2c: F0 00 00 00 4A 39 [10:16:20]Write i2c OK [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: F0 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: F0 09 00 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: F0 09 00 00 4A 00 FE 9F 45 67 B8 5A 43 67 47 [10:16:20]GetLastDocTimeStamp 1732615889 [10:16:20]current date 1732616190 [10:16:20]FM_GetShiftState [10:16:20]SAM_PROTO_GetShiftState [10:16:20]wFMCommunicate request_size=4 [10:16:20]MH_SAM_APDU [10:16:20]CAPDU: 80 13 01 00 [10:16:20]Write to MH i2c: E2 08 00 01 4A 80 13 01 00 00 00 00 00 C8 [10:16:20]Write i2c OK [10:16:20]MH_I2C_Read... [10:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:20]Read from MH i2c: E2 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: E2 0E 00 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: E2 0E 00 01 4A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 29 [10:16:20]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:16:20]wFMCommunicate OK [10:16:20]SAM_PROTO_GetShiftState done [10:16:20]FM_GetShiftState done [10:16:20]opened in 1732579736 [10:16:20]opened+sec_in_day 1732666136 [10:16:20]quantity*price = 90029 [10:16:20]sum+1 = 90031 [10:16:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.61 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 10 26.11.2024 10:16 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123156 ФПД: 92760199221550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T101630&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123156&fm=92760199221550&tin=02508201610067®Number=0000000000092681&sum=90000 [10:16:21]StoreToDocumentArchive [10:16:21]shift 557 fd 123156 [10:16:21]save to /storage/0557/doc_00123156 [10:16:21]save last doc name /storage/0557/doc_00123156 to /storage/kkm_last_doc_name [10:16:21]save OK [10:16:21]Clear old archive folders... [10:16:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:16:21]tlvbuf is 02138890 [10:16:21]SAM_PROTO_ClearQueue [10:16:21]wFMCommunicate request_size=4 [10:16:21]MH_SAM_APDU [10:16:21]CAPDU: 80 09 00 00 [10:16:21]Write to MH i2c: E2 08 00 0E 4A 80 09 00 00 00 00 00 00 CA [10:16:21]Write i2c OK [10:16:21]MH_I2C_Read... [10:16:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:21]Read from MH i2c: E2 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 03 00 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 03 00 0E 4A 00 90 00 CC [10:16:21]RAPDU: 90 00 [10:16:21]wFMCommunicate OK [10:16:21]SAM_PROTO_ClearQueue done [10:16:21]KKMCreateOFDPacket [10:16:21]OFDProtocolAddRootSTLVToBuf [10:16:21]FM_MakeSignedData [10:16:21]FM_MakeSignedData [10:16:21]SAM_PROTO_SignData [10:16:21]wFMCommunicate request_size=4 [10:16:21]MH_SAM_APDU [10:16:21]CAPDU: 80 0D 01 02 [10:16:21]Write to MH i2c: E2 08 00 0F 4A 80 0D 01 02 00 00 00 00 D2 [10:16:21]Write i2c OK [10:16:21]MH_I2C_Read... [10:16:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:21]Read from MH i2c: E2 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 03 00 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 03 00 0F 4A 00 90 00 CD [10:16:21]RAPDU: 90 00 [10:16:21]wFMCommunicate OK [10:16:21]wFMCommunicate request_size=255 [10:16:21]MH_SAM_APDU [10:16:21]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 35 FF 03 08 00 03 F4 2E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 AE 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 FE 9F 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 14 E1 01 00 35 04 06 00 [10:16:21]Write to MH i2c: E2 02 01 10 4A 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 35 FF 03 08 00 03 F4 2E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 AE 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 FE 9F 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 14 E1 01 00 35 04 06 00 00 00 A1 [10:16:21]Write i2c OK [10:16:21]MH_I2C_Read... [10:16:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:22]Read from MH i2c: E2 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: E2 03 00 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: E2 03 00 10 4A 00 90 00 CE [10:16:22]RAPDU: 90 00 [10:16:22]wFMCommunicate OK [10:16:22]wFMCommunicate request_size=11 [10:16:22]MH_SAM_APDU [10:16:22]CAPDU: 80 0D 02 02 06 54 5D 6A B9 51 2E [10:16:22]Write to MH i2c: E2 0E 00 11 4A 80 0D 02 02 06 00 54 5D 6A B9 51 2E 00 00 34 [10:16:22]Write i2c OK [10:16:22]MH_I2C_Read... [10:16:22]OFD Sender: No OFD packet to send [10:16:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:22]Read from MH i2c: E2 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: E2 03 00 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: E2 03 00 11 4A 00 90 00 CF [10:16:22]RAPDU: 90 00 [10:16:22]wFMCommunicate OK [10:16:22]wFMCommunicate request_size=4 [10:16:22]MH_SAM_APDU [10:16:22]CAPDU: 80 0D 03 02 [10:16:22]Write to MH i2c: E2 08 00 12 4A 80 0D 03 02 00 00 00 00 D7 [10:16:22]Write i2c OK [10:16:22]MH_I2C_Read... [10:16:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:22]Read from MH i2c: E2 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: E2 0B 00 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: E2 0B 00 12 4A 00 C8 00 9A D0 FB DF FE B3 90 00 95 [10:16:22]RAPDU: C8 00 9A D0 FB DF FE B3 90 00 [10:16:22]wFMCommunicate OK [10:16:22]SAM_PROTO_SignData done [10:16:22]FM_MakeSignedData done [10:16:22]CreateOFDProtocolMessage [10:16:22]wFMCommunicate request_size=4 [10:16:22]MH_SAM_APDU [10:16:22]CAPDU: 80 11 00 00 [10:16:22]Write to MH i2c: E2 08 00 13 4A 80 11 00 00 00 00 00 00 D7 [10:16:22]Write i2c OK [10:16:22]MH_I2C_Read... [10:16:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:22]Read from MH i2c: E2 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: E2 17 00 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: E2 17 00 13 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2E [10:16:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:16:22]wFMCommunicate OK [10:16:22]CreateOFDProtocolMessage done [10:16:22]OFDSenderStorePacket 123156 [10:16:22]StoreOFDPacket docnum=123156 [10:16:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 3C 73 08 01 F9 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F4 2E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 AE 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 FE 9F 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 14 E1 01 00 35 04 06 00 54 5D 6A B9 51 2E C8 00 9A D0 FB DF FE B3 [10:16:22]CheckFolder [10:16:22]dirname=/storage/ofd_packets [10:16:22]CheckFolder done [10:16:22]ProducePacketName [10:16:22]name=ofd_packets/00123156 [10:16:22]NVStorageSaveData ofd_packets/00123156 [10:16:22]File name is /storage/ofd_packets/00123156 [10:16:22]Write 302 bytes [10:16:22]NVStorageSaveData done [10:16:22]OFDSenderStorePacket done [10:16:22]KKMCreateOFDPacket done [10:16:22]NVStorageSaveData kkm_last_timestamp [10:16:22]File name is /storage/kkm_last_timestamp [10:16:22]Write 4 bytes [10:16:22]NVStorageSaveData done [10:16:22]ExternCall_PrintAddStr [10:16:22]wPrintStart [10:16:22]Write to MH i2c: 01 00 00 14 4A 5E [10:16:22]Write i2c OK [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: 01 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: 01 07 00 [10:16:22]MH_I2C_Read... [10:16:22]Read from MH i2c: 01 07 00 14 4A 00 00 00 00 00 FF 0F 73 [10:16:22]RasterBufferAndPrint [10:16:22]line Счет N : (1)717993 [10:16:22]line ИНН: 02508201610067 [10:16:22]line Контрольно-Кассовый Чек [10:16:22]line ПРОДАЖА [10:16:22]line ТРК (МРК, ГНК) : 5 [10:16:22]line Товар: 2710194210 [10:16:22]line ДТ(л)-К-5 [10:16:22]line 12.020 * 74.90 [10:16:22]line = 900.30 [10:16:22]line НДС 12% НСП 1% [10:16:22]line > о реализуемом товаре [10:16:22]line ОКРУГЛЕНИЕ: -0.30 [10:16:22]line ИТОГО: 900.00 [10:16:22]line Внесено: 900.00 [10:16:22]line СДАЧА: 0.00 [10:16:22]line НСП 1% : 7.97 [10:16:22]line НДС 12% : 95.61 [10:16:22]line Наличными: 900.00 [10:16:22]line Безнал.: 0.00 [10:16:22]line Место: АЗС № 64 "Партнер Нефть" [10:16:22]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:16:22]line СНО: Общий режим [10:16:22]line Чек 10 26.11.2024 10:16 [10:16:22]line Смена: 557 ФФД: 1.0 [10:16:22]line ЗНМ: 0300000033 [10:16:22]line РНМ: 0000000000092681 [10:16:22]line Версия ККМ: 001 [10:16:22]line ФМ: 0000000000874881 [10:16:22]line ФД: 123156 [10:16:22]line ФПД: 92760199221550 [10:16:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T101630&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123156&fm=92760199221550&tin=02508201610067®Number=0000000000092681&sum=90000 [10:16:22]OFD Sender: Processing packet 123156 [packets to send 7, broken 6] [10:16:22]ProducePacketName [10:16:22]name=ofd_packets/00123156 [10:16:22]OFD Sender: To server: pG, [10:16:22]CommunicateWithHost lk.salyk.kg:30040 [10:16:22]ConnectInit lk.salyk.kg [10:16:22]written 0, free lines is 4095 [10:16:22]Connected sock=10 [10:16:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 3C 73 08 01 F9 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F4 2E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 AE 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 FE 9F 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 14 E1 01 00 35 04 06 00 54 5D 6A B9 51 2E C8 00 9A D0 FB DF FE B3 [10:16:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 6D 16 47 00 33 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 14 E1 01 00 F4 03 04 00 C1 4B 45 67 B6 04 01 00 00 9A D1 75 C7 A8 53 D4 2F [10:16:22]CommunicateWithHost err = 0 [10:16:22]CheckOFDResponse [10:16:22]1017 (14) - 77093643461234 [10:16:22]1041 (16) - 0000000000874881 [10:16:22]1040 (4) - 123156 [10:16:22]1012 (4) - 26.11.2024 04:17 [10:16:22]1206 (1) - 0 [10:16:22]OFD Sender: Remove packet 123156 [10:16:22]ProducePacketName [10:16:22]name=ofd_packets/00123156 [10:16:22]NVStorageDeleteData [10:16:23]Write to MH i2c: 01 00 00 3F 4A 89 [10:16:23]Write i2c OK [10:16:23]MH_I2C_Read... [10:16:23]Read from MH i2c: 01 [10:16:23]MH_I2C_Read... [10:16:23]Read from MH i2c: 01 07 00 [10:16:23]MH_I2C_Read... [10:16:23]Read from MH i2c: 01 07 00 3F 4A 00 00 00 00 00 3D 0C D9 [10:16:23]RasterBufferAndPrint [10:16:23]line [10:16:23]line [10:16:23]line [10:16:23]line [10:16:23]line [10:16:23]written 0, free lines is 3137 [10:16:23]MH_Cut [10:16:23]Write to MH i2c: D1 01 00 46 4A 01 62 [10:16:23]Write i2c OK [10:16:23]MH_I2C_Read... [10:16:23]Read from MH i2c: D1 [10:16:23]MH_I2C_Read... [10:16:23]Read from MH i2c: D1 01 00 [10:16:23]MH_I2C_Read... [10:16:23]Read from MH i2c: D1 01 00 46 4A 00 61 [10:16:23]Write to MH i2c: 01 00 00 47 4A 91 [10:16:23]Write i2c OK [10:16:23]MH_I2C_Read... [10:16:23]OFD Sender: No OFD packet to send [10:16:24]*** Cut start [10:16:24]*** Partial cut [10:16:24]*** CUTSNS_PIN = 1 [10:16:24]*** CUTSNS_PIN = 0 [10:16:24]*** Brake cut motor [10:16:25]Read from MH i2c: 01 [10:16:25]MH_I2C_Read... [10:16:25]*** Stop cut motor [10:16:25]*** Cut end [10:16:25]Read from MH i2c: 01 07 00 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: 01 07 00 47 4A 00 00 00 00 00 FF 0F A6 [10:16:25]process_action close_receipt done [10:16:25]requested_data is exist [10:16:25]produce_requested_data [10:16:25]requested_item fm.sn is exist - process it [10:16:25]wFMCommunicate request_size=4 [10:16:25]MH_SAM_APDU [10:16:25]CAPDU: 80 11 00 00 [10:16:25]Write to MH i2c: E2 08 00 48 4A 80 11 00 00 00 00 00 00 0C [10:16:25]Write i2c OK [10:16:25]MH_I2C_Read... [10:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:25]Read from MH i2c: E2 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: E2 17 00 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: E2 17 00 48 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 63 [10:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:16:25]wFMCommunicate OK [10:16:25]requested_item fd.num is exist - process it [10:16:25]SAM_PROTO_GetFieldsCounters [10:16:25]wFMCommunicate request_size=4 [10:16:25]MH_SAM_APDU [10:16:25]CAPDU: 80 13 00 00 [10:16:25]Write to MH i2c: E2 08 00 49 4A 80 13 00 00 00 00 00 00 0F [10:16:25]Write i2c OK [10:16:25]MH_I2C_Read... [10:16:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:25]Read from MH i2c: E2 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: E2 62 00 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: E2 62 00 49 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 14 E1 01 00 0E 04 04 00 2D 02 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 78 [10:16:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 14 E1 01 00 0E 04 04 00 2D 02 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:16:25]wFMCommunicate OK [10:16:25]SAM_PROTO_GetFieldsCounters done [10:16:25]requested_item shift.num is exist - process it [10:16:25]requested_item shift.opened is exist - process it [10:16:25]req_shift_opened [10:16:25]FM_GetShiftState [10:16:25]SAM_PROTO_GetShiftState [10:16:25]wFMCommunicate request_size=4 [10:16:25]MH_SAM_APDU [10:16:25]CAPDU: 80 13 01 00 [10:16:25]Write to MH i2c: E2 08 00 4A 4A 80 13 01 00 00 00 00 00 11 [10:16:25]Write i2c OK [10:16:25]MH_I2C_Read... [10:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:25]Read from MH i2c: E2 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: E2 0E 00 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: E2 0E 00 4A 4A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 72 [10:16:25]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:16:25]wFMCommunicate OK [10:16:25]SAM_PROTO_GetShiftState done [10:16:25]FM_GetShiftState done [10:16:25]req_shift_opened done [10:16:25]requested_item shift.open_date is exist - process it [10:16:25]req_shift_open_date [10:16:25]req_shift_open_date done [10:16:25]produce_requested_data done [10:16:25]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123156,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:16:25]process_action_free close_receipt [10:16:25]json_value_free [10:16:25]json_value_free done [10:16:25]process_json_proto returns [10:16:25]Send response to host [10:16:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123156,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:16:25]free response buf [10:16:25]execute_script done [10:16:25]execute_script returns [10:16:25]free content buf [10:16:25]Sock 7.Close socket [10:16:25]Sock 7.Thread stoped [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:16:59]accept exits with 9 [10:16:59]New connection [10:16:59]New thread 3066580324 created [10:16:59]Thread 3066723684 joined [10:16:59]Waiting for new connection... [10:16:59] Sock 9.Parse request [10:16:59]Sock 9.Check first char [10:16:59]Sock 9.First char is OK [10:16:59]request: POST /json_proto HTTP/1.0 [10:16:59]Method: POST [10:16:59]URL: /json_proto [10:16:59]Method is POST - this is cgi request [10:16:59]url: /json_proto [10:16:59]query_string will be loaded in cgi processing [10:16:59]execute_cgi json_proto POST (null) [10:16:59]execute_cgi path=json_proto method=POST [10:16:59]POST find Content-Length [10:16:59]Host: 172.17.37.4:8080 [10:16:59]Content-Length: 754 [10:16:59]Content-Type: application/json [10:16:59] [10:16:59]POST finish read [10:16:59]Found Content-Length = 754 [10:16:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30043022", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:59]execute_script... [10:16:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30043022", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:59]POST & json_proto [10:16:59]process_json_proto [10:16:59]json parsed OK: [10:16:59]protocol is kg_v1.0 [10:16:59]action value=close_receipt [10:16:59]process_action close_receipt [10:16:59]cmd_close_receipt [10:16:59]MH_GetDate [10:16:59]Write to MH i2c: F0 00 00 4B 4A 84 [10:16:59]Write i2c OK [10:16:59]MH_I2C_Read... [10:16:59]Read from MH i2c: F0 [10:16:59]MH_I2C_Read... [10:16:59]Read from MH i2c: F0 09 00 [10:16:59]MH_I2C_Read... [10:16:59]Read from MH i2c: F0 09 00 4B 4A 00 25 A0 45 67 B8 5A 43 67 BA [10:16:59]GetLastDocTimeStamp 1732616190 [10:16:59]current date 1732616229 [10:16:59]FM_GetShiftState [10:16:59]SAM_PROTO_GetShiftState [10:16:59]wFMCommunicate request_size=4 [10:16:59]MH_SAM_APDU [10:16:59]CAPDU: 80 13 01 00 [10:16:59]Write to MH i2c: E2 08 00 4C 4A 80 13 01 00 00 00 00 00 13 [10:16:59]Write i2c OK [10:16:59]MH_I2C_Read... [10:16:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:59]Read from MH i2c: E2 [10:16:59]MH_I2C_Read... [10:16:59]Read from MH i2c: E2 0E 00 [10:16:59]MH_I2C_Read... [10:16:59]Read from MH i2c: E2 0E 00 4C 4A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 74 [10:16:59]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:16:59]wFMCommunicate OK [10:16:59]SAM_PROTO_GetShiftState done [10:16:59]FM_GetShiftState done [10:16:59]opened in 1732579736 [10:16:59]opened+sec_in_day 1732666136 [10:16:59]quantity*price = 0 [10:16:59]sum+1 = 1 [10:16:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 11 26.11.2024 10:17 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: ТК ГПНА Online 30043022 ФМ: 0000000000874881 ФД: 123157 ФПД: 177827835984921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T101709&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123157&fm=177827835984921&tin=02508201610067®Number=0000000000092681&sum=0 [10:17:00]StoreToDocumentArchive [10:17:00]shift 557 fd 123157 [10:17:00]save to /storage/0557/doc_00123157 [10:17:00]save last doc name /storage/0557/doc_00123157 to /storage/kkm_last_doc_name [10:17:00]save OK [10:17:00]Clear old archive folders... [10:17:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:00]tlvbuf is 01F93CF0 [10:17:00]SAM_PROTO_ClearQueue [10:17:00]wFMCommunicate request_size=4 [10:17:00]MH_SAM_APDU [10:17:00]CAPDU: 80 09 00 00 [10:17:00]Write to MH i2c: E2 08 00 59 4A 80 09 00 00 00 00 00 00 15 [10:17:00]Write i2c OK [10:17:00]MH_I2C_Read... [10:17:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:00]Read from MH i2c: E2 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: E2 03 00 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: E2 03 00 59 4A 00 90 00 17 [10:17:00]RAPDU: 90 00 [10:17:00]wFMCommunicate OK [10:17:00]SAM_PROTO_ClearQueue done [10:17:00]KKMCreateOFDPacket [10:17:00]OFDProtocolAddRootSTLVToBuf [10:17:00]FM_MakeSignedData [10:17:00]FM_MakeSignedData [10:17:00]SAM_PROTO_SignData [10:17:00]wFMCommunicate request_size=4 [10:17:00]MH_SAM_APDU [10:17:00]CAPDU: 80 0D 01 02 [10:17:00]Write to MH i2c: E2 08 00 5A 4A 80 0D 01 02 00 00 00 00 1D [10:17:00]Write i2c OK [10:17:00]MH_I2C_Read... [10:17:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:00]Read from MH i2c: E2 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: E2 03 00 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: E2 03 00 5A 4A 00 90 00 18 [10:17:00]RAPDU: 90 00 [10:17:00]wFMCommunicate OK [10:17:00]wFMCommunicate request_size=255 [10:17:00]MH_SAM_APDU [10:17:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 25 A0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 15 E1 01 00 35 04 06 00 A1 [10:17:00]Write to MH i2c: E2 02 01 5B 4A 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 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 25 A0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 15 E1 01 00 35 04 06 00 A1 00 00 40 [10:17:00]Write i2c OK [10:17:00]MH_I2C_Read... [10:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:00]Read from MH i2c: E2 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: E2 03 00 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: E2 03 00 5B 4A 00 90 00 19 [10:17:00]RAPDU: 90 00 [10:17:00]wFMCommunicate OK [10:17:00]wFMCommunicate request_size=10 [10:17:00]MH_SAM_APDU [10:17:00]CAPDU: 80 0D 02 02 05 BB C4 FE BC 19 [10:17:00]Write to MH i2c: E2 0D 00 5C 4A 80 0D 02 02 05 00 BB C4 FE BC 19 00 00 7C [10:17:00]Write i2c OK [10:17:00]MH_I2C_Read... [10:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:00]Read from MH i2c: E2 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: E2 03 00 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: E2 03 00 5C 4A 00 90 00 1A [10:17:00]RAPDU: 90 00 [10:17:00]wFMCommunicate OK [10:17:00]wFMCommunicate request_size=4 [10:17:00]MH_SAM_APDU [10:17:00]CAPDU: 80 0D 03 02 [10:17:00]Write to MH i2c: E2 08 00 5D 4A 80 0D 03 02 00 00 00 00 22 [10:17:00]Write i2c OK [10:17:00]MH_I2C_Read... [10:17:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:00]Read from MH i2c: E2 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: E2 0B 00 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: E2 0B 00 5D 4A 00 79 64 2F E0 14 FA AE DC 90 00 A7 [10:17:00]RAPDU: 79 64 2F E0 14 FA AE DC 90 00 [10:17:00]wFMCommunicate OK [10:17:00]SAM_PROTO_SignData done [10:17:00]FM_MakeSignedData done [10:17:00]CreateOFDProtocolMessage [10:17:00]wFMCommunicate request_size=4 [10:17:00]MH_SAM_APDU [10:17:00]CAPDU: 80 11 00 00 [10:17:00]Write to MH i2c: E2 08 00 5E 4A 80 11 00 00 00 00 00 00 22 [10:17:00]Write i2c OK [10:17:00]MH_I2C_Read... [10:17:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:00]Read from MH i2c: E2 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: E2 17 00 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: E2 17 00 5E 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 79 [10:17:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:17:00]wFMCommunicate OK [10:17:00]CreateOFDProtocolMessage done [10:17:00]OFDSenderStorePacket 123157 [10:17:00]StoreOFDPacket docnum=123157 [10:17:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 C5 71 07 01 B2 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 25 A0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 15 E1 01 00 35 04 06 00 A1 BB C4 FE BC 19 79 64 2F E0 14 FA AE DC [10:17:00]CheckFolder [10:17:00]dirname=/storage/ofd_packets [10:17:00]CheckFolder done [10:17:00]ProducePacketName [10:17:00]name=ofd_packets/00123157 [10:17:00]NVStorageSaveData ofd_packets/00123157 [10:17:00]File name is /storage/ofd_packets/00123157 [10:17:00]Write 301 bytes [10:17:00]NVStorageSaveData done [10:17:00]OFDSenderStorePacket done [10:17:00]KKMCreateOFDPacket done [10:17:00]NVStorageSaveData kkm_last_timestamp [10:17:00]File name is /storage/kkm_last_timestamp [10:17:00]Write 4 bytes [10:17:00]NVStorageSaveData done [10:17:00]ExternCall_PrintAddStr [10:17:00]wPrintStart [10:17:00]Write to MH i2c: 01 00 00 5F 4A A9 [10:17:00]Write i2c OK [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: 01 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: 01 07 00 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: 01 07 00 5F 4A 00 00 00 00 00 FF 0F BE [10:17:00]RasterBufferAndPrint [10:17:00]line Счет N : (1)717992 [10:17:00]line ИНН: 02508201610067 [10:17:00]line Контрольно-Кассовый Чек [10:17:00]line ПРОДАЖА [10:17:00]line ТРК (МРК, ГНК) : 32 [10:17:00]line Товар: 2710124130 [10:17:00]line Аи-92-К-4 [10:17:00]line 15.000 * 0.00 [10:17:00]line = 0.00 [10:17:00]line НДС 12% НСП 1% [10:17:00]line > о реализуемом товаре [10:17:00]line ИТОГО: 0.00 [10:17:00]line НСП 1% : 0.00 [10:17:00]line НДС 12% : 0.00 [10:17:00]line Наличными: 0.00 [10:17:00]line Безнал.: 0.00 [10:17:00]line Место: АЗС № 64 "Партнер Нефть" [10:17:00]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:17:00]line СНО: Общий режим [10:17:00]line Чек 11 26.11.2024 10:17 [10:17:00]line Смена: 557 ФФД: 1.0 [10:17:00]line ЗНМ: 0300000033 [10:17:00]line РНМ: 0000000000092681 [10:17:00]line Версия ККМ: 001 [10:17:00]line Талоны: ТК ГПНА Online [10:17:00]line 30043022 [10:17:00]line ФМ: 0000000000874881 [10:17:00]line ФД: 123157 [10:17:00]line ФПД: 177827835984921 [10:17:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T101709&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123157&fm=177827835984921&tin=02508201610067®Number=0000000000092681&sum=0 [10:17:00]written 0, free lines is 4095 [10:17:00]OFD Sender: Processing packet 123157 [packets to send 7, broken 6] [10:17:00]ProducePacketName [10:17:00]name=ofd_packets/00123157 [10:17:00]OFD Sender: To server: pG, [10:17:00]CommunicateWithHost lk.salyk.kg:30040 [10:17:00]ConnectInit lk.salyk.kg [10:17:00]Connected sock=10 [10:17:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 C5 71 07 01 B2 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 25 A0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 15 E1 01 00 35 04 06 00 A1 BB C4 FE BC 19 79 64 2F E0 14 FA AE DC [10:17:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 71 AC 47 00 8F 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 38 37 34 38 38 31 10 04 04 00 15 E1 01 00 F4 03 04 00 E7 4B 45 67 B6 04 01 00 00 CB 72 E2 4F D2 F5 72 B8 [10:17:01]CommunicateWithHost err = 0 [10:17:01]CheckOFDResponse [10:17:01]1017 (14) - 77093643461234 [10:17:01]1041 (16) - 0000000000874881 [10:17:01]1040 (4) - 123157 [10:17:01]1012 (4) - 26.11.2024 04:17 [10:17:01]1206 (1) - 0 [10:17:01]OFD Sender: Remove packet 123157 [10:17:01]ProducePacketName [10:17:01]name=ofd_packets/00123157 [10:17:01]NVStorageDeleteData [10:17:01]Write to MH i2c: 01 00 00 89 4A D3 [10:17:01]Write i2c OK [10:17:01]MH_I2C_Read... [10:17:01]Read from MH i2c: 01 [10:17:01]MH_I2C_Read... [10:17:01]Read from MH i2c: 01 07 00 [10:17:01]MH_I2C_Read... [10:17:01]Read from MH i2c: 01 07 00 89 4A 00 00 00 00 00 63 0C 49 [10:17:01]RasterBufferAndPrint [10:17:01]line [10:17:01]line [10:17:01]line [10:17:01]line [10:17:01]line [10:17:01]written 0, free lines is 3178 [10:17:01]MH_Cut [10:17:01]Write to MH i2c: D1 01 00 90 4A 01 AC [10:17:01]Write i2c OK [10:17:01]MH_I2C_Read... [10:17:01]Read from MH i2c: D1 [10:17:01]MH_I2C_Read... [10:17:01]Read from MH i2c: D1 01 00 [10:17:01]MH_I2C_Read... [10:17:01]Read from MH i2c: D1 01 00 90 4A 00 AB [10:17:01]Write to MH i2c: 01 00 00 91 4A DB [10:17:01]Write i2c OK [10:17:01]MH_I2C_Read... [10:17:01]OFD Sender: No OFD packet to send [10:17:02]*** Cut start [10:17:02]*** Partial cut [10:17:02]*** CUTSNS_PIN = 1 [10:17:02]*** CUTSNS_PIN = 0 [10:17:02]*** Brake cut motor [10:17:03]Read from MH i2c: 01 [10:17:03]MH_I2C_Read... [10:17:03]*** Stop cut motor [10:17:03]*** Cut end [10:17:03]Read from MH i2c: 01 07 00 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: 01 07 00 91 4A 00 00 00 00 00 FF 0F F0 [10:17:03]process_action close_receipt done [10:17:03]requested_data is exist [10:17:03]produce_requested_data [10:17:03]requested_item fm.sn is exist - process it [10:17:03]wFMCommunicate request_size=4 [10:17:03]MH_SAM_APDU [10:17:03]CAPDU: 80 11 00 00 [10:17:03]Write to MH i2c: E2 08 00 92 4A 80 11 00 00 00 00 00 00 56 [10:17:03]Write i2c OK [10:17:03]MH_I2C_Read... [10:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:03]Read from MH i2c: E2 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: E2 17 00 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: E2 17 00 92 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AD [10:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:17:03]wFMCommunicate OK [10:17:03]requested_item fd.num is exist - process it [10:17:03]SAM_PROTO_GetFieldsCounters [10:17:03]wFMCommunicate request_size=4 [10:17:03]MH_SAM_APDU [10:17:03]CAPDU: 80 13 00 00 [10:17:03]Write to MH i2c: E2 08 00 93 4A 80 13 00 00 00 00 00 00 59 [10:17:03]Write i2c OK [10:17:03]MH_I2C_Read... [10:17:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:03]Read from MH i2c: E2 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: E2 62 00 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: E2 62 00 93 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 15 E1 01 00 0E 04 04 00 2D 02 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 C6 [10:17:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 15 E1 01 00 0E 04 04 00 2D 02 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 [10:17:03]wFMCommunicate OK [10:17:03]SAM_PROTO_GetFieldsCounters done [10:17:03]requested_item shift.num is exist - process it [10:17:03]requested_item shift.opened is exist - process it [10:17:03]req_shift_opened [10:17:03]FM_GetShiftState [10:17:03]SAM_PROTO_GetShiftState [10:17:03]wFMCommunicate request_size=4 [10:17:03]MH_SAM_APDU [10:17:03]CAPDU: 80 13 01 00 [10:17:03]Write to MH i2c: E2 08 00 94 4A 80 13 01 00 00 00 00 00 5B [10:17:03]Write i2c OK [10:17:03]MH_I2C_Read... [10:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:03]Read from MH i2c: E2 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: E2 0E 00 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: E2 0E 00 94 4A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 BC [10:17:03]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:17:03]wFMCommunicate OK [10:17:03]SAM_PROTO_GetShiftState done [10:17:03]FM_GetShiftState done [10:17:03]req_shift_opened done [10:17:03]requested_item shift.open_date is exist - process it [10:17:03]req_shift_open_date [10:17:03]req_shift_open_date done [10:17:03]produce_requested_data done [10:17:03]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123157,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:17:03]process_action_free close_receipt [10:17:03]json_value_free [10:17:03]json_value_free done [10:17:03]process_json_proto returns [10:17:03]Send response to host [10:17:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123157,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:17:03]free response buf [10:17:03]execute_script done [10:17:03]execute_script returns [10:17:03]free content buf [10:17:03]Sock 9.Close socket [10:17:03]Sock 9.Thread stoped [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:01]accept exits with 7 [10:18:01]New connection [10:18:01]New thread 3066723684 created [10:18:01]Thread 3066580324 joined [10:18:01]Waiting for new connection... [10:18:01] Sock 7.Parse request [10:18:01]Sock 7.Check first char [10:18:01]Sock 7.First char is OK [10:18:01]request: POST /json_proto HTTP/1.0 [10:18:01]Method: POST [10:18:01]URL: /json_proto [10:18:01]Method is POST - this is cgi request [10:18:01]url: /json_proto [10:18:01]query_string will be loaded in cgi processing [10:18:01]execute_cgi json_proto POST (null) [10:18:01]execute_cgi path=json_proto method=POST [10:18:01]POST find Content-Length [10:18:01]Host: 172.17.37.4:8080 [10:18:01]Content-Length: 677 [10:18:01]Content-Type: application/json [10:18:01] [10:18:01]POST finish read [10:18:01]Found Content-Length = 677 [10:18:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:01]execute_script... [10:18:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:01]POST & json_proto [10:18:01]process_json_proto [10:18:01]json parsed OK: [10:18:01]protocol is kg_v1.0 [10:18:01]action value=close_receipt [10:18:01]process_action close_receipt [10:18:01]cmd_close_receipt [10:18:01]MH_GetDate [10:18:01]Write to MH i2c: F0 00 00 95 4A CE [10:18:01]Write i2c OK [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: F0 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: F0 09 00 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: F0 09 00 95 4A 00 64 A0 45 67 B8 5A 43 67 43 [10:18:01]GetLastDocTimeStamp 1732616229 [10:18:01]current date 1732616292 [10:18:01]FM_GetShiftState [10:18:01]SAM_PROTO_GetShiftState [10:18:01]wFMCommunicate request_size=4 [10:18:01]MH_SAM_APDU [10:18:01]CAPDU: 80 13 01 00 [10:18:01]Write to MH i2c: E2 08 00 96 4A 80 13 01 00 00 00 00 00 5D [10:18:01]Write i2c OK [10:18:01]MH_I2C_Read... [10:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:02]Read from MH i2c: E2 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 0E 00 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 0E 00 96 4A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 BE [10:18:02]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:18:02]wFMCommunicate OK [10:18:02]SAM_PROTO_GetShiftState done [10:18:02]FM_GetShiftState done [10:18:02]opened in 1732579736 [10:18:02]opened+sec_in_day 1732666136 [10:18:02]quantity*price = 30060 [10:18:02]sum+1 = 30061 [10:18:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 12 26.11.2024 10:18 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123158 ФПД: 204601496463560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T101812&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123158&fm=204601496463560&tin=02508201610067®Number=0000000000092681&sum=30000 [10:18:03]StoreToDocumentArchive [10:18:03]shift 557 fd 123158 [10:18:03]save to /storage/0557/doc_00123158 [10:18:03]save last doc name /storage/0557/doc_00123158 to /storage/kkm_last_doc_name [10:18:03]save OK [10:18:03]Clear old archive folders... [10:18:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:03]tlvbuf is B6F1D4A0 [10:18:03]SAM_PROTO_ClearQueue [10:18:03]wFMCommunicate request_size=4 [10:18:03]MH_SAM_APDU [10:18:03]CAPDU: 80 09 00 00 [10:18:03]Write to MH i2c: E2 08 00 A3 4A 80 09 00 00 00 00 00 00 5F [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:03]Read from MH i2c: E2 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 03 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 03 00 A3 4A 00 90 00 61 [10:18:03]RAPDU: 90 00 [10:18:03]wFMCommunicate OK [10:18:03]SAM_PROTO_ClearQueue done [10:18:03]KKMCreateOFDPacket [10:18:03]OFDProtocolAddRootSTLVToBuf [10:18:03]FM_MakeSignedData [10:18:03]FM_MakeSignedData [10:18:03]SAM_PROTO_SignData [10:18:03]wFMCommunicate request_size=4 [10:18:03]MH_SAM_APDU [10:18:03]CAPDU: 80 0D 01 02 [10:18:03]Write to MH i2c: E2 08 00 A4 4A 80 0D 01 02 00 00 00 00 67 [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:03]Read from MH i2c: E2 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 03 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 03 00 A4 4A 00 90 00 62 [10:18:03]RAPDU: 90 00 [10:18:03]wFMCommunicate OK [10:18:03]wFMCommunicate request_size=255 [10:18:03]MH_SAM_APDU [10:18:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 64 A0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 16 E1 01 00 35 04 06 00 BA [10:18:03]Write to MH i2c: E2 02 01 A5 4A 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 64 A0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 16 E1 01 00 35 04 06 00 BA 00 00 B7 [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:03]Read from MH i2c: E2 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 03 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 03 00 A5 4A 00 90 00 63 [10:18:03]RAPDU: 90 00 [10:18:03]wFMCommunicate OK [10:18:03]wFMCommunicate request_size=10 [10:18:03]MH_SAM_APDU [10:18:03]CAPDU: 80 0D 02 02 05 15 7F 84 68 C8 [10:18:03]Write to MH i2c: E2 0D 00 A6 4A 80 0D 02 02 05 00 15 7F 84 68 C8 00 00 BC [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:03]Read from MH i2c: E2 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 03 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 03 00 A6 4A 00 90 00 64 [10:18:03]RAPDU: 90 00 [10:18:03]wFMCommunicate OK [10:18:03]wFMCommunicate request_size=4 [10:18:03]MH_SAM_APDU [10:18:03]CAPDU: 80 0D 03 02 [10:18:03]Write to MH i2c: E2 08 00 A7 4A 80 0D 03 02 00 00 00 00 6C [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:03]Read from MH i2c: E2 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 0B 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 0B 00 A7 4A 00 F3 2E A7 7B 6B F2 1A 47 90 00 6E [10:18:03]RAPDU: F3 2E A7 7B 6B F2 1A 47 90 00 [10:18:03]wFMCommunicate OK [10:18:03]SAM_PROTO_SignData done [10:18:03]FM_MakeSignedData done [10:18:03]CreateOFDProtocolMessage [10:18:03]wFMCommunicate request_size=4 [10:18:03]MH_SAM_APDU [10:18:03]CAPDU: 80 11 00 00 [10:18:03]Write to MH i2c: E2 08 00 A8 4A 80 11 00 00 00 00 00 00 6C [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:03]Read from MH i2c: E2 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 17 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 17 00 A8 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C3 [10:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:18:03]wFMCommunicate OK [10:18:03]CreateOFDProtocolMessage done [10:18:03]OFDSenderStorePacket 123158 [10:18:03]StoreOFDPacket docnum=123158 [10:18:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 71 7E 07 01 08 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 64 A0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 16 E1 01 00 35 04 06 00 BA 15 7F 84 68 C8 F3 2E A7 7B 6B F2 1A 47 [10:18:03]CheckFolder [10:18:03]dirname=/storage/ofd_packets [10:18:03]CheckFolder done [10:18:03]ProducePacketName [10:18:03]name=ofd_packets/00123158 [10:18:03]NVStorageSaveData ofd_packets/00123158 [10:18:03]File name is /storage/ofd_packets/00123158 [10:18:03]Write 301 bytes [10:18:03]NVStorageSaveData done [10:18:03]OFDSenderStorePacket done [10:18:03]KKMCreateOFDPacket done [10:18:03]NVStorageSaveData kkm_last_timestamp [10:18:03]File name is /storage/kkm_last_timestamp [10:18:03]Write 4 bytes [10:18:03]NVStorageSaveData done [10:18:03]ExternCall_PrintAddStr [10:18:03]wPrintStart [10:18:03]Write to MH i2c: 01 00 00 A9 4A F3 [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: 01 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: 01 07 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: 01 07 00 A9 4A 00 00 00 00 00 FF 0F 08 [10:18:03]RasterBufferAndPrint [10:18:03]line Счет N : (1)717994 [10:18:03]line ИНН: 02508201610067 [10:18:03]line Контрольно-Кассовый Чек [10:18:03]line ПРОДАЖА [10:18:03]line ТРК (МРК, ГНК) : 32 [10:18:03]line Товар: 2710124130 [10:18:03]line Аи-92-К-4 [10:18:03]line 4.460 * 67.40 [10:18:03]line = 300.60 [10:18:03]line НДС 12% НСП 1% [10:18:03]line > о реализуемом товаре [10:18:03]line ОКРУГЛЕНИЕ: -0.60 [10:18:03]line ИТОГО: 300.00 [10:18:03]line Внесено: 300.00 [10:18:03]line СДАЧА: 0.00 [10:18:03]line НСП 1% : 2.66 [10:18:03]line НДС 12% : 31.92 [10:18:03]line Наличными: 300.00 [10:18:03]line Безнал.: 0.00 [10:18:03]line Место: АЗС № 64 "Партнер Нефть" [10:18:03]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:18:03]line СНО: Общий режим [10:18:03]line Чек 12 26.11.2024 10:18 [10:18:03]line Смена: 557 ФФД: 1.0 [10:18:03]line ЗНМ: 0300000033 [10:18:03]line РНМ: 0000000000092681 [10:18:03]line Версия ККМ: 001 [10:18:03]line ФМ: 0000000000874881 [10:18:03]line ФД: 123158 [10:18:03]line ФПД: 204601496463560 [10:18:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T101812&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123158&fm=204601496463560&tin=02508201610067®Number=0000000000092681&sum=30000 [10:18:04]OFD Sender: Processing packet 123158 [packets to send 7, broken 6] [10:18:04]ProducePacketName [10:18:04]name=ofd_packets/00123158 [10:18:04]OFD Sender: To server: pG, [10:18:04]CommunicateWithHost lk.salyk.kg:30040 [10:18:04]ConnectInit lk.salyk.kg [10:18:04]written 0, free lines is 4095 [10:18:04]Connected sock=10 [10:18:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 71 7E 07 01 08 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 64 A0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 16 E1 01 00 35 04 06 00 BA 15 7F 84 68 C8 F3 2E A7 7B 6B F2 1A 47 [10:18:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 F2 D9 47 00 87 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 16 E1 01 00 F4 03 04 00 26 4C 45 67 B6 04 01 00 00 7B 1A 57 7C 2F B1 62 D5 [10:18:04]CommunicateWithHost err = 0 [10:18:04]CheckOFDResponse [10:18:04]1017 (14) - 77093643461234 [10:18:04]1041 (16) - 0000000000874881 [10:18:04]1040 (4) - 123158 [10:18:04]1012 (4) - 26.11.2024 04:18 [10:18:04]1206 (1) - 0 [10:18:04]OFD Sender: Remove packet 123158 [10:18:04]ProducePacketName [10:18:04]name=ofd_packets/00123158 [10:18:04]NVStorageDeleteData [10:18:04]Write to MH i2c: 01 00 00 D4 4A 1E [10:18:04]Write i2c OK [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: 01 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: 01 07 00 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: 01 07 00 D4 4A 00 00 00 00 00 49 0C 7A [10:18:04]RasterBufferAndPrint [10:18:04]line [10:18:04]line [10:18:04]line [10:18:04]line [10:18:04]line [10:18:04]written 0, free lines is 3150 [10:18:04]MH_Cut [10:18:04]Write to MH i2c: D1 01 00 DB 4A 01 F7 [10:18:04]Write i2c OK [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: D1 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: D1 01 00 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: D1 01 00 DB 4A 00 F6 [10:18:04]Write to MH i2c: 01 00 00 DC 4A 26 [10:18:04]Write i2c OK [10:18:04]MH_I2C_Read... [10:18:04]OFD Sender: No OFD packet to send [10:18:05]*** Cut start [10:18:05]*** Partial cut [10:18:05]*** CUTSNS_PIN = 1 [10:18:05]*** CUTSNS_PIN = 0 [10:18:06]*** Brake cut motor [10:18:06]Read from MH i2c: 01 [10:18:06]MH_I2C_Read... [10:18:06]*** Stop cut motor [10:18:06]*** Cut end [10:18:06]Read from MH i2c: 01 07 00 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: 01 07 00 DC 4A 00 00 00 00 00 FF 0F 3B [10:18:06]process_action close_receipt done [10:18:06]requested_data is exist [10:18:06]produce_requested_data [10:18:06]requested_item fm.sn is exist - process it [10:18:06]wFMCommunicate request_size=4 [10:18:06]MH_SAM_APDU [10:18:06]CAPDU: 80 11 00 00 [10:18:06]Write to MH i2c: E2 08 00 DD 4A 80 11 00 00 00 00 00 00 A1 [10:18:06]Write i2c OK [10:18:06]MH_I2C_Read... [10:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:06]Read from MH i2c: E2 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 17 00 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 17 00 DD 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F8 [10:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:18:06]wFMCommunicate OK [10:18:06]requested_item fd.num is exist - process it [10:18:06]SAM_PROTO_GetFieldsCounters [10:18:06]wFMCommunicate request_size=4 [10:18:06]MH_SAM_APDU [10:18:06]CAPDU: 80 13 00 00 [10:18:06]Write to MH i2c: E2 08 00 DE 4A 80 13 00 00 00 00 00 00 A4 [10:18:06]Write i2c OK [10:18:06]MH_I2C_Read... [10:18:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:06]Read from MH i2c: E2 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 62 00 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 62 00 DE 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 16 E1 01 00 0E 04 04 00 2D 02 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 15 [10:18:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 16 E1 01 00 0E 04 04 00 2D 02 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 [10:18:06]wFMCommunicate OK [10:18:06]SAM_PROTO_GetFieldsCounters done [10:18:06]requested_item shift.num is exist - process it [10:18:06]requested_item shift.opened is exist - process it [10:18:06]req_shift_opened [10:18:06]FM_GetShiftState [10:18:06]SAM_PROTO_GetShiftState [10:18:06]wFMCommunicate request_size=4 [10:18:06]MH_SAM_APDU [10:18:06]CAPDU: 80 13 01 00 [10:18:06]Write to MH i2c: E2 08 00 DF 4A 80 13 01 00 00 00 00 00 A6 [10:18:06]Write i2c OK [10:18:06]MH_I2C_Read... [10:18:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:06]Read from MH i2c: E2 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 0E 00 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 0E 00 DF 4A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 07 [10:18:06]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:18:06]wFMCommunicate OK [10:18:06]SAM_PROTO_GetShiftState done [10:18:06]FM_GetShiftState done [10:18:06]req_shift_opened done [10:18:06]requested_item shift.open_date is exist - process it [10:18:06]req_shift_open_date [10:18:06]req_shift_open_date done [10:18:06]produce_requested_data done [10:18:06]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123158,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:18:06]process_action_free close_receipt [10:18:06]json_value_free [10:18:06]json_value_free done [10:18:06]process_json_proto returns [10:18:06]Send response to host [10:18:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123158,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:18:06]free response buf [10:18:06]execute_script done [10:18:06]execute_script returns [10:18:06]free content buf [10:18:06]Sock 7.Close socket [10:18:06]Sock 7.Thread stoped [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:18]accept exits with 9 [10:22:18]New connection [10:22:18]New thread 3066580324 created [10:22:18]Thread 3066723684 joined [10:22:18]Waiting for new connection... [10:22:18] Sock 9.Parse request [10:22:18]Sock 9.Check first char [10:22:18]Sock 9.First char is OK [10:22:18]request: POST /json_proto HTTP/1.0 [10:22:18]Method: POST [10:22:18]URL: /json_proto [10:22:18]Method is POST - this is cgi request [10:22:18]url: /json_proto [10:22:18]query_string will be loaded in cgi processing [10:22:18]execute_cgi json_proto POST (null) [10:22:18]execute_cgi path=json_proto method=POST [10:22:18]POST find Content-Length [10:22:18]Host: 172.17.37.4:8080 [10:22:18]Content-Length: 682 [10:22:18]Content-Type: application/json [10:22:18] [10:22:18]POST finish read [10:22:18]Found Content-Length = 682 [10:22:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 35.610, "sum" : 2400.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:18]execute_script... [10:22:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 35.610, "sum" : 2400.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:18]POST & json_proto [10:22:18]process_json_proto [10:22:18]json parsed OK: [10:22:18]protocol is kg_v1.0 [10:22:18]action value=close_receipt [10:22:18]process_action close_receipt [10:22:18]cmd_close_receipt [10:22:18]MH_GetDate [10:22:18]Write to MH i2c: F0 00 00 E0 4A 19 [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: F0 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: F0 09 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: F0 09 00 E0 4A 00 64 A1 45 67 B8 5A 43 67 8F [10:22:18]GetLastDocTimeStamp 1732616292 [10:22:18]current date 1732616548 [10:22:18]FM_GetShiftState [10:22:18]SAM_PROTO_GetShiftState [10:22:18]wFMCommunicate request_size=4 [10:22:18]MH_SAM_APDU [10:22:18]CAPDU: 80 13 01 00 [10:22:18]Write to MH i2c: E2 08 00 E1 4A 80 13 01 00 00 00 00 00 A8 [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:18]Read from MH i2c: E2 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 0E 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 0E 00 E1 4A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 09 [10:22:18]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:22:18]wFMCommunicate OK [10:22:18]SAM_PROTO_GetShiftState done [10:22:18]FM_GetShiftState done [10:22:18]opened in 1732579736 [10:22:18]opened+sec_in_day 1732666136 [10:22:18]quantity*price = 240011 [10:22:18]sum+1 = 240012 [10:22:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 2400.00 Внесено: 2400.00 СДАЧА: 0.00 НСП 1% : 21.24 НДС 12% : 254.88 Наличными: 2400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 13 26.11.2024 10:22 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123159 ФПД: 63510500319265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T102228&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123159&fm=63510500319265&tin=02508201610067®Number=0000000000092681&sum=240000 [10:22:19]StoreToDocumentArchive [10:22:19]shift 557 fd 123159 [10:22:19]save to /storage/0557/doc_00123159 [10:22:19]save last doc name /storage/0557/doc_00123159 to /storage/kkm_last_doc_name [10:22:19]save OK [10:22:19]Clear old archive folders... [10:22:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:19]tlvbuf is B6F20870 [10:22:19]SAM_PROTO_ClearQueue [10:22:19]wFMCommunicate request_size=4 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 09 00 00 [10:22:19]Write to MH i2c: E2 08 00 EE 4A 80 09 00 00 00 00 00 00 AA [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 EE 4A 00 90 00 AC [10:22:19]RAPDU: 90 00 [10:22:19]wFMCommunicate OK [10:22:19]SAM_PROTO_ClearQueue done [10:22:19]KKMCreateOFDPacket [10:22:19]OFDProtocolAddRootSTLVToBuf [10:22:19]FM_MakeSignedData [10:22:19]FM_MakeSignedData [10:22:19]SAM_PROTO_SignData [10:22:19]wFMCommunicate request_size=4 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 0D 01 02 [10:22:19]Write to MH i2c: E2 08 00 EF 4A 80 0D 01 02 00 00 00 00 B2 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 EF 4A 00 90 00 AD [10:22:19]RAPDU: 90 00 [10:22:19]wFMCommunicate OK [10:22:19]wFMCommunicate request_size=255 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1A 8B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8B A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 A9 03 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 64 A1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 17 E1 01 00 35 04 06 00 39 [10:22:19]Write to MH i2c: E2 02 01 F0 4A 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 34 FF 03 08 00 03 1A 8B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8B A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 A9 03 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 64 A1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 17 E1 01 00 35 04 06 00 39 00 00 C8 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 F0 4A 00 90 00 AE [10:22:19]RAPDU: 90 00 [10:22:19]wFMCommunicate OK [10:22:19]wFMCommunicate request_size=10 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 0D 02 02 05 C3 30 CF A0 21 [10:22:19]Write to MH i2c: E2 0D 00 F1 4A 80 0D 02 02 05 00 C3 30 CF A0 21 00 00 42 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 F1 4A 00 90 00 AF [10:22:19]RAPDU: 90 00 [10:22:19]wFMCommunicate OK [10:22:19]wFMCommunicate request_size=4 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 0D 03 02 [10:22:19]Write to MH i2c: E2 08 00 F2 4A 80 0D 03 02 00 00 00 00 B7 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 0B 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 0B 00 F2 4A 00 B6 39 D5 66 72 DA 66 BF 90 00 53 [10:22:19]RAPDU: B6 39 D5 66 72 DA 66 BF 90 00 [10:22:19]wFMCommunicate OK [10:22:19]SAM_PROTO_SignData done [10:22:19]FM_MakeSignedData done [10:22:19]CreateOFDProtocolMessage [10:22:19]wFMCommunicate request_size=4 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 11 00 00 [10:22:19]Write to MH i2c: E2 08 00 F3 4A 80 11 00 00 00 00 00 00 B7 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:20]OFD Sender: No OFD packet to send [10:22:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:20]Read from MH i2c: E2 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: E2 17 00 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: E2 17 00 F3 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0E [10:22:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:22:20]wFMCommunicate OK [10:22:20]CreateOFDProtocolMessage done [10:22:20]OFDSenderStorePacket 123159 [10:22:20]StoreOFDPacket docnum=123159 [10:22:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 A8 52 07 01 ED B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1A 8B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8B A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 A9 03 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 64 A1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 17 E1 01 00 35 04 06 00 39 C3 30 CF A0 21 B6 39 D5 66 72 DA 66 BF [10:22:20]CheckFolder [10:22:20]dirname=/storage/ofd_packets [10:22:20]CheckFolder done [10:22:20]ProducePacketName [10:22:20]name=ofd_packets/00123159 [10:22:20]NVStorageSaveData ofd_packets/00123159 [10:22:20]File name is /storage/ofd_packets/00123159 [10:22:20]Write 301 bytes [10:22:20]NVStorageSaveData done [10:22:20]OFDSenderStorePacket done [10:22:20]KKMCreateOFDPacket done [10:22:20]NVStorageSaveData kkm_last_timestamp [10:22:20]File name is /storage/kkm_last_timestamp [10:22:20]Write 4 bytes [10:22:20]NVStorageSaveData done [10:22:20]ExternCall_PrintAddStr [10:22:20]wPrintStart [10:22:20]Write to MH i2c: 01 00 00 F4 4A 3E [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 07 00 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 07 00 F4 4A 00 00 00 00 00 FF 0F 53 [10:22:20]RasterBufferAndPrint [10:22:20]line Счет N : (1)717995 [10:22:20]line ИНН: 02508201610067 [10:22:20]line Контрольно-Кассовый Чек [10:22:20]line ПРОДАЖА [10:22:20]line ТРК (МРК, ГНК) : 22 [10:22:20]line Товар: 2710124130 [10:22:20]line Аи-92-К-4 [10:22:20]line 35.610 * 67.40 [10:22:20]line = 2400.11 [10:22:20]line НДС 12% НСП 1% [10:22:20]line > о реализуемом товаре [10:22:20]line ОКРУГЛЕНИЕ: -0.11 [10:22:20]line ИТОГО: 2400.00 [10:22:20]line Внесено: 2400.00 [10:22:20]line СДАЧА: 0.00 [10:22:20]line НСП 1% : 21.24 [10:22:20]line НДС 12% : 254.88 [10:22:20]line Наличными: 2400.00 [10:22:20]line Безнал.: 0.00 [10:22:20]line Место: АЗС № 64 "Партнер Нефть" [10:22:20]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:22:20]line СНО: Общий режим [10:22:20]line Чек 13 26.11.2024 10:22 [10:22:20]line Смена: 557 ФФД: 1.0 [10:22:20]line ЗНМ: 0300000033 [10:22:20]line РНМ: 0000000000092681 [10:22:20]line Версия ККМ: 001 [10:22:20]line ФМ: 0000000000874881 [10:22:20]line ФД: 123159 [10:22:20]line ФПД: 63510500319265 [10:22:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T102228&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123159&fm=63510500319265&tin=02508201610067®Number=0000000000092681&sum=240000 [10:22:20]OFD Sender: Processing packet 123159 [packets to send 7, broken 6] [10:22:20]ProducePacketName [10:22:20]name=ofd_packets/00123159 [10:22:20]OFD Sender: To server: pG, [10:22:20]CommunicateWithHost lk.salyk.kg:30040 [10:22:20]ConnectInit lk.salyk.kg [10:22:20]written 0, free lines is 4095 [10:22:20]Connected sock=10 [10:22:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 A8 52 07 01 ED B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1A 8B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8B A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 A9 03 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 64 A1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 17 E1 01 00 35 04 06 00 39 C3 30 CF A0 21 B6 39 D5 66 72 DA 66 BF [10:22:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 33 B4 47 00 2C CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 17 E1 01 00 F4 03 04 00 27 4D 45 67 B6 04 01 00 00 CF 3C D8 BE 57 AB E1 8D [10:22:20]CommunicateWithHost err = 0 [10:22:20]CheckOFDResponse [10:22:20]1017 (14) - 77093643461234 [10:22:20]1041 (16) - 0000000000874881 [10:22:20]1040 (4) - 123159 [10:22:20]1012 (4) - 26.11.2024 04:23 [10:22:20]1206 (1) - 0 [10:22:20]OFD Sender: Remove packet 123159 [10:22:20]ProducePacketName [10:22:20]name=ofd_packets/00123159 [10:22:20]NVStorageDeleteData [10:22:20]Write to MH i2c: 01 00 00 1F 4B 6A [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 07 00 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 07 00 1F 4B 00 00 00 00 00 44 0C C1 [10:22:20]RasterBufferAndPrint [10:22:20]line [10:22:20]line [10:22:20]line [10:22:20]line [10:22:20]line [10:22:20]written 0, free lines is 3145 [10:22:20]MH_Cut [10:22:20]Write to MH i2c: D1 01 00 26 4B 01 43 [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: D1 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: D1 01 00 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: D1 01 00 26 4B 00 42 [10:22:20]Write to MH i2c: 01 00 00 27 4B 72 [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:21]OFD Sender: No OFD packet to send [10:22:22]*** Cut start [10:22:22]*** Partial cut [10:22:22]*** CUTSNS_PIN = 1 [10:22:22]*** CUTSNS_PIN = 0 [10:22:22]*** Brake cut motor [10:22:22]Read from MH i2c: 01 [10:22:22]MH_I2C_Read... [10:22:22]*** Stop cut motor [10:22:22]*** Cut end [10:22:22]Read from MH i2c: 01 07 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: 01 07 00 27 4B 00 00 00 00 00 FF 0F 87 [10:22:22]process_action close_receipt done [10:22:22]requested_data is exist [10:22:22]produce_requested_data [10:22:22]requested_item fm.sn is exist - process it [10:22:22]wFMCommunicate request_size=4 [10:22:22]MH_SAM_APDU [10:22:22]CAPDU: 80 11 00 00 [10:22:22]Write to MH i2c: E2 08 00 28 4B 80 11 00 00 00 00 00 00 ED [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:22]Read from MH i2c: E2 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 17 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 17 00 28 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 44 [10:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:22:22]wFMCommunicate OK [10:22:22]requested_item fd.num is exist - process it [10:22:22]SAM_PROTO_GetFieldsCounters [10:22:22]wFMCommunicate request_size=4 [10:22:22]MH_SAM_APDU [10:22:22]CAPDU: 80 13 00 00 [10:22:22]Write to MH i2c: E2 08 00 29 4B 80 13 00 00 00 00 00 00 F0 [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:23]Read from MH i2c: E2 [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: E2 62 00 [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: E2 62 00 29 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 17 E1 01 00 0E 04 04 00 2D 02 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 65 [10:22:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 17 E1 01 00 0E 04 04 00 2D 02 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 [10:22:23]wFMCommunicate OK [10:22:23]SAM_PROTO_GetFieldsCounters done [10:22:23]requested_item shift.num is exist - process it [10:22:23]requested_item shift.opened is exist - process it [10:22:23]req_shift_opened [10:22:23]FM_GetShiftState [10:22:23]SAM_PROTO_GetShiftState [10:22:23]wFMCommunicate request_size=4 [10:22:23]MH_SAM_APDU [10:22:23]CAPDU: 80 13 01 00 [10:22:23]Write to MH i2c: E2 08 00 2A 4B 80 13 01 00 00 00 00 00 F2 [10:22:23]Write i2c OK [10:22:23]MH_I2C_Read... [10:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:23]Read from MH i2c: E2 [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: E2 0E 00 [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: E2 0E 00 2A 4B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 53 [10:22:23]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:22:23]wFMCommunicate OK [10:22:23]SAM_PROTO_GetShiftState done [10:22:23]FM_GetShiftState done [10:22:23]req_shift_opened done [10:22:23]requested_item shift.open_date is exist - process it [10:22:23]req_shift_open_date [10:22:23]req_shift_open_date done [10:22:23]produce_requested_data done [10:22:23]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123159,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:22:23]process_action_free close_receipt [10:22:23]json_value_free [10:22:23]json_value_free done [10:22:23]process_json_proto returns [10:22:23]Send response to host [10:22:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123159,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:22:23]free response buf [10:22:23]execute_script done [10:22:23]execute_script returns [10:22:23]free content buf [10:22:23]Sock 9.Close socket [10:22:23]Sock 9.Thread stoped [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:51]accept exits with 7 [10:23:51]New connection [10:23:51]New thread 3066723684 created [10:23:51]Thread 3066580324 joined [10:23:51]Waiting for new connection... [10:23:51] Sock 7.Parse request [10:23:51]Sock 7.Check first char [10:23:51]Sock 7.First char is OK [10:23:51]request: POST /json_proto HTTP/1.0 [10:23:51]Method: POST [10:23:51]URL: /json_proto [10:23:51]Method is POST - this is cgi request [10:23:51]url: /json_proto [10:23:51]query_string will be loaded in cgi processing [10:23:51]execute_cgi json_proto POST (null) [10:23:51]execute_cgi path=json_proto method=POST [10:23:51]POST find Content-Length [10:23:51]Host: 172.17.37.4:8080 [10:23:51]Content-Length: 739 [10:23:51]Content-Type: application/json [10:23:51] [10:23:51]POST finish read [10:23:51]Found Content-Length = 739 [10:23:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123159, "base_FM": "0000000000874881", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 35.610, "sum" : 2400.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:51]execute_script... [10:23:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123159, "base_FM": "0000000000874881", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 35.610, "sum" : 2400.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:51]POST & json_proto [10:23:51]process_json_proto [10:23:51]json parsed OK: [10:23:51]protocol is kg_v1.0 [10:23:51]action value=close_receipt [10:23:51]process_action close_receipt [10:23:51]cmd_close_receipt [10:23:51]MH_GetDate [10:23:51]Write to MH i2c: F0 00 00 2B 4B 65 [10:23:51]Write i2c OK [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: F0 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: F0 09 00 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: F0 09 00 2B 4B 00 C1 A1 45 67 B8 5A 43 67 38 [10:23:51]GetLastDocTimeStamp 1732616548 [10:23:51]current date 1732616641 [10:23:51]FM_GetShiftState [10:23:51]SAM_PROTO_GetShiftState [10:23:51]wFMCommunicate request_size=4 [10:23:51]MH_SAM_APDU [10:23:51]CAPDU: 80 13 01 00 [10:23:51]Write to MH i2c: E2 08 00 2C 4B 80 13 01 00 00 00 00 00 F4 [10:23:51]Write i2c OK [10:23:51]MH_I2C_Read... [10:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:51]Read from MH i2c: E2 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 0E 00 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: E2 0E 00 2C 4B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 55 [10:23:51]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:23:51]wFMCommunicate OK [10:23:51]SAM_PROTO_GetShiftState done [10:23:51]FM_GetShiftState done [10:23:51]opened in 1732579736 [10:23:51]opened+sec_in_day 1732666136 [10:23:51]quantity*price = 240011 [10:23:51]sum+1 = 240012 [10:23:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 2400.00 НСП 1% : 21.24 НДС 12% : 254.88 Наличными: 2400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 14 26.11.2024 10:24 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФД осн.: 123159 ФМ осн.: 0000000000874881 ФМ: 0000000000874881 ФД: 123160 ФПД: 173019408775082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T102401&type=2&operation_type=1&fn_number=0000000000874881&fd_number=123160&fm=173019408775082&tin=02508201610067®Number=0000000000092681&sum=240000 [10:23:52]StoreToDocumentArchive [10:23:52]shift 557 fd 123160 [10:23:52]save to /storage/0557/doc_00123160 [10:23:52]save last doc name /storage/0557/doc_00123160 to /storage/kkm_last_doc_name [10:23:52]save OK [10:23:52]Clear old archive folders... [10:23:52]ProcessDocumentItem done err = 0, tmpTLVsize=279 [10:23:52]tlvbuf is 01F4DCC0 [10:23:52]SAM_PROTO_ClearQueue [10:23:52]wFMCommunicate request_size=4 [10:23:52]MH_SAM_APDU [10:23:52]CAPDU: 80 09 00 00 [10:23:52]Write to MH i2c: E2 08 00 3B 4B 80 09 00 00 00 00 00 00 F8 [10:23:52]Write i2c OK [10:23:52]MH_I2C_Read... [10:23:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:52]Read from MH i2c: E2 [10:23:52]MH_I2C_Read... [10:23:52]Read from MH i2c: E2 03 00 [10:23:52]MH_I2C_Read... [10:23:52]Read from MH i2c: E2 03 00 3B 4B 00 90 00 FA [10:23:52]RAPDU: 90 00 [10:23:52]wFMCommunicate OK [10:23:52]SAM_PROTO_ClearQueue done [10:23:52]KKMCreateOFDPacket [10:23:52]OFDProtocolAddRootSTLVToBuf [10:23:52]FM_MakeSignedData [10:23:52]FM_MakeSignedData [10:23:52]SAM_PROTO_SignData [10:23:52]wFMCommunicate request_size=4 [10:23:52]MH_SAM_APDU [10:23:52]CAPDU: 80 0D 01 02 [10:23:52]Write to MH i2c: E2 08 00 3C 4B 80 0D 01 02 00 00 00 00 00 [10:23:52]Write i2c OK [10:23:52]MH_I2C_Read... [10:23:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:52]Read from MH i2c: E2 [10:23:52]MH_I2C_Read... [10:23:52]Read from MH i2c: E2 03 00 [10:23:52]MH_I2C_Read... [10:23:52]Read from MH i2c: E2 03 00 3C 4B 00 90 00 FB [10:23:52]RAPDU: 90 00 [10:23:52]wFMCommunicate OK [10:23:52]wFMCommunicate request_size=255 [10:23:52]MH_SAM_APDU [10:23:52]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1A 8B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8B A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 A9 03 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 C1 A1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 17 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 [10:23:52]Write to MH i2c: E2 02 01 3D 4B 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1A 8B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8B A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 A9 03 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 C1 A1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 17 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 00 00 9D [10:23:52]Write i2c OK [10:23:52]MH_I2C_Read... [10:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:53]Read from MH i2c: E2 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 03 00 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 03 00 3D 4B 00 90 00 FC [10:23:53]RAPDU: 90 00 [10:23:53]wFMCommunicate OK [10:23:53]wFMCommunicate request_size=38 [10:23:53]MH_SAM_APDU [10:23:53]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 18 E1 01 00 35 04 06 00 9D 5C 38 66 37 AA [10:23:53]Write to MH i2c: E2 29 00 3E 4B 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 18 E1 01 00 35 04 06 00 9D 5C 38 66 37 AA 00 00 02 [10:23:53]Write i2c OK [10:23:53]MH_I2C_Read... [10:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:53]Read from MH i2c: E2 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 03 00 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 03 00 3E 4B 00 90 00 FD [10:23:53]RAPDU: 90 00 [10:23:53]wFMCommunicate OK [10:23:53]wFMCommunicate request_size=4 [10:23:53]MH_SAM_APDU [10:23:53]CAPDU: 80 0D 03 02 [10:23:53]Write to MH i2c: E2 08 00 3F 4B 80 0D 03 02 00 00 00 00 05 [10:23:53]Write i2c OK [10:23:53]MH_I2C_Read... [10:23:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:53]Read from MH i2c: E2 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 0B 00 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 0B 00 3F 4B 00 FC AC 78 AD 15 E2 2D B5 90 00 AC [10:23:53]RAPDU: FC AC 78 AD 15 E2 2D B5 90 00 [10:23:53]wFMCommunicate OK [10:23:53]SAM_PROTO_SignData done [10:23:53]FM_MakeSignedData done [10:23:53]CreateOFDProtocolMessage [10:23:53]wFMCommunicate request_size=4 [10:23:53]MH_SAM_APDU [10:23:53]CAPDU: 80 11 00 00 [10:23:53]Write to MH i2c: E2 08 00 40 4B 80 11 00 00 00 00 00 00 05 [10:23:53]Write i2c OK [10:23:53]MH_I2C_Read... [10:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:53]Read from MH i2c: E2 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 17 00 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 17 00 40 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5C [10:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:23:53]wFMCommunicate OK [10:23:53]CreateOFDProtocolMessage done [10:23:53]OFDSenderStorePacket 123160 [10:23:53]StoreOFDPacket docnum=123160 [10:23:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 2B 01 00 00 BE D8 23 01 42 CB 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1A 8B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8B A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 A9 03 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 C1 A1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 17 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 18 E1 01 00 35 04 06 00 9D 5C 38 66 37 AA FC AC 78 AD 15 E2 2D B5 [10:23:53]CheckFolder [10:23:53]dirname=/storage/ofd_packets [10:23:53]CheckFolder done [10:23:53]ProducePacketName [10:23:53]name=ofd_packets/00123160 [10:23:53]NVStorageSaveData ofd_packets/00123160 [10:23:53]File name is /storage/ofd_packets/00123160 [10:23:53]Write 329 bytes [10:23:53]NVStorageSaveData done [10:23:53]OFDSenderStorePacket done [10:23:53]KKMCreateOFDPacket done [10:23:53]NVStorageSaveData kkm_last_timestamp [10:23:53]File name is /storage/kkm_last_timestamp [10:23:53]Write 4 bytes [10:23:53]NVStorageSaveData done [10:23:53]ExternCall_PrintAddStr [10:23:53]wPrintStart [10:23:53]Write to MH i2c: 01 00 00 41 4B 8C [10:23:53]Write i2c OK [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: 01 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: 01 07 00 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: 01 07 00 41 4B 00 00 00 00 00 FF 0F A1 [10:23:53]RasterBufferAndPrint [10:23:53]line Счет N : (1)717995 [10:23:53]line ИНН: 02508201610067 [10:23:53]line Контрольно-Кассовый Чек [10:23:53]line ВОЗВРАТ ПРОДАЖИ [10:23:53]line ТРК (МРК, ГНК) : 22 [10:23:53]line Товар: 2710124130 [10:23:53]line Аи-92-К-4 [10:23:53]line 35.610 * 67.40 [10:23:53]line = 2400.11 [10:23:53]line НДС 12% НСП 1% [10:23:53]line > о реализуемом товаре [10:23:53]line ОКРУГЛЕНИЕ: -0.11 [10:23:53]line ИТОГО: 2400.00 [10:23:53]line НСП 1% : 21.24 [10:23:53]line НДС 12% : 254.88 [10:23:53]line Наличными: 2400.00 [10:23:53]line Безнал.: 0.00 [10:23:53]line Место: АЗС № 64 "Партнер Нефть" [10:23:53]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:23:53]line СНО: Общий режим [10:23:53]line Чек 14 26.11.2024 10:24 [10:23:53]line Смена: 557 ФФД: 1.0 [10:23:53]line ЗНМ: 0300000033 [10:23:53]line РНМ: 0000000000092681 [10:23:53]line Версия ККМ: 001 [10:23:53]line ФД осн.: 123159 [10:23:53]line ФМ осн.: 0000000000874881 [10:23:53]line ФМ: 0000000000874881 [10:23:53]line ФД: 123160 [10:23:53]line ФПД: 173019408775082 [10:23:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T102401&type=2&operation_type=1&fn_number=0000000000874881&fd_number=123160&fm=173019408775082&tin=02508201610067®Number=0000000000092681&sum=240000 [10:23:53]OFD Sender: Processing packet 123160 [packets to send 7, broken 6] [10:23:53]ProducePacketName [10:23:53]name=ofd_packets/00123160 [10:23:53]OFD Sender: To server: pG, [10:23:53]CommunicateWithHost lk.salyk.kg:30040 [10:23:53]ConnectInit lk.salyk.kg [10:23:53]written 0, free lines is 4095 [10:23:54]Write to MH i2c: 01 00 00 6C 4B B7 [10:23:54]Write i2c OK [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: 01 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: 01 07 00 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: 01 07 00 6C 4B 00 00 00 00 00 49 0C 13 [10:23:54]RasterBufferAndPrint [10:23:54]line [10:23:54]line [10:23:54]line [10:23:54]line [10:23:54]line [10:23:54]written 0, free lines is 3148 [10:23:54]MH_Cut [10:23:54]Write to MH i2c: D1 01 00 73 4B 01 90 [10:23:54]Write i2c OK [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: D1 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: D1 01 00 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: D1 01 00 73 4B 00 8F [10:23:54]Write to MH i2c: 01 00 00 74 4B BF [10:23:54]Write i2c OK [10:23:54]MH_I2C_Read... [10:23:55]*** Cut start [10:23:55]*** Partial cut [10:23:55]*** CUTSNS_PIN = 1 [10:23:55]*** CUTSNS_PIN = 0 [10:23:55]*** Brake cut motor [10:23:56]Read from MH i2c: 01 [10:23:56]MH_I2C_Read... [10:23:56]*** Stop cut motor [10:23:56]*** Cut end [10:23:56]Read from MH i2c: 01 07 00 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: 01 07 00 74 4B 00 00 00 00 00 FF 0F D4 [10:23:56]process_action close_receipt done [10:23:56]requested_data is exist [10:23:56]produce_requested_data [10:23:56]requested_item fm.sn is exist - process it [10:23:56]wFMCommunicate request_size=4 [10:23:56]MH_SAM_APDU [10:23:56]CAPDU: 80 11 00 00 [10:23:56]Write to MH i2c: E2 08 00 75 4B 80 11 00 00 00 00 00 00 3A [10:23:56]Write i2c OK [10:23:56]MH_I2C_Read... [10:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:56]Read from MH i2c: E2 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: E2 17 00 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: E2 17 00 75 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 91 [10:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:23:56]wFMCommunicate OK [10:23:56]requested_item fd.num is exist - process it [10:23:56]SAM_PROTO_GetFieldsCounters [10:23:56]wFMCommunicate request_size=4 [10:23:56]MH_SAM_APDU [10:23:56]CAPDU: 80 13 00 00 [10:23:56]Write to MH i2c: E2 08 00 76 4B 80 13 00 00 00 00 00 00 3D [10:23:56]Write i2c OK [10:23:56]MH_I2C_Read... [10:23:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:56]Read from MH i2c: E2 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: E2 62 00 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: E2 62 00 76 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 18 E1 01 00 0E 04 04 00 2D 02 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 B6 [10:23:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 18 E1 01 00 0E 04 04 00 2D 02 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:23:56]wFMCommunicate OK [10:23:56]SAM_PROTO_GetFieldsCounters done [10:23:56]requested_item shift.num is exist - process it [10:23:56]requested_item shift.opened is exist - process it [10:23:56]req_shift_opened [10:23:56]FM_GetShiftState [10:23:56]SAM_PROTO_GetShiftState [10:23:56]wFMCommunicate request_size=4 [10:23:56]MH_SAM_APDU [10:23:56]CAPDU: 80 13 01 00 [10:23:56]Write to MH i2c: E2 08 00 77 4B 80 13 01 00 00 00 00 00 3F [10:23:56]Write i2c OK [10:23:56]MH_I2C_Read... [10:23:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:56]Read from MH i2c: E2 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: E2 0E 00 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: E2 0E 00 77 4B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 A0 [10:23:56]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:23:56]wFMCommunicate OK [10:23:56]SAM_PROTO_GetShiftState done [10:23:56]FM_GetShiftState done [10:23:56]req_shift_opened done [10:23:56]requested_item shift.open_date is exist - process it [10:23:56]req_shift_open_date [10:23:56]req_shift_open_date done [10:23:56]produce_requested_data done [10:23:56]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123160,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:23:56]process_action_free close_receipt [10:23:56]json_value_free [10:23:56]json_value_free done [10:23:56]process_json_proto returns [10:23:56]Send response to host [10:23:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123160,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:23:56]free response buf [10:23:56]execute_script done [10:23:56]execute_script returns [10:23:56]free content buf [10:23:56]Sock 7.Close socket [10:23:56]Sock 7.Thread stoped [10:23:56]accept exits with 9 [10:23:56]New connection [10:23:56]New thread 3066580324 created [10:23:56]Thread 3066723684 joined [10:23:56]Waiting for new connection... [10:23:56] Sock 9.Parse request [10:23:56]Sock 9.Check first char [10:23:56]Sock 9.First char is OK [10:23:56]request: POST /json_proto HTTP/1.0 [10:23:56]Method: POST [10:23:56]URL: /json_proto [10:23:56]Method is POST - this is cgi request [10:23:56]url: /json_proto [10:23:56]query_string will be loaded in cgi processing [10:23:56]execute_cgi json_proto POST (null) [10:23:56]execute_cgi path=json_proto method=POST [10:23:56]POST find Content-Length [10:23:56]Host: 172.17.37.4:8080 [10:23:56]Content-Length: 682 [10:23:56]Content-Type: application/json [10:23:56] [10:23:56]POST finish read [10:23:56]Found Content-Length = 682 [10:23:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 23.000, "sum" : 1550.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 1550.00, "payments": [ { "type": 0, "sum" : 1550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:56]execute_script... [10:23:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 23.000, "sum" : 1550.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 1550.00, "payments": [ { "type": 0, "sum" : 1550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:56]POST & json_proto [10:23:56]process_json_proto [10:23:56]json parsed OK: [10:23:56]protocol is kg_v1.0 [10:23:56]action value=close_receipt [10:23:56]process_action close_receipt [10:23:56]cmd_close_receipt [10:23:56]MH_GetDate [10:23:56]Write to MH i2c: F0 00 00 78 4B B2 [10:23:56]Write i2c OK [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: F0 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: F0 09 00 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: F0 09 00 78 4B 00 C6 A1 45 67 B8 5A 43 67 8A [10:23:56]GetLastDocTimeStamp 1732616641 [10:23:56]current date 1732616646 [10:23:56]FM_GetShiftState [10:23:56]SAM_PROTO_GetShiftState [10:23:56]wFMCommunicate request_size=4 [10:23:56]MH_SAM_APDU [10:23:56]CAPDU: 80 13 01 00 [10:23:56]Write to MH i2c: E2 08 00 79 4B 80 13 01 00 00 00 00 00 41 [10:23:56]Write i2c OK [10:23:56]MH_I2C_Read... [10:23:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:56]Read from MH i2c: E2 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: E2 0E 00 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: E2 0E 00 79 4B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 A2 [10:23:56]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:23:56]wFMCommunicate OK [10:23:56]SAM_PROTO_GetShiftState done [10:23:56]FM_GetShiftState done [10:23:56]opened in 1732579736 [10:23:56]opened+sec_in_day 1732666136 [10:23:56]quantity*price = 155020 [10:23:56]sum+1 = 155021 [10:23:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1550.00 Внесено: 2400.00 СДАЧА: 850.00 НСП 1% : 13.72 НДС 12% : 164.62 Наличными: 1550.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 15 26.11.2024 10:24 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123161 ФПД: 222736140218814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T102406&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123161&fm=222736140218814&tin=02508201610067®Number=0000000000092681&sum=155000 [10:23:58]StoreToDocumentArchive [10:23:58]shift 557 fd 123161 [10:23:58]save to /storage/0557/doc_00123161 [10:23:58]save last doc name /storage/0557/doc_00123161 to /storage/kkm_last_doc_name [10:23:58]save OK [10:23:58]Clear old archive folders... [10:23:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:58]tlvbuf is 02071AA0 [10:23:58]SAM_PROTO_ClearQueue [10:23:58]wFMCommunicate request_size=4 [10:23:58]MH_SAM_APDU [10:23:58]CAPDU: 80 09 00 00 [10:23:58]Write to MH i2c: E2 08 00 86 4B 80 09 00 00 00 00 00 00 43 [10:23:58]Write i2c OK [10:23:58]MH_I2C_Read... [10:23:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:58]Read from MH i2c: E2 [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: E2 03 00 [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: E2 03 00 86 4B 00 90 00 45 [10:23:58]RAPDU: 90 00 [10:23:58]wFMCommunicate OK [10:23:58]SAM_PROTO_ClearQueue done [10:23:58]KKMCreateOFDPacket [10:23:58]OFDProtocolAddRootSTLVToBuf [10:23:58]FM_MakeSignedData [10:23:58]FM_MakeSignedData [10:23:58]SAM_PROTO_SignData [10:23:58]wFMCommunicate request_size=4 [10:23:58]MH_SAM_APDU [10:23:58]CAPDU: 80 0D 01 02 [10:23:58]Write to MH i2c: E2 08 00 87 4B 80 0D 01 02 00 00 00 00 4B [10:23:58]Write i2c OK [10:23:58]MH_I2C_Read... [10:23:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:58]Read from MH i2c: E2 [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: E2 03 00 [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: E2 03 00 87 4B 00 90 00 46 [10:23:58]RAPDU: 90 00 [10:23:58]wFMCommunicate OK [10:23:58]wFMCommunicate request_size=255 [10:23:58]MH_SAM_APDU [10:23:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D8 59 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8C 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 40 00 00 00 00 07 04 06 00 78 5D 02 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 C6 A1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 19 E1 01 00 35 04 06 00 CA [10:23:58]Write to MH i2c: E2 02 01 88 4B 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 34 FF 03 08 00 03 D8 59 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8C 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 40 00 00 00 00 07 04 06 00 78 5D 02 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 C6 A1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 19 E1 01 00 35 04 06 00 CA 00 00 96 [10:23:58]Write i2c OK [10:23:58]MH_I2C_Read... [10:23:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:58]Read from MH i2c: E2 [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: E2 03 00 [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: E2 03 00 88 4B 00 90 00 47 [10:23:58]RAPDU: 90 00 [10:23:58]wFMCommunicate OK [10:23:58]wFMCommunicate request_size=10 [10:23:58]MH_SAM_APDU [10:23:58]CAPDU: 80 0D 02 02 05 93 CC 84 31 BE [10:23:58]Write to MH i2c: E2 0D 00 89 4B 80 0D 02 02 05 00 93 CC 84 31 BE 00 00 2A [10:23:58]Write i2c OK [10:23:58]MH_I2C_Read... [10:23:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:58]Read from MH i2c: E2 [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: E2 03 00 [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: E2 03 00 89 4B 00 90 00 48 [10:23:58]RAPDU: 90 00 [10:23:58]wFMCommunicate OK [10:23:58]wFMCommunicate request_size=4 [10:23:58]MH_SAM_APDU [10:23:58]CAPDU: 80 0D 03 02 [10:23:58]Write to MH i2c: E2 08 00 8A 4B 80 0D 03 02 00 00 00 00 50 [10:23:58]Write i2c OK [10:23:58]MH_I2C_Read... [10:23:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:58]Read from MH i2c: E2 [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: E2 0B 00 [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: E2 0B 00 8A 4B 00 B2 74 71 24 EA D9 F4 8B 90 00 4E [10:23:58]RAPDU: B2 74 71 24 EA D9 F4 8B 90 00 [10:23:58]wFMCommunicate OK [10:23:58]SAM_PROTO_SignData done [10:23:58]FM_MakeSignedData done [10:23:58]CreateOFDProtocolMessage [10:23:58]wFMCommunicate request_size=4 [10:23:58]MH_SAM_APDU [10:23:58]CAPDU: 80 11 00 00 [10:23:58]Write to MH i2c: E2 08 00 8B 4B 80 11 00 00 00 00 00 00 50 [10:23:58]Write i2c OK [10:23:58]MH_I2C_Read... [10:23:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:58]Read from MH i2c: E2 [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: E2 17 00 [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: E2 17 00 8B 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A7 [10:23:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:23:58]wFMCommunicate OK [10:23:58]CreateOFDProtocolMessage done [10:23:58]OFDSenderStorePacket 123161 [10:23:58]StoreOFDPacket docnum=123161 [10:23:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 68 F7 07 01 60 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D8 59 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8C 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 40 00 00 00 00 07 04 06 00 78 5D 02 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 C6 A1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 19 E1 01 00 35 04 06 00 CA 93 CC 84 31 BE B2 74 71 24 EA D9 F4 8B [10:23:58]CheckFolder [10:23:58]dirname=/storage/ofd_packets [10:23:58]CheckFolder done [10:23:58]ProducePacketName [10:23:58]name=ofd_packets/00123161 [10:23:58]NVStorageSaveData ofd_packets/00123161 [10:23:58]File name is /storage/ofd_packets/00123161 [10:23:58]Write 301 bytes [10:23:58]NVStorageSaveData done [10:23:58]OFDSenderStorePacket done [10:23:58]KKMCreateOFDPacket done [10:23:58]NVStorageSaveData kkm_last_timestamp [10:23:58]File name is /storage/kkm_last_timestamp [10:23:58]Write 4 bytes [10:23:58]NVStorageSaveData done [10:23:58]ExternCall_PrintAddStr [10:23:58]wPrintStart [10:23:58]Write to MH i2c: 01 00 00 8C 4B D7 [10:23:58]Write i2c OK [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: 01 [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: 01 07 00 [10:23:58]MH_I2C_Read... [10:23:58]Read from MH i2c: 01 07 00 8C 4B 00 00 00 00 00 FF 0F EC [10:23:58]RasterBufferAndPrint [10:23:58]line Счет N : (1)717995 [10:23:58]line ИНН: 02508201610067 [10:23:58]line Контрольно-Кассовый Чек [10:23:58]line ПРОДАЖА [10:23:58]line ТРК (МРК, ГНК) : 22 [10:23:58]line Товар: 2710124130 [10:23:58]line Аи-92-К-4 [10:23:58]line 23.000 * 67.40 [10:23:58]line = 1550.20 [10:23:58]line НДС 12% НСП 1% [10:23:58]line > о реализуемом товаре [10:23:58]line ОКРУГЛЕНИЕ: -0.20 [10:23:59]line ИТОГО: 1550.00 [10:23:59]line Внесено: 2400.00 [10:23:59]line СДАЧА: 850.00 [10:23:59]line НСП 1% : 13.72 [10:23:59]line НДС 12% : 164.62 [10:23:59]line Наличными: 1550.00 [10:23:59]line Безнал.: 0.00 [10:23:59]line Место: АЗС № 64 "Партнер Нефть" [10:23:59]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:23:59]line СНО: Общий режим [10:23:59]line Чек 15 26.11.2024 10:24 [10:23:59]line Смена: 557 ФФД: 1.0 [10:23:59]line ЗНМ: 0300000033 [10:23:59]line РНМ: 0000000000092681 [10:23:59]line Версия ККМ: 001 [10:23:59]line ФМ: 0000000000874881 [10:23:59]line ФД: 123161 [10:23:59]line ФПД: 222736140218814 [10:23:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T102406&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123161&fm=222736140218814&tin=02508201610067®Number=0000000000092681&sum=155000 [10:23:59]written 0, free lines is 4095 [10:23:59]Write to MH i2c: 01 00 00 B7 4B 02 [10:23:59]Write i2c OK [10:23:59]MH_I2C_Read... [10:23:59]Read from MH i2c: 01 [10:23:59]MH_I2C_Read... [10:23:59]Read from MH i2c: 01 07 00 [10:23:59]MH_I2C_Read... [10:23:59]Read from MH i2c: 01 07 00 B7 4B 00 00 00 00 00 52 0C 67 [10:23:59]RasterBufferAndPrint [10:23:59]line [10:23:59]line [10:23:59]line [10:23:59]line [10:23:59]line [10:23:59]written 0, free lines is 3159 [10:23:59]MH_Cut [10:23:59]Write to MH i2c: D1 01 00 BE 4B 01 DB [10:23:59]Write i2c OK [10:23:59]MH_I2C_Read... [10:23:59]Read from MH i2c: D1 [10:23:59]MH_I2C_Read... [10:23:59]Read from MH i2c: D1 01 00 [10:23:59]MH_I2C_Read... [10:23:59]Read from MH i2c: D1 01 00 BE 4B 00 DA [10:23:59]Write to MH i2c: 01 00 00 BF 4B 0A [10:23:59]Write i2c OK [10:23:59]MH_I2C_Read... [10:24:00]*** Cut start [10:24:00]*** Partial cut [10:24:00]*** CUTSNS_PIN = 1 [10:24:00]*** CUTSNS_PIN = 0 [10:24:01]*** Brake cut motor [10:24:01]Read from MH i2c: 01 [10:24:01]MH_I2C_Read... [10:24:01]*** Stop cut motor [10:24:01]*** Cut end [10:24:01]Read from MH i2c: 01 07 00 [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: 01 07 00 BF 4B 00 00 00 00 00 FF 0F 1F [10:24:01]process_action close_receipt done [10:24:01]requested_data is exist [10:24:01]produce_requested_data [10:24:01]requested_item fm.sn is exist - process it [10:24:01]wFMCommunicate request_size=4 [10:24:01]MH_SAM_APDU [10:24:01]CAPDU: 80 11 00 00 [10:24:01]Write to MH i2c: E2 08 00 C0 4B 80 11 00 00 00 00 00 00 85 [10:24:01]Write i2c OK [10:24:01]MH_I2C_Read... [10:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:01]Read from MH i2c: E2 [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: E2 17 00 [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: E2 17 00 C0 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DC [10:24:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:24:01]wFMCommunicate OK [10:24:01]requested_item fd.num is exist - process it [10:24:01]SAM_PROTO_GetFieldsCounters [10:24:01]wFMCommunicate request_size=4 [10:24:01]MH_SAM_APDU [10:24:01]CAPDU: 80 13 00 00 [10:24:01]Write to MH i2c: E2 08 00 C1 4B 80 13 00 00 00 00 00 00 88 [10:24:01]Write i2c OK [10:24:01]MH_I2C_Read... [10:24:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:01]Read from MH i2c: E2 [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: E2 62 00 [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: E2 62 00 C1 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 19 E1 01 00 0E 04 04 00 2D 02 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 05 [10:24:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 19 E1 01 00 0E 04 04 00 2D 02 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:24:01]wFMCommunicate OK [10:24:01]SAM_PROTO_GetFieldsCounters done [10:24:01]requested_item shift.num is exist - process it [10:24:01]requested_item shift.opened is exist - process it [10:24:01]req_shift_opened [10:24:01]FM_GetShiftState [10:24:01]SAM_PROTO_GetShiftState [10:24:01]wFMCommunicate request_size=4 [10:24:01]MH_SAM_APDU [10:24:01]CAPDU: 80 13 01 00 [10:24:01]Write to MH i2c: E2 08 00 C2 4B 80 13 01 00 00 00 00 00 8A [10:24:01]Write i2c OK [10:24:01]MH_I2C_Read... [10:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:01]Read from MH i2c: E2 [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: E2 0E 00 [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: E2 0E 00 C2 4B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 EB [10:24:01]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:24:01]wFMCommunicate OK [10:24:01]SAM_PROTO_GetShiftState done [10:24:01]FM_GetShiftState done [10:24:01]req_shift_opened done [10:24:01]requested_item shift.open_date is exist - process it [10:24:01]req_shift_open_date [10:24:01]req_shift_open_date done [10:24:01]produce_requested_data done [10:24:01]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123161,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:24:01]process_action_free close_receipt [10:24:01]json_value_free [10:24:01]json_value_free done [10:24:01]process_json_proto returns [10:24:01]Send response to host [10:24:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123161,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:24:01]free response buf [10:24:01]execute_script done [10:24:01]execute_script returns [10:24:01]free content buf [10:24:01]Sock 9.Close socket [10:24:01]Sock 9.Thread stoped [10:26:05]ConnectInit Can't connect to host [10:26:05]CommunicateWithHost connect error [10:26:05]CommunicateWithHost err = -1 [10:26:05]OFD Sender: Server communicate error [10:26:06]OFD Sender: Processing packet 123160 [packets to send 8, broken 6] [10:26:06]ProducePacketName [10:26:06]name=ofd_packets/00123160 [10:26:06]OFD Sender: To server: pG, [10:26:06]CommunicateWithHost lk.salyk.kg:30040 [10:26:06]ConnectInit lk.salyk.kg [10:26:06]Connected sock=9 [10:26:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 2B 01 00 00 BE D8 23 01 42 CB 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1A 8B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8B A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 A9 03 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 C1 A1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 17 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 18 E1 01 00 35 04 06 00 9D 5C 38 66 37 AA FC AC 78 AD 15 E2 2D B5 [10:26:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 A7 B3 47 00 E5 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 18 E1 01 00 F4 03 04 00 08 4E 45 67 B6 04 01 00 00 4A E3 CF DD 48 EA BF 63 [10:26:06]CommunicateWithHost err = 0 [10:26:06]CheckOFDResponse [10:26:06]1017 (14) - 77093643461234 [10:26:06]1041 (16) - 0000000000874881 [10:26:06]1040 (4) - 123160 [10:26:06]1012 (4) - 26.11.2024 04:26 [10:26:06]1206 (1) - 0 [10:26:06]OFD Sender: Remove packet 123160 [10:26:06]ProducePacketName [10:26:06]name=ofd_packets/00123160 [10:26:06]NVStorageDeleteData [10:26:06]OFD Sender: Processing packet 123161 [packets to send 7, broken 6] [10:26:06]ProducePacketName [10:26:06]name=ofd_packets/00123161 [10:26:06]OFD Sender: To server: pG, [10:26:06]CommunicateWithHost lk.salyk.kg:30040 [10:26:06]ConnectInit lk.salyk.kg [10:26:06]Connected sock=9 [10:26:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 68 F7 07 01 60 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D8 59 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8C 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 40 00 00 00 00 07 04 06 00 78 5D 02 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 C6 A1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 19 E1 01 00 35 04 06 00 CA 93 CC 84 31 BE B2 74 71 24 EA D9 F4 8B [10:26:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 E2 E8 47 00 4F 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 19 E1 01 00 F4 03 04 00 09 4E 45 67 B6 04 01 00 00 8A 60 68 97 59 A2 BE DF [10:26:07]CommunicateWithHost err = 0 [10:26:07]CheckOFDResponse [10:26:07]1017 (14) - 77093643461234 [10:26:07]1041 (16) - 0000000000874881 [10:26:07]1040 (4) - 123161 [10:26:07]1012 (4) - 26.11.2024 04:26 [10:26:07]1206 (1) - 0 [10:26:07]OFD Sender: Remove packet 123161 [10:26:07]ProducePacketName [10:26:07]name=ofd_packets/00123161 [10:26:07]NVStorageDeleteData [10:26:07]OFD Sender: No OFD packet to send [10:26:12]OFD Sender: No OFD packet to send [10:26:17]OFD Sender: No OFD packet to send [10:26:22]OFD Sender: No OFD packet to send [10:26:27]OFD Sender: No OFD packet to send [10:26:32]OFD Sender: No OFD packet to send [10:26:37]OFD Sender: No OFD packet to send [10:26:42]OFD Sender: No OFD packet to send [10:26:47]OFD Sender: No OFD packet to send [10:26:49]accept exits with 7 [10:26:49]New connection [10:26:49]New thread 3066723684 created [10:26:49]Thread 3066580324 joined [10:26:49]Waiting for new connection... [10:26:49] Sock 7.Parse request [10:26:49]Sock 7.Check first char [10:26:49]Sock 7.First char is OK [10:26:49]request: POST /json_proto HTTP/1.0 [10:26:49]Method: POST [10:26:49]URL: /json_proto [10:26:49]Method is POST - this is cgi request [10:26:49]url: /json_proto [10:26:49]query_string will be loaded in cgi processing [10:26:49]execute_cgi json_proto POST (null) [10:26:49]execute_cgi path=json_proto method=POST [10:26:49]POST find Content-Length [10:26:49]Host: 172.17.37.4:8080 [10:26:49]Content-Length: 677 [10:26:49]Content-Type: application/json [10:26:49] [10:26:49]POST finish read [10:26:49]Found Content-Length = 677 [10:26:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:49]execute_script... [10:26:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:49]POST & json_proto [10:26:49]process_json_proto [10:26:49]json parsed OK: [10:26:49]protocol is kg_v1.0 [10:26:49]action value=close_receipt [10:26:49]process_action close_receipt [10:26:49]cmd_close_receipt [10:26:49]MH_GetDate [10:26:49]Write to MH i2c: F0 00 00 C3 4B FD [10:26:49]Write i2c OK [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: F0 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: F0 09 00 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: F0 09 00 C3 4B 00 73 A2 45 67 B8 5A 43 67 83 [10:26:49]GetLastDocTimeStamp 1732616646 [10:26:49]current date 1732616819 [10:26:49]FM_GetShiftState [10:26:49]SAM_PROTO_GetShiftState [10:26:49]wFMCommunicate request_size=4 [10:26:49]MH_SAM_APDU [10:26:49]CAPDU: 80 13 01 00 [10:26:49]Write to MH i2c: E2 08 00 C4 4B 80 13 01 00 00 00 00 00 8C [10:26:49]Write i2c OK [10:26:49]MH_I2C_Read... [10:26:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:49]Read from MH i2c: E2 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: E2 0E 00 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: E2 0E 00 C4 4B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 ED [10:26:49]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:26:49]wFMCommunicate OK [10:26:49]SAM_PROTO_GetShiftState done [10:26:49]FM_GetShiftState done [10:26:49]opened in 1732579736 [10:26:49]opened+sec_in_day 1732666136 [10:26:49]quantity*price = 40035 [10:26:49]sum+1 = 40037 [10:26:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 16 26.11.2024 10:26 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123162 ФПД: 248299983464412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T102659&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123162&fm=248299983464412&tin=02508201610067®Number=0000000000092681&sum=40000 [10:26:50]StoreToDocumentArchive [10:26:50]shift 557 fd 123162 [10:26:50]save to /storage/0557/doc_00123162 [10:26:50]save last doc name /storage/0557/doc_00123162 to /storage/kkm_last_doc_name [10:26:50]save OK [10:26:50]Clear old archive folders... [10:26:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:50]tlvbuf is 01F46B40 [10:26:50]SAM_PROTO_ClearQueue [10:26:50]wFMCommunicate request_size=4 [10:26:50]MH_SAM_APDU [10:26:50]CAPDU: 80 09 00 00 [10:26:50]Write to MH i2c: E2 08 00 D1 4B 80 09 00 00 00 00 00 00 8E [10:26:50]Write i2c OK [10:26:50]MH_I2C_Read... [10:26:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:50]Read from MH i2c: E2 [10:26:50]MH_I2C_Read... [10:26:50]Read from MH i2c: E2 03 00 [10:26:50]MH_I2C_Read... [10:26:50]Read from MH i2c: E2 03 00 D1 4B 00 90 00 90 [10:26:50]RAPDU: 90 00 [10:26:50]wFMCommunicate OK [10:26:50]SAM_PROTO_ClearQueue done [10:26:50]KKMCreateOFDPacket [10:26:50]OFDProtocolAddRootSTLVToBuf [10:26:50]FM_MakeSignedData [10:26:50]FM_MakeSignedData [10:26:50]SAM_PROTO_SignData [10:26:50]wFMCommunicate request_size=4 [10:26:50]MH_SAM_APDU [10:26:50]CAPDU: 80 0D 01 02 [10:26:50]Write to MH i2c: E2 08 00 D2 4B 80 0D 01 02 00 00 00 00 96 [10:26:50]Write i2c OK [10:26:50]MH_I2C_Read... [10:26:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:50]Read from MH i2c: E2 [10:26:50]MH_I2C_Read... [10:26:50]Read from MH i2c: E2 03 00 [10:26:50]MH_I2C_Read... [10:26:50]Read from MH i2c: E2 03 00 D2 4B 00 90 00 91 [10:26:50]RAPDU: 90 00 [10:26:50]wFMCommunicate OK [10:26:50]wFMCommunicate request_size=255 [10:26:50]MH_SAM_APDU [10:26:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 73 A2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1A E1 01 00 35 04 06 00 E1 [10:26:50]Write to MH i2c: E2 02 01 D3 4B 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 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 73 A2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1A E1 01 00 35 04 06 00 E1 00 00 01 [10:26:50]Write i2c OK [10:26:50]MH_I2C_Read... [10:26:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:50]Read from MH i2c: E2 [10:26:50]MH_I2C_Read... [10:26:50]Read from MH i2c: E2 03 00 [10:26:50]MH_I2C_Read... [10:26:50]Read from MH i2c: E2 03 00 D3 4B 00 90 00 92 [10:26:50]RAPDU: 90 00 [10:26:50]wFMCommunicate OK [10:26:50]wFMCommunicate request_size=10 [10:26:50]MH_SAM_APDU [10:26:50]CAPDU: 80 0D 02 02 05 D3 D8 4F E7 DC [10:26:50]Write to MH i2c: E2 0D 00 D4 4B 80 0D 02 02 05 00 D3 D8 4F E7 DC 00 00 60 [10:26:50]Write i2c OK [10:26:50]MH_I2C_Read... [10:26:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:50]Read from MH i2c: E2 [10:26:50]MH_I2C_Read... [10:26:50]Read from MH i2c: E2 03 00 [10:26:50]MH_I2C_Read... [10:26:50]Read from MH i2c: E2 03 00 D4 4B 00 90 00 93 [10:26:50]RAPDU: 90 00 [10:26:50]wFMCommunicate OK [10:26:50]wFMCommunicate request_size=4 [10:26:50]MH_SAM_APDU [10:26:50]CAPDU: 80 0D 03 02 [10:26:50]Write to MH i2c: E2 08 00 D5 4B 80 0D 03 02 00 00 00 00 9B [10:26:50]Write i2c OK [10:26:50]MH_I2C_Read... [10:26:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:50]Read from MH i2c: E2 [10:26:50]MH_I2C_Read... [10:26:50]Read from MH i2c: E2 0B 00 [10:26:50]MH_I2C_Read... [10:26:50]Read from MH i2c: E2 0B 00 D5 4B 00 CB 15 6B 63 D3 07 02 21 90 00 47 [10:26:50]RAPDU: CB 15 6B 63 D3 07 02 21 90 00 [10:26:50]wFMCommunicate OK [10:26:50]SAM_PROTO_SignData done [10:26:50]FM_MakeSignedData done [10:26:50]CreateOFDProtocolMessage [10:26:50]wFMCommunicate request_size=4 [10:26:50]MH_SAM_APDU [10:26:50]CAPDU: 80 11 00 00 [10:26:50]Write to MH i2c: E2 08 00 D6 4B 80 11 00 00 00 00 00 00 9B [10:26:50]Write i2c OK [10:26:50]MH_I2C_Read... [10:26:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:50]Read from MH i2c: E2 [10:26:50]MH_I2C_Read... [10:26:50]Read from MH i2c: E2 17 00 [10:26:50]MH_I2C_Read... [10:26:50]Read from MH i2c: E2 17 00 D6 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F2 [10:26:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:26:50]wFMCommunicate OK [10:26:50]CreateOFDProtocolMessage done [10:26:50]OFDSenderStorePacket 123162 [10:26:50]StoreOFDPacket docnum=123162 [10:26:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 69 56 07 01 A7 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 73 A2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1A E1 01 00 35 04 06 00 E1 D3 D8 4F E7 DC CB 15 6B 63 D3 07 02 21 [10:26:50]CheckFolder [10:26:50]dirname=/storage/ofd_packets [10:26:50]CheckFolder done [10:26:50]ProducePacketName [10:26:50]name=ofd_packets/00123162 [10:26:50]NVStorageSaveData ofd_packets/00123162 [10:26:50]File name is /storage/ofd_packets/00123162 [10:26:50]Write 301 bytes [10:26:50]NVStorageSaveData done [10:26:50]OFDSenderStorePacket done [10:26:50]KKMCreateOFDPacket done [10:26:50]NVStorageSaveData kkm_last_timestamp [10:26:50]File name is /storage/kkm_last_timestamp [10:26:50]Write 4 bytes [10:26:50]NVStorageSaveData done [10:26:50]ExternCall_PrintAddStr [10:26:50]wPrintStart [10:26:50]Write to MH i2c: 01 00 00 D7 4B 22 [10:26:50]Write i2c OK [10:26:50]MH_I2C_Read... [10:26:50]Read from MH i2c: 01 [10:26:50]MH_I2C_Read... [10:26:50]Read from MH i2c: 01 07 00 [10:26:50]MH_I2C_Read... [10:26:50]Read from MH i2c: 01 07 00 D7 4B 00 00 00 00 00 FF 0F 37 [10:26:50]RasterBufferAndPrint [10:26:50]line Счет N : (1)717996 [10:26:50]line ИНН: 02508201610067 [10:26:50]line Контрольно-Кассовый Чек [10:26:50]line ПРОДАЖА [10:26:50]line ТРК (МРК, ГНК) : 12 [10:26:50]line Товар: 2710124130 [10:26:50]line Аи-92-К-4 [10:26:50]line 5.940 * 67.40 [10:26:50]line = 400.36 [10:26:50]line НДС 12% НСП 1% [10:26:50]line > о реализуемом товаре [10:26:50]line ОКРУГЛЕНИЕ: -0.36 [10:26:50]line ИТОГО: 400.00 [10:26:50]line Внесено: 400.00 [10:26:50]line СДАЧА: 0.00 [10:26:50]line НСП 1% : 3.54 [10:26:50]line НДС 12% : 42.52 [10:26:50]line Наличными: 400.00 [10:26:50]line Безнал.: 0.00 [10:26:50]line Место: АЗС № 64 "Партнер Нефть" [10:26:50]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:26:50]line СНО: Общий режим [10:26:50]line Чек 16 26.11.2024 10:26 [10:26:50]line Смена: 557 ФФД: 1.0 [10:26:50]line ЗНМ: 0300000033 [10:26:50]line РНМ: 0000000000092681 [10:26:50]line Версия ККМ: 001 [10:26:50]line ФМ: 0000000000874881 [10:26:50]line ФД: 123162 [10:26:50]line ФПД: 248299983464412 [10:26:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T102659&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123162&fm=248299983464412&tin=02508201610067®Number=0000000000092681&sum=40000 [10:26:51]OFD Sender: Processing packet 123162 [packets to send 7, broken 6] [10:26:51]ProducePacketName [10:26:51]name=ofd_packets/00123162 [10:26:51]OFD Sender: To server: pG, [10:26:51]CommunicateWithHost lk.salyk.kg:30040 [10:26:51]ConnectInit lk.salyk.kg [10:26:51]written 0, free lines is 4095 [10:26:51]Connected sock=10 [10:26:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 69 56 07 01 A7 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 73 A2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1A E1 01 00 35 04 06 00 E1 D3 D8 4F E7 DC CB 15 6B 63 D3 07 02 21 [10:26:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 6E D3 47 00 3B 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1A E1 01 00 F4 03 04 00 35 4E 45 67 B6 04 01 00 00 AA 98 64 AD F9 39 F6 04 [10:26:51]CommunicateWithHost err = 0 [10:26:51]CheckOFDResponse [10:26:51]1017 (14) - 77093643461234 [10:26:51]1041 (16) - 0000000000874881 [10:26:51]1040 (4) - 123162 [10:26:51]1012 (4) - 26.11.2024 04:27 [10:26:51]1206 (1) - 0 [10:26:51]OFD Sender: Remove packet 123162 [10:26:51]ProducePacketName [10:26:51]name=ofd_packets/00123162 [10:26:51]NVStorageDeleteData [10:26:51]Write to MH i2c: 01 00 00 02 4C 4E [10:26:51]Write i2c OK [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: 01 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: 01 07 00 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: 01 07 00 02 4C 00 00 00 00 00 54 0C B5 [10:26:51]RasterBufferAndPrint [10:26:51]line [10:26:51]line [10:26:51]line [10:26:51]line [10:26:51]line [10:26:51]written 0, free lines is 3159 [10:26:51]MH_Cut [10:26:51]Write to MH i2c: D1 01 00 09 4C 01 27 [10:26:51]Write i2c OK [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: D1 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: D1 01 00 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: D1 01 00 09 4C 00 26 [10:26:51]Write to MH i2c: 01 00 00 0A 4C 56 [10:26:51]Write i2c OK [10:26:51]MH_I2C_Read... [10:26:51]OFD Sender: No OFD packet to send [10:26:52]*** Cut start [10:26:52]*** Partial cut [10:26:52]*** CUTSNS_PIN = 1 [10:26:52]*** CUTSNS_PIN = 0 [10:26:53]*** Brake cut motor [10:26:53]Read from MH i2c: 01 [10:26:53]MH_I2C_Read... [10:26:53]*** Stop cut motor [10:26:53]*** Cut end [10:26:53]Read from MH i2c: 01 07 00 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: 01 07 00 0A 4C 00 00 00 00 00 FF 0F 6B [10:26:53]process_action close_receipt done [10:26:53]requested_data is exist [10:26:53]produce_requested_data [10:26:53]requested_item fm.sn is exist - process it [10:26:53]wFMCommunicate request_size=4 [10:26:53]MH_SAM_APDU [10:26:53]CAPDU: 80 11 00 00 [10:26:53]Write to MH i2c: E2 08 00 0B 4C 80 11 00 00 00 00 00 00 D1 [10:26:53]Write i2c OK [10:26:53]MH_I2C_Read... [10:26:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:53]Read from MH i2c: E2 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: E2 17 00 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: E2 17 00 0B 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 28 [10:26:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:26:53]wFMCommunicate OK [10:26:53]requested_item fd.num is exist - process it [10:26:53]SAM_PROTO_GetFieldsCounters [10:26:53]wFMCommunicate request_size=4 [10:26:53]MH_SAM_APDU [10:26:53]CAPDU: 80 13 00 00 [10:26:53]Write to MH i2c: E2 08 00 0C 4C 80 13 00 00 00 00 00 00 D4 [10:26:53]Write i2c OK [10:26:53]MH_I2C_Read... [10:26:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:53]Read from MH i2c: E2 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: E2 62 00 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: E2 62 00 0C 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 1A E1 01 00 0E 04 04 00 2D 02 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 55 [10:26:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 1A E1 01 00 0E 04 04 00 2D 02 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:26:53]wFMCommunicate OK [10:26:53]SAM_PROTO_GetFieldsCounters done [10:26:53]requested_item shift.num is exist - process it [10:26:53]requested_item shift.opened is exist - process it [10:26:53]req_shift_opened [10:26:53]FM_GetShiftState [10:26:53]SAM_PROTO_GetShiftState [10:26:53]wFMCommunicate request_size=4 [10:26:53]MH_SAM_APDU [10:26:53]CAPDU: 80 13 01 00 [10:26:53]Write to MH i2c: E2 08 00 0D 4C 80 13 01 00 00 00 00 00 D6 [10:26:53]Write i2c OK [10:26:53]MH_I2C_Read... [10:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:53]Read from MH i2c: E2 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: E2 0E 00 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: E2 0E 00 0D 4C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 37 [10:26:53]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:26:53]wFMCommunicate OK [10:26:53]SAM_PROTO_GetShiftState done [10:26:53]FM_GetShiftState done [10:26:53]req_shift_opened done [10:26:53]requested_item shift.open_date is exist - process it [10:26:53]req_shift_open_date [10:26:53]req_shift_open_date done [10:26:53]produce_requested_data done [10:26:53]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123162,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:26:53]process_action_free close_receipt [10:26:53]json_value_free [10:26:53]json_value_free done [10:26:53]process_json_proto returns [10:26:53]Send response to host [10:26:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123162,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:26:53]free response buf [10:26:53]execute_script done [10:26:53]execute_script returns [10:26:53]free content buf [10:26:53]Sock 7.Close socket [10:26:53]Sock 7.Thread stoped [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:23]accept exits with 9 [10:29:23]New connection [10:29:23]New thread 3066580324 created [10:29:23]Thread 3066723684 joined [10:29:23]Waiting for new connection... [10:29:23] Sock 9.Parse request [10:29:23]Sock 9.Check first char [10:29:23]Sock 9.First char is OK [10:29:23]request: POST /json_proto HTTP/1.0 [10:29:23]Method: POST [10:29:23]URL: /json_proto [10:29:23]Method is POST - this is cgi request [10:29:23]url: /json_proto [10:29:23]query_string will be loaded in cgi processing [10:29:23]execute_cgi json_proto POST (null) [10:29:23]execute_cgi path=json_proto method=POST [10:29:23]POST find Content-Length [10:29:23]Host: 172.17.37.4:8080 [10:29:23]Content-Length: 677 [10:29:23]Content-Type: application/json [10:29:23] [10:29:23]POST finish read [10:29:23]Found Content-Length = 677 [10:29:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:23]execute_script... [10:29:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:23]POST & json_proto [10:29:23]process_json_proto [10:29:23]json parsed OK: [10:29:23]protocol is kg_v1.0 [10:29:23]action value=close_receipt [10:29:23]process_action close_receipt [10:29:23]cmd_close_receipt [10:29:23]MH_GetDate [10:29:23]Write to MH i2c: F0 00 00 0E 4C 49 [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: F0 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: F0 09 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: F0 09 00 0E 4C 00 0D A3 45 67 B8 5A 43 67 6A [10:29:23]GetLastDocTimeStamp 1732616819 [10:29:23]current date 1732616973 [10:29:23]FM_GetShiftState [10:29:23]SAM_PROTO_GetShiftState [10:29:23]wFMCommunicate request_size=4 [10:29:23]MH_SAM_APDU [10:29:23]CAPDU: 80 13 01 00 [10:29:23]Write to MH i2c: E2 08 00 0F 4C 80 13 01 00 00 00 00 00 D8 [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:23]Read from MH i2c: E2 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 0E 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 0E 00 0F 4C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 39 [10:29:23]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:29:23]wFMCommunicate OK [10:29:23]SAM_PROTO_GetShiftState done [10:29:23]FM_GetShiftState done [10:29:23]opened in 1732579736 [10:29:23]opened+sec_in_day 1732666136 [10:29:23]quantity*price = 20017 [10:29:23]sum+1 = 20019 [10:29:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 17 26.11.2024 10:29 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123163 ФПД: 248721213483004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T102933&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123163&fm=248721213483004&tin=02508201610067®Number=0000000000092681&sum=20000 [10:29:24]StoreToDocumentArchive [10:29:24]shift 557 fd 123163 [10:29:24]save to /storage/0557/doc_00123163 [10:29:24]save last doc name /storage/0557/doc_00123163 to /storage/kkm_last_doc_name [10:29:24]save OK [10:29:24]Clear old archive folders... [10:29:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:24]tlvbuf is 02097370 [10:29:24]SAM_PROTO_ClearQueue [10:29:24]wFMCommunicate request_size=4 [10:29:24]MH_SAM_APDU [10:29:24]CAPDU: 80 09 00 00 [10:29:24]Write to MH i2c: E2 08 00 1C 4C 80 09 00 00 00 00 00 00 DA [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 1C 4C 00 90 00 DC [10:29:25]RAPDU: 90 00 [10:29:25]wFMCommunicate OK [10:29:25]SAM_PROTO_ClearQueue done [10:29:25]KKMCreateOFDPacket [10:29:25]OFDProtocolAddRootSTLVToBuf [10:29:25]FM_MakeSignedData [10:29:25]FM_MakeSignedData [10:29:25]SAM_PROTO_SignData [10:29:25]wFMCommunicate request_size=4 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 0D 01 02 [10:29:25]Write to MH i2c: E2 08 00 1D 4C 80 0D 01 02 00 00 00 00 E2 [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 1D 4C 00 90 00 DD [10:29:25]RAPDU: 90 00 [10:29:25]wFMCommunicate OK [10:29:25]wFMCommunicate request_size=255 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 0D A3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1B E1 01 00 35 04 06 00 E2 [10:29:25]Write to MH i2c: E2 02 01 1E 4C 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 0D A3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1B E1 01 00 35 04 06 00 E2 00 00 E1 [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 1E 4C 00 90 00 DE [10:29:25]RAPDU: 90 00 [10:29:25]wFMCommunicate OK [10:29:25]wFMCommunicate request_size=10 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 0D 02 02 05 35 EB 93 E7 FC [10:29:25]Write to MH i2c: E2 0D 00 1F 4C 80 0D 02 02 05 00 35 EB 93 E7 FC 00 00 85 [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 1F 4C 00 90 00 DF [10:29:25]RAPDU: 90 00 [10:29:25]wFMCommunicate OK [10:29:25]wFMCommunicate request_size=4 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 0D 03 02 [10:29:25]Write to MH i2c: E2 08 00 20 4C 80 0D 03 02 00 00 00 00 E7 [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 0B 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 0B 00 20 4C 00 14 B0 6C 7A 38 A1 83 D8 90 00 C6 [10:29:25]RAPDU: 14 B0 6C 7A 38 A1 83 D8 90 00 [10:29:25]wFMCommunicate OK [10:29:25]SAM_PROTO_SignData done [10:29:25]FM_MakeSignedData done [10:29:25]CreateOFDProtocolMessage [10:29:25]wFMCommunicate request_size=4 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 11 00 00 [10:29:25]Write to MH i2c: E2 08 00 21 4C 80 11 00 00 00 00 00 00 E7 [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 17 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 17 00 21 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3E [10:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:29:25]wFMCommunicate OK [10:29:25]CreateOFDProtocolMessage done [10:29:25]OFDSenderStorePacket 123163 [10:29:25]StoreOFDPacket docnum=123163 [10:29:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DB 78 07 01 49 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 0D A3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1B E1 01 00 35 04 06 00 E2 35 EB 93 E7 FC 14 B0 6C 7A 38 A1 83 D8 [10:29:25]CheckFolder [10:29:25]dirname=/storage/ofd_packets [10:29:25]CheckFolder done [10:29:25]ProducePacketName [10:29:25]name=ofd_packets/00123163 [10:29:25]NVStorageSaveData ofd_packets/00123163 [10:29:25]File name is /storage/ofd_packets/00123163 [10:29:25]Write 301 bytes [10:29:25]NVStorageSaveData done [10:29:25]OFDSenderStorePacket done [10:29:25]KKMCreateOFDPacket done [10:29:25]NVStorageSaveData kkm_last_timestamp [10:29:25]File name is /storage/kkm_last_timestamp [10:29:25]Write 4 bytes [10:29:25]NVStorageSaveData done [10:29:25]ExternCall_PrintAddStr [10:29:25]wPrintStart [10:29:25]Write to MH i2c: 01 00 00 22 4C 6E [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 07 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 07 00 22 4C 00 00 00 00 00 FF 0F 83 [10:29:25]RasterBufferAndPrint [10:29:25]line Счет N : (1)717998 [10:29:25]line ИНН: 02508201610067 [10:29:25]line Контрольно-Кассовый Чек [10:29:25]line ПРОДАЖА [10:29:25]line ТРК (МРК, ГНК) : 32 [10:29:25]line Товар: 2710124130 [10:29:25]line Аи-92-К-4 [10:29:25]line 2.970 * 67.40 [10:29:25]line = 200.18 [10:29:25]line НДС 12% НСП 1% [10:29:25]line > о реализуемом товаре [10:29:25]line ОКРУГЛЕНИЕ: -0.18 [10:29:25]line ИТОГО: 200.00 [10:29:25]line Внесено: 200.00 [10:29:25]line СДАЧА: 0.00 [10:29:25]line НСП 1% : 1.77 [10:29:25]line НДС 12% : 21.26 [10:29:25]line Наличными: 200.00 [10:29:25]line Безнал.: 0.00 [10:29:25]line Место: АЗС № 64 "Партнер Нефть" [10:29:25]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:29:25]line СНО: Общий режим [10:29:25]line Чек 17 26.11.2024 10:29 [10:29:25]line Смена: 557 ФФД: 1.0 [10:29:25]line ЗНМ: 0300000033 [10:29:25]line РНМ: 0000000000092681 [10:29:25]line Версия ККМ: 001 [10:29:25]line ФМ: 0000000000874881 [10:29:25]line ФД: 123163 [10:29:25]line ФПД: 248721213483004 [10:29:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T102933&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123163&fm=248721213483004&tin=02508201610067®Number=0000000000092681&sum=20000 [10:29:25]OFD Sender: Processing packet 123163 [packets to send 7, broken 6] [10:29:25]ProducePacketName [10:29:25]name=ofd_packets/00123163 [10:29:25]OFD Sender: To server: pG, [10:29:25]CommunicateWithHost lk.salyk.kg:30040 [10:29:25]ConnectInit lk.salyk.kg [10:29:25]written 0, free lines is 4095 [10:29:25]Connected sock=10 [10:29:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DB 78 07 01 49 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 0D A3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1B E1 01 00 35 04 06 00 E2 35 EB 93 E7 FC 14 B0 6C 7A 38 A1 83 D8 [10:29:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 07 34 47 00 DD FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1B E1 01 00 F4 03 04 00 D0 4E 45 67 B6 04 01 00 00 06 65 A0 0E 28 CE 48 E0 [10:29:26]CommunicateWithHost err = 0 [10:29:26]CheckOFDResponse [10:29:26]1017 (14) - 77093643461234 [10:29:26]1041 (16) - 0000000000874881 [10:29:26]1040 (4) - 123163 [10:29:26]1012 (4) - 26.11.2024 04:30 [10:29:26]1206 (1) - 0 [10:29:26]OFD Sender: Remove packet 123163 [10:29:26]ProducePacketName [10:29:26]name=ofd_packets/00123163 [10:29:26]NVStorageDeleteData [10:29:26]Write to MH i2c: 01 00 00 4D 4C 99 [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: 01 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: 01 07 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: 01 07 00 4D 4C 00 00 00 00 00 4A 0C F6 [10:29:26]RasterBufferAndPrint [10:29:26]line [10:29:26]line [10:29:26]line [10:29:26]line [10:29:26]line [10:29:26]written 0, free lines is 3150 [10:29:26]MH_Cut [10:29:26]Write to MH i2c: D1 01 00 54 4C 01 72 [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: D1 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: D1 01 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: D1 01 00 54 4C 00 71 [10:29:26]Write to MH i2c: 01 00 00 55 4C A1 [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]OFD Sender: No OFD packet to send [10:29:27]*** Cut start [10:29:27]*** Partial cut [10:29:27]*** CUTSNS_PIN = 1 [10:29:27]*** CUTSNS_PIN = 0 [10:29:27]*** Brake cut motor [10:29:28]Read from MH i2c: 01 [10:29:28]MH_I2C_Read... [10:29:28]*** Stop cut motor [10:29:28]*** Cut end [10:29:28]Read from MH i2c: 01 07 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: 01 07 00 55 4C 00 00 00 00 00 FF 0F B6 [10:29:28]process_action close_receipt done [10:29:28]requested_data is exist [10:29:28]produce_requested_data [10:29:28]requested_item fm.sn is exist - process it [10:29:28]wFMCommunicate request_size=4 [10:29:28]MH_SAM_APDU [10:29:28]CAPDU: 80 11 00 00 [10:29:28]Write to MH i2c: E2 08 00 56 4C 80 11 00 00 00 00 00 00 1C [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:28]Read from MH i2c: E2 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 17 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 17 00 56 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 73 [10:29:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:29:28]wFMCommunicate OK [10:29:28]requested_item fd.num is exist - process it [10:29:28]SAM_PROTO_GetFieldsCounters [10:29:28]wFMCommunicate request_size=4 [10:29:28]MH_SAM_APDU [10:29:28]CAPDU: 80 13 00 00 [10:29:28]Write to MH i2c: E2 08 00 57 4C 80 13 00 00 00 00 00 00 1F [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:28]Read from MH i2c: E2 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 62 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 62 00 57 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 1B E1 01 00 0E 04 04 00 2D 02 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 A4 [10:29:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 1B E1 01 00 0E 04 04 00 2D 02 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:29:28]wFMCommunicate OK [10:29:28]SAM_PROTO_GetFieldsCounters done [10:29:28]requested_item shift.num is exist - process it [10:29:28]requested_item shift.opened is exist - process it [10:29:28]req_shift_opened [10:29:28]FM_GetShiftState [10:29:28]SAM_PROTO_GetShiftState [10:29:28]wFMCommunicate request_size=4 [10:29:28]MH_SAM_APDU [10:29:28]CAPDU: 80 13 01 00 [10:29:28]Write to MH i2c: E2 08 00 58 4C 80 13 01 00 00 00 00 00 21 [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:28]Read from MH i2c: E2 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 0E 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 0E 00 58 4C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 82 [10:29:28]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:29:28]wFMCommunicate OK [10:29:28]SAM_PROTO_GetShiftState done [10:29:28]FM_GetShiftState done [10:29:28]req_shift_opened done [10:29:28]requested_item shift.open_date is exist - process it [10:29:28]req_shift_open_date [10:29:28]req_shift_open_date done [10:29:28]produce_requested_data done [10:29:28]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123163,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:29:28]process_action_free close_receipt [10:29:28]json_value_free [10:29:28]json_value_free done [10:29:28]process_json_proto returns [10:29:28]Send response to host [10:29:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123163,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:29:28]free response buf [10:29:28]execute_script done [10:29:28]execute_script returns [10:29:28]free content buf [10:29:28]Sock 9.Close socket [10:29:28]Sock 9.Thread stoped [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]accept exits with 7 [10:30:01]New connection [10:30:01]New thread 3066723684 created [10:30:01]Thread 3066580324 joined [10:30:01]Waiting for new connection... [10:30:01] Sock 7.Parse request [10:30:01]Sock 7.Check first char [10:30:01]Sock 7.First char is OK [10:30:01]request: POST /json_proto HTTP/1.0 [10:30:01]Method: POST [10:30:01]URL: /json_proto [10:30:01]Method is POST - this is cgi request [10:30:01]url: /json_proto [10:30:01]query_string will be loaded in cgi processing [10:30:01]execute_cgi json_proto POST (null) [10:30:01]execute_cgi path=json_proto method=POST [10:30:01]POST find Content-Length [10:30:01]Host: 172.17.37.4:8080 [10:30:01]Content-Length: 800 [10:30:01]Content-Type: application/json [10:30:01] [10:30:01]POST finish read [10:30:01]Found Content-Length = 800 [10:30:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "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" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:01]execute_script... [10:30:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "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" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:01]POST & json_proto [10:30:01]process_json_proto [10:30:01]json parsed OK: [10:30:01]protocol is kg_v1.0 [10:30:01]action value=close_receipt [10:30:01]process_action close_receipt [10:30:01]cmd_close_receipt [10:30:01]MH_GetDate [10:30:01]Write to MH i2c: F0 00 00 59 4C 94 [10:30:01]Write i2c OK [10:30:01]MH_I2C_Read... [10:30:01]Read from MH i2c: F0 [10:30:01]MH_I2C_Read... [10:30:01]Read from MH i2c: F0 09 00 [10:30:01]MH_I2C_Read... [10:30:01]Read from MH i2c: F0 09 00 59 4C 00 33 A3 45 67 B8 5A 43 67 DB [10:30:01]GetLastDocTimeStamp 1732616973 [10:30:01]current date 1732617011 [10:30:01]FM_GetShiftState [10:30:01]SAM_PROTO_GetShiftState [10:30:01]wFMCommunicate request_size=4 [10:30:01]MH_SAM_APDU [10:30:01]CAPDU: 80 13 01 00 [10:30:01]Write to MH i2c: E2 08 00 5A 4C 80 13 01 00 00 00 00 00 23 [10:30:01]Write i2c OK [10:30:01]MH_I2C_Read... [10:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:01]Read from MH i2c: E2 [10:30:01]MH_I2C_Read... [10:30:01]Read from MH i2c: E2 0E 00 [10:30:01]MH_I2C_Read... [10:30:01]Read from MH i2c: E2 0E 00 5A 4C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 84 [10:30:01]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:30:01]wFMCommunicate OK [10:30:01]SAM_PROTO_GetShiftState done [10:30:01]FM_GetShiftState done [10:30:01]opened in 1732579736 [10:30:01]opened+sec_in_day 1732666136 [10:30:01]quantity*price = 50010 [10:30:01]sum+1 = 50012 [10:30:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 18 26.11.2024 10:30 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123164 ФПД: 258562227838357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T103011&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123164&fm=258562227838357&tin=02508201610067®Number=0000000000092681&sum=50011 [10:30:02]StoreToDocumentArchive [10:30:02]shift 557 fd 123164 [10:30:02]save to /storage/0557/doc_00123164 [10:30:02]save last doc name /storage/0557/doc_00123164 to /storage/kkm_last_doc_name [10:30:02]save OK [10:30:02]Clear old archive folders... [10:30:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:02]tlvbuf is B6D709F0 [10:30:02]SAM_PROTO_ClearQueue [10:30:02]wFMCommunicate request_size=4 [10:30:02]MH_SAM_APDU [10:30:02]CAPDU: 80 09 00 00 [10:30:02]Write to MH i2c: E2 08 00 67 4C 80 09 00 00 00 00 00 00 25 [10:30:02]Write i2c OK [10:30:02]MH_I2C_Read... [10:30:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:02]Read from MH i2c: E2 [10:30:02]MH_I2C_Read... [10:30:02]Read from MH i2c: E2 03 00 [10:30:02]MH_I2C_Read... [10:30:02]Read from MH i2c: E2 03 00 67 4C 00 90 00 27 [10:30:02]RAPDU: 90 00 [10:30:02]wFMCommunicate OK [10:30:02]SAM_PROTO_ClearQueue done [10:30:02]KKMCreateOFDPacket [10:30:02]OFDProtocolAddRootSTLVToBuf [10:30:02]FM_MakeSignedData [10:30:02]FM_MakeSignedData [10:30:02]SAM_PROTO_SignData [10:30:02]wFMCommunicate request_size=4 [10:30:02]MH_SAM_APDU [10:30:02]CAPDU: 80 0D 01 02 [10:30:02]Write to MH i2c: E2 08 00 68 4C 80 0D 01 02 00 00 00 00 2D [10:30:02]Write i2c OK [10:30:02]MH_I2C_Read... [10:30:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:02]Read from MH i2c: E2 [10:30:02]MH_I2C_Read... [10:30:02]Read from MH i2c: E2 03 00 [10:30:02]MH_I2C_Read... [10:30:02]Read from MH i2c: E2 03 00 68 4C 00 90 00 28 [10:30:02]RAPDU: 90 00 [10:30:02]wFMCommunicate OK [10:30:02]wFMCommunicate request_size=255 [10:30:02]MH_SAM_APDU [10:30:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 33 A3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1C E1 01 00 35 04 06 00 EB [10:30:02]Write to MH i2c: E2 02 01 69 4C 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 33 A3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1C E1 01 00 35 04 06 00 EB 00 00 56 [10:30:02]Write i2c OK [10:30:02]MH_I2C_Read... [10:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:02]Read from MH i2c: E2 [10:30:02]MH_I2C_Read... [10:30:02]Read from MH i2c: E2 03 00 [10:30:02]MH_I2C_Read... [10:30:02]Read from MH i2c: E2 03 00 69 4C 00 90 00 29 [10:30:02]RAPDU: 90 00 [10:30:02]wFMCommunicate OK [10:30:02]wFMCommunicate request_size=10 [10:30:02]MH_SAM_APDU [10:30:02]CAPDU: 80 0D 02 02 05 29 35 BE 1D 95 [10:30:02]Write to MH i2c: E2 0D 00 6A 4C 80 0D 02 02 05 00 29 35 BE 1D 95 00 00 08 [10:30:02]Write i2c OK [10:30:02]MH_I2C_Read... [10:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:02]Read from MH i2c: E2 [10:30:02]MH_I2C_Read... [10:30:02]Read from MH i2c: E2 03 00 [10:30:02]MH_I2C_Read... [10:30:02]Read from MH i2c: E2 03 00 6A 4C 00 90 00 2A [10:30:02]RAPDU: 90 00 [10:30:02]wFMCommunicate OK [10:30:02]wFMCommunicate request_size=4 [10:30:02]MH_SAM_APDU [10:30:02]CAPDU: 80 0D 03 02 [10:30:02]Write to MH i2c: E2 08 00 6B 4C 80 0D 03 02 00 00 00 00 32 [10:30:02]Write i2c OK [10:30:02]MH_I2C_Read... [10:30:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:02]Read from MH i2c: E2 [10:30:02]MH_I2C_Read... [10:30:02]Read from MH i2c: E2 0B 00 [10:30:02]MH_I2C_Read... [10:30:02]Read from MH i2c: E2 0B 00 6B 4C 00 E0 E9 1F 74 C1 E8 0C 6F 90 00 B3 [10:30:02]RAPDU: E0 E9 1F 74 C1 E8 0C 6F 90 00 [10:30:02]wFMCommunicate OK [10:30:02]SAM_PROTO_SignData done [10:30:02]FM_MakeSignedData done [10:30:02]CreateOFDProtocolMessage [10:30:02]wFMCommunicate request_size=4 [10:30:02]MH_SAM_APDU [10:30:02]CAPDU: 80 11 00 00 [10:30:02]Write to MH i2c: E2 08 00 6C 4C 80 11 00 00 00 00 00 00 32 [10:30:02]Write i2c OK [10:30:02]MH_I2C_Read... [10:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:03]Read from MH i2c: E2 [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: E2 17 00 [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: E2 17 00 6C 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 89 [10:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:30:03]wFMCommunicate OK [10:30:03]CreateOFDProtocolMessage done [10:30:03]OFDSenderStorePacket 123164 [10:30:03]StoreOFDPacket docnum=123164 [10:30:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 34 57 07 01 8C 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 33 A3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1C E1 01 00 35 04 06 00 EB 29 35 BE 1D 95 E0 E9 1F 74 C1 E8 0C 6F [10:30:03]CheckFolder [10:30:03]dirname=/storage/ofd_packets [10:30:03]CheckFolder done [10:30:03]ProducePacketName [10:30:03]name=ofd_packets/00123164 [10:30:03]NVStorageSaveData ofd_packets/00123164 [10:30:03]File name is /storage/ofd_packets/00123164 [10:30:03]Write 301 bytes [10:30:03]NVStorageSaveData done [10:30:03]OFDSenderStorePacket done [10:30:03]KKMCreateOFDPacket done [10:30:03]NVStorageSaveData kkm_last_timestamp [10:30:03]File name is /storage/kkm_last_timestamp [10:30:03]Write 4 bytes [10:30:03]NVStorageSaveData done [10:30:03]ExternCall_PrintAddStr [10:30:03]wPrintStart [10:30:03]Write to MH i2c: 01 00 00 6D 4C B9 [10:30:03]Write i2c OK [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: 01 [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: 01 07 00 [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: 01 07 00 6D 4C 00 00 00 00 00 FF 0F CE [10:30:03]RasterBufferAndPrint [10:30:03]line Счет N : (1)717997 [10:30:03]line ИНН: 02508201610067 [10:30:03]line Контрольно-Кассовый Чек [10:30:03]line ПРОДАЖА [10:30:03]line ТРК (МРК, ГНК) : 42 [10:30:03]line Товар: 2710124130 [10:30:03]line Аи-92-К-4 [10:30:03]line 7.420 * 67.40 [10:30:03]line = 500.11 [10:30:03]line НДС 12% НСП 1% [10:30:03]line > о реализуемом товаре [10:30:03]line ИТОГО: 500.11 [10:30:03]line НСП 1% : 4.43 [10:30:03]line НДС 12% : 53.11 [10:30:03]line Наличными: 0.00 [10:30:03]line Безнал.: 500.11 [10:30:03]line Место: АЗС № 64 "Партнер Нефть" [10:30:03]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:30:03]line СНО: Общий режим [10:30:03]line Чек 18 26.11.2024 10:30 [10:30:03]line Смена: 557 ФФД: 1.0 [10:30:03]line ЗНМ: 0300000033 [10:30:03]line РНМ: 0000000000092681 [10:30:03]line Версия ККМ: 001 [10:30:03]line Платежная система: O! деньги [10:30:03]line ФМ: 0000000000874881 [10:30:03]line ФД: 123164 [10:30:03]line ФПД: 258562227838357 [10:30:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T103011&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123164&fm=258562227838357&tin=02508201610067®Number=0000000000092681&sum=50011 [10:30:03]OFD Sender: Processing packet 123164 [packets to send 7, broken 6] [10:30:03]ProducePacketName [10:30:03]name=ofd_packets/00123164 [10:30:03]OFD Sender: To server: pG, [10:30:03]CommunicateWithHost lk.salyk.kg:30040 [10:30:03]ConnectInit lk.salyk.kg [10:30:03]written 0, free lines is 4095 [10:30:03]Connected sock=10 [10:30:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 34 57 07 01 8C 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 33 A3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1C E1 01 00 35 04 06 00 EB 29 35 BE 1D 95 E0 E9 1F 74 C1 E8 0C 6F [10:30:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 37 C7 47 00 CE 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1C E1 01 00 F4 03 04 00 F6 4E 45 67 B6 04 01 00 00 E5 68 AB 2D 71 5D 61 61 [10:30:03]CommunicateWithHost err = 0 [10:30:03]CheckOFDResponse [10:30:03]1017 (14) - 77093643461234 [10:30:03]1041 (16) - 0000000000874881 [10:30:03]1040 (4) - 123164 [10:30:03]1012 (4) - 26.11.2024 04:30 [10:30:03]1206 (1) - 0 [10:30:03]OFD Sender: Remove packet 123164 [10:30:03]ProducePacketName [10:30:03]name=ofd_packets/00123164 [10:30:03]NVStorageDeleteData [10:30:03]Write to MH i2c: 01 00 00 97 4C E3 [10:30:03]Write i2c OK [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: 01 [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: 01 07 00 [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: 01 07 00 97 4C 00 00 00 00 00 61 0C 57 [10:30:03]RasterBufferAndPrint [10:30:03]line [10:30:03]line [10:30:03]line [10:30:03]line [10:30:03]line [10:30:03]written 0, free lines is 3174 [10:30:03]MH_Cut [10:30:03]Write to MH i2c: D1 01 00 9E 4C 01 BC [10:30:03]Write i2c OK [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: D1 [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: D1 01 00 [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: D1 01 00 9E 4C 00 BB [10:30:03]Write to MH i2c: 01 00 00 9F 4C EB [10:30:03]Write i2c OK [10:30:03]MH_I2C_Read... [10:30:04]OFD Sender: No OFD packet to send [10:30:05]*** Cut start [10:30:05]*** Partial cut [10:30:05]*** CUTSNS_PIN = 1 [10:30:05]*** CUTSNS_PIN = 0 [10:30:05]*** Brake cut motor [10:30:05]Read from MH i2c: 01 [10:30:05]MH_I2C_Read... [10:30:05]*** Stop cut motor [10:30:05]*** Cut end [10:30:05]Read from MH i2c: 01 07 00 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: 01 07 00 9F 4C 00 00 00 00 00 FF 0F 00 [10:30:05]process_action close_receipt done [10:30:05]requested_data is exist [10:30:05]produce_requested_data [10:30:05]requested_item fm.sn is exist - process it [10:30:05]wFMCommunicate request_size=4 [10:30:05]MH_SAM_APDU [10:30:05]CAPDU: 80 11 00 00 [10:30:05]Write to MH i2c: E2 08 00 A0 4C 80 11 00 00 00 00 00 00 66 [10:30:05]Write i2c OK [10:30:05]MH_I2C_Read... [10:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:05]Read from MH i2c: E2 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 17 00 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 17 00 A0 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BD [10:30:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:30:05]wFMCommunicate OK [10:30:05]requested_item fd.num is exist - process it [10:30:05]SAM_PROTO_GetFieldsCounters [10:30:05]wFMCommunicate request_size=4 [10:30:05]MH_SAM_APDU [10:30:05]CAPDU: 80 13 00 00 [10:30:05]Write to MH i2c: E2 08 00 A1 4C 80 13 00 00 00 00 00 00 69 [10:30:05]Write i2c OK [10:30:05]MH_I2C_Read... [10:30:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:06]Read from MH i2c: E2 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: E2 62 00 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: E2 62 00 A1 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 1C E1 01 00 0E 04 04 00 2D 02 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 F2 [10:30:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 1C E1 01 00 0E 04 04 00 2D 02 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:30:06]wFMCommunicate OK [10:30:06]SAM_PROTO_GetFieldsCounters done [10:30:06]requested_item shift.num is exist - process it [10:30:06]requested_item shift.opened is exist - process it [10:30:06]req_shift_opened [10:30:06]FM_GetShiftState [10:30:06]SAM_PROTO_GetShiftState [10:30:06]wFMCommunicate request_size=4 [10:30:06]MH_SAM_APDU [10:30:06]CAPDU: 80 13 01 00 [10:30:06]Write to MH i2c: E2 08 00 A2 4C 80 13 01 00 00 00 00 00 6B [10:30:06]Write i2c OK [10:30:06]MH_I2C_Read... [10:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:06]Read from MH i2c: E2 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: E2 0E 00 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: E2 0E 00 A2 4C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 CC [10:30:06]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:30:06]wFMCommunicate OK [10:30:06]SAM_PROTO_GetShiftState done [10:30:06]FM_GetShiftState done [10:30:06]req_shift_opened done [10:30:06]requested_item shift.open_date is exist - process it [10:30:06]req_shift_open_date [10:30:06]req_shift_open_date done [10:30:06]produce_requested_data done [10:30:06]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123164,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:30:06]process_action_free close_receipt [10:30:06]json_value_free [10:30:06]json_value_free done [10:30:06]process_json_proto returns [10:30:06]Send response to host [10:30:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123164,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:30:06]free response buf [10:30:06]execute_script done [10:30:06]execute_script returns [10:30:06]free content buf [10:30:06]Sock 7.Close socket [10:30:06]Sock 7.Thread stoped [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:57]accept exits with 9 [10:34:57]New connection [10:34:57]New thread 3066580324 created [10:34:57]Thread 3066723684 joined [10:34:57]Waiting for new connection... [10:34:57] Sock 9.Parse request [10:34:57]Sock 9.Check first char [10:34:57]Sock 9.First char is OK [10:34:57]request: POST /json_proto HTTP/1.0 [10:34:57]Method: POST [10:34:57]URL: /json_proto [10:34:57]Method is POST - this is cgi request [10:34:57]url: /json_proto [10:34:57]query_string will be loaded in cgi processing [10:34:57]execute_cgi json_proto POST (null) [10:34:57]execute_cgi path=json_proto method=POST [10:34:57]POST find Content-Length [10:34:57]Host: 172.17.37.4:8080 [10:34:57]Content-Length: 807 [10:34:57]Content-Type: application/json [10:34:57] [10:34:57]POST finish read [10:34:57]Found Content-Length = 807 [10:34:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:57]execute_script... [10:34:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)717999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:57]POST & json_proto [10:34:57]process_json_proto [10:34:57]json parsed OK: [10:34:57]protocol is kg_v1.0 [10:34:57]action value=close_receipt [10:34:57]process_action close_receipt [10:34:57]cmd_close_receipt [10:34:57]MH_GetDate [10:34:57]Write to MH i2c: F0 00 00 A3 4C DE [10:34:57]Write i2c OK [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: F0 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: F0 09 00 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: F0 09 00 A3 4C 00 5B A4 45 67 B8 5A 43 67 4E [10:34:57]GetLastDocTimeStamp 1732617011 [10:34:57]current date 1732617307 [10:34:57]FM_GetShiftState [10:34:57]SAM_PROTO_GetShiftState [10:34:57]wFMCommunicate request_size=4 [10:34:57]MH_SAM_APDU [10:34:57]CAPDU: 80 13 01 00 [10:34:57]Write to MH i2c: E2 08 00 A4 4C 80 13 01 00 00 00 00 00 6D [10:34:57]Write i2c OK [10:34:57]MH_I2C_Read... [10:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:57]Read from MH i2c: E2 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 0E 00 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: E2 0E 00 A4 4C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 CE [10:34:57]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:34:57]wFMCommunicate OK [10:34:57]SAM_PROTO_GetShiftState done [10:34:57]FM_GetShiftState done [10:34:57]opened in 1732579736 [10:34:57]opened+sec_in_day 1732666136 [10:34:57]quantity*price = 100066 [10:34:57]sum+1 = 100067 [10:34:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 19 26.11.2024 10:35 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123165 ФПД: 76292345444720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T103507&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123165&fm=76292345444720&tin=02508201610067®Number=0000000000092681&sum=100066 [10:34:58]StoreToDocumentArchive [10:34:58]shift 557 fd 123165 [10:34:58]save to /storage/0557/doc_00123165 [10:34:58]save last doc name /storage/0557/doc_00123165 to /storage/kkm_last_doc_name [10:34:58]save OK [10:34:58]Clear old archive folders... [10:34:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:34:58]tlvbuf is 02068740 [10:34:58]SAM_PROTO_ClearQueue [10:34:58]wFMCommunicate request_size=4 [10:34:58]MH_SAM_APDU [10:34:58]CAPDU: 80 09 00 00 [10:34:58]Write to MH i2c: E2 08 00 B1 4C 80 09 00 00 00 00 00 00 6F [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:58]Read from MH i2c: E2 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 03 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 03 00 B1 4C 00 90 00 71 [10:34:58]RAPDU: 90 00 [10:34:58]wFMCommunicate OK [10:34:58]SAM_PROTO_ClearQueue done [10:34:58]KKMCreateOFDPacket [10:34:58]OFDProtocolAddRootSTLVToBuf [10:34:58]FM_MakeSignedData [10:34:58]FM_MakeSignedData [10:34:58]SAM_PROTO_SignData [10:34:58]wFMCommunicate request_size=4 [10:34:58]MH_SAM_APDU [10:34:58]CAPDU: 80 0D 01 02 [10:34:58]Write to MH i2c: E2 08 00 B2 4C 80 0D 01 02 00 00 00 00 77 [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:58]Read from MH i2c: E2 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 03 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 03 00 B2 4C 00 90 00 72 [10:34:58]RAPDU: 90 00 [10:34:58]wFMCommunicate OK [10:34:58]wFMCommunicate request_size=255 [10:34:58]MH_SAM_APDU [10:34:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 5B A4 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1D E1 01 00 35 04 06 00 [10:34:58]Write to MH i2c: E2 02 01 B3 4C 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 5B A4 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1D E1 01 00 35 04 06 00 00 00 CE [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:58]Read from MH i2c: E2 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 03 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 03 00 B3 4C 00 90 00 73 [10:34:58]RAPDU: 90 00 [10:34:58]wFMCommunicate OK [10:34:58]wFMCommunicate request_size=11 [10:34:58]MH_SAM_APDU [10:34:58]CAPDU: 80 0D 02 02 06 45 63 32 26 39 70 [10:34:58]Write to MH i2c: E2 0E 00 B4 4C 80 0D 02 02 06 00 45 63 32 26 39 70 00 00 2F [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:58]Read from MH i2c: E2 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 03 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 03 00 B4 4C 00 90 00 74 [10:34:58]RAPDU: 90 00 [10:34:58]wFMCommunicate OK [10:34:58]wFMCommunicate request_size=4 [10:34:58]MH_SAM_APDU [10:34:58]CAPDU: 80 0D 03 02 [10:34:58]Write to MH i2c: E2 08 00 B5 4C 80 0D 03 02 00 00 00 00 7C [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:58]Read from MH i2c: E2 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 0B 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 0B 00 B5 4C 00 A5 5F 32 8C 09 56 A2 AE 90 00 EE [10:34:58]RAPDU: A5 5F 32 8C 09 56 A2 AE 90 00 [10:34:58]wFMCommunicate OK [10:34:58]SAM_PROTO_SignData done [10:34:58]FM_MakeSignedData done [10:34:58]CreateOFDProtocolMessage [10:34:58]wFMCommunicate request_size=4 [10:34:58]MH_SAM_APDU [10:34:58]CAPDU: 80 11 00 00 [10:34:58]Write to MH i2c: E2 08 00 B6 4C 80 11 00 00 00 00 00 00 7C [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:58]Read from MH i2c: E2 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 17 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 17 00 B6 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D3 [10:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:34:58]wFMCommunicate OK [10:34:58]CreateOFDProtocolMessage done [10:34:58]OFDSenderStorePacket 123165 [10:34:58]StoreOFDPacket docnum=123165 [10:34:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 1B D6 08 01 0F 72 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 5B A4 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1D E1 01 00 35 04 06 00 45 63 32 26 39 70 A5 5F 32 8C 09 56 A2 AE [10:34:58]CheckFolder [10:34:58]dirname=/storage/ofd_packets [10:34:58]CheckFolder done [10:34:58]ProducePacketName [10:34:58]name=ofd_packets/00123165 [10:34:58]NVStorageSaveData ofd_packets/00123165 [10:34:58]File name is /storage/ofd_packets/00123165 [10:34:58]Write 302 bytes [10:34:58]NVStorageSaveData done [10:34:58]OFDSenderStorePacket done [10:34:58]KKMCreateOFDPacket done [10:34:58]NVStorageSaveData kkm_last_timestamp [10:34:58]File name is /storage/kkm_last_timestamp [10:34:58]Write 4 bytes [10:34:58]NVStorageSaveData done [10:34:58]ExternCall_PrintAddStr [10:34:58]wPrintStart [10:34:58]Write to MH i2c: 01 00 00 B7 4C 03 [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: 01 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: 01 07 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: 01 07 00 B7 4C 00 00 00 00 00 FF 0F 18 [10:34:58]RasterBufferAndPrint [10:34:58]line Счет N : (1)717999 [10:34:58]line ИНН: 02508201610067 [10:34:58]line Контрольно-Кассовый Чек [10:34:58]line ПРОДАЖА [10:34:58]line ТРК (МРК, ГНК) : 5 [10:34:58]line Товар: 2710194210 [10:34:58]line ДТ(л)-К-5 [10:34:58]line 13.360 * 74.90 [10:34:58]line = 1000.66 [10:34:58]line НДС 12% НСП 1% [10:34:58]line > о реализуемом товаре [10:34:58]line ИТОГО: 1000.66 [10:34:58]line НСП 1% : 8.85 [10:34:58]line НДС 12% : 106.26 [10:34:58]line Наличными: 0.00 [10:34:58]line Безнал.: 1000.66 [10:34:58]line Место: АЗС № 64 "Партнер Нефть" [10:34:58]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:34:58]line СНО: Общий режим [10:34:58]line Чек 19 26.11.2024 10:35 [10:34:58]line Смена: 557 ФФД: 1.0 [10:34:58]line ЗНМ: 0300000033 [10:34:58]line РНМ: 0000000000092681 [10:34:58]line Версия ККМ: 001 [10:34:58]line Платежная система: O! деньги [10:34:58]line ФМ: 0000000000874881 [10:34:58]line ФД: 123165 [10:34:58]line ФПД: 76292345444720 [10:34:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T103507&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123165&fm=76292345444720&tin=02508201610067®Number=0000000000092681&sum=100066 [10:34:59]written 0, free lines is 4095 [10:34:59]OFD Sender: Processing packet 123165 [packets to send 7, broken 6] [10:34:59]ProducePacketName [10:34:59]name=ofd_packets/00123165 [10:34:59]OFD Sender: To server: pG, [10:34:59]CommunicateWithHost lk.salyk.kg:30040 [10:34:59]ConnectInit lk.salyk.kg [10:34:59]Connected sock=10 [10:34:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 1B D6 08 01 0F 72 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 5B A4 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1D E1 01 00 35 04 06 00 45 63 32 26 39 70 A5 5F 32 8C 09 56 A2 AE [10:34:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 78 6A 47 00 EC D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1D E1 01 00 F4 03 04 00 1D 50 45 67 B6 04 01 00 00 5C 12 1D 5F E1 AC 1D 07 [10:34:59]CommunicateWithHost err = 0 [10:34:59]CheckOFDResponse [10:34:59]1017 (14) - 77093643461234 [10:34:59]1041 (16) - 0000000000874881 [10:34:59]1040 (4) - 123165 [10:34:59]1012 (4) - 26.11.2024 04:35 [10:34:59]1206 (1) - 0 [10:34:59]OFD Sender: Remove packet 123165 [10:34:59]ProducePacketName [10:34:59]name=ofd_packets/00123165 [10:34:59]NVStorageDeleteData [10:34:59]Write to MH i2c: 01 00 00 E1 4C 2D [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: 01 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: 01 07 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: 01 07 00 E1 4C 00 00 00 00 00 62 0C A2 [10:34:59]RasterBufferAndPrint [10:34:59]line [10:34:59]line [10:34:59]line [10:34:59]line [10:34:59]line [10:34:59]written 0, free lines is 3176 [10:34:59]MH_Cut [10:34:59]Write to MH i2c: D1 01 00 E8 4C 01 06 [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: D1 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: D1 01 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: D1 01 00 E8 4C 00 05 [10:34:59]Write to MH i2c: 01 00 00 E9 4C 35 [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]OFD Sender: No OFD packet to send [10:35:00]*** Cut start [10:35:00]*** Partial cut [10:35:00]*** CUTSNS_PIN = 1 [10:35:00]*** CUTSNS_PIN = 0 [10:35:01]*** Brake cut motor [10:35:01]Read from MH i2c: 01 [10:35:01]MH_I2C_Read... [10:35:01]*** Stop cut motor [10:35:01]*** Cut end [10:35:01]Read from MH i2c: 01 07 00 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: 01 07 00 E9 4C 00 00 00 00 00 FF 0F 4A [10:35:01]process_action close_receipt done [10:35:01]requested_data is exist [10:35:01]produce_requested_data [10:35:01]requested_item fm.sn is exist - process it [10:35:01]wFMCommunicate request_size=4 [10:35:01]MH_SAM_APDU [10:35:01]CAPDU: 80 11 00 00 [10:35:01]Write to MH i2c: E2 08 00 EA 4C 80 11 00 00 00 00 00 00 B0 [10:35:01]Write i2c OK [10:35:01]MH_I2C_Read... [10:35:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:01]Read from MH i2c: E2 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: E2 17 00 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: E2 17 00 EA 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 07 [10:35:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:35:01]wFMCommunicate OK [10:35:01]requested_item fd.num is exist - process it [10:35:01]SAM_PROTO_GetFieldsCounters [10:35:01]wFMCommunicate request_size=4 [10:35:01]MH_SAM_APDU [10:35:01]CAPDU: 80 13 00 00 [10:35:01]Write to MH i2c: E2 08 00 EB 4C 80 13 00 00 00 00 00 00 B3 [10:35:01]Write i2c OK [10:35:01]MH_I2C_Read... [10:35:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:01]Read from MH i2c: E2 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: E2 62 00 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: E2 62 00 EB 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 1D E1 01 00 0E 04 04 00 2D 02 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 40 [10:35:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 1D E1 01 00 0E 04 04 00 2D 02 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 [10:35:01]wFMCommunicate OK [10:35:01]SAM_PROTO_GetFieldsCounters done [10:35:01]requested_item shift.num is exist - process it [10:35:01]requested_item shift.opened is exist - process it [10:35:01]req_shift_opened [10:35:01]FM_GetShiftState [10:35:01]SAM_PROTO_GetShiftState [10:35:01]wFMCommunicate request_size=4 [10:35:01]MH_SAM_APDU [10:35:01]CAPDU: 80 13 01 00 [10:35:01]Write to MH i2c: E2 08 00 EC 4C 80 13 01 00 00 00 00 00 B5 [10:35:01]Write i2c OK [10:35:01]MH_I2C_Read... [10:35:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:01]Read from MH i2c: E2 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: E2 0E 00 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: E2 0E 00 EC 4C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 16 [10:35:01]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:35:01]wFMCommunicate OK [10:35:01]SAM_PROTO_GetShiftState done [10:35:01]FM_GetShiftState done [10:35:01]req_shift_opened done [10:35:01]requested_item shift.open_date is exist - process it [10:35:01]req_shift_open_date [10:35:01]req_shift_open_date done [10:35:01]produce_requested_data done [10:35:01]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123165,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:35:01]process_action_free close_receipt [10:35:01]json_value_free [10:35:01]json_value_free done [10:35:01]process_json_proto returns [10:35:01]Send response to host [10:35:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123165,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:35:01]free response buf [10:35:01]execute_script done [10:35:01]execute_script returns [10:35:01]free content buf [10:35:01]Sock 9.Close socket [10:35:01]Sock 9.Thread stoped [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:05]OFD Sender: No OFD packet to send [10:38:10]OFD Sender: No OFD packet to send [10:38:15]OFD Sender: No OFD packet to send [10:38:20]OFD Sender: No OFD packet to send [10:38:25]OFD Sender: No OFD packet to send [10:38:30]OFD Sender: No OFD packet to send [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:55]OFD Sender: No OFD packet to send [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:16]accept exits with 7 [10:39:16]New connection [10:39:16]New thread 3066723684 created [10:39:16]Thread 3066580324 joined [10:39:16]Waiting for new connection... [10:39:16] Sock 7.Parse request [10:39:16]Sock 7.Check first char [10:39:16]Sock 7.First char is OK [10:39:16]request: POST /json_proto HTTP/1.0 [10:39:16]Method: POST [10:39:16]URL: /json_proto [10:39:16]Method is POST - this is cgi request [10:39:16]url: /json_proto [10:39:16]query_string will be loaded in cgi processing [10:39:16]execute_cgi json_proto POST (null) [10:39:16]execute_cgi path=json_proto method=POST [10:39:16]POST find Content-Length [10:39:16]Host: 172.17.37.4:8080 [10:39:16]Content-Length: 807 [10:39:16]Content-Type: application/json [10:39:16] [10:39:16]POST finish read [10:39:16]Found Content-Length = 807 [10:39:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 20.030, "sum" : 1500.25, "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" : 1500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:16]execute_script... [10:39:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 20.030, "sum" : 1500.25, "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" : 1500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:16]POST & json_proto [10:39:16]process_json_proto [10:39:16]json parsed OK: [10:39:16]protocol is kg_v1.0 [10:39:16]action value=close_receipt [10:39:16]process_action close_receipt [10:39:16]cmd_close_receipt [10:39:16]MH_GetDate [10:39:16]Write to MH i2c: F0 00 00 ED 4C 28 [10:39:16]Write i2c OK [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: F0 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: F0 09 00 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: F0 09 00 ED 4C 00 5E A5 45 67 B8 5A 43 67 9C [10:39:16]GetLastDocTimeStamp 1732617307 [10:39:16]current date 1732617566 [10:39:16]FM_GetShiftState [10:39:16]SAM_PROTO_GetShiftState [10:39:16]wFMCommunicate request_size=4 [10:39:16]MH_SAM_APDU [10:39:16]CAPDU: 80 13 01 00 [10:39:16]Write to MH i2c: E2 08 00 EE 4C 80 13 01 00 00 00 00 00 B7 [10:39:16]Write i2c OK [10:39:16]MH_I2C_Read... [10:39:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:16]Read from MH i2c: E2 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: E2 0E 00 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: E2 0E 00 EE 4C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 18 [10:39:16]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:39:16]wFMCommunicate OK [10:39:16]SAM_PROTO_GetShiftState done [10:39:16]FM_GetShiftState done [10:39:16]opened in 1732579736 [10:39:16]opened+sec_in_day 1732666136 [10:39:16]quantity*price = 150024 [10:39:16]sum+1 = 150026 [10:39:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.25 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.25 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 20 26.11.2024 10:39 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123166 ФПД: 208184519157201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T103926&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123166&fm=208184519157201&tin=02508201610067®Number=0000000000092681&sum=150025 [10:39:17]StoreToDocumentArchive [10:39:17]shift 557 fd 123166 [10:39:17]save to /storage/0557/doc_00123166 [10:39:17]save last doc name /storage/0557/doc_00123166 to /storage/kkm_last_doc_name [10:39:17]save OK [10:39:17]Clear old archive folders... [10:39:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:39:17]tlvbuf is 02138C20 [10:39:17]SAM_PROTO_ClearQueue [10:39:17]wFMCommunicate request_size=4 [10:39:17]MH_SAM_APDU [10:39:17]CAPDU: 80 09 00 00 [10:39:17]Write to MH i2c: E2 08 00 FB 4C 80 09 00 00 00 00 00 00 B9 [10:39:17]Write i2c OK [10:39:17]MH_I2C_Read... [10:39:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:17]Read from MH i2c: E2 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 03 00 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 03 00 FB 4C 00 90 00 BB [10:39:17]RAPDU: 90 00 [10:39:17]wFMCommunicate OK [10:39:17]SAM_PROTO_ClearQueue done [10:39:17]KKMCreateOFDPacket [10:39:17]OFDProtocolAddRootSTLVToBuf [10:39:17]FM_MakeSignedData [10:39:17]FM_MakeSignedData [10:39:17]SAM_PROTO_SignData [10:39:17]wFMCommunicate request_size=4 [10:39:17]MH_SAM_APDU [10:39:17]CAPDU: 80 0D 01 02 [10:39:17]Write to MH i2c: E2 08 00 FC 4C 80 0D 01 02 00 00 00 00 C1 [10:39:17]Write i2c OK [10:39:17]MH_I2C_Read... [10:39:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:17]Read from MH i2c: E2 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 03 00 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 03 00 FC 4C 00 90 00 BC [10:39:17]RAPDU: 90 00 [10:39:17]wFMCommunicate OK [10:39:17]wFMCommunicate request_size=255 [10:39:17]MH_SAM_APDU [10:39:17]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 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 09 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5E A5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1E E1 01 00 35 04 06 00 [10:39:17]Write to MH i2c: E2 02 01 FD 4C 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 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 09 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5E A5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1E E1 01 00 35 04 06 00 00 00 96 [10:39:17]Write i2c OK [10:39:17]MH_I2C_Read... [10:39:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:17]Read from MH i2c: E2 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 03 00 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 03 00 FD 4C 00 90 00 BD [10:39:17]RAPDU: 90 00 [10:39:17]wFMCommunicate OK [10:39:17]wFMCommunicate request_size=11 [10:39:17]MH_SAM_APDU [10:39:17]CAPDU: 80 0D 02 02 06 BD 57 BC 4F E5 D1 [10:39:17]Write to MH i2c: E2 0E 00 FE 4C 80 0D 02 02 06 00 BD 57 BC 4F E5 D1 00 00 A5 [10:39:17]Write i2c OK [10:39:17]MH_I2C_Read... [10:39:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:17]Read from MH i2c: E2 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 03 00 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 03 00 FE 4C 00 90 00 BE [10:39:17]RAPDU: 90 00 [10:39:17]wFMCommunicate OK [10:39:17]wFMCommunicate request_size=4 [10:39:17]MH_SAM_APDU [10:39:17]CAPDU: 80 0D 03 02 [10:39:17]Write to MH i2c: E2 08 00 FF 4C 80 0D 03 02 00 00 00 00 C6 [10:39:17]Write i2c OK [10:39:17]MH_I2C_Read... [10:39:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:18]Read from MH i2c: E2 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 0B 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 0B 00 FF 4C 00 F0 6B 57 DE 7E 7D 1F 65 90 00 D6 [10:39:18]RAPDU: F0 6B 57 DE 7E 7D 1F 65 90 00 [10:39:18]wFMCommunicate OK [10:39:18]SAM_PROTO_SignData done [10:39:18]FM_MakeSignedData done [10:39:18]CreateOFDProtocolMessage [10:39:18]wFMCommunicate request_size=4 [10:39:18]MH_SAM_APDU [10:39:18]CAPDU: 80 11 00 00 [10:39:18]Write to MH i2c: E2 08 00 00 4D 80 11 00 00 00 00 00 00 C7 [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:18]Read from MH i2c: E2 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 17 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 17 00 00 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1E [10:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:39:18]wFMCommunicate OK [10:39:18]CreateOFDProtocolMessage done [10:39:18]OFDSenderStorePacket 123166 [10:39:18]StoreOFDPacket docnum=123166 [10:39:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 F3 BF 08 01 AE A4 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 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 09 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5E A5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1E E1 01 00 35 04 06 00 BD 57 BC 4F E5 D1 F0 6B 57 DE 7E 7D 1F 65 [10:39:18]CheckFolder [10:39:18]dirname=/storage/ofd_packets [10:39:18]CheckFolder done [10:39:18]ProducePacketName [10:39:18]name=ofd_packets/00123166 [10:39:18]NVStorageSaveData ofd_packets/00123166 [10:39:18]File name is /storage/ofd_packets/00123166 [10:39:18]Write 302 bytes [10:39:18]NVStorageSaveData done [10:39:18]OFDSenderStorePacket done [10:39:18]KKMCreateOFDPacket done [10:39:18]NVStorageSaveData kkm_last_timestamp [10:39:18]File name is /storage/kkm_last_timestamp [10:39:18]Write 4 bytes [10:39:18]NVStorageSaveData done [10:39:18]ExternCall_PrintAddStr [10:39:18]wPrintStart [10:39:18]Write to MH i2c: 01 00 00 01 4D 4E [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: 01 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: 01 07 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: 01 07 00 01 4D 00 00 00 00 00 FF 0F 63 [10:39:18]RasterBufferAndPrint [10:39:18]line Счет N : (1)718000 [10:39:18]line ИНН: 02508201610067 [10:39:18]line Контрольно-Кассовый Чек [10:39:18]line ПРОДАЖА [10:39:18]line ТРК (МРК, ГНК) : 5 [10:39:18]line Товар: 2710194210 [10:39:18]line ДТ(л)-К-5 [10:39:18]line 20.030 * 74.90 [10:39:18]line = 1500.25 [10:39:18]line НДС 12% НСП 1% [10:39:18]line > о реализуемом товаре [10:39:18]line ИТОГО: 1500.25 [10:39:18]line НСП 1% : 13.28 [10:39:18]line НДС 12% : 159.32 [10:39:18]line Наличными: 0.00 [10:39:18]line Безнал.: 1500.25 [10:39:18]line Место: АЗС № 64 "Партнер Нефть" [10:39:18]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:39:18]line СНО: Общий режим [10:39:18]line Чек 20 26.11.2024 10:39 [10:39:18]line Смена: 557 ФФД: 1.0 [10:39:18]line ЗНМ: 0300000033 [10:39:18]line РНМ: 0000000000092681 [10:39:18]line Версия ККМ: 001 [10:39:18]line Платежная система: O! деньги [10:39:18]line ФМ: 0000000000874881 [10:39:18]line ФД: 123166 [10:39:18]line ФПД: 208184519157201 [10:39:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T103926&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123166&fm=208184519157201&tin=02508201610067®Number=0000000000092681&sum=150025 [10:39:18]written 0, free lines is 4095 [10:39:18]OFD Sender: Processing packet 123166 [packets to send 7, broken 6] [10:39:18]ProducePacketName [10:39:18]name=ofd_packets/00123166 [10:39:18]OFD Sender: To server: pG, [10:39:18]CommunicateWithHost lk.salyk.kg:30040 [10:39:18]ConnectInit lk.salyk.kg [10:39:18]Connected sock=10 [10:39:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 F3 BF 08 01 AE A4 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 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 09 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5E A5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1E E1 01 00 35 04 06 00 BD 57 BC 4F E5 D1 F0 6B 57 DE 7E 7D 1F 65 [10:39:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 FB D6 47 00 36 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1E E1 01 00 F4 03 04 00 21 51 45 67 B6 04 01 00 00 E5 E3 67 42 6D 98 2B 32 [10:39:18]CommunicateWithHost err = 0 [10:39:18]CheckOFDResponse [10:39:18]1017 (14) - 77093643461234 [10:39:18]1041 (16) - 0000000000874881 [10:39:18]1040 (4) - 123166 [10:39:18]1012 (4) - 26.11.2024 04:40 [10:39:18]1206 (1) - 0 [10:39:18]OFD Sender: Remove packet 123166 [10:39:18]ProducePacketName [10:39:18]name=ofd_packets/00123166 [10:39:18]NVStorageDeleteData [10:39:18]Write to MH i2c: 01 00 00 2B 4D 78 [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: 01 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: 01 07 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: 01 07 00 2B 4D 00 00 00 00 00 68 0C F3 [10:39:18]RasterBufferAndPrint [10:39:18]line [10:39:18]line [10:39:18]line [10:39:18]line [10:39:18]line [10:39:18]written 0, free lines is 3180 [10:39:18]MH_Cut [10:39:18]Write to MH i2c: D1 01 00 32 4D 01 51 [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: D1 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: D1 01 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: D1 01 00 32 4D 00 50 [10:39:18]Write to MH i2c: 01 00 00 33 4D 80 [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]OFD Sender: No OFD packet to send [10:39:19]*** Cut start [10:39:19]*** Partial cut [10:39:19]*** CUTSNS_PIN = 1 [10:39:19]*** CUTSNS_PIN = 0 [10:39:20]*** Brake cut motor [10:39:20]Read from MH i2c: 01 [10:39:20]MH_I2C_Read... [10:39:20]*** Stop cut motor [10:39:20]*** Cut end [10:39:20]Read from MH i2c: 01 07 00 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: 01 07 00 33 4D 00 00 00 00 00 FF 0F 95 [10:39:20]process_action close_receipt done [10:39:20]requested_data is exist [10:39:20]produce_requested_data [10:39:20]requested_item fm.sn is exist - process it [10:39:20]wFMCommunicate request_size=4 [10:39:20]MH_SAM_APDU [10:39:20]CAPDU: 80 11 00 00 [10:39:20]Write to MH i2c: E2 08 00 34 4D 80 11 00 00 00 00 00 00 FB [10:39:20]Write i2c OK [10:39:20]MH_I2C_Read... [10:39:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:20]Read from MH i2c: E2 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 17 00 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 17 00 34 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 52 [10:39:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:39:20]wFMCommunicate OK [10:39:20]requested_item fd.num is exist - process it [10:39:20]SAM_PROTO_GetFieldsCounters [10:39:20]wFMCommunicate request_size=4 [10:39:20]MH_SAM_APDU [10:39:20]CAPDU: 80 13 00 00 [10:39:20]Write to MH i2c: E2 08 00 35 4D 80 13 00 00 00 00 00 00 FE [10:39:20]Write i2c OK [10:39:20]MH_I2C_Read... [10:39:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:20]Read from MH i2c: E2 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 62 00 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 62 00 35 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 1E E1 01 00 0E 04 04 00 2D 02 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 8F [10:39:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 1E E1 01 00 0E 04 04 00 2D 02 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 [10:39:20]wFMCommunicate OK [10:39:20]SAM_PROTO_GetFieldsCounters done [10:39:20]requested_item shift.num is exist - process it [10:39:20]requested_item shift.opened is exist - process it [10:39:20]req_shift_opened [10:39:20]FM_GetShiftState [10:39:20]SAM_PROTO_GetShiftState [10:39:20]wFMCommunicate request_size=4 [10:39:20]MH_SAM_APDU [10:39:20]CAPDU: 80 13 01 00 [10:39:20]Write to MH i2c: E2 08 00 36 4D 80 13 01 00 00 00 00 00 00 [10:39:20]Write i2c OK [10:39:20]MH_I2C_Read... [10:39:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:20]Read from MH i2c: E2 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 0E 00 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 0E 00 36 4D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 61 [10:39:20]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:39:20]wFMCommunicate OK [10:39:20]SAM_PROTO_GetShiftState done [10:39:20]FM_GetShiftState done [10:39:20]req_shift_opened done [10:39:20]requested_item shift.open_date is exist - process it [10:39:20]req_shift_open_date [10:39:20]req_shift_open_date done [10:39:20]produce_requested_data done [10:39:20]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123166,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:39:20]process_action_free close_receipt [10:39:20]json_value_free [10:39:20]json_value_free done [10:39:20]process_json_proto returns [10:39:20]Send response to host [10:39:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123166,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:39:20]free response buf [10:39:20]execute_script done [10:39:20]execute_script returns [10:39:20]free content buf [10:39:20]Sock 7.Close socket [10:39:20]Sock 7.Thread stoped [10:39:21]accept exits with 9 [10:39:21]New connection [10:39:21]New thread 3066580324 created [10:39:21]Thread 3066723684 joined [10:39:21]Waiting for new connection... [10:39:21] Sock 9.Parse request [10:39:21]Sock 9.Check first char [10:39:21]Sock 9.First char is OK [10:39:21]request: POST /json_proto HTTP/1.0 [10:39:21]Method: POST [10:39:21]URL: /json_proto [10:39:21]Method is POST - this is cgi request [10:39:21]url: /json_proto [10:39:21]query_string will be loaded in cgi processing [10:39:21]execute_cgi json_proto POST (null) [10:39:21]execute_cgi path=json_proto method=POST [10:39:21]POST find Content-Length [10:39:21]Host: 172.17.37.4:8080 [10:39:21]Content-Length: 677 [10:39:21]Content-Type: application/json [10:39:21] [10:39:21]POST finish read [10:39:21]Found Content-Length = 677 [10:39:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:21]execute_script... [10:39:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:21]POST & json_proto [10:39:21]process_json_proto [10:39:21]json parsed OK: [10:39:21]protocol is kg_v1.0 [10:39:21]action value=close_receipt [10:39:21]process_action close_receipt [10:39:21]cmd_close_receipt [10:39:21]MH_GetDate [10:39:21]Write to MH i2c: F0 00 00 37 4D 73 [10:39:21]Write i2c OK [10:39:21]MH_I2C_Read... [10:39:21]Read from MH i2c: F0 [10:39:21]MH_I2C_Read... [10:39:21]Read from MH i2c: F0 09 00 [10:39:21]MH_I2C_Read... [10:39:21]Read from MH i2c: F0 09 00 37 4D 00 63 A5 45 67 B8 5A 43 67 EC [10:39:21]GetLastDocTimeStamp 1732617566 [10:39:21]current date 1732617571 [10:39:21]FM_GetShiftState [10:39:21]SAM_PROTO_GetShiftState [10:39:21]wFMCommunicate request_size=4 [10:39:21]MH_SAM_APDU [10:39:21]CAPDU: 80 13 01 00 [10:39:21]Write to MH i2c: E2 08 00 38 4D 80 13 01 00 00 00 00 00 02 [10:39:21]Write i2c OK [10:39:21]MH_I2C_Read... [10:39:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:21]Read from MH i2c: E2 [10:39:21]MH_I2C_Read... [10:39:21]Read from MH i2c: E2 0E 00 [10:39:21]MH_I2C_Read... [10:39:21]Read from MH i2c: E2 0E 00 38 4D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 63 [10:39:21]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:39:21]wFMCommunicate OK [10:39:21]SAM_PROTO_GetShiftState done [10:39:21]FM_GetShiftState done [10:39:21]opened in 1732579736 [10:39:21]opened+sec_in_day 1732666136 [10:39:21]quantity*price = 50010 [10:39:21]sum+1 = 50012 [10:39:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 21 26.11.2024 10:39 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123167 ФПД: 192287312061529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T103931&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123167&fm=192287312061529&tin=02508201610067®Number=0000000000092681&sum=50000 [10:39:22]StoreToDocumentArchive [10:39:22]shift 557 fd 123167 [10:39:22]save to /storage/0557/doc_00123167 [10:39:22]save last doc name /storage/0557/doc_00123167 to /storage/kkm_last_doc_name [10:39:22]save OK [10:39:22]Clear old archive folders... [10:39:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:22]tlvbuf is 0208B180 [10:39:22]SAM_PROTO_ClearQueue [10:39:22]wFMCommunicate request_size=4 [10:39:22]MH_SAM_APDU [10:39:22]CAPDU: 80 09 00 00 [10:39:22]Write to MH i2c: E2 08 00 45 4D 80 09 00 00 00 00 00 00 04 [10:39:22]Write i2c OK [10:39:22]MH_I2C_Read... [10:39:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:22]Read from MH i2c: E2 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: E2 03 00 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: E2 03 00 45 4D 00 90 00 06 [10:39:22]RAPDU: 90 00 [10:39:22]wFMCommunicate OK [10:39:22]SAM_PROTO_ClearQueue done [10:39:22]KKMCreateOFDPacket [10:39:22]OFDProtocolAddRootSTLVToBuf [10:39:22]FM_MakeSignedData [10:39:22]FM_MakeSignedData [10:39:22]SAM_PROTO_SignData [10:39:22]wFMCommunicate request_size=4 [10:39:22]MH_SAM_APDU [10:39:22]CAPDU: 80 0D 01 02 [10:39:22]Write to MH i2c: E2 08 00 46 4D 80 0D 01 02 00 00 00 00 0C [10:39:22]Write i2c OK [10:39:22]MH_I2C_Read... [10:39:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:22]Read from MH i2c: E2 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: E2 03 00 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: E2 03 00 46 4D 00 90 00 07 [10:39:22]RAPDU: 90 00 [10:39:22]wFMCommunicate OK [10:39:22]wFMCommunicate request_size=255 [10:39:22]MH_SAM_APDU [10:39:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 63 A5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1F E1 01 00 35 04 06 00 AE [10:39:22]Write to MH i2c: E2 02 01 47 4D 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 63 A5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1F E1 01 00 35 04 06 00 AE 00 00 1A [10:39:22]Write i2c OK [10:39:22]MH_I2C_Read... [10:39:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:23]Read from MH i2c: E2 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 03 00 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 03 00 47 4D 00 90 00 08 [10:39:23]RAPDU: 90 00 [10:39:23]wFMCommunicate OK [10:39:23]wFMCommunicate request_size=10 [10:39:23]MH_SAM_APDU [10:39:23]CAPDU: 80 0D 02 02 05 E2 60 EE 24 59 [10:39:23]Write to MH i2c: E2 0D 00 48 4D 80 0D 02 02 05 00 E2 60 EE 24 59 00 00 C6 [10:39:23]Write i2c OK [10:39:23]MH_I2C_Read... [10:39:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:23]Read from MH i2c: E2 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 03 00 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 03 00 48 4D 00 90 00 09 [10:39:23]RAPDU: 90 00 [10:39:23]wFMCommunicate OK [10:39:23]wFMCommunicate request_size=4 [10:39:23]MH_SAM_APDU [10:39:23]CAPDU: 80 0D 03 02 [10:39:23]Write to MH i2c: E2 08 00 49 4D 80 0D 03 02 00 00 00 00 11 [10:39:23]Write i2c OK [10:39:23]MH_I2C_Read... [10:39:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:23]Read from MH i2c: E2 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 0B 00 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 0B 00 49 4D 00 4E 0A 4C 7F C0 48 53 26 90 00 B6 [10:39:23]RAPDU: 4E 0A 4C 7F C0 48 53 26 90 00 [10:39:23]wFMCommunicate OK [10:39:23]SAM_PROTO_SignData done [10:39:23]FM_MakeSignedData done [10:39:23]CreateOFDProtocolMessage [10:39:23]wFMCommunicate request_size=4 [10:39:23]MH_SAM_APDU [10:39:23]CAPDU: 80 11 00 00 [10:39:23]Write to MH i2c: E2 08 00 4A 4D 80 11 00 00 00 00 00 00 11 [10:39:23]Write i2c OK [10:39:23]MH_I2C_Read... [10:39:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:23]Read from MH i2c: E2 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 17 00 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 17 00 4A 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 68 [10:39:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:39:23]wFMCommunicate OK [10:39:23]CreateOFDProtocolMessage done [10:39:23]OFDSenderStorePacket 123167 [10:39:23]StoreOFDPacket docnum=123167 [10:39:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 52 25 07 01 55 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 63 A5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1F E1 01 00 35 04 06 00 AE E2 60 EE 24 59 4E 0A 4C 7F C0 48 53 26 [10:39:23]CheckFolder [10:39:23]dirname=/storage/ofd_packets [10:39:23]CheckFolder done [10:39:23]ProducePacketName [10:39:23]name=ofd_packets/00123167 [10:39:23]NVStorageSaveData ofd_packets/00123167 [10:39:23]File name is /storage/ofd_packets/00123167 [10:39:23]Write 301 bytes [10:39:23]NVStorageSaveData done [10:39:23]OFDSenderStorePacket done [10:39:23]KKMCreateOFDPacket done [10:39:23]NVStorageSaveData kkm_last_timestamp [10:39:23]File name is /storage/kkm_last_timestamp [10:39:23]Write 4 bytes [10:39:23]NVStorageSaveData done [10:39:23]ExternCall_PrintAddStr [10:39:23]wPrintStart [10:39:23]Write to MH i2c: 01 00 00 4B 4D 98 [10:39:23]Write i2c OK [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: 01 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: 01 07 00 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: 01 07 00 4B 4D 00 00 00 00 00 FF 0F AD [10:39:23]RasterBufferAndPrint [10:39:23]line Счет N : (1)718002 [10:39:23]line ИНН: 02508201610067 [10:39:23]line Контрольно-Кассовый Чек [10:39:23]line ПРОДАЖА [10:39:23]line ТРК (МРК, ГНК) : 22 [10:39:23]line Товар: 2710124130 [10:39:23]line Аи-92-К-4 [10:39:23]line 7.420 * 67.40 [10:39:23]line = 500.11 [10:39:23]line НДС 12% НСП 1% [10:39:23]line > о реализуемом товаре [10:39:23]line ОКРУГЛЕНИЕ: -0.11 [10:39:23]line ИТОГО: 500.00 [10:39:23]line Внесено: 500.00 [10:39:23]line СДАЧА: 0.00 [10:39:23]line НСП 1% : 4.43 [10:39:23]line НДС 12% : 53.11 [10:39:23]line Наличными: 500.00 [10:39:23]line Безнал.: 0.00 [10:39:23]line Место: АЗС № 64 "Партнер Нефть" [10:39:23]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:39:23]line СНО: Общий режим [10:39:23]line Чек 21 26.11.2024 10:39 [10:39:23]line Смена: 557 ФФД: 1.0 [10:39:23]line ЗНМ: 0300000033 [10:39:23]line РНМ: 0000000000092681 [10:39:23]line Версия ККМ: 001 [10:39:23]line ФМ: 0000000000874881 [10:39:23]line ФД: 123167 [10:39:23]line ФПД: 192287312061529 [10:39:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T103931&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123167&fm=192287312061529&tin=02508201610067®Number=0000000000092681&sum=50000 [10:39:23]OFD Sender: Processing packet 123167 [packets to send 7, broken 6] [10:39:23]ProducePacketName [10:39:23]name=ofd_packets/00123167 [10:39:23]written 0, free lines is 4095 [10:39:23]OFD Sender: To server: pG, [10:39:23]CommunicateWithHost lk.salyk.kg:30040 [10:39:23]ConnectInit lk.salyk.kg [10:39:23]Connected sock=10 [10:39:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 52 25 07 01 55 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 63 A5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1F E1 01 00 35 04 06 00 AE E2 60 EE 24 59 4E 0A 4C 7F C0 48 53 26 [10:39:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 E1 87 47 00 FF 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 1F E1 01 00 F4 03 04 00 26 51 45 67 B6 04 01 00 00 5C 92 DB 95 9C 29 1E 90 [10:39:23]CommunicateWithHost err = 0 [10:39:23]CheckOFDResponse [10:39:23]1017 (14) - 77093643461234 [10:39:23]1041 (16) - 0000000000874881 [10:39:23]1040 (4) - 123167 [10:39:23]1012 (4) - 26.11.2024 04:40 [10:39:23]1206 (1) - 0 [10:39:23]OFD Sender: Remove packet 123167 [10:39:23]ProducePacketName [10:39:23]name=ofd_packets/00123167 [10:39:23]NVStorageDeleteData [10:39:24]Write to MH i2c: 01 00 00 76 4D C3 [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: 01 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: 01 07 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: 01 07 00 76 4D 00 00 00 00 00 54 0C 2A [10:39:24]RasterBufferAndPrint [10:39:24]line [10:39:24]line [10:39:24]line [10:39:24]line [10:39:24]line [10:39:24]written 0, free lines is 3165 [10:39:24]MH_Cut [10:39:24]Write to MH i2c: D1 01 00 7D 4D 01 9C [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: D1 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: D1 01 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: D1 01 00 7D 4D 00 9B [10:39:24]Write to MH i2c: 01 00 00 7E 4D CB [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]OFD Sender: No OFD packet to send [10:39:25]*** Cut start [10:39:25]*** Partial cut [10:39:25]*** CUTSNS_PIN = 1 [10:39:25]*** CUTSNS_PIN = 0 [10:39:25]*** Brake cut motor [10:39:26]Read from MH i2c: 01 [10:39:26]MH_I2C_Read... [10:39:26]*** Stop cut motor [10:39:26]*** Cut end [10:39:26]Read from MH i2c: 01 07 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: 01 07 00 7E 4D 00 00 00 00 00 FF 0F E0 [10:39:26]process_action close_receipt done [10:39:26]requested_data is exist [10:39:26]produce_requested_data [10:39:26]requested_item fm.sn is exist - process it [10:39:26]wFMCommunicate request_size=4 [10:39:26]MH_SAM_APDU [10:39:26]CAPDU: 80 11 00 00 [10:39:26]Write to MH i2c: E2 08 00 7F 4D 80 11 00 00 00 00 00 00 46 [10:39:26]Write i2c OK [10:39:26]MH_I2C_Read... [10:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:26]Read from MH i2c: E2 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 17 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 17 00 7F 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 9D [10:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:39:26]wFMCommunicate OK [10:39:26]requested_item fd.num is exist - process it [10:39:26]SAM_PROTO_GetFieldsCounters [10:39:26]wFMCommunicate request_size=4 [10:39:26]MH_SAM_APDU [10:39:26]CAPDU: 80 13 00 00 [10:39:26]Write to MH i2c: E2 08 00 80 4D 80 13 00 00 00 00 00 00 49 [10:39:26]Write i2c OK [10:39:26]MH_I2C_Read... [10:39:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:26]Read from MH i2c: E2 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 62 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 62 00 80 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 1F E1 01 00 0E 04 04 00 2D 02 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 DE [10:39:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 1F E1 01 00 0E 04 04 00 2D 02 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 [10:39:26]wFMCommunicate OK [10:39:26]SAM_PROTO_GetFieldsCounters done [10:39:26]requested_item shift.num is exist - process it [10:39:26]requested_item shift.opened is exist - process it [10:39:26]req_shift_opened [10:39:26]FM_GetShiftState [10:39:26]SAM_PROTO_GetShiftState [10:39:26]wFMCommunicate request_size=4 [10:39:26]MH_SAM_APDU [10:39:26]CAPDU: 80 13 01 00 [10:39:26]Write to MH i2c: E2 08 00 81 4D 80 13 01 00 00 00 00 00 4B [10:39:26]Write i2c OK [10:39:26]MH_I2C_Read... [10:39:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:26]Read from MH i2c: E2 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 0E 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 0E 00 81 4D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 AC [10:39:26]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:39:26]wFMCommunicate OK [10:39:26]SAM_PROTO_GetShiftState done [10:39:26]FM_GetShiftState done [10:39:26]req_shift_opened done [10:39:26]requested_item shift.open_date is exist - process it [10:39:26]req_shift_open_date [10:39:26]req_shift_open_date done [10:39:26]produce_requested_data done [10:39:26]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123167,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:39:26]process_action_free close_receipt [10:39:26]json_value_free [10:39:26]json_value_free done [10:39:26]process_json_proto returns [10:39:26]Send response to host [10:39:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123167,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:39:26]free response buf [10:39:26]execute_script done [10:39:26]execute_script returns [10:39:26]free content buf [10:39:26]Sock 9.Close socket [10:39:26]Sock 9.Thread stoped [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]accept exits with 7 [10:39:44]New connection [10:39:44]New thread 3066723684 created [10:39:44]Thread 3066580324 joined [10:39:44]Waiting for new connection... [10:39:44] Sock 7.Parse request [10:39:44]Sock 7.Check first char [10:39:44]Sock 7.First char is OK [10:39:44]request: POST /json_proto HTTP/1.0 [10:39:44]Method: POST [10:39:44]URL: /json_proto [10:39:44]Method is POST - this is cgi request [10:39:44]url: /json_proto [10:39:44]query_string will be loaded in cgi processing [10:39:44]execute_cgi json_proto POST (null) [10:39:44]execute_cgi path=json_proto method=POST [10:39:44]POST find Content-Length [10:39:44]Host: 172.17.37.4:8080 [10:39:44]Content-Length: 800 [10:39:44]Content-Type: application/json [10:39:44] [10:39:44]POST finish read [10:39:44]Found Content-Length = 800 [10:39:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.200, "sum" : 350.48, "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" : 350.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:44]execute_script... [10:39:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.200, "sum" : 350.48, "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" : 350.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:44]POST & json_proto [10:39:44]process_json_proto [10:39:44]json parsed OK: [10:39:44]protocol is kg_v1.0 [10:39:44]action value=close_receipt [10:39:44]process_action close_receipt [10:39:44]cmd_close_receipt [10:39:44]MH_GetDate [10:39:44]Write to MH i2c: F0 00 00 82 4D BE [10:39:44]Write i2c OK [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: F0 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: F0 09 00 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: F0 09 00 82 4D 00 7A A5 45 67 B8 5A 43 67 4E [10:39:44]GetLastDocTimeStamp 1732617571 [10:39:44]current date 1732617594 [10:39:44]FM_GetShiftState [10:39:44]SAM_PROTO_GetShiftState [10:39:44]wFMCommunicate request_size=4 [10:39:44]MH_SAM_APDU [10:39:44]CAPDU: 80 13 01 00 [10:39:44]Write to MH i2c: E2 08 00 83 4D 80 13 01 00 00 00 00 00 4D [10:39:44]Write i2c OK [10:39:44]MH_I2C_Read... [10:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:44]Read from MH i2c: E2 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 0E 00 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 0E 00 83 4D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 AE [10:39:44]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:39:44]wFMCommunicate OK [10:39:44]SAM_PROTO_GetShiftState done [10:39:44]FM_GetShiftState done [10:39:44]opened in 1732579736 [10:39:44]opened+sec_in_day 1732666136 [10:39:44]quantity*price = 35048 [10:39:44]sum+1 = 35049 [10:39:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.48 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 0.00 Безнал.: 350.48 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 22 26.11.2024 10:39 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123168 ФПД: 252097770539955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T103954&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123168&fm=252097770539955&tin=02508201610067®Number=0000000000092681&sum=35048 [10:39:45]StoreToDocumentArchive [10:39:45]shift 557 fd 123168 [10:39:45]save to /storage/0557/doc_00123168 [10:39:45]save last doc name /storage/0557/doc_00123168 to /storage/kkm_last_doc_name [10:39:45]save OK [10:39:45]Clear old archive folders... [10:39:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:45]tlvbuf is 01F9E1B0 [10:39:45]SAM_PROTO_ClearQueue [10:39:45]wFMCommunicate request_size=4 [10:39:45]MH_SAM_APDU [10:39:45]CAPDU: 80 09 00 00 [10:39:45]Write to MH i2c: E2 08 00 90 4D 80 09 00 00 00 00 00 00 4F [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:45]Read from MH i2c: E2 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 03 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 03 00 90 4D 00 90 00 51 [10:39:45]RAPDU: 90 00 [10:39:45]wFMCommunicate OK [10:39:45]SAM_PROTO_ClearQueue done [10:39:45]KKMCreateOFDPacket [10:39:45]OFDProtocolAddRootSTLVToBuf [10:39:45]FM_MakeSignedData [10:39:45]FM_MakeSignedData [10:39:45]SAM_PROTO_SignData [10:39:45]wFMCommunicate request_size=4 [10:39:45]MH_SAM_APDU [10:39:45]CAPDU: 80 0D 01 02 [10:39:45]Write to MH i2c: E2 08 00 91 4D 80 0D 01 02 00 00 00 00 57 [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:45]Read from MH i2c: E2 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 03 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 03 00 91 4D 00 90 00 52 [10:39:45]RAPDU: 90 00 [10:39:45]wFMCommunicate OK [10:39:45]wFMCommunicate request_size=255 [10:39:45]MH_SAM_APDU [10:39:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 14 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 E8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 7A A5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 20 E1 01 00 35 04 06 00 E5 [10:39:45]Write to MH i2c: E2 02 01 92 4D 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 34 FF 03 08 00 03 50 14 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 E8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 7A A5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 20 E1 01 00 35 04 06 00 E5 00 00 4D [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:45]Read from MH i2c: E2 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 03 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 03 00 92 4D 00 90 00 53 [10:39:45]RAPDU: 90 00 [10:39:45]wFMCommunicate OK [10:39:45]wFMCommunicate request_size=10 [10:39:45]MH_SAM_APDU [10:39:45]CAPDU: 80 0D 02 02 05 48 16 0F CB B3 [10:39:45]Write to MH i2c: E2 0D 00 93 4D 80 0D 02 02 05 00 48 16 0F CB B3 00 00 4F [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:45]Read from MH i2c: E2 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 03 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 03 00 93 4D 00 90 00 54 [10:39:45]RAPDU: 90 00 [10:39:45]wFMCommunicate OK [10:39:45]wFMCommunicate request_size=4 [10:39:45]MH_SAM_APDU [10:39:45]CAPDU: 80 0D 03 02 [10:39:45]Write to MH i2c: E2 08 00 94 4D 80 0D 03 02 00 00 00 00 5C [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:45]Read from MH i2c: E2 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 0B 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 0B 00 94 4D 00 41 8C 01 09 09 26 DC 38 90 00 77 [10:39:45]RAPDU: 41 8C 01 09 09 26 DC 38 90 00 [10:39:45]wFMCommunicate OK [10:39:45]SAM_PROTO_SignData done [10:39:45]FM_MakeSignedData done [10:39:45]CreateOFDProtocolMessage [10:39:45]wFMCommunicate request_size=4 [10:39:45]MH_SAM_APDU [10:39:45]CAPDU: 80 11 00 00 [10:39:45]Write to MH i2c: E2 08 00 95 4D 80 11 00 00 00 00 00 00 5C [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:45]Read from MH i2c: E2 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 17 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 17 00 95 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B3 [10:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:39:45]wFMCommunicate OK [10:39:45]CreateOFDProtocolMessage done [10:39:45]OFDSenderStorePacket 123168 [10:39:45]StoreOFDPacket docnum=123168 [10:39:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 89 F7 07 01 7C 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 14 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 E8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 7A A5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 20 E1 01 00 35 04 06 00 E5 48 16 0F CB B3 41 8C 01 09 09 26 DC 38 [10:39:45]CheckFolder [10:39:45]dirname=/storage/ofd_packets [10:39:45]CheckFolder done [10:39:45]ProducePacketName [10:39:45]name=ofd_packets/00123168 [10:39:45]NVStorageSaveData ofd_packets/00123168 [10:39:45]File name is /storage/ofd_packets/00123168 [10:39:45]Write 301 bytes [10:39:45]NVStorageSaveData done [10:39:45]OFDSenderStorePacket done [10:39:45]KKMCreateOFDPacket done [10:39:45]NVStorageSaveData kkm_last_timestamp [10:39:45]File name is /storage/kkm_last_timestamp [10:39:45]Write 4 bytes [10:39:45]NVStorageSaveData done [10:39:45]ExternCall_PrintAddStr [10:39:45]wPrintStart [10:39:45]Write to MH i2c: 01 00 00 96 4D E3 [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: 01 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: 01 07 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: 01 07 00 96 4D 00 00 00 00 00 FF 0F F8 [10:39:45]RasterBufferAndPrint [10:39:45]line Счет N : (1)718001 [10:39:45]line ИНН: 02508201610067 [10:39:45]line Контрольно-Кассовый Чек [10:39:45]line ПРОДАЖА [10:39:45]line ТРК (МРК, ГНК) : 12 [10:39:45]line Товар: 2710124130 [10:39:45]line Аи-92-К-4 [10:39:45]line 5.200 * 67.40 [10:39:45]line = 350.48 [10:39:45]line НДС 12% НСП 1% [10:39:45]line > о реализуемом товаре [10:39:45]line ИТОГО: 350.48 [10:39:45]line НСП 1% : 3.10 [10:39:45]line НДС 12% : 37.22 [10:39:45]line Наличными: 0.00 [10:39:45]line Безнал.: 350.48 [10:39:45]line Место: АЗС № 64 "Партнер Нефть" [10:39:45]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:39:45]line СНО: Общий режим [10:39:45]line Чек 22 26.11.2024 10:39 [10:39:45]line Смена: 557 ФФД: 1.0 [10:39:45]line ЗНМ: 0300000033 [10:39:45]line РНМ: 0000000000092681 [10:39:45]line Версия ККМ: 001 [10:39:45]line Платежная система: O! деньги [10:39:45]line ФМ: 0000000000874881 [10:39:45]line ФД: 123168 [10:39:45]line ФПД: 252097770539955 [10:39:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T103954&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123168&fm=252097770539955&tin=02508201610067®Number=0000000000092681&sum=35048 [10:39:45]written 0, free lines is 4095 [10:39:45]OFD Sender: Processing packet 123168 [packets to send 7, broken 6] [10:39:45]ProducePacketName [10:39:45]name=ofd_packets/00123168 [10:39:45]OFD Sender: To server: pG, [10:39:45]CommunicateWithHost lk.salyk.kg:30040 [10:39:45]ConnectInit lk.salyk.kg [10:39:45]Connected sock=11 [10:39:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 89 F7 07 01 7C 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 14 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 E8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 7A A5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 20 E1 01 00 35 04 06 00 E5 48 16 0F CB B3 41 8C 01 09 09 26 DC 38 [10:39:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 59 4B 47 00 3D 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 20 E1 01 00 F4 03 04 00 3C 51 45 67 B6 04 01 00 00 E8 25 53 97 68 E9 4E 3B [10:39:46]CommunicateWithHost err = 0 [10:39:46]CheckOFDResponse [10:39:46]1017 (14) - 77093643461234 [10:39:46]1041 (16) - 0000000000874881 [10:39:46]1040 (4) - 123168 [10:39:46]1012 (4) - 26.11.2024 04:40 [10:39:46]1206 (1) - 0 [10:39:46]OFD Sender: Remove packet 123168 [10:39:46]ProducePacketName [10:39:46]name=ofd_packets/00123168 [10:39:46]NVStorageDeleteData [10:39:46]Write to MH i2c: 01 00 00 C0 4D 0D [10:39:46]Write i2c OK [10:39:46]MH_I2C_Read... [10:39:46]Read from MH i2c: 01 [10:39:46]MH_I2C_Read... [10:39:46]Read from MH i2c: 01 07 00 [10:39:46]MH_I2C_Read... [10:39:46]Read from MH i2c: 01 07 00 C0 4D 00 00 00 00 00 68 0C 88 [10:39:46]RasterBufferAndPrint [10:39:46]line [10:39:46]line [10:39:46]line [10:39:46]line [10:39:46]line [10:39:46]written 0, free lines is 3181 [10:39:46]MH_Cut [10:39:46]Write to MH i2c: D1 01 00 C7 4D 01 E6 [10:39:46]Write i2c OK [10:39:46]MH_I2C_Read... [10:39:46]Read from MH i2c: D1 [10:39:46]MH_I2C_Read... [10:39:46]Read from MH i2c: D1 01 00 [10:39:46]MH_I2C_Read... [10:39:46]Read from MH i2c: D1 01 00 C7 4D 00 E5 [10:39:46]Write to MH i2c: 01 00 00 C8 4D 15 [10:39:46]Write i2c OK [10:39:46]MH_I2C_Read... [10:39:46]OFD Sender: No OFD packet to send [10:39:47]*** Cut start [10:39:47]*** Partial cut [10:39:47]*** CUTSNS_PIN = 1 [10:39:47]*** CUTSNS_PIN = 0 [10:39:47]*** Brake cut motor [10:39:48]Read from MH i2c: 01 [10:39:48]MH_I2C_Read... [10:39:48]*** Stop cut motor [10:39:48]*** Cut end [10:39:48]Read from MH i2c: 01 07 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: 01 07 00 C8 4D 00 00 00 00 00 FF 0F 2A [10:39:48]process_action close_receipt done [10:39:48]requested_data is exist [10:39:48]produce_requested_data [10:39:48]requested_item fm.sn is exist - process it [10:39:48]wFMCommunicate request_size=4 [10:39:48]MH_SAM_APDU [10:39:48]CAPDU: 80 11 00 00 [10:39:48]Write to MH i2c: E2 08 00 C9 4D 80 11 00 00 00 00 00 00 90 [10:39:48]Write i2c OK [10:39:48]MH_I2C_Read... [10:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:48]Read from MH i2c: E2 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 17 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 17 00 C9 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E7 [10:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:39:48]wFMCommunicate OK [10:39:48]requested_item fd.num is exist - process it [10:39:48]SAM_PROTO_GetFieldsCounters [10:39:48]wFMCommunicate request_size=4 [10:39:48]MH_SAM_APDU [10:39:48]CAPDU: 80 13 00 00 [10:39:48]Write to MH i2c: E2 08 00 CA 4D 80 13 00 00 00 00 00 00 93 [10:39:48]Write i2c OK [10:39:48]MH_I2C_Read... [10:39:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:48]Read from MH i2c: E2 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 62 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 62 00 CA 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 20 E1 01 00 0E 04 04 00 2D 02 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 2C [10:39:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 20 E1 01 00 0E 04 04 00 2D 02 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 [10:39:48]wFMCommunicate OK [10:39:48]SAM_PROTO_GetFieldsCounters done [10:39:48]requested_item shift.num is exist - process it [10:39:48]requested_item shift.opened is exist - process it [10:39:48]req_shift_opened [10:39:48]FM_GetShiftState [10:39:48]SAM_PROTO_GetShiftState [10:39:48]wFMCommunicate request_size=4 [10:39:48]MH_SAM_APDU [10:39:48]CAPDU: 80 13 01 00 [10:39:48]Write to MH i2c: E2 08 00 CB 4D 80 13 01 00 00 00 00 00 95 [10:39:48]Write i2c OK [10:39:48]MH_I2C_Read... [10:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:48]Read from MH i2c: E2 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 0E 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 0E 00 CB 4D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 F6 [10:39:48]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:39:48]wFMCommunicate OK [10:39:48]SAM_PROTO_GetShiftState done [10:39:48]FM_GetShiftState done [10:39:48]req_shift_opened done [10:39:48]requested_item shift.open_date is exist - process it [10:39:48]req_shift_open_date [10:39:48]req_shift_open_date done [10:39:48]produce_requested_data done [10:39:48]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123168,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:39:48]process_action_free close_receipt [10:39:48]json_value_free [10:39:48]json_value_free done [10:39:48]process_json_proto returns [10:39:48]Send response to host [10:39:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123168,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:39:48]free response buf [10:39:48]execute_script done [10:39:48]execute_script returns [10:39:48]free content buf [10:39:48]Sock 7.Close socket [10:39:48]Sock 7.Thread stoped [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:56]OFD Sender: No OFD packet to send [10:45:01]OFD Sender: No OFD packet to send [10:45:06]OFD Sender: No OFD packet to send [10:45:11]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:31]OFD Sender: No OFD packet to send [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:04]accept exits with 9 [10:48:04]New connection [10:48:04]New thread 3066580324 created [10:48:04]Thread 3066723684 joined [10:48:04]Waiting for new connection... [10:48:04] Sock 9.Parse request [10:48:04]Sock 9.Check first char [10:48:04]Sock 9.First char is OK [10:48:04]request: POST /json_proto HTTP/1.0 [10:48:04]Method: POST [10:48:04]URL: /json_proto [10:48:04]Method is POST - this is cgi request [10:48:04]url: /json_proto [10:48:04]query_string will be loaded in cgi processing [10:48:04]execute_cgi json_proto POST (null) [10:48:04]execute_cgi path=json_proto method=POST [10:48:04]POST find Content-Length [10:48:04]Host: 172.17.37.4:8080 [10:48:04]Content-Length: 677 [10:48:04]Content-Type: application/json [10:48:04] [10:48:04]POST finish read [10:48:04]Found Content-Length = 677 [10:48:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:04]execute_script... [10:48:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:04]POST & json_proto [10:48:04]process_json_proto [10:48:04]json parsed OK: [10:48:04]protocol is kg_v1.0 [10:48:04]action value=close_receipt [10:48:04]process_action close_receipt [10:48:04]cmd_close_receipt [10:48:04]MH_GetDate [10:48:04]Write to MH i2c: F0 00 00 CC 4D 08 [10:48:04]Write i2c OK [10:48:04]MH_I2C_Read... [10:48:04]Read from MH i2c: F0 [10:48:04]MH_I2C_Read... [10:48:04]Read from MH i2c: F0 09 00 [10:48:04]MH_I2C_Read... [10:48:04]Read from MH i2c: F0 09 00 CC 4D 00 6E A7 45 67 B8 5A 43 67 8E [10:48:04]GetLastDocTimeStamp 1732617594 [10:48:04]current date 1732618094 [10:48:04]FM_GetShiftState [10:48:04]SAM_PROTO_GetShiftState [10:48:04]wFMCommunicate request_size=4 [10:48:04]MH_SAM_APDU [10:48:04]CAPDU: 80 13 01 00 [10:48:04]Write to MH i2c: E2 08 00 CD 4D 80 13 01 00 00 00 00 00 97 [10:48:04]Write i2c OK [10:48:04]MH_I2C_Read... [10:48:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:04]Read from MH i2c: E2 [10:48:04]MH_I2C_Read... [10:48:04]Read from MH i2c: E2 0E 00 [10:48:04]MH_I2C_Read... [10:48:04]Read from MH i2c: E2 0E 00 CD 4D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 F8 [10:48:04]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:48:04]wFMCommunicate OK [10:48:04]SAM_PROTO_GetShiftState done [10:48:04]FM_GetShiftState done [10:48:04]opened in 1732579736 [10:48:04]opened+sec_in_day 1732666136 [10:48:04]quantity*price = 20017 [10:48:04]sum+1 = 20019 [10:48:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 23 26.11.2024 10:48 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123169 ФПД: 106343832678653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T104814&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123169&fm=106343832678653&tin=02508201610067®Number=0000000000092681&sum=20000 [10:48:05]StoreToDocumentArchive [10:48:05]shift 557 fd 123169 [10:48:05]save to /storage/0557/doc_00123169 [10:48:05]save last doc name /storage/0557/doc_00123169 to /storage/kkm_last_doc_name [10:48:05]save OK [10:48:05]Clear old archive folders... [10:48:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:05]tlvbuf is 0205BCD0 [10:48:05]SAM_PROTO_ClearQueue [10:48:05]wFMCommunicate request_size=4 [10:48:05]MH_SAM_APDU [10:48:05]CAPDU: 80 09 00 00 [10:48:05]Write to MH i2c: E2 08 00 DA 4D 80 09 00 00 00 00 00 00 99 [10:48:05]Write i2c OK [10:48:05]MH_I2C_Read... [10:48:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:05]Read from MH i2c: E2 [10:48:05]MH_I2C_Read... [10:48:05]Read from MH i2c: E2 03 00 [10:48:05]MH_I2C_Read... [10:48:05]Read from MH i2c: E2 03 00 DA 4D 00 90 00 9B [10:48:05]RAPDU: 90 00 [10:48:05]wFMCommunicate OK [10:48:05]SAM_PROTO_ClearQueue done [10:48:05]KKMCreateOFDPacket [10:48:05]OFDProtocolAddRootSTLVToBuf [10:48:05]FM_MakeSignedData [10:48:05]FM_MakeSignedData [10:48:05]SAM_PROTO_SignData [10:48:05]wFMCommunicate request_size=4 [10:48:05]MH_SAM_APDU [10:48:05]CAPDU: 80 0D 01 02 [10:48:05]Write to MH i2c: E2 08 00 DB 4D 80 0D 01 02 00 00 00 00 A1 [10:48:05]Write i2c OK [10:48:05]MH_I2C_Read... [10:48:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:05]Read from MH i2c: E2 [10:48:05]MH_I2C_Read... [10:48:05]Read from MH i2c: E2 03 00 [10:48:05]MH_I2C_Read... [10:48:05]Read from MH i2c: E2 03 00 DB 4D 00 90 00 9C [10:48:05]RAPDU: 90 00 [10:48:05]wFMCommunicate OK [10:48:05]wFMCommunicate request_size=255 [10:48:05]MH_SAM_APDU [10:48:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 6E A7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 21 E1 01 00 35 04 06 00 60 [10:48:05]Write to MH i2c: E2 02 01 DC 4D 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 6E A7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 21 E1 01 00 35 04 06 00 60 00 00 8F [10:48:05]Write i2c OK [10:48:05]MH_I2C_Read... [10:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:06]Read from MH i2c: E2 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: E2 03 00 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: E2 03 00 DC 4D 00 90 00 9D [10:48:06]RAPDU: 90 00 [10:48:06]wFMCommunicate OK [10:48:06]wFMCommunicate request_size=10 [10:48:06]MH_SAM_APDU [10:48:06]CAPDU: 80 0D 02 02 05 B8 1A 5E F0 FD [10:48:06]Write to MH i2c: E2 0D 00 DD 4D 80 0D 02 02 05 00 B8 1A 5E F0 FD 00 00 CB [10:48:06]Write i2c OK [10:48:06]MH_I2C_Read... [10:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:06]Read from MH i2c: E2 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: E2 03 00 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: E2 03 00 DD 4D 00 90 00 9E [10:48:06]RAPDU: 90 00 [10:48:06]wFMCommunicate OK [10:48:06]wFMCommunicate request_size=4 [10:48:06]MH_SAM_APDU [10:48:06]CAPDU: 80 0D 03 02 [10:48:06]Write to MH i2c: E2 08 00 DE 4D 80 0D 03 02 00 00 00 00 A6 [10:48:06]Write i2c OK [10:48:06]MH_I2C_Read... [10:48:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:06]Read from MH i2c: E2 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: E2 0B 00 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: E2 0B 00 DE 4D 00 11 3D 47 C2 16 22 86 8A 90 00 46 [10:48:06]RAPDU: 11 3D 47 C2 16 22 86 8A 90 00 [10:48:06]wFMCommunicate OK [10:48:06]SAM_PROTO_SignData done [10:48:06]FM_MakeSignedData done [10:48:06]CreateOFDProtocolMessage [10:48:06]wFMCommunicate request_size=4 [10:48:06]MH_SAM_APDU [10:48:06]CAPDU: 80 11 00 00 [10:48:06]Write to MH i2c: E2 08 00 DF 4D 80 11 00 00 00 00 00 00 A6 [10:48:06]Write i2c OK [10:48:06]MH_I2C_Read... [10:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:06]Read from MH i2c: E2 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: E2 17 00 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: E2 17 00 DF 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FD [10:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:48:06]wFMCommunicate OK [10:48:06]CreateOFDProtocolMessage done [10:48:06]OFDSenderStorePacket 123169 [10:48:06]StoreOFDPacket docnum=123169 [10:48:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 28 90 07 01 4E 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 6E A7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 21 E1 01 00 35 04 06 00 60 B8 1A 5E F0 FD 11 3D 47 C2 16 22 86 8A [10:48:06]CheckFolder [10:48:06]dirname=/storage/ofd_packets [10:48:06]CheckFolder done [10:48:06]ProducePacketName [10:48:06]name=ofd_packets/00123169 [10:48:06]NVStorageSaveData ofd_packets/00123169 [10:48:06]File name is /storage/ofd_packets/00123169 [10:48:06]Write 301 bytes [10:48:06]NVStorageSaveData done [10:48:06]OFDSenderStorePacket done [10:48:06]KKMCreateOFDPacket done [10:48:06]NVStorageSaveData kkm_last_timestamp [10:48:06]File name is /storage/kkm_last_timestamp [10:48:06]Write 4 bytes [10:48:06]NVStorageSaveData done [10:48:06]ExternCall_PrintAddStr [10:48:06]wPrintStart [10:48:06]Write to MH i2c: 01 00 00 E0 4D 2D [10:48:06]Write i2c OK [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: 01 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: 01 07 00 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: 01 07 00 E0 4D 00 00 00 00 00 FF 0F 42 [10:48:06]RasterBufferAndPrint [10:48:06]line Счет N : (1)718003 [10:48:06]line ИНН: 02508201610067 [10:48:06]line Контрольно-Кассовый Чек [10:48:06]line ПРОДАЖА [10:48:06]line ТРК (МРК, ГНК) : 12 [10:48:06]line Товар: 2710124130 [10:48:06]line Аи-92-К-4 [10:48:06]line 2.970 * 67.40 [10:48:06]line = 200.18 [10:48:06]line НДС 12% НСП 1% [10:48:06]line > о реализуемом товаре [10:48:06]line ОКРУГЛЕНИЕ: -0.18 [10:48:06]line ИТОГО: 200.00 [10:48:06]line Внесено: 200.00 [10:48:06]line СДАЧА: 0.00 [10:48:06]line НСП 1% : 1.77 [10:48:06]line НДС 12% : 21.26 [10:48:06]line Наличными: 200.00 [10:48:06]line Безнал.: 0.00 [10:48:06]line Место: АЗС № 64 "Партнер Нефть" [10:48:06]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:48:06]line СНО: Общий режим [10:48:06]line Чек 23 26.11.2024 10:48 [10:48:06]line Смена: 557 ФФД: 1.0 [10:48:06]line ЗНМ: 0300000033 [10:48:06]line РНМ: 0000000000092681 [10:48:06]line Версия ККМ: 001 [10:48:06]line ФМ: 0000000000874881 [10:48:06]line ФД: 123169 [10:48:06]line ФПД: 106343832678653 [10:48:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T104814&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123169&fm=106343832678653&tin=02508201610067®Number=0000000000092681&sum=20000 [10:48:06]OFD Sender: Processing packet 123169 [packets to send 7, broken 6] [10:48:06]ProducePacketName [10:48:06]name=ofd_packets/00123169 [10:48:06]OFD Sender: To server: pG, [10:48:06]CommunicateWithHost lk.salyk.kg:30040 [10:48:06]ConnectInit lk.salyk.kg [10:48:06]written 0, free lines is 4095 [10:48:06]Connected sock=10 [10:48:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 28 90 07 01 4E 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 6E A7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 21 E1 01 00 35 04 06 00 60 B8 1A 5E F0 FD 11 3D 47 C2 16 22 86 8A [10:48:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 14 E7 47 00 EE 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 21 E1 01 00 F4 03 04 00 31 53 45 67 B6 04 01 00 00 B0 9D B6 40 A8 03 A9 FA [10:48:06]CommunicateWithHost err = 0 [10:48:06]CheckOFDResponse [10:48:06]1017 (14) - 77093643461234 [10:48:06]1041 (16) - 0000000000874881 [10:48:06]1040 (4) - 123169 [10:48:06]1012 (4) - 26.11.2024 04:48 [10:48:06]1206 (1) - 0 [10:48:06]OFD Sender: Remove packet 123169 [10:48:06]ProducePacketName [10:48:06]name=ofd_packets/00123169 [10:48:06]NVStorageDeleteData [10:48:06]Write to MH i2c: 01 00 00 0B 4E 59 [10:48:06]Write i2c OK [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: 01 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: 01 07 00 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: 01 07 00 0B 4E 00 00 00 00 00 49 0C B5 [10:48:06]RasterBufferAndPrint [10:48:06]line [10:48:06]line [10:48:06]line [10:48:06]line [10:48:06]line [10:48:06]written 0, free lines is 3148 [10:48:06]MH_Cut [10:48:06]Write to MH i2c: D1 01 00 12 4E 01 32 [10:48:06]Write i2c OK [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: D1 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: D1 01 00 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: D1 01 00 12 4E 00 31 [10:48:06]Write to MH i2c: 01 00 00 13 4E 61 [10:48:06]Write i2c OK [10:48:06]MH_I2C_Read... [10:48:07]OFD Sender: No OFD packet to send [10:48:08]*** Cut start [10:48:08]*** Partial cut [10:48:08]*** CUTSNS_PIN = 1 [10:48:08]*** CUTSNS_PIN = 0 [10:48:08]*** Brake cut motor [10:48:09]Read from MH i2c: 01 [10:48:09]MH_I2C_Read... [10:48:09]*** Stop cut motor [10:48:09]*** Cut end [10:48:09]Read from MH i2c: 01 07 00 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: 01 07 00 13 4E 00 00 00 00 00 FF 0F 76 [10:48:09]process_action close_receipt done [10:48:09]requested_data is exist [10:48:09]produce_requested_data [10:48:09]requested_item fm.sn is exist - process it [10:48:09]wFMCommunicate request_size=4 [10:48:09]MH_SAM_APDU [10:48:09]CAPDU: 80 11 00 00 [10:48:09]Write to MH i2c: E2 08 00 14 4E 80 11 00 00 00 00 00 00 DC [10:48:09]Write i2c OK [10:48:09]MH_I2C_Read... [10:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:09]Read from MH i2c: E2 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 17 00 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 17 00 14 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 33 [10:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:48:09]wFMCommunicate OK [10:48:09]requested_item fd.num is exist - process it [10:48:09]SAM_PROTO_GetFieldsCounters [10:48:09]wFMCommunicate request_size=4 [10:48:09]MH_SAM_APDU [10:48:09]CAPDU: 80 13 00 00 [10:48:09]Write to MH i2c: E2 08 00 15 4E 80 13 00 00 00 00 00 00 DF [10:48:09]Write i2c OK [10:48:09]MH_I2C_Read... [10:48:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:09]Read from MH i2c: E2 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 62 00 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 62 00 15 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 21 E1 01 00 0E 04 04 00 2D 02 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 7C [10:48:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 21 E1 01 00 0E 04 04 00 2D 02 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 [10:48:09]wFMCommunicate OK [10:48:09]SAM_PROTO_GetFieldsCounters done [10:48:09]requested_item shift.num is exist - process it [10:48:09]requested_item shift.opened is exist - process it [10:48:09]req_shift_opened [10:48:09]FM_GetShiftState [10:48:09]SAM_PROTO_GetShiftState [10:48:09]wFMCommunicate request_size=4 [10:48:09]MH_SAM_APDU [10:48:09]CAPDU: 80 13 01 00 [10:48:09]Write to MH i2c: E2 08 00 16 4E 80 13 01 00 00 00 00 00 E1 [10:48:09]Write i2c OK [10:48:09]MH_I2C_Read... [10:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:09]Read from MH i2c: E2 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 0E 00 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: E2 0E 00 16 4E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 42 [10:48:09]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:48:09]wFMCommunicate OK [10:48:09]SAM_PROTO_GetShiftState done [10:48:09]FM_GetShiftState done [10:48:09]req_shift_opened done [10:48:09]requested_item shift.open_date is exist - process it [10:48:09]req_shift_open_date [10:48:09]req_shift_open_date done [10:48:09]produce_requested_data done [10:48:09]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123169,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:48:09]process_action_free close_receipt [10:48:09]json_value_free [10:48:09]json_value_free done [10:48:09]process_json_proto returns [10:48:09]Send response to host [10:48:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123169,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:48:09]free response buf [10:48:09]execute_script done [10:48:09]execute_script returns [10:48:09]free content buf [10:48:09]Sock 9.Close socket [10:48:09]Sock 9.Thread stoped [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:55]accept exits with 7 [10:48:55]New connection [10:48:55]New thread 3066723684 created [10:48:55]Thread 3066580324 joined [10:48:55]Waiting for new connection... [10:48:55] Sock 7.Parse request [10:48:55]Sock 7.Check first char [10:48:55]Sock 7.First char is OK [10:48:55]request: POST /json_proto HTTP/1.0 [10:48:55]Method: POST [10:48:55]URL: /json_proto [10:48:55]Method is POST - this is cgi request [10:48:55]url: /json_proto [10:48:55]query_string will be loaded in cgi processing [10:48:55]execute_cgi json_proto POST (null) [10:48:55]execute_cgi path=json_proto method=POST [10:48:55]POST find Content-Length [10:48:55]Host: 172.17.37.4:8080 [10:48:55]Content-Length: 677 [10:48:55]Content-Type: application/json [10:48:55] [10:48:55]POST finish read [10:48:55]Found Content-Length = 677 [10:48:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 6.640, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:55]execute_script... [10:48:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 6.640, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:55]POST & json_proto [10:48:55]process_json_proto [10:48:55]json parsed OK: [10:48:55]protocol is kg_v1.0 [10:48:55]action value=close_receipt [10:48:55]process_action close_receipt [10:48:55]cmd_close_receipt [10:48:55]MH_GetDate [10:48:55]Write to MH i2c: F0 00 00 17 4E 54 [10:48:55]Write i2c OK [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: F0 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: F0 09 00 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: F0 09 00 17 4E 00 A2 A7 45 67 B8 5A 43 67 0E [10:48:55]GetLastDocTimeStamp 1732618094 [10:48:55]current date 1732618146 [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 18 4E 80 13 01 00 00 00 00 00 E3 [10:48:55]Write i2c OK [10:48:55]MH_I2C_Read... [10:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:55]Read from MH i2c: E2 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 0E 00 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 0E 00 18 4E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 44 [10:48:55]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:48:55]wFMCommunicate OK [10:48:55]SAM_PROTO_GetShiftState done [10:48:55]FM_GetShiftState done [10:48:55]opened in 1732579736 [10:48:55]opened+sec_in_day 1732666136 [10:48:55]quantity*price = 50065 [10:48:55]sum+1 = 50067 [10:48:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 24 26.11.2024 10:49 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123170 ФПД: 54628519417431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T104906&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123170&fm=54628519417431&tin=02508201610067®Number=0000000000092681&sum=50000 [10:48:57]StoreToDocumentArchive [10:48:57]shift 557 fd 123170 [10:48:57]save to /storage/0557/doc_00123170 [10:48:57]save last doc name /storage/0557/doc_00123170 to /storage/kkm_last_doc_name [10:48:57]save OK [10:48:57]Clear old archive folders... [10:48:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:57]tlvbuf is 02060CC0 [10:48:57]SAM_PROTO_ClearQueue [10:48:57]wFMCommunicate request_size=4 [10:48:57]MH_SAM_APDU [10:48:57]CAPDU: 80 09 00 00 [10:48:57]Write to MH i2c: E2 08 00 25 4E 80 09 00 00 00 00 00 00 E5 [10:48:57]Write i2c OK [10:48:57]MH_I2C_Read... [10:48:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:57]Read from MH i2c: E2 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 03 00 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 03 00 25 4E 00 90 00 E7 [10:48:57]RAPDU: 90 00 [10:48:57]wFMCommunicate OK [10:48:57]SAM_PROTO_ClearQueue done [10:48:57]KKMCreateOFDPacket [10:48:57]OFDProtocolAddRootSTLVToBuf [10:48:57]FM_MakeSignedData [10:48:57]FM_MakeSignedData [10:48:57]SAM_PROTO_SignData [10:48:57]wFMCommunicate request_size=4 [10:48:57]MH_SAM_APDU [10:48:57]CAPDU: 80 0D 01 02 [10:48:57]Write to MH i2c: E2 08 00 26 4E 80 0D 01 02 00 00 00 00 ED [10:48:57]Write i2c OK [10:48:57]MH_I2C_Read... [10:48:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:57]Read from MH i2c: E2 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 03 00 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 03 00 26 4E 00 90 00 E8 [10:48:57]RAPDU: 90 00 [10:48:57]wFMCommunicate OK [10:48:57]wFMCommunicate request_size=255 [10:48:57]MH_SAM_APDU [10:48:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A2 A7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 22 E1 01 00 35 04 06 00 31 [10:48:57]Write to MH i2c: E2 02 01 27 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A2 A7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 22 E1 01 00 35 04 06 00 31 00 00 1B [10:48:57]Write i2c OK [10:48:57]MH_I2C_Read... [10:48:57]OFD Sender: No OFD packet to send [10:48:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:57]Read from MH i2c: E2 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 03 00 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 03 00 27 4E 00 90 00 E9 [10:48:57]RAPDU: 90 00 [10:48:57]wFMCommunicate OK [10:48:57]wFMCommunicate request_size=10 [10:48:57]MH_SAM_APDU [10:48:57]CAPDU: 80 0D 02 02 05 AF 31 7E 96 57 [10:48:57]Write to MH i2c: E2 0D 00 28 4E 80 0D 02 02 05 00 AF 31 7E 96 57 00 00 45 [10:48:57]Write i2c OK [10:48:57]MH_I2C_Read... [10:48:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:57]Read from MH i2c: E2 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 03 00 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 03 00 28 4E 00 90 00 EA [10:48:57]RAPDU: 90 00 [10:48:57]wFMCommunicate OK [10:48:57]wFMCommunicate request_size=4 [10:48:57]MH_SAM_APDU [10:48:57]CAPDU: 80 0D 03 02 [10:48:57]Write to MH i2c: E2 08 00 29 4E 80 0D 03 02 00 00 00 00 F2 [10:48:57]Write i2c OK [10:48:57]MH_I2C_Read... [10:48:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:57]Read from MH i2c: E2 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 0B 00 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 0B 00 29 4E 00 27 06 8B F7 7E AF 6E 93 90 00 D0 [10:48:57]RAPDU: 27 06 8B F7 7E AF 6E 93 90 00 [10:48:57]wFMCommunicate OK [10:48:57]SAM_PROTO_SignData done [10:48:57]FM_MakeSignedData done [10:48:57]CreateOFDProtocolMessage [10:48:57]wFMCommunicate request_size=4 [10:48:57]MH_SAM_APDU [10:48:57]CAPDU: 80 11 00 00 [10:48:57]Write to MH i2c: E2 08 00 2A 4E 80 11 00 00 00 00 00 00 F2 [10:48:57]Write i2c OK [10:48:57]MH_I2C_Read... [10:48:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:57]Read from MH i2c: E2 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 17 00 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 17 00 2A 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 49 [10:48:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:48:57]wFMCommunicate OK [10:48:57]CreateOFDProtocolMessage done [10:48:57]OFDSenderStorePacket 123170 [10:48:57]StoreOFDPacket docnum=123170 [10:48:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B1 14 07 01 FA 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A2 A7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 22 E1 01 00 35 04 06 00 31 AF 31 7E 96 57 27 06 8B F7 7E AF 6E 93 [10:48:57]CheckFolder [10:48:57]dirname=/storage/ofd_packets [10:48:57]CheckFolder done [10:48:57]ProducePacketName [10:48:57]name=ofd_packets/00123170 [10:48:57]NVStorageSaveData ofd_packets/00123170 [10:48:57]File name is /storage/ofd_packets/00123170 [10:48:57]Write 301 bytes [10:48:57]NVStorageSaveData done [10:48:57]OFDSenderStorePacket done [10:48:57]KKMCreateOFDPacket done [10:48:57]NVStorageSaveData kkm_last_timestamp [10:48:57]File name is /storage/kkm_last_timestamp [10:48:57]Write 4 bytes [10:48:57]NVStorageSaveData done [10:48:57]ExternCall_PrintAddStr [10:48:57]wPrintStart [10:48:57]Write to MH i2c: 01 00 00 2B 4E 79 [10:48:57]Write i2c OK [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: 01 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: 01 07 00 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: 01 07 00 2B 4E 00 00 00 00 00 FF 0F 8E [10:48:57]RasterBufferAndPrint [10:48:57]line Счет N : (1)718004 [10:48:57]line ИНН: 02508201610067 [10:48:57]line Контрольно-Кассовый Чек [10:48:57]line ПРОДАЖА [10:48:57]line ТРК (МРК, ГНК) : 21 [10:48:57]line Товар: 2710124500 [10:48:57]line Аи-95-К-5 [10:48:57]line 6.640 * 75.40 [10:48:57]line = 500.66 [10:48:57]line НДС 12% НСП 1% [10:48:57]line > о реализуемом товаре [10:48:57]line ОКРУГЛЕНИЕ: -0.66 [10:48:57]line ИТОГО: 500.00 [10:48:57]line Внесено: 500.00 [10:48:57]line СДАЧА: 0.00 [10:48:57]line НСП 1% : 4.43 [10:48:57]line НДС 12% : 53.17 [10:48:57]line Наличными: 500.00 [10:48:57]line Безнал.: 0.00 [10:48:57]line Место: АЗС № 64 "Партнер Нефть" [10:48:57]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:48:57]line СНО: Общий режим [10:48:57]line Чек 24 26.11.2024 10:49 [10:48:57]line Смена: 557 ФФД: 1.0 [10:48:57]line ЗНМ: 0300000033 [10:48:57]line РНМ: 0000000000092681 [10:48:57]line Версия ККМ: 001 [10:48:57]line ФМ: 0000000000874881 [10:48:57]line ФД: 123170 [10:48:57]line ФПД: 54628519417431 [10:48:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T104906&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123170&fm=54628519417431&tin=02508201610067®Number=0000000000092681&sum=50000 [10:48:57]OFD Sender: Processing packet 123170 [packets to send 7, broken 6] [10:48:57]ProducePacketName [10:48:57]name=ofd_packets/00123170 [10:48:57]OFD Sender: To server: pG, [10:48:57]CommunicateWithHost lk.salyk.kg:30040 [10:48:57]ConnectInit lk.salyk.kg [10:48:57]written 0, free lines is 4095 [10:48:58]Connected sock=11 [10:48:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B1 14 07 01 FA 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A2 A7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 22 E1 01 00 35 04 06 00 31 AF 31 7E 96 57 27 06 8B F7 7E AF 6E 93 [10:48:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 EA 3B 47 00 12 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 22 E1 01 00 F4 03 04 00 64 53 45 67 B6 04 01 00 00 5B F8 D7 05 C5 DB 59 DB [10:48:58]CommunicateWithHost err = 0 [10:48:58]CheckOFDResponse [10:48:58]1017 (14) - 77093643461234 [10:48:58]1041 (16) - 0000000000874881 [10:48:58]1040 (4) - 123170 [10:48:58]1012 (4) - 26.11.2024 04:49 [10:48:58]1206 (1) - 0 [10:48:58]OFD Sender: Remove packet 123170 [10:48:58]ProducePacketName [10:48:58]name=ofd_packets/00123170 [10:48:58]NVStorageDeleteData [10:48:58]Write to MH i2c: 01 00 00 56 4E A4 [10:48:58]Write i2c OK [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: 01 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: 01 07 00 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: 01 07 00 56 4E 00 00 00 00 00 59 0C 10 [10:48:58]RasterBufferAndPrint [10:48:58]line [10:48:58]line [10:48:58]line [10:48:58]line [10:48:58]line [10:48:58]written 0, free lines is 3165 [10:48:58]MH_Cut [10:48:58]Write to MH i2c: D1 01 00 5D 4E 01 7D [10:48:58]Write i2c OK [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: D1 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: D1 01 00 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: D1 01 00 5D 4E 00 7C [10:48:58]Write to MH i2c: 01 00 00 5E 4E AC [10:48:58]Write i2c OK [10:48:58]MH_I2C_Read... [10:48:58]OFD Sender: No OFD packet to send [10:48:59]*** Cut start [10:48:59]*** Partial cut [10:48:59]*** CUTSNS_PIN = 1 [10:48:59]*** CUTSNS_PIN = 0 [10:49:00]*** Brake cut motor [10:49:00]Read from MH i2c: 01 [10:49:00]MH_I2C_Read... [10:49:00]*** Stop cut motor [10:49:00]*** Cut end [10:49:00]Read from MH i2c: 01 07 00 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: 01 07 00 5E 4E 00 00 00 00 00 FF 0F C1 [10:49:00]process_action close_receipt done [10:49:00]requested_data is exist [10:49:00]produce_requested_data [10:49:00]requested_item fm.sn is exist - process it [10:49:00]wFMCommunicate request_size=4 [10:49:00]MH_SAM_APDU [10:49:00]CAPDU: 80 11 00 00 [10:49:00]Write to MH i2c: E2 08 00 5F 4E 80 11 00 00 00 00 00 00 27 [10:49:00]Write i2c OK [10:49:00]MH_I2C_Read... [10:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:00]Read from MH i2c: E2 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 17 00 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 17 00 5F 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 7E [10:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:49:00]wFMCommunicate OK [10:49:00]requested_item fd.num is exist - process it [10:49:00]SAM_PROTO_GetFieldsCounters [10:49:00]wFMCommunicate request_size=4 [10:49:00]MH_SAM_APDU [10:49:00]CAPDU: 80 13 00 00 [10:49:00]Write to MH i2c: E2 08 00 60 4E 80 13 00 00 00 00 00 00 2A [10:49:00]Write i2c OK [10:49:00]MH_I2C_Read... [10:49:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:00]Read from MH i2c: E2 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 62 00 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 62 00 60 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 22 E1 01 00 0E 04 04 00 2D 02 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 CB [10:49:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 22 E1 01 00 0E 04 04 00 2D 02 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 [10:49:00]wFMCommunicate OK [10:49:00]SAM_PROTO_GetFieldsCounters done [10:49:00]requested_item shift.num is exist - process it [10:49:00]requested_item shift.opened is exist - process it [10:49:00]req_shift_opened [10:49:00]FM_GetShiftState [10:49:00]SAM_PROTO_GetShiftState [10:49:00]wFMCommunicate request_size=4 [10:49:00]MH_SAM_APDU [10:49:00]CAPDU: 80 13 01 00 [10:49:00]Write to MH i2c: E2 08 00 61 4E 80 13 01 00 00 00 00 00 2C [10:49:00]Write i2c OK [10:49:00]MH_I2C_Read... [10:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:00]Read from MH i2c: E2 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 0E 00 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 0E 00 61 4E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 8D [10:49:00]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:49:00]wFMCommunicate OK [10:49:00]SAM_PROTO_GetShiftState done [10:49:00]FM_GetShiftState done [10:49:00]req_shift_opened done [10:49:00]requested_item shift.open_date is exist - process it [10:49:00]req_shift_open_date [10:49:00]req_shift_open_date done [10:49:00]produce_requested_data done [10:49:00]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123170,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:49:00]process_action_free close_receipt [10:49:00]json_value_free [10:49:00]json_value_free done [10:49:00]process_json_proto returns [10:49:00]Send response to host [10:49:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123170,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:49:00]free response buf [10:49:00]execute_script done [10:49:00]execute_script returns [10:49:00]free content buf [10:49:00]Sock 7.Close socket [10:49:00]Sock 7.Thread stoped [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:01]accept exits with 9 [10:51:01]New connection [10:51:01]New thread 3066580324 created [10:51:01]Thread 3066723684 joined [10:51:01]Waiting for new connection... [10:51:01] Sock 9.Parse request [10:51:01]Sock 9.Check first char [10:51:01]Sock 9.First char is OK [10:51:01]request: POST /json_proto HTTP/1.0 [10:51:01]Method: POST [10:51:01]URL: /json_proto [10:51:01]Method is POST - this is cgi request [10:51:01]url: /json_proto [10:51:01]query_string will be loaded in cgi processing [10:51:01]execute_cgi json_proto POST (null) [10:51:01]execute_cgi path=json_proto method=POST [10:51:01]POST find Content-Length [10:51:01]Host: 172.17.37.4:8080 [10:51:01]Content-Length: 682 [10:51:01]Content-Type: application/json [10:51:01] [10:51:01]POST finish read [10:51:01]Found Content-Length = 682 [10:51:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 13.270, "sum" : 1000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:01]execute_script... [10:51:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 13.270, "sum" : 1000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:01]POST & json_proto [10:51:01]process_json_proto [10:51:01]json parsed OK: [10:51:01]protocol is kg_v1.0 [10:51:01]action value=close_receipt [10:51:01]process_action close_receipt [10:51:01]cmd_close_receipt [10:51:01]MH_GetDate [10:51:01]Write to MH i2c: F0 00 00 62 4E 9F [10:51:01]Write i2c OK [10:51:01]MH_I2C_Read... [10:51:01]Read from MH i2c: F0 [10:51:01]MH_I2C_Read... [10:51:01]Read from MH i2c: F0 09 00 [10:51:01]MH_I2C_Read... [10:51:01]Read from MH i2c: F0 09 00 62 4E 00 20 A8 45 67 B8 5A 43 67 D8 [10:51:01]GetLastDocTimeStamp 1732618146 [10:51:01]current date 1732618272 [10:51:01]FM_GetShiftState [10:51:01]SAM_PROTO_GetShiftState [10:51:01]wFMCommunicate request_size=4 [10:51:01]MH_SAM_APDU [10:51:01]CAPDU: 80 13 01 00 [10:51:01]Write to MH i2c: E2 08 00 63 4E 80 13 01 00 00 00 00 00 2E [10:51:01]Write i2c OK [10:51:01]MH_I2C_Read... [10:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:01]Read from MH i2c: E2 [10:51:01]MH_I2C_Read... [10:51:01]Read from MH i2c: E2 0E 00 [10:51:01]MH_I2C_Read... [10:51:01]Read from MH i2c: E2 0E 00 63 4E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 8F [10:51:01]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:51:01]wFMCommunicate OK [10:51:01]SAM_PROTO_GetShiftState done [10:51:01]FM_GetShiftState done [10:51:01]opened in 1732579736 [10:51:01]opened+sec_in_day 1732666136 [10:51:01]quantity*price = 100055 [10:51:01]sum+1 = 100057 [10:51:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 25 26.11.2024 10:51 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123171 ФПД: 69826596193264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T105112&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123171&fm=69826596193264&tin=02508201610067®Number=0000000000092681&sum=100000 [10:51:03]StoreToDocumentArchive [10:51:03]shift 557 fd 123171 [10:51:03]save to /storage/0557/doc_00123171 [10:51:03]save last doc name /storage/0557/doc_00123171 to /storage/kkm_last_doc_name [10:51:03]save OK [10:51:03]Clear old archive folders... [10:51:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:03]tlvbuf is 02071A10 [10:51:03]SAM_PROTO_ClearQueue [10:51:03]wFMCommunicate request_size=4 [10:51:03]MH_SAM_APDU [10:51:03]CAPDU: 80 09 00 00 [10:51:03]Write to MH i2c: E2 08 00 70 4E 80 09 00 00 00 00 00 00 30 [10:51:03]Write i2c OK [10:51:03]MH_I2C_Read... [10:51:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:03]Read from MH i2c: E2 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 03 00 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 03 00 70 4E 00 90 00 32 [10:51:03]RAPDU: 90 00 [10:51:03]wFMCommunicate OK [10:51:03]SAM_PROTO_ClearQueue done [10:51:03]KKMCreateOFDPacket [10:51:03]OFDProtocolAddRootSTLVToBuf [10:51:03]FM_MakeSignedData [10:51:03]FM_MakeSignedData [10:51:03]SAM_PROTO_SignData [10:51:03]wFMCommunicate request_size=4 [10:51:03]MH_SAM_APDU [10:51:03]CAPDU: 80 0D 01 02 [10:51:03]Write to MH i2c: E2 08 00 71 4E 80 0D 01 02 00 00 00 00 38 [10:51:03]Write i2c OK [10:51:03]MH_I2C_Read... [10:51:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:03]Read from MH i2c: E2 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 03 00 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 03 00 71 4E 00 90 00 33 [10:51:03]RAPDU: 90 00 [10:51:03]wFMCommunicate OK [10:51:03]wFMCommunicate request_size=255 [10:51:03]MH_SAM_APDU [10:51:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 20 A8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 23 E1 01 00 35 04 06 00 3F [10:51:03]Write to MH i2c: E2 02 01 72 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 20 A8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 23 E1 01 00 35 04 06 00 3F 00 00 B4 [10:51:03]Write i2c OK [10:51:03]MH_I2C_Read... [10:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:03]Read from MH i2c: E2 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 03 00 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 03 00 72 4E 00 90 00 34 [10:51:03]RAPDU: 90 00 [10:51:03]wFMCommunicate OK [10:51:03]wFMCommunicate request_size=10 [10:51:03]MH_SAM_APDU [10:51:03]CAPDU: 80 0D 02 02 05 81 C5 76 43 F0 [10:51:03]Write to MH i2c: E2 0D 00 73 4E 80 0D 02 02 05 00 81 C5 76 43 F0 00 00 34 [10:51:03]Write i2c OK [10:51:03]MH_I2C_Read... [10:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:03]Read from MH i2c: E2 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 03 00 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 03 00 73 4E 00 90 00 35 [10:51:03]RAPDU: 90 00 [10:51:03]wFMCommunicate OK [10:51:03]wFMCommunicate request_size=4 [10:51:03]MH_SAM_APDU [10:51:03]CAPDU: 80 0D 03 02 [10:51:03]Write to MH i2c: E2 08 00 74 4E 80 0D 03 02 00 00 00 00 3D [10:51:03]Write i2c OK [10:51:03]MH_I2C_Read... [10:51:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:03]Read from MH i2c: E2 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 0B 00 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 0B 00 74 4E 00 C8 6F 82 39 45 7D B4 16 90 00 BC [10:51:03]RAPDU: C8 6F 82 39 45 7D B4 16 90 00 [10:51:03]wFMCommunicate OK [10:51:03]SAM_PROTO_SignData done [10:51:03]FM_MakeSignedData done [10:51:03]CreateOFDProtocolMessage [10:51:03]wFMCommunicate request_size=4 [10:51:03]MH_SAM_APDU [10:51:03]CAPDU: 80 11 00 00 [10:51:03]Write to MH i2c: E2 08 00 75 4E 80 11 00 00 00 00 00 00 3D [10:51:03]Write i2c OK [10:51:03]MH_I2C_Read... [10:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:03]Read from MH i2c: E2 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 17 00 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 17 00 75 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 94 [10:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:51:03]wFMCommunicate OK [10:51:03]CreateOFDProtocolMessage done [10:51:03]OFDSenderStorePacket 123171 [10:51:03]StoreOFDPacket docnum=123171 [10:51:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 0E B9 07 01 9F EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 20 A8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 23 E1 01 00 35 04 06 00 3F 81 C5 76 43 F0 C8 6F 82 39 45 7D B4 16 [10:51:03]CheckFolder [10:51:03]dirname=/storage/ofd_packets [10:51:03]CheckFolder done [10:51:03]ProducePacketName [10:51:03]name=ofd_packets/00123171 [10:51:03]NVStorageSaveData ofd_packets/00123171 [10:51:03]File name is /storage/ofd_packets/00123171 [10:51:03]Write 301 bytes [10:51:03]NVStorageSaveData done [10:51:03]OFDSenderStorePacket done [10:51:03]KKMCreateOFDPacket done [10:51:03]NVStorageSaveData kkm_last_timestamp [10:51:03]File name is /storage/kkm_last_timestamp [10:51:03]Write 4 bytes [10:51:03]NVStorageSaveData done [10:51:03]ExternCall_PrintAddStr [10:51:03]wPrintStart [10:51:03]Write to MH i2c: 01 00 00 76 4E C4 [10:51:03]Write i2c OK [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: 01 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: 01 07 00 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: 01 07 00 76 4E 00 00 00 00 00 FF 0F D9 [10:51:03]RasterBufferAndPrint [10:51:03]line Счет N : (1)718005 [10:51:03]line ИНН: 02508201610067 [10:51:03]line Контрольно-Кассовый Чек [10:51:03]line ПРОДАЖА [10:51:03]line ТРК (МРК, ГНК) : 21 [10:51:03]line Товар: 2710124500 [10:51:03]line Аи-95-К-5 [10:51:03]line 13.270 * 75.40 [10:51:03]line = 1000.56 [10:51:03]line НДС 12% НСП 1% [10:51:03]line > о реализуемом товаре [10:51:03]line ОКРУГЛЕНИЕ: -0.56 [10:51:03]line ИТОГО: 1000.00 [10:51:03]line Внесено: 1000.00 [10:51:03]line СДАЧА: 0.00 [10:51:03]line НСП 1% : 8.85 [10:51:03]line НДС 12% : 106.25 [10:51:03]line Наличными: 1000.00 [10:51:03]line Безнал.: 0.00 [10:51:03]line Место: АЗС № 64 "Партнер Нефть" [10:51:03]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:51:03]line СНО: Общий режим [10:51:03]line Чек 25 26.11.2024 10:51 [10:51:03]line Смена: 557 ФФД: 1.0 [10:51:03]line ЗНМ: 0300000033 [10:51:03]line РНМ: 0000000000092681 [10:51:03]line Версия ККМ: 001 [10:51:03]line ФМ: 0000000000874881 [10:51:03]line ФД: 123171 [10:51:03]line ФПД: 69826596193264 [10:51:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T105112&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123171&fm=69826596193264&tin=02508201610067®Number=0000000000092681&sum=100000 [10:51:03]OFD Sender: Processing packet 123171 [packets to send 7, broken 6] [10:51:03]ProducePacketName [10:51:03]name=ofd_packets/00123171 [10:51:03]OFD Sender: To server: pG, [10:51:03]CommunicateWithHost lk.salyk.kg:30040 [10:51:03]ConnectInit lk.salyk.kg [10:51:03]written 0, free lines is 4095 [10:51:04]Connected sock=10 [10:51:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 0E B9 07 01 9F EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 20 A8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 23 E1 01 00 35 04 06 00 3F 81 C5 76 43 F0 C8 6F 82 39 45 7D B4 16 [10:51:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 1F 07 47 00 8F 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 23 E1 01 00 F4 03 04 00 E2 53 45 67 B6 04 01 00 00 3B E6 D7 D8 95 3D 4A 64 [10:51:04]CommunicateWithHost err = 0 [10:51:04]CheckOFDResponse [10:51:04]1017 (14) - 77093643461234 [10:51:04]1041 (16) - 0000000000874881 [10:51:04]1040 (4) - 123171 [10:51:04]1012 (4) - 26.11.2024 04:51 [10:51:04]1206 (1) - 0 [10:51:04]OFD Sender: Remove packet 123171 [10:51:04]ProducePacketName [10:51:04]name=ofd_packets/00123171 [10:51:04]NVStorageDeleteData [10:51:04]Write to MH i2c: 01 00 00 A1 4E EF [10:51:04]Write i2c OK [10:51:04]MH_I2C_Read... [10:51:04]Read from MH i2c: 01 [10:51:04]MH_I2C_Read... [10:51:04]Read from MH i2c: 01 07 00 [10:51:04]MH_I2C_Read... [10:51:04]Read from MH i2c: 01 07 00 A1 4E 00 00 00 00 00 56 0C 58 [10:51:04]RasterBufferAndPrint [10:51:04]line [10:51:04]line [10:51:04]line [10:51:04]line [10:51:04]line [10:51:04]written 0, free lines is 3163 [10:51:04]MH_Cut [10:51:04]Write to MH i2c: D1 01 00 A8 4E 01 C8 [10:51:04]Write i2c OK [10:51:04]MH_I2C_Read... [10:51:04]Read from MH i2c: D1 [10:51:04]MH_I2C_Read... [10:51:04]Read from MH i2c: D1 01 00 [10:51:04]MH_I2C_Read... [10:51:04]Read from MH i2c: D1 01 00 A8 4E 00 C7 [10:51:04]Write to MH i2c: 01 00 00 A9 4E F7 [10:51:04]Write i2c OK [10:51:04]MH_I2C_Read... [10:51:04]OFD Sender: No OFD packet to send [10:51:05]*** Cut start [10:51:05]*** Partial cut [10:51:05]*** CUTSNS_PIN = 1 [10:51:05]*** CUTSNS_PIN = 0 [10:51:06]*** Brake cut motor [10:51:06]Read from MH i2c: 01 [10:51:06]MH_I2C_Read... [10:51:06]*** Stop cut motor [10:51:06]*** Cut end [10:51:06]Read from MH i2c: 01 07 00 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: 01 07 00 A9 4E 00 00 00 00 00 FF 0F 0C [10:51:06]process_action close_receipt done [10:51:06]requested_data is exist [10:51:06]produce_requested_data [10:51:06]requested_item fm.sn is exist - process it [10:51:06]wFMCommunicate request_size=4 [10:51:06]MH_SAM_APDU [10:51:06]CAPDU: 80 11 00 00 [10:51:06]Write to MH i2c: E2 08 00 AA 4E 80 11 00 00 00 00 00 00 72 [10:51:06]Write i2c OK [10:51:06]MH_I2C_Read... [10:51:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:06]Read from MH i2c: E2 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: E2 17 00 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: E2 17 00 AA 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C9 [10:51:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:51:06]wFMCommunicate OK [10:51:06]requested_item fd.num is exist - process it [10:51:06]SAM_PROTO_GetFieldsCounters [10:51:06]wFMCommunicate request_size=4 [10:51:06]MH_SAM_APDU [10:51:06]CAPDU: 80 13 00 00 [10:51:06]Write to MH i2c: E2 08 00 AB 4E 80 13 00 00 00 00 00 00 75 [10:51:06]Write i2c OK [10:51:06]MH_I2C_Read... [10:51:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:06]Read from MH i2c: E2 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: E2 62 00 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: E2 62 00 AB 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 23 E1 01 00 0E 04 04 00 2D 02 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 1A [10:51:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 23 E1 01 00 0E 04 04 00 2D 02 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 [10:51:06]wFMCommunicate OK [10:51:06]SAM_PROTO_GetFieldsCounters done [10:51:06]requested_item shift.num is exist - process it [10:51:06]requested_item shift.opened is exist - process it [10:51:06]req_shift_opened [10:51:06]FM_GetShiftState [10:51:06]SAM_PROTO_GetShiftState [10:51:06]wFMCommunicate request_size=4 [10:51:06]MH_SAM_APDU [10:51:06]CAPDU: 80 13 01 00 [10:51:06]Write to MH i2c: E2 08 00 AC 4E 80 13 01 00 00 00 00 00 77 [10:51:06]Write i2c OK [10:51:06]MH_I2C_Read... [10:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:06]Read from MH i2c: E2 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: E2 0E 00 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: E2 0E 00 AC 4E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 D8 [10:51:06]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:51:06]wFMCommunicate OK [10:51:06]SAM_PROTO_GetShiftState done [10:51:06]FM_GetShiftState done [10:51:06]req_shift_opened done [10:51:06]requested_item shift.open_date is exist - process it [10:51:06]req_shift_open_date [10:51:06]req_shift_open_date done [10:51:06]produce_requested_data done [10:51:06]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123171,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:51:06]process_action_free close_receipt [10:51:06]json_value_free [10:51:06]json_value_free done [10:51:06]process_json_proto returns [10:51:06]Send response to host [10:51:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123171,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:51:06]free response buf [10:51:06]execute_script done [10:51:06]execute_script returns [10:51:06]free content buf [10:51:06]Sock 9.Close socket [10:51:06]Sock 9.Thread stoped [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:39]OFD Sender: No OFD packet to send [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:59]OFD Sender: No OFD packet to send [10:52:04]OFD Sender: No OFD packet to send [10:52:09]OFD Sender: No OFD packet to send [10:52:14]OFD Sender: No OFD packet to send [10:52:19]OFD Sender: No OFD packet to send [10:52:24]OFD Sender: No OFD packet to send [10:52:29]OFD Sender: No OFD packet to send [10:52:34]OFD Sender: No OFD packet to send [10:52:39]OFD Sender: No OFD packet to send [10:52:44]OFD Sender: No OFD packet to send [10:52:49]OFD Sender: No OFD packet to send [10:52:54]OFD Sender: No OFD packet to send [10:52:59]OFD Sender: No OFD packet to send [10:53:04]OFD Sender: No OFD packet to send [10:53:09]OFD Sender: No OFD packet to send [10:53:14]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53:24]OFD Sender: No OFD packet to send [10:53:29]OFD Sender: No OFD packet to send [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:37]accept exits with 7 [10:55:37]New connection [10:55:37]New thread 3066723684 created [10:55:37]Thread 3066580324 joined [10:55:37]Waiting for new connection... [10:55:37] Sock 7.Parse request [10:55:37]Sock 7.Check first char [10:55:37]Sock 7.First char is OK [10:55:37]request: POST /json_proto HTTP/1.0 [10:55:37]Method: POST [10:55:37]URL: /json_proto [10:55:37]Method is POST - this is cgi request [10:55:37]url: /json_proto [10:55:37]query_string will be loaded in cgi processing [10:55:37]execute_cgi json_proto POST (null) [10:55:37]execute_cgi path=json_proto method=POST [10:55:37]POST find Content-Length [10:55:37]Host: 172.17.37.4:8080 [10:55:37]Content-Length: 796 [10:55:37]Content-Type: application/json [10:55:37] [10:55:37]POST finish read [10:55:37]Found Content-Length = 796 [10:55:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65627", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:37]execute_script... [10:55:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65627", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:37]POST & json_proto [10:55:37]process_json_proto [10:55:37]json parsed OK: [10:55:37]protocol is kg_v1.0 [10:55:37]action value=close_receipt [10:55:37]process_action close_receipt [10:55:37]cmd_close_receipt [10:55:37]MH_GetDate [10:55:37]Write to MH i2c: F0 00 00 AD 4E EA [10:55:37]Write i2c OK [10:55:37]MH_I2C_Read... [10:55:37]Read from MH i2c: F0 [10:55:37]MH_I2C_Read... [10:55:37]Read from MH i2c: F0 09 00 [10:55:37]MH_I2C_Read... [10:55:37]Read from MH i2c: F0 09 00 AD 4E 00 33 A9 45 67 B8 5A 43 67 37 [10:55:37]GetLastDocTimeStamp 1732618272 [10:55:37]current date 1732618547 [10:55:37]FM_GetShiftState [10:55:37]SAM_PROTO_GetShiftState [10:55:37]wFMCommunicate request_size=4 [10:55:37]MH_SAM_APDU [10:55:37]CAPDU: 80 13 01 00 [10:55:37]Write to MH i2c: E2 08 00 AE 4E 80 13 01 00 00 00 00 00 79 [10:55:37]Write i2c OK [10:55:37]MH_I2C_Read... [10:55:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:37]Read from MH i2c: E2 [10:55:37]MH_I2C_Read... [10:55:37]Read from MH i2c: E2 0E 00 [10:55:37]MH_I2C_Read... [10:55:37]Read from MH i2c: E2 0E 00 AE 4E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 DA [10:55:37]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:55:37]wFMCommunicate OK [10:55:37]SAM_PROTO_GetShiftState done [10:55:37]FM_GetShiftState done [10:55:37]opened in 1732579736 [10:55:37]opened+sec_in_day 1732666136 [10:55:37]quantity*price = 0 [10:55:37]sum+1 = 1 [10:55:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 26 26.11.2024 10:55 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 65627 ФМ: 0000000000874881 ФД: 123172 ФПД: 193024989551009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T105547&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123172&fm=193024989551009&tin=02508201610067®Number=0000000000092681&sum=0 [10:55:38]StoreToDocumentArchive [10:55:38]shift 557 fd 123172 [10:55:38]save to /storage/0557/doc_00123172 [10:55:38]save last doc name /storage/0557/doc_00123172 to /storage/kkm_last_doc_name [10:55:38]save OK [10:55:38]Clear old archive folders... [10:55:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:55:38]tlvbuf is 01F428A0 [10:55:38]SAM_PROTO_ClearQueue [10:55:38]wFMCommunicate request_size=4 [10:55:38]MH_SAM_APDU [10:55:38]CAPDU: 80 09 00 00 [10:55:38]Write to MH i2c: E2 08 00 BB 4E 80 09 00 00 00 00 00 00 7B [10:55:38]Write i2c OK [10:55:38]MH_I2C_Read... [10:55:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:38]Read from MH i2c: E2 [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: E2 03 00 [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: E2 03 00 BB 4E 00 90 00 7D [10:55:38]RAPDU: 90 00 [10:55:38]wFMCommunicate OK [10:55:38]SAM_PROTO_ClearQueue done [10:55:38]KKMCreateOFDPacket [10:55:38]OFDProtocolAddRootSTLVToBuf [10:55:38]FM_MakeSignedData [10:55:38]FM_MakeSignedData [10:55:38]SAM_PROTO_SignData [10:55:38]wFMCommunicate request_size=4 [10:55:38]MH_SAM_APDU [10:55:38]CAPDU: 80 0D 01 02 [10:55:38]Write to MH i2c: E2 08 00 BC 4E 80 0D 01 02 00 00 00 00 83 [10:55:38]Write i2c OK [10:55:38]MH_I2C_Read... [10:55:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:38]Read from MH i2c: E2 [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: E2 03 00 [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: E2 03 00 BC 4E 00 90 00 7E [10:55:38]RAPDU: 90 00 [10:55:38]wFMCommunicate OK [10:55:38]wFMCommunicate request_size=255 [10:55:38]MH_SAM_APDU [10:55:38]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 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 33 A9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 24 E1 01 00 35 04 06 00 [10:55:38]Write to MH i2c: E2 02 01 BD 4E 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 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 33 A9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 24 E1 01 00 35 04 06 00 00 00 E4 [10:55:38]Write i2c OK [10:55:38]MH_I2C_Read... [10:55:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:39]Read from MH i2c: E2 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 03 00 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 03 00 BD 4E 00 90 00 7F [10:55:39]RAPDU: 90 00 [10:55:39]wFMCommunicate OK [10:55:39]wFMCommunicate request_size=11 [10:55:39]MH_SAM_APDU [10:55:39]CAPDU: 80 0D 02 02 06 AF 8E 21 EF 59 A1 [10:55:39]Write to MH i2c: E2 0E 00 BE 4E 80 0D 02 02 06 00 AF 8E 21 EF 59 A1 00 00 D9 [10:55:39]Write i2c OK [10:55:39]MH_I2C_Read... [10:55:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:39]Read from MH i2c: E2 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 03 00 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 03 00 BE 4E 00 90 00 80 [10:55:39]RAPDU: 90 00 [10:55:39]wFMCommunicate OK [10:55:39]wFMCommunicate request_size=4 [10:55:39]MH_SAM_APDU [10:55:39]CAPDU: 80 0D 03 02 [10:55:39]Write to MH i2c: E2 08 00 BF 4E 80 0D 03 02 00 00 00 00 88 [10:55:39]Write i2c OK [10:55:39]MH_I2C_Read... [10:55:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:39]Read from MH i2c: E2 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 0B 00 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 0B 00 BF 4E 00 B9 59 A6 B4 E5 39 5D 5A 90 00 CA [10:55:39]RAPDU: B9 59 A6 B4 E5 39 5D 5A 90 00 [10:55:39]wFMCommunicate OK [10:55:39]SAM_PROTO_SignData done [10:55:39]FM_MakeSignedData done [10:55:39]CreateOFDProtocolMessage [10:55:39]wFMCommunicate request_size=4 [10:55:39]MH_SAM_APDU [10:55:39]CAPDU: 80 11 00 00 [10:55:39]Write to MH i2c: E2 08 00 C0 4E 80 11 00 00 00 00 00 00 88 [10:55:39]Write i2c OK [10:55:39]MH_I2C_Read... [10:55:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:39]Read from MH i2c: E2 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 17 00 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 17 00 C0 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DF [10:55:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:55:39]wFMCommunicate OK [10:55:39]CreateOFDProtocolMessage done [10:55:39]OFDSenderStorePacket 123172 [10:55:39]StoreOFDPacket docnum=123172 [10:55:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 C7 5C 08 01 FE 67 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 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 33 A9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 24 E1 01 00 35 04 06 00 AF 8E 21 EF 59 A1 B9 59 A6 B4 E5 39 5D 5A [10:55:39]CheckFolder [10:55:39]dirname=/storage/ofd_packets [10:55:39]CheckFolder done [10:55:39]ProducePacketName [10:55:39]name=ofd_packets/00123172 [10:55:39]NVStorageSaveData ofd_packets/00123172 [10:55:39]File name is /storage/ofd_packets/00123172 [10:55:39]Write 302 bytes [10:55:39]NVStorageSaveData done [10:55:39]OFDSenderStorePacket done [10:55:39]KKMCreateOFDPacket done [10:55:39]NVStorageSaveData kkm_last_timestamp [10:55:39]File name is /storage/kkm_last_timestamp [10:55:39]Write 4 bytes [10:55:39]NVStorageSaveData done [10:55:39]ExternCall_PrintAddStr [10:55:39]wPrintStart [10:55:39]Write to MH i2c: 01 00 00 C1 4E 0F [10:55:39]Write i2c OK [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: 01 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: 01 07 00 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: 01 07 00 C1 4E 00 00 00 00 00 FF 0F 24 [10:55:39]RasterBufferAndPrint [10:55:39]line Счет N : (1)718006 [10:55:39]line ИНН: 02508201610067 [10:55:39]line Контрольно-Кассовый Чек [10:55:39]line ПРОДАЖА [10:55:39]line ТРК (МРК, ГНК) : 5 [10:55:39]line Товар: 2710194210 [10:55:39]line ДТ(л)-К-5 [10:55:39]line 35.000 * 0.00 [10:55:39]line = 0.00 [10:55:39]line НДС 12% НСП 1% [10:55:39]line > о реализуемом товаре [10:55:39]line ИТОГО: 0.00 [10:55:39]line НСП 1% : 0.00 [10:55:39]line НДС 12% : 0.00 [10:55:39]line Наличными: 0.00 [10:55:39]line Безнал.: 0.00 [10:55:39]line Место: АЗС № 64 "Партнер Нефть" [10:55:39]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:55:39]line СНО: Общий режим [10:55:39]line Чек 26 26.11.2024 10:55 [10:55:39]line Смена: 557 ФФД: 1.0 [10:55:39]line ЗНМ: 0300000033 [10:55:39]line РНМ: 0000000000092681 [10:55:39]line Версия ККМ: 001 [10:55:39]line Талоны: Топливная Карта [10:55:39]line 65627 [10:55:39]line ФМ: 0000000000874881 [10:55:39]line ФД: 123172 [10:55:39]line ФПД: 193024989551009 [10:55:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T105547&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123172&fm=193024989551009&tin=02508201610067®Number=0000000000092681&sum=0 [10:55:39]OFD Sender: Processing packet 123172 [packets to send 7, broken 6] [10:55:39]ProducePacketName [10:55:39]name=ofd_packets/00123172 [10:55:39]OFD Sender: To server: pG, [10:55:39]CommunicateWithHost lk.salyk.kg:30040 [10:55:39]ConnectInit lk.salyk.kg [10:55:39]written 0, free lines is 4095 [10:55:39]Connected sock=10 [10:55:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 C7 5C 08 01 FE 67 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 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 33 A9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 24 E1 01 00 35 04 06 00 AF 8E 21 EF 59 A1 B9 59 A6 B4 E5 39 5D 5A [10:55:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 4D 56 47 00 29 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 24 E1 01 00 F4 03 04 00 F6 54 45 67 B6 04 01 00 00 7A 2C 6A 8D D3 F0 0B 56 [10:55:39]CommunicateWithHost err = 0 [10:55:39]CheckOFDResponse [10:55:39]1017 (14) - 77093643461234 [10:55:39]1041 (16) - 0000000000874881 [10:55:39]1040 (4) - 123172 [10:55:39]1012 (4) - 26.11.2024 04:56 [10:55:39]1206 (1) - 0 [10:55:39]OFD Sender: Remove packet 123172 [10:55:39]ProducePacketName [10:55:39]name=ofd_packets/00123172 [10:55:39]NVStorageDeleteData [10:55:40]Write to MH i2c: 01 00 00 EB 4E 39 [10:55:40]Write i2c OK [10:55:40]MH_I2C_Read... [10:55:40]Read from MH i2c: 01 [10:55:40]MH_I2C_Read... [10:55:40]Read from MH i2c: 01 07 00 [10:55:40]MH_I2C_Read... [10:55:40]Read from MH i2c: 01 07 00 EB 4E 00 00 00 00 00 5A 0C A6 [10:55:40]RasterBufferAndPrint [10:55:40]line [10:55:40]line [10:55:40]line [10:55:40]line [10:55:40]line [10:55:40]written 0, free lines is 3166 [10:55:40]MH_Cut [10:55:40]Write to MH i2c: D1 01 00 F2 4E 01 12 [10:55:40]Write i2c OK [10:55:40]MH_I2C_Read... [10:55:40]Read from MH i2c: D1 [10:55:40]MH_I2C_Read... [10:55:40]Read from MH i2c: D1 01 00 [10:55:40]MH_I2C_Read... [10:55:40]Read from MH i2c: D1 01 00 F2 4E 00 11 [10:55:40]Write to MH i2c: 01 00 00 F3 4E 41 [10:55:40]Write i2c OK [10:55:40]MH_I2C_Read... [10:55:40]OFD Sender: No OFD packet to send [10:55:41]*** Cut start [10:55:41]*** Partial cut [10:55:41]*** CUTSNS_PIN = 1 [10:55:41]*** CUTSNS_PIN = 0 [10:55:41]*** Brake cut motor [10:55:42]Read from MH i2c: 01 [10:55:42]MH_I2C_Read... [10:55:42]*** Stop cut motor [10:55:42]*** Cut end [10:55:42]Read from MH i2c: 01 07 00 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: 01 07 00 F3 4E 00 00 00 00 00 FF 0F 56 [10:55:42]process_action close_receipt done [10:55:42]requested_data is exist [10:55:42]produce_requested_data [10:55:42]requested_item fm.sn is exist - process it [10:55:42]wFMCommunicate request_size=4 [10:55:42]MH_SAM_APDU [10:55:42]CAPDU: 80 11 00 00 [10:55:42]Write to MH i2c: E2 08 00 F4 4E 80 11 00 00 00 00 00 00 BC [10:55:42]Write i2c OK [10:55:42]MH_I2C_Read... [10:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:42]Read from MH i2c: E2 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 17 00 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 17 00 F4 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 13 [10:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:55:42]wFMCommunicate OK [10:55:42]requested_item fd.num is exist - process it [10:55:42]SAM_PROTO_GetFieldsCounters [10:55:42]wFMCommunicate request_size=4 [10:55:42]MH_SAM_APDU [10:55:42]CAPDU: 80 13 00 00 [10:55:42]Write to MH i2c: E2 08 00 F5 4E 80 13 00 00 00 00 00 00 BF [10:55:42]Write i2c OK [10:55:42]MH_I2C_Read... [10:55:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:42]Read from MH i2c: E2 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 62 00 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 62 00 F5 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 24 E1 01 00 0E 04 04 00 2D 02 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 68 [10:55:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 24 E1 01 00 0E 04 04 00 2D 02 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 [10:55:42]wFMCommunicate OK [10:55:42]SAM_PROTO_GetFieldsCounters done [10:55:42]requested_item shift.num is exist - process it [10:55:42]requested_item shift.opened is exist - process it [10:55:42]req_shift_opened [10:55:42]FM_GetShiftState [10:55:42]SAM_PROTO_GetShiftState [10:55:42]wFMCommunicate request_size=4 [10:55:42]MH_SAM_APDU [10:55:42]CAPDU: 80 13 01 00 [10:55:42]Write to MH i2c: E2 08 00 F6 4E 80 13 01 00 00 00 00 00 C1 [10:55:42]Write i2c OK [10:55:42]MH_I2C_Read... [10:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:42]Read from MH i2c: E2 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 0E 00 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 0E 00 F6 4E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 22 [10:55:42]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [10:55:42]wFMCommunicate OK [10:55:42]SAM_PROTO_GetShiftState done [10:55:42]FM_GetShiftState done [10:55:42]req_shift_opened done [10:55:42]requested_item shift.open_date is exist - process it [10:55:42]req_shift_open_date [10:55:42]req_shift_open_date done [10:55:42]produce_requested_data done [10:55:42]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123172,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [10:55:42]process_action_free close_receipt [10:55:42]json_value_free [10:55:42]json_value_free done [10:55:42]process_json_proto returns [10:55:42]Send response to host [10:55:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123172,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [10:55:42]free response buf [10:55:42]execute_script done [10:55:42]execute_script returns [10:55:42]free content buf [10:55:42]Sock 7.Close socket [10:55:42]Sock 7.Thread stoped [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]accept exits with 9 [11:02:55]New connection [11:02:55]New thread 3066580324 created [11:02:55]Thread 3066723684 joined [11:02:55]Waiting for new connection... [11:02:55] Sock 9.Parse request [11:02:55]Sock 9.Check first char [11:02:55]Sock 9.First char is OK [11:02:55]request: POST /json_proto HTTP/1.0 [11:02:55]Method: POST [11:02:55]URL: /json_proto [11:02:55]Method is POST - this is cgi request [11:02:55]url: /json_proto [11:02:55]query_string will be loaded in cgi processing [11:02:55]execute_cgi json_proto POST (null) [11:02:55]execute_cgi path=json_proto method=POST [11:02:55]POST find Content-Length [11:02:55]Host: 172.17.37.4:8080 [11:02:55]Content-Length: 677 [11:02:55]Content-Type: application/json [11:02:55] [11:02:55]POST finish read [11:02:55]Found Content-Length = 677 [11:02:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:55]execute_script... [11:02:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:55]POST & json_proto [11:02:55]process_json_proto [11:02:55]json parsed OK: [11:02:55]protocol is kg_v1.0 [11:02:55]action value=close_receipt [11:02:55]process_action close_receipt [11:02:55]cmd_close_receipt [11:02:55]MH_GetDate [11:02:55]Write to MH i2c: F0 00 00 F7 4E 34 [11:02:55]Write i2c OK [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: F0 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: F0 09 00 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: F0 09 00 F7 4E 00 E9 AA 45 67 B8 5A 43 67 38 [11:02:55]GetLastDocTimeStamp 1732618547 [11:02:55]current date 1732618985 [11:02:55]FM_GetShiftState [11:02:55]SAM_PROTO_GetShiftState [11:02:55]wFMCommunicate request_size=4 [11:02:55]MH_SAM_APDU [11:02:55]CAPDU: 80 13 01 00 [11:02:55]Write to MH i2c: E2 08 00 F8 4E 80 13 01 00 00 00 00 00 C3 [11:02:55]Write i2c OK [11:02:55]MH_I2C_Read... [11:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:55]Read from MH i2c: E2 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 0E 00 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 0E 00 F8 4E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 24 [11:02:55]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:02:55]wFMCommunicate OK [11:02:55]SAM_PROTO_GetShiftState done [11:02:55]FM_GetShiftState done [11:02:55]opened in 1732579736 [11:02:55]opened+sec_in_day 1732666136 [11:02:55]quantity*price = 20017 [11:02:55]sum+1 = 20019 [11:02:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 27 26.11.2024 11:03 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123173 ФПД: 33904043849010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T110305&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123173&fm=33904043849010&tin=02508201610067®Number=0000000000092681&sum=20000 [11:02:56]StoreToDocumentArchive [11:02:56]shift 557 fd 123173 [11:02:56]save to /storage/0557/doc_00123173 [11:02:56]save last doc name /storage/0557/doc_00123173 to /storage/kkm_last_doc_name [11:02:56]save OK [11:02:56]Clear old archive folders... [11:02:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:56]tlvbuf is 0215A960 [11:02:56]SAM_PROTO_ClearQueue [11:02:56]wFMCommunicate request_size=4 [11:02:56]MH_SAM_APDU [11:02:56]CAPDU: 80 09 00 00 [11:02:56]Write to MH i2c: E2 08 00 05 4F 80 09 00 00 00 00 00 00 C6 [11:02:56]Write i2c OK [11:02:56]MH_I2C_Read... [11:02:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:56]Read from MH i2c: E2 [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: E2 03 00 [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: E2 03 00 05 4F 00 90 00 C8 [11:02:56]RAPDU: 90 00 [11:02:56]wFMCommunicate OK [11:02:56]SAM_PROTO_ClearQueue done [11:02:56]KKMCreateOFDPacket [11:02:56]OFDProtocolAddRootSTLVToBuf [11:02:56]FM_MakeSignedData [11:02:56]FM_MakeSignedData [11:02:56]SAM_PROTO_SignData [11:02:56]wFMCommunicate request_size=4 [11:02:56]MH_SAM_APDU [11:02:56]CAPDU: 80 0D 01 02 [11:02:56]Write to MH i2c: E2 08 00 06 4F 80 0D 01 02 00 00 00 00 CE [11:02:56]Write i2c OK [11:02:56]MH_I2C_Read... [11:02:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:56]Read from MH i2c: E2 [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: E2 03 00 [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: E2 03 00 06 4F 00 90 00 C9 [11:02:56]RAPDU: 90 00 [11:02:56]wFMCommunicate OK [11:02:56]wFMCommunicate request_size=255 [11:02:56]MH_SAM_APDU [11:02:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 E9 AA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 25 E1 01 00 35 04 06 00 1E [11:02:56]Write to MH i2c: E2 02 01 07 4F 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 E9 AA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 25 E1 01 00 35 04 06 00 1E 00 00 00 [11:02:56]Write i2c OK [11:02:56]MH_I2C_Read... [11:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:57]Read from MH i2c: E2 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 03 00 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 03 00 07 4F 00 90 00 CA [11:02:57]RAPDU: 90 00 [11:02:57]wFMCommunicate OK [11:02:57]wFMCommunicate request_size=10 [11:02:57]MH_SAM_APDU [11:02:57]CAPDU: 80 0D 02 02 05 D5 E6 7D 75 32 [11:02:57]Write to MH i2c: E2 0D 00 08 4F 80 0D 02 02 05 00 D5 E6 7D 75 32 00 00 BA [11:02:57]Write i2c OK [11:02:57]MH_I2C_Read... [11:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:57]Read from MH i2c: E2 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 03 00 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 03 00 08 4F 00 90 00 CB [11:02:57]RAPDU: 90 00 [11:02:57]wFMCommunicate OK [11:02:57]wFMCommunicate request_size=4 [11:02:57]MH_SAM_APDU [11:02:57]CAPDU: 80 0D 03 02 [11:02:57]Write to MH i2c: E2 08 00 09 4F 80 0D 03 02 00 00 00 00 D3 [11:02:57]Write i2c OK [11:02:57]MH_I2C_Read... [11:02:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:57]Read from MH i2c: E2 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 0B 00 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 0B 00 09 4F 00 12 B6 E2 CE 5F 1B 03 F8 90 00 C1 [11:02:57]RAPDU: 12 B6 E2 CE 5F 1B 03 F8 90 00 [11:02:57]wFMCommunicate OK [11:02:57]SAM_PROTO_SignData done [11:02:57]FM_MakeSignedData done [11:02:57]CreateOFDProtocolMessage [11:02:57]wFMCommunicate request_size=4 [11:02:57]MH_SAM_APDU [11:02:57]CAPDU: 80 11 00 00 [11:02:57]Write to MH i2c: E2 08 00 0A 4F 80 11 00 00 00 00 00 00 D3 [11:02:57]Write i2c OK [11:02:57]MH_I2C_Read... [11:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:57]Read from MH i2c: E2 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 17 00 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 17 00 0A 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2A [11:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:02:57]wFMCommunicate OK [11:02:57]CreateOFDProtocolMessage done [11:02:57]OFDSenderStorePacket 123173 [11:02:57]StoreOFDPacket docnum=123173 [11:02:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 4F 6B 07 01 8A 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 E9 AA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 25 E1 01 00 35 04 06 00 1E D5 E6 7D 75 32 12 B6 E2 CE 5F 1B 03 F8 [11:02:57]CheckFolder [11:02:57]dirname=/storage/ofd_packets [11:02:57]CheckFolder done [11:02:57]ProducePacketName [11:02:57]name=ofd_packets/00123173 [11:02:57]NVStorageSaveData ofd_packets/00123173 [11:02:57]File name is /storage/ofd_packets/00123173 [11:02:57]Write 301 bytes [11:02:57]NVStorageSaveData done [11:02:57]OFDSenderStorePacket done [11:02:57]KKMCreateOFDPacket done [11:02:57]NVStorageSaveData kkm_last_timestamp [11:02:57]File name is /storage/kkm_last_timestamp [11:02:57]Write 4 bytes [11:02:57]NVStorageSaveData done [11:02:57]ExternCall_PrintAddStr [11:02:57]wPrintStart [11:02:57]Write to MH i2c: 01 00 00 0B 4F 5A [11:02:57]Write i2c OK [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: 01 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: 01 07 00 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: 01 07 00 0B 4F 00 00 00 00 00 FF 0F 6F [11:02:57]RasterBufferAndPrint [11:02:57]line Счет N : (1)718007 [11:02:57]line ИНН: 02508201610067 [11:02:57]line Контрольно-Кассовый Чек [11:02:57]line ПРОДАЖА [11:02:57]line ТРК (МРК, ГНК) : 42 [11:02:57]line Товар: 2710124130 [11:02:57]line Аи-92-К-4 [11:02:57]line 2.970 * 67.40 [11:02:57]line = 200.18 [11:02:57]line НДС 12% НСП 1% [11:02:57]line > о реализуемом товаре [11:02:57]line ОКРУГЛЕНИЕ: -0.18 [11:02:57]line ИТОГО: 200.00 [11:02:57]line Внесено: 200.00 [11:02:57]line СДАЧА: 0.00 [11:02:57]line НСП 1% : 1.77 [11:02:57]line НДС 12% : 21.26 [11:02:57]line Наличными: 200.00 [11:02:57]line Безнал.: 0.00 [11:02:57]line Место: АЗС № 64 "Партнер Нефть" [11:02:57]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:02:57]line СНО: Общий режим [11:02:57]line Чек 27 26.11.2024 11:03 [11:02:57]line Смена: 557 ФФД: 1.0 [11:02:57]line ЗНМ: 0300000033 [11:02:57]line РНМ: 0000000000092681 [11:02:57]line Версия ККМ: 001 [11:02:57]line ФМ: 0000000000874881 [11:02:57]line ФД: 123173 [11:02:57]line ФПД: 33904043849010 [11:02:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T110305&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123173&fm=33904043849010&tin=02508201610067®Number=0000000000092681&sum=20000 [11:02:57]OFD Sender: Processing packet 123173 [packets to send 7, broken 6] [11:02:57]ProducePacketName [11:02:57]name=ofd_packets/00123173 [11:02:57]OFD Sender: To server: pG, [11:02:57]CommunicateWithHost lk.salyk.kg:30040 [11:02:57]ConnectInit lk.salyk.kg [11:02:57]written 0, free lines is 4095 [11:02:57]Connected sock=10 [11:02:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 4F 6B 07 01 8A 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 E9 AA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 25 E1 01 00 35 04 06 00 1E D5 E6 7D 75 32 12 B6 E2 CE 5F 1B 03 F8 [11:02:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 EF 4A 47 00 72 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 25 E1 01 00 F4 03 04 00 AC 56 45 67 B6 04 01 00 00 B9 E5 8E 9E FF B4 2A 86 [11:02:57]CommunicateWithHost err = 0 [11:02:57]CheckOFDResponse [11:02:57]1017 (14) - 77093643461234 [11:02:57]1041 (16) - 0000000000874881 [11:02:57]1040 (4) - 123173 [11:02:57]1012 (4) - 26.11.2024 05:03 [11:02:57]1206 (1) - 0 [11:02:57]OFD Sender: Remove packet 123173 [11:02:57]ProducePacketName [11:02:57]name=ofd_packets/00123173 [11:02:57]NVStorageDeleteData [11:02:58]Write to MH i2c: 01 00 00 36 4F 85 [11:02:58]Write i2c OK [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: 01 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: 01 07 00 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: 01 07 00 36 4F 00 00 00 00 00 3B 0C D3 [11:02:58]RasterBufferAndPrint [11:02:58]line [11:02:58]line [11:02:58]line [11:02:58]line [11:02:58]line [11:02:58]written 0, free lines is 3137 [11:02:58]MH_Cut [11:02:58]Write to MH i2c: D1 01 00 3D 4F 01 5E [11:02:58]Write i2c OK [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: D1 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: D1 01 00 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: D1 01 00 3D 4F 00 5D [11:02:58]Write to MH i2c: 01 00 00 3E 4F 8D [11:02:58]Write i2c OK [11:02:58]MH_I2C_Read... [11:02:58]OFD Sender: No OFD packet to send [11:02:59]*** Cut start [11:02:59]*** Partial cut [11:02:59]*** CUTSNS_PIN = 1 [11:02:59]*** CUTSNS_PIN = 0 [11:02:59]*** Brake cut motor [11:03:00]Read from MH i2c: 01 [11:03:00]MH_I2C_Read... [11:03:00]*** Stop cut motor [11:03:00]*** Cut end [11:03:00]Read from MH i2c: 01 07 00 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: 01 07 00 3E 4F 00 00 00 00 00 FF 0F A2 [11:03:00]process_action close_receipt done [11:03:00]requested_data is exist [11:03:00]produce_requested_data [11:03:00]requested_item fm.sn is exist - process it [11:03:00]wFMCommunicate request_size=4 [11:03:00]MH_SAM_APDU [11:03:00]CAPDU: 80 11 00 00 [11:03:00]Write to MH i2c: E2 08 00 3F 4F 80 11 00 00 00 00 00 00 08 [11:03:00]Write i2c OK [11:03:00]MH_I2C_Read... [11:03:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:00]Read from MH i2c: E2 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 17 00 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 17 00 3F 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5F [11:03:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:03:00]wFMCommunicate OK [11:03:00]requested_item fd.num is exist - process it [11:03:00]SAM_PROTO_GetFieldsCounters [11:03:00]wFMCommunicate request_size=4 [11:03:00]MH_SAM_APDU [11:03:00]CAPDU: 80 13 00 00 [11:03:00]Write to MH i2c: E2 08 00 40 4F 80 13 00 00 00 00 00 00 0B [11:03:00]Write i2c OK [11:03:00]MH_I2C_Read... [11:03:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:00]Read from MH i2c: E2 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 62 00 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 62 00 40 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 25 E1 01 00 0E 04 04 00 2D 02 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 B8 [11:03:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 25 E1 01 00 0E 04 04 00 2D 02 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 [11:03:00]wFMCommunicate OK [11:03:00]SAM_PROTO_GetFieldsCounters done [11:03:00]requested_item shift.num is exist - process it [11:03:00]requested_item shift.opened is exist - process it [11:03:00]req_shift_opened [11:03:00]FM_GetShiftState [11:03:00]SAM_PROTO_GetShiftState [11:03:00]wFMCommunicate request_size=4 [11:03:00]MH_SAM_APDU [11:03:00]CAPDU: 80 13 01 00 [11:03:00]Write to MH i2c: E2 08 00 41 4F 80 13 01 00 00 00 00 00 0D [11:03:00]Write i2c OK [11:03:00]MH_I2C_Read... [11:03:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:00]Read from MH i2c: E2 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 0E 00 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 0E 00 41 4F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 6E [11:03:00]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:03:00]wFMCommunicate OK [11:03:00]SAM_PROTO_GetShiftState done [11:03:00]FM_GetShiftState done [11:03:00]req_shift_opened done [11:03:00]requested_item shift.open_date is exist - process it [11:03:00]req_shift_open_date [11:03:00]req_shift_open_date done [11:03:00]produce_requested_data done [11:03:00]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123173,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [11:03:00]process_action_free close_receipt [11:03:00]json_value_free [11:03:00]json_value_free done [11:03:00]process_json_proto returns [11:03:00]Send response to host [11:03:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123173,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [11:03:00]free response buf [11:03:00]execute_script done [11:03:00]execute_script returns [11:03:00]free content buf [11:03:00]Sock 9.Close socket [11:03:00]Sock 9.Thread stoped [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:14]accept exits with 7 [11:09:14]New connection [11:09:14]New thread 3066723684 created [11:09:14]Thread 3066580324 joined [11:09:14]Waiting for new connection... [11:09:14] Sock 7.Parse request [11:09:14]Sock 7.Check first char [11:09:14]Sock 7.First char is OK [11:09:14]request: POST /json_proto HTTP/1.0 [11:09:14]Method: POST [11:09:14]URL: /json_proto [11:09:14]Method is POST - this is cgi request [11:09:14]url: /json_proto [11:09:14]query_string will be loaded in cgi processing [11:09:14]execute_cgi json_proto POST (null) [11:09:14]execute_cgi path=json_proto method=POST [11:09:14]POST find Content-Length [11:09:14]Host: 172.17.37.4:8080 [11:09:14]Content-Length: 787 [11:09:14]Content-Type: application/json [11:09:14] [11:09:14]POST finish read [11:09:14]Found Content-Length = 787 [11:09:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3609324", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:14]execute_script... [11:09:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3609324", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:14]POST & json_proto [11:09:14]process_json_proto [11:09:14]json parsed OK: [11:09:14]protocol is kg_v1.0 [11:09:14]action value=close_receipt [11:09:14]process_action close_receipt [11:09:14]cmd_close_receipt [11:09:14]MH_GetDate [11:09:14]Write to MH i2c: F0 00 00 42 4F 80 [11:09:14]Write i2c OK [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: F0 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: F0 09 00 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: F0 09 00 42 4F 00 64 AC 45 67 B8 5A 43 67 01 [11:09:14]GetLastDocTimeStamp 1732618985 [11:09:14]current date 1732619364 [11:09:14]FM_GetShiftState [11:09:14]SAM_PROTO_GetShiftState [11:09:14]wFMCommunicate request_size=4 [11:09:14]MH_SAM_APDU [11:09:14]CAPDU: 80 13 01 00 [11:09:14]Write to MH i2c: E2 08 00 43 4F 80 13 01 00 00 00 00 00 0F [11:09:14]Write i2c OK [11:09:14]MH_I2C_Read... [11:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:14]Read from MH i2c: E2 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: E2 0E 00 [11:09:14]MH_I2C_Read... [11:09:14]Read from MH i2c: E2 0E 00 43 4F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 70 [11:09:14]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:09:14]wFMCommunicate OK [11:09:14]SAM_PROTO_GetShiftState done [11:09:14]FM_GetShiftState done [11:09:14]opened in 1732579736 [11:09:14]opened+sec_in_day 1732666136 [11:09:14]quantity*price = 0 [11:09:14]sum+1 = 1 [11:09:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 28 26.11.2024 11:09 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Партнер нефть 3609324 ФМ: 0000000000874881 ФД: 123174 ФПД: 62325205563114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T110924&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123174&fm=62325205563114&tin=02508201610067®Number=0000000000092681&sum=0 [11:09:15]StoreToDocumentArchive [11:09:15]shift 557 fd 123174 [11:09:15]save to /storage/0557/doc_00123174 [11:09:15]save last doc name /storage/0557/doc_00123174 to /storage/kkm_last_doc_name [11:09:15]save OK [11:09:15]Clear old archive folders... [11:09:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:09:15]tlvbuf is 02071AF0 [11:09:15]SAM_PROTO_ClearQueue [11:09:15]wFMCommunicate request_size=4 [11:09:15]MH_SAM_APDU [11:09:15]CAPDU: 80 09 00 00 [11:09:15]Write to MH i2c: E2 08 00 50 4F 80 09 00 00 00 00 00 00 11 [11:09:15]Write i2c OK [11:09:15]MH_I2C_Read... [11:09:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:15]Read from MH i2c: E2 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: E2 03 00 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: E2 03 00 50 4F 00 90 00 13 [11:09:15]RAPDU: 90 00 [11:09:15]wFMCommunicate OK [11:09:15]SAM_PROTO_ClearQueue done [11:09:15]KKMCreateOFDPacket [11:09:15]OFDProtocolAddRootSTLVToBuf [11:09:15]FM_MakeSignedData [11:09:15]FM_MakeSignedData [11:09:15]SAM_PROTO_SignData [11:09:15]wFMCommunicate request_size=4 [11:09:15]MH_SAM_APDU [11:09:15]CAPDU: 80 0D 01 02 [11:09:15]Write to MH i2c: E2 08 00 51 4F 80 0D 01 02 00 00 00 00 19 [11:09:15]Write i2c OK [11:09:15]MH_I2C_Read... [11:09:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:15]Read from MH i2c: E2 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: E2 03 00 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: E2 03 00 51 4F 00 90 00 14 [11:09:15]RAPDU: 90 00 [11:09:15]wFMCommunicate OK [11:09:15]wFMCommunicate request_size=255 [11:09:15]MH_SAM_APDU [11:09:15]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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 64 AC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 26 E1 01 00 35 04 06 00 [11:09:15]Write to MH i2c: E2 02 01 52 4F 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 64 AC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 26 E1 01 00 35 04 06 00 00 00 99 [11:09:15]Write i2c OK [11:09:15]MH_I2C_Read... [11:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:15]Read from MH i2c: E2 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: E2 03 00 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: E2 03 00 52 4F 00 90 00 15 [11:09:15]RAPDU: 90 00 [11:09:15]wFMCommunicate OK [11:09:15]wFMCommunicate request_size=11 [11:09:15]MH_SAM_APDU [11:09:15]CAPDU: 80 0D 02 02 06 38 AF 37 BC F6 EA [11:09:15]Write to MH i2c: E2 0E 00 53 4F 80 0D 02 02 06 00 38 AF 37 BC F6 EA 00 00 E2 [11:09:15]Write i2c OK [11:09:15]MH_I2C_Read... [11:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:15]Read from MH i2c: E2 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: E2 03 00 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: E2 03 00 53 4F 00 90 00 16 [11:09:15]RAPDU: 90 00 [11:09:15]wFMCommunicate OK [11:09:15]wFMCommunicate request_size=4 [11:09:15]MH_SAM_APDU [11:09:15]CAPDU: 80 0D 03 02 [11:09:15]Write to MH i2c: E2 08 00 54 4F 80 0D 03 02 00 00 00 00 1E [11:09:15]Write i2c OK [11:09:15]MH_I2C_Read... [11:09:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:15]Read from MH i2c: E2 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: E2 0B 00 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: E2 0B 00 54 4F 00 DA 0A B4 2E 17 32 F0 97 90 00 B5 [11:09:15]RAPDU: DA 0A B4 2E 17 32 F0 97 90 00 [11:09:15]wFMCommunicate OK [11:09:15]SAM_PROTO_SignData done [11:09:15]FM_MakeSignedData done [11:09:15]CreateOFDProtocolMessage [11:09:15]wFMCommunicate request_size=4 [11:09:15]MH_SAM_APDU [11:09:15]CAPDU: 80 11 00 00 [11:09:15]Write to MH i2c: E2 08 00 55 4F 80 11 00 00 00 00 00 00 1E [11:09:15]Write i2c OK [11:09:15]MH_I2C_Read... [11:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:15]Read from MH i2c: E2 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: E2 17 00 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: E2 17 00 55 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 75 [11:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:09:15]wFMCommunicate OK [11:09:15]CreateOFDProtocolMessage done [11:09:15]OFDSenderStorePacket 123174 [11:09:15]StoreOFDPacket docnum=123174 [11:09:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 C2 48 08 01 36 EE 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 64 AC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 26 E1 01 00 35 04 06 00 38 AF 37 BC F6 EA DA 0A B4 2E 17 32 F0 97 [11:09:15]CheckFolder [11:09:15]dirname=/storage/ofd_packets [11:09:15]CheckFolder done [11:09:15]ProducePacketName [11:09:15]name=ofd_packets/00123174 [11:09:15]NVStorageSaveData ofd_packets/00123174 [11:09:15]File name is /storage/ofd_packets/00123174 [11:09:15]Write 302 bytes [11:09:15]NVStorageSaveData done [11:09:15]OFDSenderStorePacket done [11:09:15]KKMCreateOFDPacket done [11:09:15]NVStorageSaveData kkm_last_timestamp [11:09:15]File name is /storage/kkm_last_timestamp [11:09:15]Write 4 bytes [11:09:15]NVStorageSaveData done [11:09:15]ExternCall_PrintAddStr [11:09:15]wPrintStart [11:09:15]Write to MH i2c: 01 00 00 56 4F A5 [11:09:15]Write i2c OK [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: 01 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: 01 07 00 [11:09:15]MH_I2C_Read... [11:09:15]Read from MH i2c: 01 07 00 56 4F 00 00 00 00 00 FF 0F BA [11:09:15]RasterBufferAndPrint [11:09:15]line Счет N : (1)718008 [11:09:15]line ИНН: 02508201610067 [11:09:15]line Контрольно-Кассовый Чек [11:09:15]line ПРОДАЖА [11:09:15]line ТРК (МРК, ГНК) : 5 [11:09:15]line Товар: 2710194210 [11:09:15]line ДТ(л)-К-5 [11:09:15]line 100.000 * 0.00 [11:09:15]line = 0.00 [11:09:15]line НДС 12% НСП 1% [11:09:15]line > о реализуемом товаре [11:09:15]line ИТОГО: 0.00 [11:09:15]line НСП 1% : 0.00 [11:09:15]line НДС 12% : 0.00 [11:09:15]line Наличными: 0.00 [11:09:15]line Безнал.: 0.00 [11:09:15]line Место: АЗС № 64 "Партнер Нефть" [11:09:15]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:09:15]line СНО: Общий режим [11:09:15]line Чек 28 26.11.2024 11:09 [11:09:15]line Смена: 557 ФФД: 1.0 [11:09:15]line ЗНМ: 0300000033 [11:09:15]line РНМ: 0000000000092681 [11:09:15]line Версия ККМ: 001 [11:09:15]line Талоны: Партнер нефть [11:09:15]line 3609324 [11:09:15]line ФМ: 0000000000874881 [11:09:15]line ФД: 123174 [11:09:15]line ФПД: 62325205563114 [11:09:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T110924&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123174&fm=62325205563114&tin=02508201610067®Number=0000000000092681&sum=0 [11:09:16]written 0, free lines is 4095 [11:09:16]OFD Sender: Processing packet 123174 [packets to send 7, broken 6] [11:09:16]ProducePacketName [11:09:16]name=ofd_packets/00123174 [11:09:16]OFD Sender: To server: pG, [11:09:16]CommunicateWithHost lk.salyk.kg:30040 [11:09:16]ConnectInit lk.salyk.kg [11:09:16]Connected sock=10 [11:09:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 C2 48 08 01 36 EE 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 64 AC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 26 E1 01 00 35 04 06 00 38 AF 37 BC F6 EA DA 0A B4 2E 17 32 F0 97 [11:09:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 64 C7 47 00 89 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 26 E1 01 00 F4 03 04 00 27 58 45 67 B6 04 01 00 00 6C FB FF 72 F7 65 E6 04 [11:09:16]CommunicateWithHost err = 0 [11:09:16]CheckOFDResponse [11:09:16]1017 (14) - 77093643461234 [11:09:16]1041 (16) - 0000000000874881 [11:09:16]1040 (4) - 123174 [11:09:16]1012 (4) - 26.11.2024 05:09 [11:09:16]1206 (1) - 0 [11:09:16]OFD Sender: Remove packet 123174 [11:09:16]ProducePacketName [11:09:16]name=ofd_packets/00123174 [11:09:16]NVStorageDeleteData [11:09:16]Write to MH i2c: 01 00 00 80 4F CF [11:09:16]Write i2c OK [11:09:16]MH_I2C_Read... [11:09:16]Read from MH i2c: 01 [11:09:16]MH_I2C_Read... [11:09:16]Read from MH i2c: 01 07 00 [11:09:16]MH_I2C_Read... [11:09:16]Read from MH i2c: 01 07 00 80 4F 00 00 00 00 00 53 0C 35 [11:09:16]RasterBufferAndPrint [11:09:16]line [11:09:16]line [11:09:16]line [11:09:16]line [11:09:16]line [11:09:16]written 0, free lines is 3160 [11:09:16]MH_Cut [11:09:16]Write to MH i2c: D1 01 00 87 4F 01 A8 [11:09:16]Write i2c OK [11:09:16]MH_I2C_Read... [11:09:16]Read from MH i2c: D1 [11:09:16]MH_I2C_Read... [11:09:16]Read from MH i2c: D1 01 00 [11:09:16]MH_I2C_Read... [11:09:16]Read from MH i2c: D1 01 00 87 4F 00 A7 [11:09:16]Write to MH i2c: 01 00 00 88 4F D7 [11:09:16]Write i2c OK [11:09:16]MH_I2C_Read... [11:09:17]OFD Sender: No OFD packet to send [11:09:18]*** Cut start [11:09:18]*** Partial cut [11:09:18]*** CUTSNS_PIN = 1 [11:09:18]*** CUTSNS_PIN = 0 [11:09:18]*** Brake cut motor [11:09:18]Read from MH i2c: 01 [11:09:18]MH_I2C_Read... [11:09:18]*** Stop cut motor [11:09:18]*** Cut end [11:09:18]Read from MH i2c: 01 07 00 [11:09:18]MH_I2C_Read... [11:09:18]Read from MH i2c: 01 07 00 88 4F 00 00 00 00 00 FF 0F EC [11:09:18]process_action close_receipt done [11:09:18]requested_data is exist [11:09:18]produce_requested_data [11:09:18]requested_item fm.sn is exist - process it [11:09:18]wFMCommunicate request_size=4 [11:09:18]MH_SAM_APDU [11:09:18]CAPDU: 80 11 00 00 [11:09:18]Write to MH i2c: E2 08 00 89 4F 80 11 00 00 00 00 00 00 52 [11:09:18]Write i2c OK [11:09:18]MH_I2C_Read... [11:09:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:18]Read from MH i2c: E2 [11:09:18]MH_I2C_Read... [11:09:18]Read from MH i2c: E2 17 00 [11:09:18]MH_I2C_Read... [11:09:18]Read from MH i2c: E2 17 00 89 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A9 [11:09:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:09:18]wFMCommunicate OK [11:09:18]requested_item fd.num is exist - process it [11:09:18]SAM_PROTO_GetFieldsCounters [11:09:18]wFMCommunicate request_size=4 [11:09:18]MH_SAM_APDU [11:09:18]CAPDU: 80 13 00 00 [11:09:18]Write to MH i2c: E2 08 00 8A 4F 80 13 00 00 00 00 00 00 55 [11:09:18]Write i2c OK [11:09:18]MH_I2C_Read... [11:09:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:18]Read from MH i2c: E2 [11:09:18]MH_I2C_Read... [11:09:18]Read from MH i2c: E2 62 00 [11:09:18]MH_I2C_Read... [11:09:18]Read from MH i2c: E2 62 00 8A 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 26 E1 01 00 0E 04 04 00 2D 02 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 06 [11:09:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 26 E1 01 00 0E 04 04 00 2D 02 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 [11:09:18]wFMCommunicate OK [11:09:18]SAM_PROTO_GetFieldsCounters done [11:09:18]requested_item shift.num is exist - process it [11:09:18]requested_item shift.opened is exist - process it [11:09:18]req_shift_opened [11:09:18]FM_GetShiftState [11:09:18]SAM_PROTO_GetShiftState [11:09:18]wFMCommunicate request_size=4 [11:09:18]MH_SAM_APDU [11:09:18]CAPDU: 80 13 01 00 [11:09:18]Write to MH i2c: E2 08 00 8B 4F 80 13 01 00 00 00 00 00 57 [11:09:18]Write i2c OK [11:09:18]MH_I2C_Read... [11:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:18]Read from MH i2c: E2 [11:09:18]MH_I2C_Read... [11:09:18]Read from MH i2c: E2 0E 00 [11:09:18]MH_I2C_Read... [11:09:18]Read from MH i2c: E2 0E 00 8B 4F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 B8 [11:09:18]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:09:18]wFMCommunicate OK [11:09:18]SAM_PROTO_GetShiftState done [11:09:18]FM_GetShiftState done [11:09:18]req_shift_opened done [11:09:18]requested_item shift.open_date is exist - process it [11:09:18]req_shift_open_date [11:09:18]req_shift_open_date done [11:09:18]produce_requested_data done [11:09:18]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123174,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [11:09:18]process_action_free close_receipt [11:09:18]json_value_free [11:09:18]json_value_free done [11:09:18]process_json_proto returns [11:09:18]Send response to host [11:09:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123174,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [11:09:18]free response buf [11:09:18]execute_script done [11:09:18]execute_script returns [11:09:18]free content buf [11:09:18]Sock 7.Close socket [11:09:18]Sock 7.Thread stoped [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:09]accept exits with 9 [11:13:09]New connection [11:13:09]New thread 3066580324 created [11:13:09]Thread 3066723684 joined [11:13:09]Waiting for new connection... [11:13:09] Sock 9.Parse request [11:13:09]Sock 9.Check first char [11:13:09]Sock 9.First char is OK [11:13:09]request: POST /json_proto HTTP/1.0 [11:13:09]Method: POST [11:13:09]URL: /json_proto [11:13:09]Method is POST - this is cgi request [11:13:09]url: /json_proto [11:13:09]query_string will be loaded in cgi processing [11:13:09]execute_cgi json_proto POST (null) [11:13:09]execute_cgi path=json_proto method=POST [11:13:09]POST find Content-Length [11:13:09]Host: 172.17.37.4:8080 [11:13:09]Content-Length: 787 [11:13:09]Content-Type: application/json [11:13:09] [11:13:09]POST finish read [11:13:09]Found Content-Length = 787 [11:13:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3609325", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:09]execute_script... [11:13:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3609325", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:09]POST & json_proto [11:13:09]process_json_proto [11:13:09]json parsed OK: [11:13:09]protocol is kg_v1.0 [11:13:09]action value=close_receipt [11:13:09]process_action close_receipt [11:13:09]cmd_close_receipt [11:13:09]MH_GetDate [11:13:09]Write to MH i2c: F0 00 00 8C 4F CA [11:13:09]Write i2c OK [11:13:09]MH_I2C_Read... [11:13:09]Read from MH i2c: F0 [11:13:09]MH_I2C_Read... [11:13:09]Read from MH i2c: F0 09 00 [11:13:09]MH_I2C_Read... [11:13:09]Read from MH i2c: F0 09 00 8C 4F 00 4F AD 45 67 B8 5A 43 67 37 [11:13:09]GetLastDocTimeStamp 1732619364 [11:13:09]current date 1732619599 [11:13:09]FM_GetShiftState [11:13:09]SAM_PROTO_GetShiftState [11:13:09]wFMCommunicate request_size=4 [11:13:09]MH_SAM_APDU [11:13:09]CAPDU: 80 13 01 00 [11:13:09]Write to MH i2c: E2 08 00 8D 4F 80 13 01 00 00 00 00 00 59 [11:13:09]Write i2c OK [11:13:09]MH_I2C_Read... [11:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:09]Read from MH i2c: E2 [11:13:09]MH_I2C_Read... [11:13:09]Read from MH i2c: E2 0E 00 [11:13:09]MH_I2C_Read... [11:13:09]Read from MH i2c: E2 0E 00 8D 4F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 BA [11:13:09]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:13:09]wFMCommunicate OK [11:13:09]SAM_PROTO_GetShiftState done [11:13:09]FM_GetShiftState done [11:13:09]opened in 1732579736 [11:13:09]opened+sec_in_day 1732666136 [11:13:09]quantity*price = 0 [11:13:09]sum+1 = 1 [11:13:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 29 26.11.2024 11:13 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Партнер нефть 3609325 ФМ: 0000000000874881 ФД: 123175 ФПД: 224623830035657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T111319&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123175&fm=224623830035657&tin=02508201610067®Number=0000000000092681&sum=0 [11:13:10]StoreToDocumentArchive [11:13:10]shift 557 fd 123175 [11:13:10]save to /storage/0557/doc_00123175 [11:13:10]save last doc name /storage/0557/doc_00123175 to /storage/kkm_last_doc_name [11:13:10]save OK [11:13:10]Clear old archive folders... [11:13:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:13:10]tlvbuf is 02061670 [11:13:10]SAM_PROTO_ClearQueue [11:13:10]wFMCommunicate request_size=4 [11:13:10]MH_SAM_APDU [11:13:10]CAPDU: 80 09 00 00 [11:13:10]Write to MH i2c: E2 08 00 9A 4F 80 09 00 00 00 00 00 00 5B [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:10]Read from MH i2c: E2 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 03 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 03 00 9A 4F 00 90 00 5D [11:13:10]RAPDU: 90 00 [11:13:10]wFMCommunicate OK [11:13:10]SAM_PROTO_ClearQueue done [11:13:10]KKMCreateOFDPacket [11:13:10]OFDProtocolAddRootSTLVToBuf [11:13:10]FM_MakeSignedData [11:13:10]FM_MakeSignedData [11:13:10]SAM_PROTO_SignData [11:13:10]wFMCommunicate request_size=4 [11:13:10]MH_SAM_APDU [11:13:10]CAPDU: 80 0D 01 02 [11:13:10]Write to MH i2c: E2 08 00 9B 4F 80 0D 01 02 00 00 00 00 63 [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:10]Read from MH i2c: E2 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 03 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 03 00 9B 4F 00 90 00 5E [11:13:10]RAPDU: 90 00 [11:13:10]wFMCommunicate OK [11:13:10]wFMCommunicate request_size=255 [11:13:10]MH_SAM_APDU [11:13:10]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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4F AD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 27 E1 01 00 35 04 06 00 [11:13:10]Write to MH i2c: E2 02 01 9C 4F 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4F AD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 27 E1 01 00 35 04 06 00 00 00 D1 [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:10]Read from MH i2c: E2 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 03 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 03 00 9C 4F 00 90 00 5F [11:13:10]RAPDU: 90 00 [11:13:10]wFMCommunicate OK [11:13:10]wFMCommunicate request_size=11 [11:13:10]MH_SAM_APDU [11:13:10]CAPDU: 80 0D 02 02 06 CC 4B 4F 98 EC C9 [11:13:10]Write to MH i2c: E2 0E 00 9D 4F 80 0D 02 02 06 00 CC 4B 4F 98 EC C9 00 00 25 [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:11]Read from MH i2c: E2 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 03 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 03 00 9D 4F 00 90 00 60 [11:13:11]RAPDU: 90 00 [11:13:11]wFMCommunicate OK [11:13:11]wFMCommunicate request_size=4 [11:13:11]MH_SAM_APDU [11:13:11]CAPDU: 80 0D 03 02 [11:13:11]Write to MH i2c: E2 08 00 9E 4F 80 0D 03 02 00 00 00 00 68 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:11]Read from MH i2c: E2 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 0B 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 0B 00 9E 4F 00 0E F6 03 73 1E EF B2 D9 90 00 7B [11:13:11]RAPDU: 0E F6 03 73 1E EF B2 D9 90 00 [11:13:11]wFMCommunicate OK [11:13:11]SAM_PROTO_SignData done [11:13:11]FM_MakeSignedData done [11:13:11]CreateOFDProtocolMessage [11:13:11]wFMCommunicate request_size=4 [11:13:11]MH_SAM_APDU [11:13:11]CAPDU: 80 11 00 00 [11:13:11]Write to MH i2c: E2 08 00 9F 4F 80 11 00 00 00 00 00 00 68 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:11]Read from MH i2c: E2 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 17 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 17 00 9F 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BF [11:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:13:11]wFMCommunicate OK [11:13:11]CreateOFDProtocolMessage done [11:13:11]OFDSenderStorePacket 123175 [11:13:11]StoreOFDPacket docnum=123175 [11:13:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 7D 2A 08 01 9F 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4F AD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 27 E1 01 00 35 04 06 00 CC 4B 4F 98 EC C9 0E F6 03 73 1E EF B2 D9 [11:13:11]CheckFolder [11:13:11]dirname=/storage/ofd_packets [11:13:11]CheckFolder done [11:13:11]ProducePacketName [11:13:11]name=ofd_packets/00123175 [11:13:11]NVStorageSaveData ofd_packets/00123175 [11:13:11]File name is /storage/ofd_packets/00123175 [11:13:11]Write 302 bytes [11:13:11]NVStorageSaveData done [11:13:11]OFDSenderStorePacket done [11:13:11]KKMCreateOFDPacket done [11:13:11]NVStorageSaveData kkm_last_timestamp [11:13:11]File name is /storage/kkm_last_timestamp [11:13:11]Write 4 bytes [11:13:11]NVStorageSaveData done [11:13:11]ExternCall_PrintAddStr [11:13:11]wPrintStart [11:13:11]Write to MH i2c: 01 00 00 A0 4F EF [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: 01 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: 01 07 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: 01 07 00 A0 4F 00 00 00 00 00 FF 0F 04 [11:13:11]RasterBufferAndPrint [11:13:11]line Счет N : (1)718009 [11:13:11]line ИНН: 02508201610067 [11:13:11]line Контрольно-Кассовый Чек [11:13:11]line ПРОДАЖА [11:13:11]line ТРК (МРК, ГНК) : 5 [11:13:11]line Товар: 2710194210 [11:13:11]line ДТ(л)-К-5 [11:13:11]line 100.000 * 0.00 [11:13:11]line = 0.00 [11:13:11]line НДС 12% НСП 1% [11:13:11]line > о реализуемом товаре [11:13:11]line ИТОГО: 0.00 [11:13:11]line НСП 1% : 0.00 [11:13:11]line НДС 12% : 0.00 [11:13:11]line Наличными: 0.00 [11:13:11]line Безнал.: 0.00 [11:13:11]line Место: АЗС № 64 "Партнер Нефть" [11:13:11]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:13:11]line СНО: Общий режим [11:13:11]line Чек 29 26.11.2024 11:13 [11:13:11]line Смена: 557 ФФД: 1.0 [11:13:11]line ЗНМ: 0300000033 [11:13:11]line РНМ: 0000000000092681 [11:13:11]line Версия ККМ: 001 [11:13:11]line Талоны: Партнер нефть [11:13:11]line 3609325 [11:13:11]line ФМ: 0000000000874881 [11:13:11]line ФД: 123175 [11:13:11]line ФПД: 224623830035657 [11:13:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T111319&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123175&fm=224623830035657&tin=02508201610067®Number=0000000000092681&sum=0 [11:13:11]OFD Sender: Processing packet 123175 [packets to send 7, broken 6] [11:13:11]ProducePacketName [11:13:11]name=ofd_packets/00123175 [11:13:11]OFD Sender: To server: pG, [11:13:11]CommunicateWithHost lk.salyk.kg:30040 [11:13:11]ConnectInit lk.salyk.kg [11:13:11]written 0, free lines is 4095 [11:13:11]Connected sock=10 [11:13:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 7D 2A 08 01 9F 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4F AD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 27 E1 01 00 35 04 06 00 CC 4B 4F 98 EC C9 0E F6 03 73 1E EF B2 D9 [11:13:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 B9 37 47 00 4E 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 27 E1 01 00 F4 03 04 00 12 59 45 67 B6 04 01 00 00 12 0E 4E 03 32 D0 64 BC [11:13:11]CommunicateWithHost err = 0 [11:13:11]CheckOFDResponse [11:13:11]1017 (14) - 77093643461234 [11:13:11]1041 (16) - 0000000000874881 [11:13:11]1040 (4) - 123175 [11:13:11]1012 (4) - 26.11.2024 05:13 [11:13:11]1206 (1) - 0 [11:13:11]OFD Sender: Remove packet 123175 [11:13:11]ProducePacketName [11:13:11]name=ofd_packets/00123175 [11:13:11]NVStorageDeleteData [11:13:11]Write to MH i2c: 01 00 00 CA 4F 19 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: 01 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: 01 07 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: 01 07 00 CA 4F 00 00 00 00 00 56 0C 82 [11:13:11]RasterBufferAndPrint [11:13:11]line [11:13:11]line [11:13:11]line [11:13:11]line [11:13:11]line [11:13:11]written 0, free lines is 3162 [11:13:11]MH_Cut [11:13:11]Write to MH i2c: D1 01 00 D1 4F 01 F2 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: D1 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: D1 01 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: D1 01 00 D1 4F 00 F1 [11:13:11]Write to MH i2c: 01 00 00 D2 4F 21 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:12]OFD Sender: No OFD packet to send [11:13:13]*** Cut start [11:13:13]*** Partial cut [11:13:13]*** CUTSNS_PIN = 1 [11:13:13]*** CUTSNS_PIN = 0 [11:13:13]*** Brake cut motor [11:13:13]Read from MH i2c: 01 [11:13:13]MH_I2C_Read... [11:13:13]*** Stop cut motor [11:13:13]*** Cut end [11:13:13]Read from MH i2c: 01 07 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: 01 07 00 D2 4F 00 00 00 00 00 FF 0F 36 [11:13:13]process_action close_receipt done [11:13:13]requested_data is exist [11:13:13]produce_requested_data [11:13:13]requested_item fm.sn is exist - process it [11:13:13]wFMCommunicate request_size=4 [11:13:13]MH_SAM_APDU [11:13:13]CAPDU: 80 11 00 00 [11:13:13]Write to MH i2c: E2 08 00 D3 4F 80 11 00 00 00 00 00 00 9C [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 [11:13:13]MH_I2C_Read... [11:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:13]Read from MH i2c: E2 17 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 17 00 D3 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F3 [11:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:13:13]wFMCommunicate OK [11:13:13]requested_item fd.num is exist - process it [11:13:13]SAM_PROTO_GetFieldsCounters [11:13:13]wFMCommunicate request_size=4 [11:13:13]MH_SAM_APDU [11:13:13]CAPDU: 80 13 00 00 [11:13:13]Write to MH i2c: E2 08 00 D4 4F 80 13 00 00 00 00 00 00 9F [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:14]Read from MH i2c: E2 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: E2 62 00 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: E2 62 00 D4 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 27 E1 01 00 0E 04 04 00 2D 02 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 54 [11:13:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 27 E1 01 00 0E 04 04 00 2D 02 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 [11:13:14]wFMCommunicate OK [11:13:14]SAM_PROTO_GetFieldsCounters done [11:13:14]requested_item shift.num is exist - process it [11:13:14]requested_item shift.opened is exist - process it [11:13:14]req_shift_opened [11:13:14]FM_GetShiftState [11:13:14]SAM_PROTO_GetShiftState [11:13:14]wFMCommunicate request_size=4 [11:13:14]MH_SAM_APDU [11:13:14]CAPDU: 80 13 01 00 [11:13:14]Write to MH i2c: E2 08 00 D5 4F 80 13 01 00 00 00 00 00 A1 [11:13:14]Write i2c OK [11:13:14]MH_I2C_Read... [11:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:14]Read from MH i2c: E2 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: E2 0E 00 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: E2 0E 00 D5 4F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 02 [11:13:14]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:13:14]wFMCommunicate OK [11:13:14]SAM_PROTO_GetShiftState done [11:13:14]FM_GetShiftState done [11:13:14]req_shift_opened done [11:13:14]requested_item shift.open_date is exist - process it [11:13:14]req_shift_open_date [11:13:14]req_shift_open_date done [11:13:14]produce_requested_data done [11:13:14]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123175,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [11:13:14]process_action_free close_receipt [11:13:14]json_value_free [11:13:14]json_value_free done [11:13:14]process_json_proto returns [11:13:14]Send response to host [11:13:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123175,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [11:13:14]free response buf [11:13:14]execute_script done [11:13:14]execute_script returns [11:13:14]free content buf [11:13:14]Sock 9.Close socket [11:13:14]Sock 9.Thread stoped [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:57]OFD Sender: No OFD packet to send [11:13:58]accept exits with 7 [11:13:58]New connection [11:13:58]New thread 3066723684 created [11:13:58]Thread 3066580324 joined [11:13:58]Waiting for new connection... [11:13:58] Sock 7.Parse request [11:13:58]Sock 7.Check first char [11:13:58]Sock 7.First char is OK [11:13:58]request: POST /json_proto HTTP/1.0 [11:13:58]Method: POST [11:13:58]URL: /json_proto [11:13:58]Method is POST - this is cgi request [11:13:58]url: /json_proto [11:13:58]query_string will be loaded in cgi processing [11:13:58]execute_cgi json_proto POST (null) [11:13:58]execute_cgi path=json_proto method=POST [11:13:58]POST find Content-Length [11:13:58]Host: 172.17.37.4:8080 [11:13:58]Content-Length: 677 [11:13:58]Content-Type: application/json [11:13:58] [11:13:58]POST finish read [11:13:58]Found Content-Length = 677 [11:13:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:58]execute_script... [11:13:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:58]POST & json_proto [11:13:58]process_json_proto [11:13:58]json parsed OK: [11:13:58]protocol is kg_v1.0 [11:13:58]action value=close_receipt [11:13:58]process_action close_receipt [11:13:58]cmd_close_receipt [11:13:58]MH_GetDate [11:13:58]Write to MH i2c: F0 00 00 D6 4F 14 [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: F0 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: F0 09 00 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: F0 09 00 D6 4F 00 81 AD 45 67 B8 5A 43 67 B3 [11:13:58]GetLastDocTimeStamp 1732619599 [11:13:58]current date 1732619649 [11:13:58]FM_GetShiftState [11:13:58]SAM_PROTO_GetShiftState [11:13:58]wFMCommunicate request_size=4 [11:13:58]MH_SAM_APDU [11:13:58]CAPDU: 80 13 01 00 [11:13:58]Write to MH i2c: E2 08 00 D7 4F 80 13 01 00 00 00 00 00 A3 [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:58]Read from MH i2c: E2 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 0E 00 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 0E 00 D7 4F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 04 [11:13:58]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:13:58]wFMCommunicate OK [11:13:58]SAM_PROTO_GetShiftState done [11:13:58]FM_GetShiftState done [11:13:58]opened in 1732579736 [11:13:58]opened+sec_in_day 1732666136 [11:13:58]quantity*price = 40035 [11:13:58]sum+1 = 40037 [11:13:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 30 26.11.2024 11:14 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123176 ФПД: 83686323594243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T111409&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123176&fm=83686323594243&tin=02508201610067®Number=0000000000092681&sum=40000 [11:13:59]StoreToDocumentArchive [11:13:59]shift 557 fd 123176 [11:13:59]save to /storage/0557/doc_00123176 [11:13:59]save last doc name /storage/0557/doc_00123176 to /storage/kkm_last_doc_name [11:13:59]save OK [11:13:59]Clear old archive folders... [11:13:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:59]tlvbuf is 01F6BF90 [11:13:59]SAM_PROTO_ClearQueue [11:13:59]wFMCommunicate request_size=4 [11:13:59]MH_SAM_APDU [11:13:59]CAPDU: 80 09 00 00 [11:13:59]Write to MH i2c: E2 08 00 E4 4F 80 09 00 00 00 00 00 00 A5 [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:59]Read from MH i2c: E2 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 03 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 03 00 E4 4F 00 90 00 A7 [11:14:00]RAPDU: 90 00 [11:14:00]wFMCommunicate OK [11:14:00]SAM_PROTO_ClearQueue done [11:14:00]KKMCreateOFDPacket [11:14:00]OFDProtocolAddRootSTLVToBuf [11:14:00]FM_MakeSignedData [11:14:00]FM_MakeSignedData [11:14:00]SAM_PROTO_SignData [11:14:00]wFMCommunicate request_size=4 [11:14:00]MH_SAM_APDU [11:14:00]CAPDU: 80 0D 01 02 [11:14:00]Write to MH i2c: E2 08 00 E5 4F 80 0D 01 02 00 00 00 00 AD [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:00]Read from MH i2c: E2 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 03 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 03 00 E5 4F 00 90 00 A8 [11:14:00]RAPDU: 90 00 [11:14:00]wFMCommunicate OK [11:14:00]wFMCommunicate request_size=255 [11:14:00]MH_SAM_APDU [11:14:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 81 AD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 28 E1 01 00 35 04 06 00 4C [11:14:00]Write to MH i2c: E2 02 01 E6 4F 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 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 81 AD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 28 E1 01 00 35 04 06 00 4C 00 00 B8 [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:00]Read from MH i2c: E2 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 03 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 03 00 E6 4F 00 90 00 A9 [11:14:00]RAPDU: 90 00 [11:14:00]wFMCommunicate OK [11:14:00]wFMCommunicate request_size=10 [11:14:00]MH_SAM_APDU [11:14:00]CAPDU: 80 0D 02 02 05 1C BD 97 24 03 [11:14:00]Write to MH i2c: E2 0D 00 E7 4F 80 0D 02 02 05 00 1C BD 97 24 03 00 00 51 [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:00]Read from MH i2c: E2 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 03 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 03 00 E7 4F 00 90 00 AA [11:14:00]RAPDU: 90 00 [11:14:00]wFMCommunicate OK [11:14:00]wFMCommunicate request_size=4 [11:14:00]MH_SAM_APDU [11:14:00]CAPDU: 80 0D 03 02 [11:14:00]Write to MH i2c: E2 08 00 E8 4F 80 0D 03 02 00 00 00 00 B2 [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:00]Read from MH i2c: E2 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 0B 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 0B 00 E8 4F 00 D0 20 1D CF 6C 02 20 0C 90 00 29 [11:14:00]RAPDU: D0 20 1D CF 6C 02 20 0C 90 00 [11:14:00]wFMCommunicate OK [11:14:00]SAM_PROTO_SignData done [11:14:00]FM_MakeSignedData done [11:14:00]CreateOFDProtocolMessage [11:14:00]wFMCommunicate request_size=4 [11:14:00]MH_SAM_APDU [11:14:00]CAPDU: 80 11 00 00 [11:14:00]Write to MH i2c: E2 08 00 E9 4F 80 11 00 00 00 00 00 00 B2 [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:00]Read from MH i2c: E2 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 17 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 17 00 E9 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 09 [11:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:14:00]wFMCommunicate OK [11:14:00]CreateOFDProtocolMessage done [11:14:00]OFDSenderStorePacket 123176 [11:14:00]StoreOFDPacket docnum=123176 [11:14:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 37 F1 07 01 B6 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 81 AD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 28 E1 01 00 35 04 06 00 4C 1C BD 97 24 03 D0 20 1D CF 6C 02 20 0C [11:14:00]CheckFolder [11:14:00]dirname=/storage/ofd_packets [11:14:00]CheckFolder done [11:14:00]ProducePacketName [11:14:00]name=ofd_packets/00123176 [11:14:00]NVStorageSaveData ofd_packets/00123176 [11:14:00]File name is /storage/ofd_packets/00123176 [11:14:00]Write 301 bytes [11:14:00]NVStorageSaveData done [11:14:00]OFDSenderStorePacket done [11:14:00]KKMCreateOFDPacket done [11:14:00]NVStorageSaveData kkm_last_timestamp [11:14:00]File name is /storage/kkm_last_timestamp [11:14:00]Write 4 bytes [11:14:00]NVStorageSaveData done [11:14:00]ExternCall_PrintAddStr [11:14:00]wPrintStart [11:14:00]Write to MH i2c: 01 00 00 EA 4F 39 [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 07 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 07 00 EA 4F 00 00 00 00 00 FF 0F 4E [11:14:00]RasterBufferAndPrint [11:14:00]line Счет N : (1)718011 [11:14:00]line ИНН: 02508201610067 [11:14:00]line Контрольно-Кассовый Чек [11:14:00]line ПРОДАЖА [11:14:00]line ТРК (МРК, ГНК) : 12 [11:14:00]line Товар: 2710124130 [11:14:00]line Аи-92-К-4 [11:14:00]line 5.940 * 67.40 [11:14:00]line = 400.36 [11:14:00]line НДС 12% НСП 1% [11:14:00]line > о реализуемом товаре [11:14:00]line ОКРУГЛЕНИЕ: -0.36 [11:14:00]line ИТОГО: 400.00 [11:14:00]line Внесено: 400.00 [11:14:00]line СДАЧА: 0.00 [11:14:00]line НСП 1% : 3.54 [11:14:00]line НДС 12% : 42.52 [11:14:00]line Наличными: 400.00 [11:14:00]line Безнал.: 0.00 [11:14:00]line Место: АЗС № 64 "Партнер Нефть" [11:14:00]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:14:00]line СНО: Общий режим [11:14:00]line Чек 30 26.11.2024 11:14 [11:14:00]line Смена: 557 ФФД: 1.0 [11:14:00]line ЗНМ: 0300000033 [11:14:00]line РНМ: 0000000000092681 [11:14:00]line Версия ККМ: 001 [11:14:00]line ФМ: 0000000000874881 [11:14:00]line ФД: 123176 [11:14:00]line ФПД: 83686323594243 [11:14:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T111409&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123176&fm=83686323594243&tin=02508201610067®Number=0000000000092681&sum=40000 [11:14:00]OFD Sender: Processing packet 123176 [packets to send 7, broken 6] [11:14:00]ProducePacketName [11:14:00]name=ofd_packets/00123176 [11:14:00]OFD Sender: To server: pG, [11:14:00]CommunicateWithHost lk.salyk.kg:30040 [11:14:00]ConnectInit lk.salyk.kg [11:14:00]written 0, free lines is 4095 [11:14:00]Connected sock=10 [11:14:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 37 F1 07 01 B6 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 81 AD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 28 E1 01 00 35 04 06 00 4C 1C BD 97 24 03 D0 20 1D CF 6C 02 20 0C [11:14:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 7A 54 47 00 D8 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 28 E1 01 00 F4 03 04 00 43 59 45 67 B6 04 01 00 00 E1 99 A5 B2 56 0D 2B F9 [11:14:01]CommunicateWithHost err = 0 [11:14:01]CheckOFDResponse [11:14:01]1017 (14) - 77093643461234 [11:14:01]1041 (16) - 0000000000874881 [11:14:01]1040 (4) - 123176 [11:14:01]1012 (4) - 26.11.2024 05:14 [11:14:01]1206 (1) - 0 [11:14:01]OFD Sender: Remove packet 123176 [11:14:01]ProducePacketName [11:14:01]name=ofd_packets/00123176 [11:14:01]NVStorageDeleteData [11:14:01]Write to MH i2c: 01 00 00 15 50 65 [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: 01 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: 01 07 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: 01 07 00 15 50 00 00 00 00 00 49 0C C1 [11:14:01]RasterBufferAndPrint [11:14:01]line [11:14:01]line [11:14:01]line [11:14:01]line [11:14:01]line [11:14:01]written 0, free lines is 3150 [11:14:01]MH_Cut [11:14:01]Write to MH i2c: D1 01 00 1C 50 01 3E [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: D1 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: D1 01 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: D1 01 00 1C 50 00 3D [11:14:01]Write to MH i2c: 01 00 00 1D 50 6D [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]OFD Sender: No OFD packet to send [11:14:02]*** Cut start [11:14:02]*** Partial cut [11:14:02]*** CUTSNS_PIN = 1 [11:14:02]*** CUTSNS_PIN = 0 [11:14:02]*** Brake cut motor [11:14:03]Read from MH i2c: 01 [11:14:03]MH_I2C_Read... [11:14:03]*** Stop cut motor [11:14:03]*** Cut end [11:14:03]Read from MH i2c: 01 07 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: 01 07 00 1D 50 00 00 00 00 00 FF 0F 82 [11:14:03]process_action close_receipt done [11:14:03]requested_data is exist [11:14:03]produce_requested_data [11:14:03]requested_item fm.sn is exist - process it [11:14:03]wFMCommunicate request_size=4 [11:14:03]MH_SAM_APDU [11:14:03]CAPDU: 80 11 00 00 [11:14:03]Write to MH i2c: E2 08 00 1E 50 80 11 00 00 00 00 00 00 E8 [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:03]Read from MH i2c: E2 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 17 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 17 00 1E 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3F [11:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:14:03]wFMCommunicate OK [11:14:03]requested_item fd.num is exist - process it [11:14:03]SAM_PROTO_GetFieldsCounters [11:14:03]wFMCommunicate request_size=4 [11:14:03]MH_SAM_APDU [11:14:03]CAPDU: 80 13 00 00 [11:14:03]Write to MH i2c: E2 08 00 1F 50 80 13 00 00 00 00 00 00 EB [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:03]Read from MH i2c: E2 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 62 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 62 00 1F 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 28 E1 01 00 0E 04 04 00 2D 02 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 A4 [11:14:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 28 E1 01 00 0E 04 04 00 2D 02 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 [11:14:03]wFMCommunicate OK [11:14:03]SAM_PROTO_GetFieldsCounters done [11:14:03]requested_item shift.num is exist - process it [11:14:03]requested_item shift.opened is exist - process it [11:14:03]req_shift_opened [11:14:03]FM_GetShiftState [11:14:03]SAM_PROTO_GetShiftState [11:14:03]wFMCommunicate request_size=4 [11:14:03]MH_SAM_APDU [11:14:03]CAPDU: 80 13 01 00 [11:14:03]Write to MH i2c: E2 08 00 20 50 80 13 01 00 00 00 00 00 ED [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:03]Read from MH i2c: E2 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 0E 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 0E 00 20 50 00 09 00 01 98 11 45 67 00 00 00 00 90 00 4E [11:14:03]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:14:03]wFMCommunicate OK [11:14:03]SAM_PROTO_GetShiftState done [11:14:03]FM_GetShiftState done [11:14:03]req_shift_opened done [11:14:03]requested_item shift.open_date is exist - process it [11:14:03]req_shift_open_date [11:14:03]req_shift_open_date done [11:14:03]produce_requested_data done [11:14:03]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123176,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [11:14:03]process_action_free close_receipt [11:14:03]json_value_free [11:14:03]json_value_free done [11:14:03]process_json_proto returns [11:14:03]Send response to host [11:14:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123176,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [11:14:03]free response buf [11:14:03]execute_script done [11:14:03]execute_script returns [11:14:03]free content buf [11:14:03]Sock 7.Close socket [11:14:03]Sock 7.Thread stoped [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:00]accept exits with 9 [11:17:00]New connection [11:17:00]New thread 3066580324 created [11:17:00]Thread 3066723684 joined [11:17:00]Waiting for new connection... [11:17:00] Sock 9.Parse request [11:17:00]Sock 9.Check first char [11:17:00]Sock 9.First char is OK [11:17:00]request: POST /json_proto HTTP/1.0 [11:17:00]Method: POST [11:17:00]URL: /json_proto [11:17:00]Method is POST - this is cgi request [11:17:00]url: /json_proto [11:17:00]query_string will be loaded in cgi processing [11:17:00]execute_cgi json_proto POST (null) [11:17:00]execute_cgi path=json_proto method=POST [11:17:00]POST find Content-Length [11:17:00]Host: 172.17.37.4:8080 [11:17:00]Content-Length: 786 [11:17:00]Content-Type: application/json [11:17:00] [11:17:00]POST finish read [11:17:00]Found Content-Length = 786 [11:17:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 99.870, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3609343", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:00]execute_script... [11:17:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 99.870, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3609343", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:00]POST & json_proto [11:17:00]process_json_proto [11:17:00]json parsed OK: [11:17:00]protocol is kg_v1.0 [11:17:00]action value=close_receipt [11:17:00]process_action close_receipt [11:17:00]cmd_close_receipt [11:17:00]MH_GetDate [11:17:00]Write to MH i2c: F0 00 00 21 50 60 [11:17:00]Write i2c OK [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: F0 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: F0 09 00 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: F0 09 00 21 50 00 36 AE 45 67 B8 5A 43 67 B5 [11:17:00]GetLastDocTimeStamp 1732619649 [11:17:00]current date 1732619830 [11:17:00]FM_GetShiftState [11:17:00]SAM_PROTO_GetShiftState [11:17:00]wFMCommunicate request_size=4 [11:17:00]MH_SAM_APDU [11:17:00]CAPDU: 80 13 01 00 [11:17:00]Write to MH i2c: E2 08 00 22 50 80 13 01 00 00 00 00 00 EF [11:17:00]Write i2c OK [11:17:00]MH_I2C_Read... [11:17:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:00]Read from MH i2c: E2 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 0E 00 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 0E 00 22 50 00 09 00 01 98 11 45 67 00 00 00 00 90 00 50 [11:17:00]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:17:00]wFMCommunicate OK [11:17:00]SAM_PROTO_GetShiftState done [11:17:00]FM_GetShiftState done [11:17:00]opened in 1732579736 [11:17:00]opened+sec_in_day 1732666136 [11:17:00]quantity*price = 0 [11:17:00]sum+1 = 1 [11:17:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 31 26.11.2024 11:17 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Партнер нефть 3609343 ФМ: 0000000000874881 ФД: 123177 ФПД: 133655641371718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T111710&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123177&fm=133655641371718&tin=02508201610067®Number=0000000000092681&sum=0 [11:17:01]StoreToDocumentArchive [11:17:01]shift 557 fd 123177 [11:17:01]save to /storage/0557/doc_00123177 [11:17:01]save last doc name /storage/0557/doc_00123177 to /storage/kkm_last_doc_name [11:17:01]save OK [11:17:01]Clear old archive folders... [11:17:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:17:01]tlvbuf is 01F6BF90 [11:17:01]SAM_PROTO_ClearQueue [11:17:01]wFMCommunicate request_size=4 [11:17:01]MH_SAM_APDU [11:17:01]CAPDU: 80 09 00 00 [11:17:01]Write to MH i2c: E2 08 00 2F 50 80 09 00 00 00 00 00 00 F1 [11:17:01]Write i2c OK [11:17:01]MH_I2C_Read... [11:17:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:01]Read from MH i2c: E2 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: E2 03 00 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: E2 03 00 2F 50 00 90 00 F3 [11:17:01]RAPDU: 90 00 [11:17:01]wFMCommunicate OK [11:17:01]SAM_PROTO_ClearQueue done [11:17:01]KKMCreateOFDPacket [11:17:01]OFDProtocolAddRootSTLVToBuf [11:17:01]FM_MakeSignedData [11:17:01]FM_MakeSignedData [11:17:01]SAM_PROTO_SignData [11:17:01]wFMCommunicate request_size=4 [11:17:01]MH_SAM_APDU [11:17:01]CAPDU: 80 0D 01 02 [11:17:01]Write to MH i2c: E2 08 00 30 50 80 0D 01 02 00 00 00 00 F9 [11:17:01]Write i2c OK [11:17:01]MH_I2C_Read... [11:17:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:01]Read from MH i2c: E2 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: E2 03 00 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: E2 03 00 30 50 00 90 00 F4 [11:17:01]RAPDU: 90 00 [11:17:01]wFMCommunicate OK [11:17:01]wFMCommunicate request_size=255 [11:17:01]MH_SAM_APDU [11:17:01]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 35 FF 03 08 00 03 1E 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 36 AE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 29 E1 01 00 35 04 06 00 [11:17:01]Write to MH i2c: E2 02 01 31 50 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 35 FF 03 08 00 03 1E 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 36 AE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 29 E1 01 00 35 04 06 00 00 00 D1 [11:17:01]Write i2c OK [11:17:01]MH_I2C_Read... [11:17:01]OFD Sender: No OFD packet to send [11:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:01]Read from MH i2c: E2 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: E2 03 00 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: E2 03 00 31 50 00 90 00 F5 [11:17:01]RAPDU: 90 00 [11:17:01]wFMCommunicate OK [11:17:01]wFMCommunicate request_size=11 [11:17:01]MH_SAM_APDU [11:17:01]CAPDU: 80 0D 02 02 06 79 8F 21 06 B4 46 [11:17:01]Write to MH i2c: E2 0E 00 32 50 80 0D 02 02 06 00 79 8F 21 06 B4 46 00 00 31 [11:17:01]Write i2c OK [11:17:01]MH_I2C_Read... [11:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:02]Read from MH i2c: E2 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 03 00 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 03 00 32 50 00 90 00 F6 [11:17:02]RAPDU: 90 00 [11:17:02]wFMCommunicate OK [11:17:02]wFMCommunicate request_size=4 [11:17:02]MH_SAM_APDU [11:17:02]CAPDU: 80 0D 03 02 [11:17:02]Write to MH i2c: E2 08 00 33 50 80 0D 03 02 00 00 00 00 FE [11:17:02]Write i2c OK [11:17:02]MH_I2C_Read... [11:17:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:02]Read from MH i2c: E2 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 0B 00 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 0B 00 33 50 00 47 15 31 8F AB 59 67 C6 90 00 4C [11:17:02]RAPDU: 47 15 31 8F AB 59 67 C6 90 00 [11:17:02]wFMCommunicate OK [11:17:02]SAM_PROTO_SignData done [11:17:02]FM_MakeSignedData done [11:17:02]CreateOFDProtocolMessage [11:17:02]wFMCommunicate request_size=4 [11:17:02]MH_SAM_APDU [11:17:02]CAPDU: 80 11 00 00 [11:17:02]Write to MH i2c: E2 08 00 34 50 80 11 00 00 00 00 00 00 FE [11:17:02]Write i2c OK [11:17:02]MH_I2C_Read... [11:17:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:02]Read from MH i2c: E2 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 17 00 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 17 00 34 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 55 [11:17:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:17:02]wFMCommunicate OK [11:17:02]CreateOFDProtocolMessage done [11:17:02]OFDSenderStorePacket 123177 [11:17:02]StoreOFDPacket docnum=123177 [11:17:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 94 3C 08 01 D7 75 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 35 FF 03 08 00 03 1E 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 36 AE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 29 E1 01 00 35 04 06 00 79 8F 21 06 B4 46 47 15 31 8F AB 59 67 C6 [11:17:02]CheckFolder [11:17:02]dirname=/storage/ofd_packets [11:17:02]CheckFolder done [11:17:02]ProducePacketName [11:17:02]name=ofd_packets/00123177 [11:17:02]NVStorageSaveData ofd_packets/00123177 [11:17:02]File name is /storage/ofd_packets/00123177 [11:17:02]Write 302 bytes [11:17:02]NVStorageSaveData done [11:17:02]OFDSenderStorePacket done [11:17:02]KKMCreateOFDPacket done [11:17:02]NVStorageSaveData kkm_last_timestamp [11:17:02]File name is /storage/kkm_last_timestamp [11:17:02]Write 4 bytes [11:17:02]NVStorageSaveData done [11:17:02]ExternCall_PrintAddStr [11:17:02]wPrintStart [11:17:02]Write to MH i2c: 01 00 00 35 50 85 [11:17:02]Write i2c OK [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: 01 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: 01 07 00 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: 01 07 00 35 50 00 00 00 00 00 FF 0F 9A [11:17:02]RasterBufferAndPrint [11:17:02]line Счет N : (1)718010 [11:17:02]line ИНН: 02508201610067 [11:17:02]line Контрольно-Кассовый Чек [11:17:02]line ПРОДАЖА [11:17:02]line ТРК (МРК, ГНК) : 5 [11:17:02]line Товар: 2710194210 [11:17:02]line ДТ(л)-К-5 [11:17:02]line 99.870 * 0.00 [11:17:02]line = 0.00 [11:17:02]line НДС 12% НСП 1% [11:17:02]line > о реализуемом товаре [11:17:02]line ИТОГО: 0.00 [11:17:02]line НСП 1% : 0.00 [11:17:02]line НДС 12% : 0.00 [11:17:02]line Наличными: 0.00 [11:17:02]line Безнал.: 0.00 [11:17:02]line Место: АЗС № 64 "Партнер Нефть" [11:17:02]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:17:02]line СНО: Общий режим [11:17:02]line Чек 31 26.11.2024 11:17 [11:17:02]line Смена: 557 ФФД: 1.0 [11:17:02]line ЗНМ: 0300000033 [11:17:02]line РНМ: 0000000000092681 [11:17:02]line Версия ККМ: 001 [11:17:02]line Талоны: Партнер нефть [11:17:02]line 3609343 [11:17:02]line ФМ: 0000000000874881 [11:17:02]line ФД: 123177 [11:17:02]line ФПД: 133655641371718 [11:17:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T111710&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123177&fm=133655641371718&tin=02508201610067®Number=0000000000092681&sum=0 [11:17:02]OFD Sender: Processing packet 123177 [packets to send 7, broken 6] [11:17:02]ProducePacketName [11:17:02]name=ofd_packets/00123177 [11:17:02]OFD Sender: To server: pG, [11:17:02]CommunicateWithHost lk.salyk.kg:30040 [11:17:02]ConnectInit lk.salyk.kg [11:17:02]written 0, free lines is 4095 [11:17:02]Connected sock=10 [11:17:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 94 3C 08 01 D7 75 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 35 FF 03 08 00 03 1E 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 36 AE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 29 E1 01 00 35 04 06 00 79 8F 21 06 B4 46 47 15 31 8F AB 59 67 C6 [11:17:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 FD 29 47 00 0B F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 29 E1 01 00 F4 03 04 00 F9 59 45 67 B6 04 01 00 00 EE 66 35 10 C0 3C 02 FC [11:17:02]CommunicateWithHost err = 0 [11:17:02]CheckOFDResponse [11:17:02]1017 (14) - 77093643461234 [11:17:02]1041 (16) - 0000000000874881 [11:17:02]1040 (4) - 123177 [11:17:02]1012 (4) - 26.11.2024 05:17 [11:17:02]1206 (1) - 0 [11:17:02]OFD Sender: Remove packet 123177 [11:17:02]ProducePacketName [11:17:02]name=ofd_packets/00123177 [11:17:02]NVStorageDeleteData [11:17:02]Write to MH i2c: 01 00 00 5F 50 AF [11:17:02]Write i2c OK [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: 01 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: 01 07 00 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: 01 07 00 5F 50 00 00 00 00 00 58 0C 1A [11:17:02]RasterBufferAndPrint [11:17:02]line [11:17:02]line [11:17:02]line [11:17:02]line [11:17:02]line [11:17:02]written 0, free lines is 3164 [11:17:02]MH_Cut [11:17:02]Write to MH i2c: D1 01 00 66 50 01 88 [11:17:02]Write i2c OK [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: D1 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: D1 01 00 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: D1 01 00 66 50 00 87 [11:17:02]Write to MH i2c: 01 00 00 67 50 B7 [11:17:02]Write i2c OK [11:17:02]MH_I2C_Read... [11:17:03]OFD Sender: No OFD packet to send [11:17:04]*** Cut start [11:17:04]*** Partial cut [11:17:04]*** CUTSNS_PIN = 1 [11:17:04]*** CUTSNS_PIN = 0 [11:17:04]*** Brake cut motor [11:17:04]Read from MH i2c: 01 [11:17:04]MH_I2C_Read... [11:17:04]*** Stop cut motor [11:17:04]*** Cut end [11:17:04]Read from MH i2c: 01 07 00 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: 01 07 00 67 50 00 00 00 00 00 FF 0F CC [11:17:04]process_action close_receipt done [11:17:04]requested_data is exist [11:17:04]produce_requested_data [11:17:04]requested_item fm.sn is exist - process it [11:17:04]wFMCommunicate request_size=4 [11:17:04]MH_SAM_APDU [11:17:04]CAPDU: 80 11 00 00 [11:17:04]Write to MH i2c: E2 08 00 68 50 80 11 00 00 00 00 00 00 32 [11:17:04]Write i2c OK [11:17:04]MH_I2C_Read... [11:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:04]Read from MH i2c: E2 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: E2 17 00 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: E2 17 00 68 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 89 [11:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:17:04]wFMCommunicate OK [11:17:04]requested_item fd.num is exist - process it [11:17:04]SAM_PROTO_GetFieldsCounters [11:17:04]wFMCommunicate request_size=4 [11:17:04]MH_SAM_APDU [11:17:04]CAPDU: 80 13 00 00 [11:17:04]Write to MH i2c: E2 08 00 69 50 80 13 00 00 00 00 00 00 35 [11:17:04]Write i2c OK [11:17:04]MH_I2C_Read... [11:17:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:05]Read from MH i2c: E2 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 62 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 62 00 69 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 29 E1 01 00 0E 04 04 00 2D 02 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 F2 [11:17:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 29 E1 01 00 0E 04 04 00 2D 02 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 [11:17:05]wFMCommunicate OK [11:17:05]SAM_PROTO_GetFieldsCounters done [11:17:05]requested_item shift.num is exist - process it [11:17:05]requested_item shift.opened is exist - process it [11:17:05]req_shift_opened [11:17:05]FM_GetShiftState [11:17:05]SAM_PROTO_GetShiftState [11:17:05]wFMCommunicate request_size=4 [11:17:05]MH_SAM_APDU [11:17:05]CAPDU: 80 13 01 00 [11:17:05]Write to MH i2c: E2 08 00 6A 50 80 13 01 00 00 00 00 00 37 [11:17:05]Write i2c OK [11:17:05]MH_I2C_Read... [11:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:05]Read from MH i2c: E2 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 0E 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 0E 00 6A 50 00 09 00 01 98 11 45 67 00 00 00 00 90 00 98 [11:17:05]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:17:05]wFMCommunicate OK [11:17:05]SAM_PROTO_GetShiftState done [11:17:05]FM_GetShiftState done [11:17:05]req_shift_opened done [11:17:05]requested_item shift.open_date is exist - process it [11:17:05]req_shift_open_date [11:17:05]req_shift_open_date done [11:17:05]produce_requested_data done [11:17:05]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123177,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [11:17:05]process_action_free close_receipt [11:17:05]json_value_free [11:17:05]json_value_free done [11:17:05]process_json_proto returns [11:17:05]Send response to host [11:17:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123177,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [11:17:05]free response buf [11:17:05]execute_script done [11:17:05]execute_script returns [11:17:05]free content buf [11:17:05]Sock 9.Close socket [11:17:05]Sock 9.Thread stoped [11:17:05]accept exits with 7 [11:17:05]New connection [11:17:05]New thread 3066723684 created [11:17:05]Thread 3066580324 joined [11:17:05]Waiting for new connection... [11:17:05] Sock 7.Parse request [11:17:05]Sock 7.Check first char [11:17:05]Sock 7.First char is OK [11:17:05]request: POST /json_proto HTTP/1.0 [11:17:05]Method: POST [11:17:05]URL: /json_proto [11:17:05]Method is POST - this is cgi request [11:17:05]url: /json_proto [11:17:05]query_string will be loaded in cgi processing [11:17:05]execute_cgi json_proto POST (null) [11:17:05]execute_cgi path=json_proto method=POST [11:17:05]POST find Content-Length [11:17:05]Host: 172.17.37.4:8080 [11:17:05]Content-Length: 682 [11:17:05]Content-Type: application/json [11:17:05] [11:17:05]POST finish read [11:17:05]Found Content-Length = 682 [11:17:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:05]execute_script... [11:17:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:05]POST & json_proto [11:17:05]process_json_proto [11:17:05]json parsed OK: [11:17:05]protocol is kg_v1.0 [11:17:05]action value=close_receipt [11:17:05]process_action close_receipt [11:17:05]cmd_close_receipt [11:17:05]MH_GetDate [11:17:05]Write to MH i2c: F0 00 00 6B 50 AA [11:17:05]Write i2c OK [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: F0 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: F0 09 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: F0 09 00 6B 50 00 3B AE 45 67 B8 5A 43 67 04 [11:17:05]GetLastDocTimeStamp 1732619830 [11:17:05]current date 1732619835 [11:17:05]FM_GetShiftState [11:17:05]SAM_PROTO_GetShiftState [11:17:05]wFMCommunicate request_size=4 [11:17:05]MH_SAM_APDU [11:17:05]CAPDU: 80 13 01 00 [11:17:05]Write to MH i2c: E2 08 00 6C 50 80 13 01 00 00 00 00 00 39 [11:17:05]Write i2c OK [11:17:05]MH_I2C_Read... [11:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:05]Read from MH i2c: E2 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 0E 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 0E 00 6C 50 00 09 00 01 98 11 45 67 00 00 00 00 90 00 9A [11:17:05]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:17:05]wFMCommunicate OK [11:17:05]SAM_PROTO_GetShiftState done [11:17:05]FM_GetShiftState done [11:17:05]opened in 1732579736 [11:17:05]opened+sec_in_day 1732666136 [11:17:05]quantity*price = 100021 [11:17:05]sum+1 = 100023 [11:17:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 32 26.11.2024 11:17 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123178 ФПД: 83960377003225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T111715&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123178&fm=83960377003225&tin=02508201610067®Number=0000000000092681&sum=100000 [11:17:06]StoreToDocumentArchive [11:17:06]shift 557 fd 123178 [11:17:06]save to /storage/0557/doc_00123178 [11:17:06]save last doc name /storage/0557/doc_00123178 to /storage/kkm_last_doc_name [11:17:06]save OK [11:17:06]Clear old archive folders... [11:17:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:06]tlvbuf is 01F6A250 [11:17:06]SAM_PROTO_ClearQueue [11:17:06]wFMCommunicate request_size=4 [11:17:06]MH_SAM_APDU [11:17:06]CAPDU: 80 09 00 00 [11:17:06]Write to MH i2c: E2 08 00 79 50 80 09 00 00 00 00 00 00 3B [11:17:06]Write i2c OK [11:17:06]MH_I2C_Read... [11:17:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:06]Read from MH i2c: E2 [11:17:06]MH_I2C_Read... [11:17:06]Read from MH i2c: E2 03 00 [11:17:06]MH_I2C_Read... [11:17:06]Read from MH i2c: E2 03 00 79 50 00 90 00 3D [11:17:06]RAPDU: 90 00 [11:17:06]wFMCommunicate OK [11:17:06]SAM_PROTO_ClearQueue done [11:17:06]KKMCreateOFDPacket [11:17:06]OFDProtocolAddRootSTLVToBuf [11:17:06]FM_MakeSignedData [11:17:06]FM_MakeSignedData [11:17:06]SAM_PROTO_SignData [11:17:06]wFMCommunicate request_size=4 [11:17:06]MH_SAM_APDU [11:17:06]CAPDU: 80 0D 01 02 [11:17:06]Write to MH i2c: E2 08 00 7A 50 80 0D 01 02 00 00 00 00 43 [11:17:06]Write i2c OK [11:17:06]MH_I2C_Read... [11:17:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:06]Read from MH i2c: E2 [11:17:06]MH_I2C_Read... [11:17:06]Read from MH i2c: E2 03 00 [11:17:06]MH_I2C_Read... [11:17:06]Read from MH i2c: E2 03 00 7A 50 00 90 00 3E [11:17:06]RAPDU: 90 00 [11:17:06]wFMCommunicate OK [11:17:06]wFMCommunicate request_size=255 [11:17:06]MH_SAM_APDU [11:17:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3B AE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2A E1 01 00 35 04 06 00 4C [11:17:06]Write to MH i2c: E2 02 01 7B 50 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3B AE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2A E1 01 00 35 04 06 00 4C 00 00 D6 [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 03 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 03 00 7B 50 00 90 00 3F [11:17:07]RAPDU: 90 00 [11:17:07]wFMCommunicate OK [11:17:07]wFMCommunicate request_size=10 [11:17:07]MH_SAM_APDU [11:17:07]CAPDU: 80 0D 02 02 05 5C 8C 72 4C D9 [11:17:07]Write to MH i2c: E2 0D 00 7C 50 80 0D 02 02 05 00 5C 8C 72 4C D9 00 00 CF [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 03 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 03 00 7C 50 00 90 00 40 [11:17:07]RAPDU: 90 00 [11:17:07]wFMCommunicate OK [11:17:07]wFMCommunicate request_size=4 [11:17:07]MH_SAM_APDU [11:17:07]CAPDU: 80 0D 03 02 [11:17:07]Write to MH i2c: E2 08 00 7D 50 80 0D 03 02 00 00 00 00 48 [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 0B 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 0B 00 7D 50 00 6A B5 C4 77 F5 90 DF FB 90 00 02 [11:17:07]RAPDU: 6A B5 C4 77 F5 90 DF FB 90 00 [11:17:07]wFMCommunicate OK [11:17:07]SAM_PROTO_SignData done [11:17:07]FM_MakeSignedData done [11:17:07]CreateOFDProtocolMessage [11:17:07]wFMCommunicate request_size=4 [11:17:07]MH_SAM_APDU [11:17:07]CAPDU: 80 11 00 00 [11:17:07]Write to MH i2c: E2 08 00 7E 50 80 11 00 00 00 00 00 00 48 [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 17 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 17 00 7E 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 9F [11:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:17:07]wFMCommunicate OK [11:17:07]CreateOFDProtocolMessage done [11:17:07]OFDSenderStorePacket 123178 [11:17:07]StoreOFDPacket docnum=123178 [11:17:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5F 56 07 01 1E EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3B AE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2A E1 01 00 35 04 06 00 4C 5C 8C 72 4C D9 6A B5 C4 77 F5 90 DF FB [11:17:07]CheckFolder [11:17:07]dirname=/storage/ofd_packets [11:17:07]CheckFolder done [11:17:07]ProducePacketName [11:17:07]name=ofd_packets/00123178 [11:17:07]NVStorageSaveData ofd_packets/00123178 [11:17:07]File name is /storage/ofd_packets/00123178 [11:17:07]Write 301 bytes [11:17:07]NVStorageSaveData done [11:17:07]OFDSenderStorePacket done [11:17:07]KKMCreateOFDPacket done [11:17:07]NVStorageSaveData kkm_last_timestamp [11:17:07]File name is /storage/kkm_last_timestamp [11:17:07]Write 4 bytes [11:17:07]NVStorageSaveData done [11:17:07]ExternCall_PrintAddStr [11:17:07]wPrintStart [11:17:07]Write to MH i2c: 01 00 00 7F 50 CF [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: 01 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: 01 07 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: 01 07 00 7F 50 00 00 00 00 00 FF 0F E4 [11:17:07]RasterBufferAndPrint [11:17:07]line Счет N : (1)718012 [11:17:07]line ИНН: 02508201610067 [11:17:07]line Контрольно-Кассовый Чек [11:17:07]line ПРОДАЖА [11:17:07]line ТРК (МРК, ГНК) : 42 [11:17:07]line Товар: 2710124130 [11:17:07]line Аи-92-К-4 [11:17:07]line 14.840 * 67.40 [11:17:07]line = 1000.22 [11:17:07]line НДС 12% НСП 1% [11:17:07]line > о реализуемом товаре [11:17:07]line ОКРУГЛЕНИЕ: -0.22 [11:17:07]line ИТОГО: 1000.00 [11:17:07]line Внесено: 1000.00 [11:17:07]line СДАЧА: 0.00 [11:17:07]line НСП 1% : 8.85 [11:17:07]line НДС 12% : 106.22 [11:17:07]line Наличными: 1000.00 [11:17:07]line Безнал.: 0.00 [11:17:07]line Место: АЗС № 64 "Партнер Нефть" [11:17:07]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:17:07]line СНО: Общий режим [11:17:07]line Чек 32 26.11.2024 11:17 [11:17:07]line Смена: 557 ФФД: 1.0 [11:17:07]line ЗНМ: 0300000033 [11:17:07]line РНМ: 0000000000092681 [11:17:07]line Версия ККМ: 001 [11:17:07]line ФМ: 0000000000874881 [11:17:07]line ФД: 123178 [11:17:07]line ФПД: 83960377003225 [11:17:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T111715&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123178&fm=83960377003225&tin=02508201610067®Number=0000000000092681&sum=100000 [11:17:07]OFD Sender: Processing packet 123178 [packets to send 7, broken 6] [11:17:07]ProducePacketName [11:17:07]name=ofd_packets/00123178 [11:17:07]OFD Sender: To server: pG, [11:17:07]CommunicateWithHost lk.salyk.kg:30040 [11:17:07]ConnectInit lk.salyk.kg [11:17:07]written 0, free lines is 4095 [11:17:08]Connected sock=10 [11:17:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5F 56 07 01 1E EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3B AE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2A E1 01 00 35 04 06 00 4C 5C 8C 72 4C D9 6A B5 C4 77 F5 90 DF FB [11:17:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 B4 E2 47 00 72 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2A E1 01 00 F4 03 04 00 FE 59 45 67 B6 04 01 00 00 32 56 12 99 61 21 DC 39 [11:17:08]CommunicateWithHost err = 0 [11:17:08]CheckOFDResponse [11:17:08]1017 (14) - 77093643461234 [11:17:08]1041 (16) - 0000000000874881 [11:17:08]1040 (4) - 123178 [11:17:08]1012 (4) - 26.11.2024 05:17 [11:17:08]1206 (1) - 0 [11:17:08]OFD Sender: Remove packet 123178 [11:17:08]ProducePacketName [11:17:08]name=ofd_packets/00123178 [11:17:08]NVStorageDeleteData [11:17:08]Write to MH i2c: 01 00 00 AA 50 FA [11:17:08]Write i2c OK [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: 01 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: 01 07 00 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: 01 07 00 AA 50 00 00 00 00 00 49 0C 56 [11:17:08]RasterBufferAndPrint [11:17:08]line [11:17:08]line [11:17:08]line [11:17:08]line [11:17:08]line [11:17:08]written 0, free lines is 3152 [11:17:08]MH_Cut [11:17:08]Write to MH i2c: D1 01 00 B1 50 01 D3 [11:17:08]Write i2c OK [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: D1 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: D1 01 00 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: D1 01 00 B1 50 00 D2 [11:17:08]Write to MH i2c: 01 00 00 B2 50 02 [11:17:08]Write i2c OK [11:17:08]MH_I2C_Read... [11:17:08]OFD Sender: No OFD packet to send [11:17:09]*** Cut start [11:17:09]*** Partial cut [11:17:09]*** CUTSNS_PIN = 1 [11:17:09]*** CUTSNS_PIN = 0 [11:17:10]*** Brake cut motor [11:17:10]Read from MH i2c: 01 [11:17:10]MH_I2C_Read... [11:17:10]*** Stop cut motor [11:17:10]*** Cut end [11:17:10]Read from MH i2c: 01 07 00 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: 01 07 00 B2 50 00 00 00 00 00 FF 0F 17 [11:17:10]process_action close_receipt done [11:17:10]requested_data is exist [11:17:10]produce_requested_data [11:17:10]requested_item fm.sn is exist - process it [11:17:10]wFMCommunicate request_size=4 [11:17:10]MH_SAM_APDU [11:17:10]CAPDU: 80 11 00 00 [11:17:10]Write to MH i2c: E2 08 00 B3 50 80 11 00 00 00 00 00 00 7D [11:17:10]Write i2c OK [11:17:10]MH_I2C_Read... [11:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:10]Read from MH i2c: E2 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 17 00 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 17 00 B3 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D4 [11:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:17:10]wFMCommunicate OK [11:17:10]requested_item fd.num is exist - process it [11:17:10]SAM_PROTO_GetFieldsCounters [11:17:10]wFMCommunicate request_size=4 [11:17:10]MH_SAM_APDU [11:17:10]CAPDU: 80 13 00 00 [11:17:10]Write to MH i2c: E2 08 00 B4 50 80 13 00 00 00 00 00 00 80 [11:17:10]Write i2c OK [11:17:10]MH_I2C_Read... [11:17:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:10]Read from MH i2c: E2 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 62 00 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 62 00 B4 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 2A E1 01 00 0E 04 04 00 2D 02 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 41 [11:17:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 2A E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:10]wFMCommunicate OK [11:17:10]SAM_PROTO_GetFieldsCounters done [11:17:10]requested_item shift.num is exist - process it [11:17:10]requested_item shift.opened is exist - process it [11:17:10]req_shift_opened [11:17:10]FM_GetShiftState [11:17:10]SAM_PROTO_GetShiftState [11:17:10]wFMCommunicate request_size=4 [11:17:10]MH_SAM_APDU [11:17:10]CAPDU: 80 13 01 00 [11:17:10]Write to MH i2c: E2 08 00 B5 50 80 13 01 00 00 00 00 00 82 [11:17:10]Write i2c OK [11:17:10]MH_I2C_Read... [11:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:10]Read from MH i2c: E2 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 0E 00 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 0E 00 B5 50 00 09 00 01 98 11 45 67 00 00 00 00 90 00 E3 [11:17:10]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:17:10]wFMCommunicate OK [11:17:10]SAM_PROTO_GetShiftState done [11:17:10]FM_GetShiftState done [11:17:10]req_shift_opened done [11:17:10]requested_item shift.open_date is exist - process it [11:17:10]req_shift_open_date [11:17:10]req_shift_open_date done [11:17:10]produce_requested_data done [11:17:10]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123178,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [11:17:10]process_action_free close_receipt [11:17:10]json_value_free [11:17:10]json_value_free done [11:17:10]process_json_proto returns [11:17:10]Send response to host [11:17:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123178,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [11:17:10]free response buf [11:17:10]execute_script done [11:17:10]execute_script returns [11:17:10]free content buf [11:17:10]Sock 7.Close socket [11:17:10]Sock 7.Thread stoped [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:36]accept exits with 9 [11:17:36]New connection [11:17:36]New thread 3066580324 created [11:17:36]Thread 3066723684 joined [11:17:36]Waiting for new connection... [11:17:36] Sock 9.Parse request [11:17:36]Sock 9.Check first char [11:17:36]Sock 9.First char is OK [11:17:36]request: POST /json_proto HTTP/1.0 [11:17:36]Method: POST [11:17:36]URL: /json_proto [11:17:36]Method is POST - this is cgi request [11:17:36]url: /json_proto [11:17:36]query_string will be loaded in cgi processing [11:17:36]execute_cgi json_proto POST (null) [11:17:36]execute_cgi path=json_proto method=POST [11:17:36]POST find Content-Length [11:17:36]Host: 172.17.37.4:8080 [11:17:36]Content-Length: 677 [11:17:36]Content-Type: application/json [11:17:36] [11:17:36]POST finish read [11:17:36]Found Content-Length = 677 [11:17:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:36]execute_script... [11:17:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:36]POST & json_proto [11:17:36]process_json_proto [11:17:36]json parsed OK: [11:17:36]protocol is kg_v1.0 [11:17:36]action value=close_receipt [11:17:36]process_action close_receipt [11:17:36]cmd_close_receipt [11:17:36]MH_GetDate [11:17:36]Write to MH i2c: F0 00 00 B6 50 F5 [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: F0 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: F0 09 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: F0 09 00 B6 50 00 5A AE 45 67 B8 5A 43 67 6E [11:17:36]GetLastDocTimeStamp 1732619835 [11:17:36]current date 1732619866 [11:17:36]FM_GetShiftState [11:17:36]SAM_PROTO_GetShiftState [11:17:36]wFMCommunicate request_size=4 [11:17:36]MH_SAM_APDU [11:17:36]CAPDU: 80 13 01 00 [11:17:36]Write to MH i2c: E2 08 00 B7 50 80 13 01 00 00 00 00 00 84 [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:36]Read from MH i2c: E2 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 0E 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 0E 00 B7 50 00 09 00 01 98 11 45 67 00 00 00 00 90 00 E5 [11:17:36]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:17:36]wFMCommunicate OK [11:17:36]SAM_PROTO_GetShiftState done [11:17:36]FM_GetShiftState done [11:17:36]opened in 1732579736 [11:17:36]opened+sec_in_day 1732666136 [11:17:36]quantity*price = 30060 [11:17:36]sum+1 = 30061 [11:17:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 33 26.11.2024 11:17 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123179 ФПД: 18752422591647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T111746&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123179&fm=18752422591647&tin=02508201610067®Number=0000000000092681&sum=30000 [11:17:37]StoreToDocumentArchive [11:17:37]shift 557 fd 123179 [11:17:37]save to /storage/0557/doc_00123179 [11:17:37]save last doc name /storage/0557/doc_00123179 to /storage/kkm_last_doc_name [11:17:37]save OK [11:17:37]Clear old archive folders... [11:17:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:37]tlvbuf is 0212B520 [11:17:37]SAM_PROTO_ClearQueue [11:17:37]wFMCommunicate request_size=4 [11:17:37]MH_SAM_APDU [11:17:37]CAPDU: 80 09 00 00 [11:17:37]Write to MH i2c: E2 08 00 C4 50 80 09 00 00 00 00 00 00 86 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:37]Read from MH i2c: E2 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 03 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 03 00 C4 50 00 90 00 88 [11:17:37]RAPDU: 90 00 [11:17:37]wFMCommunicate OK [11:17:37]SAM_PROTO_ClearQueue done [11:17:37]KKMCreateOFDPacket [11:17:37]OFDProtocolAddRootSTLVToBuf [11:17:37]FM_MakeSignedData [11:17:37]FM_MakeSignedData [11:17:37]SAM_PROTO_SignData [11:17:37]wFMCommunicate request_size=4 [11:17:37]MH_SAM_APDU [11:17:37]CAPDU: 80 0D 01 02 [11:17:37]Write to MH i2c: E2 08 00 C5 50 80 0D 01 02 00 00 00 00 8E [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:37]Read from MH i2c: E2 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 03 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 03 00 C5 50 00 90 00 89 [11:17:37]RAPDU: 90 00 [11:17:37]wFMCommunicate OK [11:17:37]wFMCommunicate request_size=255 [11:17:37]MH_SAM_APDU [11:17:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 5A AE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2B E1 01 00 35 04 06 00 11 [11:17:37]Write to MH i2c: E2 02 01 C6 50 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 5A AE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2B E1 01 00 35 04 06 00 11 00 00 63 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:37]Read from MH i2c: E2 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 03 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 03 00 C6 50 00 90 00 8A [11:17:37]RAPDU: 90 00 [11:17:37]wFMCommunicate OK [11:17:37]wFMCommunicate request_size=10 [11:17:37]MH_SAM_APDU [11:17:37]CAPDU: 80 0D 02 02 05 0E 23 7C BC 9F [11:17:37]Write to MH i2c: E2 0D 00 C7 50 80 0D 02 02 05 00 0E 23 7C BC 9F 00 00 A3 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:37]Read from MH i2c: E2 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 03 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 03 00 C7 50 00 90 00 8B [11:17:37]RAPDU: 90 00 [11:17:37]wFMCommunicate OK [11:17:37]wFMCommunicate request_size=4 [11:17:37]MH_SAM_APDU [11:17:37]CAPDU: 80 0D 03 02 [11:17:37]Write to MH i2c: E2 08 00 C8 50 80 0D 03 02 00 00 00 00 93 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:37]Read from MH i2c: E2 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 0B 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 0B 00 C8 50 00 70 29 3D 9B 5A 94 B5 3A 90 00 E2 [11:17:37]RAPDU: 70 29 3D 9B 5A 94 B5 3A 90 00 [11:17:37]wFMCommunicate OK [11:17:37]SAM_PROTO_SignData done [11:17:37]FM_MakeSignedData done [11:17:37]CreateOFDProtocolMessage [11:17:37]wFMCommunicate request_size=4 [11:17:37]MH_SAM_APDU [11:17:37]CAPDU: 80 11 00 00 [11:17:37]Write to MH i2c: E2 08 00 C9 50 80 11 00 00 00 00 00 00 93 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:37]Read from MH i2c: E2 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 17 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 17 00 C9 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EA [11:17:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:17:37]wFMCommunicate OK [11:17:37]CreateOFDProtocolMessage done [11:17:37]OFDSenderStorePacket 123179 [11:17:37]StoreOFDPacket docnum=123179 [11:17:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 0D E6 07 01 94 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 5A AE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2B E1 01 00 35 04 06 00 11 0E 23 7C BC 9F 70 29 3D 9B 5A 94 B5 3A [11:17:37]CheckFolder [11:17:37]dirname=/storage/ofd_packets [11:17:37]CheckFolder done [11:17:37]ProducePacketName [11:17:37]name=ofd_packets/00123179 [11:17:37]NVStorageSaveData ofd_packets/00123179 [11:17:37]File name is /storage/ofd_packets/00123179 [11:17:37]Write 301 bytes [11:17:37]NVStorageSaveData done [11:17:37]OFDSenderStorePacket done [11:17:37]KKMCreateOFDPacket done [11:17:37]NVStorageSaveData kkm_last_timestamp [11:17:37]File name is /storage/kkm_last_timestamp [11:17:37]OFD Sender: Processing packet 123179 [packets to send 7, broken 6] [11:17:37]ProducePacketName [11:17:37]name=ofd_packets/00123179 [11:17:37]OFD Sender: To server: pG, [11:17:37]CommunicateWithHost lk.salyk.kg:30040 [11:17:37]ConnectInit lk.salyk.kg [11:17:37]Write 4 bytes [11:17:37]NVStorageSaveData done [11:17:37]ExternCall_PrintAddStr [11:17:37]wPrintStart [11:17:37]Write to MH i2c: 01 00 00 CA 50 1A [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: 01 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: 01 07 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: 01 07 00 CA 50 00 00 00 00 00 FF 0F 2F [11:17:37]RasterBufferAndPrint [11:17:37]line Счет N : (1)718014 [11:17:37]line ИНН: 02508201610067 [11:17:37]line Контрольно-Кассовый Чек [11:17:37]line ПРОДАЖА [11:17:37]line ТРК (МРК, ГНК) : 12 [11:17:37]line Товар: 2710124130 [11:17:37]line Аи-92-К-4 [11:17:37]line 4.460 * 67.40 [11:17:37]line = 300.60 [11:17:37]line НДС 12% НСП 1% [11:17:37]line > о реализуемом товаре [11:17:37]line ОКРУГЛЕНИЕ: -0.60 [11:17:37]line ИТОГО: 300.00 [11:17:37]line Внесено: 300.00 [11:17:37]line СДАЧА: 0.00 [11:17:37]line НСП 1% : 2.66 [11:17:37]line НДС 12% : 31.92 [11:17:37]line Наличными: 300.00 [11:17:37]line Безнал.: 0.00 [11:17:37]line Место: АЗС № 64 "Партнер Нефть" [11:17:37]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:17:37]line СНО: Общий режим [11:17:37]line Чек 33 26.11.2024 11:17 [11:17:37]line Смена: 557 ФФД: 1.0 [11:17:37]line ЗНМ: 0300000033 [11:17:37]line РНМ: 0000000000092681 [11:17:37]line Версия ККМ: 001 [11:17:37]line ФМ: 0000000000874881 [11:17:37]line ФД: 123179 [11:17:37]line ФПД: 18752422591647 [11:17:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T111746&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123179&fm=18752422591647&tin=02508201610067®Number=0000000000092681&sum=30000 [11:17:38]Connected sock=11 [11:17:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 0D E6 07 01 94 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 5A AE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2B E1 01 00 35 04 06 00 11 0E 23 7C BC 9F 70 29 3D 9B 5A 94 B5 3A [11:17:38]written 0, free lines is 4095 [11:17:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 18 99 47 00 3F 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2B E1 01 00 F4 03 04 00 1D 5A 45 67 B6 04 01 00 00 60 8C 8C B5 35 E0 83 11 [11:17:38]CommunicateWithHost err = 0 [11:17:38]CheckOFDResponse [11:17:38]1017 (14) - 77093643461234 [11:17:38]1041 (16) - 0000000000874881 [11:17:38]1040 (4) - 123179 [11:17:38]1012 (4) - 26.11.2024 05:18 [11:17:38]1206 (1) - 0 [11:17:38]OFD Sender: Remove packet 123179 [11:17:38]ProducePacketName [11:17:38]name=ofd_packets/00123179 [11:17:38]NVStorageDeleteData [11:17:38]Write to MH i2c: 01 00 00 F5 50 45 [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 07 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 07 00 F5 50 00 00 00 00 00 48 0C A0 [11:17:38]RasterBufferAndPrint [11:17:38]line [11:17:38]line [11:17:38]line [11:17:38]line [11:17:38]line [11:17:38]written 0, free lines is 3148 [11:17:38]MH_Cut [11:17:38]Write to MH i2c: D1 01 00 FC 50 01 1E [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: D1 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: D1 01 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: D1 01 00 FC 50 00 1D [11:17:38]Write to MH i2c: 01 00 00 FD 50 4D [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]OFD Sender: No OFD packet to send [11:17:39]*** Cut start [11:17:39]*** Partial cut [11:17:39]*** CUTSNS_PIN = 1 [11:17:40]*** CUTSNS_PIN = 0 [11:17:40]*** Brake cut motor [11:17:40]Read from MH i2c: 01 [11:17:40]MH_I2C_Read... [11:17:40]*** Stop cut motor [11:17:40]*** Cut end [11:17:40]Read from MH i2c: 01 07 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: 01 07 00 FD 50 00 00 00 00 00 FF 0F 62 [11:17:40]process_action close_receipt done [11:17:40]requested_data is exist [11:17:40]produce_requested_data [11:17:40]requested_item fm.sn is exist - process it [11:17:40]wFMCommunicate request_size=4 [11:17:40]MH_SAM_APDU [11:17:40]CAPDU: 80 11 00 00 [11:17:40]Write to MH i2c: E2 08 00 FE 50 80 11 00 00 00 00 00 00 C8 [11:17:40]Write i2c OK [11:17:40]MH_I2C_Read... [11:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:40]Read from MH i2c: E2 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 17 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 17 00 FE 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1F [11:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:17:40]wFMCommunicate OK [11:17:40]requested_item fd.num is exist - process it [11:17:40]SAM_PROTO_GetFieldsCounters [11:17:40]wFMCommunicate request_size=4 [11:17:40]MH_SAM_APDU [11:17:40]CAPDU: 80 13 00 00 [11:17:40]Write to MH i2c: E2 08 00 FF 50 80 13 00 00 00 00 00 00 CB [11:17:40]Write i2c OK [11:17:40]MH_I2C_Read... [11:17:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:40]Read from MH i2c: E2 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 62 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 62 00 FF 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 2B E1 01 00 0E 04 04 00 2D 02 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 90 [11:17:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 2B E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:40]wFMCommunicate OK [11:17:40]SAM_PROTO_GetFieldsCounters done [11:17:40]requested_item shift.num is exist - process it [11:17:40]requested_item shift.opened is exist - process it [11:17:40]req_shift_opened [11:17:40]FM_GetShiftState [11:17:40]SAM_PROTO_GetShiftState [11:17:40]wFMCommunicate request_size=4 [11:17:40]MH_SAM_APDU [11:17:40]CAPDU: 80 13 01 00 [11:17:40]Write to MH i2c: E2 08 00 00 51 80 13 01 00 00 00 00 00 CE [11:17:40]Write i2c OK [11:17:40]MH_I2C_Read... [11:17:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:40]Read from MH i2c: E2 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 0E 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 0E 00 00 51 00 09 00 01 98 11 45 67 00 00 00 00 90 00 2F [11:17:40]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:17:40]wFMCommunicate OK [11:17:40]SAM_PROTO_GetShiftState done [11:17:40]FM_GetShiftState done [11:17:40]req_shift_opened done [11:17:40]requested_item shift.open_date is exist - process it [11:17:40]req_shift_open_date [11:17:40]req_shift_open_date done [11:17:40]produce_requested_data done [11:17:40]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123179,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [11:17:40]process_action_free close_receipt [11:17:40]json_value_free [11:17:40]json_value_free done [11:17:40]process_json_proto returns [11:17:40]Send response to host [11:17:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123179,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [11:17:40]free response buf [11:17:40]execute_script done [11:17:40]execute_script returns [11:17:40]free content buf [11:17:40]Sock 9.Close socket [11:17:40]Sock 9.Thread stoped [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:32]accept exits with 7 [11:20:32]New connection [11:20:32]New thread 3066723684 created [11:20:32]Thread 3066580324 joined [11:20:32]Waiting for new connection... [11:20:32] Sock 7.Parse request [11:20:32]Sock 7.Check first char [11:20:32]Sock 7.First char is OK [11:20:32]request: POST /json_proto HTTP/1.0 [11:20:32]Method: POST [11:20:32]URL: /json_proto [11:20:32]Method is POST - this is cgi request [11:20:32]url: /json_proto [11:20:32]query_string will be loaded in cgi processing [11:20:32]execute_cgi json_proto POST (null) [11:20:32]execute_cgi path=json_proto method=POST [11:20:32]POST find Content-Length [11:20:32]Host: 172.17.37.4:8080 [11:20:32]Content-Length: 677 [11:20:32]Content-Type: application/json [11:20:32] [11:20:32]POST finish read [11:20:32]Found Content-Length = 677 [11:20:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:32]execute_script... [11:20:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:32]POST & json_proto [11:20:32]process_json_proto [11:20:32]json parsed OK: [11:20:32]protocol is kg_v1.0 [11:20:32]action value=close_receipt [11:20:32]process_action close_receipt [11:20:32]cmd_close_receipt [11:20:32]MH_GetDate [11:20:32]Write to MH i2c: F0 00 00 01 51 41 [11:20:32]Write i2c OK [11:20:32]MH_I2C_Read... [11:20:32]Read from MH i2c: F0 [11:20:32]MH_I2C_Read... [11:20:32]Read from MH i2c: F0 09 00 [11:20:32]MH_I2C_Read... [11:20:32]Read from MH i2c: F0 09 00 01 51 00 0A AF 45 67 B8 5A 43 67 6B [11:20:32]GetLastDocTimeStamp 1732619866 [11:20:32]current date 1732620042 [11:20:32]FM_GetShiftState [11:20:32]SAM_PROTO_GetShiftState [11:20:32]wFMCommunicate request_size=4 [11:20:32]MH_SAM_APDU [11:20:32]CAPDU: 80 13 01 00 [11:20:32]Write to MH i2c: E2 08 00 02 51 80 13 01 00 00 00 00 00 D0 [11:20:32]Write i2c OK [11:20:32]MH_I2C_Read... [11:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:32]Read from MH i2c: E2 [11:20:32]MH_I2C_Read... [11:20:32]Read from MH i2c: E2 0E 00 [11:20:32]MH_I2C_Read... [11:20:32]Read from MH i2c: E2 0E 00 02 51 00 09 00 01 98 11 45 67 00 00 00 00 90 00 31 [11:20:32]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:20:32]wFMCommunicate OK [11:20:32]SAM_PROTO_GetShiftState done [11:20:32]FM_GetShiftState done [11:20:32]opened in 1732579736 [11:20:32]opened+sec_in_day 1732666136 [11:20:32]quantity*price = 30060 [11:20:32]sum+1 = 30061 [11:20:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 34 26.11.2024 11:20 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123180 ФПД: 251941929708098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T112043&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123180&fm=251941929708098&tin=02508201610067®Number=0000000000092681&sum=30000 [11:20:33]StoreToDocumentArchive [11:20:33]shift 557 fd 123180 [11:20:33]save to /storage/0557/doc_00123180 [11:20:33]save last doc name /storage/0557/doc_00123180 to /storage/kkm_last_doc_name [11:20:33]save OK [11:20:33]Clear old archive folders... [11:20:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:20:33]tlvbuf is 02068740 [11:20:33]SAM_PROTO_ClearQueue [11:20:33]wFMCommunicate request_size=4 [11:20:33]MH_SAM_APDU [11:20:33]CAPDU: 80 09 00 00 [11:20:33]Write to MH i2c: E2 08 00 0F 51 80 09 00 00 00 00 00 00 D2 [11:20:33]Write i2c OK [11:20:33]MH_I2C_Read... [11:20:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:33]Read from MH i2c: E2 [11:20:33]MH_I2C_Read... [11:20:33]Read from MH i2c: E2 03 00 [11:20:33]MH_I2C_Read... [11:20:33]Read from MH i2c: E2 03 00 0F 51 00 90 00 D4 [11:20:33]RAPDU: 90 00 [11:20:33]wFMCommunicate OK [11:20:33]SAM_PROTO_ClearQueue done [11:20:33]KKMCreateOFDPacket [11:20:33]OFDProtocolAddRootSTLVToBuf [11:20:33]FM_MakeSignedData [11:20:33]FM_MakeSignedData [11:20:33]SAM_PROTO_SignData [11:20:33]wFMCommunicate request_size=4 [11:20:33]MH_SAM_APDU [11:20:33]CAPDU: 80 0D 01 02 [11:20:33]Write to MH i2c: E2 08 00 10 51 80 0D 01 02 00 00 00 00 DA [11:20:33]Write i2c OK [11:20:33]MH_I2C_Read... [11:20:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:33]Read from MH i2c: E2 [11:20:33]MH_I2C_Read... [11:20:33]Read from MH i2c: E2 03 00 [11:20:33]MH_I2C_Read... [11:20:33]Read from MH i2c: E2 03 00 10 51 00 90 00 D5 [11:20:33]RAPDU: 90 00 [11:20:33]wFMCommunicate OK [11:20:33]wFMCommunicate request_size=255 [11:20:33]MH_SAM_APDU [11:20:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 0B AF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2C E1 01 00 35 04 06 00 E5 [11:20:33]Write to MH i2c: E2 02 01 11 51 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 0B AF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2C E1 01 00 35 04 06 00 E5 00 00 37 [11:20:33]Write i2c OK [11:20:33]MH_I2C_Read... [11:20:34]OFD Sender: No OFD packet to send [11:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:34]Read from MH i2c: E2 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 03 00 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 03 00 11 51 00 90 00 D6 [11:20:34]RAPDU: 90 00 [11:20:34]wFMCommunicate OK [11:20:34]wFMCommunicate request_size=10 [11:20:34]MH_SAM_APDU [11:20:34]CAPDU: 80 0D 02 02 05 23 CD 39 6A 42 [11:20:34]Write to MH i2c: E2 0D 00 12 51 80 0D 02 02 05 00 23 CD 39 6A 42 00 00 BC [11:20:34]Write i2c OK [11:20:34]MH_I2C_Read... [11:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:34]Read from MH i2c: E2 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 03 00 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 03 00 12 51 00 90 00 D7 [11:20:34]RAPDU: 90 00 [11:20:34]wFMCommunicate OK [11:20:34]wFMCommunicate request_size=4 [11:20:34]MH_SAM_APDU [11:20:34]CAPDU: 80 0D 03 02 [11:20:34]Write to MH i2c: E2 08 00 13 51 80 0D 03 02 00 00 00 00 DF [11:20:34]Write i2c OK [11:20:34]MH_I2C_Read... [11:20:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:34]Read from MH i2c: E2 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 0B 00 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 0B 00 13 51 00 20 A2 7E 6E 7F 61 5A 2C 90 00 F4 [11:20:34]RAPDU: 20 A2 7E 6E 7F 61 5A 2C 90 00 [11:20:34]wFMCommunicate OK [11:20:34]SAM_PROTO_SignData done [11:20:34]FM_MakeSignedData done [11:20:34]CreateOFDProtocolMessage [11:20:34]wFMCommunicate request_size=4 [11:20:34]MH_SAM_APDU [11:20:34]CAPDU: 80 11 00 00 [11:20:34]Write to MH i2c: E2 08 00 14 51 80 11 00 00 00 00 00 00 DF [11:20:34]Write i2c OK [11:20:34]MH_I2C_Read... [11:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:34]Read from MH i2c: E2 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 17 00 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: E2 17 00 14 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 36 [11:20:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:20:34]wFMCommunicate OK [11:20:34]CreateOFDProtocolMessage done [11:20:34]OFDSenderStorePacket 123180 [11:20:34]StoreOFDPacket docnum=123180 [11:20:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 C9 8E 07 01 41 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 0B AF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2C E1 01 00 35 04 06 00 E5 23 CD 39 6A 42 20 A2 7E 6E 7F 61 5A 2C [11:20:34]CheckFolder [11:20:34]dirname=/storage/ofd_packets [11:20:34]CheckFolder done [11:20:34]ProducePacketName [11:20:34]name=ofd_packets/00123180 [11:20:34]NVStorageSaveData ofd_packets/00123180 [11:20:34]File name is /storage/ofd_packets/00123180 [11:20:34]Write 301 bytes [11:20:34]NVStorageSaveData done [11:20:34]OFDSenderStorePacket done [11:20:34]KKMCreateOFDPacket done [11:20:34]NVStorageSaveData kkm_last_timestamp [11:20:34]File name is /storage/kkm_last_timestamp [11:20:34]Write 4 bytes [11:20:34]NVStorageSaveData done [11:20:34]ExternCall_PrintAddStr [11:20:34]wPrintStart [11:20:34]Write to MH i2c: 01 00 00 15 51 66 [11:20:34]Write i2c OK [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: 01 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: 01 07 00 [11:20:34]MH_I2C_Read... [11:20:34]Read from MH i2c: 01 07 00 15 51 00 00 00 00 00 FF 0F 7B [11:20:34]RasterBufferAndPrint [11:20:34]line Счет N : (1)718015 [11:20:34]line ИНН: 02508201610067 [11:20:34]line Контрольно-Кассовый Чек [11:20:34]line ПРОДАЖА [11:20:34]line ТРК (МРК, ГНК) : 32 [11:20:34]line Товар: 2710124130 [11:20:34]line Аи-92-К-4 [11:20:34]line 4.460 * 67.40 [11:20:34]line = 300.60 [11:20:34]line НДС 12% НСП 1% [11:20:34]line > о реализуемом товаре [11:20:34]line ОКРУГЛЕНИЕ: -0.60 [11:20:34]line ИТОГО: 300.00 [11:20:34]line Внесено: 300.00 [11:20:34]line СДАЧА: 0.00 [11:20:34]line НСП 1% : 2.66 [11:20:34]line НДС 12% : 31.92 [11:20:34]line Наличными: 300.00 [11:20:34]line Безнал.: 0.00 [11:20:34]line Место: АЗС № 64 "Партнер Нефть" [11:20:34]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:20:34]line СНО: Общий режим [11:20:34]line Чек 34 26.11.2024 11:20 [11:20:34]line Смена: 557 ФФД: 1.0 [11:20:34]line ЗНМ: 0300000033 [11:20:34]line РНМ: 0000000000092681 [11:20:34]line Версия ККМ: 001 [11:20:34]line ФМ: 0000000000874881 [11:20:34]line ФД: 123180 [11:20:34]line ФПД: 251941929708098 [11:20:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T112043&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123180&fm=251941929708098&tin=02508201610067®Number=0000000000092681&sum=30000 [11:20:34]OFD Sender: Processing packet 123180 [packets to send 7, broken 6] [11:20:34]ProducePacketName [11:20:34]name=ofd_packets/00123180 [11:20:34]OFD Sender: To server: pG, [11:20:34]CommunicateWithHost lk.salyk.kg:30040 [11:20:34]ConnectInit lk.salyk.kg [11:20:34]written 0, free lines is 4095 [11:20:34]Connected sock=10 [11:20:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 C9 8E 07 01 41 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 0B AF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2C E1 01 00 35 04 06 00 E5 23 CD 39 6A 42 20 A2 7E 6E 7F 61 5A 2C [11:20:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 6A B7 47 00 65 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2C E1 01 00 F4 03 04 00 CD 5A 45 67 B6 04 01 00 00 26 07 28 77 EA CF 92 E3 [11:20:35]CommunicateWithHost err = 0 [11:20:35]CheckOFDResponse [11:20:35]1017 (14) - 77093643461234 [11:20:35]1041 (16) - 0000000000874881 [11:20:35]1040 (4) - 123180 [11:20:35]1012 (4) - 26.11.2024 05:21 [11:20:35]1206 (1) - 0 [11:20:35]OFD Sender: Remove packet 123180 [11:20:35]ProducePacketName [11:20:35]name=ofd_packets/00123180 [11:20:35]NVStorageDeleteData [11:20:35]Write to MH i2c: 01 00 00 40 51 91 [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: 01 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: 01 07 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: 01 07 00 40 51 00 00 00 00 00 45 0C E9 [11:20:35]RasterBufferAndPrint [11:20:35]line [11:20:35]line [11:20:35]line [11:20:35]line [11:20:35]line [11:20:35]written 0, free lines is 3146 [11:20:35]MH_Cut [11:20:35]Write to MH i2c: D1 01 00 47 51 01 6A [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: D1 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: D1 01 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: D1 01 00 47 51 00 69 [11:20:35]Write to MH i2c: 01 00 00 48 51 99 [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]OFD Sender: No OFD packet to send [11:20:36]*** Cut start [11:20:36]*** Partial cut [11:20:36]*** CUTSNS_PIN = 1 [11:20:36]*** CUTSNS_PIN = 0 [11:20:36]*** Brake cut motor [11:20:37]Read from MH i2c: 01 [11:20:37]MH_I2C_Read... [11:20:37]*** Stop cut motor [11:20:37]*** Cut end [11:20:37]Read from MH i2c: 01 07 00 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: 01 07 00 48 51 00 00 00 00 00 FF 0F AE [11:20:37]process_action close_receipt done [11:20:37]requested_data is exist [11:20:37]produce_requested_data [11:20:37]requested_item fm.sn is exist - process it [11:20:37]wFMCommunicate request_size=4 [11:20:37]MH_SAM_APDU [11:20:37]CAPDU: 80 11 00 00 [11:20:37]Write to MH i2c: E2 08 00 49 51 80 11 00 00 00 00 00 00 14 [11:20:37]Write i2c OK [11:20:37]MH_I2C_Read... [11:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:37]Read from MH i2c: E2 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 17 00 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 17 00 49 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6B [11:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:20:37]wFMCommunicate OK [11:20:37]requested_item fd.num is exist - process it [11:20:37]SAM_PROTO_GetFieldsCounters [11:20:37]wFMCommunicate request_size=4 [11:20:37]MH_SAM_APDU [11:20:37]CAPDU: 80 13 00 00 [11:20:37]Write to MH i2c: E2 08 00 4A 51 80 13 00 00 00 00 00 00 17 [11:20:37]Write i2c OK [11:20:37]MH_I2C_Read... [11:20:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:37]Read from MH i2c: E2 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 62 00 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 62 00 4A 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 2C E1 01 00 0E 04 04 00 2D 02 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 E0 [11:20:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 2C E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:37]wFMCommunicate OK [11:20:37]SAM_PROTO_GetFieldsCounters done [11:20:37]requested_item shift.num is exist - process it [11:20:37]requested_item shift.opened is exist - process it [11:20:37]req_shift_opened [11:20:37]FM_GetShiftState [11:20:37]SAM_PROTO_GetShiftState [11:20:37]wFMCommunicate request_size=4 [11:20:37]MH_SAM_APDU [11:20:37]CAPDU: 80 13 01 00 [11:20:37]Write to MH i2c: E2 08 00 4B 51 80 13 01 00 00 00 00 00 19 [11:20:37]Write i2c OK [11:20:37]MH_I2C_Read... [11:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:37]Read from MH i2c: E2 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 0E 00 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: E2 0E 00 4B 51 00 09 00 01 98 11 45 67 00 00 00 00 90 00 7A [11:20:37]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:20:37]wFMCommunicate OK [11:20:37]SAM_PROTO_GetShiftState done [11:20:37]FM_GetShiftState done [11:20:37]req_shift_opened done [11:20:37]requested_item shift.open_date is exist - process it [11:20:37]req_shift_open_date [11:20:37]req_shift_open_date done [11:20:37]produce_requested_data done [11:20:37]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123180,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [11:20:37]process_action_free close_receipt [11:20:37]json_value_free [11:20:37]json_value_free done [11:20:37]process_json_proto returns [11:20:37]Send response to host [11:20:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123180,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [11:20:37]free response buf [11:20:37]execute_script done [11:20:37]execute_script returns [11:20:37]free content buf [11:20:37]Sock 7.Close socket [11:20:37]Sock 7.Thread stoped [11:20:40]OFD Sender: No OFD packet to send [11:20:41]accept exits with 9 [11:20:41]New connection [11:20:41]New thread 3066580324 created [11:20:41]Thread 3066723684 joined [11:20:41]Waiting for new connection... [11:20:41] Sock 9.Parse request [11:20:41]Sock 9.Check first char [11:20:41]Sock 9.First char is OK [11:20:41]request: POST /json_proto HTTP/1.0 [11:20:41]Method: POST [11:20:41]URL: /json_proto [11:20:41]Method is POST - this is cgi request [11:20:41]url: /json_proto [11:20:41]query_string will be loaded in cgi processing [11:20:41]execute_cgi json_proto POST (null) [11:20:41]execute_cgi path=json_proto method=POST [11:20:41]POST find Content-Length [11:20:41]Host: 172.17.37.4:8080 [11:20:41]Content-Length: 787 [11:20:41]Content-Type: application/json [11:20:41] [11:20:41]POST finish read [11:20:41]Found Content-Length = 787 [11:20:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3609342", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:41]execute_script... [11:20:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3609342", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:41]POST & json_proto [11:20:41]process_json_proto [11:20:41]json parsed OK: [11:20:41]protocol is kg_v1.0 [11:20:41]action value=close_receipt [11:20:41]process_action close_receipt [11:20:41]cmd_close_receipt [11:20:41]MH_GetDate [11:20:41]Write to MH i2c: F0 00 00 4C 51 8C [11:20:41]Write i2c OK [11:20:41]MH_I2C_Read... [11:20:41]Read from MH i2c: F0 [11:20:41]MH_I2C_Read... [11:20:41]Read from MH i2c: F0 09 00 [11:20:41]MH_I2C_Read... [11:20:41]Read from MH i2c: F0 09 00 4C 51 00 13 AF 45 67 B8 5A 43 67 BF [11:20:41]GetLastDocTimeStamp 1732620043 [11:20:41]current date 1732620051 [11:20:41]FM_GetShiftState [11:20:41]SAM_PROTO_GetShiftState [11:20:41]wFMCommunicate request_size=4 [11:20:41]MH_SAM_APDU [11:20:41]CAPDU: 80 13 01 00 [11:20:41]Write to MH i2c: E2 08 00 4D 51 80 13 01 00 00 00 00 00 1B [11:20:41]Write i2c OK [11:20:41]MH_I2C_Read... [11:20:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:41]Read from MH i2c: E2 [11:20:41]MH_I2C_Read... [11:20:41]Read from MH i2c: E2 0E 00 [11:20:41]MH_I2C_Read... [11:20:41]Read from MH i2c: E2 0E 00 4D 51 00 09 00 01 98 11 45 67 00 00 00 00 90 00 7C [11:20:41]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:20:41]wFMCommunicate OK [11:20:41]SAM_PROTO_GetShiftState done [11:20:41]FM_GetShiftState done [11:20:41]opened in 1732579736 [11:20:41]opened+sec_in_day 1732666136 [11:20:41]quantity*price = 0 [11:20:41]sum+1 = 1 [11:20:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 35 26.11.2024 11:20 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Партнер нефть 3609342 ФМ: 0000000000874881 ФД: 123181 ФПД: 201253085601319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T112051&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123181&fm=201253085601319&tin=02508201610067®Number=0000000000092681&sum=0 [11:20:42]StoreToDocumentArchive [11:20:42]shift 557 fd 123181 [11:20:42]save to /storage/0557/doc_00123181 [11:20:42]save last doc name /storage/0557/doc_00123181 to /storage/kkm_last_doc_name [11:20:42]save OK [11:20:42]Clear old archive folders... [11:20:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:20:42]tlvbuf is 020AD690 [11:20:42]SAM_PROTO_ClearQueue [11:20:42]wFMCommunicate request_size=4 [11:20:42]MH_SAM_APDU [11:20:42]CAPDU: 80 09 00 00 [11:20:42]Write to MH i2c: E2 08 00 5A 51 80 09 00 00 00 00 00 00 1D [11:20:42]Write i2c OK [11:20:42]MH_I2C_Read... [11:20:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:42]Read from MH i2c: E2 [11:20:42]MH_I2C_Read... [11:20:42]Read from MH i2c: E2 03 00 [11:20:42]MH_I2C_Read... [11:20:42]Read from MH i2c: E2 03 00 5A 51 00 90 00 1F [11:20:42]RAPDU: 90 00 [11:20:42]wFMCommunicate OK [11:20:42]SAM_PROTO_ClearQueue done [11:20:42]KKMCreateOFDPacket [11:20:42]OFDProtocolAddRootSTLVToBuf [11:20:42]FM_MakeSignedData [11:20:42]FM_MakeSignedData [11:20:42]SAM_PROTO_SignData [11:20:42]wFMCommunicate request_size=4 [11:20:42]MH_SAM_APDU [11:20:42]CAPDU: 80 0D 01 02 [11:20:42]Write to MH i2c: E2 08 00 5B 51 80 0D 01 02 00 00 00 00 25 [11:20:42]Write i2c OK [11:20:42]MH_I2C_Read... [11:20:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:42]Read from MH i2c: E2 [11:20:42]MH_I2C_Read... [11:20:42]Read from MH i2c: E2 03 00 [11:20:42]MH_I2C_Read... [11:20:42]Read from MH i2c: E2 03 00 5B 51 00 90 00 20 [11:20:42]RAPDU: 90 00 [11:20:42]wFMCommunicate OK [11:20:42]wFMCommunicate request_size=255 [11:20:42]MH_SAM_APDU [11:20:42]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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 13 AF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2D E1 01 00 35 04 06 00 [11:20:42]Write to MH i2c: E2 02 01 5C 51 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 13 AF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2D E1 01 00 35 04 06 00 00 00 65 [11:20:42]Write i2c OK [11:20:42]MH_I2C_Read... [11:20:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:42]Read from MH i2c: E2 [11:20:42]MH_I2C_Read... [11:20:42]Read from MH i2c: E2 03 00 [11:20:42]MH_I2C_Read... [11:20:42]Read from MH i2c: E2 03 00 5C 51 00 90 00 21 [11:20:42]RAPDU: 90 00 [11:20:42]wFMCommunicate OK [11:20:42]wFMCommunicate request_size=11 [11:20:42]MH_SAM_APDU [11:20:42]CAPDU: 80 0D 02 02 06 B7 09 E2 AD 5E 27 [11:20:42]Write to MH i2c: E2 0E 00 5D 51 80 0D 02 02 06 00 B7 09 E2 AD 5E 27 00 00 08 [11:20:42]Write i2c OK [11:20:42]MH_I2C_Read... [11:20:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:42]Read from MH i2c: E2 [11:20:42]MH_I2C_Read... [11:20:42]Read from MH i2c: E2 03 00 [11:20:42]MH_I2C_Read... [11:20:42]Read from MH i2c: E2 03 00 5D 51 00 90 00 22 [11:20:42]RAPDU: 90 00 [11:20:42]wFMCommunicate OK [11:20:42]wFMCommunicate request_size=4 [11:20:42]MH_SAM_APDU [11:20:42]CAPDU: 80 0D 03 02 [11:20:42]Write to MH i2c: E2 08 00 5E 51 80 0D 03 02 00 00 00 00 2A [11:20:42]Write i2c OK [11:20:42]MH_I2C_Read... [11:20:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:43]Read from MH i2c: E2 [11:20:43]MH_I2C_Read... [11:20:43]Read from MH i2c: E2 0B 00 [11:20:43]MH_I2C_Read... [11:20:43]Read from MH i2c: E2 0B 00 5E 51 00 22 5D 94 12 46 BC 1D B7 90 00 26 [11:20:43]RAPDU: 22 5D 94 12 46 BC 1D B7 90 00 [11:20:43]wFMCommunicate OK [11:20:43]SAM_PROTO_SignData done [11:20:43]FM_MakeSignedData done [11:20:43]CreateOFDProtocolMessage [11:20:43]wFMCommunicate request_size=4 [11:20:43]MH_SAM_APDU [11:20:43]CAPDU: 80 11 00 00 [11:20:43]Write to MH i2c: E2 08 00 5F 51 80 11 00 00 00 00 00 00 2A [11:20:43]Write i2c OK [11:20:43]MH_I2C_Read... [11:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:43]Read from MH i2c: E2 [11:20:43]MH_I2C_Read... [11:20:43]Read from MH i2c: E2 17 00 [11:20:43]MH_I2C_Read... [11:20:43]Read from MH i2c: E2 17 00 5F 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 81 [11:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:20:43]wFMCommunicate OK [11:20:43]CreateOFDProtocolMessage done [11:20:43]OFDSenderStorePacket 123181 [11:20:43]StoreOFDPacket docnum=123181 [11:20:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 63 31 08 01 76 0D 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 13 AF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2D E1 01 00 35 04 06 00 B7 09 E2 AD 5E 27 22 5D 94 12 46 BC 1D B7 [11:20:43]CheckFolder [11:20:43]dirname=/storage/ofd_packets [11:20:43]CheckFolder done [11:20:43]ProducePacketName [11:20:43]name=ofd_packets/00123181 [11:20:43]NVStorageSaveData ofd_packets/00123181 [11:20:43]File name is /storage/ofd_packets/00123181 [11:20:43]Write 302 bytes [11:20:43]NVStorageSaveData done [11:20:43]OFDSenderStorePacket done [11:20:43]KKMCreateOFDPacket done [11:20:43]NVStorageSaveData kkm_last_timestamp [11:20:43]File name is /storage/kkm_last_timestamp [11:20:43]Write 4 bytes [11:20:43]NVStorageSaveData done [11:20:43]ExternCall_PrintAddStr [11:20:43]wPrintStart [11:20:43]Write to MH i2c: 01 00 00 60 51 B1 [11:20:43]Write i2c OK [11:20:43]MH_I2C_Read... [11:20:43]Read from MH i2c: 01 [11:20:43]MH_I2C_Read... [11:20:43]Read from MH i2c: 01 07 00 [11:20:43]MH_I2C_Read... [11:20:43]Read from MH i2c: 01 07 00 60 51 00 00 00 00 00 FF 0F C6 [11:20:43]RasterBufferAndPrint [11:20:43]line Счет N : (1)718013 [11:20:43]line ИНН: 02508201610067 [11:20:43]line Контрольно-Кассовый Чек [11:20:43]line ПРОДАЖА [11:20:43]line ТРК (МРК, ГНК) : 5 [11:20:43]line Товар: 2710194210 [11:20:43]line ДТ(л)-К-5 [11:20:43]line 100.000 * 0.00 [11:20:43]line = 0.00 [11:20:43]line НДС 12% НСП 1% [11:20:43]line > о реализуемом товаре [11:20:43]line ИТОГО: 0.00 [11:20:43]line НСП 1% : 0.00 [11:20:43]line НДС 12% : 0.00 [11:20:43]line Наличными: 0.00 [11:20:43]line Безнал.: 0.00 [11:20:43]line Место: АЗС № 64 "Партнер Нефть" [11:20:43]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:20:43]line СНО: Общий режим [11:20:43]line Чек 35 26.11.2024 11:20 [11:20:43]line Смена: 557 ФФД: 1.0 [11:20:43]line ЗНМ: 0300000033 [11:20:43]line РНМ: 0000000000092681 [11:20:43]line Версия ККМ: 001 [11:20:43]line Талоны: Партнер нефть [11:20:43]line 3609342 [11:20:43]line ФМ: 0000000000874881 [11:20:43]line ФД: 123181 [11:20:43]line ФПД: 201253085601319 [11:20:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T112051&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123181&fm=201253085601319&tin=02508201610067®Number=0000000000092681&sum=0 [11:20:43]written 0, free lines is 4095 [11:20:43]OFD Sender: Processing packet 123181 [packets to send 7, broken 6] [11:20:43]ProducePacketName [11:20:43]name=ofd_packets/00123181 [11:20:43]OFD Sender: To server: pG, [11:20:43]CommunicateWithHost lk.salyk.kg:30040 [11:20:43]ConnectInit lk.salyk.kg [11:20:43]Connected sock=10 [11:20:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 63 31 08 01 76 0D 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 13 AF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2D E1 01 00 35 04 06 00 B7 09 E2 AD 5E 27 22 5D 94 12 46 BC 1D B7 [11:20:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 88 D1 47 00 40 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2D E1 01 00 F4 03 04 00 D6 5A 45 67 B6 04 01 00 00 10 8D 4C 8D 92 4D CD E9 [11:20:43]CommunicateWithHost err = 0 [11:20:43]CheckOFDResponse [11:20:43]1017 (14) - 77093643461234 [11:20:43]1041 (16) - 0000000000874881 [11:20:43]1040 (4) - 123181 [11:20:43]1012 (4) - 26.11.2024 05:21 [11:20:43]1206 (1) - 0 [11:20:43]OFD Sender: Remove packet 123181 [11:20:43]ProducePacketName [11:20:43]name=ofd_packets/00123181 [11:20:43]NVStorageDeleteData [11:20:43]Write to MH i2c: 01 00 00 8A 51 DB [11:20:43]Write i2c OK [11:20:43]MH_I2C_Read... [11:20:43]Read from MH i2c: 01 [11:20:43]MH_I2C_Read... [11:20:43]Read from MH i2c: 01 07 00 [11:20:43]MH_I2C_Read... [11:20:43]Read from MH i2c: 01 07 00 8A 51 00 00 00 00 00 5F 0C 4D [11:20:43]RasterBufferAndPrint [11:20:43]line [11:20:43]line [11:20:43]line [11:20:43]line [11:20:43]line [11:20:43]written 0, free lines is 3175 [11:20:43]MH_Cut [11:20:43]Write to MH i2c: D1 01 00 91 51 01 B4 [11:20:43]Write i2c OK [11:20:43]MH_I2C_Read... [11:20:43]Read from MH i2c: D1 [11:20:43]MH_I2C_Read... [11:20:43]Read from MH i2c: D1 01 00 [11:20:43]MH_I2C_Read... [11:20:43]Read from MH i2c: D1 01 00 91 51 00 B3 [11:20:43]Write to MH i2c: 01 00 00 92 51 E3 [11:20:43]Write i2c OK [11:20:43]MH_I2C_Read... [11:20:43]OFD Sender: No OFD packet to send [11:20:44]*** Cut start [11:20:44]*** Partial cut [11:20:44]*** CUTSNS_PIN = 1 [11:20:44]*** CUTSNS_PIN = 0 [11:20:45]*** Brake cut motor [11:20:45]Read from MH i2c: 01 [11:20:45]MH_I2C_Read... [11:20:45]*** Stop cut motor [11:20:45]*** Cut end [11:20:45]Read from MH i2c: 01 07 00 [11:20:45]MH_I2C_Read... [11:20:45]Read from MH i2c: 01 07 00 92 51 00 00 00 00 00 FF 0F F8 [11:20:45]process_action close_receipt done [11:20:45]requested_data is exist [11:20:45]produce_requested_data [11:20:45]requested_item fm.sn is exist - process it [11:20:45]wFMCommunicate request_size=4 [11:20:45]MH_SAM_APDU [11:20:45]CAPDU: 80 11 00 00 [11:20:45]Write to MH i2c: E2 08 00 93 51 80 11 00 00 00 00 00 00 5E [11:20:45]Write i2c OK [11:20:45]MH_I2C_Read... [11:20:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:45]Read from MH i2c: E2 [11:20:45]MH_I2C_Read... [11:20:45]Read from MH i2c: E2 17 00 [11:20:45]MH_I2C_Read... [11:20:45]Read from MH i2c: E2 17 00 93 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B5 [11:20:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:20:45]wFMCommunicate OK [11:20:45]requested_item fd.num is exist - process it [11:20:45]SAM_PROTO_GetFieldsCounters [11:20:45]wFMCommunicate request_size=4 [11:20:45]MH_SAM_APDU [11:20:45]CAPDU: 80 13 00 00 [11:20:45]Write to MH i2c: E2 08 00 94 51 80 13 00 00 00 00 00 00 61 [11:20:45]Write i2c OK [11:20:45]MH_I2C_Read... [11:20:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:45]Read from MH i2c: E2 [11:20:45]MH_I2C_Read... [11:20:45]Read from MH i2c: E2 62 00 [11:20:45]MH_I2C_Read... [11:20:45]Read from MH i2c: E2 62 00 94 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 2D E1 01 00 0E 04 04 00 2D 02 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 2E [11:20:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 2D E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:45]wFMCommunicate OK [11:20:45]SAM_PROTO_GetFieldsCounters done [11:20:45]requested_item shift.num is exist - process it [11:20:45]requested_item shift.opened is exist - process it [11:20:45]req_shift_opened [11:20:45]FM_GetShiftState [11:20:45]SAM_PROTO_GetShiftState [11:20:45]wFMCommunicate request_size=4 [11:20:45]MH_SAM_APDU [11:20:45]CAPDU: 80 13 01 00 [11:20:45]Write to MH i2c: E2 08 00 95 51 80 13 01 00 00 00 00 00 63 [11:20:45]Write i2c OK [11:20:45]MH_I2C_Read... [11:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:45]Read from MH i2c: E2 [11:20:45]MH_I2C_Read... [11:20:45]Read from MH i2c: E2 0E 00 [11:20:45]MH_I2C_Read... [11:20:45]Read from MH i2c: E2 0E 00 95 51 00 09 00 01 98 11 45 67 00 00 00 00 90 00 C4 [11:20:45]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:20:45]wFMCommunicate OK [11:20:45]SAM_PROTO_GetShiftState done [11:20:45]FM_GetShiftState done [11:20:45]req_shift_opened done [11:20:45]requested_item shift.open_date is exist - process it [11:20:45]req_shift_open_date [11:20:45]req_shift_open_date done [11:20:45]produce_requested_data done [11:20:45]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123181,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [11:20:45]process_action_free close_receipt [11:20:45]json_value_free [11:20:45]json_value_free done [11:20:45]process_json_proto returns [11:20:45]Send response to host [11:20:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123181,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [11:20:45]free response buf [11:20:45]execute_script done [11:20:45]execute_script returns [11:20:45]free content buf [11:20:45]Sock 9.Close socket [11:20:45]Sock 9.Thread stoped [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:16]accept exits with 7 [11:24:16]New connection [11:24:16]New thread 3066723684 created [11:24:16]Thread 3066580324 joined [11:24:16]Waiting for new connection... [11:24:16] Sock 7.Parse request [11:24:16]Sock 7.Check first char [11:24:16]Sock 7.First char is OK [11:24:16]request: POST /json_proto HTTP/1.0 [11:24:16]Method: POST [11:24:16]URL: /json_proto [11:24:16]Method is POST - this is cgi request [11:24:16]url: /json_proto [11:24:16]query_string will be loaded in cgi processing [11:24:16]execute_cgi json_proto POST (null) [11:24:16]execute_cgi path=json_proto method=POST [11:24:16]POST find Content-Length [11:24:16]Host: 172.17.37.4:8080 [11:24:16]Content-Length: 787 [11:24:16]Content-Type: application/json [11:24:16] [11:24:16]POST finish read [11:24:16]Found Content-Length = 787 [11:24:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3607596", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:16]execute_script... [11:24:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3607596", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:16]POST & json_proto [11:24:16]process_json_proto [11:24:16]json parsed OK: [11:24:16]protocol is kg_v1.0 [11:24:16]action value=close_receipt [11:24:16]process_action close_receipt [11:24:16]cmd_close_receipt [11:24:16]MH_GetDate [11:24:16]Write to MH i2c: F0 00 00 96 51 D6 [11:24:16]Write i2c OK [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: F0 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: F0 09 00 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: F0 09 00 96 51 00 EB AF 45 67 B8 5A 43 67 E1 [11:24:16]GetLastDocTimeStamp 1732620051 [11:24:16]current date 1732620267 [11:24:16]FM_GetShiftState [11:24:16]SAM_PROTO_GetShiftState [11:24:16]wFMCommunicate request_size=4 [11:24:16]MH_SAM_APDU [11:24:16]CAPDU: 80 13 01 00 [11:24:16]Write to MH i2c: E2 08 00 97 51 80 13 01 00 00 00 00 00 65 [11:24:16]Write i2c OK [11:24:16]MH_I2C_Read... [11:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:16]Read from MH i2c: E2 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: E2 0E 00 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: E2 0E 00 97 51 00 09 00 01 98 11 45 67 00 00 00 00 90 00 C6 [11:24:16]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:24:16]wFMCommunicate OK [11:24:16]SAM_PROTO_GetShiftState done [11:24:16]FM_GetShiftState done [11:24:16]opened in 1732579736 [11:24:16]opened+sec_in_day 1732666136 [11:24:16]quantity*price = 0 [11:24:16]sum+1 = 1 [11:24:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 36 26.11.2024 11:24 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Партнер нефть 3607596 ФМ: 0000000000874881 ФД: 123182 ФПД: 116843684584558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T112427&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123182&fm=116843684584558&tin=02508201610067®Number=0000000000092681&sum=0 [11:24:17]StoreToDocumentArchive [11:24:17]shift 557 fd 123182 [11:24:17]save to /storage/0557/doc_00123182 [11:24:17]save last doc name /storage/0557/doc_00123182 to /storage/kkm_last_doc_name [11:24:17]save OK [11:24:17]Clear old archive folders... [11:24:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:24:17]tlvbuf is 01F8F2F0 [11:24:17]SAM_PROTO_ClearQueue [11:24:17]wFMCommunicate request_size=4 [11:24:17]MH_SAM_APDU [11:24:17]CAPDU: 80 09 00 00 [11:24:17]Write to MH i2c: E2 08 00 A4 51 80 09 00 00 00 00 00 00 67 [11:24:17]Write i2c OK [11:24:17]MH_I2C_Read... [11:24:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:17]Read from MH i2c: E2 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: E2 03 00 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: E2 03 00 A4 51 00 90 00 69 [11:24:17]RAPDU: 90 00 [11:24:17]wFMCommunicate OK [11:24:17]SAM_PROTO_ClearQueue done [11:24:17]KKMCreateOFDPacket [11:24:17]OFDProtocolAddRootSTLVToBuf [11:24:17]FM_MakeSignedData [11:24:17]FM_MakeSignedData [11:24:17]SAM_PROTO_SignData [11:24:17]wFMCommunicate request_size=4 [11:24:17]MH_SAM_APDU [11:24:17]CAPDU: 80 0D 01 02 [11:24:17]Write to MH i2c: E2 08 00 A5 51 80 0D 01 02 00 00 00 00 6F [11:24:17]Write i2c OK [11:24:17]MH_I2C_Read... [11:24:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:18]Read from MH i2c: E2 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 03 00 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 03 00 A5 51 00 90 00 6A [11:24:18]RAPDU: 90 00 [11:24:18]wFMCommunicate OK [11:24:18]wFMCommunicate request_size=255 [11:24:18]MH_SAM_APDU [11:24:18]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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 EB AF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2E E1 01 00 35 04 06 00 [11:24:18]Write to MH i2c: E2 02 01 A6 51 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 EB AF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2E E1 01 00 35 04 06 00 00 00 89 [11:24:18]Write i2c OK [11:24:18]MH_I2C_Read... [11:24:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:18]Read from MH i2c: E2 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 03 00 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 03 00 A6 51 00 90 00 6B [11:24:18]RAPDU: 90 00 [11:24:18]wFMCommunicate OK [11:24:18]wFMCommunicate request_size=11 [11:24:18]MH_SAM_APDU [11:24:18]CAPDU: 80 0D 02 02 06 6A 44 CA 50 5C 6E [11:24:18]Write to MH i2c: E2 0E 00 A7 51 80 0D 02 02 06 00 6A 44 CA 50 5C 6E 00 00 10 [11:24:18]Write i2c OK [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 [11:24:18]MH_I2C_Read... [11:24:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:18]Read from MH i2c: E2 03 00 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 03 00 A7 51 00 90 00 6C [11:24:18]RAPDU: 90 00 [11:24:18]wFMCommunicate OK [11:24:18]wFMCommunicate request_size=4 [11:24:18]MH_SAM_APDU [11:24:18]CAPDU: 80 0D 03 02 [11:24:18]Write to MH i2c: E2 08 00 A8 51 80 0D 03 02 00 00 00 00 74 [11:24:18]Write i2c OK [11:24:18]MH_I2C_Read... [11:24:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:18]Read from MH i2c: E2 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 0B 00 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 0B 00 A8 51 00 C1 54 0F 24 54 D5 A3 2F 90 00 B8 [11:24:18]RAPDU: C1 54 0F 24 54 D5 A3 2F 90 00 [11:24:18]wFMCommunicate OK [11:24:18]SAM_PROTO_SignData done [11:24:18]FM_MakeSignedData done [11:24:18]CreateOFDProtocolMessage [11:24:18]wFMCommunicate request_size=4 [11:24:18]MH_SAM_APDU [11:24:18]CAPDU: 80 11 00 00 [11:24:18]Write to MH i2c: E2 08 00 A9 51 80 11 00 00 00 00 00 00 74 [11:24:18]Write i2c OK [11:24:18]MH_I2C_Read... [11:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:18]Read from MH i2c: E2 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 17 00 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 17 00 A9 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CB [11:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:24:18]wFMCommunicate OK [11:24:18]CreateOFDProtocolMessage done [11:24:18]OFDSenderStorePacket 123182 [11:24:18]StoreOFDPacket docnum=123182 [11:24:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 C5 5B 08 01 14 4E 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 EB AF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2E E1 01 00 35 04 06 00 6A 44 CA 50 5C 6E C1 54 0F 24 54 D5 A3 2F [11:24:18]CheckFolder [11:24:18]dirname=/storage/ofd_packets [11:24:18]CheckFolder done [11:24:18]ProducePacketName [11:24:18]name=ofd_packets/00123182 [11:24:18]NVStorageSaveData ofd_packets/00123182 [11:24:18]File name is /storage/ofd_packets/00123182 [11:24:18]Write 302 bytes [11:24:18]NVStorageSaveData done [11:24:18]OFDSenderStorePacket done [11:24:18]KKMCreateOFDPacket done [11:24:18]NVStorageSaveData kkm_last_timestamp [11:24:18]File name is /storage/kkm_last_timestamp [11:24:18]Write 4 bytes [11:24:18]NVStorageSaveData done [11:24:18]ExternCall_PrintAddStr [11:24:18]wPrintStart [11:24:18]Write to MH i2c: 01 00 00 AA 51 FB [11:24:18]Write i2c OK [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: 01 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: 01 07 00 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: 01 07 00 AA 51 00 00 00 00 00 FF 0F 10 [11:24:18]RasterBufferAndPrint [11:24:18]line Счет N : (1)718016 [11:24:18]line ИНН: 02508201610067 [11:24:18]line Контрольно-Кассовый Чек [11:24:18]line ПРОДАЖА [11:24:18]line ТРК (МРК, ГНК) : 5 [11:24:18]line Товар: 2710194210 [11:24:18]line ДТ(л)-К-5 [11:24:18]line 100.000 * 0.00 [11:24:18]line = 0.00 [11:24:18]line НДС 12% НСП 1% [11:24:18]line > о реализуемом товаре [11:24:18]line ИТОГО: 0.00 [11:24:18]line НСП 1% : 0.00 [11:24:18]line НДС 12% : 0.00 [11:24:18]line Наличными: 0.00 [11:24:18]line Безнал.: 0.00 [11:24:18]line Место: АЗС № 64 "Партнер Нефть" [11:24:18]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:24:18]line СНО: Общий режим [11:24:18]line Чек 36 26.11.2024 11:24 [11:24:18]line Смена: 557 ФФД: 1.0 [11:24:18]line ЗНМ: 0300000033 [11:24:18]line РНМ: 0000000000092681 [11:24:18]line Версия ККМ: 001 [11:24:18]line Талоны: Партнер нефть [11:24:18]line 3607596 [11:24:18]line ФМ: 0000000000874881 [11:24:18]line ФД: 123182 [11:24:18]line ФПД: 116843684584558 [11:24:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T112427&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123182&fm=116843684584558&tin=02508201610067®Number=0000000000092681&sum=0 [11:24:18]written 0, free lines is 4095 [11:24:18]OFD Sender: Processing packet 123182 [packets to send 7, broken 6] [11:24:18]ProducePacketName [11:24:18]name=ofd_packets/00123182 [11:24:18]OFD Sender: To server: pG, [11:24:18]CommunicateWithHost lk.salyk.kg:30040 [11:24:18]ConnectInit lk.salyk.kg [11:24:18]Connected sock=11 [11:24:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 C5 5B 08 01 14 4E 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 EB AF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2E E1 01 00 35 04 06 00 6A 44 CA 50 5C 6E C1 54 0F 24 54 D5 A3 2F [11:24:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 6E FB 47 00 42 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2E E1 01 00 F4 03 04 00 AD 5B 45 67 B6 04 01 00 00 CC B7 D3 61 E0 5F E4 1C [11:24:18]CommunicateWithHost err = 0 [11:24:18]CheckOFDResponse [11:24:18]1017 (14) - 77093643461234 [11:24:18]1041 (16) - 0000000000874881 [11:24:18]1040 (4) - 123182 [11:24:18]1012 (4) - 26.11.2024 05:25 [11:24:18]1206 (1) - 0 [11:24:18]OFD Sender: Remove packet 123182 [11:24:18]ProducePacketName [11:24:18]name=ofd_packets/00123182 [11:24:18]NVStorageDeleteData [11:24:18]Write to MH i2c: 01 00 00 D4 51 25 [11:24:18]Write i2c OK [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: 01 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: 01 07 00 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: 01 07 00 D4 51 00 00 00 00 00 67 0C 9F [11:24:18]RasterBufferAndPrint [11:24:18]line [11:24:18]line [11:24:18]line [11:24:18]line [11:24:18]line [11:24:18]written 0, free lines is 3178 [11:24:18]MH_Cut [11:24:18]Write to MH i2c: D1 01 00 DB 51 01 FE [11:24:18]Write i2c OK [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: D1 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: D1 01 00 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: D1 01 00 DB 51 00 FD [11:24:18]Write to MH i2c: 01 00 00 DC 51 2D [11:24:18]Write i2c OK [11:24:18]MH_I2C_Read... [11:24:19]OFD Sender: No OFD packet to send [11:24:20]*** Cut start [11:24:20]*** Partial cut [11:24:20]*** CUTSNS_PIN = 1 [11:24:20]*** CUTSNS_PIN = 0 [11:24:20]*** Brake cut motor [11:24:20]Read from MH i2c: 01 [11:24:20]MH_I2C_Read... [11:24:20]*** Stop cut motor [11:24:20]*** Cut end [11:24:20]Read from MH i2c: 01 07 00 [11:24:20]MH_I2C_Read... [11:24:20]Read from MH i2c: 01 07 00 DC 51 00 00 00 00 00 FF 0F 42 [11:24:20]process_action close_receipt done [11:24:20]requested_data is exist [11:24:20]produce_requested_data [11:24:20]requested_item fm.sn is exist - process it [11:24:20]wFMCommunicate request_size=4 [11:24:20]MH_SAM_APDU [11:24:20]CAPDU: 80 11 00 00 [11:24:20]Write to MH i2c: E2 08 00 DD 51 80 11 00 00 00 00 00 00 A8 [11:24:20]Write i2c OK [11:24:20]MH_I2C_Read... [11:24:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:20]Read from MH i2c: E2 [11:24:20]MH_I2C_Read... [11:24:20]Read from MH i2c: E2 17 00 [11:24:20]MH_I2C_Read... [11:24:20]Read from MH i2c: E2 17 00 DD 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FF [11:24:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:24:20]wFMCommunicate OK [11:24:20]requested_item fd.num is exist - process it [11:24:20]SAM_PROTO_GetFieldsCounters [11:24:20]wFMCommunicate request_size=4 [11:24:20]MH_SAM_APDU [11:24:20]CAPDU: 80 13 00 00 [11:24:20]Write to MH i2c: E2 08 00 DE 51 80 13 00 00 00 00 00 00 AB [11:24:20]Write i2c OK [11:24:20]MH_I2C_Read... [11:24:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:21]Read from MH i2c: E2 [11:24:21]MH_I2C_Read... [11:24:21]Read from MH i2c: E2 62 00 [11:24:21]MH_I2C_Read... [11:24:21]Read from MH i2c: E2 62 00 DE 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 2E E1 01 00 0E 04 04 00 2D 02 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 7C [11:24:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 2E E1 01 00 0E 04 04 00 2D 02 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 [11:24:21]wFMCommunicate OK [11:24:21]SAM_PROTO_GetFieldsCounters done [11:24:21]requested_item shift.num is exist - process it [11:24:21]requested_item shift.opened is exist - process it [11:24:21]req_shift_opened [11:24:21]FM_GetShiftState [11:24:21]SAM_PROTO_GetShiftState [11:24:21]wFMCommunicate request_size=4 [11:24:21]MH_SAM_APDU [11:24:21]CAPDU: 80 13 01 00 [11:24:21]Write to MH i2c: E2 08 00 DF 51 80 13 01 00 00 00 00 00 AD [11:24:21]Write i2c OK [11:24:21]MH_I2C_Read... [11:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:21]Read from MH i2c: E2 [11:24:21]MH_I2C_Read... [11:24:21]Read from MH i2c: E2 0E 00 [11:24:21]MH_I2C_Read... [11:24:21]Read from MH i2c: E2 0E 00 DF 51 00 09 00 01 98 11 45 67 00 00 00 00 90 00 0E [11:24:21]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:24:21]wFMCommunicate OK [11:24:21]SAM_PROTO_GetShiftState done [11:24:21]FM_GetShiftState done [11:24:21]req_shift_opened done [11:24:21]requested_item shift.open_date is exist - process it [11:24:21]req_shift_open_date [11:24:21]req_shift_open_date done [11:24:21]produce_requested_data done [11:24:21]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123182,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [11:24:21]process_action_free close_receipt [11:24:21]json_value_free [11:24:21]json_value_free done [11:24:21]process_json_proto returns [11:24:21]Send response to host [11:24:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123182,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [11:24:21]free response buf [11:24:21]execute_script done [11:24:21]execute_script returns [11:24:21]free content buf [11:24:21]Sock 7.Close socket [11:24:21]Sock 7.Thread stoped [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:57]accept exits with 9 [11:24:57]New connection [11:24:57]New thread 3066580324 created [11:24:57]Thread 3066723684 joined [11:24:57]Waiting for new connection... [11:24:57] Sock 9.Parse request [11:24:57]Sock 9.Check first char [11:24:57]Sock 9.First char is OK [11:24:57]request: POST /json_proto HTTP/1.0 [11:24:57]Method: POST [11:24:57]URL: /json_proto [11:24:57]Method is POST - this is cgi request [11:24:57]url: /json_proto [11:24:57]query_string will be loaded in cgi processing [11:24:57]execute_cgi json_proto POST (null) [11:24:57]execute_cgi path=json_proto method=POST [11:24:57]POST find Content-Length [11:24:57]Host: 172.17.37.4:8080 [11:24:57]Content-Length: 681 [11:24:57]Content-Type: application/json [11:24:57] [11:24:57]POST finish read [11:24:57]Found Content-Length = 681 [11:24:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 6.680, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:57]execute_script... [11:24:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 6.680, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:57]POST & json_proto [11:24:57]process_json_proto [11:24:57]json parsed OK: [11:24:57]protocol is kg_v1.0 [11:24:57]action value=close_receipt [11:24:57]process_action close_receipt [11:24:57]cmd_close_receipt [11:24:57]MH_GetDate [11:24:57]Write to MH i2c: F0 00 00 E0 51 20 [11:24:57]Write i2c OK [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: F0 [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: F0 09 00 [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: F0 09 00 E0 51 00 14 B0 45 67 B8 5A 43 67 55 [11:24:57]GetLastDocTimeStamp 1732620267 [11:24:57]current date 1732620308 [11:24:57]FM_GetShiftState [11:24:57]SAM_PROTO_GetShiftState [11:24:57]wFMCommunicate request_size=4 [11:24:57]MH_SAM_APDU [11:24:57]CAPDU: 80 13 01 00 [11:24:57]Write to MH i2c: E2 08 00 E1 51 80 13 01 00 00 00 00 00 AF [11:24:57]Write i2c OK [11:24:57]MH_I2C_Read... [11:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:57]Read from MH i2c: E2 [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: E2 0E 00 [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: E2 0E 00 E1 51 00 09 00 01 98 11 45 67 00 00 00 00 90 00 10 [11:24:57]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:24:57]wFMCommunicate OK [11:24:57]SAM_PROTO_GetShiftState done [11:24:57]FM_GetShiftState done [11:24:57]opened in 1732579736 [11:24:57]opened+sec_in_day 1732666136 [11:24:57]quantity*price = 50033 [11:24:57]sum+1 = 50034 [11:24:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 37 26.11.2024 11:25 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123183 ФПД: 238236996167871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T112508&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123183&fm=238236996167871&tin=02508201610067®Number=0000000000092681&sum=50000 [11:24:58]StoreToDocumentArchive [11:24:58]shift 557 fd 123183 [11:24:58]save to /storage/0557/doc_00123183 [11:24:58]save last doc name /storage/0557/doc_00123183 to /storage/kkm_last_doc_name [11:24:58]save OK [11:24:58]Clear old archive folders... [11:24:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:24:58]tlvbuf is 01F33DB0 [11:24:58]SAM_PROTO_ClearQueue [11:24:58]wFMCommunicate request_size=4 [11:24:58]MH_SAM_APDU [11:24:58]CAPDU: 80 09 00 00 [11:24:58]Write to MH i2c: E2 08 00 EE 51 80 09 00 00 00 00 00 00 B1 [11:24:58]Write i2c OK [11:24:58]MH_I2C_Read... [11:24:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:58]Read from MH i2c: E2 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 03 00 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 03 00 EE 51 00 90 00 B3 [11:24:58]RAPDU: 90 00 [11:24:58]wFMCommunicate OK [11:24:58]SAM_PROTO_ClearQueue done [11:24:58]KKMCreateOFDPacket [11:24:58]OFDProtocolAddRootSTLVToBuf [11:24:58]FM_MakeSignedData [11:24:58]FM_MakeSignedData [11:24:58]SAM_PROTO_SignData [11:24:58]wFMCommunicate request_size=4 [11:24:58]MH_SAM_APDU [11:24:58]CAPDU: 80 0D 01 02 [11:24:58]Write to MH i2c: E2 08 00 EF 51 80 0D 01 02 00 00 00 00 B9 [11:24:58]Write i2c OK [11:24:58]MH_I2C_Read... [11:24:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:58]Read from MH i2c: E2 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 03 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 03 00 EF 51 00 90 00 B4 [11:24:59]RAPDU: 90 00 [11:24:59]wFMCommunicate OK [11:24:59]wFMCommunicate request_size=255 [11:24:59]MH_SAM_APDU [11:24:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 14 B0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2F E1 01 00 35 04 06 00 [11:24:59]Write to MH i2c: E2 02 01 F0 51 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 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 14 B0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2F E1 01 00 35 04 06 00 00 00 54 [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:59]Read from MH i2c: E2 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 03 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 03 00 F0 51 00 90 00 B5 [11:24:59]RAPDU: 90 00 [11:24:59]wFMCommunicate OK [11:24:59]wFMCommunicate request_size=11 [11:24:59]MH_SAM_APDU [11:24:59]CAPDU: 80 0D 02 02 06 D8 AC DF 87 68 BF [11:24:59]Write to MH i2c: E2 0E 00 F1 51 80 0D 02 02 06 00 D8 AC DF 87 68 BF 00 00 D9 [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:59]Read from MH i2c: E2 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 03 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 03 00 F1 51 00 90 00 B6 [11:24:59]RAPDU: 90 00 [11:24:59]wFMCommunicate OK [11:24:59]wFMCommunicate request_size=4 [11:24:59]MH_SAM_APDU [11:24:59]CAPDU: 80 0D 03 02 [11:24:59]Write to MH i2c: E2 08 00 F2 51 80 0D 03 02 00 00 00 00 BE [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]OFD Sender: No OFD packet to send [11:24:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:59]Read from MH i2c: E2 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 0B 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 0B 00 F2 51 00 A6 A5 59 54 45 D2 C3 A0 90 00 31 [11:24:59]RAPDU: A6 A5 59 54 45 D2 C3 A0 90 00 [11:24:59]wFMCommunicate OK [11:24:59]SAM_PROTO_SignData done [11:24:59]FM_MakeSignedData done [11:24:59]CreateOFDProtocolMessage [11:24:59]wFMCommunicate request_size=4 [11:24:59]MH_SAM_APDU [11:24:59]CAPDU: 80 11 00 00 [11:24:59]Write to MH i2c: E2 08 00 F3 51 80 11 00 00 00 00 00 00 BE [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:59]Read from MH i2c: E2 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 17 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 17 00 F3 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 15 [11:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:24:59]wFMCommunicate OK [11:24:59]CreateOFDProtocolMessage done [11:24:59]OFDSenderStorePacket 123183 [11:24:59]StoreOFDPacket docnum=123183 [11:24:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 53 46 08 01 56 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 14 B0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2F E1 01 00 35 04 06 00 D8 AC DF 87 68 BF A6 A5 59 54 45 D2 C3 A0 [11:24:59]CheckFolder [11:24:59]dirname=/storage/ofd_packets [11:24:59]CheckFolder done [11:24:59]ProducePacketName [11:24:59]name=ofd_packets/00123183 [11:24:59]NVStorageSaveData ofd_packets/00123183 [11:24:59]File name is /storage/ofd_packets/00123183 [11:24:59]Write 302 bytes [11:24:59]NVStorageSaveData done [11:24:59]OFDSenderStorePacket done [11:24:59]KKMCreateOFDPacket done [11:24:59]NVStorageSaveData kkm_last_timestamp [11:24:59]File name is /storage/kkm_last_timestamp [11:24:59]Write 4 bytes [11:24:59]NVStorageSaveData done [11:24:59]ExternCall_PrintAddStr [11:24:59]wPrintStart [11:24:59]Write to MH i2c: 01 00 00 F4 51 45 [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: 01 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: 01 07 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: 01 07 00 F4 51 00 00 00 00 00 FF 0F 5A [11:24:59]RasterBufferAndPrint [11:24:59]line Счет N : (1)718018 [11:24:59]line ИНН: 02508201610067 [11:24:59]line Контрольно-Кассовый Чек [11:24:59]line ПРОДАЖА [11:24:59]line ТРК (МРК, ГНК) : 6 [11:24:59]line Товар: 2710194210 [11:24:59]line ДТ(л)-К-5 [11:24:59]line 6.680 * 74.90 [11:24:59]line = 500.33 [11:24:59]line НДС 12% НСП 1% [11:24:59]line > о реализуемом товаре [11:24:59]line ОКРУГЛЕНИЕ: -0.33 [11:24:59]line ИТОГО: 500.00 [11:24:59]line Внесено: 500.00 [11:24:59]line СДАЧА: 0.00 [11:24:59]line НСП 1% : 4.43 [11:24:59]line НДС 12% : 53.13 [11:24:59]line Наличными: 500.00 [11:24:59]line Безнал.: 0.00 [11:24:59]line Место: АЗС № 64 "Партнер Нефть" [11:24:59]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:24:59]line СНО: Общий режим [11:24:59]line Чек 37 26.11.2024 11:25 [11:24:59]line Смена: 557 ФФД: 1.0 [11:24:59]line ЗНМ: 0300000033 [11:24:59]line РНМ: 0000000000092681 [11:24:59]line Версия ККМ: 001 [11:24:59]line ФМ: 0000000000874881 [11:24:59]line ФД: 123183 [11:24:59]line ФПД: 238236996167871 [11:24:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T112508&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123183&fm=238236996167871&tin=02508201610067®Number=0000000000092681&sum=50000 [11:24:59]OFD Sender: Processing packet 123183 [packets to send 7, broken 6] [11:24:59]ProducePacketName [11:24:59]name=ofd_packets/00123183 [11:24:59]OFD Sender: To server: pG, [11:24:59]CommunicateWithHost lk.salyk.kg:30040 [11:24:59]ConnectInit lk.salyk.kg [11:24:59]written 0, free lines is 4095 [11:24:59]Connected sock=10 [11:24:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 53 46 08 01 56 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 14 B0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2F E1 01 00 35 04 06 00 D8 AC DF 87 68 BF A6 A5 59 54 45 D2 C3 A0 [11:25:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 40 C8 47 00 63 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 2F E1 01 00 F4 03 04 00 D6 5B 45 67 B6 04 01 00 00 F0 B5 0B 8B AD CC C3 25 [11:25:00]CommunicateWithHost err = 0 [11:25:00]CheckOFDResponse [11:25:00]1017 (14) - 77093643461234 [11:25:00]1041 (16) - 0000000000874881 [11:25:00]1040 (4) - 123183 [11:25:00]1012 (4) - 26.11.2024 05:25 [11:25:00]1206 (1) - 0 [11:25:00]OFD Sender: Remove packet 123183 [11:25:00]ProducePacketName [11:25:00]name=ofd_packets/00123183 [11:25:00]NVStorageDeleteData [11:25:00]Write to MH i2c: 01 00 00 1F 52 71 [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: 01 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: 01 07 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: 01 07 00 1F 52 00 00 00 00 00 52 0C D6 [11:25:00]RasterBufferAndPrint [11:25:00]line [11:25:00]line [11:25:00]line [11:25:00]line [11:25:00]line [11:25:00]written 0, free lines is 3159 [11:25:00]MH_Cut [11:25:00]Write to MH i2c: D1 01 00 26 52 01 4A [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: D1 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: D1 01 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: D1 01 00 26 52 00 49 [11:25:00]Write to MH i2c: 01 00 00 27 52 79 [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]OFD Sender: No OFD packet to send [11:25:01]*** Cut start [11:25:01]*** Partial cut [11:25:01]*** CUTSNS_PIN = 1 [11:25:01]*** CUTSNS_PIN = 0 [11:25:01]*** Brake cut motor [11:25:02]Read from MH i2c: 01 [11:25:02]MH_I2C_Read... [11:25:02]*** Stop cut motor [11:25:02]*** Cut end [11:25:02]Read from MH i2c: 01 07 00 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: 01 07 00 27 52 00 00 00 00 00 FF 0F 8E [11:25:02]process_action close_receipt done [11:25:02]requested_data is exist [11:25:02]produce_requested_data [11:25:02]requested_item fm.sn is exist - process it [11:25:02]wFMCommunicate request_size=4 [11:25:02]MH_SAM_APDU [11:25:02]CAPDU: 80 11 00 00 [11:25:02]Write to MH i2c: E2 08 00 28 52 80 11 00 00 00 00 00 00 F4 [11:25:02]Write i2c OK [11:25:02]MH_I2C_Read... [11:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:02]Read from MH i2c: E2 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 17 00 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 17 00 28 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 4B [11:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:25:02]wFMCommunicate OK [11:25:02]requested_item fd.num is exist - process it [11:25:02]SAM_PROTO_GetFieldsCounters [11:25:02]wFMCommunicate request_size=4 [11:25:02]MH_SAM_APDU [11:25:02]CAPDU: 80 13 00 00 [11:25:02]Write to MH i2c: E2 08 00 29 52 80 13 00 00 00 00 00 00 F7 [11:25:02]Write i2c OK [11:25:02]MH_I2C_Read... [11:25:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:02]Read from MH i2c: E2 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 62 00 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 62 00 29 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 2F E1 01 00 0E 04 04 00 2D 02 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 CC [11:25:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 2F E1 01 00 0E 04 04 00 2D 02 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 [11:25:02]wFMCommunicate OK [11:25:02]SAM_PROTO_GetFieldsCounters done [11:25:02]requested_item shift.num is exist - process it [11:25:02]requested_item shift.opened is exist - process it [11:25:02]req_shift_opened [11:25:02]FM_GetShiftState [11:25:02]SAM_PROTO_GetShiftState [11:25:02]wFMCommunicate request_size=4 [11:25:02]MH_SAM_APDU [11:25:02]CAPDU: 80 13 01 00 [11:25:02]Write to MH i2c: E2 08 00 2A 52 80 13 01 00 00 00 00 00 F9 [11:25:02]Write i2c OK [11:25:02]MH_I2C_Read... [11:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:02]Read from MH i2c: E2 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 0E 00 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 0E 00 2A 52 00 09 00 01 98 11 45 67 00 00 00 00 90 00 5A [11:25:02]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:25:02]wFMCommunicate OK [11:25:02]SAM_PROTO_GetShiftState done [11:25:02]FM_GetShiftState done [11:25:02]req_shift_opened done [11:25:02]requested_item shift.open_date is exist - process it [11:25:02]req_shift_open_date [11:25:02]req_shift_open_date done [11:25:02]produce_requested_data done [11:25:02]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123183,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [11:25:02]process_action_free close_receipt [11:25:02]json_value_free [11:25:02]json_value_free done [11:25:02]process_json_proto returns [11:25:02]Send response to host [11:25:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123183,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [11:25:02]free response buf [11:25:02]execute_script done [11:25:02]execute_script returns [11:25:02]free content buf [11:25:02]Sock 9.Close socket [11:25:02]Sock 9.Thread stoped [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:39]accept exits with 7 [11:27:39]New connection [11:27:39]New thread 3066723684 created [11:27:39]Thread 3066580324 joined [11:27:39]Waiting for new connection... [11:27:39] Sock 7.Parse request [11:27:39]Sock 7.Check first char [11:27:39]Sock 7.First char is OK [11:27:39]request: POST /json_proto HTTP/1.0 [11:27:39]Method: POST [11:27:39]URL: /json_proto [11:27:39]Method is POST - this is cgi request [11:27:39]url: /json_proto [11:27:39]query_string will be loaded in cgi processing [11:27:39]execute_cgi json_proto POST (null) [11:27:39]execute_cgi path=json_proto method=POST [11:27:39]POST find Content-Length [11:27:39]Host: 172.17.37.4:8080 [11:27:39]Content-Length: 787 [11:27:39]Content-Type: application/json [11:27:39] [11:27:39]POST finish read [11:27:39]Found Content-Length = 787 [11:27:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3609341", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:39]execute_script... [11:27:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3609341", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:39]POST & json_proto [11:27:39]process_json_proto [11:27:39]json parsed OK: [11:27:39]protocol is kg_v1.0 [11:27:39]action value=close_receipt [11:27:39]process_action close_receipt [11:27:39]cmd_close_receipt [11:27:39]MH_GetDate [11:27:39]Write to MH i2c: F0 00 00 2B 52 6C [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: F0 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: F0 09 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: F0 09 00 2B 52 00 B5 B0 45 67 B8 5A 43 67 42 [11:27:39]GetLastDocTimeStamp 1732620308 [11:27:39]current date 1732620469 [11:27:39]FM_GetShiftState [11:27:39]SAM_PROTO_GetShiftState [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 13 01 00 [11:27:39]Write to MH i2c: E2 08 00 2C 52 80 13 01 00 00 00 00 00 FB [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 0E 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 0E 00 2C 52 00 09 00 01 98 11 45 67 00 00 00 00 90 00 5C [11:27:39]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:27:39]wFMCommunicate OK [11:27:39]SAM_PROTO_GetShiftState done [11:27:39]FM_GetShiftState done [11:27:39]opened in 1732579736 [11:27:39]opened+sec_in_day 1732666136 [11:27:39]quantity*price = 0 [11:27:39]sum+1 = 1 [11:27:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 38 26.11.2024 11:27 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Партнер нефть 3609341 ФМ: 0000000000874881 ФД: 123184 ФПД: 270745813881679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T112749&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123184&fm=270745813881679&tin=02508201610067®Number=0000000000092681&sum=0 [11:27:40]StoreToDocumentArchive [11:27:40]shift 557 fd 123184 [11:27:40]save to /storage/0557/doc_00123184 [11:27:40]save last doc name /storage/0557/doc_00123184 to /storage/kkm_last_doc_name [11:27:40]save OK [11:27:40]Clear old archive folders... [11:27:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:27:40]tlvbuf is B6F20230 [11:27:40]SAM_PROTO_ClearQueue [11:27:40]wFMCommunicate request_size=4 [11:27:40]MH_SAM_APDU [11:27:40]CAPDU: 80 09 00 00 [11:27:40]Write to MH i2c: E2 08 00 39 52 80 09 00 00 00 00 00 00 FD [11:27:40]Write i2c OK [11:27:40]MH_I2C_Read... [11:27:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:40]Read from MH i2c: E2 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: E2 03 00 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: E2 03 00 39 52 00 90 00 FF [11:27:40]RAPDU: 90 00 [11:27:40]wFMCommunicate OK [11:27:40]SAM_PROTO_ClearQueue done [11:27:40]KKMCreateOFDPacket [11:27:40]OFDProtocolAddRootSTLVToBuf [11:27:40]FM_MakeSignedData [11:27:40]FM_MakeSignedData [11:27:40]SAM_PROTO_SignData [11:27:40]wFMCommunicate request_size=4 [11:27:40]MH_SAM_APDU [11:27:40]CAPDU: 80 0D 01 02 [11:27:40]Write to MH i2c: E2 08 00 3A 52 80 0D 01 02 00 00 00 00 05 [11:27:40]Write i2c OK [11:27:40]MH_I2C_Read... [11:27:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:40]Read from MH i2c: E2 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: E2 03 00 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: E2 03 00 3A 52 00 90 00 00 [11:27:40]RAPDU: 90 00 [11:27:40]wFMCommunicate OK [11:27:40]wFMCommunicate request_size=255 [11:27:40]MH_SAM_APDU [11:27:40]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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 B5 B0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 30 E1 01 00 35 04 06 00 [11:27:40]Write to MH i2c: E2 02 01 3B 52 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 B5 B0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 30 E1 01 00 35 04 06 00 00 00 EE [11:27:40]Write i2c OK [11:27:40]MH_I2C_Read... [11:27:40]OFD Sender: No OFD packet to send [11:27:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:40]Read from MH i2c: E2 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: E2 03 00 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: E2 03 00 3B 52 00 90 00 01 [11:27:40]RAPDU: 90 00 [11:27:40]wFMCommunicate OK [11:27:40]wFMCommunicate request_size=11 [11:27:40]MH_SAM_APDU [11:27:40]CAPDU: 80 0D 02 02 06 F6 3D EC 0F 93 4F [11:27:40]Write to MH i2c: E2 0E 00 3C 52 80 0D 02 02 06 00 F6 3D EC 0F 93 4F 00 00 24 [11:27:40]Write i2c OK [11:27:40]MH_I2C_Read... [11:27:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:41]Read from MH i2c: E2 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 03 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 03 00 3C 52 00 90 00 02 [11:27:41]RAPDU: 90 00 [11:27:41]wFMCommunicate OK [11:27:41]wFMCommunicate request_size=4 [11:27:41]MH_SAM_APDU [11:27:41]CAPDU: 80 0D 03 02 [11:27:41]Write to MH i2c: E2 08 00 3D 52 80 0D 03 02 00 00 00 00 0A [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:41]Read from MH i2c: E2 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 0B 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 0B 00 3D 52 00 36 0A F1 BB EB 43 64 D5 90 00 5E [11:27:41]RAPDU: 36 0A F1 BB EB 43 64 D5 90 00 [11:27:41]wFMCommunicate OK [11:27:41]SAM_PROTO_SignData done [11:27:41]FM_MakeSignedData done [11:27:41]CreateOFDProtocolMessage [11:27:41]wFMCommunicate request_size=4 [11:27:41]MH_SAM_APDU [11:27:41]CAPDU: 80 11 00 00 [11:27:41]Write to MH i2c: E2 08 00 3E 52 80 11 00 00 00 00 00 00 0A [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:41]Read from MH i2c: E2 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 17 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 17 00 3E 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 61 [11:27:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:27:41]wFMCommunicate OK [11:27:41]CreateOFDProtocolMessage done [11:27:41]OFDSenderStorePacket 123184 [11:27:41]StoreOFDPacket docnum=123184 [11:27:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 20 05 08 01 45 AE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 B5 B0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 30 E1 01 00 35 04 06 00 F6 3D EC 0F 93 4F 36 0A F1 BB EB 43 64 D5 [11:27:41]CheckFolder [11:27:41]dirname=/storage/ofd_packets [11:27:41]CheckFolder done [11:27:41]ProducePacketName [11:27:41]name=ofd_packets/00123184 [11:27:41]NVStorageSaveData ofd_packets/00123184 [11:27:41]File name is /storage/ofd_packets/00123184 [11:27:41]Write 302 bytes [11:27:41]NVStorageSaveData done [11:27:41]OFDSenderStorePacket done [11:27:41]KKMCreateOFDPacket done [11:27:41]NVStorageSaveData kkm_last_timestamp [11:27:41]File name is /storage/kkm_last_timestamp [11:27:41]Write 4 bytes [11:27:41]NVStorageSaveData done [11:27:41]ExternCall_PrintAddStr [11:27:41]wPrintStart [11:27:41]Write to MH i2c: 01 00 00 3F 52 91 [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: 01 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: 01 07 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: 01 07 00 3F 52 00 00 00 00 00 FF 0F A6 [11:27:41]RasterBufferAndPrint [11:27:41]line Счет N : (1)718017 [11:27:41]line ИНН: 02508201610067 [11:27:41]line Контрольно-Кассовый Чек [11:27:41]line ПРОДАЖА [11:27:41]line ТРК (МРК, ГНК) : 5 [11:27:41]line Товар: 2710194210 [11:27:41]line ДТ(л)-К-5 [11:27:41]line 100.000 * 0.00 [11:27:41]line = 0.00 [11:27:41]line НДС 12% НСП 1% [11:27:41]line > о реализуемом товаре [11:27:41]line ИТОГО: 0.00 [11:27:41]line НСП 1% : 0.00 [11:27:41]line НДС 12% : 0.00 [11:27:41]line Наличными: 0.00 [11:27:41]line Безнал.: 0.00 [11:27:41]line Место: АЗС № 64 "Партнер Нефть" [11:27:41]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:27:41]line СНО: Общий режим [11:27:41]line Чек 38 26.11.2024 11:27 [11:27:41]line Смена: 557 ФФД: 1.0 [11:27:41]line ЗНМ: 0300000033 [11:27:41]line РНМ: 0000000000092681 [11:27:41]line Версия ККМ: 001 [11:27:41]line Талоны: Партнер нефть [11:27:41]line 3609341 [11:27:41]line ФМ: 0000000000874881 [11:27:41]line ФД: 123184 [11:27:41]line ФПД: 270745813881679 [11:27:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T112749&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123184&fm=270745813881679&tin=02508201610067®Number=0000000000092681&sum=0 [11:27:41]OFD Sender: Processing packet 123184 [packets to send 7, broken 6] [11:27:41]ProducePacketName [11:27:41]name=ofd_packets/00123184 [11:27:41]OFD Sender: To server: pG, [11:27:41]CommunicateWithHost lk.salyk.kg:30040 [11:27:41]ConnectInit lk.salyk.kg [11:27:41]written 0, free lines is 4095 [11:27:41]Connected sock=10 [11:27:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 20 05 08 01 45 AE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 B5 B0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 30 E1 01 00 35 04 06 00 F6 3D EC 0F 93 4F 36 0A F1 BB EB 43 64 D5 [11:27:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 65 1B 47 00 46 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 30 E1 01 00 F4 03 04 00 78 5C 45 67 B6 04 01 00 00 5C DB 28 5D B9 1E 1D C5 [11:27:41]CommunicateWithHost err = 0 [11:27:41]CheckOFDResponse [11:27:41]1017 (14) - 77093643461234 [11:27:41]1041 (16) - 0000000000874881 [11:27:41]1040 (4) - 123184 [11:27:41]1012 (4) - 26.11.2024 05:28 [11:27:41]1206 (1) - 0 [11:27:41]OFD Sender: Remove packet 123184 [11:27:41]ProducePacketName [11:27:41]name=ofd_packets/00123184 [11:27:41]NVStorageDeleteData [11:27:41]Write to MH i2c: 01 00 00 69 52 BB [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: 01 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: 01 07 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: 01 07 00 69 52 00 00 00 00 00 5C 0C 2A [11:27:41]RasterBufferAndPrint [11:27:41]line [11:27:41]line [11:27:41]line [11:27:41]line [11:27:41]line [11:27:41]written 0, free lines is 3169 [11:27:41]MH_Cut [11:27:41]Write to MH i2c: D1 01 00 70 52 01 94 [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: D1 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: D1 01 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: D1 01 00 70 52 00 93 [11:27:41]Write to MH i2c: 01 00 00 71 52 C3 [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:42]OFD Sender: No OFD packet to send [11:27:43]*** Cut start [11:27:43]*** Partial cut [11:27:43]*** CUTSNS_PIN = 1 [11:27:43]*** CUTSNS_PIN = 0 [11:27:43]*** Brake cut motor [11:27:43]Read from MH i2c: 01 [11:27:43]MH_I2C_Read... [11:27:43]*** Stop cut motor [11:27:43]*** Cut end [11:27:43]Read from MH i2c: 01 07 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: 01 07 00 71 52 00 00 00 00 00 FF 0F D8 [11:27:43]process_action close_receipt done [11:27:43]requested_data is exist [11:27:43]produce_requested_data [11:27:43]requested_item fm.sn is exist - process it [11:27:43]wFMCommunicate request_size=4 [11:27:43]MH_SAM_APDU [11:27:43]CAPDU: 80 11 00 00 [11:27:43]Write to MH i2c: E2 08 00 72 52 80 11 00 00 00 00 00 00 3E [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:43]Read from MH i2c: E2 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 17 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 17 00 72 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 95 [11:27:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:27:43]wFMCommunicate OK [11:27:43]requested_item fd.num is exist - process it [11:27:43]SAM_PROTO_GetFieldsCounters [11:27:43]wFMCommunicate request_size=4 [11:27:43]MH_SAM_APDU [11:27:43]CAPDU: 80 13 00 00 [11:27:43]Write to MH i2c: E2 08 00 73 52 80 13 00 00 00 00 00 00 41 [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:44]Read from MH i2c: E2 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 62 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 62 00 73 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 30 E1 01 00 0E 04 04 00 2D 02 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 1A [11:27:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 30 E1 01 00 0E 04 04 00 2D 02 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 [11:27:44]wFMCommunicate OK [11:27:44]SAM_PROTO_GetFieldsCounters done [11:27:44]requested_item shift.num is exist - process it [11:27:44]requested_item shift.opened is exist - process it [11:27:44]req_shift_opened [11:27:44]FM_GetShiftState [11:27:44]SAM_PROTO_GetShiftState [11:27:44]wFMCommunicate request_size=4 [11:27:44]MH_SAM_APDU [11:27:44]CAPDU: 80 13 01 00 [11:27:44]Write to MH i2c: E2 08 00 74 52 80 13 01 00 00 00 00 00 43 [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:44]Read from MH i2c: E2 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 0E 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 0E 00 74 52 00 09 00 01 98 11 45 67 00 00 00 00 90 00 A4 [11:27:44]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:27:44]wFMCommunicate OK [11:27:44]SAM_PROTO_GetShiftState done [11:27:44]FM_GetShiftState done [11:27:44]req_shift_opened done [11:27:44]requested_item shift.open_date is exist - process it [11:27:44]req_shift_open_date [11:27:44]req_shift_open_date done [11:27:44]produce_requested_data done [11:27:44]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123184,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [11:27:44]process_action_free close_receipt [11:27:44]json_value_free [11:27:44]json_value_free done [11:27:44]process_json_proto returns [11:27:44]Send response to host [11:27:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123184,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [11:27:44]free response buf [11:27:44]execute_script done [11:27:44]execute_script returns [11:27:44]free content buf [11:27:44]Sock 7.Close socket [11:27:44]Sock 7.Thread stoped [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:22]OFD Sender: No OFD packet to send [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [11:30:02]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:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:31]accept exits with 9 [11:31:31]New connection [11:31:31]New thread 3066580324 created [11:31:31]Thread 3066723684 joined [11:31:31]Waiting for new connection... [11:31:31] Sock 9.Parse request [11:31:31]Sock 9.Check first char [11:31:31]Sock 9.First char is OK [11:31:31]request: POST /json_proto HTTP/1.0 [11:31:31]Method: POST [11:31:31]URL: /json_proto [11:31:31]Method is POST - this is cgi request [11:31:31]url: /json_proto [11:31:31]query_string will be loaded in cgi processing [11:31:31]execute_cgi json_proto POST (null) [11:31:31]execute_cgi path=json_proto method=POST [11:31:31]POST find Content-Length [11:31:31]Host: 172.17.37.4:8080 [11:31:31]Content-Length: 677 [11:31:31]Content-Type: application/json [11:31:31] [11:31:31]POST finish read [11:31:31]Found Content-Length = 677 [11:31:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.230, "sum" : 150.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:31]execute_script... [11:31:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.230, "sum" : 150.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:31]POST & json_proto [11:31:31]process_json_proto [11:31:31]json parsed OK: [11:31:31]protocol is kg_v1.0 [11:31:31]action value=close_receipt [11:31:31]process_action close_receipt [11:31:31]cmd_close_receipt [11:31:31]MH_GetDate [11:31:31]Write to MH i2c: F0 00 00 75 52 B6 [11:31:31]Write i2c OK [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: F0 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: F0 09 00 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: F0 09 00 75 52 00 9D B1 45 67 B8 5A 43 67 75 [11:31:31]GetLastDocTimeStamp 1732620469 [11:31:31]current date 1732620701 [11:31:31]FM_GetShiftState [11:31:31]SAM_PROTO_GetShiftState [11:31:31]wFMCommunicate request_size=4 [11:31:31]MH_SAM_APDU [11:31:31]CAPDU: 80 13 01 00 [11:31:31]Write to MH i2c: E2 08 00 76 52 80 13 01 00 00 00 00 00 45 [11:31:31]Write i2c OK [11:31:31]MH_I2C_Read... [11:31:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:31]Read from MH i2c: E2 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: E2 0E 00 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: E2 0E 00 76 52 00 09 00 01 98 11 45 67 00 00 00 00 90 00 A6 [11:31:31]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:31:31]wFMCommunicate OK [11:31:31]SAM_PROTO_GetShiftState done [11:31:31]FM_GetShiftState done [11:31:31]opened in 1732579736 [11:31:31]opened+sec_in_day 1732666136 [11:31:31]quantity*price = 15030 [11:31:31]sum+1 = 15031 [11:31:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.96 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 39 26.11.2024 11:31 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123185 ФПД: 111363212621042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T113141&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123185&fm=111363212621042&tin=02508201610067®Number=0000000000092681&sum=15000 [11:31:32]StoreToDocumentArchive [11:31:32]shift 557 fd 123185 [11:31:32]save to /storage/0557/doc_00123185 [11:31:32]save last doc name /storage/0557/doc_00123185 to /storage/kkm_last_doc_name [11:31:32]save OK [11:31:32]Clear old archive folders... [11:31:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:31:32]tlvbuf is B6D70BB0 [11:31:32]SAM_PROTO_ClearQueue [11:31:32]wFMCommunicate request_size=4 [11:31:32]MH_SAM_APDU [11:31:32]CAPDU: 80 09 00 00 [11:31:32]Write to MH i2c: E2 08 00 83 52 80 09 00 00 00 00 00 00 47 [11:31:32]Write i2c OK [11:31:32]MH_I2C_Read... [11:31:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:32]Read from MH i2c: E2 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: E2 03 00 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: E2 03 00 83 52 00 90 00 49 [11:31:32]RAPDU: 90 00 [11:31:32]wFMCommunicate OK [11:31:32]SAM_PROTO_ClearQueue done [11:31:32]KKMCreateOFDPacket [11:31:32]OFDProtocolAddRootSTLVToBuf [11:31:32]FM_MakeSignedData [11:31:32]FM_MakeSignedData [11:31:32]SAM_PROTO_SignData [11:31:32]wFMCommunicate request_size=4 [11:31:32]MH_SAM_APDU [11:31:32]CAPDU: 80 0D 01 02 [11:31:32]Write to MH i2c: E2 08 00 84 52 80 0D 01 02 00 00 00 00 4F [11:31:32]Write i2c OK [11:31:32]MH_I2C_Read... [11:31:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:32]Read from MH i2c: E2 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: E2 03 00 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: E2 03 00 84 52 00 90 00 4A [11:31:32]RAPDU: 90 00 [11:31:32]wFMCommunicate OK [11:31:32]wFMCommunicate request_size=255 [11:31:32]MH_SAM_APDU [11:31:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B6 08 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 9D B1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 31 E1 01 00 35 04 06 00 65 [11:31:32]Write to MH i2c: E2 02 01 85 52 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 34 FF 03 08 00 03 B6 08 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 9D B1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 31 E1 01 00 35 04 06 00 65 00 00 AC [11:31:32]Write i2c OK [11:31:32]MH_I2C_Read... [11:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:33]Read from MH i2c: E2 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: E2 03 00 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: E2 03 00 85 52 00 90 00 4B [11:31:33]RAPDU: 90 00 [11:31:33]wFMCommunicate OK [11:31:33]wFMCommunicate request_size=10 [11:31:33]MH_SAM_APDU [11:31:33]CAPDU: 80 0D 02 02 05 48 C4 BA B4 F2 [11:31:33]Write to MH i2c: E2 0D 00 86 52 80 0D 02 02 05 00 48 C4 BA B4 F2 00 00 C8 [11:31:33]Write i2c OK [11:31:33]MH_I2C_Read... [11:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:33]Read from MH i2c: E2 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: E2 03 00 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: E2 03 00 86 52 00 90 00 4C [11:31:33]RAPDU: 90 00 [11:31:33]wFMCommunicate OK [11:31:33]wFMCommunicate request_size=4 [11:31:33]MH_SAM_APDU [11:31:33]CAPDU: 80 0D 03 02 [11:31:33]Write to MH i2c: E2 08 00 87 52 80 0D 03 02 00 00 00 00 54 [11:31:33]Write i2c OK [11:31:33]MH_I2C_Read... [11:31:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:33]Read from MH i2c: E2 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: E2 0B 00 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: E2 0B 00 87 52 00 31 2A AB 93 3D 96 09 D1 90 00 9B [11:31:33]RAPDU: 31 2A AB 93 3D 96 09 D1 90 00 [11:31:33]wFMCommunicate OK [11:31:33]SAM_PROTO_SignData done [11:31:33]FM_MakeSignedData done [11:31:33]CreateOFDProtocolMessage [11:31:33]wFMCommunicate request_size=4 [11:31:33]MH_SAM_APDU [11:31:33]CAPDU: 80 11 00 00 [11:31:33]Write to MH i2c: E2 08 00 88 52 80 11 00 00 00 00 00 00 54 [11:31:33]Write i2c OK [11:31:33]MH_I2C_Read... [11:31:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:33]Read from MH i2c: E2 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: E2 17 00 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: E2 17 00 88 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AB [11:31:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:31:33]wFMCommunicate OK [11:31:33]CreateOFDProtocolMessage done [11:31:33]OFDSenderStorePacket 123185 [11:31:33]StoreOFDPacket docnum=123185 [11:31:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 2E 77 07 01 13 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B6 08 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 9D B1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 31 E1 01 00 35 04 06 00 65 48 C4 BA B4 F2 31 2A AB 93 3D 96 09 D1 [11:31:33]CheckFolder [11:31:33]dirname=/storage/ofd_packets [11:31:33]CheckFolder done [11:31:33]ProducePacketName [11:31:33]name=ofd_packets/00123185 [11:31:33]NVStorageSaveData ofd_packets/00123185 [11:31:33]File name is /storage/ofd_packets/00123185 [11:31:33]Write 301 bytes [11:31:33]NVStorageSaveData done [11:31:33]OFDSenderStorePacket done [11:31:33]KKMCreateOFDPacket done [11:31:33]NVStorageSaveData kkm_last_timestamp [11:31:33]File name is /storage/kkm_last_timestamp [11:31:33]Write 4 bytes [11:31:33]NVStorageSaveData done [11:31:33]ExternCall_PrintAddStr [11:31:33]wPrintStart [11:31:33]Write to MH i2c: 01 00 00 89 52 DB [11:31:33]Write i2c OK [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: 01 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: 01 07 00 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: 01 07 00 89 52 00 00 00 00 00 FF 0F F0 [11:31:33]RasterBufferAndPrint [11:31:33]line Счет N : (1)718019 [11:31:33]line ИНН: 02508201610067 [11:31:33]line Контрольно-Кассовый Чек [11:31:33]line ПРОДАЖА [11:31:33]line ТРК (МРК, ГНК) : 22 [11:31:33]line Товар: 2710124130 [11:31:33]line Аи-92-К-4 [11:31:33]line 2.230 * 67.40 [11:31:33]line = 150.30 [11:31:33]line НДС 12% НСП 1% [11:31:33]line > о реализуемом товаре [11:31:33]line ОКРУГЛЕНИЕ: -0.30 [11:31:33]line ИТОГО: 150.00 [11:31:33]line Внесено: 150.00 [11:31:33]line СДАЧА: 0.00 [11:31:33]line НСП 1% : 1.33 [11:31:33]line НДС 12% : 15.96 [11:31:33]line Наличными: 150.00 [11:31:33]line Безнал.: 0.00 [11:31:33]line Место: АЗС № 64 "Партнер Нефть" [11:31:33]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:31:33]line СНО: Общий режим [11:31:33]line Чек 39 26.11.2024 11:31 [11:31:33]line Смена: 557 ФФД: 1.0 [11:31:33]line ЗНМ: 0300000033 [11:31:33]line РНМ: 0000000000092681 [11:31:33]line Версия ККМ: 001 [11:31:33]line ФМ: 0000000000874881 [11:31:33]line ФД: 123185 [11:31:33]line ФПД: 111363212621042 [11:31:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T113141&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123185&fm=111363212621042&tin=02508201610067®Number=0000000000092681&sum=15000 [11:31:33]OFD Sender: Processing packet 123185 [packets to send 7, broken 6] [11:31:33]ProducePacketName [11:31:33]name=ofd_packets/00123185 [11:31:33]OFD Sender: To server: pG, [11:31:33]CommunicateWithHost lk.salyk.kg:30040 [11:31:33]ConnectInit lk.salyk.kg [11:31:33]written 0, free lines is 4095 [11:31:33]Connected sock=10 [11:31:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 2E 77 07 01 13 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B6 08 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 9D B1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 31 E1 01 00 35 04 06 00 65 48 C4 BA B4 F2 31 2A AB 93 3D 96 09 D1 [11:31:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 F5 1B 47 00 BB 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 31 E1 01 00 F4 03 04 00 60 5D 45 67 B6 04 01 00 00 27 80 03 88 93 64 3B 58 [11:31:33]CommunicateWithHost err = 0 [11:31:33]CheckOFDResponse [11:31:33]1017 (14) - 77093643461234 [11:31:33]1041 (16) - 0000000000874881 [11:31:33]1040 (4) - 123185 [11:31:33]1012 (4) - 26.11.2024 05:32 [11:31:33]1206 (1) - 0 [11:31:33]OFD Sender: Remove packet 123185 [11:31:33]ProducePacketName [11:31:33]name=ofd_packets/00123185 [11:31:33]NVStorageDeleteData [11:31:33]Write to MH i2c: 01 00 00 B4 52 06 [11:31:33]Write i2c OK [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: 01 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: 01 07 00 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: 01 07 00 B4 52 00 00 00 00 00 3E 0C 57 [11:31:33]RasterBufferAndPrint [11:31:33]line [11:31:33]line [11:31:33]line [11:31:33]line [11:31:33]line [11:31:33]written 0, free lines is 3139 [11:31:33]MH_Cut [11:31:33]Write to MH i2c: D1 01 00 BB 52 01 DF [11:31:33]Write i2c OK [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: D1 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: D1 01 00 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: D1 01 00 BB 52 00 DE [11:31:33]Write to MH i2c: 01 00 00 BC 52 0E [11:31:33]Write i2c OK [11:31:33]MH_I2C_Read... [11:31:34]OFD Sender: No OFD packet to send [11:31:35]*** Cut start [11:31:35]*** Partial cut [11:31:35]*** CUTSNS_PIN = 1 [11:31:35]*** CUTSNS_PIN = 0 [11:31:35]*** Brake cut motor [11:31:35]Read from MH i2c: 01 [11:31:35]MH_I2C_Read... [11:31:35]*** Stop cut motor [11:31:35]*** Cut end [11:31:35]Read from MH i2c: 01 07 00 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: 01 07 00 BC 52 00 00 00 00 00 FF 0F 23 [11:31:35]process_action close_receipt done [11:31:35]requested_data is exist [11:31:35]produce_requested_data [11:31:35]requested_item fm.sn is exist - process it [11:31:35]wFMCommunicate request_size=4 [11:31:35]MH_SAM_APDU [11:31:35]CAPDU: 80 11 00 00 [11:31:35]Write to MH i2c: E2 08 00 BD 52 80 11 00 00 00 00 00 00 89 [11:31:35]Write i2c OK [11:31:35]MH_I2C_Read... [11:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:36]Read from MH i2c: E2 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 17 00 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 17 00 BD 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E0 [11:31:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:31:36]wFMCommunicate OK [11:31:36]requested_item fd.num is exist - process it [11:31:36]SAM_PROTO_GetFieldsCounters [11:31:36]wFMCommunicate request_size=4 [11:31:36]MH_SAM_APDU [11:31:36]CAPDU: 80 13 00 00 [11:31:36]Write to MH i2c: E2 08 00 BE 52 80 13 00 00 00 00 00 00 8C [11:31:36]Write i2c OK [11:31:36]MH_I2C_Read... [11:31:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:36]Read from MH i2c: E2 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 62 00 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 62 00 BE 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 31 E1 01 00 0E 04 04 00 2D 02 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 69 [11:31:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 31 E1 01 00 0E 04 04 00 2D 02 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 [11:31:36]wFMCommunicate OK [11:31:36]SAM_PROTO_GetFieldsCounters done [11:31:36]requested_item shift.num is exist - process it [11:31:36]requested_item shift.opened is exist - process it [11:31:36]req_shift_opened [11:31:36]FM_GetShiftState [11:31:36]SAM_PROTO_GetShiftState [11:31:36]wFMCommunicate request_size=4 [11:31:36]MH_SAM_APDU [11:31:36]CAPDU: 80 13 01 00 [11:31:36]Write to MH i2c: E2 08 00 BF 52 80 13 01 00 00 00 00 00 8E [11:31:36]Write i2c OK [11:31:36]MH_I2C_Read... [11:31:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:36]Read from MH i2c: E2 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 0E 00 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 0E 00 BF 52 00 09 00 01 98 11 45 67 00 00 00 00 90 00 EF [11:31:36]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:31:36]wFMCommunicate OK [11:31:36]SAM_PROTO_GetShiftState done [11:31:36]FM_GetShiftState done [11:31:36]req_shift_opened done [11:31:36]requested_item shift.open_date is exist - process it [11:31:36]req_shift_open_date [11:31:36]req_shift_open_date done [11:31:36]produce_requested_data done [11:31:36]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123185,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [11:31:36]process_action_free close_receipt [11:31:36]json_value_free [11:31:36]json_value_free done [11:31:36]process_json_proto returns [11:31:36]Send response to host [11:31:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123185,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [11:31:36]free response buf [11:31:36]execute_script done [11:31:36]execute_script returns [11:31:36]free content buf [11:31:36]Sock 9.Close socket [11:31:36]Sock 9.Thread stoped [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:16]accept exits with 7 [11:33:16]New connection [11:33:16]New thread 3066723684 created [11:33:16]Thread 3066580324 joined [11:33:16]Waiting for new connection... [11:33:16] Sock 7.Parse request [11:33:16]Sock 7.Check first char [11:33:16]Sock 7.First char is OK [11:33:16]request: POST /json_proto HTTP/1.0 [11:33:16]Method: POST [11:33:16]URL: /json_proto [11:33:16]Method is POST - this is cgi request [11:33:16]url: /json_proto [11:33:16]query_string will be loaded in cgi processing [11:33:16]execute_cgi json_proto POST (null) [11:33:16]execute_cgi path=json_proto method=POST [11:33:16]POST find Content-Length [11:33:16]Host: 172.17.37.4:8080 [11:33:16]Content-Length: 800 [11:33:16]Content-Type: application/json [11:33:16] [11:33:16]POST finish read [11:33:16]Found Content-Length = 800 [11:33:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.000, "sum" : 337.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" : 337.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:16]execute_script... [11:33:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.000, "sum" : 337.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" : 337.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:16]POST & json_proto [11:33:16]process_json_proto [11:33:16]json parsed OK: [11:33:16]protocol is kg_v1.0 [11:33:16]action value=close_receipt [11:33:16]process_action close_receipt [11:33:16]cmd_close_receipt [11:33:16]MH_GetDate [11:33:16]Write to MH i2c: F0 00 00 C0 52 01 [11:33:16]Write i2c OK [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: F0 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: F0 09 00 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: F0 09 00 C0 52 00 06 B2 45 67 B8 5A 43 67 2A [11:33:16]GetLastDocTimeStamp 1732620701 [11:33:16]current date 1732620806 [11:33:16]FM_GetShiftState [11:33:16]SAM_PROTO_GetShiftState [11:33:16]wFMCommunicate request_size=4 [11:33:16]MH_SAM_APDU [11:33:16]CAPDU: 80 13 01 00 [11:33:16]Write to MH i2c: E2 08 00 C1 52 80 13 01 00 00 00 00 00 90 [11:33:16]Write i2c OK [11:33:16]MH_I2C_Read... [11:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:16]Read from MH i2c: E2 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: E2 0E 00 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: E2 0E 00 C1 52 00 09 00 01 98 11 45 67 00 00 00 00 90 00 F1 [11:33:16]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:33:16]wFMCommunicate OK [11:33:16]SAM_PROTO_GetShiftState done [11:33:16]FM_GetShiftState done [11:33:16]opened in 1732579736 [11:33:16]opened+sec_in_day 1732666136 [11:33:16]quantity*price = 33700 [11:33:16]sum+1 = 33701 [11:33:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 337.00 НСП 1% : 2.98 НДС 12% : 35.79 Наличными: 0.00 Безнал.: 337.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 40 26.11.2024 11:33 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123186 ФПД: 195075865917907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T113326&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123186&fm=195075865917907&tin=02508201610067®Number=0000000000092681&sum=33700 [11:33:17]StoreToDocumentArchive [11:33:17]shift 557 fd 123186 [11:33:17]save to /storage/0557/doc_00123186 [11:33:17]save last doc name /storage/0557/doc_00123186 to /storage/kkm_last_doc_name [11:33:17]save OK [11:33:17]Clear old archive folders... [11:33:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:17]tlvbuf is 01F93CC0 [11:33:17]SAM_PROTO_ClearQueue [11:33:17]wFMCommunicate request_size=4 [11:33:17]MH_SAM_APDU [11:33:17]CAPDU: 80 09 00 00 [11:33:17]Write to MH i2c: E2 08 00 CE 52 80 09 00 00 00 00 00 00 92 [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 03 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 03 00 CE 52 00 90 00 94 [11:33:17]RAPDU: 90 00 [11:33:17]wFMCommunicate OK [11:33:17]SAM_PROTO_ClearQueue done [11:33:17]KKMCreateOFDPacket [11:33:17]OFDProtocolAddRootSTLVToBuf [11:33:17]FM_MakeSignedData [11:33:17]FM_MakeSignedData [11:33:17]SAM_PROTO_SignData [11:33:17]wFMCommunicate request_size=4 [11:33:17]MH_SAM_APDU [11:33:17]CAPDU: 80 0D 01 02 [11:33:17]Write to MH i2c: E2 08 00 CF 52 80 0D 01 02 00 00 00 00 9A [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 03 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 03 00 CF 52 00 90 00 95 [11:33:17]RAPDU: 90 00 [11:33:17]wFMCommunicate OK [11:33:17]wFMCommunicate request_size=255 [11:33:17]MH_SAM_APDU [11:33:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A4 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 83 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 06 B2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 32 E1 01 00 35 04 06 00 B1 [11:33:17]Write to MH i2c: E2 02 01 D0 52 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 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A4 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 83 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 06 B2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 32 E1 01 00 35 04 06 00 B1 00 00 D9 [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 03 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 03 00 D0 52 00 90 00 96 [11:33:17]RAPDU: 90 00 [11:33:17]wFMCommunicate OK [11:33:17]wFMCommunicate request_size=10 [11:33:17]MH_SAM_APDU [11:33:17]CAPDU: 80 0D 02 02 05 6B A3 B1 39 D3 [11:33:17]Write to MH i2c: E2 0D 00 D1 52 80 0D 02 02 05 00 6B A3 B1 39 D3 00 00 72 [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 03 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 03 00 D1 52 00 90 00 97 [11:33:17]RAPDU: 90 00 [11:33:17]wFMCommunicate OK [11:33:17]wFMCommunicate request_size=4 [11:33:17]MH_SAM_APDU [11:33:17]CAPDU: 80 0D 03 02 [11:33:17]Write to MH i2c: E2 08 00 D2 52 80 0D 03 02 00 00 00 00 9F [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 0B 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 0B 00 D2 52 00 5A E3 60 BE CE 83 25 0C 90 00 7D [11:33:17]RAPDU: 5A E3 60 BE CE 83 25 0C 90 00 [11:33:17]wFMCommunicate OK [11:33:17]SAM_PROTO_SignData done [11:33:17]FM_MakeSignedData done [11:33:17]CreateOFDProtocolMessage [11:33:17]wFMCommunicate request_size=4 [11:33:17]MH_SAM_APDU [11:33:17]CAPDU: 80 11 00 00 [11:33:17]Write to MH i2c: E2 08 00 D3 52 80 11 00 00 00 00 00 00 9F [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:17]Read from MH i2c: E2 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 17 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: E2 17 00 D3 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F6 [11:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:33:17]wFMCommunicate OK [11:33:17]CreateOFDProtocolMessage done [11:33:17]OFDSenderStorePacket 123186 [11:33:17]StoreOFDPacket docnum=123186 [11:33:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 A2 7A 07 01 31 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A4 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 83 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 06 B2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 32 E1 01 00 35 04 06 00 B1 6B A3 B1 39 D3 5A E3 60 BE CE 83 25 0C [11:33:17]CheckFolder [11:33:17]dirname=/storage/ofd_packets [11:33:17]CheckFolder done [11:33:17]ProducePacketName [11:33:17]name=ofd_packets/00123186 [11:33:17]NVStorageSaveData ofd_packets/00123186 [11:33:17]File name is /storage/ofd_packets/00123186 [11:33:17]Write 301 bytes [11:33:17]NVStorageSaveData done [11:33:17]OFDSenderStorePacket done [11:33:17]KKMCreateOFDPacket done [11:33:17]NVStorageSaveData kkm_last_timestamp [11:33:17]File name is /storage/kkm_last_timestamp [11:33:17]Write 4 bytes [11:33:17]NVStorageSaveData done [11:33:17]ExternCall_PrintAddStr [11:33:17]wPrintStart [11:33:17]Write to MH i2c: 01 00 00 D4 52 26 [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: 01 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: 01 07 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: 01 07 00 D4 52 00 00 00 00 00 FF 0F 3B [11:33:17]RasterBufferAndPrint [11:33:17]line Счет N : (1)718020 [11:33:17]line ИНН: 02508201610067 [11:33:17]line Контрольно-Кассовый Чек [11:33:17]line ПРОДАЖА [11:33:17]line ТРК (МРК, ГНК) : 12 [11:33:17]line Товар: 2710124130 [11:33:17]line Аи-92-К-4 [11:33:17]line 5.000 * 67.40 [11:33:17]line = 337.00 [11:33:17]line НДС 12% НСП 1% [11:33:17]line > о реализуемом товаре [11:33:17]line ИТОГО: 337.00 [11:33:17]line НСП 1% : 2.98 [11:33:17]line НДС 12% : 35.79 [11:33:17]line Наличными: 0.00 [11:33:17]line Безнал.: 337.00 [11:33:17]line Место: АЗС № 64 "Партнер Нефть" [11:33:17]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:33:17]line СНО: Общий режим [11:33:17]line Чек 40 26.11.2024 11:33 [11:33:17]line Смена: 557 ФФД: 1.0 [11:33:17]line ЗНМ: 0300000033 [11:33:17]line РНМ: 0000000000092681 [11:33:17]line Версия ККМ: 001 [11:33:17]line Платежная система: O! деньги [11:33:17]line ФМ: 0000000000874881 [11:33:17]line ФД: 123186 [11:33:17]line ФПД: 195075865917907 [11:33:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T113326&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123186&fm=195075865917907&tin=02508201610067®Number=0000000000092681&sum=33700 [11:33:18]written 0, free lines is 4095 [11:33:18]OFD Sender: Processing packet 123186 [packets to send 7, broken 6] [11:33:18]ProducePacketName [11:33:18]name=ofd_packets/00123186 [11:33:18]OFD Sender: To server: pG, [11:33:18]CommunicateWithHost lk.salyk.kg:30040 [11:33:18]ConnectInit lk.salyk.kg [11:33:18]Connected sock=10 [11:33:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 A2 7A 07 01 31 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A4 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 83 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 06 B2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 32 E1 01 00 35 04 06 00 B1 6B A3 B1 39 D3 5A E3 60 BE CE 83 25 0C [11:33:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 87 1D 47 00 98 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 32 E1 01 00 F4 03 04 00 C9 5D 45 67 B6 04 01 00 00 57 04 8C 23 EA FB 67 81 [11:33:18]CommunicateWithHost err = 0 [11:33:18]CheckOFDResponse [11:33:18]1017 (14) - 77093643461234 [11:33:18]1041 (16) - 0000000000874881 [11:33:18]1040 (4) - 123186 [11:33:18]1012 (4) - 26.11.2024 05:34 [11:33:18]1206 (1) - 0 [11:33:18]OFD Sender: Remove packet 123186 [11:33:18]ProducePacketName [11:33:18]name=ofd_packets/00123186 [11:33:18]NVStorageDeleteData [11:33:18]Write to MH i2c: 01 00 00 FE 52 50 [11:33:18]Write i2c OK [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: 01 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: 01 07 00 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: 01 07 00 FE 52 00 00 00 00 00 6A 0C CD [11:33:18]RasterBufferAndPrint [11:33:18]line [11:33:18]line [11:33:18]line [11:33:18]line [11:33:18]line [11:33:18]written 0, free lines is 3182 [11:33:18]MH_Cut [11:33:18]Write to MH i2c: D1 01 00 05 53 01 2A [11:33:18]Write i2c OK [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: D1 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: D1 01 00 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: D1 01 00 05 53 00 29 [11:33:18]Write to MH i2c: 01 00 00 06 53 59 [11:33:18]Write i2c OK [11:33:18]MH_I2C_Read... [11:33:19]OFD Sender: No OFD packet to send [11:33:19]*** Cut start [11:33:19]*** Partial cut [11:33:19]*** CUTSNS_PIN = 1 [11:33:20]*** CUTSNS_PIN = 0 [11:33:20]*** Brake cut motor [11:33:20]Read from MH i2c: 01 [11:33:20]MH_I2C_Read... [11:33:20]*** Stop cut motor [11:33:20]*** Cut end [11:33:20]Read from MH i2c: 01 07 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: 01 07 00 06 53 00 00 00 00 00 FF 0F 6E [11:33:20]process_action close_receipt done [11:33:20]requested_data is exist [11:33:20]produce_requested_data [11:33:20]requested_item fm.sn is exist - process it [11:33:20]wFMCommunicate request_size=4 [11:33:20]MH_SAM_APDU [11:33:20]CAPDU: 80 11 00 00 [11:33:20]Write to MH i2c: E2 08 00 07 53 80 11 00 00 00 00 00 00 D4 [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:20]Read from MH i2c: E2 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 17 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 17 00 07 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2B [11:33:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:33:20]wFMCommunicate OK [11:33:20]requested_item fd.num is exist - process it [11:33:20]SAM_PROTO_GetFieldsCounters [11:33:20]wFMCommunicate request_size=4 [11:33:20]MH_SAM_APDU [11:33:20]CAPDU: 80 13 00 00 [11:33:20]Write to MH i2c: E2 08 00 08 53 80 13 00 00 00 00 00 00 D7 [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:20]Read from MH i2c: E2 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 62 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 62 00 08 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 32 E1 01 00 0E 04 04 00 2D 02 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 B8 [11:33:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 32 E1 01 00 0E 04 04 00 2D 02 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 [11:33:20]wFMCommunicate OK [11:33:20]SAM_PROTO_GetFieldsCounters done [11:33:20]requested_item shift.num is exist - process it [11:33:20]requested_item shift.opened is exist - process it [11:33:20]req_shift_opened [11:33:20]FM_GetShiftState [11:33:20]SAM_PROTO_GetShiftState [11:33:20]wFMCommunicate request_size=4 [11:33:20]MH_SAM_APDU [11:33:20]CAPDU: 80 13 01 00 [11:33:20]Write to MH i2c: E2 08 00 09 53 80 13 01 00 00 00 00 00 D9 [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:20]Read from MH i2c: E2 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 0E 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 0E 00 09 53 00 09 00 01 98 11 45 67 00 00 00 00 90 00 3A [11:33:20]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:33:20]wFMCommunicate OK [11:33:20]SAM_PROTO_GetShiftState done [11:33:20]FM_GetShiftState done [11:33:20]req_shift_opened done [11:33:20]requested_item shift.open_date is exist - process it [11:33:20]req_shift_open_date [11:33:20]req_shift_open_date done [11:33:20]produce_requested_data done [11:33:20]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123186,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [11:33:20]process_action_free close_receipt [11:33:20]json_value_free [11:33:20]json_value_free done [11:33:20]process_json_proto returns [11:33:20]Send response to host [11:33:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123186,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [11:33:20]free response buf [11:33:20]execute_script done [11:33:20]execute_script returns [11:33:20]free content buf [11:33:20]Sock 7.Close socket [11:33:20]Sock 7.Thread stoped [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:34]accept exits with 9 [11:33:34]New connection [11:33:34]New thread 3066580324 created [11:33:34]Thread 3066723684 joined [11:33:34]Waiting for new connection... [11:33:34] Sock 9.Parse request [11:33:34]Sock 9.Check first char [11:33:34]Sock 9.First char is OK [11:33:34]request: POST /json_proto HTTP/1.0 [11:33:34]Method: POST [11:33:34]URL: /json_proto [11:33:34]Method is POST - this is cgi request [11:33:34]url: /json_proto [11:33:34]query_string will be loaded in cgi processing [11:33:34]execute_cgi json_proto POST (null) [11:33:34]execute_cgi path=json_proto method=POST [11:33:34]POST find Content-Length [11:33:34]Host: 172.17.37.4:8080 [11:33:34]Content-Length: 682 [11:33:34]Content-Type: application/json [11:33:34] [11:33:34]POST finish read [11:33:34]Found Content-Length = 682 [11:33:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:34]execute_script... [11:33:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:34]POST & json_proto [11:33:34]process_json_proto [11:33:34]json parsed OK: [11:33:34]protocol is kg_v1.0 [11:33:34]action value=close_receipt [11:33:34]process_action close_receipt [11:33:34]cmd_close_receipt [11:33:34]MH_GetDate [11:33:34]Write to MH i2c: F0 00 00 0A 53 4C [11:33:34]Write i2c OK [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: F0 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: F0 09 00 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: F0 09 00 0A 53 00 19 B2 45 67 B8 5A 43 67 88 [11:33:34]GetLastDocTimeStamp 1732620806 [11:33:34]current date 1732620825 [11:33:34]FM_GetShiftState [11:33:34]SAM_PROTO_GetShiftState [11:33:34]wFMCommunicate request_size=4 [11:33:34]MH_SAM_APDU [11:33:34]CAPDU: 80 13 01 00 [11:33:34]Write to MH i2c: E2 08 00 0B 53 80 13 01 00 00 00 00 00 DB [11:33:34]Write i2c OK [11:33:34]MH_I2C_Read... [11:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:34]Read from MH i2c: E2 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 0E 00 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 0E 00 0B 53 00 09 00 01 98 11 45 67 00 00 00 00 90 00 3C [11:33:34]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:33:34]wFMCommunicate OK [11:33:34]SAM_PROTO_GetShiftState done [11:33:34]FM_GetShiftState done [11:33:34]opened in 1732579736 [11:33:34]opened+sec_in_day 1732666136 [11:33:34]quantity*price = 100021 [11:33:34]sum+1 = 100023 [11:33:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 41 26.11.2024 11:33 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123187 ФПД: 41678761297053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T113345&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123187&fm=41678761297053&tin=02508201610067®Number=0000000000092681&sum=100000 [11:33:36]StoreToDocumentArchive [11:33:36]shift 557 fd 123187 [11:33:36]save to /storage/0557/doc_00123187 [11:33:36]save last doc name /storage/0557/doc_00123187 to /storage/kkm_last_doc_name [11:33:36]save OK [11:33:36]Clear old archive folders... [11:33:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:36]tlvbuf is 01F93890 [11:33:36]SAM_PROTO_ClearQueue [11:33:36]wFMCommunicate request_size=4 [11:33:36]MH_SAM_APDU [11:33:36]CAPDU: 80 09 00 00 [11:33:36]Write to MH i2c: E2 08 00 18 53 80 09 00 00 00 00 00 00 DD [11:33:36]Write i2c OK [11:33:36]MH_I2C_Read... [11:33:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:36]Read from MH i2c: E2 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 03 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 03 00 18 53 00 90 00 DF [11:33:36]RAPDU: 90 00 [11:33:36]wFMCommunicate OK [11:33:36]SAM_PROTO_ClearQueue done [11:33:36]KKMCreateOFDPacket [11:33:36]OFDProtocolAddRootSTLVToBuf [11:33:36]FM_MakeSignedData [11:33:36]FM_MakeSignedData [11:33:36]SAM_PROTO_SignData [11:33:36]wFMCommunicate request_size=4 [11:33:36]MH_SAM_APDU [11:33:36]CAPDU: 80 0D 01 02 [11:33:36]Write to MH i2c: E2 08 00 19 53 80 0D 01 02 00 00 00 00 E5 [11:33:36]Write i2c OK [11:33:36]MH_I2C_Read... [11:33:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:36]Read from MH i2c: E2 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 03 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 03 00 19 53 00 90 00 E0 [11:33:36]RAPDU: 90 00 [11:33:36]wFMCommunicate OK [11:33:36]wFMCommunicate request_size=255 [11:33:36]MH_SAM_APDU [11:33:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 19 B2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 33 E1 01 00 35 04 06 00 25 [11:33:36]Write to MH i2c: E2 02 01 1A 53 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 19 B2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 33 E1 01 00 35 04 06 00 25 00 00 45 [11:33:36]Write i2c OK [11:33:36]MH_I2C_Read... [11:33:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:36]Read from MH i2c: E2 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 03 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 03 00 1A 53 00 90 00 E1 [11:33:36]RAPDU: 90 00 [11:33:36]wFMCommunicate OK [11:33:36]wFMCommunicate request_size=10 [11:33:36]MH_SAM_APDU [11:33:36]CAPDU: 80 0D 02 02 05 E8 17 C3 04 9D [11:33:36]Write to MH i2c: E2 0D 00 1B 53 80 0D 02 02 05 00 E8 17 C3 04 9D 00 00 55 [11:33:36]Write i2c OK [11:33:36]MH_I2C_Read... [11:33:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:36]Read from MH i2c: E2 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 03 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 03 00 1B 53 00 90 00 E2 [11:33:36]RAPDU: 90 00 [11:33:36]wFMCommunicate OK [11:33:36]wFMCommunicate request_size=4 [11:33:36]MH_SAM_APDU [11:33:36]CAPDU: 80 0D 03 02 [11:33:36]Write to MH i2c: E2 08 00 1C 53 80 0D 03 02 00 00 00 00 EA [11:33:36]Write i2c OK [11:33:36]MH_I2C_Read... [11:33:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:36]Read from MH i2c: E2 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 0B 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 0B 00 1C 53 00 DD 06 70 D0 61 63 34 CC 90 00 D2 [11:33:36]RAPDU: DD 06 70 D0 61 63 34 CC 90 00 [11:33:36]wFMCommunicate OK [11:33:36]SAM_PROTO_SignData done [11:33:36]FM_MakeSignedData done [11:33:36]CreateOFDProtocolMessage [11:33:36]wFMCommunicate request_size=4 [11:33:36]MH_SAM_APDU [11:33:36]CAPDU: 80 11 00 00 [11:33:36]Write to MH i2c: E2 08 00 1D 53 80 11 00 00 00 00 00 00 EA [11:33:36]Write i2c OK [11:33:36]MH_I2C_Read... [11:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:36]Read from MH i2c: E2 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 17 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 17 00 1D 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 41 [11:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:33:36]wFMCommunicate OK [11:33:36]CreateOFDProtocolMessage done [11:33:36]OFDSenderStorePacket 123187 [11:33:36]StoreOFDPacket docnum=123187 [11:33:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E2 F0 07 01 55 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 19 B2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 33 E1 01 00 35 04 06 00 25 E8 17 C3 04 9D DD 06 70 D0 61 63 34 CC [11:33:36]CheckFolder [11:33:36]dirname=/storage/ofd_packets [11:33:36]CheckFolder done [11:33:36]ProducePacketName [11:33:36]name=ofd_packets/00123187 [11:33:36]NVStorageSaveData ofd_packets/00123187 [11:33:36]File name is /storage/ofd_packets/00123187 [11:33:36]Write 301 bytes [11:33:36]NVStorageSaveData done [11:33:36]OFDSenderStorePacket done [11:33:36]KKMCreateOFDPacket done [11:33:36]NVStorageSaveData kkm_last_timestamp [11:33:36]File name is /storage/kkm_last_timestamp [11:33:36]Write 4 bytes [11:33:36]NVStorageSaveData done [11:33:36]ExternCall_PrintAddStr [11:33:36]wPrintStart [11:33:36]Write to MH i2c: 01 00 00 1E 53 71 [11:33:36]Write i2c OK [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: 01 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: 01 07 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: 01 07 00 1E 53 00 00 00 00 00 FF 0F 86 [11:33:36]RasterBufferAndPrint [11:33:36]line Счет N : (1)718021 [11:33:36]line ИНН: 02508201610067 [11:33:36]line Контрольно-Кассовый Чек [11:33:36]line ПРОДАЖА [11:33:36]line ТРК (МРК, ГНК) : 22 [11:33:36]line Товар: 2710124130 [11:33:36]line Аи-92-К-4 [11:33:36]line 14.840 * 67.40 [11:33:36]line = 1000.22 [11:33:36]line НДС 12% НСП 1% [11:33:36]line > о реализуемом товаре [11:33:36]line ОКРУГЛЕНИЕ: -0.22 [11:33:36]line ИТОГО: 1000.00 [11:33:36]line Внесено: 1000.00 [11:33:36]line СДАЧА: 0.00 [11:33:36]line НСП 1% : 8.85 [11:33:36]line НДС 12% : 106.22 [11:33:36]line Наличными: 1000.00 [11:33:36]line Безнал.: 0.00 [11:33:36]line Место: АЗС № 64 "Партнер Нефть" [11:33:36]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:33:36]line СНО: Общий режим [11:33:36]line Чек 41 26.11.2024 11:33 [11:33:36]line Смена: 557 ФФД: 1.0 [11:33:36]line ЗНМ: 0300000033 [11:33:36]line РНМ: 0000000000092681 [11:33:36]line Версия ККМ: 001 [11:33:36]line ФМ: 0000000000874881 [11:33:36]line ФД: 123187 [11:33:36]line ФПД: 41678761297053 [11:33:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T113345&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123187&fm=41678761297053&tin=02508201610067®Number=0000000000092681&sum=100000 [11:33:36]OFD Sender: Processing packet 123187 [packets to send 7, broken 6] [11:33:36]ProducePacketName [11:33:36]name=ofd_packets/00123187 [11:33:36]OFD Sender: To server: pG, [11:33:36]CommunicateWithHost lk.salyk.kg:30040 [11:33:36]ConnectInit lk.salyk.kg [11:33:36]written 0, free lines is 4095 [11:33:37]Connected sock=10 [11:33:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E2 F0 07 01 55 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 19 B2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 33 E1 01 00 35 04 06 00 25 E8 17 C3 04 9D DD 06 70 D0 61 63 34 CC [11:33:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 98 6D 47 00 C3 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 33 E1 01 00 F4 03 04 00 DB 5D 45 67 B6 04 01 00 00 B7 73 96 39 E4 22 C4 78 [11:33:37]CommunicateWithHost err = 0 [11:33:37]CheckOFDResponse [11:33:37]1017 (14) - 77093643461234 [11:33:37]1041 (16) - 0000000000874881 [11:33:37]1040 (4) - 123187 [11:33:37]1012 (4) - 26.11.2024 05:34 [11:33:37]1206 (1) - 0 [11:33:37]OFD Sender: Remove packet 123187 [11:33:37]ProducePacketName [11:33:37]name=ofd_packets/00123187 [11:33:37]NVStorageDeleteData [11:33:37]Write to MH i2c: 01 00 00 49 53 9C [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: 01 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: 01 07 00 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: 01 07 00 49 53 00 00 00 00 00 44 0C F3 [11:33:37]RasterBufferAndPrint [11:33:37]line [11:33:37]line [11:33:37]line [11:33:37]line [11:33:37]line [11:33:37]written 0, free lines is 3145 [11:33:37]MH_Cut [11:33:37]Write to MH i2c: D1 01 00 50 53 01 75 [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: D1 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: D1 01 00 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: D1 01 00 50 53 00 74 [11:33:37]Write to MH i2c: 01 00 00 51 53 A4 [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]OFD Sender: No OFD packet to send [11:33:38]*** Cut start [11:33:38]*** Partial cut [11:33:38]*** CUTSNS_PIN = 1 [11:33:38]*** CUTSNS_PIN = 0 [11:33:39]*** Brake cut motor [11:33:39]Read from MH i2c: 01 [11:33:39]MH_I2C_Read... [11:33:39]*** Stop cut motor [11:33:39]*** Cut end [11:33:39]Read from MH i2c: 01 07 00 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: 01 07 00 51 53 00 00 00 00 00 FF 0F B9 [11:33:39]process_action close_receipt done [11:33:39]requested_data is exist [11:33:39]produce_requested_data [11:33:39]requested_item fm.sn is exist - process it [11:33:39]wFMCommunicate request_size=4 [11:33:39]MH_SAM_APDU [11:33:39]CAPDU: 80 11 00 00 [11:33:39]Write to MH i2c: E2 08 00 52 53 80 11 00 00 00 00 00 00 1F [11:33:39]Write i2c OK [11:33:39]MH_I2C_Read... [11:33:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:39]Read from MH i2c: E2 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 17 00 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 17 00 52 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 76 [11:33:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:33:39]wFMCommunicate OK [11:33:39]requested_item fd.num is exist - process it [11:33:39]SAM_PROTO_GetFieldsCounters [11:33:39]wFMCommunicate request_size=4 [11:33:39]MH_SAM_APDU [11:33:39]CAPDU: 80 13 00 00 [11:33:39]Write to MH i2c: E2 08 00 53 53 80 13 00 00 00 00 00 00 22 [11:33:39]Write i2c OK [11:33:39]MH_I2C_Read... [11:33:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:39]Read from MH i2c: E2 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 62 00 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 62 00 53 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 33 E1 01 00 0E 04 04 00 2D 02 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 07 [11:33:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 33 E1 01 00 0E 04 04 00 2D 02 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 [11:33:39]wFMCommunicate OK [11:33:39]SAM_PROTO_GetFieldsCounters done [11:33:39]requested_item shift.num is exist - process it [11:33:39]requested_item shift.opened is exist - process it [11:33:39]req_shift_opened [11:33:39]FM_GetShiftState [11:33:39]SAM_PROTO_GetShiftState [11:33:39]wFMCommunicate request_size=4 [11:33:39]MH_SAM_APDU [11:33:39]CAPDU: 80 13 01 00 [11:33:39]Write to MH i2c: E2 08 00 54 53 80 13 01 00 00 00 00 00 24 [11:33:39]Write i2c OK [11:33:39]MH_I2C_Read... [11:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:39]Read from MH i2c: E2 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 0E 00 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 0E 00 54 53 00 09 00 01 98 11 45 67 00 00 00 00 90 00 85 [11:33:39]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:33:39]wFMCommunicate OK [11:33:39]SAM_PROTO_GetShiftState done [11:33:39]FM_GetShiftState done [11:33:39]req_shift_opened done [11:33:39]requested_item shift.open_date is exist - process it [11:33:39]req_shift_open_date [11:33:39]req_shift_open_date done [11:33:39]produce_requested_data done [11:33:39]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123187,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [11:33:39]process_action_free close_receipt [11:33:39]json_value_free [11:33:39]json_value_free done [11:33:39]process_json_proto returns [11:33:39]Send response to host [11:33:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123187,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [11:33:39]free response buf [11:33:39]execute_script done [11:33:39]execute_script returns [11:33:39]free content buf [11:33:39]Sock 9.Close socket [11:33:39]Sock 9.Thread stoped [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:08]accept exits with 7 [11:36:08]New connection [11:36:08]New thread 3066723684 created [11:36:08]Thread 3066580324 joined [11:36:08]Waiting for new connection... [11:36:08] Sock 7.Parse request [11:36:08]Sock 7.Check first char [11:36:08]Sock 7.First char is OK [11:36:08]request: POST /json_proto HTTP/1.0 [11:36:08]Method: POST [11:36:08]URL: /json_proto [11:36:08]Method is POST - this is cgi request [11:36:08]url: /json_proto [11:36:08]query_string will be loaded in cgi processing [11:36:08]execute_cgi json_proto POST (null) [11:36:08]execute_cgi path=json_proto method=POST [11:36:08]POST find Content-Length [11:36:08]Host: 172.17.37.4:8080 [11:36:08]Content-Length: 819 [11:36:08]Content-Type: application/json [11:36:08] [11:36:08]POST finish read [11:36:08]Found Content-Length = 819 [11:36:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 51.270, "sum" : 3455.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3455.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:08]execute_script... [11:36:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 51.270, "sum" : 3455.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3455.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:08]POST & json_proto [11:36:08]process_json_proto [11:36:08]json parsed OK: [11:36:08]protocol is kg_v1.0 [11:36:08]action value=close_receipt [11:36:08]process_action close_receipt [11:36:08]cmd_close_receipt [11:36:08]MH_GetDate [11:36:08]Write to MH i2c: F0 00 00 55 53 97 [11:36:08]Write i2c OK [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: F0 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: F0 09 00 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: F0 09 00 55 53 00 B2 B2 45 67 B8 5A 43 67 6C [11:36:08]GetLastDocTimeStamp 1732620825 [11:36:08]current date 1732620978 [11:36:08]FM_GetShiftState [11:36:08]SAM_PROTO_GetShiftState [11:36:08]wFMCommunicate request_size=4 [11:36:08]MH_SAM_APDU [11:36:08]CAPDU: 80 13 01 00 [11:36:08]Write to MH i2c: E2 08 00 56 53 80 13 01 00 00 00 00 00 26 [11:36:08]Write i2c OK [11:36:08]MH_I2C_Read... [11:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:08]Read from MH i2c: E2 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: E2 0E 00 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: E2 0E 00 56 53 00 09 00 01 98 11 45 67 00 00 00 00 90 00 87 [11:36:08]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:36:08]wFMCommunicate OK [11:36:08]SAM_PROTO_GetShiftState done [11:36:08]FM_GetShiftState done [11:36:08]opened in 1732579736 [11:36:08]opened+sec_in_day 1732666136 [11:36:08]quantity*price = 345559 [11:36:08]sum+1 = 345561 [11:36:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3455.60 НСП 1% : 30.58 НДС 12% : 366.97 Наличными: 0.00 Безнал.: 3455.60 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 42 26.11.2024 11:36 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123188 ФПД: 268087752634711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T113618&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123188&fm=268087752634711&tin=02508201610067®Number=0000000000092681&sum=345560 [11:36:09]StoreToDocumentArchive [11:36:09]shift 557 fd 123188 [11:36:09]save to /storage/0557/doc_00123188 [11:36:09]save last doc name /storage/0557/doc_00123188 to /storage/kkm_last_doc_name [11:36:09]save OK [11:36:09]Clear old archive folders... [11:36:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:09]tlvbuf is B6F1D010 [11:36:09]SAM_PROTO_ClearQueue [11:36:09]wFMCommunicate request_size=4 [11:36:09]MH_SAM_APDU [11:36:09]CAPDU: 80 09 00 00 [11:36:09]Write to MH i2c: E2 08 00 63 53 80 09 00 00 00 00 00 00 28 [11:36:09]Write i2c OK [11:36:09]MH_I2C_Read... [11:36:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:09]Read from MH i2c: E2 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: E2 03 00 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: E2 03 00 63 53 00 90 00 2A [11:36:09]RAPDU: 90 00 [11:36:09]wFMCommunicate OK [11:36:09]SAM_PROTO_ClearQueue done [11:36:09]KKMCreateOFDPacket [11:36:09]OFDProtocolAddRootSTLVToBuf [11:36:09]FM_MakeSignedData [11:36:09]FM_MakeSignedData [11:36:09]SAM_PROTO_SignData [11:36:09]wFMCommunicate request_size=4 [11:36:09]MH_SAM_APDU [11:36:09]CAPDU: 80 0D 01 02 [11:36:09]Write to MH i2c: E2 08 00 64 53 80 0D 01 02 00 00 00 00 30 [11:36:09]Write i2c OK [11:36:09]MH_I2C_Read... [11:36:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:09]Read from MH i2c: E2 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: E2 03 00 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: E2 03 00 64 53 00 90 00 2B [11:36:09]RAPDU: 90 00 [11:36:09]wFMCommunicate OK [11:36:09]wFMCommunicate request_size=255 [11:36:09]MH_SAM_APDU [11:36:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 46 C8 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 D8 45 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 45 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 8F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 45 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B2 B2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 34 E1 01 00 35 04 06 00 F3 [11:36:09]Write to MH i2c: E2 02 01 65 53 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 34 FF 03 08 00 03 46 C8 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 D8 45 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 45 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 8F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 45 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B2 B2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 34 E1 01 00 35 04 06 00 F3 00 00 77 [11:36:09]Write i2c OK [11:36:09]MH_I2C_Read... [11:36:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:09]Read from MH i2c: E2 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: E2 03 00 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: E2 03 00 65 53 00 90 00 2C [11:36:09]RAPDU: 90 00 [11:36:09]wFMCommunicate OK [11:36:09]wFMCommunicate request_size=10 [11:36:09]MH_SAM_APDU [11:36:09]CAPDU: 80 0D 02 02 05 D3 0B 43 B1 57 [11:36:09]Write to MH i2c: E2 0D 00 66 53 80 0D 02 02 05 00 D3 0B 43 B1 57 00 00 66 [11:36:09]Write i2c OK [11:36:09]MH_I2C_Read... [11:36:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:10]Read from MH i2c: E2 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: E2 03 00 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: E2 03 00 66 53 00 90 00 2D [11:36:10]RAPDU: 90 00 [11:36:10]wFMCommunicate OK [11:36:10]wFMCommunicate request_size=4 [11:36:10]MH_SAM_APDU [11:36:10]CAPDU: 80 0D 03 02 [11:36:10]Write to MH i2c: E2 08 00 67 53 80 0D 03 02 00 00 00 00 35 [11:36:10]Write i2c OK [11:36:10]MH_I2C_Read... [11:36:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:10]Read from MH i2c: E2 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: E2 0B 00 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: E2 0B 00 67 53 00 06 26 19 7A 02 19 10 52 90 00 72 [11:36:10]RAPDU: 06 26 19 7A 02 19 10 52 90 00 [11:36:10]wFMCommunicate OK [11:36:10]SAM_PROTO_SignData done [11:36:10]FM_MakeSignedData done [11:36:10]CreateOFDProtocolMessage [11:36:10]wFMCommunicate request_size=4 [11:36:10]MH_SAM_APDU [11:36:10]CAPDU: 80 11 00 00 [11:36:10]Write to MH i2c: E2 08 00 68 53 80 11 00 00 00 00 00 00 35 [11:36:10]Write i2c OK [11:36:10]MH_I2C_Read... [11:36:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:10]Read from MH i2c: E2 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: E2 17 00 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: E2 17 00 68 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8C [11:36:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:36:10]wFMCommunicate OK [11:36:10]CreateOFDProtocolMessage done [11:36:10]OFDSenderStorePacket 123188 [11:36:10]StoreOFDPacket docnum=123188 [11:36:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 92 8F 07 01 15 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 46 C8 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 D8 45 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 45 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 8F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 45 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B2 B2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 34 E1 01 00 35 04 06 00 F3 D3 0B 43 B1 57 06 26 19 7A 02 19 10 52 [11:36:10]CheckFolder [11:36:10]dirname=/storage/ofd_packets [11:36:10]CheckFolder done [11:36:10]ProducePacketName [11:36:10]name=ofd_packets/00123188 [11:36:10]NVStorageSaveData ofd_packets/00123188 [11:36:10]File name is /storage/ofd_packets/00123188 [11:36:10]Write 301 bytes [11:36:10]NVStorageSaveData done [11:36:10]OFDSenderStorePacket done [11:36:10]KKMCreateOFDPacket done [11:36:10]NVStorageSaveData kkm_last_timestamp [11:36:10]File name is /storage/kkm_last_timestamp [11:36:10]Write 4 bytes [11:36:10]NVStorageSaveData done [11:36:10]ExternCall_PrintAddStr [11:36:10]wPrintStart [11:36:10]Write to MH i2c: 01 00 00 69 53 BC [11:36:10]Write i2c OK [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: 01 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: 01 07 00 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: 01 07 00 69 53 00 00 00 00 00 FF 0F D1 [11:36:10]RasterBufferAndPrint [11:36:10]line Счет N : (1)718022 [11:36:10]line ИНН: 02508201610067 [11:36:10]line Контрольно-Кассовый Чек [11:36:10]line ПРОДАЖА [11:36:10]line ТРК (МРК, ГНК) : 32 [11:36:10]line Товар: 2710124130 [11:36:10]line Аи-92-К-4 [11:36:10]line 51.270 * 67.40 [11:36:10]line = 3455.60 [11:36:10]line НДС 12% НСП 1% [11:36:10]line > о реализуемом товаре [11:36:10]line ИТОГО: 3455.60 [11:36:10]line НСП 1% : 30.58 [11:36:10]line НДС 12% : 366.97 [11:36:10]line Наличными: 0.00 [11:36:10]line Безнал.: 3455.60 [11:36:10]line Место: АЗС № 64 "Партнер Нефть" [11:36:10]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:36:10]line СНО: Общий режим [11:36:10]line Чек 42 26.11.2024 11:36 [11:36:10]line Смена: 557 ФФД: 1.0 [11:36:10]line ЗНМ: 0300000033 [11:36:10]line РНМ: 0000000000092681 [11:36:10]line Версия ККМ: 001 [11:36:10]line Платежная система: Бакай Банк [11:36:10]line ФМ: 0000000000874881 [11:36:10]line ФД: 123188 [11:36:10]line ФПД: 268087752634711 [11:36:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T113618&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123188&fm=268087752634711&tin=02508201610067®Number=0000000000092681&sum=345560 [11:36:10]OFD Sender: Processing packet 123188 [packets to send 7, broken 6] [11:36:10]ProducePacketName [11:36:10]name=ofd_packets/00123188 [11:36:10]OFD Sender: To server: pG, [11:36:10]CommunicateWithHost lk.salyk.kg:30040 [11:36:10]ConnectInit lk.salyk.kg [11:36:10]written 0, free lines is 4095 [11:36:10]Connected sock=10 [11:36:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 92 8F 07 01 15 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 46 C8 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 D8 45 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 45 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 8F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 45 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B2 B2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 34 E1 01 00 35 04 06 00 F3 D3 0B 43 B1 57 06 26 19 7A 02 19 10 52 [11:36:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 34 32 47 00 CF 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 34 E1 01 00 F4 03 04 00 75 5E 45 67 B6 04 01 00 00 53 92 25 E2 88 3E 67 49 [11:36:10]CommunicateWithHost err = 0 [11:36:10]CheckOFDResponse [11:36:10]1017 (14) - 77093643461234 [11:36:10]1041 (16) - 0000000000874881 [11:36:10]1040 (4) - 123188 [11:36:10]1012 (4) - 26.11.2024 05:36 [11:36:10]1206 (1) - 0 [11:36:10]OFD Sender: Remove packet 123188 [11:36:10]ProducePacketName [11:36:10]name=ofd_packets/00123188 [11:36:10]NVStorageDeleteData [11:36:10]Write to MH i2c: 01 00 00 93 53 E6 [11:36:10]Write i2c OK [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: 01 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: 01 07 00 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: 01 07 00 93 53 00 00 00 00 00 58 0C 51 [11:36:10]RasterBufferAndPrint [11:36:10]line [11:36:10]line [11:36:10]line [11:36:10]line [11:36:10]line [11:36:10]written 0, free lines is 3165 [11:36:10]MH_Cut [11:36:10]Write to MH i2c: D1 01 00 9A 53 01 BF [11:36:10]Write i2c OK [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: D1 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: D1 01 00 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: D1 01 00 9A 53 00 BE [11:36:10]Write to MH i2c: 01 00 00 9B 53 EE [11:36:10]Write i2c OK [11:36:10]MH_I2C_Read... [11:36:11]OFD Sender: No OFD packet to send [11:36:12]*** Cut start [11:36:12]*** Partial cut [11:36:12]*** CUTSNS_PIN = 1 [11:36:12]*** CUTSNS_PIN = 0 [11:36:12]*** Brake cut motor [11:36:12]Read from MH i2c: 01 [11:36:12]MH_I2C_Read... [11:36:12]*** Stop cut motor [11:36:12]*** Cut end [11:36:12]Read from MH i2c: 01 07 00 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: 01 07 00 9B 53 00 00 00 00 00 FF 0F 03 [11:36:12]process_action close_receipt done [11:36:12]requested_data is exist [11:36:12]produce_requested_data [11:36:12]requested_item fm.sn is exist - process it [11:36:12]wFMCommunicate request_size=4 [11:36:12]MH_SAM_APDU [11:36:12]CAPDU: 80 11 00 00 [11:36:12]Write to MH i2c: E2 08 00 9C 53 80 11 00 00 00 00 00 00 69 [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:12]Read from MH i2c: E2 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 17 00 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 17 00 9C 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C0 [11:36:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:36:12]wFMCommunicate OK [11:36:12]requested_item fd.num is exist - process it [11:36:12]SAM_PROTO_GetFieldsCounters [11:36:12]wFMCommunicate request_size=4 [11:36:12]MH_SAM_APDU [11:36:12]CAPDU: 80 13 00 00 [11:36:12]Write to MH i2c: E2 08 00 9D 53 80 13 00 00 00 00 00 00 6C [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:13]Read from MH i2c: E2 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 62 00 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 62 00 9D 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 34 E1 01 00 0E 04 04 00 2D 02 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 55 [11:36:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 34 E1 01 00 0E 04 04 00 2D 02 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 [11:36:13]wFMCommunicate OK [11:36:13]SAM_PROTO_GetFieldsCounters done [11:36:13]requested_item shift.num is exist - process it [11:36:13]requested_item shift.opened is exist - process it [11:36:13]req_shift_opened [11:36:13]FM_GetShiftState [11:36:13]SAM_PROTO_GetShiftState [11:36:13]wFMCommunicate request_size=4 [11:36:13]MH_SAM_APDU [11:36:13]CAPDU: 80 13 01 00 [11:36:13]Write to MH i2c: E2 08 00 9E 53 80 13 01 00 00 00 00 00 6E [11:36:13]Write i2c OK [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 [11:36:13]MH_I2C_Read... [11:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:13]Read from MH i2c: E2 0E 00 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 0E 00 9E 53 00 09 00 01 98 11 45 67 00 00 00 00 90 00 CF [11:36:13]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:36:13]wFMCommunicate OK [11:36:13]SAM_PROTO_GetShiftState done [11:36:13]FM_GetShiftState done [11:36:13]req_shift_opened done [11:36:13]requested_item shift.open_date is exist - process it [11:36:13]req_shift_open_date [11:36:13]req_shift_open_date done [11:36:13]produce_requested_data done [11:36:13]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123188,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [11:36:13]process_action_free close_receipt [11:36:13]json_value_free [11:36:13]json_value_free done [11:36:13]process_json_proto returns [11:36:13]Send response to host [11:36:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123188,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [11:36:13]free response buf [11:36:13]execute_script done [11:36:13]execute_script returns [11:36:13]free content buf [11:36:13]Sock 7.Close socket [11:36:13]Sock 7.Thread stoped [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]accept exits with 9 [11:37:46]New connection [11:37:46]New thread 3066580324 created [11:37:46]Thread 3066723684 joined [11:37:46]Waiting for new connection... [11:37:46] Sock 9.Parse request [11:37:46]Sock 9.Check first char [11:37:46]Sock 9.First char is OK [11:37:46]request: POST /json_proto HTTP/1.0 [11:37:46]Method: POST [11:37:46]URL: /json_proto [11:37:46]Method is POST - this is cgi request [11:37:46]url: /json_proto [11:37:46]query_string will be loaded in cgi processing [11:37:46]execute_cgi json_proto POST (null) [11:37:46]execute_cgi path=json_proto method=POST [11:37:46]POST find Content-Length [11:37:46]Host: 172.17.37.4:8080 [11:37:46]Content-Length: 677 [11:37:46]Content-Type: application/json [11:37:46] [11:37:46]POST finish read [11:37:46]Found Content-Length = 677 [11:37:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 6.640, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:46]execute_script... [11:37:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 6.640, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:46]POST & json_proto [11:37:46]process_json_proto [11:37:46]json parsed OK: [11:37:46]protocol is kg_v1.0 [11:37:46]action value=close_receipt [11:37:46]process_action close_receipt [11:37:46]cmd_close_receipt [11:37:46]MH_GetDate [11:37:46]Write to MH i2c: F0 00 00 9F 53 E1 [11:37:46]Write i2c OK [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: F0 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: F0 09 00 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: F0 09 00 9F 53 00 14 B3 45 67 B8 5A 43 67 19 [11:37:46]GetLastDocTimeStamp 1732620978 [11:37:46]current date 1732621076 [11:37:46]FM_GetShiftState [11:37:46]SAM_PROTO_GetShiftState [11:37:46]wFMCommunicate request_size=4 [11:37:46]MH_SAM_APDU [11:37:46]CAPDU: 80 13 01 00 [11:37:46]Write to MH i2c: E2 08 00 A0 53 80 13 01 00 00 00 00 00 70 [11:37:46]Write i2c OK [11:37:46]MH_I2C_Read... [11:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:46]Read from MH i2c: E2 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 0E 00 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 0E 00 A0 53 00 09 00 01 98 11 45 67 00 00 00 00 90 00 D1 [11:37:46]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:37:46]wFMCommunicate OK [11:37:46]SAM_PROTO_GetShiftState done [11:37:46]FM_GetShiftState done [11:37:46]opened in 1732579736 [11:37:46]opened+sec_in_day 1732666136 [11:37:46]quantity*price = 50065 [11:37:46]sum+1 = 50067 [11:37:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 43 26.11.2024 11:37 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123189 ФПД: 58012157718689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T113756&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123189&fm=58012157718689&tin=02508201610067®Number=0000000000092681&sum=50000 [11:37:47]StoreToDocumentArchive [11:37:47]shift 557 fd 123189 [11:37:47]save to /storage/0557/doc_00123189 [11:37:47]save last doc name /storage/0557/doc_00123189 to /storage/kkm_last_doc_name [11:37:47]save OK [11:37:47]Clear old archive folders... [11:37:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:47]tlvbuf is 0212B5C0 [11:37:47]SAM_PROTO_ClearQueue [11:37:47]wFMCommunicate request_size=4 [11:37:47]MH_SAM_APDU [11:37:47]CAPDU: 80 09 00 00 [11:37:47]Write to MH i2c: E2 08 00 AD 53 80 09 00 00 00 00 00 00 72 [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:47]Read from MH i2c: E2 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 AD 53 00 90 00 74 [11:37:47]RAPDU: 90 00 [11:37:47]wFMCommunicate OK [11:37:47]SAM_PROTO_ClearQueue done [11:37:47]KKMCreateOFDPacket [11:37:47]OFDProtocolAddRootSTLVToBuf [11:37:47]FM_MakeSignedData [11:37:47]FM_MakeSignedData [11:37:47]SAM_PROTO_SignData [11:37:47]wFMCommunicate request_size=4 [11:37:47]MH_SAM_APDU [11:37:47]CAPDU: 80 0D 01 02 [11:37:47]Write to MH i2c: E2 08 00 AE 53 80 0D 01 02 00 00 00 00 7A [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:47]Read from MH i2c: E2 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 AE 53 00 90 00 75 [11:37:47]RAPDU: 90 00 [11:37:47]wFMCommunicate OK [11:37:47]wFMCommunicate request_size=255 [11:37:47]MH_SAM_APDU [11:37:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 14 B3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 35 E1 01 00 35 04 06 00 34 [11:37:47]Write to MH i2c: E2 02 01 AF 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 14 B3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 35 E1 01 00 35 04 06 00 34 00 00 4F [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:47]Read from MH i2c: E2 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 AF 53 00 90 00 76 [11:37:47]RAPDU: 90 00 [11:37:47]wFMCommunicate OK [11:37:47]wFMCommunicate request_size=10 [11:37:47]MH_SAM_APDU [11:37:47]CAPDU: 80 0D 02 02 05 C3 02 0D B0 A1 [11:37:47]Write to MH i2c: E2 0D 00 B0 53 80 0D 02 02 05 00 C3 02 0D B0 A1 00 00 AA [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:47]Read from MH i2c: E2 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 B0 53 00 90 00 77 [11:37:47]RAPDU: 90 00 [11:37:47]wFMCommunicate OK [11:37:47]wFMCommunicate request_size=4 [11:37:47]MH_SAM_APDU [11:37:47]CAPDU: 80 0D 03 02 [11:37:47]Write to MH i2c: E2 08 00 B1 53 80 0D 03 02 00 00 00 00 7F [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:47]Read from MH i2c: E2 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 0B 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 0B 00 B1 53 00 85 7E 9E 93 18 C1 C6 A1 90 00 F4 [11:37:47]RAPDU: 85 7E 9E 93 18 C1 C6 A1 90 00 [11:37:47]wFMCommunicate OK [11:37:47]SAM_PROTO_SignData done [11:37:47]FM_MakeSignedData done [11:37:47]CreateOFDProtocolMessage [11:37:47]wFMCommunicate request_size=4 [11:37:47]MH_SAM_APDU [11:37:47]CAPDU: 80 11 00 00 [11:37:47]Write to MH i2c: E2 08 00 B2 53 80 11 00 00 00 00 00 00 7F [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:47]Read from MH i2c: E2 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 17 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 17 00 B2 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D6 [11:37:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:37:47]wFMCommunicate OK [11:37:47]CreateOFDProtocolMessage done [11:37:47]OFDSenderStorePacket 123189 [11:37:47]StoreOFDPacket docnum=123189 [11:37:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 98 4F 07 01 26 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 14 B3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 35 E1 01 00 35 04 06 00 34 C3 02 0D B0 A1 85 7E 9E 93 18 C1 C6 A1 [11:37:47]CheckFolder [11:37:47]dirname=/storage/ofd_packets [11:37:47]CheckFolder done [11:37:47]ProducePacketName [11:37:47]name=ofd_packets/00123189 [11:37:47]NVStorageSaveData ofd_packets/00123189 [11:37:47]File name is /storage/ofd_packets/00123189 [11:37:47]Write 301 bytes [11:37:47]NVStorageSaveData done [11:37:47]OFDSenderStorePacket done [11:37:47]KKMCreateOFDPacket done [11:37:47]NVStorageSaveData kkm_last_timestamp [11:37:47]File name is /storage/kkm_last_timestamp [11:37:47]Write 4 bytes [11:37:47]NVStorageSaveData done [11:37:47]ExternCall_PrintAddStr [11:37:47]wPrintStart [11:37:47]Write to MH i2c: 01 00 00 B3 53 06 [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: 01 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: 01 07 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: 01 07 00 B3 53 00 00 00 00 00 FF 0F 1B [11:37:47]RasterBufferAndPrint [11:37:47]line Счет N : (1)718023 [11:37:47]line ИНН: 02508201610067 [11:37:47]line Контрольно-Кассовый Чек [11:37:47]line ПРОДАЖА [11:37:47]line ТРК (МРК, ГНК) : 11 [11:37:47]line Товар: 2710124500 [11:37:47]line Аи-95-К-5 [11:37:47]line 6.640 * 75.40 [11:37:47]line = 500.66 [11:37:47]line НДС 12% НСП 1% [11:37:47]line > о реализуемом товаре [11:37:47]line ОКРУГЛЕНИЕ: -0.66 [11:37:47]line ИТОГО: 500.00 [11:37:47]line Внесено: 500.00 [11:37:47]line СДАЧА: 0.00 [11:37:47]line НСП 1% : 4.43 [11:37:47]line НДС 12% : 53.17 [11:37:47]line Наличными: 500.00 [11:37:47]line Безнал.: 0.00 [11:37:47]line Место: АЗС № 64 "Партнер Нефть" [11:37:47]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:37:47]line СНО: Общий режим [11:37:47]line Чек 43 26.11.2024 11:37 [11:37:47]line Смена: 557 ФФД: 1.0 [11:37:47]line ЗНМ: 0300000033 [11:37:47]line РНМ: 0000000000092681 [11:37:47]line Версия ККМ: 001 [11:37:47]line ФМ: 0000000000874881 [11:37:47]line ФД: 123189 [11:37:47]line ФПД: 58012157718689 [11:37:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T113756&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123189&fm=58012157718689&tin=02508201610067®Number=0000000000092681&sum=50000 [11:37:48]OFD Sender: Processing packet 123189 [packets to send 7, broken 6] [11:37:48]ProducePacketName [11:37:48]name=ofd_packets/00123189 [11:37:48]OFD Sender: To server: pG, [11:37:48]CommunicateWithHost lk.salyk.kg:30040 [11:37:48]ConnectInit lk.salyk.kg [11:37:48]written 0, free lines is 4095 [11:37:48]Connected sock=10 [11:37:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 98 4F 07 01 26 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 14 B3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 35 E1 01 00 35 04 06 00 34 C3 02 0D B0 A1 85 7E 9E 93 18 C1 C6 A1 [11:37:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 37 51 47 00 22 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 35 E1 01 00 F4 03 04 00 D7 5E 45 67 B6 04 01 00 00 48 6F 44 37 0E A5 00 6C [11:37:48]CommunicateWithHost err = 0 [11:37:48]CheckOFDResponse [11:37:48]1017 (14) - 77093643461234 [11:37:48]1041 (16) - 0000000000874881 [11:37:48]1040 (4) - 123189 [11:37:48]1012 (4) - 26.11.2024 05:38 [11:37:48]1206 (1) - 0 [11:37:48]OFD Sender: Remove packet 123189 [11:37:48]ProducePacketName [11:37:48]name=ofd_packets/00123189 [11:37:48]NVStorageDeleteData [11:37:48]Write to MH i2c: 01 00 00 DE 53 31 [11:37:48]Write i2c OK [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: 01 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: 01 07 00 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: 01 07 00 DE 53 00 00 00 00 00 58 0C 9C [11:37:48]RasterBufferAndPrint [11:37:48]line [11:37:48]line [11:37:48]line [11:37:48]line [11:37:48]line [11:37:48]written 0, free lines is 3165 [11:37:48]MH_Cut [11:37:48]Write to MH i2c: D1 01 00 E5 53 01 0A [11:37:48]Write i2c OK [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: D1 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: D1 01 00 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: D1 01 00 E5 53 00 09 [11:37:48]Write to MH i2c: 01 00 00 E6 53 39 [11:37:48]Write i2c OK [11:37:48]MH_I2C_Read... [11:37:48]OFD Sender: No OFD packet to send [11:37:49]*** Cut start [11:37:49]*** Partial cut [11:37:49]*** CUTSNS_PIN = 1 [11:37:49]*** CUTSNS_PIN = 0 [11:37:50]*** Brake cut motor [11:37:50]Read from MH i2c: 01 [11:37:50]MH_I2C_Read... [11:37:50]*** Stop cut motor [11:37:50]*** Cut end [11:37:50]Read from MH i2c: 01 07 00 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: 01 07 00 E6 53 00 00 00 00 00 FF 0F 4E [11:37:50]process_action close_receipt done [11:37:50]requested_data is exist [11:37:50]produce_requested_data [11:37:50]requested_item fm.sn is exist - process it [11:37:50]wFMCommunicate request_size=4 [11:37:50]MH_SAM_APDU [11:37:50]CAPDU: 80 11 00 00 [11:37:50]Write to MH i2c: E2 08 00 E7 53 80 11 00 00 00 00 00 00 B4 [11:37:50]Write i2c OK [11:37:50]MH_I2C_Read... [11:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:50]Read from MH i2c: E2 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 17 00 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 17 00 E7 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0B [11:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:37:50]wFMCommunicate OK [11:37:50]requested_item fd.num is exist - process it [11:37:50]SAM_PROTO_GetFieldsCounters [11:37:50]wFMCommunicate request_size=4 [11:37:50]MH_SAM_APDU [11:37:50]CAPDU: 80 13 00 00 [11:37:50]Write to MH i2c: E2 08 00 E8 53 80 13 00 00 00 00 00 00 B7 [11:37:50]Write i2c OK [11:37:50]MH_I2C_Read... [11:37:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:50]Read from MH i2c: E2 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 62 00 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 62 00 E8 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 35 E1 01 00 0E 04 04 00 2D 02 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 A4 [11:37:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 35 E1 01 00 0E 04 04 00 2D 02 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 [11:37:50]wFMCommunicate OK [11:37:50]SAM_PROTO_GetFieldsCounters done [11:37:50]requested_item shift.num is exist - process it [11:37:50]requested_item shift.opened is exist - process it [11:37:50]req_shift_opened [11:37:50]FM_GetShiftState [11:37:50]SAM_PROTO_GetShiftState [11:37:50]wFMCommunicate request_size=4 [11:37:50]MH_SAM_APDU [11:37:50]CAPDU: 80 13 01 00 [11:37:50]Write to MH i2c: E2 08 00 E9 53 80 13 01 00 00 00 00 00 B9 [11:37:50]Write i2c OK [11:37:50]MH_I2C_Read... [11:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:50]Read from MH i2c: E2 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 0E 00 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 0E 00 E9 53 00 09 00 01 98 11 45 67 00 00 00 00 90 00 1A [11:37:50]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:37:50]wFMCommunicate OK [11:37:50]SAM_PROTO_GetShiftState done [11:37:50]FM_GetShiftState done [11:37:50]req_shift_opened done [11:37:50]requested_item shift.open_date is exist - process it [11:37:50]req_shift_open_date [11:37:50]req_shift_open_date done [11:37:50]produce_requested_data done [11:37:50]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123189,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [11:37:50]process_action_free close_receipt [11:37:50]json_value_free [11:37:50]json_value_free done [11:37:50]process_json_proto returns [11:37:50]Send response to host [11:37:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123189,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [11:37:50]free response buf [11:37:50]execute_script done [11:37:50]execute_script returns [11:37:50]free content buf [11:37:50]Sock 9.Close socket [11:37:50]Sock 9.Thread stoped [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:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]OFD Sender: No OFD packet to send [11:43:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:39]OFD Sender: No OFD packet to send [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:04]OFD Sender: No OFD packet to send [11:44:09]OFD Sender: No OFD packet to send [11:44:14]OFD Sender: No OFD packet to send [11:44:19]OFD Sender: No OFD packet to send [11:44:24]OFD Sender: No OFD packet to send [11:44:29]OFD Sender: No OFD packet to send [11:44:34]OFD Sender: No OFD packet to send [11:44:39]OFD Sender: No OFD packet to send [11:44:44]OFD Sender: No OFD packet to send [11:44:49]OFD Sender: No OFD packet to send [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:44]OFD Sender: No OFD packet to send [11:47:49]OFD Sender: No OFD packet to send [11:47:54]OFD Sender: No OFD packet to send [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:01]accept exits with 7 [11:52:01]New connection [11:52:01]New thread 3066723684 created [11:52:01]Thread 3066580324 joined [11:52:01]Waiting for new connection... [11:52:01] Sock 7.Parse request [11:52:01]Sock 7.Check first char [11:52:01]Sock 7.First char is OK [11:52:01]request: POST /json_proto HTTP/1.0 [11:52:01]Method: POST [11:52:01]URL: /json_proto [11:52:01]Method is POST - this is cgi request [11:52:01]url: /json_proto [11:52:01]query_string will be loaded in cgi processing [11:52:01]execute_cgi json_proto POST (null) [11:52:01]execute_cgi path=json_proto method=POST [11:52:01]POST find Content-Length [11:52:01]Host: 172.17.37.4:8080 [11:52:01]Content-Length: 677 [11:52:01]Content-Type: application/json [11:52:01] [11:52:01]POST finish read [11:52:01]Found Content-Length = 677 [11:52:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:01]execute_script... [11:52:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:01]POST & json_proto [11:52:01]process_json_proto [11:52:01]json parsed OK: [11:52:01]protocol is kg_v1.0 [11:52:01]action value=close_receipt [11:52:01]process_action close_receipt [11:52:01]cmd_close_receipt [11:52:01]MH_GetDate [11:52:01]Write to MH i2c: F0 00 00 EA 53 2C [11:52:01]Write i2c OK [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: F0 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: F0 09 00 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: F0 09 00 EA 53 00 6C B6 45 67 B8 5A 43 67 BF [11:52:01]GetLastDocTimeStamp 1732621076 [11:52:01]current date 1732621932 [11:52:01]FM_GetShiftState [11:52:01]SAM_PROTO_GetShiftState [11:52:01]wFMCommunicate request_size=4 [11:52:01]MH_SAM_APDU [11:52:01]CAPDU: 80 13 01 00 [11:52:01]Write to MH i2c: E2 08 00 EB 53 80 13 01 00 00 00 00 00 BB [11:52:01]Write i2c OK [11:52:01]MH_I2C_Read... [11:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:01]Read from MH i2c: E2 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 0E 00 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 0E 00 EB 53 00 09 00 01 98 11 45 67 00 00 00 00 90 00 1C [11:52:01]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:52:01]wFMCommunicate OK [11:52:01]SAM_PROTO_GetShiftState done [11:52:01]FM_GetShiftState done [11:52:01]opened in 1732579736 [11:52:01]opened+sec_in_day 1732666136 [11:52:01]quantity*price = 50010 [11:52:01]sum+1 = 50012 [11:52:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 44 26.11.2024 11:52 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123190 ФПД: 96584242192266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T115212&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123190&fm=96584242192266&tin=02508201610067®Number=0000000000092681&sum=50000 [11:52:02]StoreToDocumentArchive [11:52:02]shift 557 fd 123190 [11:52:02]save to /storage/0557/doc_00123190 [11:52:02]save last doc name /storage/0557/doc_00123190 to /storage/kkm_last_doc_name [11:52:02]save OK [11:52:02]Clear old archive folders... [11:52:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:02]tlvbuf is B6F20230 [11:52:02]SAM_PROTO_ClearQueue [11:52:02]wFMCommunicate request_size=4 [11:52:02]MH_SAM_APDU [11:52:02]CAPDU: 80 09 00 00 [11:52:02]Write to MH i2c: E2 08 00 F8 53 80 09 00 00 00 00 00 00 BD [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:02]Read from MH i2c: E2 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 03 00 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 03 00 F8 53 00 90 00 BF [11:52:02]RAPDU: 90 00 [11:52:02]wFMCommunicate OK [11:52:02]SAM_PROTO_ClearQueue done [11:52:02]KKMCreateOFDPacket [11:52:02]OFDProtocolAddRootSTLVToBuf [11:52:02]FM_MakeSignedData [11:52:02]FM_MakeSignedData [11:52:02]SAM_PROTO_SignData [11:52:02]wFMCommunicate request_size=4 [11:52:02]MH_SAM_APDU [11:52:02]CAPDU: 80 0D 01 02 [11:52:02]Write to MH i2c: E2 08 00 F9 53 80 0D 01 02 00 00 00 00 C5 [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:03]Read from MH i2c: E2 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 03 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 03 00 F9 53 00 90 00 C0 [11:52:03]RAPDU: 90 00 [11:52:03]wFMCommunicate OK [11:52:03]wFMCommunicate request_size=255 [11:52:03]MH_SAM_APDU [11:52:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 6C B6 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 36 E1 01 00 35 04 06 00 57 [11:52:03]Write to MH i2c: E2 02 01 FA 53 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 6C B6 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 36 E1 01 00 35 04 06 00 57 00 00 C4 [11:52:03]Write i2c OK [11:52:03]MH_I2C_Read... [11:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:03]Read from MH i2c: E2 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 03 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 03 00 FA 53 00 90 00 C1 [11:52:03]RAPDU: 90 00 [11:52:03]wFMCommunicate OK [11:52:03]wFMCommunicate request_size=10 [11:52:03]MH_SAM_APDU [11:52:03]CAPDU: 80 0D 02 02 05 D7 C5 72 5F 8A [11:52:03]Write to MH i2c: E2 0D 00 FB 53 80 0D 02 02 05 00 D7 C5 72 5F 8A 00 00 C9 [11:52:03]Write i2c OK [11:52:03]MH_I2C_Read... [11:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:03]Read from MH i2c: E2 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 03 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 03 00 FB 53 00 90 00 C2 [11:52:03]RAPDU: 90 00 [11:52:03]wFMCommunicate OK [11:52:03]wFMCommunicate request_size=4 [11:52:03]MH_SAM_APDU [11:52:03]CAPDU: 80 0D 03 02 [11:52:03]Write to MH i2c: E2 08 00 FC 53 80 0D 03 02 00 00 00 00 CA [11:52:03]Write i2c OK [11:52:03]MH_I2C_Read... [11:52:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:03]Read from MH i2c: E2 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 0B 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 0B 00 FC 53 00 D2 52 E8 40 C0 61 71 52 90 00 FB [11:52:03]RAPDU: D2 52 E8 40 C0 61 71 52 90 00 [11:52:03]wFMCommunicate OK [11:52:03]SAM_PROTO_SignData done [11:52:03]FM_MakeSignedData done [11:52:03]CreateOFDProtocolMessage [11:52:03]wFMCommunicate request_size=4 [11:52:03]MH_SAM_APDU [11:52:03]CAPDU: 80 11 00 00 [11:52:03]Write to MH i2c: E2 08 00 FD 53 80 11 00 00 00 00 00 00 CA [11:52:03]Write i2c OK [11:52:03]MH_I2C_Read... [11:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:03]Read from MH i2c: E2 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 17 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 17 00 FD 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 21 [11:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:52:03]wFMCommunicate OK [11:52:03]CreateOFDProtocolMessage done [11:52:03]OFDSenderStorePacket 123190 [11:52:03]StoreOFDPacket docnum=123190 [11:52:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 4E 2E 07 01 F6 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 6C B6 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 36 E1 01 00 35 04 06 00 57 D7 C5 72 5F 8A D2 52 E8 40 C0 61 71 52 [11:52:03]CheckFolder [11:52:03]dirname=/storage/ofd_packets [11:52:03]CheckFolder done [11:52:03]ProducePacketName [11:52:03]name=ofd_packets/00123190 [11:52:03]NVStorageSaveData ofd_packets/00123190 [11:52:03]File name is /storage/ofd_packets/00123190 [11:52:03]Write 301 bytes [11:52:03]NVStorageSaveData done [11:52:03]OFDSenderStorePacket done [11:52:03]KKMCreateOFDPacket done [11:52:03]NVStorageSaveData kkm_last_timestamp [11:52:03]File name is /storage/kkm_last_timestamp [11:52:03]Write 4 bytes [11:52:03]NVStorageSaveData done [11:52:03]ExternCall_PrintAddStr [11:52:03]wPrintStart [11:52:03]Write to MH i2c: 01 00 00 FE 53 51 [11:52:03]Write i2c OK [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: 01 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: 01 07 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: 01 07 00 FE 53 00 00 00 00 00 FF 0F 66 [11:52:03]RasterBufferAndPrint [11:52:03]line Счет N : (1)718024 [11:52:03]line ИНН: 02508201610067 [11:52:03]line Контрольно-Кассовый Чек [11:52:03]line ПРОДАЖА [11:52:03]line ТРК (МРК, ГНК) : 12 [11:52:03]line Товар: 2710124130 [11:52:03]line Аи-92-К-4 [11:52:03]line 7.420 * 67.40 [11:52:03]line = 500.11 [11:52:03]line НДС 12% НСП 1% [11:52:03]line > о реализуемом товаре [11:52:03]line ОКРУГЛЕНИЕ: -0.11 [11:52:03]line ИТОГО: 500.00 [11:52:03]line Внесено: 500.00 [11:52:03]line СДАЧА: 0.00 [11:52:03]line НСП 1% : 4.43 [11:52:03]line НДС 12% : 53.11 [11:52:03]line Наличными: 500.00 [11:52:03]line Безнал.: 0.00 [11:52:03]line Место: АЗС № 64 "Партнер Нефть" [11:52:03]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:52:03]line СНО: Общий режим [11:52:03]line Чек 44 26.11.2024 11:52 [11:52:03]line Смена: 557 ФФД: 1.0 [11:52:03]line ЗНМ: 0300000033 [11:52:03]line РНМ: 0000000000092681 [11:52:03]line Версия ККМ: 001 [11:52:03]line ФМ: 0000000000874881 [11:52:03]line ФД: 123190 [11:52:03]line ФПД: 96584242192266 [11:52:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T115212&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123190&fm=96584242192266&tin=02508201610067®Number=0000000000092681&sum=50000 [11:52:03]OFD Sender: Processing packet 123190 [packets to send 7, broken 6] [11:52:03]ProducePacketName [11:52:03]name=ofd_packets/00123190 [11:52:03]OFD Sender: To server: pG, [11:52:03]CommunicateWithHost lk.salyk.kg:30040 [11:52:03]ConnectInit lk.salyk.kg [11:52:03]written 0, free lines is 4095 [11:52:03]Connected sock=10 [11:52:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 4E 2E 07 01 F6 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 6C B6 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 36 E1 01 00 35 04 06 00 57 D7 C5 72 5F 8A D2 52 E8 40 C0 61 71 52 [11:52:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 CD 73 47 00 54 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 36 E1 01 00 F4 03 04 00 2E 62 45 67 B6 04 01 00 00 91 9F 75 86 1B AB 47 D6 [11:52:04]CommunicateWithHost err = 0 [11:52:04]CheckOFDResponse [11:52:04]1017 (14) - 77093643461234 [11:52:04]1041 (16) - 0000000000874881 [11:52:04]1040 (4) - 123190 [11:52:04]1012 (4) - 26.11.2024 05:52 [11:52:04]1206 (1) - 0 [11:52:04]OFD Sender: Remove packet 123190 [11:52:04]ProducePacketName [11:52:04]name=ofd_packets/00123190 [11:52:04]NVStorageDeleteData [11:52:04]Write to MH i2c: 01 00 00 29 54 7D [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: 01 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: 01 07 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: 01 07 00 29 54 00 00 00 00 00 38 0C C8 [11:52:04]RasterBufferAndPrint [11:52:04]line [11:52:04]line [11:52:04]line [11:52:04]line [11:52:04]line [11:52:04]written 0, free lines is 3133 [11:52:04]MH_Cut [11:52:04]Write to MH i2c: D1 01 00 30 54 01 56 [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: D1 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: D1 01 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: D1 01 00 30 54 00 55 [11:52:04]Write to MH i2c: 01 00 00 31 54 85 [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]OFD Sender: No OFD packet to send [11:52:05]*** Cut start [11:52:05]*** Partial cut [11:52:05]*** CUTSNS_PIN = 1 [11:52:05]*** CUTSNS_PIN = 0 [11:52:05]*** Brake cut motor [11:52:06]Read from MH i2c: 01 [11:52:06]MH_I2C_Read... [11:52:06]*** Stop cut motor [11:52:06]*** Cut end [11:52:06]Read from MH i2c: 01 07 00 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: 01 07 00 31 54 00 00 00 00 00 FF 0F 9A [11:52:06]process_action close_receipt done [11:52:06]requested_data is exist [11:52:06]produce_requested_data [11:52:06]requested_item fm.sn is exist - process it [11:52:06]wFMCommunicate request_size=4 [11:52:06]MH_SAM_APDU [11:52:06]CAPDU: 80 11 00 00 [11:52:06]Write to MH i2c: E2 08 00 32 54 80 11 00 00 00 00 00 00 00 [11:52:06]Write i2c OK [11:52:06]MH_I2C_Read... [11:52:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:06]Read from MH i2c: E2 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: E2 17 00 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: E2 17 00 32 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 57 [11:52:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:52:06]wFMCommunicate OK [11:52:06]requested_item fd.num is exist - process it [11:52:06]SAM_PROTO_GetFieldsCounters [11:52:06]wFMCommunicate request_size=4 [11:52:06]MH_SAM_APDU [11:52:06]CAPDU: 80 13 00 00 [11:52:06]Write to MH i2c: E2 08 00 33 54 80 13 00 00 00 00 00 00 03 [11:52:06]Write i2c OK [11:52:06]MH_I2C_Read... [11:52:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:06]Read from MH i2c: E2 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: E2 62 00 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: E2 62 00 33 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 36 E1 01 00 0E 04 04 00 2D 02 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 F4 [11:52:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 36 E1 01 00 0E 04 04 00 2D 02 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 [11:52:06]wFMCommunicate OK [11:52:06]SAM_PROTO_GetFieldsCounters done [11:52:06]requested_item shift.num is exist - process it [11:52:06]requested_item shift.opened is exist - process it [11:52:06]req_shift_opened [11:52:06]FM_GetShiftState [11:52:06]SAM_PROTO_GetShiftState [11:52:06]wFMCommunicate request_size=4 [11:52:06]MH_SAM_APDU [11:52:06]CAPDU: 80 13 01 00 [11:52:06]Write to MH i2c: E2 08 00 34 54 80 13 01 00 00 00 00 00 05 [11:52:06]Write i2c OK [11:52:06]MH_I2C_Read... [11:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:06]Read from MH i2c: E2 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: E2 0E 00 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: E2 0E 00 34 54 00 09 00 01 98 11 45 67 00 00 00 00 90 00 66 [11:52:06]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:52:06]wFMCommunicate OK [11:52:06]SAM_PROTO_GetShiftState done [11:52:06]FM_GetShiftState done [11:52:06]req_shift_opened done [11:52:06]requested_item shift.open_date is exist - process it [11:52:06]req_shift_open_date [11:52:06]req_shift_open_date done [11:52:06]produce_requested_data done [11:52:06]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123190,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [11:52:06]process_action_free close_receipt [11:52:06]json_value_free [11:52:06]json_value_free done [11:52:06]process_json_proto returns [11:52:06]Send response to host [11:52:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123190,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [11:52:06]free response buf [11:52:06]execute_script done [11:52:06]execute_script returns [11:52:06]free content buf [11:52:06]Sock 7.Close socket [11:52:06]Sock 7.Thread stoped [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:46]accept exits with 9 [11:56:46]New connection [11:56:46]New thread 3066580324 created [11:56:46]Thread 3066723684 joined [11:56:46]Waiting for new connection... [11:56:46] Sock 9.Parse request [11:56:46]Sock 9.Check first char [11:56:46]Sock 9.First char is OK [11:56:46]request: POST /json_proto HTTP/1.0 [11:56:46]Method: POST [11:56:46]URL: /json_proto [11:56:46]Method is POST - this is cgi request [11:56:46]url: /json_proto [11:56:46]query_string will be loaded in cgi processing [11:56:46]execute_cgi json_proto POST (null) [11:56:46]execute_cgi path=json_proto method=POST [11:56:46]POST find Content-Length [11:56:46]Host: 172.17.37.4:8080 [11:56:46]Content-Length: 686 [11:56:46]Content-Type: application/json [11:56:46] [11:56:46]POST finish read [11:56:46]Found Content-Length = 686 [11:56:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:46]execute_script... [11:56:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:46]POST & json_proto [11:56:46]process_json_proto [11:56:46]json parsed OK: [11:56:46]protocol is kg_v1.0 [11:56:46]action value=close_receipt [11:56:46]process_action close_receipt [11:56:46]cmd_close_receipt [11:56:46]MH_GetDate [11:56:46]Write to MH i2c: F0 00 00 35 54 78 [11:56:46]Write i2c OK [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: F0 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: F0 09 00 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: F0 09 00 35 54 00 89 B7 45 67 B8 5A 43 67 29 [11:56:46]GetLastDocTimeStamp 1732621932 [11:56:46]current date 1732622217 [11:56:46]FM_GetShiftState [11:56:46]SAM_PROTO_GetShiftState [11:56:46]wFMCommunicate request_size=4 [11:56:46]MH_SAM_APDU [11:56:46]CAPDU: 80 13 01 00 [11:56:46]Write to MH i2c: E2 08 00 36 54 80 13 01 00 00 00 00 00 07 [11:56:46]Write i2c OK [11:56:46]MH_I2C_Read... [11:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:46]Read from MH i2c: E2 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 0E 00 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 0E 00 36 54 00 09 00 01 98 11 45 67 00 00 00 00 90 00 68 [11:56:46]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:56:46]wFMCommunicate OK [11:56:46]SAM_PROTO_GetShiftState done [11:56:46]FM_GetShiftState done [11:56:46]opened in 1732579736 [11:56:46]opened+sec_in_day 1732666136 [11:56:46]quantity*price = 100066 [11:56:46]sum+1 = 100067 [11:56:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 45 26.11.2024 11:56 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123191 ФПД: 266616323041560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T115657&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123191&fm=266616323041560&tin=02508201610067®Number=0000000000092681&sum=100000 [11:56:48]StoreToDocumentArchive [11:56:48]shift 557 fd 123191 [11:56:48]save to /storage/0557/doc_00123191 [11:56:48]save last doc name /storage/0557/doc_00123191 to /storage/kkm_last_doc_name [11:56:48]save OK [11:56:48]Clear old archive folders... [11:56:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:56:48]tlvbuf is 020A93D0 [11:56:48]SAM_PROTO_ClearQueue [11:56:48]wFMCommunicate request_size=4 [11:56:48]MH_SAM_APDU [11:56:48]CAPDU: 80 09 00 00 [11:56:48]Write to MH i2c: E2 08 00 43 54 80 09 00 00 00 00 00 00 09 [11:56:48]Write i2c OK [11:56:48]MH_I2C_Read... [11:56:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:48]Read from MH i2c: E2 [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: E2 03 00 [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: E2 03 00 43 54 00 90 00 0B [11:56:48]RAPDU: 90 00 [11:56:48]wFMCommunicate OK [11:56:48]SAM_PROTO_ClearQueue done [11:56:48]KKMCreateOFDPacket [11:56:48]OFDProtocolAddRootSTLVToBuf [11:56:48]FM_MakeSignedData [11:56:48]FM_MakeSignedData [11:56:48]SAM_PROTO_SignData [11:56:48]wFMCommunicate request_size=4 [11:56:48]MH_SAM_APDU [11:56:48]CAPDU: 80 0D 01 02 [11:56:48]Write to MH i2c: E2 08 00 44 54 80 0D 01 02 00 00 00 00 11 [11:56:48]Write i2c OK [11:56:48]MH_I2C_Read... [11:56:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:48]Read from MH i2c: E2 [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: E2 03 00 [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: E2 03 00 44 54 00 90 00 0C [11:56:48]RAPDU: 90 00 [11:56:48]wFMCommunicate OK [11:56:48]wFMCommunicate request_size=255 [11:56:48]MH_SAM_APDU [11:56:48]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 89 B7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 37 E1 01 00 35 04 06 00 [11:56:48]Write to MH i2c: E2 02 01 45 54 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 89 B7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 37 E1 01 00 35 04 06 00 00 00 59 [11:56:48]Write i2c OK [11:56:48]MH_I2C_Read... [11:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:48]Read from MH i2c: E2 [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: E2 03 00 [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: E2 03 00 45 54 00 90 00 0D [11:56:48]RAPDU: 90 00 [11:56:48]wFMCommunicate OK [11:56:48]wFMCommunicate request_size=11 [11:56:48]MH_SAM_APDU [11:56:48]CAPDU: 80 0D 02 02 06 F2 7C 73 39 E9 18 [11:56:48]Write to MH i2c: E2 0E 00 46 54 80 0D 02 02 06 00 F2 7C 73 39 E9 18 00 00 3B [11:56:48]Write i2c OK [11:56:48]MH_I2C_Read... [11:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:48]Read from MH i2c: E2 [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: E2 03 00 [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: E2 03 00 46 54 00 90 00 0E [11:56:48]RAPDU: 90 00 [11:56:48]wFMCommunicate OK [11:56:48]wFMCommunicate request_size=4 [11:56:48]MH_SAM_APDU [11:56:48]CAPDU: 80 0D 03 02 [11:56:48]Write to MH i2c: E2 08 00 47 54 80 0D 03 02 00 00 00 00 16 [11:56:48]Write i2c OK [11:56:48]MH_I2C_Read... [11:56:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:48]Read from MH i2c: E2 [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: E2 0B 00 [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: E2 0B 00 47 54 00 4A 95 6B 28 54 1F 61 52 90 00 AF [11:56:48]RAPDU: 4A 95 6B 28 54 1F 61 52 90 00 [11:56:48]wFMCommunicate OK [11:56:48]SAM_PROTO_SignData done [11:56:48]FM_MakeSignedData done [11:56:48]CreateOFDProtocolMessage [11:56:48]wFMCommunicate request_size=4 [11:56:48]MH_SAM_APDU [11:56:48]CAPDU: 80 11 00 00 [11:56:48]Write to MH i2c: E2 08 00 48 54 80 11 00 00 00 00 00 00 16 [11:56:48]Write i2c OK [11:56:48]MH_I2C_Read... [11:56:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:48]Read from MH i2c: E2 [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: E2 17 00 [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: E2 17 00 48 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6D [11:56:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:56:48]wFMCommunicate OK [11:56:48]CreateOFDProtocolMessage done [11:56:48]OFDSenderStorePacket 123191 [11:56:48]StoreOFDPacket docnum=123191 [11:56:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 01 6C 08 01 FE 6C 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 89 B7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 37 E1 01 00 35 04 06 00 F2 7C 73 39 E9 18 4A 95 6B 28 54 1F 61 52 [11:56:48]CheckFolder [11:56:48]dirname=/storage/ofd_packets [11:56:48]CheckFolder done [11:56:48]ProducePacketName [11:56:48]name=ofd_packets/00123191 [11:56:48]NVStorageSaveData ofd_packets/00123191 [11:56:48]File name is /storage/ofd_packets/00123191 [11:56:48]Write 302 bytes [11:56:48]NVStorageSaveData done [11:56:48]OFDSenderStorePacket done [11:56:48]KKMCreateOFDPacket done [11:56:48]NVStorageSaveData kkm_last_timestamp [11:56:48]File name is /storage/kkm_last_timestamp [11:56:48]Write 4 bytes [11:56:48]NVStorageSaveData done [11:56:48]ExternCall_PrintAddStr [11:56:48]wPrintStart [11:56:48]Write to MH i2c: 01 00 00 49 54 9D [11:56:48]Write i2c OK [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: 01 [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: 01 07 00 [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: 01 07 00 49 54 00 00 00 00 00 FF 0F B2 [11:56:48]RasterBufferAndPrint [11:56:48]line Счет N : (1)718025 [11:56:48]line ИНН: 02508201610067 [11:56:48]line Контрольно-Кассовый Чек [11:56:48]line ПРОДАЖА [11:56:48]line ТРК (МРК, ГНК) : 6 [11:56:48]line Товар: 2710194210 [11:56:48]line ДТ(л)-К-5 [11:56:48]line 13.360 * 74.90 [11:56:48]line = 1000.66 [11:56:48]line НДС 12% НСП 1% [11:56:48]line > о реализуемом товаре [11:56:48]line ОКРУГЛЕНИЕ: -0.66 [11:56:48]line ИТОГО: 1000.00 [11:56:48]line Внесено: 1000.00 [11:56:48]line СДАЧА: 0.00 [11:56:48]line НСП 1% : 8.85 [11:56:48]line НДС 12% : 106.26 [11:56:48]line Наличными: 1000.00 [11:56:48]line Безнал.: 0.00 [11:56:48]line Место: АЗС № 64 "Партнер Нефть" [11:56:48]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:56:48]line СНО: Общий режим [11:56:48]line Чек 45 26.11.2024 11:56 [11:56:48]line Смена: 557 ФФД: 1.0 [11:56:48]line ЗНМ: 0300000033 [11:56:48]line РНМ: 0000000000092681 [11:56:48]line Версия ККМ: 001 [11:56:48]line ФМ: 0000000000874881 [11:56:48]line ФД: 123191 [11:56:48]line ФПД: 266616323041560 [11:56:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T115657&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123191&fm=266616323041560&tin=02508201610067®Number=0000000000092681&sum=100000 [11:56:48]OFD Sender: Processing packet 123191 [packets to send 7, broken 6] [11:56:48]ProducePacketName [11:56:48]name=ofd_packets/00123191 [11:56:48]OFD Sender: To server: pG, [11:56:48]CommunicateWithHost lk.salyk.kg:30040 [11:56:48]ConnectInit lk.salyk.kg [11:56:48]written 0, free lines is 4095 [11:56:49]Connected sock=10 [11:56:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 01 6C 08 01 FE 6C 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 89 B7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 37 E1 01 00 35 04 06 00 F2 7C 73 39 E9 18 4A 95 6B 28 54 1F 61 52 [11:56:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 76 97 47 00 68 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 37 E1 01 00 F4 03 04 00 4B 63 45 67 B6 04 01 00 00 C1 A1 F5 B0 A4 B7 3B 5D [11:56:49]CommunicateWithHost err = 0 [11:56:49]CheckOFDResponse [11:56:49]1017 (14) - 77093643461234 [11:56:49]1041 (16) - 0000000000874881 [11:56:49]1040 (4) - 123191 [11:56:49]1012 (4) - 26.11.2024 05:57 [11:56:49]1206 (1) - 0 [11:56:49]OFD Sender: Remove packet 123191 [11:56:49]ProducePacketName [11:56:49]name=ofd_packets/00123191 [11:56:49]NVStorageDeleteData [11:56:49]Write to MH i2c: 01 00 00 74 54 C8 [11:56:49]Write i2c OK [11:56:49]MH_I2C_Read... [11:56:49]Read from MH i2c: 01 [11:56:49]MH_I2C_Read... [11:56:49]Read from MH i2c: 01 07 00 [11:56:49]MH_I2C_Read... [11:56:49]Read from MH i2c: 01 07 00 74 54 00 00 00 00 00 40 0C 1B [11:56:49]RasterBufferAndPrint [11:56:49]line [11:56:49]line [11:56:49]line [11:56:49]line [11:56:49]line [11:56:49]written 0, free lines is 3142 [11:56:49]MH_Cut [11:56:49]Write to MH i2c: D1 01 00 7B 54 01 A1 [11:56:49]Write i2c OK [11:56:49]MH_I2C_Read... [11:56:49]Read from MH i2c: D1 [11:56:49]MH_I2C_Read... [11:56:49]Read from MH i2c: D1 01 00 [11:56:49]MH_I2C_Read... [11:56:49]Read from MH i2c: D1 01 00 7B 54 00 A0 [11:56:49]Write to MH i2c: 01 00 00 7C 54 D0 [11:56:49]Write i2c OK [11:56:49]MH_I2C_Read... [11:56:49]OFD Sender: No OFD packet to send [11:56:50]*** Cut start [11:56:50]*** Partial cut [11:56:50]*** CUTSNS_PIN = 1 [11:56:50]*** CUTSNS_PIN = 0 [11:56:51]*** Brake cut motor [11:56:51]Read from MH i2c: 01 [11:56:51]MH_I2C_Read... [11:56:51]*** Stop cut motor [11:56:51]*** Cut end [11:56:51]Read from MH i2c: 01 07 00 [11:56:51]MH_I2C_Read... [11:56:51]Read from MH i2c: 01 07 00 7C 54 00 00 00 00 00 FF 0F E5 [11:56:51]process_action close_receipt done [11:56:51]requested_data is exist [11:56:51]produce_requested_data [11:56:51]requested_item fm.sn is exist - process it [11:56:51]wFMCommunicate request_size=4 [11:56:51]MH_SAM_APDU [11:56:51]CAPDU: 80 11 00 00 [11:56:51]Write to MH i2c: E2 08 00 7D 54 80 11 00 00 00 00 00 00 4B [11:56:51]Write i2c OK [11:56:51]MH_I2C_Read... [11:56:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:51]Read from MH i2c: E2 [11:56:51]MH_I2C_Read... [11:56:51]Read from MH i2c: E2 17 00 [11:56:51]MH_I2C_Read... [11:56:51]Read from MH i2c: E2 17 00 7D 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A2 [11:56:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:56:51]wFMCommunicate OK [11:56:51]requested_item fd.num is exist - process it [11:56:51]SAM_PROTO_GetFieldsCounters [11:56:51]wFMCommunicate request_size=4 [11:56:51]MH_SAM_APDU [11:56:51]CAPDU: 80 13 00 00 [11:56:51]Write to MH i2c: E2 08 00 7E 54 80 13 00 00 00 00 00 00 4E [11:56:51]Write i2c OK [11:56:51]MH_I2C_Read... [11:56:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:51]Read from MH i2c: E2 [11:56:51]MH_I2C_Read... [11:56:51]Read from MH i2c: E2 62 00 [11:56:51]MH_I2C_Read... [11:56:51]Read from MH i2c: E2 62 00 7E 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 37 E1 01 00 0E 04 04 00 2D 02 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 43 [11:56:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 37 E1 01 00 0E 04 04 00 2D 02 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 [11:56:51]wFMCommunicate OK [11:56:51]SAM_PROTO_GetFieldsCounters done [11:56:51]requested_item shift.num is exist - process it [11:56:51]requested_item shift.opened is exist - process it [11:56:51]req_shift_opened [11:56:51]FM_GetShiftState [11:56:51]SAM_PROTO_GetShiftState [11:56:51]wFMCommunicate request_size=4 [11:56:51]MH_SAM_APDU [11:56:51]CAPDU: 80 13 01 00 [11:56:51]Write to MH i2c: E2 08 00 7F 54 80 13 01 00 00 00 00 00 50 [11:56:51]Write i2c OK [11:56:51]MH_I2C_Read... [11:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:51]Read from MH i2c: E2 [11:56:51]MH_I2C_Read... [11:56:51]Read from MH i2c: E2 0E 00 [11:56:51]MH_I2C_Read... [11:56:51]Read from MH i2c: E2 0E 00 7F 54 00 09 00 01 98 11 45 67 00 00 00 00 90 00 B1 [11:56:51]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [11:56:51]wFMCommunicate OK [11:56:51]SAM_PROTO_GetShiftState done [11:56:51]FM_GetShiftState done [11:56:51]req_shift_opened done [11:56:51]requested_item shift.open_date is exist - process it [11:56:51]req_shift_open_date [11:56:51]req_shift_open_date done [11:56:51]produce_requested_data done [11:56:51]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123191,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [11:56:51]process_action_free close_receipt [11:56:51]json_value_free [11:56:51]json_value_free done [11:56:51]process_json_proto returns [11:56:51]Send response to host [11:56:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123191,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [11:56:51]free response buf [11:56:51]execute_script done [11:56:51]execute_script returns [11:56:51]free content buf [11:56:51]Sock 9.Close socket [11:56:51]Sock 9.Thread stoped [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:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:13]accept exits with 7 [12:08:13]New connection [12:08:13]New thread 3066723684 created [12:08:13]Thread 3066580324 joined [12:08:13]Waiting for new connection... [12:08:13] Sock 7.Parse request [12:08:13]Sock 7.Check first char [12:08:13]Sock 7.First char is OK [12:08:13]request: POST /json_proto HTTP/1.0 [12:08:13]Method: POST [12:08:13]URL: /json_proto [12:08:13]Method is POST - this is cgi request [12:08:13]url: /json_proto [12:08:13]query_string will be loaded in cgi processing [12:08:13]execute_cgi json_proto POST (null) [12:08:13]execute_cgi path=json_proto method=POST [12:08:13]POST find Content-Length [12:08:13]Host: 172.17.37.4:8080 [12:08:13]Content-Length: 816 [12:08:13]Content-Type: application/json [12:08:13] [12:08:13]POST finish read [12:08:13]Found Content-Length = 816 [12:08:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:13]execute_script... [12:08:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:13]POST & json_proto [12:08:13]process_json_proto [12:08:13]json parsed OK: [12:08:13]protocol is kg_v1.0 [12:08:13]action value=close_receipt [12:08:13]process_action close_receipt [12:08:13]cmd_close_receipt [12:08:13]MH_GetDate [12:08:13]Write to MH i2c: F0 00 00 80 54 C3 [12:08:13]Write i2c OK [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: F0 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: F0 09 00 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: F0 09 00 80 54 00 37 BA 45 67 B8 5A 43 67 25 [12:08:13]GetLastDocTimeStamp 1732622217 [12:08:13]current date 1732622903 [12:08:13]FM_GetShiftState [12:08:13]SAM_PROTO_GetShiftState [12:08:13]wFMCommunicate request_size=4 [12:08:13]MH_SAM_APDU [12:08:13]CAPDU: 80 13 01 00 [12:08:13]Write to MH i2c: E2 08 00 81 54 80 13 01 00 00 00 00 00 52 [12:08:13]Write i2c OK [12:08:13]MH_I2C_Read... [12:08:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:13]Read from MH i2c: E2 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: E2 0E 00 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: E2 0E 00 81 54 00 09 00 01 98 11 45 67 00 00 00 00 90 00 B3 [12:08:13]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:08:13]wFMCommunicate OK [12:08:13]SAM_PROTO_GetShiftState done [12:08:13]FM_GetShiftState done [12:08:13]opened in 1732579736 [12:08:13]opened+sec_in_day 1732666136 [12:08:13]quantity*price = 40035 [12:08:13]sum+1 = 40037 [12:08:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.36 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 0.00 Безнал.: 400.36 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 46 26.11.2024 12:08 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123192 ФПД: 182566870066843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T120823&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123192&fm=182566870066843&tin=02508201610067®Number=0000000000092681&sum=40036 [12:08:14]StoreToDocumentArchive [12:08:14]shift 557 fd 123192 [12:08:14]save to /storage/0557/doc_00123192 [12:08:14]save last doc name /storage/0557/doc_00123192 to /storage/kkm_last_doc_name [12:08:14]save OK [12:08:14]Clear old archive folders... [12:08:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:14]tlvbuf is 020D39F0 [12:08:14]SAM_PROTO_ClearQueue [12:08:14]wFMCommunicate request_size=4 [12:08:14]MH_SAM_APDU [12:08:14]CAPDU: 80 09 00 00 [12:08:14]Write to MH i2c: E2 08 00 8E 54 80 09 00 00 00 00 00 00 54 [12:08:14]Write i2c OK [12:08:14]MH_I2C_Read... [12:08:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:14]Read from MH i2c: E2 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: E2 03 00 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: E2 03 00 8E 54 00 90 00 56 [12:08:14]RAPDU: 90 00 [12:08:14]wFMCommunicate OK [12:08:14]SAM_PROTO_ClearQueue done [12:08:14]KKMCreateOFDPacket [12:08:14]OFDProtocolAddRootSTLVToBuf [12:08:14]FM_MakeSignedData [12:08:14]FM_MakeSignedData [12:08:14]SAM_PROTO_SignData [12:08:14]wFMCommunicate request_size=4 [12:08:14]MH_SAM_APDU [12:08:14]CAPDU: 80 0D 01 02 [12:08:14]Write to MH i2c: E2 08 00 8F 54 80 0D 01 02 00 00 00 00 5C [12:08:14]Write i2c OK [12:08:14]MH_I2C_Read... [12:08:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:14]Read from MH i2c: E2 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: E2 03 00 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: E2 03 00 8F 54 00 90 00 57 [12:08:14]RAPDU: 90 00 [12:08:14]wFMCommunicate OK [12:08:14]wFMCommunicate request_size=255 [12:08:14]MH_SAM_APDU [12:08:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 37 BA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 38 E1 01 00 35 04 06 00 A6 [12:08:14]Write to MH i2c: E2 02 01 90 54 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 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 37 BA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 38 E1 01 00 35 04 06 00 A6 00 00 EC [12:08:14]Write i2c OK [12:08:14]MH_I2C_Read... [12:08:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:14]Read from MH i2c: E2 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: E2 03 00 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: E2 03 00 90 54 00 90 00 58 [12:08:14]RAPDU: 90 00 [12:08:14]wFMCommunicate OK [12:08:14]wFMCommunicate request_size=10 [12:08:14]MH_SAM_APDU [12:08:14]CAPDU: 80 0D 02 02 05 0B 29 70 26 9B [12:08:14]Write to MH i2c: E2 0D 00 91 54 80 0D 02 02 05 00 0B 29 70 26 9B 00 00 CE [12:08:14]Write i2c OK [12:08:14]MH_I2C_Read... [12:08:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:14]Read from MH i2c: E2 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: E2 03 00 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: E2 03 00 91 54 00 90 00 59 [12:08:14]RAPDU: 90 00 [12:08:14]wFMCommunicate OK [12:08:14]wFMCommunicate request_size=4 [12:08:14]MH_SAM_APDU [12:08:14]CAPDU: 80 0D 03 02 [12:08:14]Write to MH i2c: E2 08 00 92 54 80 0D 03 02 00 00 00 00 61 [12:08:14]Write i2c OK [12:08:14]MH_I2C_Read... [12:08:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:14]Read from MH i2c: E2 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: E2 0B 00 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: E2 0B 00 92 54 00 8B 40 23 FB D9 16 00 A5 90 00 DF [12:08:14]RAPDU: 8B 40 23 FB D9 16 00 A5 90 00 [12:08:14]wFMCommunicate OK [12:08:14]SAM_PROTO_SignData done [12:08:14]FM_MakeSignedData done [12:08:14]CreateOFDProtocolMessage [12:08:14]wFMCommunicate request_size=4 [12:08:14]MH_SAM_APDU [12:08:14]CAPDU: 80 11 00 00 [12:08:14]Write to MH i2c: E2 08 00 93 54 80 11 00 00 00 00 00 00 61 [12:08:14]Write i2c OK [12:08:14]MH_I2C_Read... [12:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:14]Read from MH i2c: E2 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: E2 17 00 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: E2 17 00 93 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B8 [12:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:08:14]wFMCommunicate OK [12:08:14]CreateOFDProtocolMessage done [12:08:14]OFDSenderStorePacket 123192 [12:08:14]StoreOFDPacket docnum=123192 [12:08:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 86 58 07 01 49 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 37 BA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 38 E1 01 00 35 04 06 00 A6 0B 29 70 26 9B 8B 40 23 FB D9 16 00 A5 [12:08:14]CheckFolder [12:08:14]dirname=/storage/ofd_packets [12:08:14]CheckFolder done [12:08:14]ProducePacketName [12:08:14]name=ofd_packets/00123192 [12:08:14]NVStorageSaveData ofd_packets/00123192 [12:08:14]File name is /storage/ofd_packets/00123192 [12:08:14]Write 301 bytes [12:08:14]NVStorageSaveData done [12:08:14]OFDSenderStorePacket done [12:08:14]KKMCreateOFDPacket done [12:08:14]NVStorageSaveData kkm_last_timestamp [12:08:14]File name is /storage/kkm_last_timestamp [12:08:14]Write 4 bytes [12:08:14]NVStorageSaveData done [12:08:14]ExternCall_PrintAddStr [12:08:14]wPrintStart [12:08:14]Write to MH i2c: 01 00 00 94 54 E8 [12:08:14]Write i2c OK [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: 01 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: 01 07 00 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: 01 07 00 94 54 00 00 00 00 00 FF 0F FD [12:08:14]RasterBufferAndPrint [12:08:14]line Счет N : (1)718026 [12:08:14]line ИНН: 02508201610067 [12:08:14]line Контрольно-Кассовый Чек [12:08:14]line ПРОДАЖА [12:08:14]line ТРК (МРК, ГНК) : 42 [12:08:14]line Товар: 2710124130 [12:08:14]line Аи-92-К-4 [12:08:14]line 5.940 * 67.40 [12:08:14]line = 400.36 [12:08:14]line НДС 12% НСП 1% [12:08:14]line > о реализуемом товаре [12:08:14]line ИТОГО: 400.36 [12:08:14]line НСП 1% : 3.54 [12:08:14]line НДС 12% : 42.52 [12:08:14]line Наличными: 0.00 [12:08:14]line Безнал.: 400.36 [12:08:14]line Место: АЗС № 64 "Партнер Нефть" [12:08:14]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:08:14]line СНО: Общий режим [12:08:14]line Чек 46 26.11.2024 12:08 [12:08:14]line Смена: 557 ФФД: 1.0 [12:08:14]line ЗНМ: 0300000033 [12:08:14]line РНМ: 0000000000092681 [12:08:14]line Версия ККМ: 001 [12:08:14]line Платежная система: Бакай Банк [12:08:14]line ФМ: 0000000000874881 [12:08:14]line ФД: 123192 [12:08:15]line ФПД: 182566870066843 [12:08:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T120823&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123192&fm=182566870066843&tin=02508201610067®Number=0000000000092681&sum=40036 [12:08:15]OFD Sender: Processing packet 123192 [packets to send 7, broken 6] [12:08:15]ProducePacketName [12:08:15]name=ofd_packets/00123192 [12:08:15]OFD Sender: To server: pG, [12:08:15]CommunicateWithHost lk.salyk.kg:30040 [12:08:15]ConnectInit lk.salyk.kg [12:08:15]written 0, free lines is 4095 [12:08:15]Connected sock=10 [12:08:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 86 58 07 01 49 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 37 BA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 38 E1 01 00 35 04 06 00 A6 0B 29 70 26 9B 8B 40 23 FB D9 16 00 A5 [12:08:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 48 17 47 00 63 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 38 E1 01 00 F4 03 04 00 FA 65 45 67 B6 04 01 00 00 57 7D 14 DA 37 23 C0 97 [12:08:15]CommunicateWithHost err = 0 [12:08:15]CheckOFDResponse [12:08:15]1017 (14) - 77093643461234 [12:08:15]1041 (16) - 0000000000874881 [12:08:15]1040 (4) - 123192 [12:08:15]1012 (4) - 26.11.2024 06:08 [12:08:15]1206 (1) - 0 [12:08:15]OFD Sender: Remove packet 123192 [12:08:15]ProducePacketName [12:08:15]name=ofd_packets/00123192 [12:08:15]NVStorageDeleteData [12:08:15]Write to MH i2c: 01 00 00 BE 54 12 [12:08:15]Write i2c OK [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: 01 [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: 01 07 00 [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: 01 07 00 BE 54 00 00 00 00 00 5D 0C 82 [12:08:15]RasterBufferAndPrint [12:08:15]line [12:08:15]line [12:08:15]line [12:08:15]line [12:08:15]line [12:08:15]written 0, free lines is 3169 [12:08:15]MH_Cut [12:08:15]Write to MH i2c: D1 01 00 C5 54 01 EB [12:08:15]Write i2c OK [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: D1 [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: D1 01 00 [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: D1 01 00 C5 54 00 EA [12:08:15]Write to MH i2c: 01 00 00 C6 54 1A [12:08:15]Write i2c OK [12:08:15]MH_I2C_Read... [12:08:15]OFD Sender: No OFD packet to send [12:08:16]*** Cut start [12:08:16]*** Partial cut [12:08:16]*** CUTSNS_PIN = 1 [12:08:17]*** CUTSNS_PIN = 0 [12:08:17]*** Brake cut motor [12:08:17]Read from MH i2c: 01 [12:08:17]MH_I2C_Read... [12:08:17]*** Stop cut motor [12:08:17]*** Cut end [12:08:17]Read from MH i2c: 01 07 00 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: 01 07 00 C6 54 00 00 00 00 00 FF 0F 2F [12:08:17]process_action close_receipt done [12:08:17]requested_data is exist [12:08:17]produce_requested_data [12:08:17]requested_item fm.sn is exist - process it [12:08:17]wFMCommunicate request_size=4 [12:08:17]MH_SAM_APDU [12:08:17]CAPDU: 80 11 00 00 [12:08:17]Write to MH i2c: E2 08 00 C7 54 80 11 00 00 00 00 00 00 95 [12:08:17]Write i2c OK [12:08:17]MH_I2C_Read... [12:08:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:17]Read from MH i2c: E2 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 17 00 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 17 00 C7 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EC [12:08:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:08:17]wFMCommunicate OK [12:08:17]requested_item fd.num is exist - process it [12:08:17]SAM_PROTO_GetFieldsCounters [12:08:17]wFMCommunicate request_size=4 [12:08:17]MH_SAM_APDU [12:08:17]CAPDU: 80 13 00 00 [12:08:17]Write to MH i2c: E2 08 00 C8 54 80 13 00 00 00 00 00 00 98 [12:08:17]Write i2c OK [12:08:17]MH_I2C_Read... [12:08:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:17]Read from MH i2c: E2 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 62 00 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 62 00 C8 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 38 E1 01 00 0E 04 04 00 2D 02 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 91 [12:08:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 38 E1 01 00 0E 04 04 00 2D 02 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 [12:08:17]wFMCommunicate OK [12:08:17]SAM_PROTO_GetFieldsCounters done [12:08:17]requested_item shift.num is exist - process it [12:08:17]requested_item shift.opened is exist - process it [12:08:17]req_shift_opened [12:08:17]FM_GetShiftState [12:08:17]SAM_PROTO_GetShiftState [12:08:17]wFMCommunicate request_size=4 [12:08:17]MH_SAM_APDU [12:08:17]CAPDU: 80 13 01 00 [12:08:17]Write to MH i2c: E2 08 00 C9 54 80 13 01 00 00 00 00 00 9A [12:08:17]Write i2c OK [12:08:17]MH_I2C_Read... [12:08:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:17]Read from MH i2c: E2 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 0E 00 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 0E 00 C9 54 00 09 00 01 98 11 45 67 00 00 00 00 90 00 FB [12:08:17]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:08:17]wFMCommunicate OK [12:08:17]SAM_PROTO_GetShiftState done [12:08:17]FM_GetShiftState done [12:08:17]req_shift_opened done [12:08:17]requested_item shift.open_date is exist - process it [12:08:17]req_shift_open_date [12:08:17]req_shift_open_date done [12:08:17]produce_requested_data done [12:08:17]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123192,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [12:08:17]process_action_free close_receipt [12:08:17]json_value_free [12:08:17]json_value_free done [12:08:17]process_json_proto returns [12:08:17]Send response to host [12:08:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123192,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [12:08:17]free response buf [12:08:17]execute_script done [12:08:17]execute_script returns [12:08:17]free content buf [12:08:17]Sock 7.Close socket [12:08:17]Sock 7.Thread stoped [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:11]accept exits with 9 [12:12:11]New connection [12:12:11]New thread 3066580324 created [12:12:11]Thread 3066723684 joined [12:12:11]Waiting for new connection... [12:12:11] Sock 9.Parse request [12:12:11]Sock 9.Check first char [12:12:11]Sock 9.First char is OK [12:12:11]request: POST /json_proto HTTP/1.0 [12:12:11]Method: POST [12:12:11]URL: /json_proto [12:12:11]Method is POST - this is cgi request [12:12:11]url: /json_proto [12:12:11]query_string will be loaded in cgi processing [12:12:11]execute_cgi json_proto POST (null) [12:12:11]execute_cgi path=json_proto method=POST [12:12:11]POST find Content-Length [12:12:11]Host: 172.17.37.4:8080 [12:12:11]Content-Length: 686 [12:12:11]Content-Type: application/json [12:12:11] [12:12:11]POST finish read [12:12:11]Found Content-Length = 686 [12:12:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:11]execute_script... [12:12:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:11]POST & json_proto [12:12:11]process_json_proto [12:12:11]json parsed OK: [12:12:11]protocol is kg_v1.0 [12:12:11]action value=close_receipt [12:12:11]process_action close_receipt [12:12:11]cmd_close_receipt [12:12:11]MH_GetDate [12:12:11]Write to MH i2c: F0 00 00 CA 54 0D [12:12:11]Write i2c OK [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: F0 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: F0 09 00 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: F0 09 00 CA 54 00 25 BB 45 67 B8 5A 43 67 5E [12:12:11]GetLastDocTimeStamp 1732622903 [12:12:11]current date 1732623141 [12:12:11]FM_GetShiftState [12:12:11]SAM_PROTO_GetShiftState [12:12:11]wFMCommunicate request_size=4 [12:12:11]MH_SAM_APDU [12:12:11]CAPDU: 80 13 01 00 [12:12:11]Write to MH i2c: E2 08 00 CB 54 80 13 01 00 00 00 00 00 9C [12:12:11]Write i2c OK [12:12:11]MH_I2C_Read... [12:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:11]Read from MH i2c: E2 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 0E 00 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 0E 00 CB 54 00 09 00 01 98 11 45 67 00 00 00 00 90 00 FD [12:12:11]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:12:11]wFMCommunicate OK [12:12:11]SAM_PROTO_GetShiftState done [12:12:11]FM_GetShiftState done [12:12:11]opened in 1732579736 [12:12:11]opened+sec_in_day 1732666136 [12:12:11]quantity*price = 100066 [12:12:11]sum+1 = 100067 [12:12:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 47 26.11.2024 12:12 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123193 ФПД: 14877240029567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T121221&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123193&fm=14877240029567&tin=02508201610067®Number=0000000000092681&sum=100000 [12:12:12]StoreToDocumentArchive [12:12:12]shift 557 fd 123193 [12:12:12]save to /storage/0557/doc_00123193 [12:12:12]save last doc name /storage/0557/doc_00123193 to /storage/kkm_last_doc_name [12:12:12]save OK [12:12:12]Clear old archive folders... [12:12:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:12:12]tlvbuf is 01FBE6B0 [12:12:12]SAM_PROTO_ClearQueue [12:12:12]wFMCommunicate request_size=4 [12:12:12]MH_SAM_APDU [12:12:12]CAPDU: 80 09 00 00 [12:12:12]Write to MH i2c: E2 08 00 D8 54 80 09 00 00 00 00 00 00 9E [12:12:12]Write i2c OK [12:12:12]MH_I2C_Read... [12:12:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:12]Read from MH i2c: E2 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 03 00 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 03 00 D8 54 00 90 00 A0 [12:12:12]RAPDU: 90 00 [12:12:12]wFMCommunicate OK [12:12:12]SAM_PROTO_ClearQueue done [12:12:12]KKMCreateOFDPacket [12:12:12]OFDProtocolAddRootSTLVToBuf [12:12:12]FM_MakeSignedData [12:12:12]FM_MakeSignedData [12:12:12]SAM_PROTO_SignData [12:12:12]wFMCommunicate request_size=4 [12:12:12]MH_SAM_APDU [12:12:12]CAPDU: 80 0D 01 02 [12:12:12]Write to MH i2c: E2 08 00 D9 54 80 0D 01 02 00 00 00 00 A6 [12:12:12]Write i2c OK [12:12:12]MH_I2C_Read... [12:12:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:12]Read from MH i2c: E2 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 03 00 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 03 00 D9 54 00 90 00 A1 [12:12:12]RAPDU: 90 00 [12:12:12]wFMCommunicate OK [12:12:12]wFMCommunicate request_size=255 [12:12:12]MH_SAM_APDU [12:12:12]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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 25 BB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 39 E1 01 00 35 04 06 00 [12:12:12]Write to MH i2c: E2 02 01 DA 54 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 25 BB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 39 E1 01 00 35 04 06 00 00 00 92 [12:12:12]Write i2c OK [12:12:12]MH_I2C_Read... [12:12:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:12]Read from MH i2c: E2 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 03 00 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 03 00 DA 54 00 90 00 A2 [12:12:12]RAPDU: 90 00 [12:12:12]wFMCommunicate OK [12:12:12]wFMCommunicate request_size=11 [12:12:12]MH_SAM_APDU [12:12:12]CAPDU: 80 0D 02 02 06 0D 87 E0 9B 71 7F [12:12:12]Write to MH i2c: E2 0E 00 DB 54 80 0D 02 02 06 00 0D 87 E0 9B 71 7F 00 00 B4 [12:12:12]Write i2c OK [12:12:12]MH_I2C_Read... [12:12:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:12]Read from MH i2c: E2 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 03 00 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 03 00 DB 54 00 90 00 A3 [12:12:12]RAPDU: 90 00 [12:12:12]wFMCommunicate OK [12:12:12]wFMCommunicate request_size=4 [12:12:12]MH_SAM_APDU [12:12:12]CAPDU: 80 0D 03 02 [12:12:12]Write to MH i2c: E2 08 00 DC 54 80 0D 03 02 00 00 00 00 AB [12:12:12]Write i2c OK [12:12:12]MH_I2C_Read... [12:12:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:12]Read from MH i2c: E2 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 0B 00 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 0B 00 DC 54 00 46 F5 93 2A 22 08 16 A8 90 00 8C [12:12:12]RAPDU: 46 F5 93 2A 22 08 16 A8 90 00 [12:12:12]wFMCommunicate OK [12:12:12]SAM_PROTO_SignData done [12:12:12]FM_MakeSignedData done [12:12:12]CreateOFDProtocolMessage [12:12:12]wFMCommunicate request_size=4 [12:12:12]MH_SAM_APDU [12:12:12]CAPDU: 80 11 00 00 [12:12:12]Write to MH i2c: E2 08 00 DD 54 80 11 00 00 00 00 00 00 AB [12:12:12]Write i2c OK [12:12:12]MH_I2C_Read... [12:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:12]Read from MH i2c: E2 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 17 00 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 17 00 DD 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 02 [12:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:12:12]wFMCommunicate OK [12:12:12]CreateOFDProtocolMessage done [12:12:12]OFDSenderStorePacket 123193 [12:12:12]StoreOFDPacket docnum=123193 [12:12:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 4C FA 08 01 6A AA 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 25 BB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 39 E1 01 00 35 04 06 00 0D 87 E0 9B 71 7F 46 F5 93 2A 22 08 16 A8 [12:12:12]CheckFolder [12:12:12]dirname=/storage/ofd_packets [12:12:12]CheckFolder done [12:12:12]ProducePacketName [12:12:12]name=ofd_packets/00123193 [12:12:12]NVStorageSaveData ofd_packets/00123193 [12:12:12]File name is /storage/ofd_packets/00123193 [12:12:12]Write 302 bytes [12:12:12]NVStorageSaveData done [12:12:12]OFDSenderStorePacket done [12:12:12]KKMCreateOFDPacket done [12:12:12]NVStorageSaveData kkm_last_timestamp [12:12:12]File name is /storage/kkm_last_timestamp [12:12:12]Write 4 bytes [12:12:12]NVStorageSaveData done [12:12:12]ExternCall_PrintAddStr [12:12:12]wPrintStart [12:12:12]Write to MH i2c: 01 00 00 DE 54 32 [12:12:12]Write i2c OK [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: 01 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: 01 07 00 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: 01 07 00 DE 54 00 00 00 00 00 FF 0F 47 [12:12:12]RasterBufferAndPrint [12:12:12]line Счет N : (1)718027 [12:12:12]line ИНН: 02508201610067 [12:12:12]line Контрольно-Кассовый Чек [12:12:12]line ПРОДАЖА [12:12:12]line ТРК (МРК, ГНК) : 5 [12:12:12]line Товар: 2710194210 [12:12:12]line ДТ(л)-К-5 [12:12:12]line 13.360 * 74.90 [12:12:12]line = 1000.66 [12:12:12]line НДС 12% НСП 1% [12:12:12]line > о реализуемом товаре [12:12:12]line ОКРУГЛЕНИЕ: -0.66 [12:12:12]line ИТОГО: 1000.00 [12:12:12]line Внесено: 1000.00 [12:12:12]line СДАЧА: 0.00 [12:12:12]line НСП 1% : 8.85 [12:12:12]line НДС 12% : 106.26 [12:12:12]line Наличными: 1000.00 [12:12:12]line Безнал.: 0.00 [12:12:12]line Место: АЗС № 64 "Партнер Нефть" [12:12:12]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:12:12]line СНО: Общий режим [12:12:12]line Чек 47 26.11.2024 12:12 [12:12:12]line Смена: 557 ФФД: 1.0 [12:12:12]line ЗНМ: 0300000033 [12:12:12]line РНМ: 0000000000092681 [12:12:12]line Версия ККМ: 001 [12:12:12]line ФМ: 0000000000874881 [12:12:12]line ФД: 123193 [12:12:12]line ФПД: 14877240029567 [12:12:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T121221&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123193&fm=14877240029567&tin=02508201610067®Number=0000000000092681&sum=100000 [12:12:13]OFD Sender: Processing packet 123193 [packets to send 7, broken 6] [12:12:13]ProducePacketName [12:12:13]name=ofd_packets/00123193 [12:12:13]OFD Sender: To server: pG, [12:12:13]CommunicateWithHost lk.salyk.kg:30040 [12:12:13]ConnectInit lk.salyk.kg [12:12:13]written 0, free lines is 4095 [12:12:13]Connected sock=10 [12:12:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 4C FA 08 01 6A AA 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 25 BB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 39 E1 01 00 35 04 06 00 0D 87 E0 9B 71 7F 46 F5 93 2A 22 08 16 A8 [12:12:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 B9 38 47 00 E7 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 39 E1 01 00 F4 03 04 00 E8 66 45 67 B6 04 01 00 00 EF 42 EC FC 89 23 34 C8 [12:12:13]CommunicateWithHost err = 0 [12:12:13]CheckOFDResponse [12:12:13]1017 (14) - 77093643461234 [12:12:13]1041 (16) - 0000000000874881 [12:12:13]1040 (4) - 123193 [12:12:13]1012 (4) - 26.11.2024 06:12 [12:12:13]1206 (1) - 0 [12:12:13]OFD Sender: Remove packet 123193 [12:12:13]ProducePacketName [12:12:13]name=ofd_packets/00123193 [12:12:13]NVStorageDeleteData [12:12:13]Write to MH i2c: 01 00 00 09 55 5E [12:12:13]Write i2c OK [12:12:13]MH_I2C_Read... [12:12:13]Read from MH i2c: 01 [12:12:13]MH_I2C_Read... [12:12:13]Read from MH i2c: 01 07 00 [12:12:13]MH_I2C_Read... [12:12:13]Read from MH i2c: 01 07 00 09 55 00 00 00 00 00 42 0C B3 [12:12:13]RasterBufferAndPrint [12:12:13]line [12:12:13]line [12:12:13]line [12:12:13]line [12:12:13]line [12:12:13]written 0, free lines is 3144 [12:12:13]MH_Cut [12:12:13]Write to MH i2c: D1 01 00 10 55 01 37 [12:12:13]Write i2c OK [12:12:13]MH_I2C_Read... [12:12:13]Read from MH i2c: D1 [12:12:13]MH_I2C_Read... [12:12:13]Read from MH i2c: D1 01 00 [12:12:13]MH_I2C_Read... [12:12:13]Read from MH i2c: D1 01 00 10 55 00 36 [12:12:13]Write to MH i2c: 01 00 00 11 55 66 [12:12:13]Write i2c OK [12:12:13]MH_I2C_Read... [12:12:14]OFD Sender: No OFD packet to send [12:12:15]*** Cut start [12:12:15]*** Partial cut [12:12:15]*** CUTSNS_PIN = 1 [12:12:15]*** CUTSNS_PIN = 0 [12:12:15]*** Brake cut motor [12:12:15]Read from MH i2c: 01 [12:12:15]MH_I2C_Read... [12:12:15]*** Stop cut motor [12:12:15]*** Cut end [12:12:15]Read from MH i2c: 01 07 00 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: 01 07 00 11 55 00 00 00 00 00 FF 0F 7B [12:12:15]process_action close_receipt done [12:12:15]requested_data is exist [12:12:15]produce_requested_data [12:12:15]requested_item fm.sn is exist - process it [12:12:15]wFMCommunicate request_size=4 [12:12:15]MH_SAM_APDU [12:12:15]CAPDU: 80 11 00 00 [12:12:15]Write to MH i2c: E2 08 00 12 55 80 11 00 00 00 00 00 00 E1 [12:12:15]Write i2c OK [12:12:15]MH_I2C_Read... [12:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:15]Read from MH i2c: E2 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 17 00 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 17 00 12 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 38 [12:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:12:15]wFMCommunicate OK [12:12:15]requested_item fd.num is exist - process it [12:12:15]SAM_PROTO_GetFieldsCounters [12:12:15]wFMCommunicate request_size=4 [12:12:15]MH_SAM_APDU [12:12:15]CAPDU: 80 13 00 00 [12:12:15]Write to MH i2c: E2 08 00 13 55 80 13 00 00 00 00 00 00 E4 [12:12:15]Write i2c OK [12:12:15]MH_I2C_Read... [12:12:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:15]Read from MH i2c: E2 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 62 00 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 62 00 13 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 39 E1 01 00 0E 04 04 00 2D 02 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 E1 [12:12:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 39 E1 01 00 0E 04 04 00 2D 02 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 [12:12:15]wFMCommunicate OK [12:12:15]SAM_PROTO_GetFieldsCounters done [12:12:15]requested_item shift.num is exist - process it [12:12:15]requested_item shift.opened is exist - process it [12:12:15]req_shift_opened [12:12:15]FM_GetShiftState [12:12:15]SAM_PROTO_GetShiftState [12:12:15]wFMCommunicate request_size=4 [12:12:15]MH_SAM_APDU [12:12:15]CAPDU: 80 13 01 00 [12:12:15]Write to MH i2c: E2 08 00 14 55 80 13 01 00 00 00 00 00 E6 [12:12:15]Write i2c OK [12:12:15]MH_I2C_Read... [12:12:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:16]Read from MH i2c: E2 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 0E 00 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 0E 00 14 55 00 09 00 01 98 11 45 67 00 00 00 00 90 00 47 [12:12:16]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:12:16]wFMCommunicate OK [12:12:16]SAM_PROTO_GetShiftState done [12:12:16]FM_GetShiftState done [12:12:16]req_shift_opened done [12:12:16]requested_item shift.open_date is exist - process it [12:12:16]req_shift_open_date [12:12:16]req_shift_open_date done [12:12:16]produce_requested_data done [12:12:16]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123193,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [12:12:16]process_action_free close_receipt [12:12:16]json_value_free [12:12:16]json_value_free done [12:12:16]process_json_proto returns [12:12:16]Send response to host [12:12:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123193,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [12:12:16]free response buf [12:12:16]execute_script done [12:12:16]execute_script returns [12:12:16]free content buf [12:12:16]Sock 9.Close socket [12:12:16]Sock 9.Thread stoped [12:12:19]OFD Sender: No OFD packet to send [12:12:24]OFD Sender: No OFD packet to send [12:12:29]OFD Sender: No OFD packet to send [12:12:34]OFD Sender: No OFD packet to send [12:12:39]OFD Sender: No OFD packet to send [12:12:44]OFD Sender: No OFD packet to send [12:12:49]OFD Sender: No OFD packet to send [12:12:54]OFD Sender: No OFD packet to send [12:12:59]OFD Sender: No OFD packet to send [12:13:04]OFD Sender: No OFD packet to send [12:13:09]OFD Sender: No OFD packet to send [12:13:14]OFD Sender: No OFD packet to send [12:13:19]OFD Sender: No OFD packet to send [12:13:24]OFD Sender: No OFD packet to send [12:13:29]OFD Sender: No OFD packet to send [12:13:34]OFD Sender: No OFD packet to send [12:13:39]OFD Sender: No OFD packet to send [12:13:44]OFD Sender: No OFD packet to send [12:13:49]OFD Sender: No OFD packet to send [12:13:54]OFD Sender: No OFD packet to send [12:13:59]OFD Sender: No OFD packet to send [12:14:04]OFD Sender: No OFD packet to send [12:14:09]OFD Sender: No OFD packet to send [12:14:14]OFD Sender: No OFD packet to send [12:14:19]OFD Sender: No OFD packet to send [12:14:24]OFD Sender: No OFD packet to send [12:14:29]OFD Sender: No OFD packet to send [12:14:34]OFD Sender: No OFD packet to send [12:14:39]OFD Sender: No OFD packet to send [12:14:44]OFD Sender: No OFD packet to send [12:14:49]OFD Sender: No OFD packet to send [12:14:54]OFD Sender: No OFD packet to send [12:14:59]OFD Sender: No OFD packet to send [12:15:04]OFD Sender: No OFD packet to send [12:15:09]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:19]OFD Sender: No OFD packet to send [12:15:22]accept exits with 7 [12:15:22]New connection [12:15:22]New thread 3066723684 created [12:15:22]Thread 3066580324 joined [12:15:22]Waiting for new connection... [12:15:22] Sock 7.Parse request [12:15:22]Sock 7.Check first char [12:15:22]Sock 7.First char is OK [12:15:22]request: POST /json_proto HTTP/1.0 [12:15:22]Method: POST [12:15:22]URL: /json_proto [12:15:22]Method is POST - this is cgi request [12:15:22]url: /json_proto [12:15:22]query_string will be loaded in cgi processing [12:15:22]execute_cgi json_proto POST (null) [12:15:22]execute_cgi path=json_proto method=POST [12:15:22]POST find Content-Length [12:15:22]Host: 172.17.37.4:8080 [12:15:22]Content-Length: 803 [12:15:22]Content-Type: application/json [12:15:22] [12:15:22]POST finish read [12:15:22]Found Content-Length = 803 [12:15:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 29.680, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:22]execute_script... [12: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 : (1)718028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 29.680, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:22]POST & json_proto [12:15:22]process_json_proto [12:15:22]json parsed OK: [12:15:22]protocol is kg_v1.0 [12:15:22]action value=close_receipt [12:15:22]process_action close_receipt [12:15:22]cmd_close_receipt [12:15:22]MH_GetDate [12:15:22]Write to MH i2c: F0 00 00 15 55 59 [12:15:22]Write i2c OK [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: F0 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: F0 09 00 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: F0 09 00 15 55 00 E5 BB 45 67 B8 5A 43 67 6A [12:15:22]GetLastDocTimeStamp 1732623141 [12:15:22]current date 1732623333 [12:15:22]FM_GetShiftState [12:15:22]SAM_PROTO_GetShiftState [12:15:22]wFMCommunicate request_size=4 [12:15:22]MH_SAM_APDU [12:15:22]CAPDU: 80 13 01 00 [12:15:22]Write to MH i2c: E2 08 00 16 55 80 13 01 00 00 00 00 00 E8 [12:15:22]Write i2c OK [12:15:22]MH_I2C_Read... [12:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:22]Read from MH i2c: E2 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 0E 00 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 0E 00 16 55 00 09 00 01 98 11 45 67 00 00 00 00 90 00 49 [12:15:22]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:15:22]wFMCommunicate OK [12:15:22]SAM_PROTO_GetShiftState done [12:15:22]FM_GetShiftState done [12:15:22]opened in 1732579736 [12:15:22]opened+sec_in_day 1732666136 [12:15:22]quantity*price = 200043 [12:15:22]sum+1 = 200044 [12:15:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 48 26.11.2024 12:15 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123194 ФПД: 75473013999944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T121533&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123194&fm=75473013999944&tin=02508201610067®Number=0000000000092681&sum=200043 [12:15:23]StoreToDocumentArchive [12:15:23]shift 557 fd 123194 [12:15:23]save to /storage/0557/doc_00123194 [12:15:23]save last doc name /storage/0557/doc_00123194 to /storage/kkm_last_doc_name [12:15:23]save OK [12:15:23]Clear old archive folders... [12:15:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:23]tlvbuf is 01FBE6E0 [12:15:23]SAM_PROTO_ClearQueue [12:15:23]wFMCommunicate request_size=4 [12:15:23]MH_SAM_APDU [12:15:23]CAPDU: 80 09 00 00 [12:15:23]Write to MH i2c: E2 08 00 23 55 80 09 00 00 00 00 00 00 EA [12:15:23]Write i2c OK [12:15:23]MH_I2C_Read... [12:15:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:23]Read from MH i2c: E2 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: E2 03 00 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: E2 03 00 23 55 00 90 00 EC [12:15:23]RAPDU: 90 00 [12:15:23]wFMCommunicate OK [12:15:23]SAM_PROTO_ClearQueue done [12:15:23]KKMCreateOFDPacket [12:15:23]OFDProtocolAddRootSTLVToBuf [12:15:23]FM_MakeSignedData [12:15:23]FM_MakeSignedData [12:15:23]SAM_PROTO_SignData [12:15:23]wFMCommunicate request_size=4 [12:15:23]MH_SAM_APDU [12:15:23]CAPDU: 80 0D 01 02 [12:15:23]Write to MH i2c: E2 08 00 24 55 80 0D 01 02 00 00 00 00 F2 [12:15:23]Write i2c OK [12:15:23]MH_I2C_Read... [12:15:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:24]Read from MH i2c: E2 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 03 00 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 03 00 24 55 00 90 00 ED [12:15:24]RAPDU: 90 00 [12:15:24]wFMCommunicate OK [12:15:24]wFMCommunicate request_size=255 [12:15:24]MH_SAM_APDU [12:15:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 E5 BB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3A E1 01 00 35 04 06 00 44 [12:15:24]Write to MH i2c: E2 02 01 25 55 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 34 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 E5 BB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3A E1 01 00 35 04 06 00 44 00 00 8A [12:15:24]Write i2c OK [12:15:24]MH_I2C_Read... [12:15:24]OFD Sender: No OFD packet to send [12:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:24]Read from MH i2c: E2 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 03 00 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 03 00 25 55 00 90 00 EE [12:15:24]RAPDU: 90 00 [12:15:24]wFMCommunicate OK [12:15:24]wFMCommunicate request_size=10 [12:15:24]MH_SAM_APDU [12:15:24]CAPDU: 80 0D 02 02 05 A4 6E 30 89 48 [12:15:24]Write to MH i2c: E2 0D 00 26 55 80 0D 02 02 05 00 A4 6E 30 89 48 00 00 12 [12:15:24]Write i2c OK [12:15:24]MH_I2C_Read... [12:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:24]Read from MH i2c: E2 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 03 00 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 03 00 26 55 00 90 00 EF [12:15:24]RAPDU: 90 00 [12:15:24]wFMCommunicate OK [12:15:24]wFMCommunicate request_size=4 [12:15:24]MH_SAM_APDU [12:15:24]CAPDU: 80 0D 03 02 [12:15:24]Write to MH i2c: E2 08 00 27 55 80 0D 03 02 00 00 00 00 F7 [12:15:24]Write i2c OK [12:15:24]MH_I2C_Read... [12:15:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:24]Read from MH i2c: E2 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 0B 00 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 0B 00 27 55 00 F1 A8 5D 78 E6 54 FD 02 90 00 9F [12:15:24]RAPDU: F1 A8 5D 78 E6 54 FD 02 90 00 [12:15:24]wFMCommunicate OK [12:15:24]SAM_PROTO_SignData done [12:15:24]FM_MakeSignedData done [12:15:24]CreateOFDProtocolMessage [12:15:24]wFMCommunicate request_size=4 [12:15:24]MH_SAM_APDU [12:15:24]CAPDU: 80 11 00 00 [12:15:24]Write to MH i2c: E2 08 00 28 55 80 11 00 00 00 00 00 00 F7 [12:15:24]Write i2c OK [12:15:24]MH_I2C_Read... [12:15:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:24]Read from MH i2c: E2 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 17 00 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 17 00 28 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 4E [12:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:15:24]wFMCommunicate OK [12:15:24]CreateOFDProtocolMessage done [12:15:24]OFDSenderStorePacket 123194 [12:15:24]StoreOFDPacket docnum=123194 [12:15:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D5 B5 07 01 90 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 E5 BB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3A E1 01 00 35 04 06 00 44 A4 6E 30 89 48 F1 A8 5D 78 E6 54 FD 02 [12:15:24]CheckFolder [12:15:24]dirname=/storage/ofd_packets [12:15:24]CheckFolder done [12:15:24]ProducePacketName [12:15:24]name=ofd_packets/00123194 [12:15:24]NVStorageSaveData ofd_packets/00123194 [12:15:24]File name is /storage/ofd_packets/00123194 [12:15:24]Write 301 bytes [12:15:24]NVStorageSaveData done [12:15:24]OFDSenderStorePacket done [12:15:24]KKMCreateOFDPacket done [12:15:24]NVStorageSaveData kkm_last_timestamp [12:15:24]File name is /storage/kkm_last_timestamp [12:15:24]Write 4 bytes [12:15:24]NVStorageSaveData done [12:15:24]ExternCall_PrintAddStr [12:15:24]wPrintStart [12:15:24]Write to MH i2c: 01 00 00 29 55 7E [12:15:24]Write i2c OK [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: 01 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: 01 07 00 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: 01 07 00 29 55 00 00 00 00 00 FF 0F 93 [12:15:24]RasterBufferAndPrint [12:15:24]line Счет N : (1)718028 [12:15:24]line ИНН: 02508201610067 [12:15:24]line Контрольно-Кассовый Чек [12:15:24]line ПРОДАЖА [12:15:24]line ТРК (МРК, ГНК) : 22 [12:15:24]line Товар: 2710124130 [12:15:24]line Аи-92-К-4 [12:15:24]line 29.680 * 67.40 [12:15:24]line = 2000.43 [12:15:24]line НДС 12% НСП 1% [12:15:24]line > о реализуемом товаре [12:15:24]line ИТОГО: 2000.43 [12:15:24]line НСП 1% : 17.70 [12:15:24]line НДС 12% : 212.43 [12:15:24]line Наличными: 0.00 [12:15:24]line Безнал.: 2000.43 [12:15:24]line Место: АЗС № 64 "Партнер Нефть" [12:15:24]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:15:24]line СНО: Общий режим [12:15:24]line Чек 48 26.11.2024 12:15 [12:15:24]line Смена: 557 ФФД: 1.0 [12:15:24]line ЗНМ: 0300000033 [12:15:24]line РНМ: 0000000000092681 [12:15:24]line Версия ККМ: 001 [12:15:24]line Платежная система: O! деньги [12:15:24]line ФМ: 0000000000874881 [12:15:24]line ФД: 123194 [12:15:24]line ФПД: 75473013999944 [12:15:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T121533&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123194&fm=75473013999944&tin=02508201610067®Number=0000000000092681&sum=200043 [12:15:24]OFD Sender: Processing packet 123194 [packets to send 7, broken 6] [12:15:24]ProducePacketName [12:15:24]name=ofd_packets/00123194 [12:15:24]OFD Sender: To server: pG, [12:15:24]CommunicateWithHost lk.salyk.kg:30040 [12:15:24]ConnectInit lk.salyk.kg [12:15:24]written 0, free lines is 4095 [12:15:24]Connected sock=10 [12:15:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D5 B5 07 01 90 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 E5 BB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3A E1 01 00 35 04 06 00 44 A4 6E 30 89 48 F1 A8 5D 78 E6 54 FD 02 [12:15:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 42 33 47 00 BD 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3A E1 01 00 F4 03 04 00 A7 67 45 67 B6 04 01 00 00 4D EB 3C 25 6F 4F 6B 46 [12:15:25]CommunicateWithHost err = 0 [12:15:25]CheckOFDResponse [12:15:25]1017 (14) - 77093643461234 [12:15:25]1041 (16) - 0000000000874881 [12:15:25]1040 (4) - 123194 [12:15:25]1012 (4) - 26.11.2024 06:16 [12:15:25]1206 (1) - 0 [12:15:25]OFD Sender: Remove packet 123194 [12:15:25]ProducePacketName [12:15:25]name=ofd_packets/00123194 [12:15:25]NVStorageDeleteData [12:15:25]Write to MH i2c: 01 00 00 53 55 A8 [12:15:25]Write i2c OK [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: 01 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: 01 07 00 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: 01 07 00 53 55 00 00 00 00 00 54 0C 0F [12:15:25]RasterBufferAndPrint [12:15:25]line [12:15:25]line [12:15:25]line [12:15:25]line [12:15:25]line [12:15:25]written 0, free lines is 3161 [12:15:25]MH_Cut [12:15:25]Write to MH i2c: D1 01 00 5A 55 01 81 [12:15:25]Write i2c OK [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: D1 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: D1 01 00 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: D1 01 00 5A 55 00 80 [12:15:25]Write to MH i2c: 01 00 00 5B 55 B0 [12:15:25]Write i2c OK [12:15:25]MH_I2C_Read... [12:15:25]OFD Sender: No OFD packet to send [12:15:26]*** Cut start [12:15:26]*** Partial cut [12:15:26]*** CUTSNS_PIN = 1 [12:15:26]*** CUTSNS_PIN = 0 [12:15:26]*** Brake cut motor [12:15:27]Read from MH i2c: 01 [12:15:27]MH_I2C_Read... [12:15:27]*** Stop cut motor [12:15:27]*** Cut end [12:15:27]Read from MH i2c: 01 07 00 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: 01 07 00 5B 55 00 00 00 00 00 FF 0F C5 [12:15:27]process_action close_receipt done [12:15:27]requested_data is exist [12:15:27]produce_requested_data [12:15:27]requested_item fm.sn is exist - process it [12:15:27]wFMCommunicate request_size=4 [12:15:27]MH_SAM_APDU [12:15:27]CAPDU: 80 11 00 00 [12:15:27]Write to MH i2c: E2 08 00 5C 55 80 11 00 00 00 00 00 00 2B [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:27]Read from MH i2c: E2 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: E2 17 00 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: E2 17 00 5C 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 82 [12:15:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:15:27]wFMCommunicate OK [12:15:27]requested_item fd.num is exist - process it [12:15:27]SAM_PROTO_GetFieldsCounters [12:15:27]wFMCommunicate request_size=4 [12:15:27]MH_SAM_APDU [12:15:27]CAPDU: 80 13 00 00 [12:15:27]Write to MH i2c: E2 08 00 5D 55 80 13 00 00 00 00 00 00 2E [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:27]Read from MH i2c: E2 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: E2 62 00 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: E2 62 00 5D 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 3A E1 01 00 0E 04 04 00 2D 02 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 2F [12:15:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 3A E1 01 00 0E 04 04 00 2D 02 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 [12:15:27]wFMCommunicate OK [12:15:27]SAM_PROTO_GetFieldsCounters done [12:15:27]requested_item shift.num is exist - process it [12:15:27]requested_item shift.opened is exist - process it [12:15:27]req_shift_opened [12:15:27]FM_GetShiftState [12:15:27]SAM_PROTO_GetShiftState [12:15:27]wFMCommunicate request_size=4 [12:15:27]MH_SAM_APDU [12:15:27]CAPDU: 80 13 01 00 [12:15:27]Write to MH i2c: E2 08 00 5E 55 80 13 01 00 00 00 00 00 30 [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:27]Read from MH i2c: E2 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: E2 0E 00 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: E2 0E 00 5E 55 00 09 00 01 98 11 45 67 00 00 00 00 90 00 91 [12:15:27]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:15:27]wFMCommunicate OK [12:15:27]SAM_PROTO_GetShiftState done [12:15:27]FM_GetShiftState done [12:15:27]req_shift_opened done [12:15:27]requested_item shift.open_date is exist - process it [12:15:27]req_shift_open_date [12:15:27]req_shift_open_date done [12:15:27]produce_requested_data done [12:15:27]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123194,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [12:15:27]process_action_free close_receipt [12:15:27]json_value_free [12:15:27]json_value_free done [12:15:27]process_json_proto returns [12:15:27]Send response to host [12:15:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123194,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [12:15:27]free response buf [12:15:27]execute_script done [12:15:27]execute_script returns [12:15:27]free content buf [12:15:27]Sock 7.Close socket [12:15:27]Sock 7.Thread stoped [12:15:30]accept exits with 9 [12:15:30]New connection [12:15:30]New thread 3066580324 created [12:15:30]Thread 3066723684 joined [12:15:30]Waiting for new connection... [12:15:30] Sock 9.Parse request [12:15:30]Sock 9.Check first char [12:15:30]Sock 9.First char is OK [12:15:30]request: POST /json_proto HTTP/1.0 [12:15:30]Method: POST [12:15:30]URL: /json_proto [12:15:30]Method is POST - this is cgi request [12:15:30]url: /json_proto [12:15:30]query_string will be loaded in cgi processing [12:15:30]execute_cgi json_proto POST (null) [12:15:30]execute_cgi path=json_proto method=POST [12:15:30]POST find Content-Length [12:15:30]Host: 172.17.37.4:8080 [12:15:30]Content-Length: 682 [12:15:30]Content-Type: application/json [12:15:30] [12:15:30]POST finish read [12:15:30]Found Content-Length = 682 [12:15:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 13.270, "sum" : 1000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:30]execute_script... [12:15:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 13.270, "sum" : 1000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:30]POST & json_proto [12:15:30]process_json_proto [12:15:30]json parsed OK: [12:15:30]protocol is kg_v1.0 [12:15:30]action value=close_receipt [12:15:30]process_action close_receipt [12:15:30]cmd_close_receipt [12:15:30]MH_GetDate [12:15:30]Write to MH i2c: F0 00 00 5F 55 A3 [12:15:30]Write i2c OK [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: F0 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: F0 09 00 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: F0 09 00 5F 55 00 EC BB 45 67 B8 5A 43 67 BB [12:15:30]GetLastDocTimeStamp 1732623333 [12:15:30]current date 1732623340 [12:15:30]FM_GetShiftState [12:15:30]SAM_PROTO_GetShiftState [12:15:30]wFMCommunicate request_size=4 [12:15:30]MH_SAM_APDU [12:15:30]CAPDU: 80 13 01 00 [12:15:30]Write to MH i2c: E2 08 00 60 55 80 13 01 00 00 00 00 00 32 [12:15:30]Write i2c OK [12:15:30]MH_I2C_Read... [12:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:30]Read from MH i2c: E2 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: E2 0E 00 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: E2 0E 00 60 55 00 09 00 01 98 11 45 67 00 00 00 00 90 00 93 [12:15:30]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:15:30]wFMCommunicate OK [12:15:30]SAM_PROTO_GetShiftState done [12:15:30]FM_GetShiftState done [12:15:30]opened in 1732579736 [12:15:30]opened+sec_in_day 1732666136 [12:15:30]quantity*price = 100055 [12:15:30]sum+1 = 100057 [12:15:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 49 26.11.2024 12:15 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123195 ФПД: 114880693940304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T121540&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123195&fm=114880693940304&tin=02508201610067®Number=0000000000092681&sum=100000 [12:15:31]StoreToDocumentArchive [12:15:31]shift 557 fd 123195 [12:15:31]save to /storage/0557/doc_00123195 [12:15:31]save last doc name /storage/0557/doc_00123195 to /storage/kkm_last_doc_name [12:15:31]save OK [12:15:31]Clear old archive folders... [12:15:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:31]tlvbuf is 02068890 [12:15:31]SAM_PROTO_ClearQueue [12:15:31]wFMCommunicate request_size=4 [12:15:31]MH_SAM_APDU [12:15:31]CAPDU: 80 09 00 00 [12:15:31]Write to MH i2c: E2 08 00 6D 55 80 09 00 00 00 00 00 00 34 [12:15:31]Write i2c OK [12:15:31]MH_I2C_Read... [12:15:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:31]Read from MH i2c: E2 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 03 00 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 03 00 6D 55 00 90 00 36 [12:15:31]RAPDU: 90 00 [12:15:31]wFMCommunicate OK [12:15:31]SAM_PROTO_ClearQueue done [12:15:31]KKMCreateOFDPacket [12:15:31]OFDProtocolAddRootSTLVToBuf [12:15:31]FM_MakeSignedData [12:15:31]FM_MakeSignedData [12:15:31]SAM_PROTO_SignData [12:15:31]wFMCommunicate request_size=4 [12:15:31]MH_SAM_APDU [12:15:31]CAPDU: 80 0D 01 02 [12:15:31]Write to MH i2c: E2 08 00 6E 55 80 0D 01 02 00 00 00 00 3C [12:15:31]Write i2c OK [12:15:31]MH_I2C_Read... [12:15:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:31]Read from MH i2c: E2 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 03 00 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 03 00 6E 55 00 90 00 37 [12:15:31]RAPDU: 90 00 [12:15:31]wFMCommunicate OK [12:15:31]wFMCommunicate request_size=255 [12:15:31]MH_SAM_APDU [12:15:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 EC BB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3B E1 01 00 35 04 06 00 68 [12:15:31]Write to MH i2c: E2 02 01 6F 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 EC BB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3B E1 01 00 35 04 06 00 68 00 00 F0 [12:15:31]Write i2c OK [12:15:31]MH_I2C_Read... [12:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:31]Read from MH i2c: E2 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 03 00 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 03 00 6F 55 00 90 00 38 [12:15:31]RAPDU: 90 00 [12:15:31]wFMCommunicate OK [12:15:31]wFMCommunicate request_size=10 [12:15:31]MH_SAM_APDU [12:15:31]CAPDU: 80 0D 02 02 05 7B BE F4 30 50 [12:15:31]Write to MH i2c: E2 0D 00 70 55 80 0D 02 02 05 00 7B BE F4 30 50 00 00 F6 [12:15:31]Write i2c OK [12:15:31]MH_I2C_Read... [12:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:31]Read from MH i2c: E2 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 03 00 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 03 00 70 55 00 90 00 39 [12:15:31]RAPDU: 90 00 [12:15:31]wFMCommunicate OK [12:15:31]wFMCommunicate request_size=4 [12:15:31]MH_SAM_APDU [12:15:31]CAPDU: 80 0D 03 02 [12:15:31]Write to MH i2c: E2 08 00 71 55 80 0D 03 02 00 00 00 00 41 [12:15:31]Write i2c OK [12:15:31]MH_I2C_Read... [12:15:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:31]Read from MH i2c: E2 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 0B 00 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 0B 00 71 55 00 6D 31 BB D9 67 38 69 7F 90 00 FB [12:15:31]RAPDU: 6D 31 BB D9 67 38 69 7F 90 00 [12:15:31]wFMCommunicate OK [12:15:31]SAM_PROTO_SignData done [12:15:31]FM_MakeSignedData done [12:15:31]CreateOFDProtocolMessage [12:15:31]wFMCommunicate request_size=4 [12:15:31]MH_SAM_APDU [12:15:31]CAPDU: 80 11 00 00 [12:15:31]Write to MH i2c: E2 08 00 72 55 80 11 00 00 00 00 00 00 41 [12:15:31]Write i2c OK [12:15:31]MH_I2C_Read... [12:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:32]Read from MH i2c: E2 [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: E2 17 00 [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: E2 17 00 72 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 98 [12:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:15:32]wFMCommunicate OK [12:15:32]CreateOFDProtocolMessage done [12:15:32]OFDSenderStorePacket 123195 [12:15:32]StoreOFDPacket docnum=123195 [12:15:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5D 83 07 01 91 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 EC BB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3B E1 01 00 35 04 06 00 68 7B BE F4 30 50 6D 31 BB D9 67 38 69 7F [12:15:32]CheckFolder [12:15:32]dirname=/storage/ofd_packets [12:15:32]CheckFolder done [12:15:32]ProducePacketName [12:15:32]name=ofd_packets/00123195 [12:15:32]NVStorageSaveData ofd_packets/00123195 [12:15:32]File name is /storage/ofd_packets/00123195 [12:15:32]Write 301 bytes [12:15:32]NVStorageSaveData done [12:15:32]OFDSenderStorePacket done [12:15:32]KKMCreateOFDPacket done [12:15:32]NVStorageSaveData kkm_last_timestamp [12:15:32]File name is /storage/kkm_last_timestamp [12:15:32]Write 4 bytes [12:15:32]NVStorageSaveData done [12:15:32]ExternCall_PrintAddStr [12:15:32]wPrintStart [12:15:32]Write to MH i2c: 01 00 00 73 55 C8 [12:15:32]Write i2c OK [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: 01 [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: 01 07 00 [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: 01 07 00 73 55 00 00 00 00 00 FF 0F DD [12:15:32]RasterBufferAndPrint [12:15:32]line Счет N : (1)718029 [12:15:32]line ИНН: 02508201610067 [12:15:32]line Контрольно-Кассовый Чек [12:15:32]line ПРОДАЖА [12:15:32]line ТРК (МРК, ГНК) : 11 [12:15:32]line Товар: 2710124500 [12:15:32]line Аи-95-К-5 [12:15:32]line 13.270 * 75.40 [12:15:32]line = 1000.56 [12:15:32]line НДС 12% НСП 1% [12:15:32]line > о реализуемом товаре [12:15:32]line ОКРУГЛЕНИЕ: -0.56 [12:15:32]line ИТОГО: 1000.00 [12:15:32]line Внесено: 1000.00 [12:15:32]line СДАЧА: 0.00 [12:15:32]line НСП 1% : 8.85 [12:15:32]line НДС 12% : 106.25 [12:15:32]line Наличными: 1000.00 [12:15:32]line Безнал.: 0.00 [12:15:32]line Место: АЗС № 64 "Партнер Нефть" [12:15:32]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:15:32]line СНО: Общий режим [12:15:32]line Чек 49 26.11.2024 12:15 [12:15:32]line Смена: 557 ФФД: 1.0 [12:15:32]line ЗНМ: 0300000033 [12:15:32]line РНМ: 0000000000092681 [12:15:32]line Версия ККМ: 001 [12:15:32]line ФМ: 0000000000874881 [12:15:32]line ФД: 123195 [12:15:32]line ФПД: 114880693940304 [12:15:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T121540&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123195&fm=114880693940304&tin=02508201610067®Number=0000000000092681&sum=100000 [12:15:32]written 0, free lines is 4095 [12:15:32]OFD Sender: Processing packet 123195 [packets to send 7, broken 6] [12:15:32]ProducePacketName [12:15:32]name=ofd_packets/00123195 [12:15:32]OFD Sender: To server: pG, [12:15:32]CommunicateWithHost lk.salyk.kg:30040 [12:15:32]ConnectInit lk.salyk.kg [12:15:32]Connected sock=10 [12:15:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5D 83 07 01 91 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 EC BB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3B E1 01 00 35 04 06 00 68 7B BE F4 30 50 6D 31 BB D9 67 38 69 7F [12:15:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 2C B3 47 00 76 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3B E1 01 00 F4 03 04 00 AF 67 45 67 B6 04 01 00 00 B6 15 55 2F 6A E0 54 4C [12:15:32]CommunicateWithHost err = 0 [12:15:32]CheckOFDResponse [12:15:32]1017 (14) - 77093643461234 [12:15:32]1041 (16) - 0000000000874881 [12:15:32]1040 (4) - 123195 [12:15:32]1012 (4) - 26.11.2024 06:16 [12:15:32]1206 (1) - 0 [12:15:32]OFD Sender: Remove packet 123195 [12:15:32]ProducePacketName [12:15:32]name=ofd_packets/00123195 [12:15:32]NVStorageDeleteData [12:15:32]Write to MH i2c: 01 00 00 9E 55 F3 [12:15:32]Write i2c OK [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: 01 [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: 01 07 00 [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: 01 07 00 9E 55 00 00 00 00 00 4D 0C 53 [12:15:32]RasterBufferAndPrint [12:15:32]line [12:15:32]line [12:15:32]line [12:15:32]line [12:15:32]line [12:15:32]written 0, free lines is 3156 [12:15:32]MH_Cut [12:15:32]Write to MH i2c: D1 01 00 A5 55 01 CC [12:15:32]Write i2c OK [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: D1 [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: D1 01 00 [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: D1 01 00 A5 55 00 CB [12:15:32]Write to MH i2c: 01 00 00 A6 55 FB [12:15:32]Write i2c OK [12:15:32]MH_I2C_Read... [12:15:32]OFD Sender: No OFD packet to send [12:15:33]*** Cut start [12:15:33]*** Partial cut [12:15:33]*** CUTSNS_PIN = 1 [12:15:33]*** CUTSNS_PIN = 0 [12:15:34]*** Brake cut motor [12:15:34]Read from MH i2c: 01 [12:15:34]MH_I2C_Read... [12:15:34]*** Stop cut motor [12:15:34]*** Cut end [12:15:34]Read from MH i2c: 01 07 00 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: 01 07 00 A6 55 00 00 00 00 00 FF 0F 10 [12:15:34]process_action close_receipt done [12:15:34]requested_data is exist [12:15:34]produce_requested_data [12:15:34]requested_item fm.sn is exist - process it [12:15:34]wFMCommunicate request_size=4 [12:15:34]MH_SAM_APDU [12:15:34]CAPDU: 80 11 00 00 [12:15:34]Write to MH i2c: E2 08 00 A7 55 80 11 00 00 00 00 00 00 76 [12:15:34]Write i2c OK [12:15:34]MH_I2C_Read... [12:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:34]Read from MH i2c: E2 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 17 00 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 17 00 A7 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CD [12:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:15:34]wFMCommunicate OK [12:15:34]requested_item fd.num is exist - process it [12:15:34]SAM_PROTO_GetFieldsCounters [12:15:34]wFMCommunicate request_size=4 [12:15:34]MH_SAM_APDU [12:15:34]CAPDU: 80 13 00 00 [12:15:34]Write to MH i2c: E2 08 00 A8 55 80 13 00 00 00 00 00 00 79 [12:15:34]Write i2c OK [12:15:34]MH_I2C_Read... [12:15:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:34]Read from MH i2c: E2 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 62 00 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 62 00 A8 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 3B E1 01 00 0E 04 04 00 2D 02 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 7E [12:15:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 3B E1 01 00 0E 04 04 00 2D 02 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 [12:15:34]wFMCommunicate OK [12:15:34]SAM_PROTO_GetFieldsCounters done [12:15:34]requested_item shift.num is exist - process it [12:15:34]requested_item shift.opened is exist - process it [12:15:34]req_shift_opened [12:15:34]FM_GetShiftState [12:15:34]SAM_PROTO_GetShiftState [12:15:34]wFMCommunicate request_size=4 [12:15:34]MH_SAM_APDU [12:15:34]CAPDU: 80 13 01 00 [12:15:34]Write to MH i2c: E2 08 00 A9 55 80 13 01 00 00 00 00 00 7B [12:15:34]Write i2c OK [12:15:34]MH_I2C_Read... [12:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:34]Read from MH i2c: E2 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 0E 00 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 0E 00 A9 55 00 09 00 01 98 11 45 67 00 00 00 00 90 00 DC [12:15:34]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:15:34]wFMCommunicate OK [12:15:34]SAM_PROTO_GetShiftState done [12:15:34]FM_GetShiftState done [12:15:34]req_shift_opened done [12:15:34]requested_item shift.open_date is exist - process it [12:15:34]req_shift_open_date [12:15:34]req_shift_open_date done [12:15:34]produce_requested_data done [12:15:34]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123195,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [12:15:34]process_action_free close_receipt [12:15:34]json_value_free [12:15:34]json_value_free done [12:15:34]process_json_proto returns [12:15:34]Send response to host [12:15:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123195,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [12:15:34]free response buf [12:15:34]execute_script done [12:15:34]execute_script returns [12:15:34]free content buf [12:15:34]Sock 9.Close socket [12:15:34]Sock 9.Thread stoped [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:03]OFD Sender: No OFD packet to send [12:17:08]OFD Sender: No OFD packet to send [12:17:13]OFD Sender: No OFD packet to send [12:17:18]OFD Sender: No OFD packet to send [12:17:23]OFD Sender: No OFD packet to send [12:17:28]OFD Sender: No OFD packet to send [12:17:33]OFD Sender: No OFD packet to send [12:17:38]OFD Sender: No OFD packet to send [12:17:43]OFD Sender: No OFD packet to send [12:17:48]OFD Sender: No OFD packet to send [12:17:53]OFD Sender: No OFD packet to send [12:17:58]OFD Sender: No OFD packet to send [12:18:03]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:12]accept exits with 7 [12:18:12]New connection [12:18:12]New thread 3066723684 created [12:18:12]Thread 3066580324 joined [12:18:12]Waiting for new connection... [12:18:12] Sock 7.Parse request [12:18:12]Sock 7.Check first char [12:18:12]Sock 7.First char is OK [12:18:12]request: POST /json_proto HTTP/1.0 [12:18:12]Method: POST [12:18:12]URL: /json_proto [12:18:12]Method is POST - this is cgi request [12:18:12]url: /json_proto [12:18:12]query_string will be loaded in cgi processing [12:18:12]execute_cgi json_proto POST (null) [12:18:12]execute_cgi path=json_proto method=POST [12:18:12]POST find Content-Length [12:18:12]Host: 172.17.37.4:8080 [12:18:12]Content-Length: 817 [12:18:12]Content-Type: application/json [12:18:12] [12:18:12]POST finish read [12:18:12]Found Content-Length = 817 [12:18:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.000, "sum" : 674.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 674.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:12]execute_script... [12:18:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.000, "sum" : 674.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 674.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:12]POST & json_proto [12:18:12]process_json_proto [12:18:12]json parsed OK: [12:18:12]protocol is kg_v1.0 [12:18:12]action value=close_receipt [12:18:12]process_action close_receipt [12:18:12]cmd_close_receipt [12:18:12]MH_GetDate [12:18:12]Write to MH i2c: F0 00 00 AA 55 EE [12:18:12]Write i2c OK [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: F0 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: F0 09 00 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: F0 09 00 AA 55 00 8E BC 45 67 B8 5A 43 67 A9 [12:18:12]GetLastDocTimeStamp 1732623340 [12:18:12]current date 1732623502 [12:18:12]FM_GetShiftState [12:18:12]SAM_PROTO_GetShiftState [12:18:12]wFMCommunicate request_size=4 [12:18:12]MH_SAM_APDU [12:18:12]CAPDU: 80 13 01 00 [12:18:12]Write to MH i2c: E2 08 00 AB 55 80 13 01 00 00 00 00 00 7D [12:18:12]Write i2c OK [12:18:12]MH_I2C_Read... [12:18:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:12]Read from MH i2c: E2 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: E2 0E 00 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: E2 0E 00 AB 55 00 09 00 01 98 11 45 67 00 00 00 00 90 00 DE [12:18:12]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:18:12]wFMCommunicate OK [12:18:12]SAM_PROTO_GetShiftState done [12:18:12]FM_GetShiftState done [12:18:12]opened in 1732579736 [12:18:12]opened+sec_in_day 1732666136 [12:18:12]quantity*price = 67400 [12:18:12]sum+1 = 67401 [12:18:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 674.00 НСП 1% : 5.96 НДС 12% : 71.57 Наличными: 0.00 Безнал.: 674.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 50 26.11.2024 12:18 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123196 ФПД: 182453202894209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T121822&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123196&fm=182453202894209&tin=02508201610067®Number=0000000000092681&sum=67400 [12:18:13]StoreToDocumentArchive [12:18:13]shift 557 fd 123196 [12:18:13]save to /storage/0557/doc_00123196 [12:18:13]save last doc name /storage/0557/doc_00123196 to /storage/kkm_last_doc_name [12:18:13]save OK [12:18:13]Clear old archive folders... [12:18:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:13]tlvbuf is 01F5ECA0 [12:18:13]SAM_PROTO_ClearQueue [12:18:13]wFMCommunicate request_size=4 [12:18:13]MH_SAM_APDU [12:18:13]CAPDU: 80 09 00 00 [12:18:13]Write to MH i2c: E2 08 00 B8 55 80 09 00 00 00 00 00 00 7F [12:18:13]Write i2c OK [12:18:13]MH_I2C_Read... [12:18:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:13]Read from MH i2c: E2 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: E2 03 00 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: E2 03 00 B8 55 00 90 00 81 [12:18:13]RAPDU: 90 00 [12:18:13]wFMCommunicate OK [12:18:13]SAM_PROTO_ClearQueue done [12:18:13]KKMCreateOFDPacket [12:18:13]OFDProtocolAddRootSTLVToBuf [12:18:13]FM_MakeSignedData [12:18:13]FM_MakeSignedData [12:18:13]SAM_PROTO_SignData [12:18:13]wFMCommunicate request_size=4 [12:18:13]MH_SAM_APDU [12:18:13]CAPDU: 80 0D 01 02 [12:18:13]Write to MH i2c: E2 08 00 B9 55 80 0D 01 02 00 00 00 00 87 [12:18:13]Write i2c OK [12:18:13]MH_I2C_Read... [12:18:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:13]Read from MH i2c: E2 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: E2 03 00 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: E2 03 00 B9 55 00 90 00 82 [12:18:13]RAPDU: 90 00 [12:18:13]wFMCommunicate OK [12:18:13]wFMCommunicate request_size=255 [12:18:13]MH_SAM_APDU [12:18:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 07 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 8E BC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3C E1 01 00 35 04 06 00 A5 [12:18:13]Write to MH i2c: E2 02 01 BA 55 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 07 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 8E BC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3C E1 01 00 35 04 06 00 A5 00 00 AA [12:18:13]Write i2c OK [12:18:13]MH_I2C_Read... [12:18:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:13]Read from MH i2c: E2 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: E2 03 00 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: E2 03 00 BA 55 00 90 00 83 [12:18:13]RAPDU: 90 00 [12:18:13]wFMCommunicate OK [12:18:13]wFMCommunicate request_size=10 [12:18:13]MH_SAM_APDU [12:18:13]CAPDU: 80 0D 02 02 05 F0 B2 58 BD 81 [12:18:13]Write to MH i2c: E2 0D 00 BB 55 80 0D 02 02 05 00 F0 B2 58 BD 81 00 00 CC [12:18:13]Write i2c OK [12:18:13]MH_I2C_Read... [12:18:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:14]Read from MH i2c: E2 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: E2 03 00 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: E2 03 00 BB 55 00 90 00 84 [12:18:14]RAPDU: 90 00 [12:18:14]wFMCommunicate OK [12:18:14]wFMCommunicate request_size=4 [12:18:14]MH_SAM_APDU [12:18:14]CAPDU: 80 0D 03 02 [12:18:14]Write to MH i2c: E2 08 00 BC 55 80 0D 03 02 00 00 00 00 8C [12:18:14]Write i2c OK [12:18:14]MH_I2C_Read... [12:18:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:14]Read from MH i2c: E2 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: E2 0B 00 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: E2 0B 00 BC 55 00 45 C4 B5 4D 98 11 2E 6A 90 00 D9 [12:18:14]RAPDU: 45 C4 B5 4D 98 11 2E 6A 90 00 [12:18:14]wFMCommunicate OK [12:18:14]SAM_PROTO_SignData done [12:18:14]FM_MakeSignedData done [12:18:14]CreateOFDProtocolMessage [12:18:14]wFMCommunicate request_size=4 [12:18:14]MH_SAM_APDU [12:18:14]CAPDU: 80 11 00 00 [12:18:14]Write to MH i2c: E2 08 00 BD 55 80 11 00 00 00 00 00 00 8C [12:18:14]Write i2c OK [12:18:14]MH_I2C_Read... [12:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:14]Read from MH i2c: E2 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: E2 17 00 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: E2 17 00 BD 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E3 [12:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:18:14]wFMCommunicate OK [12:18:14]CreateOFDProtocolMessage done [12:18:14]OFDSenderStorePacket 123196 [12:18:14]StoreOFDPacket docnum=123196 [12:18:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 32 19 07 01 DD 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 07 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 8E BC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3C E1 01 00 35 04 06 00 A5 F0 B2 58 BD 81 45 C4 B5 4D 98 11 2E 6A [12:18:14]CheckFolder [12:18:14]dirname=/storage/ofd_packets [12:18:14]CheckFolder done [12:18:14]ProducePacketName [12:18:14]name=ofd_packets/00123196 [12:18:14]NVStorageSaveData ofd_packets/00123196 [12:18:14]File name is /storage/ofd_packets/00123196 [12:18:14]Write 301 bytes [12:18:14]NVStorageSaveData done [12:18:14]OFDSenderStorePacket done [12:18:14]KKMCreateOFDPacket done [12:18:14]NVStorageSaveData kkm_last_timestamp [12:18:14]File name is /storage/kkm_last_timestamp [12:18:14]Write 4 bytes [12:18:14]NVStorageSaveData done [12:18:14]ExternCall_PrintAddStr [12:18:14]wPrintStart [12:18:14]Write to MH i2c: 01 00 00 BE 55 13 [12:18:14]Write i2c OK [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: 01 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: 01 07 00 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: 01 07 00 BE 55 00 00 00 00 00 FF 0F 28 [12:18:14]RasterBufferAndPrint [12:18:14]line Счет N : (1)718030 [12:18:14]line ИНН: 02508201610067 [12:18:14]line Контрольно-Кассовый Чек [12:18:14]line ПРОДАЖА [12:18:14]line ТРК (МРК, ГНК) : 22 [12:18:14]line Товар: 2710124130 [12:18:14]line Аи-92-К-4 [12:18:14]line 10.000 * 67.40 [12:18:14]line = 674.00 [12:18:14]line НДС 12% НСП 1% [12:18:14]line > о реализуемом товаре [12:18:14]line ИТОГО: 674.00 [12:18:14]line НСП 1% : 5.96 [12:18:14]line НДС 12% : 71.57 [12:18:14]line Наличными: 0.00 [12:18:14]line Безнал.: 674.00 [12:18:14]line Место: АЗС № 64 "Партнер Нефть" [12:18:14]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:18:14]line СНО: Общий режим [12:18:14]line Чек 50 26.11.2024 12:18 [12:18:14]line Смена: 557 ФФД: 1.0 [12:18:14]line ЗНМ: 0300000033 [12:18:14]line РНМ: 0000000000092681 [12:18:14]line Версия ККМ: 001 [12:18:14]line Платежная система: Бакай Банк [12:18:14]line ФМ: 0000000000874881 [12:18:14]line ФД: 123196 [12:18:14]line ФПД: 182453202894209 [12:18:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T121822&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123196&fm=182453202894209&tin=02508201610067®Number=0000000000092681&sum=67400 [12:18:14]written 0, free lines is 4095 [12:18:14]OFD Sender: Processing packet 123196 [packets to send 7, broken 6] [12:18:14]ProducePacketName [12:18:14]name=ofd_packets/00123196 [12:18:14]OFD Sender: To server: pG, [12:18:14]CommunicateWithHost lk.salyk.kg:30040 [12:18:14]ConnectInit lk.salyk.kg [12:18:14]Connected sock=10 [12:18:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 32 19 07 01 DD 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 07 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 8E BC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3C E1 01 00 35 04 06 00 A5 F0 B2 58 BD 81 45 C4 B5 4D 98 11 2E 6A [12:18:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 F0 88 47 00 A7 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3C E1 01 00 F4 03 04 00 51 68 45 67 B6 04 01 00 00 6D 88 2E 5A 8E 4C EC DF [12:18:14]CommunicateWithHost err = 0 [12:18:14]CheckOFDResponse [12:18:14]1017 (14) - 77093643461234 [12:18:14]1041 (16) - 0000000000874881 [12:18:14]1040 (4) - 123196 [12:18:14]1012 (4) - 26.11.2024 06:18 [12:18:14]1206 (1) - 0 [12:18:14]OFD Sender: Remove packet 123196 [12:18:14]ProducePacketName [12:18:14]name=ofd_packets/00123196 [12:18:14]NVStorageDeleteData [12:18:14]Write to MH i2c: 01 00 00 E8 55 3D [12:18:14]Write i2c OK [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: 01 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: 01 07 00 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: 01 07 00 E8 55 00 00 00 00 00 65 0C B5 [12:18:14]RasterBufferAndPrint [12:18:14]line [12:18:14]line [12:18:14]line [12:18:14]line [12:18:14]line [12:18:14]written 0, free lines is 3177 [12:18:14]MH_Cut [12:18:14]Write to MH i2c: D1 01 00 EF 55 01 16 [12:18:14]Write i2c OK [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: D1 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: D1 01 00 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: D1 01 00 EF 55 00 15 [12:18:14]Write to MH i2c: 01 00 00 F0 55 45 [12:18:14]Write i2c OK [12:18:14]MH_I2C_Read... [12:18:15]OFD Sender: No OFD packet to send [12:18:16]*** Cut start [12:18:16]*** Partial cut [12:18:16]*** CUTSNS_PIN = 1 [12:18:16]*** CUTSNS_PIN = 0 [12:18:16]*** Brake cut motor [12:18:16]Read from MH i2c: 01 [12:18:16]MH_I2C_Read... [12:18:16]*** Stop cut motor [12:18:16]*** Cut end [12:18:16]Read from MH i2c: 01 07 00 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: 01 07 00 F0 55 00 00 00 00 00 FF 0F 5A [12:18:16]process_action close_receipt done [12:18:16]requested_data is exist [12:18:16]produce_requested_data [12:18:16]requested_item fm.sn is exist - process it [12:18:16]wFMCommunicate request_size=4 [12:18:16]MH_SAM_APDU [12:18:16]CAPDU: 80 11 00 00 [12:18:16]Write to MH i2c: E2 08 00 F1 55 80 11 00 00 00 00 00 00 C0 [12:18:16]Write i2c OK [12:18:16]MH_I2C_Read... [12:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:17]Read from MH i2c: E2 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: E2 17 00 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: E2 17 00 F1 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 17 [12:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:18:17]wFMCommunicate OK [12:18:17]requested_item fd.num is exist - process it [12:18:17]SAM_PROTO_GetFieldsCounters [12:18:17]wFMCommunicate request_size=4 [12:18:17]MH_SAM_APDU [12:18:17]CAPDU: 80 13 00 00 [12:18:17]Write to MH i2c: E2 08 00 F2 55 80 13 00 00 00 00 00 00 C3 [12:18:17]Write i2c OK [12:18:17]MH_I2C_Read... [12:18:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:17]Read from MH i2c: E2 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: E2 62 00 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: E2 62 00 F2 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 3C E1 01 00 0E 04 04 00 2D 02 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 CC [12:18:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 3C E1 01 00 0E 04 04 00 2D 02 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 [12:18:17]wFMCommunicate OK [12:18:17]SAM_PROTO_GetFieldsCounters done [12:18:17]requested_item shift.num is exist - process it [12:18:17]requested_item shift.opened is exist - process it [12:18:17]req_shift_opened [12:18:17]FM_GetShiftState [12:18:17]SAM_PROTO_GetShiftState [12:18:17]wFMCommunicate request_size=4 [12:18:17]MH_SAM_APDU [12:18:17]CAPDU: 80 13 01 00 [12:18:17]Write to MH i2c: E2 08 00 F3 55 80 13 01 00 00 00 00 00 C5 [12:18:17]Write i2c OK [12:18:17]MH_I2C_Read... [12:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:17]Read from MH i2c: E2 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: E2 0E 00 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: E2 0E 00 F3 55 00 09 00 01 98 11 45 67 00 00 00 00 90 00 26 [12:18:17]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:18:17]wFMCommunicate OK [12:18:17]SAM_PROTO_GetShiftState done [12:18:17]FM_GetShiftState done [12:18:17]req_shift_opened done [12:18:17]requested_item shift.open_date is exist - process it [12:18:17]req_shift_open_date [12:18:17]req_shift_open_date done [12:18:17]produce_requested_data done [12:18:17]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123196,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [12:18:17]process_action_free close_receipt [12:18:17]json_value_free [12:18:17]json_value_free done [12:18:17]process_json_proto returns [12:18:17]Send response to host [12:18:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123196,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [12:18:17]free response buf [12:18:17]execute_script done [12:18:17]execute_script returns [12:18:17]free content buf [12:18:17]Sock 7.Close socket [12:18:17]Sock 7.Thread stoped [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:52]accept exits with 9 [12:19:52]New connection [12:19:52]New thread 3066580324 created [12:19:52]Thread 3066723684 joined [12:19:52]Waiting for new connection... [12:19:52] Sock 9.Parse request [12:19:52]Sock 9.Check first char [12:19:52]Sock 9.First char is OK [12:19:52]request: POST /json_proto HTTP/1.0 [12:19:52]Method: POST [12:19:52]URL: /json_proto [12:19:52]Method is POST - this is cgi request [12:19:52]url: /json_proto [12:19:52]query_string will be loaded in cgi processing [12:19:52]execute_cgi json_proto POST (null) [12:19:52]execute_cgi path=json_proto method=POST [12:19:52]POST find Content-Length [12:19:52]Host: 172.17.37.4:8080 [12:19:52]Content-Length: 677 [12:19:52]Content-Type: application/json [12:19:52] [12:19:52]POST finish read [12:19:52]Found Content-Length = 677 [12:19:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:52]execute_script... [12:19:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:52]POST & json_proto [12:19:52]process_json_proto [12:19:52]json parsed OK: [12:19:52]protocol is kg_v1.0 [12:19:52]action value=close_receipt [12:19:52]process_action close_receipt [12:19:52]cmd_close_receipt [12:19:52]MH_GetDate [12:19:52]Write to MH i2c: F0 00 00 F4 55 38 [12:19:52]Write i2c OK [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: F0 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: F0 09 00 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: F0 09 00 F4 55 00 F2 BC 45 67 B8 5A 43 67 57 [12:19:52]GetLastDocTimeStamp 1732623502 [12:19:52]current date 1732623602 [12:19:52]FM_GetShiftState [12:19:52]SAM_PROTO_GetShiftState [12:19:52]wFMCommunicate request_size=4 [12:19:52]MH_SAM_APDU [12:19:52]CAPDU: 80 13 01 00 [12:19:52]Write to MH i2c: E2 08 00 F5 55 80 13 01 00 00 00 00 00 C7 [12:19:52]Write i2c OK [12:19:52]MH_I2C_Read... [12:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:52]Read from MH i2c: E2 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 0E 00 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 0E 00 F5 55 00 09 00 01 98 11 45 67 00 00 00 00 90 00 28 [12:19:52]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:19:52]wFMCommunicate OK [12:19:52]SAM_PROTO_GetShiftState done [12:19:52]FM_GetShiftState done [12:19:52]opened in 1732579736 [12:19:52]opened+sec_in_day 1732666136 [12:19:52]quantity*price = 40035 [12:19:52]sum+1 = 40037 [12:19:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 51 26.11.2024 12:20 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123197 ФПД: 146556859093491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T122002&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123197&fm=146556859093491&tin=02508201610067®Number=0000000000092681&sum=40000 [12:19:53]StoreToDocumentArchive [12:19:53]shift 557 fd 123197 [12:19:53]save to /storage/0557/doc_00123197 [12:19:53]save last doc name /storage/0557/doc_00123197 to /storage/kkm_last_doc_name [12:19:53]save OK [12:19:53]Clear old archive folders... [12:19:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:53]tlvbuf is 0212BC10 [12:19:53]SAM_PROTO_ClearQueue [12:19:53]wFMCommunicate request_size=4 [12:19:53]MH_SAM_APDU [12:19:53]CAPDU: 80 09 00 00 [12:19:53]Write to MH i2c: E2 08 00 02 56 80 09 00 00 00 00 00 00 CA [12:19:53]Write i2c OK [12:19:53]MH_I2C_Read... [12:19:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:53]Read from MH i2c: E2 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 03 00 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 03 00 02 56 00 90 00 CC [12:19:53]RAPDU: 90 00 [12:19:53]wFMCommunicate OK [12:19:53]SAM_PROTO_ClearQueue done [12:19:53]KKMCreateOFDPacket [12:19:53]OFDProtocolAddRootSTLVToBuf [12:19:53]FM_MakeSignedData [12:19:53]FM_MakeSignedData [12:19:53]SAM_PROTO_SignData [12:19:53]wFMCommunicate request_size=4 [12:19:53]MH_SAM_APDU [12:19:53]CAPDU: 80 0D 01 02 [12:19:53]Write to MH i2c: E2 08 00 03 56 80 0D 01 02 00 00 00 00 D2 [12:19:53]Write i2c OK [12:19:53]MH_I2C_Read... [12:19:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:53]Read from MH i2c: E2 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 03 00 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 03 00 03 56 00 90 00 CD [12:19:53]RAPDU: 90 00 [12:19:53]wFMCommunicate OK [12:19:53]wFMCommunicate request_size=255 [12:19:53]MH_SAM_APDU [12:19:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 F2 BC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3D E1 01 00 35 04 06 00 85 [12:19:53]Write to MH i2c: E2 02 01 04 56 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 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 F2 BC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3D E1 01 00 35 04 06 00 85 00 00 C0 [12:19:53]Write i2c OK [12:19:53]MH_I2C_Read... [12:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:53]Read from MH i2c: E2 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 03 00 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 03 00 04 56 00 90 00 CE [12:19:53]RAPDU: 90 00 [12:19:53]wFMCommunicate OK [12:19:53]wFMCommunicate request_size=10 [12:19:53]MH_SAM_APDU [12:19:53]CAPDU: 80 0D 02 02 05 4A ED 86 91 F3 [12:19:53]Write to MH i2c: E2 0D 00 05 56 80 0D 02 02 05 00 4A ED 86 91 F3 00 00 20 [12:19:53]Write i2c OK [12:19:53]MH_I2C_Read... [12:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:53]Read from MH i2c: E2 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 03 00 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 03 00 05 56 00 90 00 CF [12:19:53]RAPDU: 90 00 [12:19:53]wFMCommunicate OK [12:19:53]wFMCommunicate request_size=4 [12:19:53]MH_SAM_APDU [12:19:53]CAPDU: 80 0D 03 02 [12:19:53]Write to MH i2c: E2 08 00 06 56 80 0D 03 02 00 00 00 00 D7 [12:19:53]Write i2c OK [12:19:53]MH_I2C_Read... [12:19:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:54]Read from MH i2c: E2 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 0B 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 0B 00 06 56 00 20 62 6B EF B8 77 47 1D 90 00 47 [12:19:54]RAPDU: 20 62 6B EF B8 77 47 1D 90 00 [12:19:54]wFMCommunicate OK [12:19:54]SAM_PROTO_SignData done [12:19:54]FM_MakeSignedData done [12:19:54]CreateOFDProtocolMessage [12:19:54]wFMCommunicate request_size=4 [12:19:54]MH_SAM_APDU [12:19:54]CAPDU: 80 11 00 00 [12:19:54]Write to MH i2c: E2 08 00 07 56 80 11 00 00 00 00 00 00 D7 [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:54]Read from MH i2c: E2 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 17 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 17 00 07 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2E [12:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:19:54]wFMCommunicate OK [12:19:54]CreateOFDProtocolMessage done [12:19:54]OFDSenderStorePacket 123197 [12:19:54]StoreOFDPacket docnum=123197 [12:19:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 0F 03 07 01 69 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 F2 BC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3D E1 01 00 35 04 06 00 85 4A ED 86 91 F3 20 62 6B EF B8 77 47 1D [12:19:54]CheckFolder [12:19:54]dirname=/storage/ofd_packets [12:19:54]CheckFolder done [12:19:54]ProducePacketName [12:19:54]name=ofd_packets/00123197 [12:19:54]NVStorageSaveData ofd_packets/00123197 [12:19:54]File name is /storage/ofd_packets/00123197 [12:19:54]Write 301 bytes [12:19:54]NVStorageSaveData done [12:19:54]OFDSenderStorePacket done [12:19:54]KKMCreateOFDPacket done [12:19:54]NVStorageSaveData kkm_last_timestamp [12:19:54]File name is /storage/kkm_last_timestamp [12:19:54]Write 4 bytes [12:19:54]NVStorageSaveData done [12:19:54]ExternCall_PrintAddStr [12:19:54]wPrintStart [12:19:54]Write to MH i2c: 01 00 00 08 56 5E [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: 01 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: 01 07 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: 01 07 00 08 56 00 00 00 00 00 FF 0F 73 [12:19:54]RasterBufferAndPrint [12:19:54]line Счет N : (1)718031 [12:19:54]line ИНН: 02508201610067 [12:19:54]line Контрольно-Кассовый Чек [12:19:54]line ПРОДАЖА [12:19:54]line ТРК (МРК, ГНК) : 12 [12:19:54]line Товар: 2710124130 [12:19:54]line Аи-92-К-4 [12:19:54]line 5.940 * 67.40 [12:19:54]line = 400.36 [12:19:54]line НДС 12% НСП 1% [12:19:54]line > о реализуемом товаре [12:19:54]line ОКРУГЛЕНИЕ: -0.36 [12:19:54]line ИТОГО: 400.00 [12:19:54]line Внесено: 400.00 [12:19:54]line СДАЧА: 0.00 [12:19:54]line НСП 1% : 3.54 [12:19:54]line НДС 12% : 42.52 [12:19:54]line Наличными: 400.00 [12:19:54]line Безнал.: 0.00 [12:19:54]line Место: АЗС № 64 "Партнер Нефть" [12:19:54]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:19:54]line СНО: Общий режим [12:19:54]line Чек 51 26.11.2024 12:20 [12:19:54]line Смена: 557 ФФД: 1.0 [12:19:54]line ЗНМ: 0300000033 [12:19:54]line РНМ: 0000000000092681 [12:19:54]line Версия ККМ: 001 [12:19:54]line ФМ: 0000000000874881 [12:19:54]line ФД: 123197 [12:19:54]line ФПД: 146556859093491 [12:19:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T122002&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123197&fm=146556859093491&tin=02508201610067®Number=0000000000092681&sum=40000 [12:19:54]OFD Sender: Processing packet 123197 [packets to send 7, broken 6] [12:19:54]ProducePacketName [12:19:54]name=ofd_packets/00123197 [12:19:54]OFD Sender: To server: pG, [12:19:54]CommunicateWithHost lk.salyk.kg:30040 [12:19:54]ConnectInit lk.salyk.kg [12:19:54]written 0, free lines is 4095 [12:19:54]Connected sock=10 [12:19:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 0F 03 07 01 69 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 F2 BC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3D E1 01 00 35 04 06 00 85 4A ED 86 91 F3 20 62 6B EF B8 77 47 1D [12:19:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 AD F8 47 00 0C 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3D E1 01 00 F4 03 04 00 B5 68 45 67 B6 04 01 00 00 B9 CD 6D F1 A8 CC DF E6 [12:19:54]CommunicateWithHost err = 0 [12:19:54]CheckOFDResponse [12:19:54]1017 (14) - 77093643461234 [12:19:54]1041 (16) - 0000000000874881 [12:19:54]1040 (4) - 123197 [12:19:54]1012 (4) - 26.11.2024 06:20 [12:19:54]1206 (1) - 0 [12:19:54]OFD Sender: Remove packet 123197 [12:19:54]ProducePacketName [12:19:54]name=ofd_packets/00123197 [12:19:54]NVStorageDeleteData [12:19:54]Write to MH i2c: 01 00 00 33 56 89 [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: 01 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: 01 07 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: 01 07 00 33 56 00 00 00 00 00 52 0C EE [12:19:54]RasterBufferAndPrint [12:19:54]line [12:19:54]line [12:19:54]line [12:19:54]line [12:19:54]line [12:19:54]written 0, free lines is 3158 [12:19:54]MH_Cut [12:19:54]Write to MH i2c: D1 01 00 3A 56 01 62 [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: D1 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: D1 01 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: D1 01 00 3A 56 00 61 [12:19:54]Write to MH i2c: 01 00 00 3B 56 91 [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:55]OFD Sender: No OFD packet to send [12:19:56]*** Cut start [12:19:56]*** Partial cut [12:19:56]*** CUTSNS_PIN = 1 [12:19:56]*** CUTSNS_PIN = 0 [12:19:56]*** Brake cut motor [12:19:56]Read from MH i2c: 01 [12:19:56]MH_I2C_Read... [12:19:56]*** Stop cut motor [12:19:56]*** Cut end [12:19:56]Read from MH i2c: 01 07 00 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: 01 07 00 3B 56 00 00 00 00 00 FF 0F A6 [12:19:56]process_action close_receipt done [12:19:56]requested_data is exist [12:19:56]produce_requested_data [12:19:56]requested_item fm.sn is exist - process it [12:19:56]wFMCommunicate request_size=4 [12:19:56]MH_SAM_APDU [12:19:56]CAPDU: 80 11 00 00 [12:19:56]Write to MH i2c: E2 08 00 3C 56 80 11 00 00 00 00 00 00 0C [12:19:56]Write i2c OK [12:19:56]MH_I2C_Read... [12:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:56]Read from MH i2c: E2 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 17 00 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 17 00 3C 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 63 [12:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:19:56]wFMCommunicate OK [12:19:56]requested_item fd.num is exist - process it [12:19:56]SAM_PROTO_GetFieldsCounters [12:19:56]wFMCommunicate request_size=4 [12:19:56]MH_SAM_APDU [12:19:56]CAPDU: 80 13 00 00 [12:19:56]Write to MH i2c: E2 08 00 3D 56 80 13 00 00 00 00 00 00 0F [12:19:56]Write i2c OK [12:19:56]MH_I2C_Read... [12:19:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:57]Read from MH i2c: E2 [12:19:57]MH_I2C_Read... [12:19:57]Read from MH i2c: E2 62 00 [12:19:57]MH_I2C_Read... [12:19:57]Read from MH i2c: E2 62 00 3D 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 3D E1 01 00 0E 04 04 00 2D 02 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 1C [12:19:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 3D E1 01 00 0E 04 04 00 2D 02 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 [12:19:57]wFMCommunicate OK [12:19:57]SAM_PROTO_GetFieldsCounters done [12:19:57]requested_item shift.num is exist - process it [12:19:57]requested_item shift.opened is exist - process it [12:19:57]req_shift_opened [12:19:57]FM_GetShiftState [12:19:57]SAM_PROTO_GetShiftState [12:19:57]wFMCommunicate request_size=4 [12:19:57]MH_SAM_APDU [12:19:57]CAPDU: 80 13 01 00 [12:19:57]Write to MH i2c: E2 08 00 3E 56 80 13 01 00 00 00 00 00 11 [12:19:57]Write i2c OK [12:19:57]MH_I2C_Read... [12:19:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:57]Read from MH i2c: E2 [12:19:57]MH_I2C_Read... [12:19:57]Read from MH i2c: E2 0E 00 [12:19:57]MH_I2C_Read... [12:19:57]Read from MH i2c: E2 0E 00 3E 56 00 09 00 01 98 11 45 67 00 00 00 00 90 00 72 [12:19:57]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:19:57]wFMCommunicate OK [12:19:57]SAM_PROTO_GetShiftState done [12:19:57]FM_GetShiftState done [12:19:57]req_shift_opened done [12:19:57]requested_item shift.open_date is exist - process it [12:19:57]req_shift_open_date [12:19:57]req_shift_open_date done [12:19:57]produce_requested_data done [12:19:57]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123197,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [12:19:57]process_action_free close_receipt [12:19:57]json_value_free [12:19:57]json_value_free done [12:19:57]process_json_proto returns [12:19:57]Send response to host [12:19:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123197,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [12:19:57]free response buf [12:19:57]execute_script done [12:19:57]execute_script returns [12:19:57]free content buf [12:19:57]Sock 9.Close socket [12:19:57]Sock 9.Thread stoped [12:20:00]OFD Sender: No OFD packet to send [12:20:05]OFD Sender: No OFD packet to send [12:20:10]OFD Sender: No OFD packet to send [12:20:15]OFD Sender: No OFD packet to send [12:20:20]OFD Sender: No OFD packet to send [12:20:25]OFD Sender: No OFD packet to send [12:20:30]OFD Sender: No OFD packet to send [12:20:35]OFD Sender: No OFD packet to send [12:20:40]OFD Sender: No OFD packet to send [12:20:45]OFD Sender: No OFD packet to send [12:20:50]OFD Sender: No OFD packet to send [12:20:55]OFD Sender: No OFD packet to send [12:21:00]OFD Sender: No OFD packet to send [12:21:05]OFD Sender: No OFD packet to send [12:21:10]OFD Sender: No OFD packet to send [12:21:15]OFD Sender: No OFD packet to send [12:21:20]OFD Sender: No OFD packet to send [12:21:25]OFD Sender: No OFD packet to send [12:21:30]OFD Sender: No OFD packet to send [12:21:35]OFD Sender: No OFD packet to send [12:21:40]OFD Sender: No OFD packet to send [12:21:45]OFD Sender: No OFD packet to send [12:21:50]OFD Sender: No OFD packet to send [12:21:55]OFD Sender: No OFD packet to send [12:22:00]OFD Sender: No OFD packet to send [12:22:05]OFD Sender: No OFD packet to send [12:22:10]OFD Sender: No OFD packet to send [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]OFD Sender: No OFD packet to send [12:23:35]OFD Sender: No OFD packet to send [12:23:40]OFD Sender: No OFD packet to send [12:23:45]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:26:00]OFD Sender: No OFD packet to send [12:26:05]OFD Sender: No OFD packet to send [12:26:10]OFD Sender: No OFD packet to send [12:26:15]OFD Sender: No OFD packet to send [12:26:20]OFD Sender: No OFD packet to send [12:26:25]OFD Sender: No OFD packet to send [12:26:30]OFD Sender: No OFD packet to send [12:26:35]OFD Sender: No OFD packet to send [12:26:40]OFD Sender: No OFD packet to send [12:26:45]OFD Sender: No OFD packet to send [12:26:50]OFD Sender: No OFD packet to send [12:26:55]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:20]OFD Sender: No OFD packet to send [12:27:25]OFD Sender: No OFD packet to send [12:27:30]OFD Sender: No OFD packet to send [12:27:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:40]OFD Sender: No OFD packet to send [12:28:45]OFD Sender: No OFD packet to send [12:28:50]OFD Sender: No OFD packet to send [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]accept exits with 7 [12:30:30]New connection [12:30:30]New thread 3066723684 created [12:30:30]Thread 3066580324 joined [12:30:30]Waiting for new connection... [12:30:30] Sock 7.Parse request [12:30:30]Sock 7.Check first char [12:30:30]Sock 7.First char is OK [12:30:30]request: POST /json_proto HTTP/1.0 [12:30:30]Method: POST [12:30:30]URL: /json_proto [12:30:30]Method is POST - this is cgi request [12:30:30]url: /json_proto [12:30:30]query_string will be loaded in cgi processing [12:30:30]execute_cgi json_proto POST (null) [12:30:30]execute_cgi path=json_proto method=POST [12:30:30]POST find Content-Length [12:30:30]Host: 172.17.37.4:8080 [12:30:30]Content-Length: 682 [12:30:30]Content-Type: application/json [12:30:30] [12:30:30]POST finish read [12:30:30]Found Content-Length = 682 [12:30:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 22.260, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:30]execute_script... [12:30:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 22.260, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:30]POST & json_proto [12:30:30]process_json_proto [12:30:30]json parsed OK: [12:30:30]protocol is kg_v1.0 [12:30:30]action value=close_receipt [12:30:30]process_action close_receipt [12:30:30]cmd_close_receipt [12:30:30]MH_GetDate [12:30:30]Write to MH i2c: F0 00 00 3F 56 84 [12:30:30]Write i2c OK [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: F0 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: F0 09 00 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: F0 09 00 3F 56 00 70 BF 45 67 B8 5A 43 67 24 [12:30:30]GetLastDocTimeStamp 1732623602 [12:30:30]current date 1732624240 [12:30:30]FM_GetShiftState [12:30:30]SAM_PROTO_GetShiftState [12:30:30]wFMCommunicate request_size=4 [12:30:30]MH_SAM_APDU [12:30:30]CAPDU: 80 13 01 00 [12:30:30]Write to MH i2c: E2 08 00 40 56 80 13 01 00 00 00 00 00 13 [12:30:30]Write i2c OK [12:30:30]MH_I2C_Read... [12:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:30]Read from MH i2c: E2 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: E2 0E 00 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: E2 0E 00 40 56 00 09 00 01 98 11 45 67 00 00 00 00 90 00 74 [12:30:30]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:30:30]wFMCommunicate OK [12:30:30]SAM_PROTO_GetShiftState done [12:30:30]FM_GetShiftState done [12:30:30]opened in 1732579736 [12:30:30]opened+sec_in_day 1732666136 [12:30:30]quantity*price = 150032 [12:30:30]sum+1 = 150033 [12:30:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 52 26.11.2024 12:30 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123198 ФПД: 65867832799487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T123040&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123198&fm=65867832799487&tin=02508201610067®Number=0000000000092681&sum=150000 [12:30:31]StoreToDocumentArchive [12:30:31]shift 557 fd 123198 [12:30:31]save to /storage/0557/doc_00123198 [12:30:31]save last doc name /storage/0557/doc_00123198 to /storage/kkm_last_doc_name [12:30:31]save OK [12:30:31]Clear old archive folders... [12:30:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:31]tlvbuf is 01F5E7A0 [12:30:31]SAM_PROTO_ClearQueue [12:30:31]wFMCommunicate request_size=4 [12:30:31]MH_SAM_APDU [12:30:31]CAPDU: 80 09 00 00 [12:30:31]Write to MH i2c: E2 08 00 4D 56 80 09 00 00 00 00 00 00 15 [12:30:31]Write i2c OK [12:30:31]MH_I2C_Read... [12:30:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:31]Read from MH i2c: E2 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 4D 56 00 90 00 17 [12:30:31]RAPDU: 90 00 [12:30:31]wFMCommunicate OK [12:30:31]SAM_PROTO_ClearQueue done [12:30:31]KKMCreateOFDPacket [12:30:31]OFDProtocolAddRootSTLVToBuf [12:30:31]FM_MakeSignedData [12:30:31]FM_MakeSignedData [12:30:31]SAM_PROTO_SignData [12:30:31]wFMCommunicate request_size=4 [12:30:31]MH_SAM_APDU [12:30:31]CAPDU: 80 0D 01 02 [12:30:31]Write to MH i2c: E2 08 00 4E 56 80 0D 01 02 00 00 00 00 1D [12:30:31]Write i2c OK [12:30:31]MH_I2C_Read... [12:30:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:31]Read from MH i2c: E2 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 4E 56 00 90 00 18 [12:30:31]RAPDU: 90 00 [12:30:31]wFMCommunicate OK [12:30:31]wFMCommunicate request_size=255 [12:30:31]MH_SAM_APDU [12:30:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 70 BF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3E E1 01 00 35 04 06 00 3B [12:30:31]Write to MH i2c: E2 02 01 4F 56 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 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 70 BF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3E E1 01 00 35 04 06 00 3B 00 00 FE [12:30:31]Write i2c OK [12:30:31]MH_I2C_Read... [12:30:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:31]Read from MH i2c: E2 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 4F 56 00 90 00 19 [12:30:31]RAPDU: 90 00 [12:30:31]wFMCommunicate OK [12:30:31]wFMCommunicate request_size=10 [12:30:31]MH_SAM_APDU [12:30:31]CAPDU: 80 0D 02 02 05 E8 0C C6 B0 FF [12:30:31]Write to MH i2c: E2 0D 00 50 56 80 0D 02 02 05 00 E8 0C C6 B0 FF 00 00 93 [12:30:31]Write i2c OK [12:30:31]MH_I2C_Read... [12:30:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:31]Read from MH i2c: E2 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 50 56 00 90 00 1A [12:30:31]RAPDU: 90 00 [12:30:31]wFMCommunicate OK [12:30:31]wFMCommunicate request_size=4 [12:30:31]MH_SAM_APDU [12:30:31]CAPDU: 80 0D 03 02 [12:30:31]Write to MH i2c: E2 08 00 51 56 80 0D 03 02 00 00 00 00 22 [12:30:31]Write i2c OK [12:30:31]MH_I2C_Read... [12:30:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:31]Read from MH i2c: E2 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 0B 00 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 0B 00 51 56 00 12 AA 8A D4 F3 3B 83 46 90 00 34 [12:30:31]RAPDU: 12 AA 8A D4 F3 3B 83 46 90 00 [12:30:31]wFMCommunicate OK [12:30:31]SAM_PROTO_SignData done [12:30:31]FM_MakeSignedData done [12:30:31]CreateOFDProtocolMessage [12:30:31]wFMCommunicate request_size=4 [12:30:31]MH_SAM_APDU [12:30:31]CAPDU: 80 11 00 00 [12:30:31]Write to MH i2c: E2 08 00 52 56 80 11 00 00 00 00 00 00 22 [12:30:31]Write i2c OK [12:30:31]MH_I2C_Read... [12:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:32]Read from MH i2c: E2 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: E2 17 00 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: E2 17 00 52 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 79 [12:30:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:30:32]wFMCommunicate OK [12:30:32]CreateOFDProtocolMessage done [12:30:32]OFDSenderStorePacket 123198 [12:30:32]StoreOFDPacket docnum=123198 [12:30:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 F7 38 07 01 A7 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 70 BF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3E E1 01 00 35 04 06 00 3B E8 0C C6 B0 FF 12 AA 8A D4 F3 3B 83 46 [12:30:32]CheckFolder [12:30:32]dirname=/storage/ofd_packets [12:30:32]CheckFolder done [12:30:32]ProducePacketName [12:30:32]name=ofd_packets/00123198 [12:30:32]NVStorageSaveData ofd_packets/00123198 [12:30:32]File name is /storage/ofd_packets/00123198 [12:30:32]Write 301 bytes [12:30:32]NVStorageSaveData done [12:30:32]OFDSenderStorePacket done [12:30:32]KKMCreateOFDPacket done [12:30:32]NVStorageSaveData kkm_last_timestamp [12:30:32]File name is /storage/kkm_last_timestamp [12:30:32]Write 4 bytes [12:30:32]NVStorageSaveData done [12:30:32]ExternCall_PrintAddStr [12:30:32]wPrintStart [12:30:32]Write to MH i2c: 01 00 00 53 56 A9 [12:30:32]Write i2c OK [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: 01 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: 01 07 00 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: 01 07 00 53 56 00 00 00 00 00 FF 0F BE [12:30:32]RasterBufferAndPrint [12:30:32]line Счет N : (1)718032 [12:30:32]line ИНН: 02508201610067 [12:30:32]line Контрольно-Кассовый Чек [12:30:32]line ПРОДАЖА [12:30:32]line ТРК (МРК, ГНК) : 12 [12:30:32]line Товар: 2710124130 [12:30:32]line Аи-92-К-4 [12:30:32]line 22.260 * 67.40 [12:30:32]line = 1500.32 [12:30:32]line НДС 12% НСП 1% [12:30:32]line > о реализуемом товаре [12:30:32]line ОКРУГЛЕНИЕ: -0.32 [12:30:32]line ИТОГО: 1500.00 [12:30:32]line Внесено: 1500.00 [12:30:32]line СДАЧА: 0.00 [12:30:32]line НСП 1% : 13.28 [12:30:32]line НДС 12% : 159.33 [12:30:32]line Наличными: 1500.00 [12:30:32]line Безнал.: 0.00 [12:30:32]line Место: АЗС № 64 "Партнер Нефть" [12:30:32]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:30:32]line СНО: Общий режим [12:30:32]line Чек 52 26.11.2024 12:30 [12:30:32]line Смена: 557 ФФД: 1.0 [12:30:32]line ЗНМ: 0300000033 [12:30:32]line РНМ: 0000000000092681 [12:30:32]line Версия ККМ: 001 [12:30:32]line ФМ: 0000000000874881 [12:30:32]line ФД: 123198 [12:30:32]line ФПД: 65867832799487 [12:30:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T123040&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123198&fm=65867832799487&tin=02508201610067®Number=0000000000092681&sum=150000 [12:30:32]OFD Sender: Processing packet 123198 [packets to send 7, broken 6] [12:30:32]ProducePacketName [12:30:32]name=ofd_packets/00123198 [12:30:32]OFD Sender: To server: pG, [12:30:32]CommunicateWithHost lk.salyk.kg:30040 [12:30:32]ConnectInit lk.salyk.kg [12:30:32]written 0, free lines is 4095 [12:30:32]Connected sock=9 [12:30:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 F7 38 07 01 A7 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 70 BF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3E E1 01 00 35 04 06 00 3B E8 0C C6 B0 FF 12 AA 8A D4 F3 3B 83 46 [12:30:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 3C F6 47 00 4B C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3E E1 01 00 F4 03 04 00 33 6B 45 67 B6 04 01 00 00 4B A9 94 19 42 9A 41 18 [12:30:32]CommunicateWithHost err = 0 [12:30:32]CheckOFDResponse [12:30:32]1017 (14) - 77093643461234 [12:30:32]1041 (16) - 0000000000874881 [12:30:32]1040 (4) - 123198 [12:30:32]1012 (4) - 26.11.2024 06:31 [12:30:32]1206 (1) - 0 [12:30:32]OFD Sender: Remove packet 123198 [12:30:32]ProducePacketName [12:30:32]name=ofd_packets/00123198 [12:30:32]NVStorageDeleteData [12:30:32]Write to MH i2c: 01 00 00 7E 56 D4 [12:30:32]Write i2c OK [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: 01 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: 01 07 00 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: 01 07 00 7E 56 00 00 00 00 00 50 0C 37 [12:30:32]RasterBufferAndPrint [12:30:32]line [12:30:32]line [12:30:32]line [12:30:32]line [12:30:32]line [12:30:32]written 0, free lines is 3156 [12:30:32]MH_Cut [12:30:32]Write to MH i2c: D1 01 00 85 56 01 AD [12:30:32]Write i2c OK [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: D1 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: D1 01 00 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: D1 01 00 85 56 00 AC [12:30:32]Write to MH i2c: 01 00 00 86 56 DC [12:30:32]Write i2c OK [12:30:32]MH_I2C_Read... [12:30:33]OFD Sender: No OFD packet to send [12:30:34]*** Cut start [12:30:34]*** Partial cut [12:30:34]*** CUTSNS_PIN = 1 [12:30:34]*** CUTSNS_PIN = 0 [12:30:34]*** Brake cut motor [12:30:34]Read from MH i2c: 01 [12:30:34]MH_I2C_Read... [12:30:34]*** Stop cut motor [12:30:34]*** Cut end [12:30:34]Read from MH i2c: 01 07 00 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: 01 07 00 86 56 00 00 00 00 00 FF 0F F1 [12:30:34]process_action close_receipt done [12:30:34]requested_data is exist [12:30:34]produce_requested_data [12:30:34]requested_item fm.sn is exist - process it [12:30:34]wFMCommunicate request_size=4 [12:30:34]MH_SAM_APDU [12:30:34]CAPDU: 80 11 00 00 [12:30:34]Write to MH i2c: E2 08 00 87 56 80 11 00 00 00 00 00 00 57 [12:30:34]Write i2c OK [12:30:34]MH_I2C_Read... [12:30:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:34]Read from MH i2c: E2 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: E2 17 00 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: E2 17 00 87 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AE [12:30:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:30:34]wFMCommunicate OK [12:30:34]requested_item fd.num is exist - process it [12:30:34]SAM_PROTO_GetFieldsCounters [12:30:34]wFMCommunicate request_size=4 [12:30:34]MH_SAM_APDU [12:30:34]CAPDU: 80 13 00 00 [12:30:34]Write to MH i2c: E2 08 00 88 56 80 13 00 00 00 00 00 00 5A [12:30:34]Write i2c OK [12:30:34]MH_I2C_Read... [12:30:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:34]Read from MH i2c: E2 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: E2 62 00 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: E2 62 00 88 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 3E E1 01 00 0E 04 04 00 2D 02 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 6B [12:30:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 3E E1 01 00 0E 04 04 00 2D 02 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 [12:30:35]wFMCommunicate OK [12:30:35]SAM_PROTO_GetFieldsCounters done [12:30:35]requested_item shift.num is exist - process it [12:30:35]requested_item shift.opened is exist - process it [12:30:35]req_shift_opened [12:30:35]FM_GetShiftState [12:30:35]SAM_PROTO_GetShiftState [12:30:35]wFMCommunicate request_size=4 [12:30:35]MH_SAM_APDU [12:30:35]CAPDU: 80 13 01 00 [12:30:35]Write to MH i2c: E2 08 00 89 56 80 13 01 00 00 00 00 00 5C [12:30:35]Write i2c OK [12:30:35]MH_I2C_Read... [12:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:35]Read from MH i2c: E2 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: E2 0E 00 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: E2 0E 00 89 56 00 09 00 01 98 11 45 67 00 00 00 00 90 00 BD [12:30:35]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:30:35]wFMCommunicate OK [12:30:35]SAM_PROTO_GetShiftState done [12:30:35]FM_GetShiftState done [12:30:35]req_shift_opened done [12:30:35]requested_item shift.open_date is exist - process it [12:30:35]req_shift_open_date [12:30:35]req_shift_open_date done [12:30:35]produce_requested_data done [12:30:35]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123198,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [12:30:35]process_action_free close_receipt [12:30:35]json_value_free [12:30:35]json_value_free done [12:30:35]process_json_proto returns [12:30:35]Send response to host [12:30:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123198,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [12:30:35]free response buf [12:30:35]execute_script done [12:30:35]execute_script returns [12:30:35]free content buf [12:30:35]Sock 7.Close socket [12:30:35]Sock 7.Thread stoped [12:30:38]OFD Sender: No OFD packet to send [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:32]accept exits with 10 [12:32:32]New connection [12:32:32]New thread 3066580324 created [12:32:32]Thread 3066723684 joined [12:32:32]Waiting for new connection... [12:32:32] Sock 10.Parse request [12:32:32]Sock 10.Check first char [12:32:32]Sock 10.First char is OK [12:32:32]request: POST /json_proto HTTP/1.0 [12:32:32]Method: POST [12:32:32]URL: /json_proto [12:32:32]Method is POST - this is cgi request [12:32:32]url: /json_proto [12:32:32]query_string will be loaded in cgi processing [12:32:32]execute_cgi json_proto POST (null) [12:32:32]execute_cgi path=json_proto method=POST [12:32:32]POST find Content-Length [12:32:32]Host: 172.17.37.4:8080 [12:32:32]Content-Length: 677 [12:32:32]Content-Type: application/json [12:32:32] [12:32:32]POST finish read [12:32:32]Found Content-Length = 677 [12:32:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:32]execute_script... [12:32:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:32]POST & json_proto [12:32:32]process_json_proto [12:32:32]json parsed OK: [12:32:32]protocol is kg_v1.0 [12:32:32]action value=close_receipt [12:32:32]process_action close_receipt [12:32:32]cmd_close_receipt [12:32:32]MH_GetDate [12:32:32]Write to MH i2c: F0 00 00 8A 56 CF [12:32:32]Write i2c OK [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: F0 [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: F0 09 00 [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: F0 09 00 8A 56 00 EB BF 45 67 B8 5A 43 67 EA [12:32:32]GetLastDocTimeStamp 1732624240 [12:32:32]current date 1732624363 [12:32:32]FM_GetShiftState [12:32:32]SAM_PROTO_GetShiftState [12:32:32]wFMCommunicate request_size=4 [12:32:32]MH_SAM_APDU [12:32:32]CAPDU: 80 13 01 00 [12:32:32]Write to MH i2c: E2 08 00 8B 56 80 13 01 00 00 00 00 00 5E [12:32:32]Write i2c OK [12:32:32]MH_I2C_Read... [12:32:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:32]Read from MH i2c: E2 [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: E2 0E 00 [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: E2 0E 00 8B 56 00 09 00 01 98 11 45 67 00 00 00 00 90 00 BF [12:32:32]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:32:32]wFMCommunicate OK [12:32:32]SAM_PROTO_GetShiftState done [12:32:32]FM_GetShiftState done [12:32:32]opened in 1732579736 [12:32:32]opened+sec_in_day 1732666136 [12:32:32]quantity*price = 20017 [12:32:32]sum+1 = 20019 [12:32:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 53 26.11.2024 12:32 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123199 ФПД: 166887530551247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T123243&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123199&fm=166887530551247&tin=02508201610067®Number=0000000000092681&sum=20000 [12:32:33]StoreToDocumentArchive [12:32:33]shift 557 fd 123199 [12:32:33]save to /storage/0557/doc_00123199 [12:32:33]save last doc name /storage/0557/doc_00123199 to /storage/kkm_last_doc_name [12:32:33]save OK [12:32:33]Clear old archive folders... [12:32:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:33]tlvbuf is 01FBE620 [12:32:33]SAM_PROTO_ClearQueue [12:32:33]wFMCommunicate request_size=4 [12:32:33]MH_SAM_APDU [12:32:33]CAPDU: 80 09 00 00 [12:32:33]Write to MH i2c: E2 08 00 98 56 80 09 00 00 00 00 00 00 60 [12:32:33]Write i2c OK [12:32:33]MH_I2C_Read... [12:32:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:33]Read from MH i2c: E2 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: E2 03 00 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: E2 03 00 98 56 00 90 00 62 [12:32:33]RAPDU: 90 00 [12:32:33]wFMCommunicate OK [12:32:33]SAM_PROTO_ClearQueue done [12:32:33]KKMCreateOFDPacket [12:32:33]OFDProtocolAddRootSTLVToBuf [12:32:33]FM_MakeSignedData [12:32:33]FM_MakeSignedData [12:32:33]SAM_PROTO_SignData [12:32:33]wFMCommunicate request_size=4 [12:32:33]MH_SAM_APDU [12:32:33]CAPDU: 80 0D 01 02 [12:32:33]Write to MH i2c: E2 08 00 99 56 80 0D 01 02 00 00 00 00 68 [12:32:33]Write i2c OK [12:32:33]MH_I2C_Read... [12:32:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:33]Read from MH i2c: E2 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: E2 03 00 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: E2 03 00 99 56 00 90 00 63 [12:32:33]RAPDU: 90 00 [12:32:33]wFMCommunicate OK [12:32:33]wFMCommunicate request_size=255 [12:32:33]MH_SAM_APDU [12:32:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 EB BF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3F E1 01 00 35 04 06 00 97 [12:32:33]Write to MH i2c: E2 02 01 9A 56 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 EB BF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3F E1 01 00 35 04 06 00 97 00 00 5E [12:32:33]Write i2c OK [12:32:33]MH_I2C_Read... [12:32:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:34]Read from MH i2c: E2 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: E2 03 00 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: E2 03 00 9A 56 00 90 00 64 [12:32:34]RAPDU: 90 00 [12:32:34]wFMCommunicate OK [12:32:34]wFMCommunicate request_size=10 [12:32:34]MH_SAM_APDU [12:32:34]CAPDU: 80 0D 02 02 05 C8 87 F9 D7 CF [12:32:34]Write to MH i2c: E2 0D 00 9B 56 80 0D 02 02 05 00 C8 87 F9 D7 CF 00 00 63 [12:32:34]Write i2c OK [12:32:34]MH_I2C_Read... [12:32:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:34]Read from MH i2c: E2 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: E2 03 00 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: E2 03 00 9B 56 00 90 00 65 [12:32:34]RAPDU: 90 00 [12:32:34]wFMCommunicate OK [12:32:34]wFMCommunicate request_size=4 [12:32:34]MH_SAM_APDU [12:32:34]CAPDU: 80 0D 03 02 [12:32:34]Write to MH i2c: E2 08 00 9C 56 80 0D 03 02 00 00 00 00 6D [12:32:34]Write i2c OK [12:32:34]MH_I2C_Read... [12:32:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:34]Read from MH i2c: E2 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: E2 0B 00 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: E2 0B 00 9C 56 00 1E 6B 04 4C C5 32 01 35 90 00 74 [12:32:34]RAPDU: 1E 6B 04 4C C5 32 01 35 90 00 [12:32:34]wFMCommunicate OK [12:32:34]SAM_PROTO_SignData done [12:32:34]FM_MakeSignedData done [12:32:34]CreateOFDProtocolMessage [12:32:34]wFMCommunicate request_size=4 [12:32:34]MH_SAM_APDU [12:32:34]CAPDU: 80 11 00 00 [12:32:34]Write to MH i2c: E2 08 00 9D 56 80 11 00 00 00 00 00 00 6D [12:32:34]Write i2c OK [12:32:34]MH_I2C_Read... [12:32:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:34]Read from MH i2c: E2 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: E2 17 00 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: E2 17 00 9D 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C4 [12:32:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:32:34]wFMCommunicate OK [12:32:34]CreateOFDProtocolMessage done [12:32:34]OFDSenderStorePacket 123199 [12:32:34]StoreOFDPacket docnum=123199 [12:32:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E0 70 07 01 C5 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 EB BF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3F E1 01 00 35 04 06 00 97 C8 87 F9 D7 CF 1E 6B 04 4C C5 32 01 35 [12:32:34]CheckFolder [12:32:34]dirname=/storage/ofd_packets [12:32:34]CheckFolder done [12:32:34]ProducePacketName [12:32:34]name=ofd_packets/00123199 [12:32:34]NVStorageSaveData ofd_packets/00123199 [12:32:34]File name is /storage/ofd_packets/00123199 [12:32:34]Write 301 bytes [12:32:34]NVStorageSaveData done [12:32:34]OFDSenderStorePacket done [12:32:34]KKMCreateOFDPacket done [12:32:34]NVStorageSaveData kkm_last_timestamp [12:32:34]File name is /storage/kkm_last_timestamp [12:32:34]Write 4 bytes [12:32:34]NVStorageSaveData done [12:32:34]ExternCall_PrintAddStr [12:32:34]wPrintStart [12:32:34]Write to MH i2c: 01 00 00 9E 56 F4 [12:32:34]Write i2c OK [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: 01 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: 01 07 00 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: 01 07 00 9E 56 00 00 00 00 00 FF 0F 09 [12:32:34]RasterBufferAndPrint [12:32:34]line Счет N : (1)718033 [12:32:34]line ИНН: 02508201610067 [12:32:34]line Контрольно-Кассовый Чек [12:32:34]line ПРОДАЖА [12:32:34]line ТРК (МРК, ГНК) : 32 [12:32:34]line Товар: 2710124130 [12:32:34]line Аи-92-К-4 [12:32:34]line 2.970 * 67.40 [12:32:34]line = 200.18 [12:32:34]line НДС 12% НСП 1% [12:32:34]line > о реализуемом товаре [12:32:34]line ОКРУГЛЕНИЕ: -0.18 [12:32:34]line ИТОГО: 200.00 [12:32:34]line Внесено: 200.00 [12:32:34]line СДАЧА: 0.00 [12:32:34]line НСП 1% : 1.77 [12:32:34]line НДС 12% : 21.26 [12:32:34]line Наличными: 200.00 [12:32:34]line Безнал.: 0.00 [12:32:34]line Место: АЗС № 64 "Партнер Нефть" [12:32:34]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:32:34]line СНО: Общий режим [12:32:34]line Чек 53 26.11.2024 12:32 [12:32:34]line Смена: 557 ФФД: 1.0 [12:32:34]line ЗНМ: 0300000033 [12:32:34]line РНМ: 0000000000092681 [12:32:34]line Версия ККМ: 001 [12:32:34]line ФМ: 0000000000874881 [12:32:34]line ФД: 123199 [12:32:34]line ФПД: 166887530551247 [12:32:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T123243&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123199&fm=166887530551247&tin=02508201610067®Number=0000000000092681&sum=20000 [12:32:34]OFD Sender: Processing packet 123199 [packets to send 7, broken 6] [12:32:34]ProducePacketName [12:32:34]name=ofd_packets/00123199 [12:32:34]OFD Sender: To server: pG, [12:32:34]CommunicateWithHost lk.salyk.kg:30040 [12:32:34]ConnectInit lk.salyk.kg [12:32:34]written 0, free lines is 4095 [12:32:34]Connected sock=9 [12:32:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E0 70 07 01 C5 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 EB BF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3F E1 01 00 35 04 06 00 97 C8 87 F9 D7 CF 1E 6B 04 4C C5 32 01 35 [12:32:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 71 EB 47 00 E2 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 3F E1 01 00 F4 03 04 00 AD 6B 45 67 B6 04 01 00 00 C9 29 65 D6 30 B7 A9 03 [12:32:34]CommunicateWithHost err = 0 [12:32:34]CheckOFDResponse [12:32:34]1017 (14) - 77093643461234 [12:32:34]1041 (16) - 0000000000874881 [12:32:34]1040 (4) - 123199 [12:32:34]1012 (4) - 26.11.2024 06:33 [12:32:34]1206 (1) - 0 [12:32:34]OFD Sender: Remove packet 123199 [12:32:34]ProducePacketName [12:32:34]name=ofd_packets/00123199 [12:32:34]NVStorageDeleteData [12:32:35]Write to MH i2c: 01 00 00 C9 56 1F [12:32:35]Write i2c OK [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: 01 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: 01 07 00 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: 01 07 00 C9 56 00 00 00 00 00 4A 0C 7C [12:32:35]RasterBufferAndPrint [12:32:35]line [12:32:35]line [12:32:35]line [12:32:35]line [12:32:35]line [12:32:35]written 0, free lines is 3151 [12:32:35]MH_Cut [12:32:35]Write to MH i2c: D1 01 00 D0 56 01 F8 [12:32:35]Write i2c OK [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: D1 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: D1 01 00 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: D1 01 00 D0 56 00 F7 [12:32:35]Write to MH i2c: 01 00 00 D1 56 27 [12:32:35]Write i2c OK [12:32:35]MH_I2C_Read... [12:32:35]OFD Sender: No OFD packet to send [12:32:36]*** Cut start [12:32:36]*** Partial cut [12:32:36]*** CUTSNS_PIN = 1 [12:32:36]*** CUTSNS_PIN = 0 [12:32:36]*** Brake cut motor [12:32:37]Read from MH i2c: 01 [12:32:37]MH_I2C_Read... [12:32:37]*** Stop cut motor [12:32:37]*** Cut end [12:32:37]Read from MH i2c: 01 07 00 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: 01 07 00 D1 56 00 00 00 00 00 FF 0F 3C [12:32:37]process_action close_receipt done [12:32:37]requested_data is exist [12:32:37]produce_requested_data [12:32:37]requested_item fm.sn is exist - process it [12:32:37]wFMCommunicate request_size=4 [12:32:37]MH_SAM_APDU [12:32:37]CAPDU: 80 11 00 00 [12:32:37]Write to MH i2c: E2 08 00 D2 56 80 11 00 00 00 00 00 00 A2 [12:32:37]Write i2c OK [12:32:37]MH_I2C_Read... [12:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:37]Read from MH i2c: E2 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 17 00 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 17 00 D2 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F9 [12:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:32:37]wFMCommunicate OK [12:32:37]requested_item fd.num is exist - process it [12:32:37]SAM_PROTO_GetFieldsCounters [12:32:37]wFMCommunicate request_size=4 [12:32:37]MH_SAM_APDU [12:32:37]CAPDU: 80 13 00 00 [12:32:37]Write to MH i2c: E2 08 00 D3 56 80 13 00 00 00 00 00 00 A5 [12:32:37]Write i2c OK [12:32:37]MH_I2C_Read... [12:32:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:37]Read from MH i2c: E2 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 62 00 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 62 00 D3 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 3F E1 01 00 0E 04 04 00 2D 02 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 BA [12:32:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 3F E1 01 00 0E 04 04 00 2D 02 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 [12:32:37]wFMCommunicate OK [12:32:37]SAM_PROTO_GetFieldsCounters done [12:32:37]requested_item shift.num is exist - process it [12:32:37]requested_item shift.opened is exist - process it [12:32:37]req_shift_opened [12:32:37]FM_GetShiftState [12:32:37]SAM_PROTO_GetShiftState [12:32:37]wFMCommunicate request_size=4 [12:32:37]MH_SAM_APDU [12:32:37]CAPDU: 80 13 01 00 [12:32:37]Write to MH i2c: E2 08 00 D4 56 80 13 01 00 00 00 00 00 A7 [12:32:37]Write i2c OK [12:32:37]MH_I2C_Read... [12:32:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:37]Read from MH i2c: E2 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 0E 00 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 0E 00 D4 56 00 09 00 01 98 11 45 67 00 00 00 00 90 00 08 [12:32:37]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:32:37]wFMCommunicate OK [12:32:37]SAM_PROTO_GetShiftState done [12:32:37]FM_GetShiftState done [12:32:37]req_shift_opened done [12:32:37]requested_item shift.open_date is exist - process it [12:32:37]req_shift_open_date [12:32:37]req_shift_open_date done [12:32:37]produce_requested_data done [12:32:37]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123199,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [12:32:37]process_action_free close_receipt [12:32:37]json_value_free [12:32:37]json_value_free done [12:32:37]process_json_proto returns [12:32:37]Send response to host [12:32:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123199,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [12:32:37]free response buf [12:32:37]execute_script done [12:32:37]execute_script returns [12:32:37]free content buf [12:32:37]Sock 10.Close socket [12:32:37]Sock 10.Thread stoped [12:32:40]OFD Sender: No OFD packet to send [12:32:45]OFD Sender: No OFD packet to send [12:32:50]OFD Sender: No OFD packet to send [12:32:55]OFD Sender: No OFD packet to send [12:33:00]OFD Sender: No OFD packet to send [12:33:05]OFD Sender: No OFD packet to send [12:33:10]OFD Sender: No OFD packet to send [12:33:15]OFD Sender: No OFD packet to send [12:33:20]OFD Sender: No OFD packet to send [12:33:25]OFD Sender: No OFD packet to send [12:33:30]OFD Sender: No OFD packet to send [12:33:35]OFD Sender: No OFD packet to send [12:33:38]accept exits with 7 [12:33:38]New connection [12:33:38]New thread 3066723684 created [12:33:38]Thread 3066580324 joined [12:33:38]Waiting for new connection... [12:33:38] Sock 7.Parse request [12:33:38]Sock 7.Check first char [12:33:38]Sock 7.First char is OK [12:33:38]request: POST /json_proto HTTP/1.0 [12:33:38]Method: POST [12:33:38]URL: /json_proto [12:33:38]Method is POST - this is cgi request [12:33:38]url: /json_proto [12:33:38]query_string will be loaded in cgi processing [12:33:38]execute_cgi json_proto POST (null) [12:33:38]execute_cgi path=json_proto method=POST [12:33:38]POST find Content-Length [12:33:38]Host: 172.17.37.4:8080 [12:33:38]Content-Length: 686 [12:33:38]Content-Type: application/json [12:33:38] [12:33:38]POST finish read [12:33:38]Found Content-Length = 686 [12:33:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 66.760, "sum" : 5000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:38]execute_script... [12:33:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 66.760, "sum" : 5000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:38]POST & json_proto [12:33:38]process_json_proto [12:33:38]json parsed OK: [12:33:38]protocol is kg_v1.0 [12:33:38]action value=close_receipt [12:33:38]process_action close_receipt [12:33:38]cmd_close_receipt [12:33:38]MH_GetDate [12:33:38]Write to MH i2c: F0 00 00 D5 56 1A [12:33:38]Write i2c OK [12:33:38]MH_I2C_Read... [12:33:38]Read from MH i2c: F0 [12:33:38]MH_I2C_Read... [12:33:38]Read from MH i2c: F0 09 00 [12:33:38]MH_I2C_Read... [12:33:38]Read from MH i2c: F0 09 00 D5 56 00 2C C0 45 67 B8 5A 43 67 77 [12:33:38]GetLastDocTimeStamp 1732624363 [12:33:38]current date 1732624428 [12:33:38]FM_GetShiftState [12:33:38]SAM_PROTO_GetShiftState [12:33:38]wFMCommunicate request_size=4 [12:33:38]MH_SAM_APDU [12:33:38]CAPDU: 80 13 01 00 [12:33:38]Write to MH i2c: E2 08 00 D6 56 80 13 01 00 00 00 00 00 A9 [12:33:38]Write i2c OK [12:33:38]MH_I2C_Read... [12:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:38]Read from MH i2c: E2 [12:33:38]MH_I2C_Read... [12:33:38]Read from MH i2c: E2 0E 00 [12:33:38]MH_I2C_Read... [12:33:38]Read from MH i2c: E2 0E 00 D6 56 00 09 00 01 98 11 45 67 00 00 00 00 90 00 0A [12:33:38]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:33:38]wFMCommunicate OK [12:33:38]SAM_PROTO_GetShiftState done [12:33:38]FM_GetShiftState done [12:33:38]opened in 1732579736 [12:33:38]opened+sec_in_day 1732666136 [12:33:38]quantity*price = 500032 [12:33:38]sum+1 = 500033 [12:33:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.01 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 54 26.11.2024 12:33 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123200 ФПД: 152763827275379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T123348&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123200&fm=152763827275379&tin=02508201610067®Number=0000000000092681&sum=500000 [12:33:39]StoreToDocumentArchive [12:33:39]shift 557 fd 123200 [12:33:39]save to /storage/0557/doc_00123200 [12:33:39]save last doc name /storage/0557/doc_00123200 to /storage/kkm_last_doc_name [12:33:39]save OK [12:33:39]Clear old archive folders... [12:33:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:33:39]tlvbuf is 02071D50 [12:33:39]SAM_PROTO_ClearQueue [12:33:39]wFMCommunicate request_size=4 [12:33:39]MH_SAM_APDU [12:33:39]CAPDU: 80 09 00 00 [12:33:39]Write to MH i2c: E2 08 00 E3 56 80 09 00 00 00 00 00 00 AB [12:33:39]Write i2c OK [12:33:39]MH_I2C_Read... [12:33:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:39]Read from MH i2c: E2 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 03 00 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 03 00 E3 56 00 90 00 AD [12:33:39]RAPDU: 90 00 [12:33:39]wFMCommunicate OK [12:33:39]SAM_PROTO_ClearQueue done [12:33:39]KKMCreateOFDPacket [12:33:39]OFDProtocolAddRootSTLVToBuf [12:33:39]FM_MakeSignedData [12:33:39]FM_MakeSignedData [12:33:39]SAM_PROTO_SignData [12:33:39]wFMCommunicate request_size=4 [12:33:39]MH_SAM_APDU [12:33:39]CAPDU: 80 0D 01 02 [12:33:39]Write to MH i2c: E2 08 00 E4 56 80 0D 01 02 00 00 00 00 B3 [12:33:39]Write i2c OK [12:33:39]MH_I2C_Read... [12:33:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:39]Read from MH i2c: E2 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 03 00 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 03 00 E4 56 00 90 00 AE [12:33:39]RAPDU: 90 00 [12:33:39]wFMCommunicate OK [12:33:39]wFMCommunicate request_size=255 [12:33:39]MH_SAM_APDU [12:33:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 04 01 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 40 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 2C C0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 40 E1 01 00 35 04 06 00 [12:33:39]Write to MH i2c: E2 02 01 E5 56 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 35 FF 03 08 00 03 C8 04 01 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 40 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 2C C0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 40 E1 01 00 35 04 06 00 00 00 56 [12:33:39]Write i2c OK [12:33:39]MH_I2C_Read... [12:33:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:39]Read from MH i2c: E2 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 03 00 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 03 00 E5 56 00 90 00 AF [12:33:39]RAPDU: 90 00 [12:33:39]wFMCommunicate OK [12:33:39]wFMCommunicate request_size=11 [12:33:39]MH_SAM_APDU [12:33:39]CAPDU: 80 0D 02 02 06 8A F0 19 A8 C6 73 [12:33:39]Write to MH i2c: E2 0E 00 E6 56 80 0D 02 02 06 00 8A F0 19 A8 C6 73 00 00 36 [12:33:39]Write i2c OK [12:33:39]MH_I2C_Read... [12:33:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:39]Read from MH i2c: E2 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 03 00 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 03 00 E6 56 00 90 00 B0 [12:33:39]RAPDU: 90 00 [12:33:39]wFMCommunicate OK [12:33:39]wFMCommunicate request_size=4 [12:33:39]MH_SAM_APDU [12:33:39]CAPDU: 80 0D 03 02 [12:33:39]Write to MH i2c: E2 08 00 E7 56 80 0D 03 02 00 00 00 00 B8 [12:33:39]Write i2c OK [12:33:39]MH_I2C_Read... [12:33:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:39]Read from MH i2c: E2 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 0B 00 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 0B 00 E7 56 00 D0 59 90 07 80 CA C0 4E 90 00 D1 [12:33:39]RAPDU: D0 59 90 07 80 CA C0 4E 90 00 [12:33:39]wFMCommunicate OK [12:33:39]SAM_PROTO_SignData done [12:33:39]FM_MakeSignedData done [12:33:39]CreateOFDProtocolMessage [12:33:39]wFMCommunicate request_size=4 [12:33:39]MH_SAM_APDU [12:33:39]CAPDU: 80 11 00 00 [12:33:39]Write to MH i2c: E2 08 00 E8 56 80 11 00 00 00 00 00 00 B8 [12:33:39]Write i2c OK [12:33:39]MH_I2C_Read... [12:33:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:39]Read from MH i2c: E2 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 17 00 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 17 00 E8 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0F [12:33:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:33:39]wFMCommunicate OK [12:33:39]CreateOFDProtocolMessage done [12:33:39]OFDSenderStorePacket 123200 [12:33:39]StoreOFDPacket docnum=123200 [12:33:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 74 D0 08 01 F4 3C 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 35 FF 03 08 00 03 C8 04 01 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 40 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 2C C0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 40 E1 01 00 35 04 06 00 8A F0 19 A8 C6 73 D0 59 90 07 80 CA C0 4E [12:33:39]CheckFolder [12:33:39]dirname=/storage/ofd_packets [12:33:39]CheckFolder done [12:33:39]ProducePacketName [12:33:39]name=ofd_packets/00123200 [12:33:39]NVStorageSaveData ofd_packets/00123200 [12:33:39]File name is /storage/ofd_packets/00123200 [12:33:39]Write 302 bytes [12:33:39]NVStorageSaveData done [12:33:39]OFDSenderStorePacket done [12:33:39]KKMCreateOFDPacket done [12:33:39]NVStorageSaveData kkm_last_timestamp [12:33:39]File name is /storage/kkm_last_timestamp [12:33:39]Write 4 bytes [12:33:39]NVStorageSaveData done [12:33:39]ExternCall_PrintAddStr [12:33:39]wPrintStart [12:33:39]Write to MH i2c: 01 00 00 E9 56 3F [12:33:39]Write i2c OK [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: 01 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: 01 07 00 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: 01 07 00 E9 56 00 00 00 00 00 FF 0F 54 [12:33:39]RasterBufferAndPrint [12:33:39]line Счет N : (1)718034 [12:33:39]line ИНН: 02508201610067 [12:33:39]line Контрольно-Кассовый Чек [12:33:39]line ПРОДАЖА [12:33:39]line ТРК (МРК, ГНК) : 5 [12:33:39]line Товар: 2710194210 [12:33:39]line ДТ(л)-К-5 [12:33:39]line 66.760 * 74.90 [12:33:39]line = 5000.32 [12:33:39]line НДС 12% НСП 1% [12:33:39]line > о реализуемом товаре [12:33:39]line ОКРУГЛЕНИЕ: -0.32 [12:33:39]line ИТОГО: 5000.00 [12:33:39]line Внесено: 5000.00 [12:33:39]line СДАЧА: 0.00 [12:33:39]line НСП 1% : 44.25 [12:33:39]line НДС 12% : 531.01 [12:33:39]line Наличными: 5000.00 [12:33:39]line Безнал.: 0.00 [12:33:39]line Место: АЗС № 64 "Партнер Нефть" [12:33:39]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:33:39]line СНО: Общий режим [12:33:39]line Чек 54 26.11.2024 12:33 [12:33:39]line Смена: 557 ФФД: 1.0 [12:33:39]line ЗНМ: 0300000033 [12:33:39]line РНМ: 0000000000092681 [12:33:39]line Версия ККМ: 001 [12:33:39]line ФМ: 0000000000874881 [12:33:39]line ФД: 123200 [12:33:39]line ФПД: 152763827275379 [12:33:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T123348&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123200&fm=152763827275379&tin=02508201610067®Number=0000000000092681&sum=500000 [12:33:40]OFD Sender: Processing packet 123200 [packets to send 7, broken 6] [12:33:40]ProducePacketName [12:33:40]name=ofd_packets/00123200 [12:33:40]OFD Sender: To server: pG, [12:33:40]CommunicateWithHost lk.salyk.kg:30040 [12:33:40]ConnectInit lk.salyk.kg [12:33:40]written 0, free lines is 4095 [12:33:40]Connected sock=10 [12:33:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 74 D0 08 01 F4 3C 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 35 FF 03 08 00 03 C8 04 01 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 40 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 2C C0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 40 E1 01 00 35 04 06 00 8A F0 19 A8 C6 73 D0 59 90 07 80 CA C0 4E [12:33:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 16 B6 47 00 CE 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 40 E1 01 00 F4 03 04 00 EF 6B 45 67 B6 04 01 00 00 83 16 DE 0F 0C 18 11 53 [12:33:40]CommunicateWithHost err = 0 [12:33:40]CheckOFDResponse [12:33:40]1017 (14) - 77093643461234 [12:33:40]1041 (16) - 0000000000874881 [12:33:40]1040 (4) - 123200 [12:33:40]1012 (4) - 26.11.2024 06:34 [12:33:40]1206 (1) - 0 [12:33:40]OFD Sender: Remove packet 123200 [12:33:40]ProducePacketName [12:33:40]name=ofd_packets/00123200 [12:33:40]NVStorageDeleteData [12:33:40]Write to MH i2c: 01 00 00 14 57 6B [12:33:40]Write i2c OK [12:33:40]MH_I2C_Read... [12:33:40]Read from MH i2c: 01 [12:33:40]MH_I2C_Read... [12:33:40]Read from MH i2c: 01 07 00 [12:33:40]MH_I2C_Read... [12:33:40]Read from MH i2c: 01 07 00 14 57 00 00 00 00 00 4E 0C CC [12:33:40]RasterBufferAndPrint [12:33:40]line [12:33:40]line [12:33:40]line [12:33:40]line [12:33:40]line [12:33:40]written 0, free lines is 3153 [12:33:40]MH_Cut [12:33:40]Write to MH i2c: D1 01 00 1B 57 01 44 [12:33:40]Write i2c OK [12:33:40]MH_I2C_Read... [12:33:40]Read from MH i2c: D1 [12:33:40]MH_I2C_Read... [12:33:40]Read from MH i2c: D1 01 00 [12:33:40]MH_I2C_Read... [12:33:40]Read from MH i2c: D1 01 00 1B 57 00 43 [12:33:40]Write to MH i2c: 01 00 00 1C 57 73 [12:33:40]Write i2c OK [12:33:40]MH_I2C_Read... [12:33:40]OFD Sender: No OFD packet to send [12:33:41]*** Cut start [12:33:41]*** Partial cut [12:33:41]*** CUTSNS_PIN = 1 [12:33:41]*** CUTSNS_PIN = 0 [12:33:42]*** Brake cut motor [12:33:42]Read from MH i2c: 01 [12:33:42]MH_I2C_Read... [12:33:42]*** Stop cut motor [12:33:42]*** Cut end [12:33:42]Read from MH i2c: 01 07 00 [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: 01 07 00 1C 57 00 00 00 00 00 FF 0F 88 [12:33:42]process_action close_receipt done [12:33:42]requested_data is exist [12:33:42]produce_requested_data [12:33:42]requested_item fm.sn is exist - process it [12:33:42]wFMCommunicate request_size=4 [12:33:42]MH_SAM_APDU [12:33:42]CAPDU: 80 11 00 00 [12:33:42]Write to MH i2c: E2 08 00 1D 57 80 11 00 00 00 00 00 00 EE [12:33:42]Write i2c OK [12:33:42]MH_I2C_Read... [12:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:42]Read from MH i2c: E2 [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: E2 17 00 [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: E2 17 00 1D 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 45 [12:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:33:42]wFMCommunicate OK [12:33:42]requested_item fd.num is exist - process it [12:33:42]SAM_PROTO_GetFieldsCounters [12:33:42]wFMCommunicate request_size=4 [12:33:42]MH_SAM_APDU [12:33:42]CAPDU: 80 13 00 00 [12:33:42]Write to MH i2c: E2 08 00 1E 57 80 13 00 00 00 00 00 00 F1 [12:33:42]Write i2c OK [12:33:42]MH_I2C_Read... [12:33:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:42]Read from MH i2c: E2 [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: E2 62 00 [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: E2 62 00 1E 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 40 E1 01 00 0E 04 04 00 2D 02 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 0A [12:33:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 40 E1 01 00 0E 04 04 00 2D 02 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 [12:33:42]wFMCommunicate OK [12:33:42]SAM_PROTO_GetFieldsCounters done [12:33:42]requested_item shift.num is exist - process it [12:33:42]requested_item shift.opened is exist - process it [12:33:42]req_shift_opened [12:33:42]FM_GetShiftState [12:33:42]SAM_PROTO_GetShiftState [12:33:42]wFMCommunicate request_size=4 [12:33:42]MH_SAM_APDU [12:33:42]CAPDU: 80 13 01 00 [12:33:42]Write to MH i2c: E2 08 00 1F 57 80 13 01 00 00 00 00 00 F3 [12:33:42]Write i2c OK [12:33:42]MH_I2C_Read... [12:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:42]Read from MH i2c: E2 [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: E2 0E 00 [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: E2 0E 00 1F 57 00 09 00 01 98 11 45 67 00 00 00 00 90 00 54 [12:33:42]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:33:42]wFMCommunicate OK [12:33:42]SAM_PROTO_GetShiftState done [12:33:42]FM_GetShiftState done [12:33:42]req_shift_opened done [12:33:42]requested_item shift.open_date is exist - process it [12:33:42]req_shift_open_date [12:33:42]req_shift_open_date done [12:33:42]produce_requested_data done [12:33:42]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123200,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [12:33:42]process_action_free close_receipt [12:33:42]json_value_free [12:33:42]json_value_free done [12:33:42]process_json_proto returns [12:33:42]Send response to host [12:33:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123200,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [12:33:42]free response buf [12:33:42]execute_script done [12:33:42]execute_script returns [12:33:42]free content buf [12:33:42]Sock 7.Close socket [12:33:42]Sock 7.Thread stoped [12:33:45]OFD Sender: No OFD packet to send [12:33:50]OFD Sender: No OFD packet to send [12:33:55]OFD Sender: No OFD packet to send [12:34:00]OFD Sender: No OFD packet to send [12:34:05]OFD Sender: No OFD packet to send [12:34:10]OFD Sender: No OFD packet to send [12:34:15]OFD Sender: No OFD packet to send [12:34:20]OFD Sender: No OFD packet to send [12:34:25]OFD Sender: No OFD packet to send [12:34:30]OFD Sender: No OFD packet to send [12:34:35]OFD Sender: No OFD packet to send [12:34:40]OFD Sender: No OFD packet to send [12:34:45]OFD Sender: No OFD packet to send [12:34:50]OFD Sender: No OFD packet to send [12:34:55]OFD Sender: No OFD packet to send [12:35:00]OFD Sender: No OFD packet to send [12:35:05]OFD Sender: No OFD packet to send [12:35:10]OFD Sender: No OFD packet to send [12:35:15]OFD Sender: No OFD packet to send [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]OFD Sender: No OFD packet to send [12:37:06]OFD Sender: No OFD packet to send [12:37:11]OFD Sender: No OFD packet to send [12:37:16]OFD Sender: No OFD packet to send [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:37:59]accept exits with 9 [12:37:59]New connection [12:37:59]New thread 3066580324 created [12:37:59]Thread 3066723684 joined [12:37:59]Waiting for new connection... [12:37:59] Sock 9.Parse request [12:37:59]Sock 9.Check first char [12:37:59]Sock 9.First char is OK [12:37:59]request: POST /json_proto HTTP/1.0 [12:37:59]Method: POST [12:37:59]URL: /json_proto [12:37:59]Method is POST - this is cgi request [12:37:59]url: /json_proto [12:37:59]query_string will be loaded in cgi processing [12:37:59]execute_cgi json_proto POST (null) [12:37:59]execute_cgi path=json_proto method=POST [12:37:59]POST find Content-Length [12:37:59]Host: 172.17.37.4:8080 [12:37:59]Content-Length: 807 [12:37:59]Content-Type: application/json [12:37:59] [12:37:59]POST finish read [12:37:59]Found Content-Length = 807 [12:37:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 40.060, "sum" : 3000.49, "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" : 3000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:59]execute_script... [12:37:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 40.060, "sum" : 3000.49, "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" : 3000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:59]POST & json_proto [12:37:59]process_json_proto [12:37:59]json parsed OK: [12:37:59]protocol is kg_v1.0 [12:37:59]action value=close_receipt [12:37:59]process_action close_receipt [12:37:59]cmd_close_receipt [12:37:59]MH_GetDate [12:37:59]Write to MH i2c: F0 00 00 20 57 66 [12:37:59]Write i2c OK [12:37:59]MH_I2C_Read... [12:37:59]Read from MH i2c: F0 [12:37:59]MH_I2C_Read... [12:37:59]Read from MH i2c: F0 09 00 [12:37:59]MH_I2C_Read... [12:37:59]Read from MH i2c: F0 09 00 20 57 00 31 C1 45 67 B8 5A 43 67 C9 [12:37:59]GetLastDocTimeStamp 1732624428 [12:37:59]current date 1732624689 [12:37:59]FM_GetShiftState [12:37:59]SAM_PROTO_GetShiftState [12:37:59]wFMCommunicate request_size=4 [12:37:59]MH_SAM_APDU [12:37:59]CAPDU: 80 13 01 00 [12:37:59]Write to MH i2c: E2 08 00 21 57 80 13 01 00 00 00 00 00 F5 [12:37:59]Write i2c OK [12:37:59]MH_I2C_Read... [12:37:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:59]Read from MH i2c: E2 [12:37:59]MH_I2C_Read... [12:37:59]Read from MH i2c: E2 0E 00 [12:37:59]MH_I2C_Read... [12:37:59]Read from MH i2c: E2 0E 00 21 57 00 09 00 01 98 11 45 67 00 00 00 00 90 00 56 [12:37:59]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:37:59]wFMCommunicate OK [12:37:59]SAM_PROTO_GetShiftState done [12:37:59]FM_GetShiftState done [12:37:59]opened in 1732579736 [12:37:59]opened+sec_in_day 1732666136 [12:37:59]quantity*price = 300049 [12:37:59]sum+1 = 300050 [12:37:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.49 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.49 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 55 26.11.2024 12:38 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123201 ФПД: 252246456416193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T123809&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123201&fm=252246456416193&tin=02508201610067®Number=0000000000092681&sum=300049 [12:38:00]StoreToDocumentArchive [12:38:00]shift 557 fd 123201 [12:38:00]save to /storage/0557/doc_00123201 [12:38:00]save last doc name /storage/0557/doc_00123201 to /storage/kkm_last_doc_name [12:38:00]save OK [12:38:00]Clear old archive folders... [12:38:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:38:00]tlvbuf is B6EA2640 [12:38:00]SAM_PROTO_ClearQueue [12:38:00]wFMCommunicate request_size=4 [12:38:00]MH_SAM_APDU [12:38:00]CAPDU: 80 09 00 00 [12:38:00]Write to MH i2c: E2 08 00 2E 57 80 09 00 00 00 00 00 00 F7 [12:38:00]Write i2c OK [12:38:00]MH_I2C_Read... [12:38:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:00]Read from MH i2c: E2 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 03 00 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 03 00 2E 57 00 90 00 F9 [12:38:00]RAPDU: 90 00 [12:38:00]wFMCommunicate OK [12:38:00]SAM_PROTO_ClearQueue done [12:38:00]KKMCreateOFDPacket [12:38:00]OFDProtocolAddRootSTLVToBuf [12:38:00]FM_MakeSignedData [12:38:00]FM_MakeSignedData [12:38:00]SAM_PROTO_SignData [12:38:00]wFMCommunicate request_size=4 [12:38:00]MH_SAM_APDU [12:38:00]CAPDU: 80 0D 01 02 [12:38:00]Write to MH i2c: E2 08 00 2F 57 80 0D 01 02 00 00 00 00 FF [12:38:00]Write i2c OK [12:38:00]MH_I2C_Read... [12:38:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:00]Read from MH i2c: E2 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 03 00 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 03 00 2F 57 00 90 00 FA [12:38:00]RAPDU: 90 00 [12:38:00]wFMCommunicate OK [12:38:00]wFMCommunicate request_size=255 [12:38:00]MH_SAM_APDU [12:38:00]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 35 FF 03 08 00 03 7C 9C 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 31 C1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 41 E1 01 00 35 04 06 00 [12:38:00]Write to MH i2c: E2 02 01 30 57 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 35 FF 03 08 00 03 7C 9C 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 31 C1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 41 E1 01 00 35 04 06 00 00 00 3F [12:38:00]Write i2c OK [12:38:00]MH_I2C_Read... [12:38:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:00]Read from MH i2c: E2 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 03 00 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 03 00 30 57 00 90 00 FB [12:38:00]RAPDU: 90 00 [12:38:00]wFMCommunicate OK [12:38:00]wFMCommunicate request_size=11 [12:38:00]MH_SAM_APDU [12:38:00]CAPDU: 80 0D 02 02 06 E5 6A B4 6E 37 C1 [12:38:00]Write to MH i2c: E2 0E 00 31 57 80 0D 02 02 06 00 E5 6A B4 6E 37 C1 00 00 77 [12:38:00]Write i2c OK [12:38:00]MH_I2C_Read... [12:38:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:00]Read from MH i2c: E2 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 03 00 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 03 00 31 57 00 90 00 FC [12:38:00]RAPDU: 90 00 [12:38:00]wFMCommunicate OK [12:38:00]wFMCommunicate request_size=4 [12:38:00]MH_SAM_APDU [12:38:00]CAPDU: 80 0D 03 02 [12:38:00]Write to MH i2c: E2 08 00 32 57 80 0D 03 02 00 00 00 00 04 [12:38:00]Write i2c OK [12:38:00]MH_I2C_Read... [12:38:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:00]Read from MH i2c: E2 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 0B 00 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 0B 00 32 57 00 9E 65 5C BF F0 BD 4C CB 90 00 E7 [12:38:00]RAPDU: 9E 65 5C BF F0 BD 4C CB 90 00 [12:38:00]wFMCommunicate OK [12:38:00]SAM_PROTO_SignData done [12:38:00]FM_MakeSignedData done [12:38:00]CreateOFDProtocolMessage [12:38:00]wFMCommunicate request_size=4 [12:38:00]MH_SAM_APDU [12:38:00]CAPDU: 80 11 00 00 [12:38:00]Write to MH i2c: E2 08 00 33 57 80 11 00 00 00 00 00 00 04 [12:38:00]Write i2c OK [12:38:00]MH_I2C_Read... [12:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:00]Read from MH i2c: E2 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 17 00 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 17 00 33 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5B [12:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:38:00]wFMCommunicate OK [12:38:00]CreateOFDProtocolMessage done [12:38:00]OFDSenderStorePacket 123201 [12:38:00]StoreOFDPacket docnum=123201 [12:38:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 46 A5 08 01 F8 66 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 35 FF 03 08 00 03 7C 9C 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 31 C1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 41 E1 01 00 35 04 06 00 E5 6A B4 6E 37 C1 9E 65 5C BF F0 BD 4C CB [12:38:00]CheckFolder [12:38:00]dirname=/storage/ofd_packets [12:38:00]CheckFolder done [12:38:00]ProducePacketName [12:38:00]name=ofd_packets/00123201 [12:38:00]NVStorageSaveData ofd_packets/00123201 [12:38:00]File name is /storage/ofd_packets/00123201 [12:38:00]Write 302 bytes [12:38:00]NVStorageSaveData done [12:38:00]OFDSenderStorePacket done [12:38:00]KKMCreateOFDPacket done [12:38:00]NVStorageSaveData kkm_last_timestamp [12:38:00]File name is /storage/kkm_last_timestamp [12:38:00]Write 4 bytes [12:38:00]NVStorageSaveData done [12:38:00]ExternCall_PrintAddStr [12:38:00]wPrintStart [12:38:00]Write to MH i2c: 01 00 00 34 57 8B [12:38:00]Write i2c OK [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: 01 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: 01 07 00 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: 01 07 00 34 57 00 00 00 00 00 FF 0F A0 [12:38:00]RasterBufferAndPrint [12:38:00]line Счет N : (1)718035 [12:38:00]line ИНН: 02508201610067 [12:38:00]line Контрольно-Кассовый Чек [12:38:00]line ПРОДАЖА [12:38:00]line ТРК (МРК, ГНК) : 5 [12:38:00]line Товар: 2710194210 [12:38:00]line ДТ(л)-К-5 [12:38:00]line 40.060 * 74.90 [12:38:00]line = 3000.49 [12:38:00]line НДС 12% НСП 1% [12:38:00]line > о реализуемом товаре [12:38:00]line ИТОГО: 3000.49 [12:38:00]line НСП 1% : 26.55 [12:38:00]line НДС 12% : 318.64 [12:38:00]line Наличными: 0.00 [12:38:00]line Безнал.: 3000.49 [12:38:00]line Место: АЗС № 64 "Партнер Нефть" [12:38:00]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:38:00]line СНО: Общий режим [12:38:00]line Чек 55 26.11.2024 12:38 [12:38:00]line Смена: 557 ФФД: 1.0 [12:38:00]line ЗНМ: 0300000033 [12:38:00]line РНМ: 0000000000092681 [12:38:00]line Версия ККМ: 001 [12:38:00]line Платежная система: O! деньги [12:38:00]line ФМ: 0000000000874881 [12:38:00]line ФД: 123201 [12:38:00]line ФПД: 252246456416193 [12:38:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T123809&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123201&fm=252246456416193&tin=02508201610067®Number=0000000000092681&sum=300049 [12:38:01]written 0, free lines is 4095 [12:38:01]OFD Sender: Processing packet 123201 [packets to send 7, broken 6] [12:38:01]ProducePacketName [12:38:01]name=ofd_packets/00123201 [12:38:01]OFD Sender: To server: pG, [12:38:01]CommunicateWithHost lk.salyk.kg:30040 [12:38:01]ConnectInit lk.salyk.kg [12:38:01]Connected sock=10 [12:38:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 46 A5 08 01 F8 66 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 35 FF 03 08 00 03 7C 9C 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 31 C1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 41 E1 01 00 35 04 06 00 E5 6A B4 6E 37 C1 9E 65 5C BF F0 BD 4C CB [12:38:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 74 A6 47 00 90 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 41 E1 01 00 F4 03 04 00 F4 6C 45 67 B6 04 01 00 00 27 19 F3 D9 B4 B0 1D 34 [12:38:01]CommunicateWithHost err = 0 [12:38:01]CheckOFDResponse [12:38:01]1017 (14) - 77093643461234 [12:38:01]1041 (16) - 0000000000874881 [12:38:01]1040 (4) - 123201 [12:38:01]1012 (4) - 26.11.2024 06:38 [12:38:01]1206 (1) - 0 [12:38:01]OFD Sender: Remove packet 123201 [12:38:01]ProducePacketName [12:38:01]name=ofd_packets/00123201 [12:38:01]NVStorageDeleteData [12:38:01]Write to MH i2c: 01 00 00 5E 57 B5 [12:38:01]Write i2c OK [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: 01 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: 01 07 00 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: 01 07 00 5E 57 00 00 00 00 00 70 0C 38 [12:38:01]RasterBufferAndPrint [12:38:01]line [12:38:01]line [12:38:01]line [12:38:01]line [12:38:01]line [12:38:01]written 0, free lines is 3188 [12:38:01]MH_Cut [12:38:01]Write to MH i2c: D1 01 00 65 57 01 8E [12:38:01]Write i2c OK [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: D1 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: D1 01 00 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: D1 01 00 65 57 00 8D [12:38:01]Write to MH i2c: 01 00 00 66 57 BD [12:38:01]Write i2c OK [12:38:01]MH_I2C_Read... [12:38:01]OFD Sender: No OFD packet to send [12:38:02]*** Cut start [12:38:02]*** Partial cut [12:38:02]*** CUTSNS_PIN = 1 [12:38:02]*** CUTSNS_PIN = 0 [12:38:03]*** Brake cut motor [12:38:03]Read from MH i2c: 01 [12:38:03]MH_I2C_Read... [12:38:03]*** Stop cut motor [12:38:03]*** Cut end [12:38:03]Read from MH i2c: 01 07 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: 01 07 00 66 57 00 00 00 00 00 FF 0F D2 [12:38:03]process_action close_receipt done [12:38:03]requested_data is exist [12:38:03]produce_requested_data [12:38:03]requested_item fm.sn is exist - process it [12:38:03]wFMCommunicate request_size=4 [12:38:03]MH_SAM_APDU [12:38:03]CAPDU: 80 11 00 00 [12:38:03]Write to MH i2c: E2 08 00 67 57 80 11 00 00 00 00 00 00 38 [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:03]Read from MH i2c: E2 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 17 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 17 00 67 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8F [12:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:38:03]wFMCommunicate OK [12:38:03]requested_item fd.num is exist - process it [12:38:03]SAM_PROTO_GetFieldsCounters [12:38:03]wFMCommunicate request_size=4 [12:38:03]MH_SAM_APDU [12:38:03]CAPDU: 80 13 00 00 [12:38:03]Write to MH i2c: E2 08 00 68 57 80 13 00 00 00 00 00 00 3B [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:03]Read from MH i2c: E2 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 62 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 62 00 68 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 41 E1 01 00 0E 04 04 00 2D 02 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 58 [12:38:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 41 E1 01 00 0E 04 04 00 2D 02 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 [12:38:03]wFMCommunicate OK [12:38:03]SAM_PROTO_GetFieldsCounters done [12:38:03]requested_item shift.num is exist - process it [12:38:03]requested_item shift.opened is exist - process it [12:38:03]req_shift_opened [12:38:03]FM_GetShiftState [12:38:03]SAM_PROTO_GetShiftState [12:38:03]wFMCommunicate request_size=4 [12:38:03]MH_SAM_APDU [12:38:03]CAPDU: 80 13 01 00 [12:38:03]Write to MH i2c: E2 08 00 69 57 80 13 01 00 00 00 00 00 3D [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:03]Read from MH i2c: E2 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 0E 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 0E 00 69 57 00 09 00 01 98 11 45 67 00 00 00 00 90 00 9E [12:38:03]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:38:03]wFMCommunicate OK [12:38:03]SAM_PROTO_GetShiftState done [12:38:03]FM_GetShiftState done [12:38:03]req_shift_opened done [12:38:03]requested_item shift.open_date is exist - process it [12:38:03]req_shift_open_date [12:38:03]req_shift_open_date done [12:38:03]produce_requested_data done [12:38:03]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123201,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [12:38:03]process_action_free close_receipt [12:38:03]json_value_free [12:38:03]json_value_free done [12:38:03]process_json_proto returns [12:38:03]Send response to host [12:38:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123201,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [12:38:03]free response buf [12:38:03]execute_script done [12:38:03]execute_script returns [12:38:03]free content buf [12:38:03]Sock 9.Close socket [12:38:03]Sock 9.Thread stoped [12:38:06]OFD Sender: No OFD packet to send [12:38:11]OFD Sender: No OFD packet to send [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:21]accept exits with 7 [12:45:21]New connection [12:45:21]New thread 3066723684 created [12:45:21]Thread 3066580324 joined [12:45:21]Waiting for new connection... [12:45:21] Sock 7.Parse request [12:45:21]Sock 7.Check first char [12:45:21]Sock 7.First char is OK [12:45:21]request: POST /json_proto HTTP/1.0 [12:45:21]Method: POST [12:45:21]URL: /json_proto [12:45:21]Method is POST - this is cgi request [12:45:21]url: /json_proto [12:45:21]query_string will be loaded in cgi processing [12:45:21]execute_cgi json_proto POST (null) [12:45:21]execute_cgi path=json_proto method=POST [12:45:21]POST find Content-Length [12:45:21]Host: 172.17.37.4:8080 [12:45:21]Content-Length: 800 [12:45:21]Content-Type: application/json [12:45:21] [12:45:21]POST finish read [12:45:21]Found Content-Length = 800 [12:45:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "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" : 400.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:21]execute_script... [12:45:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "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" : 400.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:21]POST & json_proto [12:45:21]process_json_proto [12:45:21]json parsed OK: [12:45:21]protocol is kg_v1.0 [12:45:21]action value=close_receipt [12:45:21]process_action close_receipt [12:45:21]cmd_close_receipt [12:45:21]MH_GetDate [12:45:21]Write to MH i2c: F0 00 00 6A 57 B0 [12:45:21]Write i2c OK [12:45:21]MH_I2C_Read... [12:45:21]Read from MH i2c: F0 [12:45:21]MH_I2C_Read... [12:45:21]Read from MH i2c: F0 09 00 [12:45:21]MH_I2C_Read... [12:45:21]Read from MH i2c: F0 09 00 6A 57 00 EC C2 45 67 B8 5A 43 67 CF [12:45:21]GetLastDocTimeStamp 1732624689 [12:45:21]current date 1732625132 [12:45:21]FM_GetShiftState [12:45:21]SAM_PROTO_GetShiftState [12:45:21]wFMCommunicate request_size=4 [12:45:21]MH_SAM_APDU [12:45:21]CAPDU: 80 13 01 00 [12:45:21]Write to MH i2c: E2 08 00 6B 57 80 13 01 00 00 00 00 00 3F [12:45:21]Write i2c OK [12:45:21]MH_I2C_Read... [12:45:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:21]Read from MH i2c: E2 [12:45:21]MH_I2C_Read... [12:45:21]Read from MH i2c: E2 0E 00 [12:45:21]MH_I2C_Read... [12:45:21]Read from MH i2c: E2 0E 00 6B 57 00 09 00 01 98 11 45 67 00 00 00 00 90 00 A0 [12:45:21]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:45:21]wFMCommunicate OK [12:45:21]SAM_PROTO_GetShiftState done [12:45:21]FM_GetShiftState done [12:45:21]opened in 1732579736 [12:45:21]opened+sec_in_day 1732666136 [12:45:21]quantity*price = 40035 [12:45:21]sum+1 = 40037 [12:45:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.36 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 0.00 Безнал.: 400.36 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 56 26.11.2024 12:45 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123202 ФПД: 93310341311285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T124532&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123202&fm=93310341311285&tin=02508201610067®Number=0000000000092681&sum=40036 [12:45:22]StoreToDocumentArchive [12:45:22]shift 557 fd 123202 [12:45:22]save to /storage/0557/doc_00123202 [12:45:22]save last doc name /storage/0557/doc_00123202 to /storage/kkm_last_doc_name [12:45:22]save OK [12:45:22]Clear old archive folders... [12:45:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:22]tlvbuf is 01F93460 [12:45:22]SAM_PROTO_ClearQueue [12:45:22]wFMCommunicate request_size=4 [12:45:22]MH_SAM_APDU [12:45:22]CAPDU: 80 09 00 00 [12:45:22]Write to MH i2c: E2 08 00 78 57 80 09 00 00 00 00 00 00 41 [12:45:22]Write i2c OK [12:45:22]MH_I2C_Read... [12:45:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:22]Read from MH i2c: E2 [12:45:22]MH_I2C_Read... [12:45:22]Read from MH i2c: E2 03 00 [12:45:22]MH_I2C_Read... [12:45:22]Read from MH i2c: E2 03 00 78 57 00 90 00 43 [12:45:22]RAPDU: 90 00 [12:45:22]wFMCommunicate OK [12:45:22]SAM_PROTO_ClearQueue done [12:45:22]KKMCreateOFDPacket [12:45:22]OFDProtocolAddRootSTLVToBuf [12:45:22]FM_MakeSignedData [12:45:22]FM_MakeSignedData [12:45:22]SAM_PROTO_SignData [12:45:22]wFMCommunicate request_size=4 [12:45:22]MH_SAM_APDU [12:45:22]CAPDU: 80 0D 01 02 [12:45:22]Write to MH i2c: E2 08 00 79 57 80 0D 01 02 00 00 00 00 49 [12:45:22]Write i2c OK [12:45:22]MH_I2C_Read... [12:45:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:22]Read from MH i2c: E2 [12:45:22]MH_I2C_Read... [12:45:22]Read from MH i2c: E2 03 00 [12:45:22]MH_I2C_Read... [12:45:22]Read from MH i2c: E2 03 00 79 57 00 90 00 44 [12:45:22]RAPDU: 90 00 [12:45:22]wFMCommunicate OK [12:45:22]wFMCommunicate request_size=255 [12:45:22]MH_SAM_APDU [12:45:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 EC C2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 42 E1 01 00 35 04 06 00 54 [12:45:22]Write to MH i2c: E2 02 01 7A 57 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 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 EC C2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 42 E1 01 00 35 04 06 00 54 00 00 58 [12:45:22]Write i2c OK [12:45:22]MH_I2C_Read... [12:45:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:23]Read from MH i2c: E2 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: E2 03 00 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: E2 03 00 7A 57 00 90 00 45 [12:45:23]RAPDU: 90 00 [12:45:23]wFMCommunicate OK [12:45:23]wFMCommunicate request_size=10 [12:45:23]MH_SAM_APDU [12:45:23]CAPDU: 80 0D 02 02 05 DD 81 BF 6B 35 [12:45:23]Write to MH i2c: E2 0D 00 7B 57 80 0D 02 02 05 00 DD 81 BF 6B 35 00 00 13 [12:45:23]Write i2c OK [12:45:23]MH_I2C_Read... [12:45:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:23]Read from MH i2c: E2 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: E2 03 00 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: E2 03 00 7B 57 00 90 00 46 [12:45:23]RAPDU: 90 00 [12:45:23]wFMCommunicate OK [12:45:23]wFMCommunicate request_size=4 [12:45:23]MH_SAM_APDU [12:45:23]CAPDU: 80 0D 03 02 [12:45:23]Write to MH i2c: E2 08 00 7C 57 80 0D 03 02 00 00 00 00 4E [12:45:23]Write i2c OK [12:45:23]MH_I2C_Read... [12:45:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:23]Read from MH i2c: E2 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: E2 0B 00 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: E2 0B 00 7C 57 00 FA 07 88 2C DC 8D FA 78 90 00 DF [12:45:23]RAPDU: FA 07 88 2C DC 8D FA 78 90 00 [12:45:23]wFMCommunicate OK [12:45:23]SAM_PROTO_SignData done [12:45:23]FM_MakeSignedData done [12:45:23]CreateOFDProtocolMessage [12:45:23]wFMCommunicate request_size=4 [12:45:23]MH_SAM_APDU [12:45:23]CAPDU: 80 11 00 00 [12:45:23]Write to MH i2c: E2 08 00 7D 57 80 11 00 00 00 00 00 00 4E [12:45:23]Write i2c OK [12:45:23]MH_I2C_Read... [12:45:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:23]Read from MH i2c: E2 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: E2 17 00 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: E2 17 00 7D 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A5 [12:45:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:45:23]wFMCommunicate OK [12:45:23]CreateOFDProtocolMessage done [12:45:23]OFDSenderStorePacket 123202 [12:45:23]StoreOFDPacket docnum=123202 [12:45:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 9F EB 07 01 BC 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 EC C2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 42 E1 01 00 35 04 06 00 54 DD 81 BF 6B 35 FA 07 88 2C DC 8D FA 78 [12:45:23]CheckFolder [12:45:23]dirname=/storage/ofd_packets [12:45:23]CheckFolder done [12:45:23]ProducePacketName [12:45:23]name=ofd_packets/00123202 [12:45:23]NVStorageSaveData ofd_packets/00123202 [12:45:23]File name is /storage/ofd_packets/00123202 [12:45:23]Write 301 bytes [12:45:23]NVStorageSaveData done [12:45:23]OFDSenderStorePacket done [12:45:23]KKMCreateOFDPacket done [12:45:23]NVStorageSaveData kkm_last_timestamp [12:45:23]File name is /storage/kkm_last_timestamp [12:45:23]Write 4 bytes [12:45:23]NVStorageSaveData done [12:45:23]ExternCall_PrintAddStr [12:45:23]wPrintStart [12:45:23]Write to MH i2c: 01 00 00 7E 57 D5 [12:45:23]Write i2c OK [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: 01 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: 01 07 00 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: 01 07 00 7E 57 00 00 00 00 00 FF 0F EA [12:45:23]RasterBufferAndPrint [12:45:23]line Счет N : (1)718036 [12:45:23]line ИНН: 02508201610067 [12:45:23]line Контрольно-Кассовый Чек [12:45:23]line ПРОДАЖА [12:45:23]line ТРК (МРК, ГНК) : 22 [12:45:23]line Товар: 2710124130 [12:45:23]line Аи-92-К-4 [12:45:23]line 5.940 * 67.40 [12:45:23]line = 400.36 [12:45:23]line НДС 12% НСП 1% [12:45:23]line > о реализуемом товаре [12:45:23]line ИТОГО: 400.36 [12:45:23]line НСП 1% : 3.54 [12:45:23]line НДС 12% : 42.52 [12:45:23]line Наличными: 0.00 [12:45:23]line Безнал.: 400.36 [12:45:23]line Место: АЗС № 64 "Партнер Нефть" [12:45:23]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:45:23]line СНО: Общий режим [12:45:23]line Чек 56 26.11.2024 12:45 [12:45:23]line Смена: 557 ФФД: 1.0 [12:45:23]line ЗНМ: 0300000033 [12:45:23]line РНМ: 0000000000092681 [12:45:23]line Версия ККМ: 001 [12:45:23]line Платежная система: O! деньги [12:45:23]line ФМ: 0000000000874881 [12:45:23]line ФД: 123202 [12:45:23]line ФПД: 93310341311285 [12:45:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T124532&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123202&fm=93310341311285&tin=02508201610067®Number=0000000000092681&sum=40036 [12:45:23]written 0, free lines is 4095 [12:45:23]OFD Sender: Processing packet 123202 [packets to send 7, broken 6] [12:45:23]ProducePacketName [12:45:23]name=ofd_packets/00123202 [12:45:23]OFD Sender: To server: pG, [12:45:23]CommunicateWithHost lk.salyk.kg:30040 [12:45:23]ConnectInit lk.salyk.kg [12:45:23]Connected sock=10 [12:45:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 9F EB 07 01 BC 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 EC C2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 42 E1 01 00 35 04 06 00 54 DD 81 BF 6B 35 FA 07 88 2C DC 8D FA 78 [12:45:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 1F 38 47 00 69 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 42 E1 01 00 F4 03 04 00 AE 6E 45 67 B6 04 01 00 00 9F 1E 27 F1 46 45 B8 2B [12:45:23]CommunicateWithHost err = 0 [12:45:23]CheckOFDResponse [12:45:23]1017 (14) - 77093643461234 [12:45:23]1041 (16) - 0000000000874881 [12:45:23]1040 (4) - 123202 [12:45:23]1012 (4) - 26.11.2024 06:46 [12:45:23]1206 (1) - 0 [12:45:23]OFD Sender: Remove packet 123202 [12:45:23]ProducePacketName [12:45:23]name=ofd_packets/00123202 [12:45:23]NVStorageDeleteData [12:45:23]Write to MH i2c: 01 00 00 A8 57 FF [12:45:23]Write i2c OK [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: 01 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: 01 07 00 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: 01 07 00 A8 57 00 00 00 00 00 66 0C 78 [12:45:23]RasterBufferAndPrint [12:45:23]line [12:45:23]line [12:45:23]line [12:45:23]line [12:45:23]line [12:45:23]written 0, free lines is 3179 [12:45:23]MH_Cut [12:45:23]Write to MH i2c: D1 01 00 AF 57 01 D8 [12:45:23]Write i2c OK [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: D1 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: D1 01 00 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: D1 01 00 AF 57 00 D7 [12:45:23]Write to MH i2c: 01 00 00 B0 57 07 [12:45:23]Write i2c OK [12:45:23]MH_I2C_Read... [12:45:24]OFD Sender: No OFD packet to send [12:45:25]*** Cut start [12:45:25]*** Partial cut [12:45:25]*** CUTSNS_PIN = 1 [12:45:25]*** CUTSNS_PIN = 0 [12:45:25]*** Brake cut motor [12:45:25]Read from MH i2c: 01 [12:45:25]MH_I2C_Read... [12:45:25]*** Stop cut motor [12:45:25]*** Cut end [12:45:25]Read from MH i2c: 01 07 00 [12:45:25]MH_I2C_Read... [12:45:25]Read from MH i2c: 01 07 00 B0 57 00 00 00 00 00 FF 0F 1C [12:45:25]process_action close_receipt done [12:45:25]requested_data is exist [12:45:25]produce_requested_data [12:45:25]requested_item fm.sn is exist - process it [12:45:25]wFMCommunicate request_size=4 [12:45:25]MH_SAM_APDU [12:45:25]CAPDU: 80 11 00 00 [12:45:25]Write to MH i2c: E2 08 00 B1 57 80 11 00 00 00 00 00 00 82 [12:45:25]Write i2c OK [12:45:25]MH_I2C_Read... [12:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:26]Read from MH i2c: E2 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 17 00 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 17 00 B1 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D9 [12:45:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:45:26]wFMCommunicate OK [12:45:26]requested_item fd.num is exist - process it [12:45:26]SAM_PROTO_GetFieldsCounters [12:45:26]wFMCommunicate request_size=4 [12:45:26]MH_SAM_APDU [12:45:26]CAPDU: 80 13 00 00 [12:45:26]Write to MH i2c: E2 08 00 B2 57 80 13 00 00 00 00 00 00 85 [12:45:26]Write i2c OK [12:45:26]MH_I2C_Read... [12:45:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:26]Read from MH i2c: E2 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 62 00 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 62 00 B2 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 42 E1 01 00 0E 04 04 00 2D 02 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 A6 [12:45:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 42 E1 01 00 0E 04 04 00 2D 02 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 [12:45:26]wFMCommunicate OK [12:45:26]SAM_PROTO_GetFieldsCounters done [12:45:26]requested_item shift.num is exist - process it [12:45:26]requested_item shift.opened is exist - process it [12:45:26]req_shift_opened [12:45:26]FM_GetShiftState [12:45:26]SAM_PROTO_GetShiftState [12:45:26]wFMCommunicate request_size=4 [12:45:26]MH_SAM_APDU [12:45:26]CAPDU: 80 13 01 00 [12:45:26]Write to MH i2c: E2 08 00 B3 57 80 13 01 00 00 00 00 00 87 [12:45:26]Write i2c OK [12:45:26]MH_I2C_Read... [12:45:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:26]Read from MH i2c: E2 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 0E 00 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 0E 00 B3 57 00 09 00 01 98 11 45 67 00 00 00 00 90 00 E8 [12:45:26]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [12:45:26]wFMCommunicate OK [12:45:26]SAM_PROTO_GetShiftState done [12:45:26]FM_GetShiftState done [12:45:26]req_shift_opened done [12:45:26]requested_item shift.open_date is exist - process it [12:45:26]req_shift_open_date [12:45:26]req_shift_open_date done [12:45:26]produce_requested_data done [12:45:26]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123202,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [12:45:26]process_action_free close_receipt [12:45:26]json_value_free [12:45:26]json_value_free done [12:45:26]process_json_proto returns [12:45:26]Send response to host [12:45:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123202,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [12:45:26]free response buf [12:45:26]execute_script done [12:45:26]execute_script returns [12:45:26]free content buf [12:45:26]Sock 7.Close socket [12:45:26]Sock 7.Thread stoped [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [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:44]OFD Sender: No OFD packet to send [12:59:49]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00: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:01]accept exits with 9 [13:01:01]New connection [13:01:01]New thread 3066580324 created [13:01:01]Thread 3066723684 joined [13:01:01]Waiting for new connection... [13:01:01] Sock 9.Parse request [13:01:01]Sock 9.Check first char [13:01:01]Sock 9.First char is OK [13:01:01]request: POST /json_proto HTTP/1.0 [13:01:01]Method: POST [13:01:01]URL: /json_proto [13:01:01]Method is POST - this is cgi request [13:01:01]url: /json_proto [13:01:01]query_string will be loaded in cgi processing [13:01:01]execute_cgi json_proto POST (null) [13:01:01]execute_cgi path=json_proto method=POST [13:01:01]POST find Content-Length [13:01:01]Host: 172.17.37.4:8080 [13:01:01]Content-Length: 681 [13:01:01]Content-Type: application/json [13:01:01] [13:01:01]POST finish read [13:01:01]Found Content-Length = 681 [13:01:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 4.010, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:01]execute_script... [13:01:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 4.010, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:01]POST & json_proto [13:01:01]process_json_proto [13:01:01]json parsed OK: [13:01:01]protocol is kg_v1.0 [13:01:01]action value=close_receipt [13:01:01]process_action close_receipt [13:01:01]cmd_close_receipt [13:01:01]MH_GetDate [13:01:01]Write to MH i2c: F0 00 00 B4 57 FA [13:01:01]Write i2c OK [13:01:01]MH_I2C_Read... [13:01:01]Read from MH i2c: F0 [13:01:01]MH_I2C_Read... [13:01:01]Read from MH i2c: F0 09 00 [13:01:01]MH_I2C_Read... [13:01:01]Read from MH i2c: F0 09 00 B4 57 00 98 C6 45 67 B8 5A 43 67 C9 [13:01:01]GetLastDocTimeStamp 1732625132 [13:01:01]current date 1732626072 [13:01:01]FM_GetShiftState [13:01:01]SAM_PROTO_GetShiftState [13:01:01]wFMCommunicate request_size=4 [13:01:01]MH_SAM_APDU [13:01:01]CAPDU: 80 13 01 00 [13:01:01]Write to MH i2c: E2 08 00 B5 57 80 13 01 00 00 00 00 00 89 [13:01:01]Write i2c OK [13:01:01]MH_I2C_Read... [13:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:01]Read from MH i2c: E2 [13:01:01]MH_I2C_Read... [13:01:01]Read from MH i2c: E2 0E 00 [13:01:01]MH_I2C_Read... [13:01:01]Read from MH i2c: E2 0E 00 B5 57 00 09 00 01 98 11 45 67 00 00 00 00 90 00 EA [13:01:01]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:01:01]wFMCommunicate OK [13:01:01]SAM_PROTO_GetShiftState done [13:01:01]FM_GetShiftState done [13:01:01]opened in 1732579736 [13:01:01]opened+sec_in_day 1732666136 [13:01:01]quantity*price = 30034 [13:01:01]sum+1 = 30036 [13:01:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 57 26.11.2024 13:01 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123203 ФПД: 200572763877022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T130112&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123203&fm=200572763877022&tin=02508201610067®Number=0000000000092681&sum=30000 [13:01:02]StoreToDocumentArchive [13:01:02]shift 557 fd 123203 [13:01:02]save to /storage/0557/doc_00123203 [13:01:02]save last doc name /storage/0557/doc_00123203 to /storage/kkm_last_doc_name [13:01:02]save OK [13:01:02]Clear old archive folders... [13:01:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:01:02]tlvbuf is 01F93460 [13:01:02]SAM_PROTO_ClearQueue [13:01:02]wFMCommunicate request_size=4 [13:01:02]MH_SAM_APDU [13:01:02]CAPDU: 80 09 00 00 [13:01:02]Write to MH i2c: E2 08 00 C2 57 80 09 00 00 00 00 00 00 8B [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:02]Read from MH i2c: E2 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 C2 57 00 90 00 8D [13:01:02]RAPDU: 90 00 [13:01:02]wFMCommunicate OK [13:01:02]SAM_PROTO_ClearQueue done [13:01:02]KKMCreateOFDPacket [13:01:02]OFDProtocolAddRootSTLVToBuf [13:01:02]FM_MakeSignedData [13:01:02]FM_MakeSignedData [13:01:02]SAM_PROTO_SignData [13:01:02]wFMCommunicate request_size=4 [13:01:02]MH_SAM_APDU [13:01:02]CAPDU: 80 0D 01 02 [13:01:02]Write to MH i2c: E2 08 00 C3 57 80 0D 01 02 00 00 00 00 93 [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:02]Read from MH i2c: E2 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 C3 57 00 90 00 8E [13:01:02]RAPDU: 90 00 [13:01:02]wFMCommunicate OK [13:01:02]wFMCommunicate request_size=255 [13:01:02]MH_SAM_APDU [13:01:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 98 C6 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 43 E1 01 00 35 04 06 00 [13:01:02]Write to MH i2c: E2 02 01 C4 57 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 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 98 C6 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 43 E1 01 00 35 04 06 00 00 00 2B [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:02]Read from MH i2c: E2 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 C4 57 00 90 00 8F [13:01:02]RAPDU: 90 00 [13:01:02]wFMCommunicate OK [13:01:02]wFMCommunicate request_size=11 [13:01:02]MH_SAM_APDU [13:01:02]CAPDU: 80 0D 02 02 06 B6 6B 7C 57 AE 9E [13:01:02]Write to MH i2c: E2 0E 00 C5 57 80 0D 02 02 06 00 B6 6B 7C 57 AE 9E 00 00 E2 [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:02]Read from MH i2c: E2 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 C5 57 00 90 00 90 [13:01:02]RAPDU: 90 00 [13:01:02]wFMCommunicate OK [13:01:02]wFMCommunicate request_size=4 [13:01:02]MH_SAM_APDU [13:01:02]CAPDU: 80 0D 03 02 [13:01:02]Write to MH i2c: E2 08 00 C6 57 80 0D 03 02 00 00 00 00 98 [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:03]Read from MH i2c: E2 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: E2 0B 00 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: E2 0B 00 C6 57 00 68 DB 27 17 2F DD 62 D0 90 00 58 [13:01:03]RAPDU: 68 DB 27 17 2F DD 62 D0 90 00 [13:01:03]wFMCommunicate OK [13:01:03]SAM_PROTO_SignData done [13:01:03]FM_MakeSignedData done [13:01:03]CreateOFDProtocolMessage [13:01:03]wFMCommunicate request_size=4 [13:01:03]MH_SAM_APDU [13:01:03]CAPDU: 80 11 00 00 [13:01:03]Write to MH i2c: E2 08 00 C7 57 80 11 00 00 00 00 00 00 98 [13:01:03]Write i2c OK [13:01:03]MH_I2C_Read... [13:01:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:03]Read from MH i2c: E2 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: E2 17 00 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: E2 17 00 C7 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EF [13:01:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:01:03]wFMCommunicate OK [13:01:03]CreateOFDProtocolMessage done [13:01:03]OFDSenderStorePacket 123203 [13:01:03]StoreOFDPacket docnum=123203 [13:01:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 7D 79 08 01 5F 79 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 98 C6 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 43 E1 01 00 35 04 06 00 B6 6B 7C 57 AE 9E 68 DB 27 17 2F DD 62 D0 [13:01:03]CheckFolder [13:01:03]dirname=/storage/ofd_packets [13:01:03]CheckFolder done [13:01:03]ProducePacketName [13:01:03]name=ofd_packets/00123203 [13:01:03]NVStorageSaveData ofd_packets/00123203 [13:01:03]File name is /storage/ofd_packets/00123203 [13:01:03]Write 302 bytes [13:01:03]NVStorageSaveData done [13:01:03]OFDSenderStorePacket done [13:01:03]KKMCreateOFDPacket done [13:01:03]NVStorageSaveData kkm_last_timestamp [13:01:03]File name is /storage/kkm_last_timestamp [13:01:03]Write 4 bytes [13:01:03]NVStorageSaveData done [13:01:03]ExternCall_PrintAddStr [13:01:03]wPrintStart [13:01:03]Write to MH i2c: 01 00 00 C8 57 1F [13:01:03]Write i2c OK [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: 01 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: 01 07 00 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: 01 07 00 C8 57 00 00 00 00 00 FF 0F 34 [13:01:03]RasterBufferAndPrint [13:01:03]line Счет N : (1)718037 [13:01:03]line ИНН: 02508201610067 [13:01:03]line Контрольно-Кассовый Чек [13:01:03]line ПРОДАЖА [13:01:03]line ТРК (МРК, ГНК) : 5 [13:01:03]line Товар: 2710194210 [13:01:03]line ДТ(л)-К-5 [13:01:03]line 4.010 * 74.90 [13:01:03]line = 300.35 [13:01:03]line НДС 12% НСП 1% [13:01:03]line > о реализуемом товаре [13:01:03]line ОКРУГЛЕНИЕ: -0.35 [13:01:03]line ИТОГО: 300.00 [13:01:03]line Внесено: 300.00 [13:01:03]line СДАЧА: 0.00 [13:01:03]line НСП 1% : 2.66 [13:01:03]line НДС 12% : 31.90 [13:01:03]line Наличными: 300.00 [13:01:03]line Безнал.: 0.00 [13:01:03]line Место: АЗС № 64 "Партнер Нефть" [13:01:03]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:01:03]line СНО: Общий режим [13:01:03]line Чек 57 26.11.2024 13:01 [13:01:03]line Смена: 557 ФФД: 1.0 [13:01:03]line ЗНМ: 0300000033 [13:01:03]line РНМ: 0000000000092681 [13:01:03]line Версия ККМ: 001 [13:01:03]line ФМ: 0000000000874881 [13:01:03]line ФД: 123203 [13:01:03]line ФПД: 200572763877022 [13:01:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T130112&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123203&fm=200572763877022&tin=02508201610067®Number=0000000000092681&sum=30000 [13:01:03]OFD Sender: Processing packet 123203 [packets to send 7, broken 6] [13:01:03]ProducePacketName [13:01:03]name=ofd_packets/00123203 [13:01:03]OFD Sender: To server: pG, [13:01:03]CommunicateWithHost lk.salyk.kg:30040 [13:01:03]ConnectInit lk.salyk.kg [13:01:03]written 0, free lines is 4095 [13:01:03]Connected sock=10 [13:01:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 7D 79 08 01 5F 79 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 98 C6 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 43 E1 01 00 35 04 06 00 B6 6B 7C 57 AE 9E 68 DB 27 17 2F DD 62 D0 [13:01:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 38 D9 47 00 06 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 43 E1 01 00 F4 03 04 00 5A 72 45 67 B6 04 01 00 00 59 BC DD 86 00 BE E8 E5 [13:01:03]CommunicateWithHost err = 0 [13:01:03]CheckOFDResponse [13:01:03]1017 (14) - 77093643461234 [13:01:03]1041 (16) - 0000000000874881 [13:01:03]1040 (4) - 123203 [13:01:03]1012 (4) - 26.11.2024 07:01 [13:01:03]1206 (1) - 0 [13:01:03]OFD Sender: Remove packet 123203 [13:01:03]ProducePacketName [13:01:03]name=ofd_packets/00123203 [13:01:03]NVStorageDeleteData [13:01:03]Write to MH i2c: 01 00 00 F3 57 4A [13:01:03]Write i2c OK [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: 01 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: 01 07 00 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: 01 07 00 F3 57 00 00 00 00 00 55 0C B2 [13:01:03]RasterBufferAndPrint [13:01:03]line [13:01:03]line [13:01:03]line [13:01:03]line [13:01:03]line [13:01:03]written 0, free lines is 3160 [13:01:03]MH_Cut [13:01:03]Write to MH i2c: D1 01 00 FA 57 01 23 [13:01:03]Write i2c OK [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: D1 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: D1 01 00 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: D1 01 00 FA 57 00 22 [13:01:03]Write to MH i2c: 01 00 00 FB 57 52 [13:01:03]Write i2c OK [13:01:03]MH_I2C_Read... [13:01:04]OFD Sender: No OFD packet to send [13:01:05]*** Cut start [13:01:05]*** Partial cut [13:01:05]*** CUTSNS_PIN = 1 [13:01:05]*** CUTSNS_PIN = 0 [13:01:05]*** Brake cut motor [13:01:05]Read from MH i2c: 01 [13:01:05]MH_I2C_Read... [13:01:05]*** Stop cut motor [13:01:05]*** Cut end [13:01:05]Read from MH i2c: 01 07 00 [13:01:05]MH_I2C_Read... [13:01:05]Read from MH i2c: 01 07 00 FB 57 00 00 00 00 00 FF 0F 67 [13:01:05]process_action close_receipt done [13:01:05]requested_data is exist [13:01:05]produce_requested_data [13:01:05]requested_item fm.sn is exist - process it [13:01:05]wFMCommunicate request_size=4 [13:01:05]MH_SAM_APDU [13:01:05]CAPDU: 80 11 00 00 [13:01:05]Write to MH i2c: E2 08 00 FC 57 80 11 00 00 00 00 00 00 CD [13:01:05]Write i2c OK [13:01:05]MH_I2C_Read... [13:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:05]Read from MH i2c: E2 [13:01:05]MH_I2C_Read... [13:01:05]Read from MH i2c: E2 17 00 [13:01:05]MH_I2C_Read... [13:01:05]Read from MH i2c: E2 17 00 FC 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 24 [13:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:01:05]wFMCommunicate OK [13:01:05]requested_item fd.num is exist - process it [13:01:05]SAM_PROTO_GetFieldsCounters [13:01:05]wFMCommunicate request_size=4 [13:01:05]MH_SAM_APDU [13:01:05]CAPDU: 80 13 00 00 [13:01:05]Write to MH i2c: E2 08 00 FD 57 80 13 00 00 00 00 00 00 D0 [13:01:05]Write i2c OK [13:01:05]MH_I2C_Read... [13:01:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:06]Read from MH i2c: E2 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 62 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 62 00 FD 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 43 E1 01 00 0E 04 04 00 2D 02 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 F5 [13:01:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 43 E1 01 00 0E 04 04 00 2D 02 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 [13:01:06]wFMCommunicate OK [13:01:06]SAM_PROTO_GetFieldsCounters done [13:01:06]requested_item shift.num is exist - process it [13:01:06]requested_item shift.opened is exist - process it [13:01:06]req_shift_opened [13:01:06]FM_GetShiftState [13:01:06]SAM_PROTO_GetShiftState [13:01:06]wFMCommunicate request_size=4 [13:01:06]MH_SAM_APDU [13:01:06]CAPDU: 80 13 01 00 [13:01:06]Write to MH i2c: E2 08 00 FE 57 80 13 01 00 00 00 00 00 D2 [13:01:06]Write i2c OK [13:01:06]MH_I2C_Read... [13:01:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:06]Read from MH i2c: E2 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 0E 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 0E 00 FE 57 00 09 00 01 98 11 45 67 00 00 00 00 90 00 33 [13:01:06]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:01:06]wFMCommunicate OK [13:01:06]SAM_PROTO_GetShiftState done [13:01:06]FM_GetShiftState done [13:01:06]req_shift_opened done [13:01:06]requested_item shift.open_date is exist - process it [13:01:06]req_shift_open_date [13:01:06]req_shift_open_date done [13:01:06]produce_requested_data done [13:01:06]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123203,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:01:06]process_action_free close_receipt [13:01:06]json_value_free [13:01:06]json_value_free done [13:01:06]process_json_proto returns [13:01:06]Send response to host [13:01:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123203,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:01:06]free response buf [13:01:06]execute_script done [13:01:06]execute_script returns [13:01:06]free content buf [13:01:06]Sock 9.Close socket [13:01:06]Sock 9.Thread stoped [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:28]accept exits with 7 [13:05:28]New connection [13:05:28]New thread 3066723684 created [13:05:28]Thread 3066580324 joined [13:05:28]Waiting for new connection... [13:05:28] Sock 7.Parse request [13:05:28]Sock 7.Check first char [13:05:28]Sock 7.First char is OK [13:05:28]request: POST /json_proto HTTP/1.0 [13:05:28]Method: POST [13:05:28]URL: /json_proto [13:05:28]Method is POST - this is cgi request [13:05:28]url: /json_proto [13:05:28]query_string will be loaded in cgi processing [13:05:28]execute_cgi json_proto POST (null) [13:05:28]execute_cgi path=json_proto method=POST [13:05:28]POST find Content-Length [13:05:28]Host: 172.17.37.4:8080 [13:05:28]Content-Length: 800 [13:05:28]Content-Type: application/json [13:05:28] [13:05:28]POST finish read [13:05:28]Found Content-Length = 800 [13:05:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "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" : 400.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:28]execute_script... [13:05:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "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" : 400.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:28]POST & json_proto [13:05:28]process_json_proto [13:05:28]json parsed OK: [13:05:28]protocol is kg_v1.0 [13:05:28]action value=close_receipt [13:05:28]process_action close_receipt [13:05:28]cmd_close_receipt [13:05:28]MH_GetDate [13:05:28]Write to MH i2c: F0 00 00 FF 57 45 [13:05:28]Write i2c OK [13:05:28]MH_I2C_Read... [13:05:28]Read from MH i2c: F0 [13:05:28]MH_I2C_Read... [13:05:28]Read from MH i2c: F0 09 00 [13:05:28]MH_I2C_Read... [13:05:28]Read from MH i2c: F0 09 00 FF 57 00 A3 C7 45 67 B8 5A 43 67 20 [13:05:28]GetLastDocTimeStamp 1732626072 [13:05:28]current date 1732626339 [13:05:28]FM_GetShiftState [13:05:28]SAM_PROTO_GetShiftState [13:05:28]wFMCommunicate request_size=4 [13:05:28]MH_SAM_APDU [13:05:28]CAPDU: 80 13 01 00 [13:05:28]Write to MH i2c: E2 08 00 00 58 80 13 01 00 00 00 00 00 D5 [13:05:28]Write i2c OK [13:05:28]MH_I2C_Read... [13:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:28]Read from MH i2c: E2 [13:05:28]MH_I2C_Read... [13:05:28]Read from MH i2c: E2 0E 00 [13:05:28]MH_I2C_Read... [13:05:28]Read from MH i2c: E2 0E 00 00 58 00 09 00 01 98 11 45 67 00 00 00 00 90 00 36 [13:05:28]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:05:28]wFMCommunicate OK [13:05:28]SAM_PROTO_GetShiftState done [13:05:28]FM_GetShiftState done [13:05:28]opened in 1732579736 [13:05:28]opened+sec_in_day 1732666136 [13:05:28]quantity*price = 40035 [13:05:28]sum+1 = 40037 [13:05:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.36 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 0.00 Безнал.: 400.36 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 58 26.11.2024 13:05 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123204 ФПД: 205042999747125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T130539&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123204&fm=205042999747125&tin=02508201610067®Number=0000000000092681&sum=40036 [13:05:29]StoreToDocumentArchive [13:05:29]shift 557 fd 123204 [13:05:29]save to /storage/0557/doc_00123204 [13:05:29]save last doc name /storage/0557/doc_00123204 to /storage/kkm_last_doc_name [13:05:29]save OK [13:05:29]Clear old archive folders... [13:05:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:29]tlvbuf is 02068DC0 [13:05:29]SAM_PROTO_ClearQueue [13:05:29]wFMCommunicate request_size=4 [13:05:29]MH_SAM_APDU [13:05:29]CAPDU: 80 09 00 00 [13:05:29]Write to MH i2c: E2 08 00 0D 58 80 09 00 00 00 00 00 00 D7 [13:05:29]Write i2c OK [13:05:29]MH_I2C_Read... [13:05:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:29]Read from MH i2c: E2 [13:05:29]MH_I2C_Read... [13:05:29]Read from MH i2c: E2 03 00 [13:05:29]MH_I2C_Read... [13:05:29]Read from MH i2c: E2 03 00 0D 58 00 90 00 D9 [13:05:29]RAPDU: 90 00 [13:05:29]wFMCommunicate OK [13:05:29]SAM_PROTO_ClearQueue done [13:05:29]KKMCreateOFDPacket [13:05:29]OFDProtocolAddRootSTLVToBuf [13:05:29]FM_MakeSignedData [13:05:29]FM_MakeSignedData [13:05:29]SAM_PROTO_SignData [13:05:29]wFMCommunicate request_size=4 [13:05:29]MH_SAM_APDU [13:05:29]CAPDU: 80 0D 01 02 [13:05:29]Write to MH i2c: E2 08 00 0E 58 80 0D 01 02 00 00 00 00 DF [13:05:29]Write i2c OK [13:05:29]MH_I2C_Read... [13:05:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:29]Read from MH i2c: E2 [13:05:29]MH_I2C_Read... [13:05:29]Read from MH i2c: E2 03 00 [13:05:29]MH_I2C_Read... [13:05:29]Read from MH i2c: E2 03 00 0E 58 00 90 00 DA [13:05:29]RAPDU: 90 00 [13:05:29]wFMCommunicate OK [13:05:29]wFMCommunicate request_size=255 [13:05:29]MH_SAM_APDU [13:05:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A3 C7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 44 E1 01 00 35 04 06 00 BA [13:05:29]Write to MH i2c: E2 02 01 0F 58 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 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A3 C7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 44 E1 01 00 35 04 06 00 BA 00 00 14 [13:05:29]Write i2c OK [13:05:29]MH_I2C_Read... [13:05:30]Read from MH i2c: E2 [13:05:30]MH_I2C_Read... [13:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:30]Read from MH i2c: E2 03 00 [13:05:30]MH_I2C_Read... [13:05:30]Read from MH i2c: E2 03 00 0F 58 00 90 00 DB [13:05:30]RAPDU: 90 00 [13:05:30]wFMCommunicate OK [13:05:30]wFMCommunicate request_size=10 [13:05:30]MH_SAM_APDU [13:05:30]CAPDU: 80 0D 02 02 05 7C 4B 29 E2 35 [13:05:30]Write to MH i2c: E2 0D 00 10 58 80 0D 02 02 05 00 7C 4B 29 E2 35 00 00 F3 [13:05:30]Write i2c OK [13:05:30]MH_I2C_Read... [13:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:30]Read from MH i2c: E2 [13:05:30]MH_I2C_Read... [13:05:30]Read from MH i2c: E2 03 00 [13:05:30]MH_I2C_Read... [13:05:30]Read from MH i2c: E2 03 00 10 58 00 90 00 DC [13:05:30]RAPDU: 90 00 [13:05:30]wFMCommunicate OK [13:05:30]wFMCommunicate request_size=4 [13:05:30]MH_SAM_APDU [13:05:30]CAPDU: 80 0D 03 02 [13:05:30]Write to MH i2c: E2 08 00 11 58 80 0D 03 02 00 00 00 00 E4 [13:05:30]Write i2c OK [13:05:30]MH_I2C_Read... [13:05:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:30]Read from MH i2c: E2 [13:05:30]MH_I2C_Read... [13:05:30]Read from MH i2c: E2 0B 00 [13:05:30]MH_I2C_Read... [13:05:30]Read from MH i2c: E2 0B 00 11 58 00 3E A1 20 87 CC 21 7A A9 90 00 7B [13:05:30]RAPDU: 3E A1 20 87 CC 21 7A A9 90 00 [13:05:30]wFMCommunicate OK [13:05:30]SAM_PROTO_SignData done [13:05:30]FM_MakeSignedData done [13:05:30]CreateOFDProtocolMessage [13:05:30]wFMCommunicate request_size=4 [13:05:30]MH_SAM_APDU [13:05:30]CAPDU: 80 11 00 00 [13:05:30]Write to MH i2c: E2 08 00 12 58 80 11 00 00 00 00 00 00 E4 [13:05:30]Write i2c OK [13:05:30]MH_I2C_Read... [13:05:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:30]Read from MH i2c: E2 [13:05:30]MH_I2C_Read... [13:05:30]Read from MH i2c: E2 17 00 [13:05:30]MH_I2C_Read... [13:05:30]Read from MH i2c: E2 17 00 12 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3B [13:05:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:05:30]wFMCommunicate OK [13:05:30]CreateOFDProtocolMessage done [13:05:30]OFDSenderStorePacket 123204 [13:05:30]StoreOFDPacket docnum=123204 [13:05:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 30 DE 07 01 15 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A3 C7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 44 E1 01 00 35 04 06 00 BA 7C 4B 29 E2 35 3E A1 20 87 CC 21 7A A9 [13:05:30]CheckFolder [13:05:30]dirname=/storage/ofd_packets [13:05:30]CheckFolder done [13:05:30]ProducePacketName [13:05:30]name=ofd_packets/00123204 [13:05:30]NVStorageSaveData ofd_packets/00123204 [13:05:30]File name is /storage/ofd_packets/00123204 [13:05:30]Write 301 bytes [13:05:30]NVStorageSaveData done [13:05:30]OFDSenderStorePacket done [13:05:30]KKMCreateOFDPacket done [13:05:30]NVStorageSaveData kkm_last_timestamp [13:05:30]File name is /storage/kkm_last_timestamp [13:05:30]Write 4 bytes [13:05:30]NVStorageSaveData done [13:05:30]ExternCall_PrintAddStr [13:05:30]wPrintStart [13:05:30]Write to MH i2c: 01 00 00 13 58 6B [13:05:30]Write i2c OK [13:05:30]MH_I2C_Read... [13:05:30]Read from MH i2c: 01 [13:05:30]MH_I2C_Read... [13:05:30]Read from MH i2c: 01 07 00 [13:05:30]MH_I2C_Read... [13:05:30]Read from MH i2c: 01 07 00 13 58 00 00 00 00 00 FF 0F 80 [13:05:30]RasterBufferAndPrint [13:05:30]line Счет N : (1)718038 [13:05:30]line ИНН: 02508201610067 [13:05:30]line Контрольно-Кассовый Чек [13:05:30]line ПРОДАЖА [13:05:30]line ТРК (МРК, ГНК) : 22 [13:05:30]line Товар: 2710124130 [13:05:30]line Аи-92-К-4 [13:05:30]line 5.940 * 67.40 [13:05:30]line = 400.36 [13:05:30]line НДС 12% НСП 1% [13:05:30]line > о реализуемом товаре [13:05:30]line ИТОГО: 400.36 [13:05:30]line НСП 1% : 3.54 [13:05:30]line НДС 12% : 42.52 [13:05:30]line Наличными: 0.00 [13:05:30]line Безнал.: 400.36 [13:05:30]line Место: АЗС № 64 "Партнер Нефть" [13:05:30]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:05:30]line СНО: Общий режим [13:05:30]line Чек 58 26.11.2024 13:05 [13:05:30]line Смена: 557 ФФД: 1.0 [13:05:30]line ЗНМ: 0300000033 [13:05:30]line РНМ: 0000000000092681 [13:05:30]line Версия ККМ: 001 [13:05:30]line Платежная система: O! деньги [13:05:30]line ФМ: 0000000000874881 [13:05:30]line ФД: 123204 [13:05:30]line ФПД: 205042999747125 [13:05:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T130539&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123204&fm=205042999747125&tin=02508201610067®Number=0000000000092681&sum=40036 [13:05:30]OFD Sender: Processing packet 123204 [packets to send 7, broken 6] [13:05:30]ProducePacketName [13:05:30]name=ofd_packets/00123204 [13:05:30]OFD Sender: To server: pG, [13:05:30]CommunicateWithHost lk.salyk.kg:30040 [13:05:30]ConnectInit lk.salyk.kg [13:05:30]written 0, free lines is 4095 [13:05:30]Connected sock=10 [13:05:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 30 DE 07 01 15 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A3 C7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 44 E1 01 00 35 04 06 00 BA 7C 4B 29 E2 35 3E A1 20 87 CC 21 7A A9 [13:05:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 9E 7F 47 00 6D 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 44 E1 01 00 F4 03 04 00 65 73 45 67 B6 04 01 00 00 D5 27 D5 B0 12 C7 2A 42 [13:05:30]CommunicateWithHost err = 0 [13:05:30]CheckOFDResponse [13:05:30]1017 (14) - 77093643461234 [13:05:30]1041 (16) - 0000000000874881 [13:05:30]1040 (4) - 123204 [13:05:30]1012 (4) - 26.11.2024 07:06 [13:05:30]1206 (1) - 0 [13:05:30]OFD Sender: Remove packet 123204 [13:05:30]ProducePacketName [13:05:30]name=ofd_packets/00123204 [13:05:30]NVStorageDeleteData [13:05:31]Write to MH i2c: 01 00 00 3D 58 95 [13:05:31]Write i2c OK [13:05:31]MH_I2C_Read... [13:05:31]Read from MH i2c: 01 [13:05:31]MH_I2C_Read... [13:05:31]Read from MH i2c: 01 07 00 [13:05:31]MH_I2C_Read... [13:05:31]Read from MH i2c: 01 07 00 3D 58 00 00 00 00 00 6C 0C 14 [13:05:31]RasterBufferAndPrint [13:05:31]line [13:05:31]line [13:05:31]line [13:05:31]line [13:05:31]line [13:05:31]written 0, free lines is 3183 [13:05:31]MH_Cut [13:05:31]Write to MH i2c: D1 01 00 44 58 01 6E [13:05:31]Write i2c OK [13:05:31]MH_I2C_Read... [13:05:31]Read from MH i2c: D1 [13:05:31]MH_I2C_Read... [13:05:31]Read from MH i2c: D1 01 00 [13:05:31]MH_I2C_Read... [13:05:31]Read from MH i2c: D1 01 00 44 58 00 6D [13:05:31]Write to MH i2c: 01 00 00 45 58 9D [13:05:31]Write i2c OK [13:05:31]MH_I2C_Read... [13:05:31]OFD Sender: No OFD packet to send [13:05:32]*** Cut start [13:05:32]*** Partial cut [13:05:32]*** CUTSNS_PIN = 1 [13:05:32]*** CUTSNS_PIN = 0 [13:05:32]*** Brake cut motor [13:05:33]Read from MH i2c: 01 [13:05:33]MH_I2C_Read... [13:05:33]*** Stop cut motor [13:05:33]*** Cut end [13:05:33]Read from MH i2c: 01 07 00 [13:05:33]MH_I2C_Read... [13:05:33]Read from MH i2c: 01 07 00 45 58 00 00 00 00 00 FF 0F B2 [13:05:33]process_action close_receipt done [13:05:33]requested_data is exist [13:05:33]produce_requested_data [13:05:33]requested_item fm.sn is exist - process it [13:05:33]wFMCommunicate request_size=4 [13:05:33]MH_SAM_APDU [13:05:33]CAPDU: 80 11 00 00 [13:05:33]Write to MH i2c: E2 08 00 46 58 80 11 00 00 00 00 00 00 18 [13:05:33]Write i2c OK [13:05:33]MH_I2C_Read... [13:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:33]Read from MH i2c: E2 [13:05:33]MH_I2C_Read... [13:05:33]Read from MH i2c: E2 17 00 [13:05:33]MH_I2C_Read... [13:05:33]Read from MH i2c: E2 17 00 46 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6F [13:05:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:05:33]wFMCommunicate OK [13:05:33]requested_item fd.num is exist - process it [13:05:33]SAM_PROTO_GetFieldsCounters [13:05:33]wFMCommunicate request_size=4 [13:05:33]MH_SAM_APDU [13:05:33]CAPDU: 80 13 00 00 [13:05:33]Write to MH i2c: E2 08 00 47 58 80 13 00 00 00 00 00 00 1B [13:05:33]Write i2c OK [13:05:33]MH_I2C_Read... [13:05:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:33]Read from MH i2c: E2 [13:05:33]MH_I2C_Read... [13:05:33]Read from MH i2c: E2 62 00 [13:05:33]MH_I2C_Read... [13:05:33]Read from MH i2c: E2 62 00 47 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 44 E1 01 00 0E 04 04 00 2D 02 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 44 [13:05:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 44 E1 01 00 0E 04 04 00 2D 02 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 [13:05:33]wFMCommunicate OK [13:05:33]SAM_PROTO_GetFieldsCounters done [13:05:33]requested_item shift.num is exist - process it [13:05:33]requested_item shift.opened is exist - process it [13:05:33]req_shift_opened [13:05:33]FM_GetShiftState [13:05:33]SAM_PROTO_GetShiftState [13:05:33]wFMCommunicate request_size=4 [13:05:33]MH_SAM_APDU [13:05:33]CAPDU: 80 13 01 00 [13:05:33]Write to MH i2c: E2 08 00 48 58 80 13 01 00 00 00 00 00 1D [13:05:33]Write i2c OK [13:05:33]MH_I2C_Read... [13:05:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:33]Read from MH i2c: E2 [13:05:33]MH_I2C_Read... [13:05:33]Read from MH i2c: E2 0E 00 [13:05:33]MH_I2C_Read... [13:05:33]Read from MH i2c: E2 0E 00 48 58 00 09 00 01 98 11 45 67 00 00 00 00 90 00 7E [13:05:33]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:05:33]wFMCommunicate OK [13:05:33]SAM_PROTO_GetShiftState done [13:05:33]FM_GetShiftState done [13:05:33]req_shift_opened done [13:05:33]requested_item shift.open_date is exist - process it [13:05:33]req_shift_open_date [13:05:33]req_shift_open_date done [13:05:33]produce_requested_data done [13:05:33]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123204,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:05:33]process_action_free close_receipt [13:05:33]json_value_free [13:05:33]json_value_free done [13:05:33]process_json_proto returns [13:05:33]Send response to host [13:05:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123204,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:05:33]free response buf [13:05:33]execute_script done [13:05:33]execute_script returns [13:05:33]free content buf [13:05:33]Sock 7.Close socket [13:05:33]Sock 7.Thread stoped [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:46]OFD Sender: No OFD packet to send [13:05:51]OFD Sender: No OFD packet to send [13:05:56]OFD Sender: No OFD packet to send [13:06:01]OFD Sender: No OFD packet to send [13:06:06]OFD Sender: No OFD packet to send [13:06:11]OFD Sender: No OFD packet to send [13:06:16]OFD Sender: No OFD packet to send [13:06:21]OFD Sender: No OFD packet to send [13:06:26]OFD Sender: No OFD packet to send [13:06:31]OFD Sender: No OFD packet to send [13:06:36]OFD Sender: No OFD packet to send [13:06:41]OFD Sender: No OFD packet to send [13:06:46]OFD Sender: No OFD packet to send [13:06:51]OFD Sender: No OFD packet to send [13:06:56]OFD Sender: No OFD packet to send [13:07:01]OFD Sender: No OFD packet to send [13:07:06]OFD Sender: No OFD packet to send [13:07:11]OFD Sender: No OFD packet to send [13:07:16]OFD Sender: No OFD packet to send [13:07:21]OFD Sender: No OFD packet to send [13:07:26]OFD Sender: No OFD packet to send [13:07:31]OFD Sender: No OFD packet to send [13:07:35]accept exits with 9 [13:07:35]New connection [13:07:35]New thread 3066580324 created [13:07:35]Thread 3066723684 joined [13:07:35]Waiting for new connection... [13:07:35] Sock 9.Parse request [13:07:35]Sock 9.Check first char [13:07:35]Sock 9.First char is OK [13:07:35]request: POST /json_proto HTTP/1.0 [13:07:35]Method: POST [13:07:35]URL: /json_proto [13:07:35]Method is POST - this is cgi request [13:07:35]url: /json_proto [13:07:35]query_string will be loaded in cgi processing [13:07:35]execute_cgi json_proto POST (null) [13:07:35]execute_cgi path=json_proto method=POST [13:07:35]POST find Content-Length [13:07:35]Host: 172.17.37.4:8080 [13:07:35]Content-Length: 677 [13:07:35]Content-Type: application/json [13:07:35] [13:07:35]POST finish read [13:07:35]Found Content-Length = 677 [13:07:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:35]execute_script... [13:07:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:35]POST & json_proto [13:07:35]process_json_proto [13:07:35]json parsed OK: [13:07:35]protocol is kg_v1.0 [13:07:35]action value=close_receipt [13:07:35]process_action close_receipt [13:07:35]cmd_close_receipt [13:07:35]MH_GetDate [13:07:35]Write to MH i2c: F0 00 00 49 58 90 [13:07:35]Write i2c OK [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: F0 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: F0 09 00 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: F0 09 00 49 58 00 21 C8 45 67 B8 5A 43 67 EA [13:07:35]GetLastDocTimeStamp 1732626339 [13:07:35]current date 1732626465 [13:07:35]FM_GetShiftState [13:07:35]SAM_PROTO_GetShiftState [13:07:35]wFMCommunicate request_size=4 [13:07:35]MH_SAM_APDU [13:07:35]CAPDU: 80 13 01 00 [13:07:35]Write to MH i2c: E2 08 00 4A 58 80 13 01 00 00 00 00 00 1F [13:07:35]Write i2c OK [13:07:35]MH_I2C_Read... [13:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:35]Read from MH i2c: E2 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 0E 00 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 0E 00 4A 58 00 09 00 01 98 11 45 67 00 00 00 00 90 00 80 [13:07:35]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:07:35]wFMCommunicate OK [13:07:35]SAM_PROTO_GetShiftState done [13:07:35]FM_GetShiftState done [13:07:35]opened in 1732579736 [13:07:35]opened+sec_in_day 1732666136 [13:07:35]quantity*price = 50010 [13:07:35]sum+1 = 50012 [13:07:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 59 26.11.2024 13:07 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123205 ФПД: 62963778369548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T130746&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123205&fm=62963778369548&tin=02508201610067®Number=0000000000092681&sum=50000 [13:07:36]StoreToDocumentArchive [13:07:36]shift 557 fd 123205 [13:07:36]save to /storage/0557/doc_00123205 [13:07:36]save last doc name /storage/0557/doc_00123205 to /storage/kkm_last_doc_name [13:07:36]save OK [13:07:36]Clear old archive folders... [13:07:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:36]tlvbuf is 01F426E0 [13:07:36]SAM_PROTO_ClearQueue [13:07:36]wFMCommunicate request_size=4 [13:07:36]MH_SAM_APDU [13:07:36]CAPDU: 80 09 00 00 [13:07:36]Write to MH i2c: E2 08 00 57 58 80 09 00 00 00 00 00 00 21 [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:36]Read from MH i2c: E2 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 03 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 03 00 57 58 00 90 00 23 [13:07:36]RAPDU: 90 00 [13:07:36]wFMCommunicate OK [13:07:36]SAM_PROTO_ClearQueue done [13:07:36]KKMCreateOFDPacket [13:07:36]OFDProtocolAddRootSTLVToBuf [13:07:36]FM_MakeSignedData [13:07:36]FM_MakeSignedData [13:07:36]SAM_PROTO_SignData [13:07:36]wFMCommunicate request_size=4 [13:07:36]MH_SAM_APDU [13:07:36]CAPDU: 80 0D 01 02 [13:07:36]Write to MH i2c: E2 08 00 58 58 80 0D 01 02 00 00 00 00 29 [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:36]Read from MH i2c: E2 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 03 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 03 00 58 58 00 90 00 24 [13:07:36]RAPDU: 90 00 [13:07:36]wFMCommunicate OK [13:07:36]wFMCommunicate request_size=255 [13:07:36]MH_SAM_APDU [13:07:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 22 C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 45 E1 01 00 35 04 06 00 39 [13:07:36]Write to MH i2c: E2 02 01 59 58 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 22 C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 45 E1 01 00 35 04 06 00 39 00 00 F0 [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]OFD Sender: No OFD packet to send [13:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:36]Read from MH i2c: E2 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 03 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 03 00 59 58 00 90 00 25 [13:07:36]RAPDU: 90 00 [13:07:36]wFMCommunicate OK [13:07:36]wFMCommunicate request_size=10 [13:07:36]MH_SAM_APDU [13:07:36]CAPDU: 80 0D 02 02 05 43 E5 A4 B8 0C [13:07:36]Write to MH i2c: E2 0D 00 5A 58 80 0D 02 02 05 00 43 E5 A4 B8 0C 00 00 C6 [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:36]Read from MH i2c: E2 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 03 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 03 00 5A 58 00 90 00 26 [13:07:36]RAPDU: 90 00 [13:07:36]wFMCommunicate OK [13:07:36]wFMCommunicate request_size=4 [13:07:36]MH_SAM_APDU [13:07:36]CAPDU: 80 0D 03 02 [13:07:36]Write to MH i2c: E2 08 00 5B 58 80 0D 03 02 00 00 00 00 2E [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:36]Read from MH i2c: E2 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 0B 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 0B 00 5B 58 00 8F 3D 7E 40 35 73 2C 1E 90 00 AB [13:07:36]RAPDU: 8F 3D 7E 40 35 73 2C 1E 90 00 [13:07:36]wFMCommunicate OK [13:07:36]SAM_PROTO_SignData done [13:07:36]FM_MakeSignedData done [13:07:36]CreateOFDProtocolMessage [13:07:36]wFMCommunicate request_size=4 [13:07:36]MH_SAM_APDU [13:07:36]CAPDU: 80 11 00 00 [13:07:36]Write to MH i2c: E2 08 00 5C 58 80 11 00 00 00 00 00 00 2E [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:36]Read from MH i2c: E2 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 17 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 17 00 5C 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 85 [13:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:07:36]wFMCommunicate OK [13:07:36]CreateOFDProtocolMessage done [13:07:36]OFDSenderStorePacket 123205 [13:07:36]StoreOFDPacket docnum=123205 [13:07:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B1 4B 07 01 0A 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 22 C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 45 E1 01 00 35 04 06 00 39 43 E5 A4 B8 0C 8F 3D 7E 40 35 73 2C 1E [13:07:36]CheckFolder [13:07:36]dirname=/storage/ofd_packets [13:07:36]CheckFolder done [13:07:36]ProducePacketName [13:07:36]name=ofd_packets/00123205 [13:07:36]NVStorageSaveData ofd_packets/00123205 [13:07:36]File name is /storage/ofd_packets/00123205 [13:07:36]Write 301 bytes [13:07:36]NVStorageSaveData done [13:07:36]OFDSenderStorePacket done [13:07:36]KKMCreateOFDPacket done [13:07:36]NVStorageSaveData kkm_last_timestamp [13:07:36]File name is /storage/kkm_last_timestamp [13:07:36]Write 4 bytes [13:07:36]NVStorageSaveData done [13:07:36]ExternCall_PrintAddStr [13:07:36]wPrintStart [13:07:36]Write to MH i2c: 01 00 00 5D 58 B5 [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: 01 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: 01 07 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: 01 07 00 5D 58 00 00 00 00 00 FF 0F CA [13:07:36]RasterBufferAndPrint [13:07:36]line Счет N : (1)718039 [13:07:36]line ИНН: 02508201610067 [13:07:36]line Контрольно-Кассовый Чек [13:07:36]line ПРОДАЖА [13:07:36]line ТРК (МРК, ГНК) : 32 [13:07:36]line Товар: 2710124130 [13:07:36]line Аи-92-К-4 [13:07:36]line 7.420 * 67.40 [13:07:36]line = 500.11 [13:07:36]line НДС 12% НСП 1% [13:07:36]line > о реализуемом товаре [13:07:36]line ОКРУГЛЕНИЕ: -0.11 [13:07:36]line ИТОГО: 500.00 [13:07:36]line Внесено: 500.00 [13:07:36]line СДАЧА: 0.00 [13:07:36]line НСП 1% : 4.43 [13:07:36]line НДС 12% : 53.11 [13:07:36]line Наличными: 500.00 [13:07:36]line Безнал.: 0.00 [13:07:36]line Место: АЗС № 64 "Партнер Нефть" [13:07:36]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:07:36]line СНО: Общий режим [13:07:36]line Чек 59 26.11.2024 13:07 [13:07:36]line Смена: 557 ФФД: 1.0 [13:07:36]line ЗНМ: 0300000033 [13:07:36]line РНМ: 0000000000092681 [13:07:36]line Версия ККМ: 001 [13:07:36]line ФМ: 0000000000874881 [13:07:36]line ФД: 123205 [13:07:37]line ФПД: 62963778369548 [13:07:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T130746&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123205&fm=62963778369548&tin=02508201610067®Number=0000000000092681&sum=50000 [13:07:37]OFD Sender: Processing packet 123205 [packets to send 7, broken 6] [13:07:37]ProducePacketName [13:07:37]name=ofd_packets/00123205 [13:07:37]OFD Sender: To server: pG, [13:07:37]CommunicateWithHost lk.salyk.kg:30040 [13:07:37]ConnectInit lk.salyk.kg [13:07:37]written 0, free lines is 4095 [13:07:37]Connected sock=10 [13:07:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B1 4B 07 01 0A 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 22 C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 45 E1 01 00 35 04 06 00 39 43 E5 A4 B8 0C 8F 3D 7E 40 35 73 2C 1E [13:07:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 EF 9B 47 00 B5 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 45 E1 01 00 F4 03 04 00 E4 73 45 67 B6 04 01 00 00 94 26 D7 8E 1F 69 63 4F [13:07:37]CommunicateWithHost err = 0 [13:07:37]CheckOFDResponse [13:07:37]1017 (14) - 77093643461234 [13:07:37]1041 (16) - 0000000000874881 [13:07:37]1040 (4) - 123205 [13:07:37]1012 (4) - 26.11.2024 07:08 [13:07:37]1206 (1) - 0 [13:07:37]OFD Sender: Remove packet 123205 [13:07:37]ProducePacketName [13:07:37]name=ofd_packets/00123205 [13:07:37]NVStorageDeleteData [13:07:37]Write to MH i2c: 01 00 00 88 58 E0 [13:07:37]Write i2c OK [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: 01 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: 01 07 00 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: 01 07 00 88 58 00 00 00 00 00 4D 0C 40 [13:07:37]RasterBufferAndPrint [13:07:37]line [13:07:37]line [13:07:37]line [13:07:37]line [13:07:37]line [13:07:37]written 0, free lines is 3153 [13:07:37]MH_Cut [13:07:37]Write to MH i2c: D1 01 00 8F 58 01 B9 [13:07:37]Write i2c OK [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: D1 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: D1 01 00 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: D1 01 00 8F 58 00 B8 [13:07:37]Write to MH i2c: 01 00 00 90 58 E8 [13:07:37]Write i2c OK [13:07:37]MH_I2C_Read... [13:07:38]OFD Sender: No OFD packet to send [13:07:39]*** Cut start [13:07:39]*** Partial cut [13:07:39]*** CUTSNS_PIN = 1 [13:07:39]*** CUTSNS_PIN = 0 [13:07:39]*** Brake cut motor [13:07:39]Read from MH i2c: 01 [13:07:39]MH_I2C_Read... [13:07:39]*** Stop cut motor [13:07:39]*** Cut end [13:07:39]Read from MH i2c: 01 07 00 [13:07:39]MH_I2C_Read... [13:07:39]Read from MH i2c: 01 07 00 90 58 00 00 00 00 00 FF 0F FD [13:07:39]process_action close_receipt done [13:07:39]requested_data is exist [13:07:39]produce_requested_data [13:07:39]requested_item fm.sn is exist - process it [13:07:39]wFMCommunicate request_size=4 [13:07:39]MH_SAM_APDU [13:07:39]CAPDU: 80 11 00 00 [13:07:39]Write to MH i2c: E2 08 00 91 58 80 11 00 00 00 00 00 00 63 [13:07:39]Write i2c OK [13:07:39]MH_I2C_Read... [13:07:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:39]Read from MH i2c: E2 [13:07:39]MH_I2C_Read... [13:07:39]Read from MH i2c: E2 17 00 [13:07:39]MH_I2C_Read... [13:07:39]Read from MH i2c: E2 17 00 91 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BA [13:07:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:07:39]wFMCommunicate OK [13:07:39]requested_item fd.num is exist - process it [13:07:39]SAM_PROTO_GetFieldsCounters [13:07:39]wFMCommunicate request_size=4 [13:07:39]MH_SAM_APDU [13:07:39]CAPDU: 80 13 00 00 [13:07:39]Write to MH i2c: E2 08 00 92 58 80 13 00 00 00 00 00 00 66 [13:07:39]Write i2c OK [13:07:39]MH_I2C_Read... [13:07:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:39]Read from MH i2c: E2 [13:07:39]MH_I2C_Read... [13:07:39]Read from MH i2c: E2 62 00 [13:07:39]MH_I2C_Read... [13:07:39]Read from MH i2c: E2 62 00 92 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 45 E1 01 00 0E 04 04 00 2D 02 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 93 [13:07:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 45 E1 01 00 0E 04 04 00 2D 02 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 [13:07:40]wFMCommunicate OK [13:07:40]SAM_PROTO_GetFieldsCounters done [13:07:40]requested_item shift.num is exist - process it [13:07:40]requested_item shift.opened is exist - process it [13:07:40]req_shift_opened [13:07:40]FM_GetShiftState [13:07:40]SAM_PROTO_GetShiftState [13:07:40]wFMCommunicate request_size=4 [13:07:40]MH_SAM_APDU [13:07:40]CAPDU: 80 13 01 00 [13:07:40]Write to MH i2c: E2 08 00 93 58 80 13 01 00 00 00 00 00 68 [13:07:40]Write i2c OK [13:07:40]MH_I2C_Read... [13:07:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:40]Read from MH i2c: E2 [13:07:40]MH_I2C_Read... [13:07:40]Read from MH i2c: E2 0E 00 [13:07:40]MH_I2C_Read... [13:07:40]Read from MH i2c: E2 0E 00 93 58 00 09 00 01 98 11 45 67 00 00 00 00 90 00 C9 [13:07:40]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:07:40]wFMCommunicate OK [13:07:40]SAM_PROTO_GetShiftState done [13:07:40]FM_GetShiftState done [13:07:40]req_shift_opened done [13:07:40]requested_item shift.open_date is exist - process it [13:07:40]req_shift_open_date [13:07:40]req_shift_open_date done [13:07:40]produce_requested_data done [13:07:40]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123205,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:07:40]process_action_free close_receipt [13:07:40]json_value_free [13:07:40]json_value_free done [13:07:40]process_json_proto returns [13:07:40]Send response to host [13:07:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123205,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:07:40]free response buf [13:07:40]execute_script done [13:07:40]execute_script returns [13:07:40]free content buf [13:07:40]Sock 9.Close socket [13:07:40]Sock 9.Thread stoped [13:07:43]OFD Sender: No OFD packet to send [13:07:47]accept exits with 7 [13:07:47]New connection [13:07:47]New thread 3066723684 created [13:07:47]Thread 3066580324 joined [13:07:47]Waiting for new connection... [13:07:47] Sock 7.Parse request [13:07:47]Sock 7.Check first char [13:07:47]Sock 7.First char is OK [13:07:47]request: POST /json_proto HTTP/1.0 [13:07:47]Method: POST [13:07:47]URL: /json_proto [13:07:47]Method is POST - this is cgi request [13:07:47]url: /json_proto [13:07:47]query_string will be loaded in cgi processing [13:07:47]execute_cgi json_proto POST (null) [13:07:47]execute_cgi path=json_proto method=POST [13:07:47]POST find Content-Length [13:07:47]Host: 172.17.37.4:8080 [13:07:47]Content-Length: 677 [13:07:47]Content-Type: application/json [13:07:47] [13:07:47]POST finish read [13:07:47]Found Content-Length = 677 [13:07:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.710, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:47]execute_script... [13:07:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.710, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:47]POST & json_proto [13:07:47]process_json_proto [13:07:47]json parsed OK: [13:07:47]protocol is kg_v1.0 [13:07:47]action value=close_receipt [13:07:47]process_action close_receipt [13:07:47]cmd_close_receipt [13:07:47]MH_GetDate [13:07:47]Write to MH i2c: F0 00 00 94 58 DB [13:07:47]Write i2c OK [13:07:47]MH_I2C_Read... [13:07:47]Read from MH i2c: F0 [13:07:47]MH_I2C_Read... [13:07:47]Read from MH i2c: F0 09 00 [13:07:47]MH_I2C_Read... [13:07:47]Read from MH i2c: F0 09 00 94 58 00 2E C8 45 67 B8 5A 43 67 42 [13:07:47]GetLastDocTimeStamp 1732626466 [13:07:47]current date 1732626478 [13:07:47]FM_GetShiftState [13:07:47]SAM_PROTO_GetShiftState [13:07:47]wFMCommunicate request_size=4 [13:07:47]MH_SAM_APDU [13:07:47]CAPDU: 80 13 01 00 [13:07:47]Write to MH i2c: E2 08 00 95 58 80 13 01 00 00 00 00 00 6A [13:07:47]Write i2c OK [13:07:47]MH_I2C_Read... [13:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:47]Read from MH i2c: E2 [13:07:47]MH_I2C_Read... [13:07:47]Read from MH i2c: E2 0E 00 [13:07:47]MH_I2C_Read... [13:07:47]Read from MH i2c: E2 0E 00 95 58 00 09 00 01 98 11 45 67 00 00 00 00 90 00 CB [13:07:47]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:07:47]wFMCommunicate OK [13:07:47]SAM_PROTO_GetShiftState done [13:07:47]FM_GetShiftState done [13:07:47]opened in 1732579736 [13:07:47]opened+sec_in_day 1732666136 [13:07:47]quantity*price = 25005 [13:07:47]sum+1 = 25006 [13:07:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 60 26.11.2024 13:07 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123206 ФПД: 123346675478533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T130758&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123206&fm=123346675478533&tin=02508201610067®Number=0000000000092681&sum=25000 [13:07:48]StoreToDocumentArchive [13:07:48]shift 557 fd 123206 [13:07:48]save to /storage/0557/doc_00123206 [13:07:48]save last doc name /storage/0557/doc_00123206 to /storage/kkm_last_doc_name [13:07:48]save OK [13:07:48]Clear old archive folders... [13:07:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:48]tlvbuf is 020717C0 [13:07:48]SAM_PROTO_ClearQueue [13:07:48]wFMCommunicate request_size=4 [13:07:48]MH_SAM_APDU [13:07:48]CAPDU: 80 09 00 00 [13:07:48]Write to MH i2c: E2 08 00 A2 58 80 09 00 00 00 00 00 00 6C [13:07:48]Write i2c OK [13:07:48]MH_I2C_Read... [13:07:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:48]Read from MH i2c: E2 [13:07:48]MH_I2C_Read... [13:07:48]Read from MH i2c: E2 03 00 [13:07:48]MH_I2C_Read... [13:07:48]Read from MH i2c: E2 03 00 A2 58 00 90 00 6E [13:07:48]RAPDU: 90 00 [13:07:48]wFMCommunicate OK [13:07:48]SAM_PROTO_ClearQueue done [13:07:48]KKMCreateOFDPacket [13:07:48]OFDProtocolAddRootSTLVToBuf [13:07:48]FM_MakeSignedData [13:07:48]FM_MakeSignedData [13:07:48]SAM_PROTO_SignData [13:07:48]wFMCommunicate request_size=4 [13:07:48]MH_SAM_APDU [13:07:48]CAPDU: 80 0D 01 02 [13:07:48]Write to MH i2c: E2 08 00 A3 58 80 0D 01 02 00 00 00 00 74 [13:07:48]Write i2c OK [13:07:48]MH_I2C_Read... [13:07:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:48]Read from MH i2c: E2 [13:07:48]MH_I2C_Read... [13:07:48]Read from MH i2c: E2 03 00 [13:07:48]MH_I2C_Read... [13:07:48]Read from MH i2c: E2 03 00 A3 58 00 90 00 6F [13:07:48]RAPDU: 90 00 [13:07:48]wFMCommunicate OK [13:07:48]wFMCommunicate request_size=255 [13:07:48]MH_SAM_APDU [13:07:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 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 3C 00 00 00 F4 03 04 00 2E C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 46 E1 01 00 35 04 06 00 70 [13:07:48]Write to MH i2c: E2 02 01 A4 58 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 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 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 3C 00 00 00 F4 03 04 00 2E C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 46 E1 01 00 35 04 06 00 70 00 00 87 [13:07:48]Write i2c OK [13:07:48]MH_I2C_Read... [13:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:49]Read from MH i2c: E2 [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: E2 03 00 [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: E2 03 00 A4 58 00 90 00 70 [13:07:49]RAPDU: 90 00 [13:07:49]wFMCommunicate OK [13:07:49]wFMCommunicate request_size=10 [13:07:49]MH_SAM_APDU [13:07:49]CAPDU: 80 0D 02 02 05 2E E2 C6 B0 05 [13:07:49]Write to MH i2c: E2 0D 00 A5 58 80 0D 02 02 05 00 2E E2 C6 B0 05 00 00 0C [13:07:49]Write i2c OK [13:07:49]MH_I2C_Read... [13:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:49]Read from MH i2c: E2 [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: E2 03 00 [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: E2 03 00 A5 58 00 90 00 71 [13:07:49]RAPDU: 90 00 [13:07:49]wFMCommunicate OK [13:07:49]wFMCommunicate request_size=4 [13:07:49]MH_SAM_APDU [13:07:49]CAPDU: 80 0D 03 02 [13:07:49]Write to MH i2c: E2 08 00 A6 58 80 0D 03 02 00 00 00 00 79 [13:07:49]Write i2c OK [13:07:49]MH_I2C_Read... [13:07:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:49]Read from MH i2c: E2 [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: E2 0B 00 [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: E2 0B 00 A6 58 00 07 44 30 72 10 EF 82 8D 90 00 75 [13:07:49]RAPDU: 07 44 30 72 10 EF 82 8D 90 00 [13:07:49]wFMCommunicate OK [13:07:49]SAM_PROTO_SignData done [13:07:49]FM_MakeSignedData done [13:07:49]CreateOFDProtocolMessage [13:07:49]wFMCommunicate request_size=4 [13:07:49]MH_SAM_APDU [13:07:49]CAPDU: 80 11 00 00 [13:07:49]Write to MH i2c: E2 08 00 A7 58 80 11 00 00 00 00 00 00 79 [13:07:49]Write i2c OK [13:07:49]MH_I2C_Read... [13:07:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:49]Read from MH i2c: E2 [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: E2 17 00 [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: E2 17 00 A7 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D0 [13:07:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:07:49]wFMCommunicate OK [13:07:49]CreateOFDProtocolMessage done [13:07:49]OFDSenderStorePacket 123206 [13:07:49]StoreOFDPacket docnum=123206 [13:07:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E5 3D 07 01 71 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 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 3C 00 00 00 F4 03 04 00 2E C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 46 E1 01 00 35 04 06 00 70 2E E2 C6 B0 05 07 44 30 72 10 EF 82 8D [13:07:49]CheckFolder [13:07:49]dirname=/storage/ofd_packets [13:07:49]CheckFolder done [13:07:49]ProducePacketName [13:07:49]name=ofd_packets/00123206 [13:07:49]NVStorageSaveData ofd_packets/00123206 [13:07:49]File name is /storage/ofd_packets/00123206 [13:07:49]Write 301 bytes [13:07:49]NVStorageSaveData done [13:07:49]OFDSenderStorePacket done [13:07:49]KKMCreateOFDPacket done [13:07:49]NVStorageSaveData kkm_last_timestamp [13:07:49]File name is /storage/kkm_last_timestamp [13:07:49]Write 4 bytes [13:07:49]NVStorageSaveData done [13:07:49]ExternCall_PrintAddStr [13:07:49]wPrintStart [13:07:49]Write to MH i2c: 01 00 00 A8 58 00 [13:07:49]Write i2c OK [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: 01 [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: 01 07 00 [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: 01 07 00 A8 58 00 00 00 00 00 FF 0F 15 [13:07:49]RasterBufferAndPrint [13:07:49]line Счет N : (1)718040 [13:07:49]line ИНН: 02508201610067 [13:07:49]line Контрольно-Кассовый Чек [13:07:49]line ПРОДАЖА [13:07:49]line ТРК (МРК, ГНК) : 22 [13:07:49]line Товар: 2710124130 [13:07:49]line Аи-92-К-4 [13:07:49]line 3.710 * 67.40 [13:07:49]line = 250.05 [13:07:49]line НДС 12% НСП 1% [13:07:49]line > о реализуемом товаре [13:07:49]line ОКРУГЛЕНИЕ: -0.05 [13:07:49]line ИТОГО: 250.00 [13:07:49]line Внесено: 250.00 [13:07:49]line СДАЧА: 0.00 [13:07:49]line НСП 1% : 2.21 [13:07:49]line НДС 12% : 26.55 [13:07:49]line Наличными: 250.00 [13:07:49]line Безнал.: 0.00 [13:07:49]line Место: АЗС № 64 "Партнер Нефть" [13:07:49]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:07:49]line СНО: Общий режим [13:07:49]line Чек 60 26.11.2024 13:07 [13:07:49]line Смена: 557 ФФД: 1.0 [13:07:49]line ЗНМ: 0300000033 [13:07:49]line РНМ: 0000000000092681 [13:07:49]line Версия ККМ: 001 [13:07:49]line ФМ: 0000000000874881 [13:07:49]line ФД: 123206 [13:07:49]line ФПД: 123346675478533 [13:07:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T130758&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123206&fm=123346675478533&tin=02508201610067®Number=0000000000092681&sum=25000 [13:07:49]written 0, free lines is 4095 [13:07:49]OFD Sender: Processing packet 123206 [packets to send 7, broken 6] [13:07:49]ProducePacketName [13:07:49]name=ofd_packets/00123206 [13:07:49]OFD Sender: To server: pG, [13:07:49]CommunicateWithHost lk.salyk.kg:30040 [13:07:49]ConnectInit lk.salyk.kg [13:07:49]Connected sock=10 [13:07:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E5 3D 07 01 71 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 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 3C 00 00 00 F4 03 04 00 2E C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 46 E1 01 00 35 04 06 00 70 2E E2 C6 B0 05 07 44 30 72 10 EF 82 8D [13:07:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 0B 2A 47 00 B1 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 46 E1 01 00 F4 03 04 00 F0 73 45 67 B6 04 01 00 00 60 14 3B 79 0F E1 BC E6 [13:07:49]CommunicateWithHost err = 0 [13:07:49]CheckOFDResponse [13:07:49]1017 (14) - 77093643461234 [13:07:49]1041 (16) - 0000000000874881 [13:07:49]1040 (4) - 123206 [13:07:49]1012 (4) - 26.11.2024 07:08 [13:07:49]1206 (1) - 0 [13:07:49]OFD Sender: Remove packet 123206 [13:07:49]ProducePacketName [13:07:49]name=ofd_packets/00123206 [13:07:49]NVStorageDeleteData [13:07:49]Write to MH i2c: 01 00 00 D3 58 2B [13:07:49]Write i2c OK [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: 01 [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: 01 07 00 [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: 01 07 00 D3 58 00 00 00 00 00 61 0C 9F [13:07:49]RasterBufferAndPrint [13:07:49]line [13:07:49]line [13:07:49]line [13:07:49]line [13:07:49]line [13:07:49]written 0, free lines is 3175 [13:07:49]MH_Cut [13:07:49]Write to MH i2c: D1 01 00 DA 58 01 04 [13:07:49]Write i2c OK [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: D1 [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: D1 01 00 [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: D1 01 00 DA 58 00 03 [13:07:49]Write to MH i2c: 01 00 00 DB 58 33 [13:07:49]Write i2c OK [13:07:49]MH_I2C_Read... [13:07:50]OFD Sender: No OFD packet to send [13:07:51]*** Cut start [13:07:51]*** Partial cut [13:07:51]*** CUTSNS_PIN = 1 [13:07:51]*** CUTSNS_PIN = 0 [13:07:51]*** Brake cut motor [13:07:51]Read from MH i2c: 01 [13:07:51]MH_I2C_Read... [13:07:51]*** Stop cut motor [13:07:51]*** Cut end [13:07:51]Read from MH i2c: 01 07 00 [13:07:51]MH_I2C_Read... [13:07:51]Read from MH i2c: 01 07 00 DB 58 00 00 00 00 00 FF 0F 48 [13:07:51]process_action close_receipt done [13:07:51]requested_data is exist [13:07:51]produce_requested_data [13:07:51]requested_item fm.sn is exist - process it [13:07:51]wFMCommunicate request_size=4 [13:07:51]MH_SAM_APDU [13:07:51]CAPDU: 80 11 00 00 [13:07:51]Write to MH i2c: E2 08 00 DC 58 80 11 00 00 00 00 00 00 AE [13:07:51]Write i2c OK [13:07:51]MH_I2C_Read... [13:07:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:51]Read from MH i2c: E2 [13:07:51]MH_I2C_Read... [13:07:51]Read from MH i2c: E2 17 00 [13:07:51]MH_I2C_Read... [13:07:51]Read from MH i2c: E2 17 00 DC 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 05 [13:07:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:07:51]wFMCommunicate OK [13:07:51]requested_item fd.num is exist - process it [13:07:51]SAM_PROTO_GetFieldsCounters [13:07:51]wFMCommunicate request_size=4 [13:07:51]MH_SAM_APDU [13:07:51]CAPDU: 80 13 00 00 [13:07:51]Write to MH i2c: E2 08 00 DD 58 80 13 00 00 00 00 00 00 B1 [13:07:51]Write i2c OK [13:07:51]MH_I2C_Read... [13:07:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:51]Read from MH i2c: E2 [13:07:51]MH_I2C_Read... [13:07:51]Read from MH i2c: E2 62 00 [13:07:51]MH_I2C_Read... [13:07:51]Read from MH i2c: E2 62 00 DD 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 46 E1 01 00 0E 04 04 00 2D 02 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 E2 [13:07:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 46 E1 01 00 0E 04 04 00 2D 02 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 [13:07:51]wFMCommunicate OK [13:07:51]SAM_PROTO_GetFieldsCounters done [13:07:51]requested_item shift.num is exist - process it [13:07:51]requested_item shift.opened is exist - process it [13:07:51]req_shift_opened [13:07:51]FM_GetShiftState [13:07:51]SAM_PROTO_GetShiftState [13:07:51]wFMCommunicate request_size=4 [13:07:51]MH_SAM_APDU [13:07:51]CAPDU: 80 13 01 00 [13:07:51]Write to MH i2c: E2 08 00 DE 58 80 13 01 00 00 00 00 00 B3 [13:07:51]Write i2c OK [13:07:51]MH_I2C_Read... [13:07:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:51]Read from MH i2c: E2 [13:07:51]MH_I2C_Read... [13:07:51]Read from MH i2c: E2 0E 00 [13:07:51]MH_I2C_Read... [13:07:51]Read from MH i2c: E2 0E 00 DE 58 00 09 00 01 98 11 45 67 00 00 00 00 90 00 14 [13:07:51]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:07:51]wFMCommunicate OK [13:07:51]SAM_PROTO_GetShiftState done [13:07:51]FM_GetShiftState done [13:07:51]req_shift_opened done [13:07:51]requested_item shift.open_date is exist - process it [13:07:51]req_shift_open_date [13:07:51]req_shift_open_date done [13:07:51]produce_requested_data done [13:07:51]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123206,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:07:51]process_action_free close_receipt [13:07:51]json_value_free [13:07:51]json_value_free done [13:07:51]process_json_proto returns [13:07:51]Send response to host [13:07:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123206,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:07:51]free response buf [13:07:51]execute_script done [13:07:51]execute_script returns [13:07:51]free content buf [13:07:51]Sock 7.Close socket [13:07:51]Sock 7.Thread stoped [13:07:52]accept exits with 9 [13:07:52]New connection [13:07:52]New thread 3066580324 created [13:07:52]Thread 3066723684 joined [13:07:52]Waiting for new connection... [13:07:52] Sock 9.Parse request [13:07:52]Sock 9.Check first char [13:07:52]Sock 9.First char is OK [13:07:52]request: POST /json_proto HTTP/1.0 [13:07:52]Method: POST [13:07:52]URL: /json_proto [13:07:52]Method is POST - this is cgi request [13:07:52]url: /json_proto [13:07:52]query_string will be loaded in cgi processing [13:07:52]execute_cgi json_proto POST (null) [13:07:52]execute_cgi path=json_proto method=POST [13:07:52]POST find Content-Length [13:07:52]Host: 172.17.37.4:8080 [13:07:52]Content-Length: 686 [13:07:52]Content-Type: application/json [13:07:52] [13:07:52]POST finish read [13:07:52]Found Content-Length = 686 [13:07:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 26.710, "sum" : 2000.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:52]execute_script... [13:07:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 26.710, "sum" : 2000.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:52]POST & json_proto [13:07:52]process_json_proto [13:07:52]json parsed OK: [13:07:52]protocol is kg_v1.0 [13:07:52]action value=close_receipt [13:07:52]process_action close_receipt [13:07:52]cmd_close_receipt [13:07:52]MH_GetDate [13:07:52]Write to MH i2c: F0 00 00 DF 58 26 [13:07:52]Write i2c OK [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: F0 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: F0 09 00 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: F0 09 00 DF 58 00 33 C8 45 67 B8 5A 43 67 92 [13:07:52]GetLastDocTimeStamp 1732626478 [13:07:52]current date 1732626483 [13:07:52]FM_GetShiftState [13:07:52]SAM_PROTO_GetShiftState [13:07:52]wFMCommunicate request_size=4 [13:07:52]MH_SAM_APDU [13:07:52]CAPDU: 80 13 01 00 [13:07:52]Write to MH i2c: E2 08 00 E0 58 80 13 01 00 00 00 00 00 B5 [13:07:52]Write i2c OK [13:07:52]MH_I2C_Read... [13:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:52]Read from MH i2c: E2 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 0E 00 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 0E 00 E0 58 00 09 00 01 98 11 45 67 00 00 00 00 90 00 16 [13:07:52]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:07:52]wFMCommunicate OK [13:07:52]SAM_PROTO_GetShiftState done [13:07:52]FM_GetShiftState done [13:07:52]opened in 1732579736 [13:07:52]opened+sec_in_day 1732666136 [13:07:52]quantity*price = 200057 [13:07:52]sum+1 = 200059 [13:07:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 61 26.11.2024 13:08 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123207 ФПД: 250530721878315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T130803&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123207&fm=250530721878315&tin=02508201610067®Number=0000000000092681&sum=200000 [13:07:53]StoreToDocumentArchive [13:07:53]shift 557 fd 123207 [13:07:53]save to /storage/0557/doc_00123207 [13:07:53]save last doc name /storage/0557/doc_00123207 to /storage/kkm_last_doc_name [13:07:53]save OK [13:07:53]Clear old archive folders... [13:07:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:07:53]tlvbuf is 01F93D10 [13:07:53]SAM_PROTO_ClearQueue [13:07:53]wFMCommunicate request_size=4 [13:07:53]MH_SAM_APDU [13:07:53]CAPDU: 80 09 00 00 [13:07:53]Write to MH i2c: E2 08 00 ED 58 80 09 00 00 00 00 00 00 B7 [13:07:53]Write i2c OK [13:07:53]MH_I2C_Read... [13:07:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:53]Read from MH i2c: E2 [13:07:53]MH_I2C_Read... [13:07:53]Read from MH i2c: E2 03 00 [13:07:53]MH_I2C_Read... [13:07:53]Read from MH i2c: E2 03 00 ED 58 00 90 00 B9 [13:07:53]RAPDU: 90 00 [13:07:53]wFMCommunicate OK [13:07:53]SAM_PROTO_ClearQueue done [13:07:53]KKMCreateOFDPacket [13:07:53]OFDProtocolAddRootSTLVToBuf [13:07:53]FM_MakeSignedData [13:07:53]FM_MakeSignedData [13:07:53]SAM_PROTO_SignData [13:07:53]wFMCommunicate request_size=4 [13:07:53]MH_SAM_APDU [13:07:53]CAPDU: 80 0D 01 02 [13:07:53]Write to MH i2c: E2 08 00 EE 58 80 0D 01 02 00 00 00 00 BF [13:07:53]Write i2c OK [13:07:53]MH_I2C_Read... [13:07:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:53]Read from MH i2c: E2 [13:07:53]MH_I2C_Read... [13:07:53]Read from MH i2c: E2 03 00 [13:07:53]MH_I2C_Read... [13:07:53]Read from MH i2c: E2 03 00 EE 58 00 90 00 BA [13:07:53]RAPDU: 90 00 [13:07:53]wFMCommunicate OK [13:07:53]wFMCommunicate request_size=255 [13:07:53]MH_SAM_APDU [13:07:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 33 C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 47 E1 01 00 35 04 06 00 [13:07:53]Write to MH i2c: E2 02 01 EF 58 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 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 33 C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 47 E1 01 00 35 04 06 00 00 00 CB [13:07:53]Write i2c OK [13:07:53]MH_I2C_Read... [13:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:53]Read from MH i2c: E2 [13:07:53]MH_I2C_Read... [13:07:53]Read from MH i2c: E2 03 00 [13:07:53]MH_I2C_Read... [13:07:53]Read from MH i2c: E2 03 00 EF 58 00 90 00 BB [13:07:53]RAPDU: 90 00 [13:07:53]wFMCommunicate OK [13:07:53]wFMCommunicate request_size=11 [13:07:53]MH_SAM_APDU [13:07:53]CAPDU: 80 0D 02 02 06 E3 DB 3A AE D1 2B [13:07:53]Write to MH i2c: E2 0E 00 F0 58 80 0D 02 02 06 00 E3 DB 3A AE D1 2B 00 00 70 [13:07:53]Write i2c OK [13:07:53]MH_I2C_Read... [13:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:53]Read from MH i2c: E2 [13:07:53]MH_I2C_Read... [13:07:53]Read from MH i2c: E2 03 00 [13:07:53]MH_I2C_Read... [13:07:53]Read from MH i2c: E2 03 00 F0 58 00 90 00 BC [13:07:53]RAPDU: 90 00 [13:07:53]wFMCommunicate OK [13:07:53]wFMCommunicate request_size=4 [13:07:53]MH_SAM_APDU [13:07:53]CAPDU: 80 0D 03 02 [13:07:53]Write to MH i2c: E2 08 00 F1 58 80 0D 03 02 00 00 00 00 C4 [13:07:53]Write i2c OK [13:07:53]MH_I2C_Read... [13:07:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:53]Read from MH i2c: E2 [13:07:53]MH_I2C_Read... [13:07:53]Read from MH i2c: E2 0B 00 [13:07:53]MH_I2C_Read... [13:07:53]Read from MH i2c: E2 0B 00 F1 58 00 2B D7 FD 95 36 CF DD E5 90 00 20 [13:07:53]RAPDU: 2B D7 FD 95 36 CF DD E5 90 00 [13:07:53]wFMCommunicate OK [13:07:53]SAM_PROTO_SignData done [13:07:53]FM_MakeSignedData done [13:07:53]CreateOFDProtocolMessage [13:07:53]wFMCommunicate request_size=4 [13:07:53]MH_SAM_APDU [13:07:53]CAPDU: 80 11 00 00 [13:07:53]Write to MH i2c: E2 08 00 F2 58 80 11 00 00 00 00 00 00 C4 [13:07:53]Write i2c OK [13:07:53]MH_I2C_Read... [13:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:54]Read from MH i2c: E2 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 17 00 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: E2 17 00 F2 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1B [13:07:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:07:54]wFMCommunicate OK [13:07:54]CreateOFDProtocolMessage done [13:07:54]OFDSenderStorePacket 123207 [13:07:54]StoreOFDPacket docnum=123207 [13:07:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 45 30 08 01 32 32 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 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 33 C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 47 E1 01 00 35 04 06 00 E3 DB 3A AE D1 2B 2B D7 FD 95 36 CF DD E5 [13:07:54]CheckFolder [13:07:54]dirname=/storage/ofd_packets [13:07:54]CheckFolder done [13:07:54]ProducePacketName [13:07:54]name=ofd_packets/00123207 [13:07:54]NVStorageSaveData ofd_packets/00123207 [13:07:54]File name is /storage/ofd_packets/00123207 [13:07:54]Write 302 bytes [13:07:54]NVStorageSaveData done [13:07:54]OFDSenderStorePacket done [13:07:54]KKMCreateOFDPacket done [13:07:54]NVStorageSaveData kkm_last_timestamp [13:07:54]File name is /storage/kkm_last_timestamp [13:07:54]Write 4 bytes [13:07:54]NVStorageSaveData done [13:07:54]ExternCall_PrintAddStr [13:07:54]wPrintStart [13:07:54]Write to MH i2c: 01 00 00 F3 58 4B [13:07:54]Write i2c OK [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: 01 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: 01 07 00 [13:07:54]MH_I2C_Read... [13:07:54]Read from MH i2c: 01 07 00 F3 58 00 00 00 00 00 FF 0F 60 [13:07:54]RasterBufferAndPrint [13:07:54]line Счет N : (1)718041 [13:07:54]line ИНН: 02508201610067 [13:07:54]line Контрольно-Кассовый Чек [13:07:54]line ПРОДАЖА [13:07:54]line ТРК (МРК, ГНК) : 5 [13:07:54]line Товар: 2710194210 [13:07:54]line ДТ(л)-К-5 [13:07:54]line 26.710 * 74.90 [13:07:54]line = 2000.58 [13:07:54]line НДС 12% НСП 1% [13:07:54]line > о реализуемом товаре [13:07:54]line ОКРУГЛЕНИЕ: -0.58 [13:07:54]line ИТОГО: 2000.00 [13:07:54]line Внесено: 2000.00 [13:07:54]line СДАЧА: 0.00 [13:07:54]line НСП 1% : 17.70 [13:07:54]line НДС 12% : 212.45 [13:07:54]line Наличными: 2000.00 [13:07:54]line Безнал.: 0.00 [13:07:54]line Место: АЗС № 64 "Партнер Нефть" [13:07:54]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:07:54]line СНО: Общий режим [13:07:54]line Чек 61 26.11.2024 13:08 [13:07:54]line Смена: 557 ФФД: 1.0 [13:07:54]line ЗНМ: 0300000033 [13:07:54]line РНМ: 0000000000092681 [13:07:54]line Версия ККМ: 001 [13:07:54]line ФМ: 0000000000874881 [13:07:54]line ФД: 123207 [13:07:54]line ФПД: 250530721878315 [13:07:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T130803&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123207&fm=250530721878315&tin=02508201610067®Number=0000000000092681&sum=200000 [13:07:54]OFD Sender: Processing packet 123207 [packets to send 7, broken 6] [13:07:54]ProducePacketName [13:07:54]name=ofd_packets/00123207 [13:07:54]OFD Sender: To server: pG, [13:07:54]CommunicateWithHost lk.salyk.kg:30040 [13:07:54]ConnectInit lk.salyk.kg [13:07:54]written 0, free lines is 4095 [13:07:54]Connected sock=10 [13:07:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 45 30 08 01 32 32 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 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 33 C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 47 E1 01 00 35 04 06 00 E3 DB 3A AE D1 2B 2B D7 FD 95 36 CF DD E5 [13:07:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 3C 0F 47 00 D6 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 47 E1 01 00 F4 03 04 00 F5 73 45 67 B6 04 01 00 00 15 A4 69 E6 82 1E 69 D2 [13:07:54]CommunicateWithHost err = 0 [13:07:54]CheckOFDResponse [13:07:54]1017 (14) - 77093643461234 [13:07:54]1041 (16) - 0000000000874881 [13:07:54]1040 (4) - 123207 [13:07:54]1012 (4) - 26.11.2024 07:08 [13:07:54]1206 (1) - 0 [13:07:54]OFD Sender: Remove packet 123207 [13:07:54]ProducePacketName [13:07:54]name=ofd_packets/00123207 [13:07:54]NVStorageDeleteData [13:07:55]Write to MH i2c: 01 00 00 1E 59 77 [13:07:55]Write i2c OK [13:07:55]MH_I2C_Read... [13:07:55]Read from MH i2c: 01 [13:07:55]MH_I2C_Read... [13:07:55]Read from MH i2c: 01 07 00 [13:07:55]MH_I2C_Read... [13:07:55]Read from MH i2c: 01 07 00 1E 59 00 00 00 00 00 73 0C FD [13:07:55]RasterBufferAndPrint [13:07:55]line [13:07:55]line [13:07:55]line [13:07:55]line [13:07:55]line [13:07:55]written 0, free lines is 3194 [13:07:55]MH_Cut [13:07:55]Write to MH i2c: D1 01 00 25 59 01 50 [13:07:55]Write i2c OK [13:07:55]MH_I2C_Read... [13:07:55]Read from MH i2c: D1 [13:07:55]MH_I2C_Read... [13:07:55]Read from MH i2c: D1 01 00 [13:07:55]MH_I2C_Read... [13:07:55]Read from MH i2c: D1 01 00 25 59 00 4F [13:07:55]Write to MH i2c: 01 00 00 26 59 7F [13:07:55]Write i2c OK [13:07:55]MH_I2C_Read... [13:07:55]OFD Sender: No OFD packet to send [13:07:56]*** Cut start [13:07:56]*** Partial cut [13:07:56]*** CUTSNS_PIN = 1 [13:07:56]*** CUTSNS_PIN = 0 [13:07:56]*** Brake cut motor [13:07:56]Read from MH i2c: 01 [13:07:56]MH_I2C_Read... [13:07:56]*** Stop cut motor [13:07:56]*** Cut end [13:07:56]Read from MH i2c: 01 07 00 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: 01 07 00 26 59 00 00 00 00 00 FF 0F 94 [13:07:56]process_action close_receipt done [13:07:56]requested_data is exist [13:07:56]produce_requested_data [13:07:56]requested_item fm.sn is exist - process it [13:07:56]wFMCommunicate request_size=4 [13:07:56]MH_SAM_APDU [13:07:56]CAPDU: 80 11 00 00 [13:07:56]Write to MH i2c: E2 08 00 27 59 80 11 00 00 00 00 00 00 FA [13:07:56]Write i2c OK [13:07:56]MH_I2C_Read... [13:07:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:57]Read from MH i2c: E2 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 17 00 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 17 00 27 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 51 [13:07:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:07:57]wFMCommunicate OK [13:07:57]requested_item fd.num is exist - process it [13:07:57]SAM_PROTO_GetFieldsCounters [13:07:57]wFMCommunicate request_size=4 [13:07:57]MH_SAM_APDU [13:07:57]CAPDU: 80 13 00 00 [13:07:57]Write to MH i2c: E2 08 00 28 59 80 13 00 00 00 00 00 00 FD [13:07:57]Write i2c OK [13:07:57]MH_I2C_Read... [13:07:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:57]Read from MH i2c: E2 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 62 00 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 62 00 28 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 47 E1 01 00 0E 04 04 00 2D 02 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 32 [13:07:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 47 E1 01 00 0E 04 04 00 2D 02 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 [13:07:57]wFMCommunicate OK [13:07:57]SAM_PROTO_GetFieldsCounters done [13:07:57]requested_item shift.num is exist - process it [13:07:57]requested_item shift.opened is exist - process it [13:07:57]req_shift_opened [13:07:57]FM_GetShiftState [13:07:57]SAM_PROTO_GetShiftState [13:07:57]wFMCommunicate request_size=4 [13:07:57]MH_SAM_APDU [13:07:57]CAPDU: 80 13 01 00 [13:07:57]Write to MH i2c: E2 08 00 29 59 80 13 01 00 00 00 00 00 FF [13:07:57]Write i2c OK [13:07:57]MH_I2C_Read... [13:07:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:57]Read from MH i2c: E2 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 0E 00 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 0E 00 29 59 00 09 00 01 98 11 45 67 00 00 00 00 90 00 60 [13:07:57]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:07:57]wFMCommunicate OK [13:07:57]SAM_PROTO_GetShiftState done [13:07:57]FM_GetShiftState done [13:07:57]req_shift_opened done [13:07:57]requested_item shift.open_date is exist - process it [13:07:57]req_shift_open_date [13:07:57]req_shift_open_date done [13:07:57]produce_requested_data done [13:07:57]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123207,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:07:57]process_action_free close_receipt [13:07:57]json_value_free [13:07:57]json_value_free done [13:07:57]process_json_proto returns [13:07:57]Send response to host [13:07:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123207,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:07:57]free response buf [13:07:57]execute_script done [13:07:57]execute_script returns [13:07:57]free content buf [13:07:57]Sock 9.Close socket [13:07:57]Sock 9.Thread stoped [13:08:00]OFD Sender: No OFD packet to send [13:08:01]accept exits with 7 [13:08:01]New connection [13:08:01]New thread 3066723684 created [13:08:01]Thread 3066580324 joined [13:08:01]Waiting for new connection... [13:08:01] Sock 7.Parse request [13:08:01]Sock 7.Check first char [13:08:01]Sock 7.First char is OK [13:08:01]request: POST /json_proto HTTP/1.0 [13:08:01]Method: POST [13:08:01]URL: /json_proto [13:08:01]Method is POST - this is cgi request [13:08:01]url: /json_proto [13:08:01]query_string will be loaded in cgi processing [13:08:01]execute_cgi json_proto POST (null) [13:08:01]execute_cgi path=json_proto method=POST [13:08:01]POST find Content-Length [13:08:01]Host: 172.17.37.4:8080 [13:08:01]Content-Length: 743 [13:08:01]Content-Type: application/json [13:08:01] [13:08:01]POST finish read [13:08:01]Found Content-Length = 743 [13:08:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123207, "base_FM": "0000000000874881", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 26.710, "sum" : 2000.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:01]execute_script... [13:08:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123207, "base_FM": "0000000000874881", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 26.710, "sum" : 2000.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:01]POST & json_proto [13:08:01]process_json_proto [13:08:01]json parsed OK: [13:08:01]protocol is kg_v1.0 [13:08:01]action value=close_receipt [13:08:01]process_action close_receipt [13:08:01]cmd_close_receipt [13:08:01]MH_GetDate [13:08:01]Write to MH i2c: F0 00 00 2A 59 72 [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: F0 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: F0 09 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: F0 09 00 2A 59 00 3C C8 45 67 B8 5A 43 67 E7 [13:08:01]GetLastDocTimeStamp 1732626483 [13:08:01]current date 1732626492 [13:08:01]FM_GetShiftState [13:08:01]SAM_PROTO_GetShiftState [13:08:01]wFMCommunicate request_size=4 [13:08:01]MH_SAM_APDU [13:08:01]CAPDU: 80 13 01 00 [13:08:01]Write to MH i2c: E2 08 00 2B 59 80 13 01 00 00 00 00 00 01 [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:02]Read from MH i2c: E2 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 0E 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 0E 00 2B 59 00 09 00 01 98 11 45 67 00 00 00 00 90 00 62 [13:08:02]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:08:02]wFMCommunicate OK [13:08:02]SAM_PROTO_GetShiftState done [13:08:02]FM_GetShiftState done [13:08:02]opened in 1732579736 [13:08:02]opened+sec_in_day 1732666136 [13:08:02]quantity*price = 200057 [13:08:02]sum+1 = 200059 [13:08:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 62 26.11.2024 13:08 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФД осн.: 123207 ФМ осн.: 0000000000874881 ФМ: 0000000000874881 ФД: 123208 ФПД: 207338225580643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T130812&type=2&operation_type=1&fn_number=0000000000874881&fd_number=123208&fm=207338225580643&tin=02508201610067®Number=0000000000092681&sum=200000 [13:08:03]StoreToDocumentArchive [13:08:03]shift 557 fd 123208 [13:08:03]save to /storage/0557/doc_00123208 [13:08:03]save last doc name /storage/0557/doc_00123208 to /storage/kkm_last_doc_name [13:08:03]save OK [13:08:03]Clear old archive folders... [13:08:03]ProcessDocumentItem done err = 0, tmpTLVsize=280 [13:08:03]tlvbuf is 01F3AD40 [13:08:03]SAM_PROTO_ClearQueue [13:08:03]wFMCommunicate request_size=4 [13:08:03]MH_SAM_APDU [13:08:03]CAPDU: 80 09 00 00 [13:08:03]Write to MH i2c: E2 08 00 3A 59 80 09 00 00 00 00 00 00 05 [13:08:03]Write i2c OK [13:08:03]MH_I2C_Read... [13:08:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:03]Read from MH i2c: E2 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 03 00 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 03 00 3A 59 00 90 00 07 [13:08:03]RAPDU: 90 00 [13:08:03]wFMCommunicate OK [13:08:03]SAM_PROTO_ClearQueue done [13:08:03]KKMCreateOFDPacket [13:08:03]OFDProtocolAddRootSTLVToBuf [13:08:03]FM_MakeSignedData [13:08:03]FM_MakeSignedData [13:08:03]SAM_PROTO_SignData [13:08:03]wFMCommunicate request_size=4 [13:08:03]MH_SAM_APDU [13:08:03]CAPDU: 80 0D 01 02 [13:08:03]Write to MH i2c: E2 08 00 3B 59 80 0D 01 02 00 00 00 00 0D [13:08:03]Write i2c OK [13:08:03]MH_I2C_Read... [13:08:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:03]Read from MH i2c: E2 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 03 00 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 03 00 3B 59 00 90 00 08 [13:08:03]RAPDU: 90 00 [13:08:03]wFMCommunicate OK [13:08:03]wFMCommunicate request_size=255 [13:08:03]MH_SAM_APDU [13:08:03]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 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 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 3C C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 47 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 [13:08:03]Write to MH i2c: E2 02 01 3C 59 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 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 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 3C C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 47 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 00 00 55 [13:08:03]Write i2c OK [13:08:03]MH_I2C_Read... [13:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:03]Read from MH i2c: E2 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 03 00 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 03 00 3C 59 00 90 00 09 [13:08:03]RAPDU: 90 00 [13:08:03]wFMCommunicate OK [13:08:03]wFMCommunicate request_size=39 [13:08:03]MH_SAM_APDU [13:08:03]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 48 E1 01 00 35 04 06 00 BC 92 B1 48 BA 63 [13:08:03]Write to MH i2c: E2 2A 00 3D 59 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 48 E1 01 00 35 04 06 00 BC 92 B1 48 BA 63 00 00 5D [13:08:03]Write i2c OK [13:08:03]MH_I2C_Read... [13:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:03]Read from MH i2c: E2 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 03 00 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 03 00 3D 59 00 90 00 0A [13:08:03]RAPDU: 90 00 [13:08:03]wFMCommunicate OK [13:08:03]wFMCommunicate request_size=4 [13:08:03]MH_SAM_APDU [13:08:03]CAPDU: 80 0D 03 02 [13:08:03]Write to MH i2c: E2 08 00 3E 59 80 0D 03 02 00 00 00 00 12 [13:08:03]Write i2c OK [13:08:03]MH_I2C_Read... [13:08:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:03]Read from MH i2c: E2 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 0B 00 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 0B 00 3E 59 00 C6 DC 2E B7 32 1C A5 8C 90 00 19 [13:08:03]RAPDU: C6 DC 2E B7 32 1C A5 8C 90 00 [13:08:03]wFMCommunicate OK [13:08:03]SAM_PROTO_SignData done [13:08:03]FM_MakeSignedData done [13:08:03]CreateOFDProtocolMessage [13:08:03]wFMCommunicate request_size=4 [13:08:03]MH_SAM_APDU [13:08:03]CAPDU: 80 11 00 00 [13:08:03]Write to MH i2c: E2 08 00 3F 59 80 11 00 00 00 00 00 00 12 [13:08:03]Write i2c OK [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 [13:08:03]MH_I2C_Read... [13:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:03]Read from MH i2c: E2 17 00 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 17 00 3F 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 69 [13:08:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:08:03]wFMCommunicate OK [13:08:03]CreateOFDProtocolMessage done [13:08:03]OFDSenderStorePacket 123208 [13:08:03]StoreOFDPacket docnum=123208 [13:08:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 2C 01 00 00 56 0D 24 01 B8 87 5A 03 01 00 03 00 18 01 1E 04 01 00 02 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 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 3C C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 47 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 48 E1 01 00 35 04 06 00 BC 92 B1 48 BA 63 C6 DC 2E B7 32 1C A5 8C [13:08:03]CheckFolder [13:08:03]dirname=/storage/ofd_packets [13:08:03]CheckFolder done [13:08:03]ProducePacketName [13:08:03]name=ofd_packets/00123208 [13:08:03]NVStorageSaveData ofd_packets/00123208 [13:08:03]File name is /storage/ofd_packets/00123208 [13:08:03]Write 330 bytes [13:08:03]NVStorageSaveData done [13:08:03]OFDSenderStorePacket done [13:08:03]KKMCreateOFDPacket done [13:08:03]NVStorageSaveData kkm_last_timestamp [13:08:03]File name is /storage/kkm_last_timestamp [13:08:03]Write 4 bytes [13:08:03]NVStorageSaveData done [13:08:03]ExternCall_PrintAddStr [13:08:03]wPrintStart [13:08:03]Write to MH i2c: 01 00 00 40 59 99 [13:08:03]Write i2c OK [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: 01 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: 01 07 00 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: 01 07 00 40 59 00 00 00 00 00 FF 0F AE [13:08:03]RasterBufferAndPrint [13:08:03]line Счет N : (1)718041 [13:08:03]line ИНН: 02508201610067 [13:08:03]line Контрольно-Кассовый Чек [13:08:03]line ВОЗВРАТ ПРОДАЖИ [13:08:03]line ТРК (МРК, ГНК) : 5 [13:08:03]line Товар: 2710194210 [13:08:03]line ДТ(л)-К-5 [13:08:03]line 26.710 * 74.90 [13:08:03]line = 2000.58 [13:08:03]line НДС 12% НСП 1% [13:08:03]line > о реализуемом товаре [13:08:03]line ОКРУГЛЕНИЕ: -0.58 [13:08:03]line ИТОГО: 2000.00 [13:08:03]line НСП 1% : 17.70 [13:08:03]line НДС 12% : 212.45 [13:08:03]line Наличными: 2000.00 [13:08:03]line Безнал.: 0.00 [13:08:03]line Место: АЗС № 64 "Партнер Нефть" [13:08:03]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:08:03]line СНО: Общий режим [13:08:03]line Чек 62 26.11.2024 13:08 [13:08:03]line Смена: 557 ФФД: 1.0 [13:08:03]line ЗНМ: 0300000033 [13:08:03]line РНМ: 0000000000092681 [13:08:03]line Версия ККМ: 001 [13:08:03]line ФД осн.: 123207 [13:08:04]line ФМ осн.: 0000000000874881 [13:08:04]line ФМ: 0000000000874881 [13:08:04]line ФД: 123208 [13:08:04]line ФПД: 207338225580643 [13:08:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T130812&type=2&operation_type=1&fn_number=0000000000874881&fd_number=123208&fm=207338225580643&tin=02508201610067®Number=0000000000092681&sum=200000 [13:08:04]OFD Sender: Processing packet 123208 [packets to send 7, broken 6] [13:08:04]ProducePacketName [13:08:04]name=ofd_packets/00123208 [13:08:04]OFD Sender: To server: pG, [13:08:04]CommunicateWithHost lk.salyk.kg:30040 [13:08:04]ConnectInit lk.salyk.kg [13:08:04]written 0, free lines is 4095 [13:08:04]Connected sock=10 [13:08:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 2C 01 00 00 56 0D 24 01 B8 87 5A 03 01 00 03 00 18 01 1E 04 01 00 02 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 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 3C C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 47 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 48 E1 01 00 35 04 06 00 BC 92 B1 48 BA 63 C6 DC 2E B7 32 1C A5 8C [13:08:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 A8 91 47 00 3F A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 48 E1 01 00 F4 03 04 00 FF 73 45 67 B6 04 01 00 00 B0 45 38 25 D1 CE A4 94 [13:08:04]CommunicateWithHost err = 0 [13:08:04]CheckOFDResponse [13:08:04]1017 (14) - 77093643461234 [13:08:04]1041 (16) - 0000000000874881 [13:08:04]1040 (4) - 123208 [13:08:04]1012 (4) - 26.11.2024 07:08 [13:08:04]1206 (1) - 0 [13:08:04]OFD Sender: Remove packet 123208 [13:08:04]ProducePacketName [13:08:04]name=ofd_packets/00123208 [13:08:04]NVStorageDeleteData [13:08:04]Write to MH i2c: 01 00 00 6B 59 C4 [13:08:04]Write i2c OK [13:08:04]MH_I2C_Read... [13:08:04]Read from MH i2c: 01 [13:08:04]MH_I2C_Read... [13:08:04]Read from MH i2c: 01 07 00 [13:08:04]MH_I2C_Read... [13:08:04]Read from MH i2c: 01 07 00 6B 59 00 00 00 00 00 6A 0C 41 [13:08:04]RasterBufferAndPrint [13:08:04]line [13:08:04]line [13:08:04]line [13:08:04]line [13:08:04]line [13:08:04]written 0, free lines is 3188 [13:08:04]MH_Cut [13:08:04]Write to MH i2c: D1 01 00 72 59 01 9D [13:08:04]Write i2c OK [13:08:04]MH_I2C_Read... [13:08:04]Read from MH i2c: D1 [13:08:04]MH_I2C_Read... [13:08:04]Read from MH i2c: D1 01 00 [13:08:04]MH_I2C_Read... [13:08:04]Read from MH i2c: D1 01 00 72 59 00 9C [13:08:04]Write to MH i2c: 01 00 00 73 59 CC [13:08:04]Write i2c OK [13:08:04]MH_I2C_Read... [13:08:04]OFD Sender: No OFD packet to send [13:08:05]*** Cut start [13:08:05]*** Partial cut [13:08:05]*** CUTSNS_PIN = 1 [13:08:05]*** CUTSNS_PIN = 0 [13:08:06]*** Brake cut motor [13:08:06]Read from MH i2c: 01 [13:08:06]MH_I2C_Read... [13:08:06]Read from MH i2c: 01 07 00 [13:08:06]MH_I2C_Read... [13:08:06]*** Stop cut motor [13:08:06]Read from MH i2c: *** Cut end [13:08:06]01 07 00 73 59 00 00 00 00 00 FF 0F E1 [13:08:06]process_action close_receipt done [13:08:06]requested_data is exist [13:08:06]produce_requested_data [13:08:06]requested_item fm.sn is exist - process it [13:08:06]wFMCommunicate request_size=4 [13:08:06]MH_SAM_APDU [13:08:06]CAPDU: 80 11 00 00 [13:08:06]Write to MH i2c: E2 08 00 74 59 80 11 00 00 00 00 00 00 47 [13:08:06]Write i2c OK [13:08:06]MH_I2C_Read... [13:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:06]Read from MH i2c: E2 [13:08:06]MH_I2C_Read... [13:08:06]Read from MH i2c: E2 17 00 [13:08:06]MH_I2C_Read... [13:08:06]Read from MH i2c: E2 17 00 74 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 9E [13:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:08:06]wFMCommunicate OK [13:08:06]requested_item fd.num is exist - process it [13:08:06]SAM_PROTO_GetFieldsCounters [13:08:06]wFMCommunicate request_size=4 [13:08:06]MH_SAM_APDU [13:08:06]CAPDU: 80 13 00 00 [13:08:06]Write to MH i2c: E2 08 00 75 59 80 13 00 00 00 00 00 00 4A [13:08:06]Write i2c OK [13:08:06]MH_I2C_Read... [13:08:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:06]Read from MH i2c: E2 [13:08:06]MH_I2C_Read... [13:08:06]Read from MH i2c: E2 62 00 [13:08:06]MH_I2C_Read... [13:08:06]Read from MH i2c: E2 62 00 75 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 48 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [13:08:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 48 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:06]wFMCommunicate OK [13:08:06]SAM_PROTO_GetFieldsCounters done [13:08:06]requested_item shift.num is exist - process it [13:08:06]requested_item shift.opened is exist - process it [13:08:06]req_shift_opened [13:08:06]FM_GetShiftState [13:08:06]SAM_PROTO_GetShiftState [13:08:06]wFMCommunicate request_size=4 [13:08:06]MH_SAM_APDU [13:08:06]CAPDU: 80 13 01 00 [13:08:06]Write to MH i2c: E2 08 00 76 59 80 13 01 00 00 00 00 00 4C [13:08:06]Write i2c OK [13:08:06]MH_I2C_Read... [13:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:06]Read from MH i2c: E2 [13:08:06]MH_I2C_Read... [13:08:06]Read from MH i2c: E2 0E 00 [13:08:06]MH_I2C_Read... [13:08:06]Read from MH i2c: E2 0E 00 76 59 00 09 00 01 98 11 45 67 00 00 00 00 90 00 AD [13:08:06]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:08:06]wFMCommunicate OK [13:08:06]SAM_PROTO_GetShiftState done [13:08:06]FM_GetShiftState done [13:08:06]req_shift_opened done [13:08:06]requested_item shift.open_date is exist - process it [13:08:06]req_shift_open_date [13:08:06]req_shift_open_date done [13:08:06]produce_requested_data done [13:08:06]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123208,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:08:06]process_action_free close_receipt [13:08:06]json_value_free [13:08:06]json_value_free done [13:08:06]process_json_proto returns [13:08:06]Send response to host [13:08:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123208,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:08:06]free response buf [13:08:06]execute_script done [13:08:06]execute_script returns [13:08:06]free content buf [13:08:06]Sock 7.Close socket [13:08:06]Sock 7.Thread stoped [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]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:39]accept exits with 9 [13:09:39]New connection [13:09:39]New thread 3066580324 created [13:09:39]Thread 3066723684 joined [13:09:39]Waiting for new connection... [13:09:39] Sock 9.Parse request [13:09:39]Sock 9.Check first char [13:09:39]Sock 9.First char is OK [13:09:39]request: POST /json_proto HTTP/1.0 [13:09:39]Method: POST [13:09:39]URL: /json_proto [13:09:39]Method is POST - this is cgi request [13:09:39]url: /json_proto [13:09:39]query_string will be loaded in cgi processing [13:09:39]execute_cgi json_proto POST (null) [13:09:39]execute_cgi path=json_proto method=POST [13:09:39]POST find Content-Length [13:09:39]Host: 172.17.37.4:8080 [13:09:39]Content-Length: 682 [13:09:39]Content-Type: application/json [13:09:39] [13:09:39]POST finish read [13:09:39]Found Content-Length = 682 [13:09:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:39]execute_script... [13:09:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:39]POST & json_proto [13:09:39]process_json_proto [13:09:39]json parsed OK: [13:09:39]protocol is kg_v1.0 [13:09:39]action value=close_receipt [13:09:39]process_action close_receipt [13:09:39]cmd_close_receipt [13:09:39]MH_GetDate [13:09:39]Write to MH i2c: F0 00 00 77 59 BF [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: F0 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: F0 09 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: F0 09 00 77 59 00 9E C8 45 67 B8 5A 43 67 96 [13:09:39]GetLastDocTimeStamp 1732626492 [13:09:39]current date 1732626590 [13:09:39]FM_GetShiftState [13:09:39]SAM_PROTO_GetShiftState [13:09:39]wFMCommunicate request_size=4 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 13 01 00 [13:09:39]Write to MH i2c: E2 08 00 78 59 80 13 01 00 00 00 00 00 4E [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 0E 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 0E 00 78 59 00 09 00 01 98 11 45 67 00 00 00 00 90 00 AF [13:09:39]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:09:39]wFMCommunicate OK [13:09:39]SAM_PROTO_GetShiftState done [13:09:39]FM_GetShiftState done [13:09:39]opened in 1732579736 [13:09:39]opened+sec_in_day 1732666136 [13:09:39]quantity*price = 100021 [13:09:39]sum+1 = 100023 [13:09:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 63 26.11.2024 13:09 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123209 ФПД: 39008786432590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T130950&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123209&fm=39008786432590&tin=02508201610067®Number=0000000000092681&sum=100000 [13:09:41]StoreToDocumentArchive [13:09:41]shift 557 fd 123209 [13:09:41]save to /storage/0557/doc_00123209 [13:09:41]save last doc name /storage/0557/doc_00123209 to /storage/kkm_last_doc_name [13:09:41]save OK [13:09:41]Clear old archive folders... [13:09:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:41]tlvbuf is B6E704F0 [13:09:41]SAM_PROTO_ClearQueue [13:09:41]wFMCommunicate request_size=4 [13:09:41]MH_SAM_APDU [13:09:41]CAPDU: 80 09 00 00 [13:09:41]Write to MH i2c: E2 08 00 85 59 80 09 00 00 00 00 00 00 50 [13:09:41]Write i2c OK [13:09:41]MH_I2C_Read... [13:09:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:41]Read from MH i2c: E2 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: E2 03 00 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: E2 03 00 85 59 00 90 00 52 [13:09:41]RAPDU: 90 00 [13:09:41]wFMCommunicate OK [13:09:41]SAM_PROTO_ClearQueue done [13:09:41]KKMCreateOFDPacket [13:09:41]OFDProtocolAddRootSTLVToBuf [13:09:41]FM_MakeSignedData [13:09:41]FM_MakeSignedData [13:09:41]SAM_PROTO_SignData [13:09:41]wFMCommunicate request_size=4 [13:09:41]MH_SAM_APDU [13:09:41]CAPDU: 80 0D 01 02 [13:09:41]Write to MH i2c: E2 08 00 86 59 80 0D 01 02 00 00 00 00 58 [13:09:41]Write i2c OK [13:09:41]MH_I2C_Read... [13:09:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:41]Read from MH i2c: E2 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: E2 03 00 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: E2 03 00 86 59 00 90 00 53 [13:09:41]RAPDU: 90 00 [13:09:41]wFMCommunicate OK [13:09:41]wFMCommunicate request_size=255 [13:09:41]MH_SAM_APDU [13:09:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 9E C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 49 E1 01 00 35 04 06 00 23 [13:09:41]Write to MH i2c: E2 02 01 87 59 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 9E C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 49 E1 01 00 35 04 06 00 23 00 00 7D [13:09:41]Write i2c OK [13:09:41]MH_I2C_Read... [13:09:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:41]Read from MH i2c: E2 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: E2 03 00 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: E2 03 00 87 59 00 90 00 54 [13:09:41]RAPDU: 90 00 [13:09:41]wFMCommunicate OK [13:09:41]wFMCommunicate request_size=10 [13:09:41]MH_SAM_APDU [13:09:41]CAPDU: 80 0D 02 02 05 7A 70 DB C2 4E [13:09:41]Write to MH i2c: E2 0D 00 88 59 80 0D 02 02 05 00 7A 70 DB C2 4E 00 00 3A [13:09:41]Write i2c OK [13:09:41]MH_I2C_Read... [13:09:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:41]Read from MH i2c: E2 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: E2 03 00 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: E2 03 00 88 59 00 90 00 55 [13:09:41]RAPDU: 90 00 [13:09:41]wFMCommunicate OK [13:09:41]wFMCommunicate request_size=4 [13:09:41]MH_SAM_APDU [13:09:41]CAPDU: 80 0D 03 02 [13:09:41]Write to MH i2c: E2 08 00 89 59 80 0D 03 02 00 00 00 00 5D [13:09:41]Write i2c OK [13:09:41]MH_I2C_Read... [13:09:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:41]Read from MH i2c: E2 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: E2 0B 00 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: E2 0B 00 89 59 00 3F A8 A0 3B 36 4F 0F 39 90 00 ED [13:09:41]RAPDU: 3F A8 A0 3B 36 4F 0F 39 90 00 [13:09:41]wFMCommunicate OK [13:09:41]SAM_PROTO_SignData done [13:09:41]FM_MakeSignedData done [13:09:41]CreateOFDProtocolMessage [13:09:41]wFMCommunicate request_size=4 [13:09:41]MH_SAM_APDU [13:09:41]CAPDU: 80 11 00 00 [13:09:41]Write to MH i2c: E2 08 00 8A 59 80 11 00 00 00 00 00 00 5D [13:09:41]Write i2c OK [13:09:41]MH_I2C_Read... [13:09:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:41]Read from MH i2c: E2 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: E2 17 00 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: E2 17 00 8A 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B4 [13:09:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:09:41]wFMCommunicate OK [13:09:41]CreateOFDProtocolMessage done [13:09:41]OFDSenderStorePacket 123209 [13:09:41]StoreOFDPacket docnum=123209 [13:09:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 91 16 07 01 17 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 9E C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 49 E1 01 00 35 04 06 00 23 7A 70 DB C2 4E 3F A8 A0 3B 36 4F 0F 39 [13:09:41]CheckFolder [13:09:41]dirname=/storage/ofd_packets [13:09:41]CheckFolder done [13:09:41]ProducePacketName [13:09:41]name=ofd_packets/00123209 [13:09:41]NVStorageSaveData ofd_packets/00123209 [13:09:41]File name is /storage/ofd_packets/00123209 [13:09:41]Write 301 bytes [13:09:41]NVStorageSaveData done [13:09:41]OFDSenderStorePacket done [13:09:41]KKMCreateOFDPacket done [13:09:41]NVStorageSaveData kkm_last_timestamp [13:09:41]File name is /storage/kkm_last_timestamp [13:09:41]Write 4 bytes [13:09:41]NVStorageSaveData done [13:09:41]ExternCall_PrintAddStr [13:09:41]wPrintStart [13:09:41]Write to MH i2c: 01 00 00 8B 59 E4 [13:09:41]Write i2c OK [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: 01 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: 01 07 00 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: 01 07 00 8B 59 00 00 00 00 00 FF 0F F9 [13:09:41]RasterBufferAndPrint [13:09:41]line Счет N : (1)718042 [13:09:41]line ИНН: 02508201610067 [13:09:41]line Контрольно-Кассовый Чек [13:09:41]line ПРОДАЖА [13:09:41]line ТРК (МРК, ГНК) : 32 [13:09:41]line Товар: 2710124130 [13:09:41]line Аи-92-К-4 [13:09:41]line 14.840 * 67.40 [13:09:41]line = 1000.22 [13:09:41]line НДС 12% НСП 1% [13:09:41]line > о реализуемом товаре [13:09:41]line ОКРУГЛЕНИЕ: -0.22 [13:09:41]line ИТОГО: 1000.00 [13:09:41]line Внесено: 1000.00 [13:09:41]line СДАЧА: 0.00 [13:09:41]line НСП 1% : 8.85 [13:09:41]line НДС 12% : 106.22 [13:09:41]line Наличными: 1000.00 [13:09:41]line Безнал.: 0.00 [13:09:41]line Место: АЗС № 64 "Партнер Нефть" [13:09:41]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:09:41]line СНО: Общий режим [13:09:41]line Чек 63 26.11.2024 13:09 [13:09:41]line Смена: 557 ФФД: 1.0 [13:09:41]line ЗНМ: 0300000033 [13:09:41]line РНМ: 0000000000092681 [13:09:41]line Версия ККМ: 001 [13:09:41]line ФМ: 0000000000874881 [13:09:41]line ФД: 123209 [13:09:41]line ФПД: 39008786432590 [13:09:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T130950&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123209&fm=39008786432590&tin=02508201610067®Number=0000000000092681&sum=100000 [13:09:41]OFD Sender: Processing packet 123209 [packets to send 7, broken 6] [13:09:41]ProducePacketName [13:09:41]name=ofd_packets/00123209 [13:09:41]OFD Sender: To server: pG, [13:09:41]CommunicateWithHost lk.salyk.kg:30040 [13:09:41]ConnectInit lk.salyk.kg [13:09:41]written 0, free lines is 4095 [13:09:41]Connected sock=10 [13:09:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 91 16 07 01 17 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 9E C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 49 E1 01 00 35 04 06 00 23 7A 70 DB C2 4E 3F A8 A0 3B 36 4F 0F 39 [13:09:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 51 3E 47 00 C3 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 49 E1 01 00 F4 03 04 00 61 74 45 67 B6 04 01 00 00 3F 0A 35 55 5C D4 9A F5 [13:09:42]CommunicateWithHost err = 0 [13:09:42]CheckOFDResponse [13:09:42]1017 (14) - 77093643461234 [13:09:42]1041 (16) - 0000000000874881 [13:09:42]1040 (4) - 123209 [13:09:42]1012 (4) - 26.11.2024 07:10 [13:09:42]1206 (1) - 0 [13:09:42]OFD Sender: Remove packet 123209 [13:09:42]ProducePacketName [13:09:42]name=ofd_packets/00123209 [13:09:42]NVStorageDeleteData [13:09:42]Write to MH i2c: 01 00 00 B6 59 0F [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: 01 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: 01 07 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: 01 07 00 B6 59 00 00 00 00 00 52 0C 74 [13:09:42]RasterBufferAndPrint [13:09:42]line [13:09:42]line [13:09:42]line [13:09:42]line [13:09:42]line [13:09:42]written 0, free lines is 3158 [13:09:42]MH_Cut [13:09:42]Write to MH i2c: D1 01 00 BD 59 01 E8 [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: D1 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: D1 01 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: D1 01 00 BD 59 00 E7 [13:09:42]Write to MH i2c: 01 00 00 BE 59 17 [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]OFD Sender: No OFD packet to send [13:09:43]*** Cut start [13:09:43]*** Partial cut [13:09:43]*** CUTSNS_PIN = 1 [13:09:43]*** CUTSNS_PIN = 0 [13:09:43]*** Brake cut motor [13:09:44]Read from MH i2c: 01 [13:09:44]MH_I2C_Read... [13:09:44]*** Stop cut motor [13:09:44]*** Cut end [13:09:44]Read from MH i2c: 01 07 00 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: 01 07 00 BE 59 00 00 00 00 00 FF 0F 2C [13:09:44]process_action close_receipt done [13:09:44]requested_data is exist [13:09:44]produce_requested_data [13:09:44]requested_item fm.sn is exist - process it [13:09:44]wFMCommunicate request_size=4 [13:09:44]MH_SAM_APDU [13:09:44]CAPDU: 80 11 00 00 [13:09:44]Write to MH i2c: E2 08 00 BF 59 80 11 00 00 00 00 00 00 92 [13:09:44]Write i2c OK [13:09:44]MH_I2C_Read... [13:09:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:44]Read from MH i2c: E2 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: E2 17 00 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: E2 17 00 BF 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E9 [13:09:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:09:44]wFMCommunicate OK [13:09:44]requested_item fd.num is exist - process it [13:09:44]SAM_PROTO_GetFieldsCounters [13:09:44]wFMCommunicate request_size=4 [13:09:44]MH_SAM_APDU [13:09:44]CAPDU: 80 13 00 00 [13:09:44]Write to MH i2c: E2 08 00 C0 59 80 13 00 00 00 00 00 00 95 [13:09:44]Write i2c OK [13:09:44]MH_I2C_Read... [13:09:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:44]Read from MH i2c: E2 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: E2 62 00 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: E2 62 00 C0 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 49 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [13:09:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 49 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:44]wFMCommunicate OK [13:09:44]SAM_PROTO_GetFieldsCounters done [13:09:44]requested_item shift.num is exist - process it [13:09:44]requested_item shift.opened is exist - process it [13:09:44]req_shift_opened [13:09:44]FM_GetShiftState [13:09:44]SAM_PROTO_GetShiftState [13:09:44]wFMCommunicate request_size=4 [13:09:44]MH_SAM_APDU [13:09:44]CAPDU: 80 13 01 00 [13:09:44]Write to MH i2c: E2 08 00 C1 59 80 13 01 00 00 00 00 00 97 [13:09:44]Write i2c OK [13:09:44]MH_I2C_Read... [13:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:44]Read from MH i2c: E2 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: E2 0E 00 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: E2 0E 00 C1 59 00 09 00 01 98 11 45 67 00 00 00 00 90 00 F8 [13:09:44]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:09:44]wFMCommunicate OK [13:09:44]SAM_PROTO_GetShiftState done [13:09:44]FM_GetShiftState done [13:09:44]req_shift_opened done [13:09:44]requested_item shift.open_date is exist - process it [13:09:44]req_shift_open_date [13:09:44]req_shift_open_date done [13:09:44]produce_requested_data done [13:09:44]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123209,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:09:44]process_action_free close_receipt [13:09:44]json_value_free [13:09:44]json_value_free done [13:09:44]process_json_proto returns [13:09:44]Send response to host [13:09:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123209,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:09:44]free response buf [13:09:44]execute_script done [13:09:44]execute_script returns [13:09:44]free content buf [13:09:44]Sock 9.Close socket [13:09:44]Sock 9.Thread stoped [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:28]accept exits with 7 [13:10:28]New connection [13:10:28]New thread 3066723684 created [13:10:28]Thread 3066580324 joined [13:10:28]Waiting for new connection... [13:10:28] Sock 7.Parse request [13:10:28]Sock 7.Check first char [13:10:28]Sock 7.First char is OK [13:10:28]request: POST /json_proto HTTP/1.0 [13:10:28]Method: POST [13:10:28]URL: /json_proto [13:10:28]Method is POST - this is cgi request [13:10:28]url: /json_proto [13:10:28]query_string will be loaded in cgi processing [13:10:28]execute_cgi json_proto POST (null) [13:10:28]execute_cgi path=json_proto method=POST [13:10:28]POST find Content-Length [13:10:28]Host: 172.17.37.4:8080 [13:10:28]Content-Length: 682 [13:10:28]Content-Type: application/json [13:10:28] [13:10:28]POST finish read [13:10:28]Found Content-Length = 682 [13:10:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 13.270, "sum" : 1000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:28]execute_script... [13:10:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 13.270, "sum" : 1000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:28]POST & json_proto [13:10:28]process_json_proto [13:10:28]json parsed OK: [13:10:28]protocol is kg_v1.0 [13:10:28]action value=close_receipt [13:10:28]process_action close_receipt [13:10:28]cmd_close_receipt [13:10:28]MH_GetDate [13:10:28]Write to MH i2c: F0 00 00 C2 59 0A [13:10:28]Write i2c OK [13:10:28]MH_I2C_Read... [13:10:28]Read from MH i2c: F0 [13:10:28]MH_I2C_Read... [13:10:28]Read from MH i2c: F0 09 00 [13:10:28]MH_I2C_Read... [13:10:28]Read from MH i2c: F0 09 00 C2 59 00 CE C8 45 67 B8 5A 43 67 11 [13:10:28]GetLastDocTimeStamp 1732626590 [13:10:28]current date 1732626638 [13:10:28]FM_GetShiftState [13:10:28]SAM_PROTO_GetShiftState [13:10:28]wFMCommunicate request_size=4 [13:10:28]MH_SAM_APDU [13:10:28]CAPDU: 80 13 01 00 [13:10:28]Write to MH i2c: E2 08 00 C3 59 80 13 01 00 00 00 00 00 99 [13:10:28]Write i2c OK [13:10:28]MH_I2C_Read... [13:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:28]Read from MH i2c: E2 [13:10:28]MH_I2C_Read... [13:10:28]Read from MH i2c: E2 0E 00 [13:10:28]MH_I2C_Read... [13:10:28]Read from MH i2c: E2 0E 00 C3 59 00 09 00 01 98 11 45 67 00 00 00 00 90 00 FA [13:10:28]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:10:28]wFMCommunicate OK [13:10:28]SAM_PROTO_GetShiftState done [13:10:28]FM_GetShiftState done [13:10:28]opened in 1732579736 [13:10:28]opened+sec_in_day 1732666136 [13:10:28]quantity*price = 100055 [13:10:28]sum+1 = 100057 [13:10:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 64 26.11.2024 13:10 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123210 ФПД: 116477398601732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T131038&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123210&fm=116477398601732&tin=02508201610067®Number=0000000000092681&sum=100000 [13:10:29]StoreToDocumentArchive [13:10:29]shift 557 fd 123210 [13:10:29]save to /storage/0557/doc_00123210 [13:10:29]save last doc name /storage/0557/doc_00123210 to /storage/kkm_last_doc_name [13:10:29]save OK [13:10:29]Clear old archive folders... [13:10:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:29]tlvbuf is 0213C720 [13:10:29]SAM_PROTO_ClearQueue [13:10:29]wFMCommunicate request_size=4 [13:10:29]MH_SAM_APDU [13:10:29]CAPDU: 80 09 00 00 [13:10:29]Write to MH i2c: E2 08 00 D0 59 80 09 00 00 00 00 00 00 9B [13:10:29]Write i2c OK [13:10:29]MH_I2C_Read... [13:10:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:29]Read from MH i2c: E2 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: E2 03 00 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: E2 03 00 D0 59 00 90 00 9D [13:10:29]RAPDU: 90 00 [13:10:29]wFMCommunicate OK [13:10:29]SAM_PROTO_ClearQueue done [13:10:29]KKMCreateOFDPacket [13:10:29]OFDProtocolAddRootSTLVToBuf [13:10:29]FM_MakeSignedData [13:10:29]FM_MakeSignedData [13:10:29]SAM_PROTO_SignData [13:10:29]wFMCommunicate request_size=4 [13:10:29]MH_SAM_APDU [13:10:29]CAPDU: 80 0D 01 02 [13:10:29]Write to MH i2c: E2 08 00 D1 59 80 0D 01 02 00 00 00 00 A3 [13:10:29]Write i2c OK [13:10:29]MH_I2C_Read... [13:10:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:29]Read from MH i2c: E2 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: E2 03 00 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: E2 03 00 D1 59 00 90 00 9E [13:10:29]RAPDU: 90 00 [13:10:29]wFMCommunicate OK [13:10:29]wFMCommunicate request_size=255 [13:10:29]MH_SAM_APDU [13:10:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CE C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4A E1 01 00 35 04 06 00 69 [13:10:29]Write to MH i2c: E2 02 01 D2 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CE C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4A E1 01 00 35 04 06 00 69 00 00 65 [13:10:29]Write i2c OK [13:10:29]MH_I2C_Read... [13:10:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:29]Read from MH i2c: E2 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: E2 03 00 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: E2 03 00 D2 59 00 90 00 9F [13:10:29]RAPDU: 90 00 [13:10:29]wFMCommunicate OK [13:10:29]wFMCommunicate request_size=10 [13:10:29]MH_SAM_APDU [13:10:29]CAPDU: 80 0D 02 02 05 EF 81 F7 D0 04 [13:10:29]Write to MH i2c: E2 0D 00 D3 59 80 0D 02 02 05 00 EF 81 F7 D0 04 00 00 EB [13:10:29]Write i2c OK [13:10:29]MH_I2C_Read... [13:10:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:29]Read from MH i2c: E2 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: E2 03 00 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: E2 03 00 D3 59 00 90 00 A0 [13:10:29]RAPDU: 90 00 [13:10:29]wFMCommunicate OK [13:10:29]wFMCommunicate request_size=4 [13:10:29]MH_SAM_APDU [13:10:29]CAPDU: 80 0D 03 02 [13:10:29]Write to MH i2c: E2 08 00 D4 59 80 0D 03 02 00 00 00 00 A8 [13:10:29]Write i2c OK [13:10:29]MH_I2C_Read... [13:10:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:29]Read from MH i2c: E2 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: E2 0B 00 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: E2 0B 00 D4 59 00 57 23 FB 90 ED 50 9B 6A 90 00 F0 [13:10:29]RAPDU: 57 23 FB 90 ED 50 9B 6A 90 00 [13:10:29]wFMCommunicate OK [13:10:29]SAM_PROTO_SignData done [13:10:29]FM_MakeSignedData done [13:10:29]CreateOFDProtocolMessage [13:10:29]wFMCommunicate request_size=4 [13:10:29]MH_SAM_APDU [13:10:29]CAPDU: 80 11 00 00 [13:10:29]Write to MH i2c: E2 08 00 D5 59 80 11 00 00 00 00 00 00 A8 [13:10:29]Write i2c OK [13:10:29]MH_I2C_Read... [13:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:29]Read from MH i2c: E2 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: E2 17 00 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: E2 17 00 D5 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FF [13:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:10:29]wFMCommunicate OK [13:10:29]CreateOFDProtocolMessage done [13:10:29]OFDSenderStorePacket 123210 [13:10:29]StoreOFDPacket docnum=123210 [13:10:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 41 B1 07 01 36 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CE C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4A E1 01 00 35 04 06 00 69 EF 81 F7 D0 04 57 23 FB 90 ED 50 9B 6A [13:10:29]CheckFolder [13:10:29]dirname=/storage/ofd_packets [13:10:29]CheckFolder done [13:10:29]ProducePacketName [13:10:29]name=ofd_packets/00123210 [13:10:29]NVStorageSaveData ofd_packets/00123210 [13:10:29]File name is /storage/ofd_packets/00123210 [13:10:29]Write 301 bytes [13:10:29]NVStorageSaveData done [13:10:29]OFDSenderStorePacket done [13:10:29]KKMCreateOFDPacket done [13:10:29]NVStorageSaveData kkm_last_timestamp [13:10:29]File name is /storage/kkm_last_timestamp [13:10:29]Write 4 bytes [13:10:29]NVStorageSaveData done [13:10:29]ExternCall_PrintAddStr [13:10:29]wPrintStart [13:10:29]Write to MH i2c: 01 00 00 D6 59 2F [13:10:29]Write i2c OK [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: 01 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: 01 07 00 [13:10:29]MH_I2C_Read... [13:10:29]Read from MH i2c: 01 07 00 D6 59 00 00 00 00 00 FF 0F 44 [13:10:29]RasterBufferAndPrint [13:10:29]line Счет N : (1)718043 [13:10:29]line ИНН: 02508201610067 [13:10:29]line Контрольно-Кассовый Чек [13:10:29]line ПРОДАЖА [13:10:29]line ТРК (МРК, ГНК) : 21 [13:10:29]line Товар: 2710124500 [13:10:29]line Аи-95-К-5 [13:10:29]line 13.270 * 75.40 [13:10:29]line = 1000.56 [13:10:29]line НДС 12% НСП 1% [13:10:29]line > о реализуемом товаре [13:10:29]line ОКРУГЛЕНИЕ: -0.56 [13:10:29]line ИТОГО: 1000.00 [13:10:29]line Внесено: 1000.00 [13:10:29]line СДАЧА: 0.00 [13:10:29]line НСП 1% : 8.85 [13:10:29]line НДС 12% : 106.25 [13:10:29]line Наличными: 1000.00 [13:10:29]line Безнал.: 0.00 [13:10:29]line Место: АЗС № 64 "Партнер Нефть" [13:10:29]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:10:29]line СНО: Общий режим [13:10:29]line Чек 64 26.11.2024 13:10 [13:10:29]line Смена: 557 ФФД: 1.0 [13:10:29]line ЗНМ: 0300000033 [13:10:29]line РНМ: 0000000000092681 [13:10:29]line Версия ККМ: 001 [13:10:29]line ФМ: 0000000000874881 [13:10:29]line ФД: 123210 [13:10:29]line ФПД: 116477398601732 [13:10:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T131038&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123210&fm=116477398601732&tin=02508201610067®Number=0000000000092681&sum=100000 [13:10:30]OFD Sender: Processing packet 123210 [packets to send 7, broken 6] [13:10:30]ProducePacketName [13:10:30]name=ofd_packets/00123210 [13:10:30]OFD Sender: To server: pG, [13:10:30]CommunicateWithHost lk.salyk.kg:30040 [13:10:30]ConnectInit lk.salyk.kg [13:10:30]written 0, free lines is 4095 [13:10:30]Connected sock=10 [13:10:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 41 B1 07 01 36 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CE C8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4A E1 01 00 35 04 06 00 69 EF 81 F7 D0 04 57 23 FB 90 ED 50 9B 6A [13:10:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 7F 0D 47 00 A4 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4A E1 01 00 F4 03 04 00 91 74 45 67 B6 04 01 00 00 9B 78 32 51 61 A0 BD B2 [13:10:30]CommunicateWithHost err = 0 [13:10:30]CheckOFDResponse [13:10:30]1017 (14) - 77093643461234 [13:10:30]1041 (16) - 0000000000874881 [13:10:30]1040 (4) - 123210 [13:10:30]1012 (4) - 26.11.2024 07:11 [13:10:30]1206 (1) - 0 [13:10:30]OFD Sender: Remove packet 123210 [13:10:30]ProducePacketName [13:10:30]name=ofd_packets/00123210 [13:10:30]NVStorageDeleteData [13:10:30]Write to MH i2c: 01 00 00 01 5A 5B [13:10:30]Write i2c OK [13:10:30]MH_I2C_Read... [13:10:30]Read from MH i2c: 01 [13:10:30]MH_I2C_Read... [13:10:30]Read from MH i2c: 01 07 00 [13:10:30]MH_I2C_Read... [13:10:30]Read from MH i2c: 01 07 00 01 5A 00 00 00 00 00 5C 0C CA [13:10:30]RasterBufferAndPrint [13:10:30]line [13:10:30]line [13:10:30]line [13:10:30]line [13:10:30]line [13:10:30]written 0, free lines is 3167 [13:10:30]MH_Cut [13:10:30]Write to MH i2c: D1 01 00 08 5A 01 34 [13:10:30]Write i2c OK [13:10:30]MH_I2C_Read... [13:10:30]Read from MH i2c: D1 [13:10:30]MH_I2C_Read... [13:10:30]Read from MH i2c: D1 01 00 [13:10:30]MH_I2C_Read... [13:10:30]Read from MH i2c: D1 01 00 08 5A 00 33 [13:10:30]Write to MH i2c: 01 00 00 09 5A 63 [13:10:30]Write i2c OK [13:10:30]MH_I2C_Read... [13:10:30]OFD Sender: No OFD packet to send [13:10:31]*** Cut start [13:10:31]*** Partial cut [13:10:31]*** CUTSNS_PIN = 1 [13:10:31]*** CUTSNS_PIN = 0 [13:10:32]*** Brake cut motor [13:10:32]Read from MH i2c: 01 [13:10:32]MH_I2C_Read... [13:10:32]*** Stop cut motor [13:10:32]*** Cut end [13:10:32]Read from MH i2c: 01 07 00 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: 01 07 00 09 5A 00 00 00 00 00 FF 0F 78 [13:10:32]process_action close_receipt done [13:10:32]requested_data is exist [13:10:32]produce_requested_data [13:10:32]requested_item fm.sn is exist - process it [13:10:32]wFMCommunicate request_size=4 [13:10:32]MH_SAM_APDU [13:10:32]CAPDU: 80 11 00 00 [13:10:32]Write to MH i2c: E2 08 00 0A 5A 80 11 00 00 00 00 00 00 DE [13:10:32]Write i2c OK [13:10:32]MH_I2C_Read... [13:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:32]Read from MH i2c: E2 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: E2 17 00 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: E2 17 00 0A 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 35 [13:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:10:32]wFMCommunicate OK [13:10:32]requested_item fd.num is exist - process it [13:10:32]SAM_PROTO_GetFieldsCounters [13:10:32]wFMCommunicate request_size=4 [13:10:32]MH_SAM_APDU [13:10:32]CAPDU: 80 13 00 00 [13:10:32]Write to MH i2c: E2 08 00 0B 5A 80 13 00 00 00 00 00 00 E1 [13:10:32]Write i2c OK [13:10:32]MH_I2C_Read... [13:10:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:32]Read from MH i2c: E2 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: E2 62 00 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: E2 62 00 0B 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 4A E1 01 00 0E 04 04 00 2D 02 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:10:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 4A E1 01 00 0E 04 04 00 2D 02 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 [13:10:32]wFMCommunicate OK [13:10:32]SAM_PROTO_GetFieldsCounters done [13:10:32]requested_item shift.num is exist - process it [13:10:32]requested_item shift.opened is exist - process it [13:10:32]req_shift_opened [13:10:32]FM_GetShiftState [13:10:32]SAM_PROTO_GetShiftState [13:10:32]wFMCommunicate request_size=4 [13:10:32]MH_SAM_APDU [13:10:32]CAPDU: 80 13 01 00 [13:10:32]Write to MH i2c: E2 08 00 0C 5A 80 13 01 00 00 00 00 00 E3 [13:10:32]Write i2c OK [13:10:32]MH_I2C_Read... [13:10:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:32]Read from MH i2c: E2 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: E2 0E 00 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: E2 0E 00 0C 5A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 44 [13:10:32]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:10:32]wFMCommunicate OK [13:10:32]SAM_PROTO_GetShiftState done [13:10:32]FM_GetShiftState done [13:10:32]req_shift_opened done [13:10:32]requested_item shift.open_date is exist - process it [13:10:32]req_shift_open_date [13:10:32]req_shift_open_date done [13:10:32]produce_requested_data done [13:10:32]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123210,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:10:32]process_action_free close_receipt [13:10:32]json_value_free [13:10:32]json_value_free done [13:10:32]process_json_proto returns [13:10:32]Send response to host [13:10:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123210,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:10:32]free response buf [13:10:32]execute_script done [13:10:32]execute_script returns [13:10:32]free content buf [13:10:32]Sock 7.Close socket [13:10:32]Sock 7.Thread stoped [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:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:22]accept exits with 9 [13:17:22]New connection [13:17:22]New thread 3066580324 created [13:17:22]Thread 3066723684 joined [13:17:22]Waiting for new connection... [13:17:22] Sock 9.Parse request [13:17:22]Sock 9.Check first char [13:17:22]Sock 9.First char is OK [13:17:22]request: POST /json_proto HTTP/1.0 [13:17:22]Method: POST [13:17:22]URL: /json_proto [13:17:22]Method is POST - this is cgi request [13:17:22]url: /json_proto [13:17:22]query_string will be loaded in cgi processing [13:17:22]execute_cgi json_proto POST (null) [13:17:22]execute_cgi path=json_proto method=POST [13:17:22]POST find Content-Length [13:17:22]Host: 172.17.37.4:8080 [13:17:22]Content-Length: 677 [13:17:22]Content-Type: application/json [13:17:22] [13:17:22]POST finish read [13:17:22]Found Content-Length = 677 [13:17:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 8.310, "sum" : 560.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 560.00, "total" : 560.00, "payments": [ { "type": 0, "sum" : 560.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:22]execute_script... [13:17:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 8.310, "sum" : 560.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 560.00, "total" : 560.00, "payments": [ { "type": 0, "sum" : 560.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:22]POST & json_proto [13:17:22]process_json_proto [13:17:22]json parsed OK: [13:17:22]protocol is kg_v1.0 [13:17:22]action value=close_receipt [13:17:22]process_action close_receipt [13:17:22]cmd_close_receipt [13:17:22]MH_GetDate [13:17:22]Write to MH i2c: F0 00 00 0D 5A 56 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: F0 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: F0 09 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: F0 09 00 0D 5A 00 6D CA 45 67 B8 5A 43 67 FE [13:17:22]GetLastDocTimeStamp 1732626638 [13:17:22]current date 1732627053 [13:17:22]FM_GetShiftState [13:17:22]SAM_PROTO_GetShiftState [13:17:22]wFMCommunicate request_size=4 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 13 01 00 [13:17:22]Write to MH i2c: E2 08 00 0E 5A 80 13 01 00 00 00 00 00 E5 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 0E 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 0E 00 0E 5A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 46 [13:17:22]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:17:22]wFMCommunicate OK [13:17:22]SAM_PROTO_GetShiftState done [13:17:22]FM_GetShiftState done [13:17:22]opened in 1732579736 [13:17:22]opened+sec_in_day 1732666136 [13:17:22]quantity*price = 56009 [13:17:22]sum+1 = 56010 [13:17:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 560.00 Внесено: 560.00 СДАЧА: 0.00 НСП 1% : 4.96 НДС 12% : 59.48 Наличными: 560.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 65 26.11.2024 13:17 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123211 ФПД: 224070671796119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T131733&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123211&fm=224070671796119&tin=02508201610067®Number=0000000000092681&sum=56000 [13:17:23]StoreToDocumentArchive [13:17:23]shift 557 fd 123211 [13:17:23]save to /storage/0557/doc_00123211 [13:17:23]save last doc name /storage/0557/doc_00123211 to /storage/kkm_last_doc_name [13:17:23]save OK [13:17:23]Clear old archive folders... [13:17:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:23]tlvbuf is 01F42560 [13:17:23]SAM_PROTO_ClearQueue [13:17:23]wFMCommunicate request_size=4 [13:17:23]MH_SAM_APDU [13:17:23]CAPDU: 80 09 00 00 [13:17:23]Write to MH i2c: E2 08 00 1B 5A 80 09 00 00 00 00 00 00 E7 [13:17:23]Write i2c OK [13:17:23]MH_I2C_Read... [13:17:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:23]Read from MH i2c: E2 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: E2 03 00 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: E2 03 00 1B 5A 00 90 00 E9 [13:17:23]RAPDU: 90 00 [13:17:23]wFMCommunicate OK [13:17:23]SAM_PROTO_ClearQueue done [13:17:23]KKMCreateOFDPacket [13:17:23]OFDProtocolAddRootSTLVToBuf [13:17:23]FM_MakeSignedData [13:17:23]FM_MakeSignedData [13:17:23]SAM_PROTO_SignData [13:17:23]wFMCommunicate request_size=4 [13:17:23]MH_SAM_APDU [13:17:23]CAPDU: 80 0D 01 02 [13:17:23]Write to MH i2c: E2 08 00 1C 5A 80 0D 01 02 00 00 00 00 EF [13:17:23]Write i2c OK [13:17:23]MH_I2C_Read... [13:17:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:23]Read from MH i2c: E2 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: E2 03 00 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: E2 03 00 1C 5A 00 90 00 EA [13:17:23]RAPDU: 90 00 [13:17:23]wFMCommunicate OK [13:17:23]wFMCommunicate request_size=255 [13:17:23]MH_SAM_APDU [13:17:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 76 20 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 C9 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 3C 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 6D CA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4B E1 01 00 35 04 06 00 CB [13:17:23]Write to MH i2c: E2 02 01 1D 5A 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 34 FF 03 08 00 03 76 20 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 C9 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 3C 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 6D CA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4B E1 01 00 35 04 06 00 CB 00 00 67 [13:17:23]Write i2c OK [13:17:23]MH_I2C_Read... [13:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:24]Read from MH i2c: E2 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 03 00 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 03 00 1D 5A 00 90 00 EB [13:17:24]RAPDU: 90 00 [13:17:24]wFMCommunicate OK [13:17:24]wFMCommunicate request_size=10 [13:17:24]MH_SAM_APDU [13:17:24]CAPDU: 80 0D 02 02 05 CA 84 CC 07 97 [13:17:24]Write to MH i2c: E2 0D 00 1E 5A 80 0D 02 02 05 00 CA 84 CC 07 97 00 00 B4 [13:17:24]Write i2c OK [13:17:24]MH_I2C_Read... [13:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:24]Read from MH i2c: E2 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 03 00 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 03 00 1E 5A 00 90 00 EC [13:17:24]RAPDU: 90 00 [13:17:24]wFMCommunicate OK [13:17:24]wFMCommunicate request_size=4 [13:17:24]MH_SAM_APDU [13:17:24]CAPDU: 80 0D 03 02 [13:17:24]Write to MH i2c: E2 08 00 1F 5A 80 0D 03 02 00 00 00 00 F4 [13:17:24]Write i2c OK [13:17:24]MH_I2C_Read... [13:17:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:24]Read from MH i2c: E2 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 0B 00 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 0B 00 1F 5A 00 A2 5C 2A 25 9B FF 66 51 90 00 93 [13:17:24]RAPDU: A2 5C 2A 25 9B FF 66 51 90 00 [13:17:24]wFMCommunicate OK [13:17:24]SAM_PROTO_SignData done [13:17:24]FM_MakeSignedData done [13:17:24]CreateOFDProtocolMessage [13:17:24]wFMCommunicate request_size=4 [13:17:24]MH_SAM_APDU [13:17:24]CAPDU: 80 11 00 00 [13:17:24]Write to MH i2c: E2 08 00 20 5A 80 11 00 00 00 00 00 00 F4 [13:17:24]Write i2c OK [13:17:24]MH_I2C_Read... [13:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:24]Read from MH i2c: E2 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 17 00 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 17 00 20 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 4B [13:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:17:24]wFMCommunicate OK [13:17:24]CreateOFDProtocolMessage done [13:17:24]OFDSenderStorePacket 123211 [13:17:24]StoreOFDPacket docnum=123211 [13:17:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 AC 11 07 01 29 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 76 20 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 C9 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 3C 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 6D CA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4B E1 01 00 35 04 06 00 CB CA 84 CC 07 97 A2 5C 2A 25 9B FF 66 51 [13:17:24]CheckFolder [13:17:24]dirname=/storage/ofd_packets [13:17:24]CheckFolder done [13:17:24]ProducePacketName [13:17:24]name=ofd_packets/00123211 [13:17:24]NVStorageSaveData ofd_packets/00123211 [13:17:24]File name is /storage/ofd_packets/00123211 [13:17:24]Write 301 bytes [13:17:24]NVStorageSaveData done [13:17:24]OFDSenderStorePacket done [13:17:24]KKMCreateOFDPacket done [13:17:24]NVStorageSaveData kkm_last_timestamp [13:17:24]File name is /storage/kkm_last_timestamp [13:17:24]Write 4 bytes [13:17:24]NVStorageSaveData done [13:17:24]ExternCall_PrintAddStr [13:17:24]wPrintStart [13:17:24]Write to MH i2c: 01 00 00 21 5A 7B [13:17:24]Write i2c OK [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: 01 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: 01 07 00 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: 01 07 00 21 5A 00 00 00 00 00 FF 0F 90 [13:17:24]RasterBufferAndPrint [13:17:24]line Счет N : (1)718044 [13:17:24]line ИНН: 02508201610067 [13:17:24]line Контрольно-Кассовый Чек [13:17:24]line ПРОДАЖА [13:17:24]line ТРК (МРК, ГНК) : 12 [13:17:24]line Товар: 2710124130 [13:17:24]line Аи-92-К-4 [13:17:24]line 8.310 * 67.40 [13:17:24]line = 560.09 [13:17:24]line НДС 12% НСП 1% [13:17:24]line > о реализуемом товаре [13:17:24]line ОКРУГЛЕНИЕ: -0.09 [13:17:24]line ИТОГО: 560.00 [13:17:24]line Внесено: 560.00 [13:17:24]line СДАЧА: 0.00 [13:17:24]line НСП 1% : 4.96 [13:17:24]line НДС 12% : 59.48 [13:17:24]line Наличными: 560.00 [13:17:24]line Безнал.: 0.00 [13:17:24]line Место: АЗС № 64 "Партнер Нефть" [13:17:24]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:17:24]line СНО: Общий режим [13:17:24]line Чек 65 26.11.2024 13:17 [13:17:24]line Смена: 557 ФФД: 1.0 [13:17:24]line ЗНМ: 0300000033 [13:17:24]line РНМ: 0000000000092681 [13:17:24]line Версия ККМ: 001 [13:17:24]line ФМ: 0000000000874881 [13:17:24]line ФД: 123211 [13:17:24]line ФПД: 224070671796119 [13:17:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T131733&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123211&fm=224070671796119&tin=02508201610067®Number=0000000000092681&sum=56000 [13:17:24]OFD Sender: Processing packet 123211 [packets to send 7, broken 6] [13:17:24]ProducePacketName [13:17:24]name=ofd_packets/00123211 [13:17:24]OFD Sender: To server: pG, [13:17:24]CommunicateWithHost lk.salyk.kg:30040 [13:17:24]ConnectInit lk.salyk.kg [13:17:24]written 0, free lines is 4095 [13:17:24]Connected sock=10 [13:17:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 AC 11 07 01 29 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 76 20 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 C9 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 3C 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 6D CA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4B E1 01 00 35 04 06 00 CB CA 84 CC 07 97 A2 5C 2A 25 9B FF 66 51 [13:17:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 AD 6E 47 00 C3 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4B E1 01 00 F4 03 04 00 2F 76 45 67 B6 04 01 00 00 9F DF 8F A3 1A 60 F3 F9 [13:17:24]CommunicateWithHost err = 0 [13:17:24]CheckOFDResponse [13:17:24]1017 (14) - 77093643461234 [13:17:24]1041 (16) - 0000000000874881 [13:17:24]1040 (4) - 123211 [13:17:24]1012 (4) - 26.11.2024 07:18 [13:17:24]1206 (1) - 0 [13:17:24]OFD Sender: Remove packet 123211 [13:17:24]ProducePacketName [13:17:24]name=ofd_packets/00123211 [13:17:24]NVStorageDeleteData [13:17:25]Write to MH i2c: 01 00 00 4C 5A A6 [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: 01 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: 01 07 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: 01 07 00 4C 5A 00 00 00 00 00 49 0C 02 [13:17:25]RasterBufferAndPrint [13:17:25]line [13:17:25]line [13:17:25]line [13:17:25]line [13:17:25]line [13:17:25]written 0, free lines is 3149 [13:17:25]MH_Cut [13:17:25]Write to MH i2c: D1 01 00 53 5A 01 7F [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: D1 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: D1 01 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: D1 01 00 53 5A 00 7E [13:17:25]Write to MH i2c: 01 00 00 54 5A AE [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]OFD Sender: No OFD packet to send [13:17:26]*** Cut start [13:17:26]*** Partial cut [13:17:26]*** CUTSNS_PIN = 1 [13:17:26]*** CUTSNS_PIN = 0 [13:17:26]*** Brake cut motor [13:17:27]Read from MH i2c: 01 [13:17:27]MH_I2C_Read... [13:17:27]*** Stop cut motor [13:17:27]*** Cut end [13:17:27]Read from MH i2c: 01 07 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: 01 07 00 54 5A 00 00 00 00 00 FF 0F C3 [13:17:27]process_action close_receipt done [13:17:27]requested_data is exist [13:17:27]produce_requested_data [13:17:27]requested_item fm.sn is exist - process it [13:17:27]wFMCommunicate request_size=4 [13:17:27]MH_SAM_APDU [13:17:27]CAPDU: 80 11 00 00 [13:17:27]Write to MH i2c: E2 08 00 55 5A 80 11 00 00 00 00 00 00 29 [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:27]Read from MH i2c: E2 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 17 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 17 00 55 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 80 [13:17:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:17:27]wFMCommunicate OK [13:17:27]requested_item fd.num is exist - process it [13:17:27]SAM_PROTO_GetFieldsCounters [13:17:27]wFMCommunicate request_size=4 [13:17:27]MH_SAM_APDU [13:17:27]CAPDU: 80 13 00 00 [13:17:27]Write to MH i2c: E2 08 00 56 5A 80 13 00 00 00 00 00 00 2C [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:27]Read from MH i2c: E2 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 62 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 62 00 56 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 4B E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [13:17:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 4B E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:27]wFMCommunicate OK [13:17:27]SAM_PROTO_GetFieldsCounters done [13:17:27]requested_item shift.num is exist - process it [13:17:27]requested_item shift.opened is exist - process it [13:17:27]req_shift_opened [13:17:27]FM_GetShiftState [13:17:27]SAM_PROTO_GetShiftState [13:17:27]wFMCommunicate request_size=4 [13:17:27]MH_SAM_APDU [13:17:27]CAPDU: 80 13 01 00 [13:17:27]Write to MH i2c: E2 08 00 57 5A 80 13 01 00 00 00 00 00 2E [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:27]Read from MH i2c: E2 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 0E 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 0E 00 57 5A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 8F [13:17:27]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:17:27]wFMCommunicate OK [13:17:27]SAM_PROTO_GetShiftState done [13:17:27]FM_GetShiftState done [13:17:27]req_shift_opened done [13:17:27]requested_item shift.open_date is exist - process it [13:17:27]req_shift_open_date [13:17:27]req_shift_open_date done [13:17:27]produce_requested_data done [13:17:27]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123211,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:17:27]process_action_free close_receipt [13:17:27]json_value_free [13:17:27]json_value_free done [13:17:27]process_json_proto returns [13:17:27]Send response to host [13:17:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123211,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:17:27]free response buf [13:17:27]execute_script done [13:17:27]execute_script returns [13:17:27]free content buf [13:17:27]Sock 9.Close socket [13:17:27]Sock 9.Thread stoped [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:37]accept exits with 7 [13:19:37]New connection [13:19:37]New thread 3066723684 created [13:19:37]Thread 3066580324 joined [13:19:37]Waiting for new connection... [13:19:37] Sock 7.Parse request [13:19:37]Sock 7.Check first char [13:19:37]Sock 7.First char is OK [13:19:37]request: POST /json_proto HTTP/1.0 [13:19:37]Method: POST [13:19:37]URL: /json_proto [13:19:37]Method is POST - this is cgi request [13:19:37]url: /json_proto [13:19:37]query_string will be loaded in cgi processing [13:19:37]execute_cgi json_proto POST (null) [13:19:37]execute_cgi path=json_proto method=POST [13:19:37]POST find Content-Length [13:19:37]Host: 172.17.37.4:8080 [13:19:37]Content-Length: 682 [13:19:37]Content-Type: application/json [13:19:37] [13:19:37]POST finish read [13:19:37]Found Content-Length = 682 [13:19:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 13.270, "sum" : 1000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:37]execute_script... [13:19:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 13.270, "sum" : 1000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:37]POST & json_proto [13:19:37]process_json_proto [13:19:37]json parsed OK: [13:19:37]protocol is kg_v1.0 [13:19:37]action value=close_receipt [13:19:37]process_action close_receipt [13:19:37]cmd_close_receipt [13:19:37]MH_GetDate [13:19:37]Write to MH i2c: F0 00 00 58 5A A1 [13:19:37]Write i2c OK [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: F0 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: F0 09 00 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: F0 09 00 58 5A 00 F4 CA 45 67 B8 5A 43 67 D0 [13:19:37]GetLastDocTimeStamp 1732627053 [13:19:37]current date 1732627188 [13:19:37]FM_GetShiftState [13:19:37]SAM_PROTO_GetShiftState [13:19:37]wFMCommunicate request_size=4 [13:19:37]MH_SAM_APDU [13:19:37]CAPDU: 80 13 01 00 [13:19:37]Write to MH i2c: E2 08 00 59 5A 80 13 01 00 00 00 00 00 30 [13:19:37]Write i2c OK [13:19:37]MH_I2C_Read... [13:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:37]Read from MH i2c: E2 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: E2 0E 00 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: E2 0E 00 59 5A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 91 [13:19:37]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:19:37]wFMCommunicate OK [13:19:37]SAM_PROTO_GetShiftState done [13:19:37]FM_GetShiftState done [13:19:37]opened in 1732579736 [13:19:37]opened+sec_in_day 1732666136 [13:19:37]quantity*price = 100055 [13:19:37]sum+1 = 100057 [13:19:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 66 26.11.2024 13:19 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123212 ФПД: 155939566228808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T131948&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123212&fm=155939566228808&tin=02508201610067®Number=0000000000092681&sum=100000 [13:19:38]StoreToDocumentArchive [13:19:38]shift 557 fd 123212 [13:19:38]save to /storage/0557/doc_00123212 [13:19:38]save last doc name /storage/0557/doc_00123212 to /storage/kkm_last_doc_name [13:19:38]save OK [13:19:38]Clear old archive folders... [13:19:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:38]tlvbuf is 020D30A0 [13:19:38]SAM_PROTO_ClearQueue [13:19:38]wFMCommunicate request_size=4 [13:19:38]MH_SAM_APDU [13:19:38]CAPDU: 80 09 00 00 [13:19:38]Write to MH i2c: E2 08 00 66 5A 80 09 00 00 00 00 00 00 32 [13:19:38]Write i2c OK [13:19:38]MH_I2C_Read... [13:19:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:38]Read from MH i2c: E2 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: E2 03 00 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: E2 03 00 66 5A 00 90 00 34 [13:19:38]RAPDU: 90 00 [13:19:38]wFMCommunicate OK [13:19:38]SAM_PROTO_ClearQueue done [13:19:38]KKMCreateOFDPacket [13:19:38]OFDProtocolAddRootSTLVToBuf [13:19:38]FM_MakeSignedData [13:19:38]FM_MakeSignedData [13:19:38]SAM_PROTO_SignData [13:19:38]wFMCommunicate request_size=4 [13:19:38]MH_SAM_APDU [13:19:38]CAPDU: 80 0D 01 02 [13:19:38]Write to MH i2c: E2 08 00 67 5A 80 0D 01 02 00 00 00 00 3A [13:19:38]Write i2c OK [13:19:38]MH_I2C_Read... [13:19:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:38]Read from MH i2c: E2 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: E2 03 00 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: E2 03 00 67 5A 00 90 00 35 [13:19:38]RAPDU: 90 00 [13:19:38]wFMCommunicate OK [13:19:38]wFMCommunicate request_size=255 [13:19:38]MH_SAM_APDU [13:19:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F4 CA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4C E1 01 00 35 04 06 00 8D [13:19:38]Write to MH i2c: E2 02 01 68 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F4 CA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4C E1 01 00 35 04 06 00 8D 00 00 4C [13:19:38]Write i2c OK [13:19:38]MH_I2C_Read... [13:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:39]Read from MH i2c: E2 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 68 5A 00 90 00 36 [13:19:39]RAPDU: 90 00 [13:19:39]wFMCommunicate OK [13:19:39]wFMCommunicate request_size=10 [13:19:39]MH_SAM_APDU [13:19:39]CAPDU: 80 0D 02 02 05 D3 82 73 95 48 [13:19:39]Write to MH i2c: E2 0D 00 69 5A 80 0D 02 02 05 00 D3 82 73 95 48 00 00 EC [13:19:39]Write i2c OK [13:19:39]MH_I2C_Read... [13:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:39]Read from MH i2c: E2 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 69 5A 00 90 00 37 [13:19:39]RAPDU: 90 00 [13:19:39]wFMCommunicate OK [13:19:39]wFMCommunicate request_size=4 [13:19:39]MH_SAM_APDU [13:19:39]CAPDU: 80 0D 03 02 [13:19:39]Write to MH i2c: E2 08 00 6A 5A 80 0D 03 02 00 00 00 00 3F [13:19:39]Write i2c OK [13:19:39]MH_I2C_Read... [13:19:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:39]Read from MH i2c: E2 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 0B 00 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 0B 00 6A 5A 00 36 65 93 D1 2D 14 19 D1 90 00 6A [13:19:39]RAPDU: 36 65 93 D1 2D 14 19 D1 90 00 [13:19:39]wFMCommunicate OK [13:19:39]SAM_PROTO_SignData done [13:19:39]FM_MakeSignedData done [13:19:39]CreateOFDProtocolMessage [13:19:39]wFMCommunicate request_size=4 [13:19:39]MH_SAM_APDU [13:19:39]CAPDU: 80 11 00 00 [13:19:39]Write to MH i2c: E2 08 00 6B 5A 80 11 00 00 00 00 00 00 3F [13:19:39]Write i2c OK [13:19:39]MH_I2C_Read... [13:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:39]Read from MH i2c: E2 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 17 00 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 17 00 6B 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 96 [13:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:19:39]wFMCommunicate OK [13:19:39]CreateOFDProtocolMessage done [13:19:39]OFDSenderStorePacket 123212 [13:19:39]StoreOFDPacket docnum=123212 [13:19:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 33 66 07 01 3C 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F4 CA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4C E1 01 00 35 04 06 00 8D D3 82 73 95 48 36 65 93 D1 2D 14 19 D1 [13:19:39]CheckFolder [13:19:39]dirname=/storage/ofd_packets [13:19:39]CheckFolder done [13:19:39]ProducePacketName [13:19:39]name=ofd_packets/00123212 [13:19:39]NVStorageSaveData ofd_packets/00123212 [13:19:39]File name is /storage/ofd_packets/00123212 [13:19:39]Write 301 bytes [13:19:39]NVStorageSaveData done [13:19:39]OFDSenderStorePacket done [13:19:39]KKMCreateOFDPacket done [13:19:39]NVStorageSaveData kkm_last_timestamp [13:19:39]File name is /storage/kkm_last_timestamp [13:19:39]Write 4 bytes [13:19:39]NVStorageSaveData done [13:19:39]ExternCall_PrintAddStr [13:19:39]wPrintStart [13:19:39]Write to MH i2c: 01 00 00 6C 5A C6 [13:19:39]Write i2c OK [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: 01 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: 01 07 00 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: 01 07 00 6C 5A 00 00 00 00 00 FF 0F DB [13:19:39]RasterBufferAndPrint [13:19:39]line Счет N : (1)718045 [13:19:39]line ИНН: 02508201610067 [13:19:39]line Контрольно-Кассовый Чек [13:19:39]line ПРОДАЖА [13:19:39]line ТРК (МРК, ГНК) : 11 [13:19:39]line Товар: 2710124500 [13:19:39]line Аи-95-К-5 [13:19:39]line 13.270 * 75.40 [13:19:39]line = 1000.56 [13:19:39]line НДС 12% НСП 1% [13:19:39]line > о реализуемом товаре [13:19:39]line ОКРУГЛЕНИЕ: -0.56 [13:19:39]line ИТОГО: 1000.00 [13:19:39]line Внесено: 1000.00 [13:19:39]line СДАЧА: 0.00 [13:19:39]line НСП 1% : 8.85 [13:19:39]line НДС 12% : 106.25 [13:19:39]line Наличными: 1000.00 [13:19:39]line Безнал.: 0.00 [13:19:39]line Место: АЗС № 64 "Партнер Нефть" [13:19:39]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:19:39]line СНО: Общий режим [13:19:39]line Чек 66 26.11.2024 13:19 [13:19:39]line Смена: 557 ФФД: 1.0 [13:19:39]line ЗНМ: 0300000033 [13:19:39]line РНМ: 0000000000092681 [13:19:39]line Версия ККМ: 001 [13:19:39]line ФМ: 0000000000874881 [13:19:39]line ФД: 123212 [13:19:39]line ФПД: 155939566228808 [13:19:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T131948&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123212&fm=155939566228808&tin=02508201610067®Number=0000000000092681&sum=100000 [13:19:39]OFD Sender: Processing packet 123212 [packets to send 7, broken 6] [13:19:39]ProducePacketName [13:19:39]name=ofd_packets/00123212 [13:19:39]OFD Sender: To server: pG, [13:19:39]CommunicateWithHost lk.salyk.kg:30040 [13:19:39]ConnectInit lk.salyk.kg [13:19:39]written 0, free lines is 4095 [13:19:39]Connected sock=10 [13:19:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 33 66 07 01 3C 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 D8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F4 CA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4C E1 01 00 35 04 06 00 8D D3 82 73 95 48 36 65 93 D1 2D 14 19 D1 [13:19:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 F5 0C 47 00 62 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4C E1 01 00 F4 03 04 00 B6 76 45 67 B6 04 01 00 00 3A A1 45 B8 4D 80 4F C3 [13:19:39]CommunicateWithHost err = 0 [13:19:39]CheckOFDResponse [13:19:39]1017 (14) - 77093643461234 [13:19:39]1041 (16) - 0000000000874881 [13:19:39]1040 (4) - 123212 [13:19:39]1012 (4) - 26.11.2024 07:20 [13:19:39]1206 (1) - 0 [13:19:39]OFD Sender: Remove packet 123212 [13:19:39]ProducePacketName [13:19:39]name=ofd_packets/00123212 [13:19:39]NVStorageDeleteData [13:19:40]Write to MH i2c: 01 00 00 97 5A F1 [13:19:40]Write i2c OK [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: 01 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: 01 07 00 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: 01 07 00 97 5A 00 00 00 00 00 57 0C 5B [13:19:40]RasterBufferAndPrint [13:19:40]line [13:19:40]line [13:19:40]line [13:19:40]line [13:19:40]line [13:19:40]written 0, free lines is 3164 [13:19:40]MH_Cut [13:19:40]Write to MH i2c: D1 01 00 9E 5A 01 CA [13:19:40]Write i2c OK [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: D1 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: D1 01 00 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: D1 01 00 9E 5A 00 C9 [13:19:40]Write to MH i2c: 01 00 00 9F 5A F9 [13:19:40]Write i2c OK [13:19:40]MH_I2C_Read... [13:19:40]OFD Sender: No OFD packet to send [13:19:41]*** Cut start [13:19:41]*** Partial cut [13:19:41]*** CUTSNS_PIN = 1 [13:19:41]*** CUTSNS_PIN = 0 [13:19:41]*** Brake cut motor [13:19:42]Read from MH i2c: 01 [13:19:42]MH_I2C_Read... [13:19:42]*** Stop cut motor [13:19:42]*** Cut end [13:19:42]Read from MH i2c: 01 07 00 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: 01 07 00 9F 5A 00 00 00 00 00 FF 0F 0E [13:19:42]process_action close_receipt done [13:19:42]requested_data is exist [13:19:42]produce_requested_data [13:19:42]requested_item fm.sn is exist - process it [13:19:42]wFMCommunicate request_size=4 [13:19:42]MH_SAM_APDU [13:19:42]CAPDU: 80 11 00 00 [13:19:42]Write to MH i2c: E2 08 00 A0 5A 80 11 00 00 00 00 00 00 74 [13:19:42]Write i2c OK [13:19:42]MH_I2C_Read... [13:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:42]Read from MH i2c: E2 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: E2 17 00 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: E2 17 00 A0 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CB [13:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:19:42]wFMCommunicate OK [13:19:42]requested_item fd.num is exist - process it [13:19:42]SAM_PROTO_GetFieldsCounters [13:19:42]wFMCommunicate request_size=4 [13:19:42]MH_SAM_APDU [13:19:42]CAPDU: 80 13 00 00 [13:19:42]Write to MH i2c: E2 08 00 A1 5A 80 13 00 00 00 00 00 00 77 [13:19:42]Write i2c OK [13:19:42]MH_I2C_Read... [13:19:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:42]Read from MH i2c: E2 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: E2 62 00 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: E2 62 00 A1 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 4C E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [13:19:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 4C E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:42]wFMCommunicate OK [13:19:42]SAM_PROTO_GetFieldsCounters done [13:19:42]requested_item shift.num is exist - process it [13:19:42]requested_item shift.opened is exist - process it [13:19:42]req_shift_opened [13:19:42]FM_GetShiftState [13:19:42]SAM_PROTO_GetShiftState [13:19:42]wFMCommunicate request_size=4 [13:19:42]MH_SAM_APDU [13:19:42]CAPDU: 80 13 01 00 [13:19:42]Write to MH i2c: E2 08 00 A2 5A 80 13 01 00 00 00 00 00 79 [13:19:42]Write i2c OK [13:19:42]MH_I2C_Read... [13:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:42]Read from MH i2c: E2 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: E2 0E 00 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: E2 0E 00 A2 5A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 DA [13:19:42]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:19:42]wFMCommunicate OK [13:19:42]SAM_PROTO_GetShiftState done [13:19:42]FM_GetShiftState done [13:19:42]req_shift_opened done [13:19:42]requested_item shift.open_date is exist - process it [13:19:42]req_shift_open_date [13:19:42]req_shift_open_date done [13:19:42]produce_requested_data done [13:19:42]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123212,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:19:42]process_action_free close_receipt [13:19:42]json_value_free [13:19:42]json_value_free done [13:19:42]process_json_proto returns [13:19:42]Send response to host [13:19:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123212,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:19:42]free response buf [13:19:42]execute_script done [13:19:42]execute_script returns [13:19:42]free content buf [13:19:42]Sock 7.Close socket [13:19:42]Sock 7.Thread stoped [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:48]accept exits with 9 [13:20:48]New connection [13:20:48]New thread 3066580324 created [13:20:48]Thread 3066723684 joined [13:20:48]Waiting for new connection... [13:20:48] Sock 9.Parse request [13:20:48]Sock 9.Check first char [13:20:48]Sock 9.First char is OK [13:20:48]request: POST /json_proto HTTP/1.0 [13:20:48]Method: POST [13:20:48]URL: /json_proto [13:20:48]Method is POST - this is cgi request [13:20:48]url: /json_proto [13:20:48]query_string will be loaded in cgi processing [13:20:48]execute_cgi json_proto POST (null) [13:20:48]execute_cgi path=json_proto method=POST [13:20:48]POST find Content-Length [13:20:48]Host: 172.17.37.4:8080 [13:20:48]Content-Length: 677 [13:20:48]Content-Type: application/json [13:20:48] [13:20:48]POST finish read [13:20:48]Found Content-Length = 677 [13:20:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.710, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:48]execute_script... [13:20:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.710, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:48]POST & json_proto [13:20:48]process_json_proto [13:20:48]json parsed OK: [13:20:48]protocol is kg_v1.0 [13:20:48]action value=close_receipt [13:20:48]process_action close_receipt [13:20:48]cmd_close_receipt [13:20:48]MH_GetDate [13:20:48]Write to MH i2c: F0 00 00 A3 5A EC [13:20:48]Write i2c OK [13:20:48]MH_I2C_Read... [13:20:48]Read from MH i2c: F0 [13:20:48]MH_I2C_Read... [13:20:48]Read from MH i2c: F0 09 00 [13:20:48]MH_I2C_Read... [13:20:48]Read from MH i2c: F0 09 00 A3 5A 00 3B CB 45 67 B8 5A 43 67 63 [13:20:48]GetLastDocTimeStamp 1732627188 [13:20:48]current date 1732627259 [13:20:48]FM_GetShiftState [13:20:48]SAM_PROTO_GetShiftState [13:20:48]wFMCommunicate request_size=4 [13:20:48]MH_SAM_APDU [13:20:48]CAPDU: 80 13 01 00 [13:20:48]Write to MH i2c: E2 08 00 A4 5A 80 13 01 00 00 00 00 00 7B [13:20:48]Write i2c OK [13:20:48]MH_I2C_Read... [13:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:48]Read from MH i2c: E2 [13:20:48]MH_I2C_Read... [13:20:48]Read from MH i2c: E2 0E 00 [13:20:48]MH_I2C_Read... [13:20:48]Read from MH i2c: E2 0E 00 A4 5A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 DC [13:20:48]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:20:48]wFMCommunicate OK [13:20:48]SAM_PROTO_GetShiftState done [13:20:48]FM_GetShiftState done [13:20:48]opened in 1732579736 [13:20:48]opened+sec_in_day 1732666136 [13:20:48]quantity*price = 25005 [13:20:48]sum+1 = 25006 [13:20:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 67 26.11.2024 13:20 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123213 ФПД: 75690472608184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T132059&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123213&fm=75690472608184&tin=02508201610067®Number=0000000000092681&sum=25000 [13:20:49]StoreToDocumentArchive [13:20:49]shift 557 fd 123213 [13:20:49]save to /storage/0557/doc_00123213 [13:20:49]save last doc name /storage/0557/doc_00123213 to /storage/kkm_last_doc_name [13:20:49]save OK [13:20:49]Clear old archive folders... [13:20:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:20:49]tlvbuf is 01F46C00 [13:20:49]SAM_PROTO_ClearQueue [13:20:49]wFMCommunicate request_size=4 [13:20:49]MH_SAM_APDU [13:20:49]CAPDU: 80 09 00 00 [13:20:49]Write to MH i2c: E2 08 00 B1 5A 80 09 00 00 00 00 00 00 7D [13:20:49]Write i2c OK [13:20:49]MH_I2C_Read... [13:20:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:50]Read from MH i2c: E2 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 B1 5A 00 90 00 7F [13:20:50]RAPDU: 90 00 [13:20:50]wFMCommunicate OK [13:20:50]SAM_PROTO_ClearQueue done [13:20:50]KKMCreateOFDPacket [13:20:50]OFDProtocolAddRootSTLVToBuf [13:20:50]FM_MakeSignedData [13:20:50]FM_MakeSignedData [13:20:50]SAM_PROTO_SignData [13:20:50]wFMCommunicate request_size=4 [13:20:50]MH_SAM_APDU [13:20:50]CAPDU: 80 0D 01 02 [13:20:50]Write to MH i2c: E2 08 00 B2 5A 80 0D 01 02 00 00 00 00 85 [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:50]Read from MH i2c: E2 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 B2 5A 00 90 00 80 [13:20:50]RAPDU: 90 00 [13:20:50]wFMCommunicate OK [13:20:50]wFMCommunicate request_size=255 [13:20:50]MH_SAM_APDU [13:20:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 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 43 00 00 00 F4 03 04 00 3B CB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4D E1 01 00 35 04 06 00 44 [13:20:50]Write to MH i2c: E2 02 01 B3 5A 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 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 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 43 00 00 00 F4 03 04 00 3B CB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4D E1 01 00 35 04 06 00 44 00 00 8A [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:50]Read from MH i2c: E2 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 B3 5A 00 90 00 81 [13:20:50]RAPDU: 90 00 [13:20:50]wFMCommunicate OK [13:20:50]wFMCommunicate request_size=10 [13:20:50]MH_SAM_APDU [13:20:50]CAPDU: 80 0D 02 02 05 D7 0F BB 91 B8 [13:20:50]Write to MH i2c: E2 0D 00 B4 5A 80 0D 02 02 05 00 D7 0F BB 91 B8 00 00 7C [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:50]Read from MH i2c: E2 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 B4 5A 00 90 00 82 [13:20:50]RAPDU: 90 00 [13:20:50]wFMCommunicate OK [13:20:50]wFMCommunicate request_size=4 [13:20:50]MH_SAM_APDU [13:20:50]CAPDU: 80 0D 03 02 [13:20:50]Write to MH i2c: E2 08 00 B5 5A 80 0D 03 02 00 00 00 00 8A [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:50]Read from MH i2c: E2 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 0B 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 0B 00 B5 5A 00 C3 F7 BA D5 28 ED AC 66 90 00 FB [13:20:50]RAPDU: C3 F7 BA D5 28 ED AC 66 90 00 [13:20:50]wFMCommunicate OK [13:20:50]SAM_PROTO_SignData done [13:20:50]FM_MakeSignedData done [13:20:50]CreateOFDProtocolMessage [13:20:50]wFMCommunicate request_size=4 [13:20:50]MH_SAM_APDU [13:20:50]CAPDU: 80 11 00 00 [13:20:50]Write to MH i2c: E2 08 00 B6 5A 80 11 00 00 00 00 00 00 8A [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:50]Read from MH i2c: E2 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 17 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 17 00 B6 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E1 [13:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:20:50]wFMCommunicate OK [13:20:50]CreateOFDProtocolMessage done [13:20:50]OFDSenderStorePacket 123213 [13:20:50]StoreOFDPacket docnum=123213 [13:20:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DE 56 07 01 AC 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 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 43 00 00 00 F4 03 04 00 3B CB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4D E1 01 00 35 04 06 00 44 D7 0F BB 91 B8 C3 F7 BA D5 28 ED AC 66 [13:20:50]CheckFolder [13:20:50]dirname=/storage/ofd_packets [13:20:50]CheckFolder done [13:20:50]ProducePacketName [13:20:50]name=ofd_packets/00123213 [13:20:50]NVStorageSaveData ofd_packets/00123213 [13:20:50]File name is /storage/ofd_packets/00123213 [13:20:50]Write 301 bytes [13:20:50]NVStorageSaveData done [13:20:50]OFDSenderStorePacket done [13:20:50]KKMCreateOFDPacket done [13:20:50]NVStorageSaveData kkm_last_timestamp [13:20:50]File name is /storage/kkm_last_timestamp [13:20:50]Write 4 bytes [13:20:50]NVStorageSaveData done [13:20:50]ExternCall_PrintAddStr [13:20:50]wPrintStart [13:20:50]Write to MH i2c: 01 00 00 B7 5A 11 [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: 01 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: 01 07 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: 01 07 00 B7 5A 00 00 00 00 00 FF 0F 26 [13:20:50]RasterBufferAndPrint [13:20:50]line Счет N : (1)718046 [13:20:50]line ИНН: 02508201610067 [13:20:50]line Контрольно-Кассовый Чек [13:20:50]line ПРОДАЖА [13:20:50]line ТРК (МРК, ГНК) : 22 [13:20:50]line Товар: 2710124130 [13:20:50]line Аи-92-К-4 [13:20:50]line 3.710 * 67.40 [13:20:50]line = 250.05 [13:20:50]line НДС 12% НСП 1% [13:20:50]line > о реализуемом товаре [13:20:50]line ОКРУГЛЕНИЕ: -0.05 [13:20:50]line ИТОГО: 250.00 [13:20:50]line Внесено: 250.00 [13:20:50]line СДАЧА: 0.00 [13:20:50]line НСП 1% : 2.21 [13:20:50]line НДС 12% : 26.55 [13:20:50]line Наличными: 250.00 [13:20:50]line Безнал.: 0.00 [13:20:50]line Место: АЗС № 64 "Партнер Нефть" [13:20:50]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:20:50]line СНО: Общий режим [13:20:50]line Чек 67 26.11.2024 13:20 [13:20:50]line Смена: 557 ФФД: 1.0 [13:20:50]line ЗНМ: 0300000033 [13:20:50]line РНМ: 0000000000092681 [13:20:50]line Версия ККМ: 001 [13:20:50]line ФМ: 0000000000874881 [13:20:50]line ФД: 123213 [13:20:50]line ФПД: 75690472608184 [13:20:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T132059&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123213&fm=75690472608184&tin=02508201610067®Number=0000000000092681&sum=25000 [13:20:50]OFD Sender: Processing packet 123213 [packets to send 7, broken 6] [13:20:50]ProducePacketName [13:20:50]name=ofd_packets/00123213 [13:20:50]OFD Sender: To server: pG, [13:20:50]CommunicateWithHost lk.salyk.kg:30040 [13:20:50]ConnectInit lk.salyk.kg [13:20:50]written 0, free lines is 4095 [13:20:50]Connected sock=10 [13:20:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DE 56 07 01 AC 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 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 43 00 00 00 F4 03 04 00 3B CB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4D E1 01 00 35 04 06 00 44 D7 0F BB 91 B8 C3 F7 BA D5 28 ED AC 66 [13:20:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 78 69 47 00 18 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4D E1 01 00 F4 03 04 00 FE 76 45 67 B6 04 01 00 00 57 1E 33 D6 22 16 6B 7D [13:20:51]CommunicateWithHost err = 0 [13:20:51]CheckOFDResponse [13:20:51]1017 (14) - 77093643461234 [13:20:51]1041 (16) - 0000000000874881 [13:20:51]1040 (4) - 123213 [13:20:51]1012 (4) - 26.11.2024 07:21 [13:20:51]1206 (1) - 0 [13:20:51]OFD Sender: Remove packet 123213 [13:20:51]ProducePacketName [13:20:51]name=ofd_packets/00123213 [13:20:51]NVStorageDeleteData [13:20:51]Write to MH i2c: 01 00 00 E2 5A 3C [13:20:51]Write i2c OK [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: 01 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: 01 07 00 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: 01 07 00 E2 5A 00 00 00 00 00 47 0C 96 [13:20:51]RasterBufferAndPrint [13:20:51]line [13:20:51]line [13:20:51]line [13:20:51]line [13:20:51]line [13:20:51]written 0, free lines is 3148 [13:20:51]MH_Cut [13:20:51]Write to MH i2c: D1 01 00 E9 5A 01 15 [13:20:51]Write i2c OK [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: D1 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: D1 01 00 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: D1 01 00 E9 5A 00 14 [13:20:51]Write to MH i2c: 01 00 00 EA 5A 44 [13:20:51]Write i2c OK [13:20:51]MH_I2C_Read... [13:20:51]OFD Sender: No OFD packet to send [13:20:52]*** Cut start [13:20:52]*** Partial cut [13:20:52]*** CUTSNS_PIN = 1 [13:20:52]*** CUTSNS_PIN = 0 [13:20:52]*** Brake cut motor [13:20:53]Read from MH i2c: 01 [13:20:53]MH_I2C_Read... [13:20:53]*** Stop cut motor [13:20:53]*** Cut end [13:20:53]Read from MH i2c: 01 07 00 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: 01 07 00 EA 5A 00 00 00 00 00 FF 0F 59 [13:20:53]process_action close_receipt done [13:20:53]requested_data is exist [13:20:53]produce_requested_data [13:20:53]requested_item fm.sn is exist - process it [13:20:53]wFMCommunicate request_size=4 [13:20:53]MH_SAM_APDU [13:20:53]CAPDU: 80 11 00 00 [13:20:53]Write to MH i2c: E2 08 00 EB 5A 80 11 00 00 00 00 00 00 BF [13:20:53]Write i2c OK [13:20:53]MH_I2C_Read... [13:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:53]Read from MH i2c: E2 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: E2 17 00 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: E2 17 00 EB 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 16 [13:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:20:53]wFMCommunicate OK [13:20:53]requested_item fd.num is exist - process it [13:20:53]SAM_PROTO_GetFieldsCounters [13:20:53]wFMCommunicate request_size=4 [13:20:53]MH_SAM_APDU [13:20:53]CAPDU: 80 13 00 00 [13:20:53]Write to MH i2c: E2 08 00 EC 5A 80 13 00 00 00 00 00 00 C2 [13:20:53]Write i2c OK [13:20:53]MH_I2C_Read... [13:20:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:53]Read from MH i2c: E2 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: E2 62 00 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: E2 62 00 EC 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 4D E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [13:20:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 4D E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:20:53]wFMCommunicate OK [13:20:53]SAM_PROTO_GetFieldsCounters done [13:20:53]requested_item shift.num is exist - process it [13:20:53]requested_item shift.opened is exist - process it [13:20:53]req_shift_opened [13:20:53]FM_GetShiftState [13:20:53]SAM_PROTO_GetShiftState [13:20:53]wFMCommunicate request_size=4 [13:20:53]MH_SAM_APDU [13:20:53]CAPDU: 80 13 01 00 [13:20:53]Write to MH i2c: E2 08 00 ED 5A 80 13 01 00 00 00 00 00 C4 [13:20:53]Write i2c OK [13:20:53]MH_I2C_Read... [13:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:53]Read from MH i2c: E2 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: E2 0E 00 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: E2 0E 00 ED 5A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 25 [13:20:53]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:20:53]wFMCommunicate OK [13:20:53]SAM_PROTO_GetShiftState done [13:20:53]FM_GetShiftState done [13:20:53]req_shift_opened done [13:20:53]requested_item shift.open_date is exist - process it [13:20:53]req_shift_open_date [13:20:53]req_shift_open_date done [13:20:53]produce_requested_data done [13:20:53]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123213,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:20:53]process_action_free close_receipt [13:20:53]json_value_free [13:20:53]json_value_free done [13:20:53]process_json_proto returns [13:20:53]Send response to host [13:20:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123213,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:20:53]free response buf [13:20:53]execute_script done [13:20:53]execute_script returns [13:20:53]free content buf [13:20:53]Sock 9.Close socket [13:20:53]Sock 9.Thread stoped [13:20:56]OFD Sender: No OFD packet to send [13:21:01]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:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:49]accept exits with 7 [13:28:49]New connection [13:28:49]New thread 3066723684 created [13:28:49]Thread 3066580324 joined [13:28:49]Waiting for new connection... [13:28:49] Sock 7.Parse request [13:28:49]Sock 7.Check first char [13:28:49]Sock 7.First char is OK [13:28:49]request: POST /json_proto HTTP/1.0 [13:28:49]Method: POST [13:28:49]URL: /json_proto [13:28:49]Method is POST - this is cgi request [13:28:49]url: /json_proto [13:28:49]query_string will be loaded in cgi processing [13:28:49]execute_cgi json_proto POST (null) [13:28:49]execute_cgi path=json_proto method=POST [13:28:49]POST find Content-Length [13:28:49]Host: 172.17.37.4:8080 [13:28:49]Content-Length: 682 [13:28:49]Content-Type: application/json [13:28:49] [13:28:49]POST finish read [13:28:49]Found Content-Length = 682 [13:28:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:49]execute_script... [13:28:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:49]POST & json_proto [13:28:49]process_json_proto [13:28:49]json parsed OK: [13:28:49]protocol is kg_v1.0 [13:28:49]action value=close_receipt [13:28:49]process_action close_receipt [13:28:49]cmd_close_receipt [13:28:49]MH_GetDate [13:28:49]Write to MH i2c: F0 00 00 EE 5A 37 [13:28:49]Write i2c OK [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: F0 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: F0 09 00 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: F0 09 00 EE 5A 00 1C CD 45 67 B8 5A 43 67 91 [13:28:49]GetLastDocTimeStamp 1732627259 [13:28:49]current date 1732627740 [13:28:49]FM_GetShiftState [13:28:49]SAM_PROTO_GetShiftState [13:28:49]wFMCommunicate request_size=4 [13:28:49]MH_SAM_APDU [13:28:49]CAPDU: 80 13 01 00 [13:28:49]Write to MH i2c: E2 08 00 EF 5A 80 13 01 00 00 00 00 00 C6 [13:28:49]Write i2c OK [13:28:49]MH_I2C_Read... [13:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:49]Read from MH i2c: E2 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: E2 0E 00 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: E2 0E 00 EF 5A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 27 [13:28:49]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:28:49]wFMCommunicate OK [13:28:49]SAM_PROTO_GetShiftState done [13:28:49]FM_GetShiftState done [13:28:49]opened in 1732579736 [13:28:49]opened+sec_in_day 1732666136 [13:28:49]quantity*price = 100021 [13:28:49]sum+1 = 100023 [13:28:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 68 26.11.2024 13:29 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123214 ФПД: 249665392453344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T132900&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123214&fm=249665392453344&tin=02508201610067®Number=0000000000092681&sum=100000 [13:28:50]StoreToDocumentArchive [13:28:50]shift 557 fd 123214 [13:28:50]save to /storage/0557/doc_00123214 [13:28:50]save last doc name /storage/0557/doc_00123214 to /storage/kkm_last_doc_name [13:28:50]save OK [13:28:50]Clear old archive folders... [13:28:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:28:50]tlvbuf is 01FBE960 [13:28:50]SAM_PROTO_ClearQueue [13:28:50]wFMCommunicate request_size=4 [13:28:50]MH_SAM_APDU [13:28:50]CAPDU: 80 09 00 00 [13:28:50]Write to MH i2c: E2 08 00 FC 5A 80 09 00 00 00 00 00 00 C8 [13:28:50]Write i2c OK [13:28:50]MH_I2C_Read... [13:28:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:50]Read from MH i2c: E2 [13:28:50]MH_I2C_Read... [13:28:50]Read from MH i2c: E2 03 00 [13:28:50]MH_I2C_Read... [13:28:50]Read from MH i2c: E2 03 00 FC 5A 00 90 00 CA [13:28:50]RAPDU: 90 00 [13:28:50]wFMCommunicate OK [13:28:50]SAM_PROTO_ClearQueue done [13:28:50]KKMCreateOFDPacket [13:28:50]OFDProtocolAddRootSTLVToBuf [13:28:50]FM_MakeSignedData [13:28:50]FM_MakeSignedData [13:28:50]SAM_PROTO_SignData [13:28:50]wFMCommunicate request_size=4 [13:28:50]MH_SAM_APDU [13:28:50]CAPDU: 80 0D 01 02 [13:28:50]Write to MH i2c: E2 08 00 FD 5A 80 0D 01 02 00 00 00 00 D0 [13:28:50]Write i2c OK [13:28:50]MH_I2C_Read... [13:28:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:50]Read from MH i2c: E2 [13:28:50]MH_I2C_Read... [13:28:50]Read from MH i2c: E2 03 00 [13:28:50]MH_I2C_Read... [13:28:50]Read from MH i2c: E2 03 00 FD 5A 00 90 00 CB [13:28:50]RAPDU: 90 00 [13:28:50]wFMCommunicate OK [13:28:50]wFMCommunicate request_size=255 [13:28:50]MH_SAM_APDU [13:28:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 1C CD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4E E1 01 00 35 04 06 00 E3 [13:28:50]Write to MH i2c: E2 02 01 FE 5A 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 1C CD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4E E1 01 00 35 04 06 00 E3 00 00 42 [13:28:50]Write i2c OK [13:28:50]MH_I2C_Read... [13:28:51]Read from MH i2c: E2 [13:28:51]MH_I2C_Read... [13:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:51]Read from MH i2c: E2 03 00 [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: E2 03 00 FE 5A 00 90 00 CC [13:28:51]RAPDU: 90 00 [13:28:51]wFMCommunicate OK [13:28:51]wFMCommunicate request_size=10 [13:28:51]MH_SAM_APDU [13:28:51]CAPDU: 80 0D 02 02 05 11 C1 07 A6 E0 [13:28:51]Write to MH i2c: E2 0D 00 FF 5A 80 0D 02 02 05 00 11 C1 07 A6 E0 00 00 3C [13:28:51]Write i2c OK [13:28:51]MH_I2C_Read... [13:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:51]Read from MH i2c: E2 [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: E2 03 00 [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: E2 03 00 FF 5A 00 90 00 CD [13:28:51]RAPDU: 90 00 [13:28:51]wFMCommunicate OK [13:28:51]wFMCommunicate request_size=4 [13:28:51]MH_SAM_APDU [13:28:51]CAPDU: 80 0D 03 02 [13:28:51]Write to MH i2c: E2 08 00 00 5B 80 0D 03 02 00 00 00 00 D6 [13:28:51]Write i2c OK [13:28:51]MH_I2C_Read... [13:28:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:51]Read from MH i2c: E2 [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: E2 0B 00 [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: E2 0B 00 00 5B 00 F1 C5 D5 D3 55 E9 5C BE 90 00 8D [13:28:51]RAPDU: F1 C5 D5 D3 55 E9 5C BE 90 00 [13:28:51]wFMCommunicate OK [13:28:51]SAM_PROTO_SignData done [13:28:51]FM_MakeSignedData done [13:28:51]CreateOFDProtocolMessage [13:28:51]wFMCommunicate request_size=4 [13:28:51]MH_SAM_APDU [13:28:51]CAPDU: 80 11 00 00 [13:28:51]Write to MH i2c: E2 08 00 01 5B 80 11 00 00 00 00 00 00 D6 [13:28:51]Write i2c OK [13:28:51]MH_I2C_Read... [13:28:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:51]Read from MH i2c: E2 [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: E2 17 00 [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: E2 17 00 01 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2D [13:28:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:28:51]wFMCommunicate OK [13:28:51]CreateOFDProtocolMessage done [13:28:51]OFDSenderStorePacket 123214 [13:28:51]StoreOFDPacket docnum=123214 [13:28:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 7D F5 07 01 48 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 1C CD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4E E1 01 00 35 04 06 00 E3 11 C1 07 A6 E0 F1 C5 D5 D3 55 E9 5C BE [13:28:51]CheckFolder [13:28:51]dirname=/storage/ofd_packets [13:28:51]CheckFolder done [13:28:51]ProducePacketName [13:28:51]name=ofd_packets/00123214 [13:28:51]NVStorageSaveData ofd_packets/00123214 [13:28:51]File name is /storage/ofd_packets/00123214 [13:28:51]Write 301 bytes [13:28:51]NVStorageSaveData done [13:28:51]OFDSenderStorePacket done [13:28:51]KKMCreateOFDPacket done [13:28:51]NVStorageSaveData kkm_last_timestamp [13:28:51]File name is /storage/kkm_last_timestamp [13:28:51]Write 4 bytes [13:28:51]NVStorageSaveData done [13:28:51]ExternCall_PrintAddStr [13:28:51]wPrintStart [13:28:51]Write to MH i2c: 01 00 00 02 5B 5D [13:28:51]Write i2c OK [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: 01 [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: 01 07 00 [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: 01 07 00 02 5B 00 00 00 00 00 FF 0F 72 [13:28:51]RasterBufferAndPrint [13:28:51]line Счет N : (1)718047 [13:28:51]line ИНН: 02508201610067 [13:28:51]line Контрольно-Кассовый Чек [13:28:51]line ПРОДАЖА [13:28:51]line ТРК (МРК, ГНК) : 42 [13:28:51]line Товар: 2710124130 [13:28:51]line Аи-92-К-4 [13:28:51]line 14.840 * 67.40 [13:28:51]line = 1000.22 [13:28:51]line НДС 12% НСП 1% [13:28:51]line > о реализуемом товаре [13:28:51]line ОКРУГЛЕНИЕ: -0.22 [13:28:51]line ИТОГО: 1000.00 [13:28:51]line Внесено: 1000.00 [13:28:51]line СДАЧА: 0.00 [13:28:51]line НСП 1% : 8.85 [13:28:51]line НДС 12% : 106.22 [13:28:51]line Наличными: 1000.00 [13:28:51]line Безнал.: 0.00 [13:28:51]line Место: АЗС № 64 "Партнер Нефть" [13:28:51]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:28:51]line СНО: Общий режим [13:28:51]line Чек 68 26.11.2024 13:29 [13:28:51]line Смена: 557 ФФД: 1.0 [13:28:51]line ЗНМ: 0300000033 [13:28:51]line РНМ: 0000000000092681 [13:28:51]line Версия ККМ: 001 [13:28:51]line ФМ: 0000000000874881 [13:28:51]line ФД: 123214 [13:28:51]line ФПД: 249665392453344 [13:28:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T132900&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123214&fm=249665392453344&tin=02508201610067®Number=0000000000092681&sum=100000 [13:28:51]OFD Sender: Processing packet 123214 [packets to send 7, broken 6] [13:28:51]ProducePacketName [13:28:51]name=ofd_packets/00123214 [13:28:51]OFD Sender: To server: pG, [13:28:51]CommunicateWithHost lk.salyk.kg:30040 [13:28:51]ConnectInit lk.salyk.kg [13:28:51]written 0, free lines is 4095 [13:28:51]Connected sock=10 [13:28:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 7D F5 07 01 48 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 1C CD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4E E1 01 00 35 04 06 00 E3 11 C1 07 A6 E0 F1 C5 D5 D3 55 E9 5C BE [13:28:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 15 F2 47 00 D0 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4E E1 01 00 F4 03 04 00 DE 78 45 67 B6 04 01 00 00 6C EE AD 67 D2 45 3F 18 [13:28:51]CommunicateWithHost err = 0 [13:28:51]CheckOFDResponse [13:28:51]1017 (14) - 77093643461234 [13:28:51]1041 (16) - 0000000000874881 [13:28:51]1040 (4) - 123214 [13:28:51]1012 (4) - 26.11.2024 07:29 [13:28:51]1206 (1) - 0 [13:28:51]OFD Sender: Remove packet 123214 [13:28:51]ProducePacketName [13:28:51]name=ofd_packets/00123214 [13:28:51]NVStorageDeleteData [13:28:51]Write to MH i2c: 01 00 00 2D 5B 88 [13:28:51]Write i2c OK [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: 01 [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: 01 07 00 [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: 01 07 00 2D 5B 00 00 00 00 00 47 0C E2 [13:28:51]RasterBufferAndPrint [13:28:51]line [13:28:51]line [13:28:51]line [13:28:51]line [13:28:51]line [13:28:51]written 0, free lines is 3147 [13:28:51]MH_Cut [13:28:51]Write to MH i2c: D1 01 00 34 5B 01 61 [13:28:51]Write i2c OK [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: D1 [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: D1 01 00 [13:28:51]MH_I2C_Read... [13:28:51]Read from MH i2c: D1 01 00 34 5B 00 60 [13:28:51]Write to MH i2c: 01 00 00 35 5B 90 [13:28:51]Write i2c OK [13:28:51]MH_I2C_Read... [13:28:52]OFD Sender: No OFD packet to send [13:28:53]*** Cut start [13:28:53]*** Partial cut [13:28:53]*** CUTSNS_PIN = 1 [13:28:53]*** CUTSNS_PIN = 0 [13:28:53]*** Brake cut motor [13:28:53]Read from MH i2c: 01 [13:28:53]MH_I2C_Read... [13:28:53]*** Stop cut motor [13:28:53]*** Cut end [13:28:53]Read from MH i2c: 01 07 00 [13:28:53]MH_I2C_Read... [13:28:53]Read from MH i2c: 01 07 00 35 5B 00 00 00 00 00 FF 0F A5 [13:28:53]process_action close_receipt done [13:28:53]requested_data is exist [13:28:53]produce_requested_data [13:28:53]requested_item fm.sn is exist - process it [13:28:53]wFMCommunicate request_size=4 [13:28:53]MH_SAM_APDU [13:28:53]CAPDU: 80 11 00 00 [13:28:53]Write to MH i2c: E2 08 00 36 5B 80 11 00 00 00 00 00 00 0B [13:28:53]Write i2c OK [13:28:53]MH_I2C_Read... [13:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:54]Read from MH i2c: E2 [13:28:54]MH_I2C_Read... [13:28:54]Read from MH i2c: E2 17 00 [13:28:54]MH_I2C_Read... [13:28:54]Read from MH i2c: E2 17 00 36 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 62 [13:28:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:28:54]wFMCommunicate OK [13:28:54]requested_item fd.num is exist - process it [13:28:54]SAM_PROTO_GetFieldsCounters [13:28:54]wFMCommunicate request_size=4 [13:28:54]MH_SAM_APDU [13:28:54]CAPDU: 80 13 00 00 [13:28:54]Write to MH i2c: E2 08 00 37 5B 80 13 00 00 00 00 00 00 0E [13:28:54]Write i2c OK [13:28:54]MH_I2C_Read... [13:28:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:54]Read from MH i2c: E2 [13:28:54]MH_I2C_Read... [13:28:54]Read from MH i2c: E2 62 00 [13:28:54]MH_I2C_Read... [13:28:54]Read from MH i2c: E2 62 00 37 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 4E E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [13:28:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 4E E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:28:54]wFMCommunicate OK [13:28:54]SAM_PROTO_GetFieldsCounters done [13:28:54]requested_item shift.num is exist - process it [13:28:54]requested_item shift.opened is exist - process it [13:28:54]req_shift_opened [13:28:54]FM_GetShiftState [13:28:54]SAM_PROTO_GetShiftState [13:28:54]wFMCommunicate request_size=4 [13:28:54]MH_SAM_APDU [13:28:54]CAPDU: 80 13 01 00 [13:28:54]Write to MH i2c: E2 08 00 38 5B 80 13 01 00 00 00 00 00 10 [13:28:54]Write i2c OK [13:28:54]MH_I2C_Read... [13:28:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:54]Read from MH i2c: E2 [13:28:54]MH_I2C_Read... [13:28:54]Read from MH i2c: E2 0E 00 [13:28:54]MH_I2C_Read... [13:28:54]Read from MH i2c: E2 0E 00 38 5B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 71 [13:28:54]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:28:54]wFMCommunicate OK [13:28:54]SAM_PROTO_GetShiftState done [13:28:54]FM_GetShiftState done [13:28:54]req_shift_opened done [13:28:54]requested_item shift.open_date is exist - process it [13:28:54]req_shift_open_date [13:28:54]req_shift_open_date done [13:28:54]produce_requested_data done [13:28:54]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123214,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:28:54]process_action_free close_receipt [13:28:54]json_value_free [13:28:54]json_value_free done [13:28:54]process_json_proto returns [13:28:54]Send response to host [13:28:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123214,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:28:54]free response buf [13:28:54]execute_script done [13:28:54]execute_script returns [13:28:54]free content buf [13:28:54]Sock 7.Close socket [13:28:54]Sock 7.Thread stoped [13:28:56]accept exits with 9 [13:28:56]New connection [13:28:56]New thread 3066580324 created [13:28:56]Thread 3066723684 joined [13:28:56]Waiting for new connection... [13:28:56] Sock 9.Parse request [13:28:56]Sock 9.Check first char [13:28:56]Sock 9.First char is OK [13:28:56]request: POST /json_proto HTTP/1.0 [13:28:56]Method: POST [13:28:56]URL: /json_proto [13:28:56]Method is POST - this is cgi request [13:28:56]url: /json_proto [13:28:56]query_string will be loaded in cgi processing [13:28:56]execute_cgi json_proto POST (null) [13:28:56]execute_cgi path=json_proto method=POST [13:28:56]POST find Content-Length [13:28:56]Host: 172.17.37.4:8080 [13:28:56]Content-Length: 739 [13:28:56]Content-Type: application/json [13:28:56] [13:28:56]POST finish read [13:28:56]Found Content-Length = 739 [13:28:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123214, "base_FM": "0000000000874881", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:56]execute_script... [13:28:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123214, "base_FM": "0000000000874881", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:56]POST & json_proto [13:28:56]process_json_proto [13:28:56]json parsed OK: [13:28:56]protocol is kg_v1.0 [13:28:56]action value=close_receipt [13:28:56]process_action close_receipt [13:28:56]cmd_close_receipt [13:28:56]MH_GetDate [13:28:56]Write to MH i2c: F0 00 00 39 5B 83 [13:28:56]Write i2c OK [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: F0 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: F0 09 00 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: F0 09 00 39 5B 00 23 CD 45 67 B8 5A 43 67 E4 [13:28:56]GetLastDocTimeStamp 1732627740 [13:28:56]current date 1732627747 [13:28:56]FM_GetShiftState [13:28:56]SAM_PROTO_GetShiftState [13:28:56]wFMCommunicate request_size=4 [13:28:56]MH_SAM_APDU [13:28:56]CAPDU: 80 13 01 00 [13:28:56]Write to MH i2c: E2 08 00 3A 5B 80 13 01 00 00 00 00 00 12 [13:28:56]Write i2c OK [13:28:56]MH_I2C_Read... [13:28:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:56]Read from MH i2c: E2 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: E2 0E 00 [13:28:56]MH_I2C_Read... [13:28:56]Read from MH i2c: E2 0E 00 3A 5B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 73 [13:28:56]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:28:56]wFMCommunicate OK [13:28:56]SAM_PROTO_GetShiftState done [13:28:56]FM_GetShiftState done [13:28:56]opened in 1732579736 [13:28:56]opened+sec_in_day 1732666136 [13:28:56]quantity*price = 100021 [13:28:56]sum+1 = 100023 [13:28:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 69 26.11.2024 13:29 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФД осн.: 123214 ФМ осн.: 0000000000874881 ФМ: 0000000000874881 ФД: 123215 ФПД: 139589080110301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T132907&type=2&operation_type=1&fn_number=0000000000874881&fd_number=123215&fm=139589080110301&tin=02508201610067®Number=0000000000092681&sum=100000 [13:28:57]StoreToDocumentArchive [13:28:57]shift 557 fd 123215 [13:28:57]save to /storage/0557/doc_00123215 [13:28:57]save last doc name /storage/0557/doc_00123215 to /storage/kkm_last_doc_name [13:28:57]save OK [13:28:57]Clear old archive folders... [13:28:57]ProcessDocumentItem done err = 0, tmpTLVsize=279 [13:28:57]tlvbuf is 020887D0 [13:28:57]SAM_PROTO_ClearQueue [13:28:57]wFMCommunicate request_size=4 [13:28:57]MH_SAM_APDU [13:28:57]CAPDU: 80 09 00 00 [13:28:57]Write to MH i2c: E2 08 00 49 5B 80 09 00 00 00 00 00 00 16 [13:28:57]Write i2c OK [13:28:57]MH_I2C_Read... [13:28:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:57]Read from MH i2c: E2 [13:28:57]MH_I2C_Read... [13:28:57]Read from MH i2c: E2 03 00 [13:28:57]MH_I2C_Read... [13:28:57]Read from MH i2c: E2 03 00 49 5B 00 90 00 18 [13:28:57]RAPDU: 90 00 [13:28:57]wFMCommunicate OK [13:28:57]SAM_PROTO_ClearQueue done [13:28:57]KKMCreateOFDPacket [13:28:57]OFDProtocolAddRootSTLVToBuf [13:28:57]FM_MakeSignedData [13:28:57]FM_MakeSignedData [13:28:57]SAM_PROTO_SignData [13:28:57]wFMCommunicate request_size=4 [13:28:57]MH_SAM_APDU [13:28:57]CAPDU: 80 0D 01 02 [13:28:57]Write to MH i2c: E2 08 00 4A 5B 80 0D 01 02 00 00 00 00 1E [13:28:57]Write i2c OK [13:28:57]MH_I2C_Read... [13:28:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:57]Read from MH i2c: E2 [13:28:57]MH_I2C_Read... [13:28:57]Read from MH i2c: E2 03 00 [13:28:57]MH_I2C_Read... [13:28:57]Read from MH i2c: E2 03 00 4A 5B 00 90 00 19 [13:28:57]RAPDU: 90 00 [13:28:57]wFMCommunicate OK [13:28:57]wFMCommunicate request_size=255 [13:28:57]MH_SAM_APDU [13:28:57]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 23 CD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 4E E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 [13:28:57]Write to MH i2c: E2 02 01 4B 5B 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 23 CD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 4E E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 00 00 17 [13:28:57]Write i2c OK [13:28:57]MH_I2C_Read... [13:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:58]Read from MH i2c: E2 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 03 00 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 03 00 4B 5B 00 90 00 1A [13:28:58]RAPDU: 90 00 [13:28:58]wFMCommunicate OK [13:28:58]wFMCommunicate request_size=38 [13:28:58]MH_SAM_APDU [13:28:58]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4F E1 01 00 35 04 06 00 7E F4 9D 88 D4 DD [13:28:58]Write to MH i2c: E2 29 00 4C 5B 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4F E1 01 00 35 04 06 00 7E F4 9D 88 D4 DD 00 00 27 [13:28:58]Write i2c OK [13:28:58]MH_I2C_Read... [13:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:58]Read from MH i2c: E2 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 03 00 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 03 00 4C 5B 00 90 00 1B [13:28:58]RAPDU: 90 00 [13:28:58]wFMCommunicate OK [13:28:58]wFMCommunicate request_size=4 [13:28:58]MH_SAM_APDU [13:28:58]CAPDU: 80 0D 03 02 [13:28:58]Write to MH i2c: E2 08 00 4D 5B 80 0D 03 02 00 00 00 00 23 [13:28:58]Write i2c OK [13:28:58]MH_I2C_Read... [13:28:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:58]Read from MH i2c: E2 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 0B 00 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 0B 00 4D 5B 00 C8 AB CB 76 C9 70 D1 08 90 00 EA [13:28:58]RAPDU: C8 AB CB 76 C9 70 D1 08 90 00 [13:28:58]wFMCommunicate OK [13:28:58]SAM_PROTO_SignData done [13:28:58]FM_MakeSignedData done [13:28:58]CreateOFDProtocolMessage [13:28:58]wFMCommunicate request_size=4 [13:28:58]MH_SAM_APDU [13:28:58]CAPDU: 80 11 00 00 [13:28:58]Write to MH i2c: E2 08 00 4E 5B 80 11 00 00 00 00 00 00 23 [13:28:58]Write i2c OK [13:28:58]MH_I2C_Read... [13:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:58]Read from MH i2c: E2 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 17 00 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 17 00 4E 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 7A [13:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:28:58]wFMCommunicate OK [13:28:58]CreateOFDProtocolMessage done [13:28:58]OFDSenderStorePacket 123215 [13:28:58]StoreOFDPacket docnum=123215 [13:28:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 2B 01 00 00 BF 16 23 01 C4 2D 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 23 CD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 4E E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4F E1 01 00 35 04 06 00 7E F4 9D 88 D4 DD C8 AB CB 76 C9 70 D1 08 [13:28:58]CheckFolder [13:28:58]dirname=/storage/ofd_packets [13:28:58]CheckFolder done [13:28:58]ProducePacketName [13:28:58]name=ofd_packets/00123215 [13:28:58]NVStorageSaveData ofd_packets/00123215 [13:28:58]File name is /storage/ofd_packets/00123215 [13:28:58]Write 329 bytes [13:28:58]NVStorageSaveData done [13:28:58]OFDSenderStorePacket done [13:28:58]KKMCreateOFDPacket done [13:28:58]NVStorageSaveData kkm_last_timestamp [13:28:58]File name is /storage/kkm_last_timestamp [13:28:58]Write 4 bytes [13:28:58]NVStorageSaveData done [13:28:58]ExternCall_PrintAddStr [13:28:58]wPrintStart [13:28:58]Write to MH i2c: 01 00 00 4F 5B AA [13:28:58]Write i2c OK [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: 01 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: 01 07 00 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: 01 07 00 4F 5B 00 00 00 00 00 FF 0F BF [13:28:58]RasterBufferAndPrint [13:28:58]line Счет N : (1)718047 [13:28:58]line ИНН: 02508201610067 [13:28:58]line Контрольно-Кассовый Чек [13:28:58]line ВОЗВРАТ ПРОДАЖИ [13:28:58]line ТРК (МРК, ГНК) : 42 [13:28:58]line Товар: 2710124130 [13:28:58]line Аи-92-К-4 [13:28:58]line 14.840 * 67.40 [13:28:58]line = 1000.22 [13:28:58]line НДС 12% НСП 1% [13:28:58]line > о реализуемом товаре [13:28:58]line ОКРУГЛЕНИЕ: -0.22 [13:28:58]line ИТОГО: 1000.00 [13:28:58]line НСП 1% : 8.85 [13:28:58]line НДС 12% : 106.22 [13:28:58]line Наличными: 1000.00 [13:28:58]line Безнал.: 0.00 [13:28:58]line Место: АЗС № 64 "Партнер Нефть" [13:28:58]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:28:58]line СНО: Общий режим [13:28:58]line Чек 69 26.11.2024 13:29 [13:28:58]line Смена: 557 ФФД: 1.0 [13:28:58]line ЗНМ: 0300000033 [13:28:58]line РНМ: 0000000000092681 [13:28:58]line Версия ККМ: 001 [13:28:58]line ФД осн.: 123214 [13:28:58]line ФМ осн.: 0000000000874881 [13:28:58]line ФМ: 0000000000874881 [13:28:58]line ФД: 123215 [13:28:58]line ФПД: 139589080110301 [13:28:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T132907&type=2&operation_type=1&fn_number=0000000000874881&fd_number=123215&fm=139589080110301&tin=02508201610067®Number=0000000000092681&sum=100000 [13:28:58]written 0, free lines is 4095 [13:28:58]OFD Sender: Processing packet 123215 [packets to send 7, broken 6] [13:28:58]ProducePacketName [13:28:58]name=ofd_packets/00123215 [13:28:58]OFD Sender: To server: pG, [13:28:58]CommunicateWithHost lk.salyk.kg:30040 [13:28:58]ConnectInit lk.salyk.kg [13:28:58]Connected sock=10 [13:28:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 2B 01 00 00 BF 16 23 01 C4 2D 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 23 CD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 4E E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4F E1 01 00 35 04 06 00 7E F4 9D 88 D4 DD C8 AB CB 76 C9 70 D1 08 [13:28:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 B4 C5 47 00 E4 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 4F E1 01 00 F4 03 04 00 E5 78 45 67 B6 04 01 00 00 F6 E6 C2 D9 CA 44 0B EE [13:28:58]CommunicateWithHost err = 0 [13:28:58]CheckOFDResponse [13:28:58]1017 (14) - 77093643461234 [13:28:58]1041 (16) - 0000000000874881 [13:28:58]1040 (4) - 123215 [13:28:58]1012 (4) - 26.11.2024 07:29 [13:28:58]1206 (1) - 0 [13:28:58]OFD Sender: Remove packet 123215 [13:28:58]ProducePacketName [13:28:58]name=ofd_packets/00123215 [13:28:58]NVStorageDeleteData [13:28:58]Write to MH i2c: 01 00 00 7A 5B D5 [13:28:58]Write i2c OK [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: 01 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: 01 07 00 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: 01 07 00 7A 5B 00 00 00 00 00 54 0C 3C [13:28:58]RasterBufferAndPrint [13:28:58]line [13:28:58]line [13:28:58]line [13:28:58]line [13:28:58]line [13:28:58]written 0, free lines is 3163 [13:28:58]MH_Cut [13:28:58]Write to MH i2c: D1 01 00 81 5B 01 AE [13:28:58]Write i2c OK [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: D1 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: D1 01 00 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: D1 01 00 81 5B 00 AD [13:28:58]Write to MH i2c: 01 00 00 82 5B DD [13:28:58]Write i2c OK [13:28:58]MH_I2C_Read... [13:28:59]OFD Sender: No OFD packet to send [13:29:00]*** Cut start [13:29:00]*** Partial cut [13:29:00]*** CUTSNS_PIN = 1 [13:29:00]*** CUTSNS_PIN = 0 [13:29:00]*** Brake cut motor [13:29:00]Read from MH i2c: 01 [13:29:00]MH_I2C_Read... [13:29:00]*** Stop cut motor [13:29:00]*** Cut end [13:29:00]Read from MH i2c: 01 07 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: 01 07 00 82 5B 00 00 00 00 00 FF 0F F2 [13:29:00]process_action close_receipt done [13:29:00]requested_data is exist [13:29:00]produce_requested_data [13:29:00]requested_item fm.sn is exist - process it [13:29:00]wFMCommunicate request_size=4 [13:29:00]MH_SAM_APDU [13:29:00]CAPDU: 80 11 00 00 [13:29:00]Write to MH i2c: E2 08 00 83 5B 80 11 00 00 00 00 00 00 58 [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:00]Read from MH i2c: E2 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 17 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 17 00 83 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AF [13:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:29:00]wFMCommunicate OK [13:29:00]requested_item fd.num is exist - process it [13:29:00]SAM_PROTO_GetFieldsCounters [13:29:00]wFMCommunicate request_size=4 [13:29:00]MH_SAM_APDU [13:29:00]CAPDU: 80 13 00 00 [13:29:00]Write to MH i2c: E2 08 00 84 5B 80 13 00 00 00 00 00 00 5B [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 62 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 62 00 84 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 4F E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [13:29:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 4F E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:01]wFMCommunicate OK [13:29:01]SAM_PROTO_GetFieldsCounters done [13:29:01]requested_item shift.num is exist - process it [13:29:01]requested_item shift.opened is exist - process it [13:29:01]req_shift_opened [13:29:01]FM_GetShiftState [13:29:01]SAM_PROTO_GetShiftState [13:29:01]wFMCommunicate request_size=4 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 13 01 00 [13:29:01]Write to MH i2c: E2 08 00 85 5B 80 13 01 00 00 00 00 00 5D [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 0E 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 0E 00 85 5B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 BE [13:29:01]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:29:01]wFMCommunicate OK [13:29:01]SAM_PROTO_GetShiftState done [13:29:01]FM_GetShiftState done [13:29:01]req_shift_opened done [13:29:01]requested_item shift.open_date is exist - process it [13:29:01]req_shift_open_date [13:29:01]req_shift_open_date done [13:29:01]produce_requested_data done [13:29:01]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123215,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:29:01]process_action_free close_receipt [13:29:01]json_value_free [13:29:01]json_value_free done [13:29:01]process_json_proto returns [13:29:01]Send response to host [13:29:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123215,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:29:01]free response buf [13:29:01]execute_script done [13:29:01]execute_script returns [13:29:01]free content buf [13:29:01]Sock 9.Close socket [13:29:01]Sock 9.Thread stoped [13:29:04]accept exits with 7 [13:29:04]New connection [13:29:04]New thread 3066723684 created [13:29:04]Thread 3066580324 joined [13:29:04]Waiting for new connection... [13:29:04] Sock 7.Parse request [13:29:04]Sock 7.Check first char [13:29:04]Sock 7.First char is OK [13:29:04]request: POST /json_proto HTTP/1.0 [13:29:04]Method: POST [13:29:04]URL: /json_proto [13:29:04]Method is POST - this is cgi request [13:29:04]url: /json_proto [13:29:04]query_string will be loaded in cgi processing [13:29:04]execute_cgi json_proto POST (null) [13:29:04]execute_cgi path=json_proto method=POST [13:29:04]POST find Content-Length [13:29:04]Host: 172.17.37.4:8080 [13:29:04]Content-Length: 678 [13:29:04]Content-Type: application/json [13:29:04] [13:29:04]POST finish read [13:29:04]Found Content-Length = 678 [13:29:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:04]execute_script... [13:29:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:04]POST & json_proto [13:29:04]process_json_proto [13:29:04]json parsed OK: [13:29:04]protocol is kg_v1.0 [13:29:04]action value=close_receipt [13:29:04]process_action close_receipt [13:29:04]cmd_close_receipt [13:29:04]MH_GetDate [13:29:04]Write to MH i2c: F0 00 00 86 5B D0 [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: F0 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: F0 09 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: F0 09 00 86 5B 00 2A CD 45 67 B8 5A 43 67 38 [13:29:04]GetLastDocTimeStamp 1732627747 [13:29:04]current date 1732627754 [13:29:04]FM_GetShiftState [13:29:04]SAM_PROTO_GetShiftState [13:29:04]wFMCommunicate request_size=4 [13:29:04]MH_SAM_APDU [13:29:04]CAPDU: 80 13 01 00 [13:29:04]Write to MH i2c: E2 08 00 87 5B 80 13 01 00 00 00 00 00 5F [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:04]Read from MH i2c: E2 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 0E 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 0E 00 87 5B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 C0 [13:29:04]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:29:04]wFMCommunicate OK [13:29:04]SAM_PROTO_GetShiftState done [13:29:04]FM_GetShiftState done [13:29:04]opened in 1732579736 [13:29:04]opened+sec_in_day 1732666136 [13:29:04]quantity*price = 70028 [13:29:04]sum+1 = 70030 [13:29:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 70 26.11.2024 13:29 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123216 ФПД: 190490966102337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T132915&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123216&fm=190490966102337&tin=02508201610067®Number=0000000000092681&sum=70000 [13:29:05]StoreToDocumentArchive [13:29:05]shift 557 fd 123216 [13:29:05]save to /storage/0557/doc_00123216 [13:29:05]save last doc name /storage/0557/doc_00123216 to /storage/kkm_last_doc_name [13:29:05]save OK [13:29:05]Clear old archive folders... [13:29:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:05]tlvbuf is 02147FA0 [13:29:05]SAM_PROTO_ClearQueue [13:29:05]wFMCommunicate request_size=4 [13:29:05]MH_SAM_APDU [13:29:05]CAPDU: 80 09 00 00 [13:29:05]Write to MH i2c: E2 08 00 94 5B 80 09 00 00 00 00 00 00 61 [13:29:05]Write i2c OK [13:29:05]MH_I2C_Read... [13:29:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:05]Read from MH i2c: E2 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 03 00 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 03 00 94 5B 00 90 00 63 [13:29:05]RAPDU: 90 00 [13:29:05]wFMCommunicate OK [13:29:05]SAM_PROTO_ClearQueue done [13:29:05]KKMCreateOFDPacket [13:29:05]OFDProtocolAddRootSTLVToBuf [13:29:05]FM_MakeSignedData [13:29:05]FM_MakeSignedData [13:29:05]SAM_PROTO_SignData [13:29:05]wFMCommunicate request_size=4 [13:29:05]MH_SAM_APDU [13:29:05]CAPDU: 80 0D 01 02 [13:29:05]Write to MH i2c: E2 08 00 95 5B 80 0D 01 02 00 00 00 00 69 [13:29:05]Write i2c OK [13:29:05]MH_I2C_Read... [13:29:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:05]Read from MH i2c: E2 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 03 00 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 03 00 95 5B 00 90 00 64 [13:29:05]RAPDU: 90 00 [13:29:05]wFMCommunicate OK [13:29:05]wFMCommunicate request_size=255 [13:29:05]MH_SAM_APDU [13:29:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2B CD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 50 E1 01 00 35 04 06 00 AD [13:29:05]Write to MH i2c: E2 02 01 96 5B 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 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2B CD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 50 E1 01 00 35 04 06 00 AD 00 00 D6 [13:29:05]Write i2c OK [13:29:05]MH_I2C_Read... [13:29:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:05]Read from MH i2c: E2 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 03 00 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 03 00 96 5B 00 90 00 65 [13:29:05]RAPDU: 90 00 [13:29:05]wFMCommunicate OK [13:29:05]wFMCommunicate request_size=10 [13:29:05]MH_SAM_APDU [13:29:05]CAPDU: 80 0D 02 02 05 40 22 5E 11 41 [13:29:05]Write to MH i2c: E2 0D 00 97 5B 80 0D 02 02 05 00 40 22 5E 11 41 00 00 88 [13:29:05]Write i2c OK [13:29:05]MH_I2C_Read... [13:29:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:05]Read from MH i2c: E2 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 03 00 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 03 00 97 5B 00 90 00 66 [13:29:05]RAPDU: 90 00 [13:29:05]wFMCommunicate OK [13:29:05]wFMCommunicate request_size=4 [13:29:05]MH_SAM_APDU [13:29:05]CAPDU: 80 0D 03 02 [13:29:05]Write to MH i2c: E2 08 00 98 5B 80 0D 03 02 00 00 00 00 6E [13:29:05]Write i2c OK [13:29:05]MH_I2C_Read... [13:29:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:05]Read from MH i2c: E2 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 0B 00 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 0B 00 98 5B 00 95 31 1F 42 14 3F 98 E4 90 00 65 [13:29:05]RAPDU: 95 31 1F 42 14 3F 98 E4 90 00 [13:29:05]wFMCommunicate OK [13:29:05]SAM_PROTO_SignData done [13:29:05]FM_MakeSignedData done [13:29:05]CreateOFDProtocolMessage [13:29:05]wFMCommunicate request_size=4 [13:29:05]MH_SAM_APDU [13:29:05]CAPDU: 80 11 00 00 [13:29:05]Write to MH i2c: E2 08 00 99 5B 80 11 00 00 00 00 00 00 6E [13:29:05]Write i2c OK [13:29:05]MH_I2C_Read... [13:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:05]Read from MH i2c: E2 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 17 00 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 17 00 99 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C5 [13:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:29:05]wFMCommunicate OK [13:29:05]CreateOFDProtocolMessage done [13:29:05]OFDSenderStorePacket 123216 [13:29:05]StoreOFDPacket docnum=123216 [13:29:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E5 92 07 01 41 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2B CD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 50 E1 01 00 35 04 06 00 AD 40 22 5E 11 41 95 31 1F 42 14 3F 98 E4 [13:29:05]CheckFolder [13:29:05]dirname=/storage/ofd_packets [13:29:05]CheckFolder done [13:29:05]ProducePacketName [13:29:05]name=ofd_packets/00123216 [13:29:05]NVStorageSaveData ofd_packets/00123216 [13:29:05]File name is /storage/ofd_packets/00123216 [13:29:05]Write 301 bytes [13:29:05]NVStorageSaveData done [13:29:05]OFDSenderStorePacket done [13:29:05]KKMCreateOFDPacket done [13:29:05]NVStorageSaveData kkm_last_timestamp [13:29:05]File name is /storage/kkm_last_timestamp [13:29:05]Write 4 bytes [13:29:05]NVStorageSaveData done [13:29:05]ExternCall_PrintAddStr [13:29:05]wPrintStart [13:29:05]Write to MH i2c: 01 00 00 9A 5B F5 [13:29:05]Write i2c OK [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: 01 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: 01 07 00 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: 01 07 00 9A 5B 00 00 00 00 00 FF 0F 0A [13:29:05]RasterBufferAndPrint [13:29:05]line Счет N : (1)718048 [13:29:05]line ИНН: 02508201610067 [13:29:05]line Контрольно-Кассовый Чек [13:29:05]line ПРОДАЖА [13:29:05]line ТРК (МРК, ГНК) : 42 [13:29:05]line Товар: 2710124130 [13:29:05]line Аи-92-К-4 [13:29:05]line 10.390 * 67.40 [13:29:05]line = 700.29 [13:29:05]line НДС 12% НСП 1% [13:29:05]line > о реализуемом товаре [13:29:05]line ОКРУГЛЕНИЕ: -0.29 [13:29:05]line ИТОГО: 700.00 [13:29:05]line Внесено: 700.00 [13:29:05]line СДАЧА: 0.00 [13:29:05]line НСП 1% : 6.20 [13:29:05]line НДС 12% : 74.37 [13:29:05]line Наличными: 700.00 [13:29:05]line Безнал.: 0.00 [13:29:05]line Место: АЗС № 64 "Партнер Нефть" [13:29:05]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:29:05]line СНО: Общий режим [13:29:05]line Чек 70 26.11.2024 13:29 [13:29:05]line Смена: 557 ФФД: 1.0 [13:29:05]line ЗНМ: 0300000033 [13:29:05]line РНМ: 0000000000092681 [13:29:05]line Версия ККМ: 001 [13:29:05]line ФМ: 0000000000874881 [13:29:05]line ФД: 123216 [13:29:05]line ФПД: 190490966102337 [13:29:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T132915&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123216&fm=190490966102337&tin=02508201610067®Number=0000000000092681&sum=70000 [13:29:06]OFD Sender: Processing packet 123216 [packets to send 7, broken 6] [13:29:06]ProducePacketName [13:29:06]name=ofd_packets/00123216 [13:29:06]OFD Sender: To server: pG, [13:29:06]CommunicateWithHost lk.salyk.kg:30040 [13:29:06]ConnectInit lk.salyk.kg [13:29:06]written 0, free lines is 4095 [13:29:06]Connected sock=10 [13:29:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E5 92 07 01 41 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2B CD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 50 E1 01 00 35 04 06 00 AD 40 22 5E 11 41 95 31 1F 42 14 3F 98 E4 [13:29:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 6F 17 47 00 A7 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 50 E1 01 00 F4 03 04 00 ED 78 45 67 B6 04 01 00 00 60 B2 B7 BB 44 39 12 AF [13:29:06]CommunicateWithHost err = 0 [13:29:06]CheckOFDResponse [13:29:06]1017 (14) - 77093643461234 [13:29:06]1041 (16) - 0000000000874881 [13:29:06]1040 (4) - 123216 [13:29:06]1012 (4) - 26.11.2024 07:29 [13:29:06]1206 (1) - 0 [13:29:06]OFD Sender: Remove packet 123216 [13:29:06]ProducePacketName [13:29:06]name=ofd_packets/00123216 [13:29:06]NVStorageDeleteData [13:29:06]Write to MH i2c: 01 00 00 C5 5B 20 [13:29:06]Write i2c OK [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: 01 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: 01 07 00 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: 01 07 00 C5 5B 00 00 00 00 00 5D 0C 90 [13:29:06]RasterBufferAndPrint [13:29:06]line [13:29:06]line [13:29:06]line [13:29:06]line [13:29:06]line [13:29:06]written 0, free lines is 3177 [13:29:06]MH_Cut [13:29:06]Write to MH i2c: D1 01 00 CC 5B 01 F9 [13:29:06]Write i2c OK [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: D1 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: D1 01 00 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: D1 01 00 CC 5B 00 F8 [13:29:06]Write to MH i2c: 01 00 00 CD 5B 28 [13:29:06]Write i2c OK [13:29:06]MH_I2C_Read... [13:29:06]OFD Sender: No OFD packet to send [13:29:07]*** Cut start [13:29:07]*** Partial cut [13:29:07]*** CUTSNS_PIN = 1 [13:29:07]*** CUTSNS_PIN = 0 [13:29:08]*** Brake cut motor [13:29:08]Read from MH i2c: 01 [13:29:08]MH_I2C_Read... [13:29:08]*** Stop cut motor [13:29:08]*** Cut end [13:29:08]Read from MH i2c: 01 07 00 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: 01 07 00 CD 5B 00 00 00 00 00 FF 0F 3D [13:29:08]process_action close_receipt done [13:29:08]requested_data is exist [13:29:08]produce_requested_data [13:29:08]requested_item fm.sn is exist - process it [13:29:08]wFMCommunicate request_size=4 [13:29:08]MH_SAM_APDU [13:29:08]CAPDU: 80 11 00 00 [13:29:08]Write to MH i2c: E2 08 00 CE 5B 80 11 00 00 00 00 00 00 A3 [13:29:08]Write i2c OK [13:29:08]MH_I2C_Read... [13:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:08]Read from MH i2c: E2 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: E2 17 00 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: E2 17 00 CE 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FA [13:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:29:08]wFMCommunicate OK [13:29:08]requested_item fd.num is exist - process it [13:29:08]SAM_PROTO_GetFieldsCounters [13:29:08]wFMCommunicate request_size=4 [13:29:08]MH_SAM_APDU [13:29:08]CAPDU: 80 13 00 00 [13:29:08]Write to MH i2c: E2 08 00 CF 5B 80 13 00 00 00 00 00 00 A6 [13:29:08]Write i2c OK [13:29:08]MH_I2C_Read... [13:29:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:08]Read from MH i2c: E2 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: E2 62 00 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: E2 62 00 CF 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 50 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [13:29:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 50 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:08]wFMCommunicate OK [13:29:08]SAM_PROTO_GetFieldsCounters done [13:29:08]requested_item shift.num is exist - process it [13:29:08]requested_item shift.opened is exist - process it [13:29:08]req_shift_opened [13:29:08]FM_GetShiftState [13:29:08]SAM_PROTO_GetShiftState [13:29:08]wFMCommunicate request_size=4 [13:29:08]MH_SAM_APDU [13:29:08]CAPDU: 80 13 01 00 [13:29:08]Write to MH i2c: E2 08 00 D0 5B 80 13 01 00 00 00 00 00 A8 [13:29:08]Write i2c OK [13:29:08]MH_I2C_Read... [13:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:08]Read from MH i2c: E2 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: E2 0E 00 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: E2 0E 00 D0 5B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 09 [13:29:08]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:29:08]wFMCommunicate OK [13:29:08]SAM_PROTO_GetShiftState done [13:29:08]FM_GetShiftState done [13:29:08]req_shift_opened done [13:29:08]requested_item shift.open_date is exist - process it [13:29:08]req_shift_open_date [13:29:08]req_shift_open_date done [13:29:08]produce_requested_data done [13:29:08]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123216,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:29:08]process_action_free close_receipt [13:29:08]json_value_free [13:29:08]json_value_free done [13:29:08]process_json_proto returns [13:29:08]Send response to host [13:29:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123216,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:29:08]free response buf [13:29:08]execute_script done [13:29:08]execute_script returns [13:29:08]free content buf [13:29:08]Sock 7.Close socket [13:29:08]Sock 7.Thread stoped [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:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:17]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:29]accept exits with 9 [13:35:29]New connection [13:35:29]New thread 3066580324 created [13:35:29]Thread 3066723684 joined [13:35:29]Waiting for new connection... [13:35:29] Sock 9.Parse request [13:35:29]Sock 9.Check first char [13:35:29]Sock 9.First char is OK [13:35:29]request: POST /json_proto HTTP/1.0 [13:35:29]Method: POST [13:35:29]URL: /json_proto [13:35:29]Method is POST - this is cgi request [13:35:29]url: /json_proto [13:35:29]query_string will be loaded in cgi processing [13:35:29]execute_cgi json_proto POST (null) [13:35:29]execute_cgi path=json_proto method=POST [13:35:29]POST find Content-Length [13:35:29]Host: 172.17.37.4:8080 [13:35:29]Content-Length: 677 [13:35:29]Content-Type: application/json [13:35:29] [13:35:29]POST finish read [13:35:29]Found Content-Length = 677 [13:35:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 6.500, "sum" : 438.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 438.00, "total" : 438.00, "payments": [ { "type": 0, "sum" : 438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:29]execute_script... [13:35:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 6.500, "sum" : 438.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 438.00, "total" : 438.00, "payments": [ { "type": 0, "sum" : 438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:29]POST & json_proto [13:35:29]process_json_proto [13:35:29]json parsed OK: [13:35:29]protocol is kg_v1.0 [13:35:29]action value=close_receipt [13:35:29]process_action close_receipt [13:35:29]cmd_close_receipt [13:35:29]MH_GetDate [13:35:29]Write to MH i2c: F0 00 00 D1 5B 1B [13:35:29]Write i2c OK [13:35:29]MH_I2C_Read... [13:35:29]Read from MH i2c: F0 [13:35:29]MH_I2C_Read... [13:35:29]Read from MH i2c: F0 09 00 [13:35:29]MH_I2C_Read... [13:35:29]Read from MH i2c: F0 09 00 D1 5B 00 AC CE 45 67 B8 5A 43 67 06 [13:35:29]GetLastDocTimeStamp 1732627755 [13:35:29]current date 1732628140 [13:35:29]FM_GetShiftState [13:35:29]SAM_PROTO_GetShiftState [13:35:29]wFMCommunicate request_size=4 [13:35:29]MH_SAM_APDU [13:35:29]CAPDU: 80 13 01 00 [13:35:29]Write to MH i2c: E2 08 00 D2 5B 80 13 01 00 00 00 00 00 AA [13:35:29]Write i2c OK [13:35:29]MH_I2C_Read... [13:35:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:29]Read from MH i2c: E2 [13:35:29]MH_I2C_Read... [13:35:29]Read from MH i2c: E2 0E 00 [13:35:29]MH_I2C_Read... [13:35:29]Read from MH i2c: E2 0E 00 D2 5B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 0B [13:35:29]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:35:29]wFMCommunicate OK [13:35:29]SAM_PROTO_GetShiftState done [13:35:29]FM_GetShiftState done [13:35:29]opened in 1732579736 [13:35:29]opened+sec_in_day 1732666136 [13:35:29]quantity*price = 43810 [13:35:29]sum+1 = 43811 [13:35:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 438.00 Внесено: 438.00 СДАЧА: 0.00 НСП 1% : 3.88 НДС 12% : 46.52 Наличными: 438.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 71 26.11.2024 13:35 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123217 ФПД: 108998270103172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T133540&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123217&fm=108998270103172&tin=02508201610067®Number=0000000000092681&sum=43800 [13:35:30]StoreToDocumentArchive [13:35:30]shift 557 fd 123217 [13:35:30]save to /storage/0557/doc_00123217 [13:35:30]save last doc name /storage/0557/doc_00123217 to /storage/kkm_last_doc_name [13:35:30]save OK [13:35:30]Clear old archive folders... [13:35:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:35:30]tlvbuf is B6F1D100 [13:35:30]SAM_PROTO_ClearQueue [13:35:30]wFMCommunicate request_size=4 [13:35:30]MH_SAM_APDU [13:35:30]CAPDU: 80 09 00 00 [13:35:30]Write to MH i2c: E2 08 00 DF 5B 80 09 00 00 00 00 00 00 AC [13:35:30]Write i2c OK [13:35:30]MH_I2C_Read... [13:35:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:30]Read from MH i2c: E2 [13:35:30]MH_I2C_Read... [13:35:30]Read from MH i2c: E2 03 00 [13:35:30]MH_I2C_Read... [13:35:30]Read from MH i2c: E2 03 00 DF 5B 00 90 00 AE [13:35:30]RAPDU: 90 00 [13:35:30]wFMCommunicate OK [13:35:30]SAM_PROTO_ClearQueue done [13:35:30]KKMCreateOFDPacket [13:35:30]OFDProtocolAddRootSTLVToBuf [13:35:30]FM_MakeSignedData [13:35:30]FM_MakeSignedData [13:35:30]SAM_PROTO_SignData [13:35:30]wFMCommunicate request_size=4 [13:35:30]MH_SAM_APDU [13:35:30]CAPDU: 80 0D 01 02 [13:35:30]Write to MH i2c: E2 08 00 E0 5B 80 0D 01 02 00 00 00 00 B4 [13:35:30]Write i2c OK [13:35:30]MH_I2C_Read... [13:35:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:30]Read from MH i2c: E2 [13:35:30]MH_I2C_Read... [13:35:30]Read from MH i2c: E2 03 00 [13:35:30]MH_I2C_Read... [13:35:30]Read from MH i2c: E2 03 00 E0 5B 00 90 00 AF [13:35:30]RAPDU: 90 00 [13:35:30]wFMCommunicate OK [13:35:30]wFMCommunicate request_size=255 [13:35:30]MH_SAM_APDU [13:35:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 64 19 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 22 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 12 00 00 00 00 07 04 06 00 18 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AC CE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 51 E1 01 00 35 04 06 00 63 [13:35:30]Write to MH i2c: E2 02 01 E1 5B 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 34 FF 03 08 00 03 64 19 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 22 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 12 00 00 00 00 07 04 06 00 18 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AC CE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 51 E1 01 00 35 04 06 00 63 00 00 F5 [13:35:30]Write i2c OK [13:35:30]MH_I2C_Read... [13:35:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:31]Read from MH i2c: E2 [13:35:31]MH_I2C_Read... [13:35:31]Read from MH i2c: E2 03 00 [13:35:31]MH_I2C_Read... [13:35:31]Read from MH i2c: E2 03 00 E1 5B 00 90 00 B0 [13:35:31]RAPDU: 90 00 [13:35:31]wFMCommunicate OK [13:35:31]wFMCommunicate request_size=10 [13:35:31]MH_SAM_APDU [13:35:31]CAPDU: 80 0D 02 02 05 22 23 2B AE 84 [13:35:31]Write to MH i2c: E2 0D 00 E2 5B 80 0D 02 02 05 00 22 23 2B AE 84 00 00 63 [13:35:31]Write i2c OK [13:35:31]MH_I2C_Read... [13:35:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:31]Read from MH i2c: E2 [13:35:31]MH_I2C_Read... [13:35:31]Read from MH i2c: E2 03 00 [13:35:31]MH_I2C_Read... [13:35:31]Read from MH i2c: E2 03 00 E2 5B 00 90 00 B1 [13:35:31]RAPDU: 90 00 [13:35:31]wFMCommunicate OK [13:35:31]wFMCommunicate request_size=4 [13:35:31]MH_SAM_APDU [13:35:31]CAPDU: 80 0D 03 02 [13:35:31]Write to MH i2c: E2 08 00 E3 5B 80 0D 03 02 00 00 00 00 B9 [13:35:31]Write i2c OK [13:35:31]MH_I2C_Read... [13:35:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:31]Read from MH i2c: E2 [13:35:31]MH_I2C_Read... [13:35:31]Read from MH i2c: E2 0B 00 [13:35:31]MH_I2C_Read... [13:35:31]Read from MH i2c: E2 0B 00 E3 5B 00 55 BA C6 64 FF 36 CA 9B 90 00 8D [13:35:31]RAPDU: 55 BA C6 64 FF 36 CA 9B 90 00 [13:35:31]wFMCommunicate OK [13:35:31]SAM_PROTO_SignData done [13:35:31]FM_MakeSignedData done [13:35:31]CreateOFDProtocolMessage [13:35:31]wFMCommunicate request_size=4 [13:35:31]MH_SAM_APDU [13:35:31]CAPDU: 80 11 00 00 [13:35:31]Write to MH i2c: E2 08 00 E4 5B 80 11 00 00 00 00 00 00 B9 [13:35:31]Write i2c OK [13:35:31]MH_I2C_Read... [13:35:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:31]Read from MH i2c: E2 [13:35:31]MH_I2C_Read... [13:35:31]Read from MH i2c: E2 17 00 [13:35:31]MH_I2C_Read... [13:35:31]Read from MH i2c: E2 17 00 E4 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 10 [13:35:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:35:31]wFMCommunicate OK [13:35:31]CreateOFDProtocolMessage done [13:35:31]OFDSenderStorePacket 123217 [13:35:31]StoreOFDPacket docnum=123217 [13:35:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 A3 06 07 01 CE FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 64 19 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 22 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 12 00 00 00 00 07 04 06 00 18 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AC CE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 51 E1 01 00 35 04 06 00 63 22 23 2B AE 84 55 BA C6 64 FF 36 CA 9B [13:35:31]CheckFolder [13:35:31]dirname=/storage/ofd_packets [13:35:31]CheckFolder done [13:35:31]ProducePacketName [13:35:31]name=ofd_packets/00123217 [13:35:31]NVStorageSaveData ofd_packets/00123217 [13:35:31]File name is /storage/ofd_packets/00123217 [13:35:31]Write 301 bytes [13:35:31]NVStorageSaveData done [13:35:31]OFDSenderStorePacket done [13:35:31]KKMCreateOFDPacket done [13:35:31]NVStorageSaveData kkm_last_timestamp [13:35:31]File name is /storage/kkm_last_timestamp [13:35:31]Write 4 bytes [13:35:31]NVStorageSaveData done [13:35:31]ExternCall_PrintAddStr [13:35:31]wPrintStart [13:35:31]Write to MH i2c: 01 00 00 E5 5B 40 [13:35:31]Write i2c OK [13:35:31]MH_I2C_Read... [13:35:31]Read from MH i2c: 01 [13:35:31]MH_I2C_Read... [13:35:31]Read from MH i2c: 01 07 00 [13:35:31]MH_I2C_Read... [13:35:31]Read from MH i2c: 01 07 00 E5 5B 00 00 00 00 00 FF 0F 55 [13:35:31]RasterBufferAndPrint [13:35:31]line Счет N : (1)718049 [13:35:31]line ИНН: 02508201610067 [13:35:31]line Контрольно-Кассовый Чек [13:35:31]line ПРОДАЖА [13:35:31]line ТРК (МРК, ГНК) : 32 [13:35:31]line Товар: 2710124130 [13:35:31]line Аи-92-К-4 [13:35:31]line 6.500 * 67.40 [13:35:31]line = 438.10 [13:35:31]line НДС 12% НСП 1% [13:35:31]line > о реализуемом товаре [13:35:31]line ОКРУГЛЕНИЕ: -0.10 [13:35:31]line ИТОГО: 438.00 [13:35:31]line Внесено: 438.00 [13:35:31]line СДАЧА: 0.00 [13:35:31]line НСП 1% : 3.88 [13:35:31]line НДС 12% : 46.52 [13:35:31]line Наличными: 438.00 [13:35:31]line Безнал.: 0.00 [13:35:31]line Место: АЗС № 64 "Партнер Нефть" [13:35:31]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:35:31]line СНО: Общий режим [13:35:31]line Чек 71 26.11.2024 13:35 [13:35:31]line Смена: 557 ФФД: 1.0 [13:35:31]line ЗНМ: 0300000033 [13:35:31]line РНМ: 0000000000092681 [13:35:31]line Версия ККМ: 001 [13:35:31]line ФМ: 0000000000874881 [13:35:31]line ФД: 123217 [13:35:31]line ФПД: 108998270103172 [13:35:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T133540&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123217&fm=108998270103172&tin=02508201610067®Number=0000000000092681&sum=43800 [13:35:31]OFD Sender: Processing packet 123217 [packets to send 7, broken 6] [13:35:31]ProducePacketName [13:35:31]name=ofd_packets/00123217 [13:35:31]OFD Sender: To server: pG, [13:35:31]CommunicateWithHost lk.salyk.kg:30040 [13:35:31]ConnectInit lk.salyk.kg [13:35:31]written 0, free lines is 4095 [13:35:31]Connected sock=10 [13:35:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 A3 06 07 01 CE FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 64 19 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 22 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 12 00 00 00 00 07 04 06 00 18 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AC CE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 51 E1 01 00 35 04 06 00 63 22 23 2B AE 84 55 BA C6 64 FF 36 CA 9B [13:35:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 30 2E 47 00 39 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 51 E1 01 00 F4 03 04 00 6E 7A 45 67 B6 04 01 00 00 C8 C7 BF D8 A5 80 4C 76 [13:35:31]CommunicateWithHost err = 0 [13:35:31]CheckOFDResponse [13:35:31]1017 (14) - 77093643461234 [13:35:31]1041 (16) - 0000000000874881 [13:35:31]1040 (4) - 123217 [13:35:31]1012 (4) - 26.11.2024 07:36 [13:35:31]1206 (1) - 0 [13:35:31]OFD Sender: Remove packet 123217 [13:35:31]ProducePacketName [13:35:31]name=ofd_packets/00123217 [13:35:31]NVStorageDeleteData [13:35:31]Write to MH i2c: 01 00 00 10 5C 6C [13:35:31]Write i2c OK [13:35:31]MH_I2C_Read... [13:35:31]Read from MH i2c: 01 [13:35:31]MH_I2C_Read... [13:35:31]Read from MH i2c: 01 07 00 [13:35:31]MH_I2C_Read... [13:35:31]Read from MH i2c: 01 07 00 10 5C 00 00 00 00 00 4D 0C CC [13:35:31]RasterBufferAndPrint [13:35:31]line [13:35:31]line [13:35:31]line [13:35:31]line [13:35:31]line [13:35:31]written 0, free lines is 3153 [13:35:31]MH_Cut [13:35:31]Write to MH i2c: D1 01 00 17 5C 01 45 [13:35:31]Write i2c OK [13:35:31]MH_I2C_Read... [13:35:31]Read from MH i2c: D1 [13:35:31]MH_I2C_Read... [13:35:31]Read from MH i2c: D1 01 00 [13:35:31]MH_I2C_Read... [13:35:31]Read from MH i2c: D1 01 00 17 5C 00 44 [13:35:31]Write to MH i2c: 01 00 00 18 5C 74 [13:35:31]Write i2c OK [13:35:31]MH_I2C_Read... [13:35:32]OFD Sender: No OFD packet to send [13:35:33]*** Cut start [13:35:33]*** Partial cut [13:35:33]*** CUTSNS_PIN = 1 [13:35:33]*** CUTSNS_PIN = 0 [13:35:33]*** Brake cut motor [13:35:33]Read from MH i2c: 01 [13:35:33]MH_I2C_Read... [13:35:33]*** Stop cut motor [13:35:33]*** Cut end [13:35:33]Read from MH i2c: 01 07 00 [13:35:33]MH_I2C_Read... [13:35:33]Read from MH i2c: 01 07 00 18 5C 00 00 00 00 00 FF 0F 89 [13:35:33]process_action close_receipt done [13:35:33]requested_data is exist [13:35:33]produce_requested_data [13:35:33]requested_item fm.sn is exist - process it [13:35:33]wFMCommunicate request_size=4 [13:35:33]MH_SAM_APDU [13:35:33]CAPDU: 80 11 00 00 [13:35:33]Write to MH i2c: E2 08 00 19 5C 80 11 00 00 00 00 00 00 EF [13:35:33]Write i2c OK [13:35:33]MH_I2C_Read... [13:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:34]Read from MH i2c: E2 [13:35:34]MH_I2C_Read... [13:35:34]Read from MH i2c: E2 17 00 [13:35:34]MH_I2C_Read... [13:35:34]Read from MH i2c: E2 17 00 19 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 46 [13:35:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:35:34]wFMCommunicate OK [13:35:34]requested_item fd.num is exist - process it [13:35:34]SAM_PROTO_GetFieldsCounters [13:35:34]wFMCommunicate request_size=4 [13:35:34]MH_SAM_APDU [13:35:34]CAPDU: 80 13 00 00 [13:35:34]Write to MH i2c: E2 08 00 1A 5C 80 13 00 00 00 00 00 00 F2 [13:35:34]Write i2c OK [13:35:34]MH_I2C_Read... [13:35:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:34]Read from MH i2c: E2 [13:35:34]MH_I2C_Read... [13:35:34]Read from MH i2c: E2 62 00 [13:35:34]MH_I2C_Read... [13:35:34]Read from MH i2c: E2 62 00 1A 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 51 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [13:35:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 51 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:35:34]wFMCommunicate OK [13:35:34]SAM_PROTO_GetFieldsCounters done [13:35:34]requested_item shift.num is exist - process it [13:35:34]requested_item shift.opened is exist - process it [13:35:34]req_shift_opened [13:35:34]FM_GetShiftState [13:35:34]SAM_PROTO_GetShiftState [13:35:34]wFMCommunicate request_size=4 [13:35:34]MH_SAM_APDU [13:35:34]CAPDU: 80 13 01 00 [13:35:34]Write to MH i2c: E2 08 00 1B 5C 80 13 01 00 00 00 00 00 F4 [13:35:34]Write i2c OK [13:35:34]MH_I2C_Read... [13:35:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:34]Read from MH i2c: E2 [13:35:34]MH_I2C_Read... [13:35:34]Read from MH i2c: E2 0E 00 [13:35:34]MH_I2C_Read... [13:35:34]Read from MH i2c: E2 0E 00 1B 5C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 55 [13:35:34]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:35:34]wFMCommunicate OK [13:35:34]SAM_PROTO_GetShiftState done [13:35:34]FM_GetShiftState done [13:35:34]req_shift_opened done [13:35:34]requested_item shift.open_date is exist - process it [13:35:34]req_shift_open_date [13:35:34]req_shift_open_date done [13:35:34]produce_requested_data done [13:35:34]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123217,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:35:34]process_action_free close_receipt [13:35:34]json_value_free [13:35:34]json_value_free done [13:35:34]process_json_proto returns [13:35:34]Send response to host [13:35:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123217,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:35:34]free response buf [13:35:34]execute_script done [13:35:34]execute_script returns [13:35:34]free content buf [13:35:34]Sock 9.Close socket [13:35:34]Sock 9.Thread stoped [13:35:34]accept exits with 7 [13:35:34]New connection [13:35:34]New thread 3066723684 created [13:35:34]Thread 3066580324 joined [13:35:34]Waiting for new connection... [13:35:34] Sock 7.Parse request [13:35:34]Sock 7.Check first char [13:35:34]Sock 7.First char is OK [13:35:34]request: POST /json_proto HTTP/1.0 [13:35:34]Method: POST [13:35:34]URL: /json_proto [13:35:34]Method is POST - this is cgi request [13:35:34]url: /json_proto [13:35:34]query_string will be loaded in cgi processing [13:35:34]execute_cgi json_proto POST (null) [13:35:34]execute_cgi path=json_proto method=POST [13:35:34]POST find Content-Length [13:35:34]Host: 172.17.37.4:8080 [13:35:34]Content-Length: 677 [13:35:34]Content-Type: application/json [13:35:34] [13:35:34]POST finish read [13:35:34]Found Content-Length = 677 [13:35:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:34]execute_script... [13:35:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:34]POST & json_proto [13:35:34]process_json_proto [13:35:34]json parsed OK: [13:35:34]protocol is kg_v1.0 [13:35:34]action value=close_receipt [13:35:34]process_action close_receipt [13:35:34]cmd_close_receipt [13:35:34]MH_GetDate [13:35:34]Write to MH i2c: F0 00 00 1C 5C 67 [13:35:34]Write i2c OK [13:35:34]MH_I2C_Read... [13:35:34]Read from MH i2c: F0 [13:35:34]MH_I2C_Read... [13:35:34]Read from MH i2c: F0 09 00 [13:35:34]MH_I2C_Read... [13:35:34]Read from MH i2c: F0 09 00 1C 5C 00 B1 CE 45 67 B8 5A 43 67 57 [13:35:34]GetLastDocTimeStamp 1732628140 [13:35:34]current date 1732628145 [13:35:34]FM_GetShiftState [13:35:34]SAM_PROTO_GetShiftState [13:35:34]wFMCommunicate request_size=4 [13:35:34]MH_SAM_APDU [13:35:34]CAPDU: 80 13 01 00 [13:35:34]Write to MH i2c: E2 08 00 1D 5C 80 13 01 00 00 00 00 00 F6 [13:35:34]Write i2c OK [13:35:34]MH_I2C_Read... [13:35:34]Read from MH i2c: E2 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:34] [13:35:34]MH_I2C_Read... [13:35:34]Read from MH i2c: E2 0E 00 [13:35:34]MH_I2C_Read... [13:35:34]Read from MH i2c: E2 0E 00 1D 5C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 57 [13:35:34]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:35:34]wFMCommunicate OK [13:35:34]SAM_PROTO_GetShiftState done [13:35:34]FM_GetShiftState done [13:35:34]opened in 1732579736 [13:35:34]opened+sec_in_day 1732666136 [13:35:34]quantity*price = 50010 [13:35:34]sum+1 = 50012 [13:35:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 72 26.11.2024 13:35 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123218 ФПД: 210734659645693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T133545&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123218&fm=210734659645693&tin=02508201610067®Number=0000000000092681&sum=50000 [13:35:36]StoreToDocumentArchive [13:35:36]shift 557 fd 123218 [13:35:36]save to /storage/0557/doc_00123218 [13:35:36]save last doc name /storage/0557/doc_00123218 to /storage/kkm_last_doc_name [13:35:36]save OK [13:35:36]Clear old archive folders... [13:35:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:35:36]tlvbuf is 02079540 [13:35:36]SAM_PROTO_ClearQueue [13:35:36]wFMCommunicate request_size=4 [13:35:36]MH_SAM_APDU [13:35:36]CAPDU: 80 09 00 00 [13:35:36]Write to MH i2c: E2 08 00 2A 5C 80 09 00 00 00 00 00 00 F8 [13:35:36]Write i2c OK [13:35:36]MH_I2C_Read... [13:35:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:36]Read from MH i2c: E2 [13:35:36]MH_I2C_Read... [13:35:36]Read from MH i2c: E2 03 00 [13:35:36]MH_I2C_Read... [13:35:36]Read from MH i2c: E2 03 00 2A 5C 00 90 00 FA [13:35:36]RAPDU: 90 00 [13:35:36]wFMCommunicate OK [13:35:36]SAM_PROTO_ClearQueue done [13:35:36]KKMCreateOFDPacket [13:35:36]OFDProtocolAddRootSTLVToBuf [13:35:36]FM_MakeSignedData [13:35:36]FM_MakeSignedData [13:35:36]SAM_PROTO_SignData [13:35:36]wFMCommunicate request_size=4 [13:35:36]MH_SAM_APDU [13:35:36]CAPDU: 80 0D 01 02 [13:35:36]Write to MH i2c: E2 08 00 2B 5C 80 0D 01 02 00 00 00 00 00 [13:35:36]Write i2c OK [13:35:36]MH_I2C_Read... [13:35:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:36]Read from MH i2c: E2 [13:35:36]MH_I2C_Read... [13:35:36]Read from MH i2c: E2 03 00 [13:35:36]MH_I2C_Read... [13:35:36]Read from MH i2c: E2 03 00 2B 5C 00 90 00 FB [13:35:36]RAPDU: 90 00 [13:35:36]wFMCommunicate OK [13:35:36]wFMCommunicate request_size=255 [13:35:36]MH_SAM_APDU [13:35:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 B1 CE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 52 E1 01 00 35 04 06 00 BF [13:35:36]Write to MH i2c: E2 02 01 2C 5C 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 B1 CE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 52 E1 01 00 35 04 06 00 BF 00 00 FC [13:35:36]Write i2c OK [13:35:36]MH_I2C_Read... [13:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:36]Read from MH i2c: E2 [13:35:36]MH_I2C_Read... [13:35:36]Read from MH i2c: E2 03 00 [13:35:36]MH_I2C_Read... [13:35:36]Read from MH i2c: E2 03 00 2C 5C 00 90 00 FC [13:35:36]RAPDU: 90 00 [13:35:36]wFMCommunicate OK [13:35:36]wFMCommunicate request_size=10 [13:35:36]MH_SAM_APDU [13:35:36]CAPDU: 80 0D 02 02 05 A9 7C 87 B0 FD [13:35:36]Write to MH i2c: E2 0D 00 2D 5C 80 0D 02 02 05 00 A9 7C 87 B0 FD 00 00 66 [13:35:36]Write i2c OK [13:35:36]MH_I2C_Read... [13:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:36]Read from MH i2c: E2 [13:35:36]MH_I2C_Read... [13:35:36]Read from MH i2c: E2 03 00 [13:35:36]MH_I2C_Read... [13:35:36]Read from MH i2c: E2 03 00 2D 5C 00 90 00 FD [13:35:36]RAPDU: 90 00 [13:35:36]wFMCommunicate OK [13:35:36]wFMCommunicate request_size=4 [13:35:36]MH_SAM_APDU [13:35:36]CAPDU: 80 0D 03 02 [13:35:36]Write to MH i2c: E2 08 00 2E 5C 80 0D 03 02 00 00 00 00 05 [13:35:36]Write i2c OK [13:35:36]MH_I2C_Read... [13:35:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:36]Read from MH i2c: E2 [13:35:36]MH_I2C_Read... [13:35:36]Read from MH i2c: E2 0B 00 [13:35:36]MH_I2C_Read... [13:35:36]Read from MH i2c: E2 0B 00 2E 5C 00 D8 9F A2 DF 40 32 90 74 90 00 74 [13:35:36]RAPDU: D8 9F A2 DF 40 32 90 74 90 00 [13:35:36]wFMCommunicate OK [13:35:36]SAM_PROTO_SignData done [13:35:36]FM_MakeSignedData done [13:35:36]CreateOFDProtocolMessage [13:35:36]wFMCommunicate request_size=4 [13:35:36]MH_SAM_APDU [13:35:36]CAPDU: 80 11 00 00 [13:35:36]Write to MH i2c: E2 08 00 2F 5C 80 11 00 00 00 00 00 00 05 [13:35:36]Write i2c OK [13:35:36]MH_I2C_Read... [13:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:36]Read from MH i2c: E2 [13:35:36]MH_I2C_Read... [13:35:36]Read from MH i2c: E2 17 00 [13:35:36]MH_I2C_Read... [13:35:36]Read from MH i2c: E2 17 00 2F 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5C [13:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:35:36]wFMCommunicate OK [13:35:36]CreateOFDProtocolMessage done [13:35:36]OFDSenderStorePacket 123218 [13:35:36]StoreOFDPacket docnum=123218 [13:35:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 4D 2D 07 01 94 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 B1 CE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 52 E1 01 00 35 04 06 00 BF A9 7C 87 B0 FD D8 9F A2 DF 40 32 90 74 [13:35:36]CheckFolder [13:35:36]dirname=/storage/ofd_packets [13:35:36]CheckFolder done [13:35:36]ProducePacketName [13:35:36]name=ofd_packets/00123218 [13:35:36]NVStorageSaveData ofd_packets/00123218 [13:35:36]File name is /storage/ofd_packets/00123218 [13:35:36]Write 301 bytes [13:35:36]NVStorageSaveData done [13:35:36]OFDSenderStorePacket done [13:35:36]KKMCreateOFDPacket done [13:35:36]NVStorageSaveData kkm_last_timestamp [13:35:36]File name is /storage/kkm_last_timestamp [13:35:36]Write 4 bytes [13:35:36]NVStorageSaveData done [13:35:36]ExternCall_PrintAddStr [13:35:36]wPrintStart [13:35:36]Write to MH i2c: 01 00 00 30 5C 8C [13:35:36]Write i2c OK [13:35:36]MH_I2C_Read... [13:35:36]Read from MH i2c: 01 [13:35:36]MH_I2C_Read... [13:35:36]Read from MH i2c: 01 07 00 [13:35:36]MH_I2C_Read... [13:35:36]Read from MH i2c: 01 07 00 30 5C 00 00 00 00 00 FF 0F A1 [13:35:36]RasterBufferAndPrint [13:35:36]line Счет N : (1)718050 [13:35:36]line ИНН: 02508201610067 [13:35:36]line Контрольно-Кассовый Чек [13:35:36]line ПРОДАЖА [13:35:36]line ТРК (МРК, ГНК) : 12 [13:35:36]line Товар: 2710124130 [13:35:36]line Аи-92-К-4 [13:35:36]line 7.420 * 67.40 [13:35:36]line = 500.11 [13:35:36]line НДС 12% НСП 1% [13:35:36]line > о реализуемом товаре [13:35:36]line ОКРУГЛЕНИЕ: -0.11 [13:35:36]line ИТОГО: 500.00 [13:35:36]line Внесено: 500.00 [13:35:36]line СДАЧА: 0.00 [13:35:36]line НСП 1% : 4.43 [13:35:36]line НДС 12% : 53.11 [13:35:36]line Наличными: 500.00 [13:35:36]line Безнал.: 0.00 [13:35:36]line Место: АЗС № 64 "Партнер Нефть" [13:35:36]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:35:36]line СНО: Общий режим [13:35:36]line Чек 72 26.11.2024 13:35 [13:35:36]line Смена: 557 ФФД: 1.0 [13:35:36]line ЗНМ: 0300000033 [13:35:36]line РНМ: 0000000000092681 [13:35:36]line Версия ККМ: 001 [13:35:36]line ФМ: 0000000000874881 [13:35:36]line ФД: 123218 [13:35:36]line ФПД: 210734659645693 [13:35:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T133545&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123218&fm=210734659645693&tin=02508201610067®Number=0000000000092681&sum=50000 [13:35:36]written 0, free lines is 4095 [13:35:36]OFD Sender: Processing packet 123218 [packets to send 7, broken 6] [13:35:36]ProducePacketName [13:35:36]name=ofd_packets/00123218 [13:35:36]OFD Sender: To server: pG, [13:35:36]CommunicateWithHost lk.salyk.kg:30040 [13:35:36]ConnectInit lk.salyk.kg [13:35:36]Connected sock=10 [13:35:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 4D 2D 07 01 94 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 B1 CE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 52 E1 01 00 35 04 06 00 BF A9 7C 87 B0 FD D8 9F A2 DF 40 32 90 74 [13:35:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 B8 7D 47 00 4E 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 52 E1 01 00 F4 03 04 00 73 7A 45 67 B6 04 01 00 00 56 FC 35 3C 27 CC 4E FE [13:35:36]CommunicateWithHost err = 0 [13:35:36]CheckOFDResponse [13:35:36]1017 (14) - 77093643461234 [13:35:36]1041 (16) - 0000000000874881 [13:35:36]1040 (4) - 123218 [13:35:36]1012 (4) - 26.11.2024 07:36 [13:35:36]1206 (1) - 0 [13:35:36]OFD Sender: Remove packet 123218 [13:35:36]ProducePacketName [13:35:36]name=ofd_packets/00123218 [13:35:36]NVStorageDeleteData [13:35:37]Write to MH i2c: 01 00 00 5B 5C B7 [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: 01 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: 01 07 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: 01 07 00 5B 5C 00 00 00 00 00 51 0C 1B [13:35:37]RasterBufferAndPrint [13:35:37]line [13:35:37]line [13:35:37]line [13:35:37]line [13:35:37]line [13:35:37]written 0, free lines is 3163 [13:35:37]MH_Cut [13:35:37]Write to MH i2c: D1 01 00 62 5C 01 90 [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: D1 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: D1 01 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: D1 01 00 62 5C 00 8F [13:35:37]Write to MH i2c: 01 00 00 63 5C BF [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]OFD Sender: No OFD packet to send [13:35:38]*** Cut start [13:35:38]*** Partial cut [13:35:38]*** CUTSNS_PIN = 1 [13:35:38]*** CUTSNS_PIN = 0 [13:35:38]*** Brake cut motor [13:35:39]Read from MH i2c: 01 [13:35:39]MH_I2C_Read... [13:35:39]*** Stop cut motor [13:35:39]*** Cut end [13:35:39]Read from MH i2c: 01 07 00 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: 01 07 00 63 5C 00 00 00 00 00 FF 0F D4 [13:35:39]process_action close_receipt done [13:35:39]requested_data is exist [13:35:39]produce_requested_data [13:35:39]requested_item fm.sn is exist - process it [13:35:39]wFMCommunicate request_size=4 [13:35:39]MH_SAM_APDU [13:35:39]CAPDU: 80 11 00 00 [13:35:39]Write to MH i2c: E2 08 00 64 5C 80 11 00 00 00 00 00 00 3A [13:35:39]Write i2c OK [13:35:39]MH_I2C_Read... [13:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:39]Read from MH i2c: E2 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 17 00 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 17 00 64 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 91 [13:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:35:39]wFMCommunicate OK [13:35:39]requested_item fd.num is exist - process it [13:35:39]SAM_PROTO_GetFieldsCounters [13:35:39]wFMCommunicate request_size=4 [13:35:39]MH_SAM_APDU [13:35:39]CAPDU: 80 13 00 00 [13:35:39]Write to MH i2c: E2 08 00 65 5C 80 13 00 00 00 00 00 00 3D [13:35:39]Write i2c OK [13:35:39]MH_I2C_Read... [13:35:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:39]Read from MH i2c: E2 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 62 00 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 62 00 65 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 52 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [13:35:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 52 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:35:39]wFMCommunicate OK [13:35:39]SAM_PROTO_GetFieldsCounters done [13:35:39]requested_item shift.num is exist - process it [13:35:39]requested_item shift.opened is exist - process it [13:35:39]req_shift_opened [13:35:39]FM_GetShiftState [13:35:39]SAM_PROTO_GetShiftState [13:35:39]wFMCommunicate request_size=4 [13:35:39]MH_SAM_APDU [13:35:39]CAPDU: 80 13 01 00 [13:35:39]Write to MH i2c: E2 08 00 66 5C 80 13 01 00 00 00 00 00 3F [13:35:39]Write i2c OK [13:35:39]MH_I2C_Read... [13:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:39]Read from MH i2c: E2 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 0E 00 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 0E 00 66 5C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 A0 [13:35:39]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:35:39]wFMCommunicate OK [13:35:39]SAM_PROTO_GetShiftState done [13:35:39]FM_GetShiftState done [13:35:39]req_shift_opened done [13:35:39]requested_item shift.open_date is exist - process it [13:35:39]req_shift_open_date [13:35:39]req_shift_open_date done [13:35:39]produce_requested_data done [13:35:39]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123218,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:35:39]process_action_free close_receipt [13:35:39]json_value_free [13:35:39]json_value_free done [13:35:39]process_json_proto returns [13:35:39]Send response to host [13:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123218,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:35:39]free response buf [13:35:39]execute_script done [13:35:39]execute_script returns [13:35:39]free content buf [13:35:39]Sock 7.Close socket [13:35:39]Sock 7.Thread stoped [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:52]OFD Sender: No OFD packet to send [13:35:57]OFD Sender: No OFD packet to send [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:47]OFD Sender: No OFD packet to send [13:36:52]OFD Sender: No OFD packet to send [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:12]OFD Sender: No OFD packet to send [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:47]OFD Sender: No OFD packet to send [13:37:52]OFD Sender: No OFD packet to send [13:37:57]OFD Sender: No OFD packet to send [13:38:02]OFD Sender: No OFD packet to send [13:38:07]OFD Sender: No OFD packet to send [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:23]int [13:38:23]Write to MH i2c: 01 00 00 67 5C C3 [13:38:23]*** FLAG_PRN_PAP1 set [13:38:23]Write i2c OK [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: 01 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: 01 07 00 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: 01 07 00 67 5C 00 01 00 00 00 FF 0F D9 [13:38:23]state=0 [13:38:23]No paper [13:38:23]int [13:38:23]Write to MH i2c: 01 00 00 68 5C C4 [13:38:23]*** FLAG_PRN_PAP2 set [13:38:23]Write i2c OK [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: 01 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: 01 07 00 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: 01 07 00 68 5C 00 03 00 00 00 FF 0F DC [13:38:23]state=0 [13:38:23]No paper [13:38:23]Cover opened [13:38:27]OFD Sender: No OFD packet to send [13:38:28]Write to MH i2c: 01 00 00 69 5C C5 [13:38:28]Write i2c OK [13:38:28]MH_I2C_Read... [13:38:28]Read from MH i2c: 01 [13:38:28]MH_I2C_Read... [13:38:28]Read from MH i2c: 01 07 00 [13:38:28]MH_I2C_Read... [13:38:28]Read from MH i2c: 01 07 00 69 5C 00 03 00 00 00 FF 0F DD [13:38:28]state=3 [13:38:28]No paper [13:38:28]Cover opened [13:38:30]int [13:38:30]Write to MH i2c: 01 00 00 6A 5C C6 [13:38:30]*** FLAG_PRN_PAP1 reset [13:38:30]*** FLAG_PRN_PAP2 reset [13:38:30]Write i2c OK [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: 01 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: 01 07 00 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: 01 07 00 6A 5C 00 00 00 00 00 FF 0F DB [13:38:30]state=3 [13:38:30]Cover closed [13:38:32]OFD Sender: No OFD packet to send [13:38:34]accept exits with 9 [13:38:34]New connection [13:38:34]New thread 3066580324 created [13:38:34]Thread 3066723684 joined [13:38:34]Waiting for new connection... [13:38:34] Sock 9.Parse request [13:38:34]Sock 9.Check first char [13:38:34]Sock 9.First char is OK [13:38:34]request: POST /json_proto HTTP/1.0 [13:38:34]Method: POST [13:38:34]URL: /json_proto [13:38:34]Method is POST - this is cgi request [13:38:34]url: /json_proto [13:38:34]query_string will be loaded in cgi processing [13:38:34]execute_cgi json_proto POST (null) [13:38:34]execute_cgi path=json_proto method=POST [13:38:34]POST find Content-Length [13:38:34]Host: 172.17.37.4:8080 [13:38:34]Content-Length: 758 [13:38:34]Content-Type: application/json [13:38:34] [13:38:34]POST finish read [13:38:34]Found Content-Length = 758 [13:38:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30036695", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:34]execute_script... [13:38:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30036695", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:34]POST & json_proto [13:38:34]process_json_proto [13:38:34]json parsed OK: [13:38:34]protocol is kg_v1.0 [13:38:34]action value=close_receipt [13:38:34]process_action close_receipt [13:38:34]cmd_close_receipt [13:38:34]MH_GetDate [13:38:34]Write to MH i2c: F0 00 00 6B 5C B6 [13:38:34]Write i2c OK [13:38:34]MH_I2C_Read... [13:38:34]Read from MH i2c: F0 [13:38:34]MH_I2C_Read... [13:38:34]Read from MH i2c: F0 09 00 [13:38:34]MH_I2C_Read... [13:38:34]Read from MH i2c: F0 09 00 6B 5C 00 65 CF 45 67 B8 5A 43 67 5B [13:38:34]GetLastDocTimeStamp 1732628145 [13:38:34]current date 1732628325 [13:38:34]FM_GetShiftState [13:38:34]SAM_PROTO_GetShiftState [13:38:34]wFMCommunicate request_size=4 [13:38:34]MH_SAM_APDU [13:38:34]CAPDU: 80 13 01 00 [13:38:34]Write to MH i2c: E2 08 00 6C 5C 80 13 01 00 00 00 00 00 45 [13:38:34]Write i2c OK [13:38:34]MH_I2C_Read... [13:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:34]Read from MH i2c: E2 [13:38:34]MH_I2C_Read... [13:38:34]Read from MH i2c: E2 0E 00 [13:38:34]MH_I2C_Read... [13:38:34]Read from MH i2c: E2 0E 00 6C 5C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 A6 [13:38:34]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:38:34]wFMCommunicate OK [13:38:34]SAM_PROTO_GetShiftState done [13:38:34]FM_GetShiftState done [13:38:34]opened in 1732579736 [13:38:34]opened+sec_in_day 1732666136 [13:38:34]quantity*price = 0 [13:38:34]sum+1 = 1 [13:38:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 73 26.11.2024 13:38 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: ТК ГПНА Online 30036695 ФМ: 0000000000874881 ФД: 123219 ФПД: 100051564290332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T133845&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123219&fm=100051564290332&tin=02508201610067®Number=0000000000092681&sum=0 [13:38:35]StoreToDocumentArchive [13:38:35]shift 557 fd 123219 [13:38:35]save to /storage/0557/doc_00123219 [13:38:35]save last doc name /storage/0557/doc_00123219 to /storage/kkm_last_doc_name [13:38:35]save OK [13:38:35]Clear old archive folders... [13:38:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:38:35]tlvbuf is 01F937E0 [13:38:35]SAM_PROTO_ClearQueue [13:38:35]wFMCommunicate request_size=4 [13:38:35]MH_SAM_APDU [13:38:35]CAPDU: 80 09 00 00 [13:38:35]Write to MH i2c: E2 08 00 79 5C 80 09 00 00 00 00 00 00 47 [13:38:35]Write i2c OK [13:38:35]MH_I2C_Read... [13:38:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:35]Read from MH i2c: E2 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 03 00 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 03 00 79 5C 00 90 00 49 [13:38:35]RAPDU: 90 00 [13:38:35]wFMCommunicate OK [13:38:35]SAM_PROTO_ClearQueue done [13:38:35]KKMCreateOFDPacket [13:38:35]OFDProtocolAddRootSTLVToBuf [13:38:35]FM_MakeSignedData [13:38:35]FM_MakeSignedData [13:38:35]SAM_PROTO_SignData [13:38:35]wFMCommunicate request_size=4 [13:38:35]MH_SAM_APDU [13:38:35]CAPDU: 80 0D 01 02 [13:38:35]Write to MH i2c: E2 08 00 7A 5C 80 0D 01 02 00 00 00 00 4F [13:38:35]Write i2c OK [13:38:35]MH_I2C_Read... [13:38:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:35]Read from MH i2c: E2 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 03 00 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 03 00 7A 5C 00 90 00 4A [13:38:35]RAPDU: 90 00 [13:38:35]wFMCommunicate OK [13:38:35]wFMCommunicate request_size=255 [13:38:35]MH_SAM_APDU [13:38:35]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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 65 CF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 53 E1 01 00 35 04 06 00 [13:38:35]Write to MH i2c: E2 02 01 7B 5C 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 65 CF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 53 E1 01 00 35 04 06 00 00 00 5D [13:38:35]Write i2c OK [13:38:35]MH_I2C_Read... [13:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:35]Read from MH i2c: E2 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 03 00 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 03 00 7B 5C 00 90 00 4B [13:38:35]RAPDU: 90 00 [13:38:35]wFMCommunicate OK [13:38:35]wFMCommunicate request_size=11 [13:38:35]MH_SAM_APDU [13:38:35]CAPDU: 80 0D 02 02 06 5A FF 11 F2 E1 1C [13:38:35]Write to MH i2c: E2 0E 00 7C 5C 80 0D 02 02 06 00 5A FF 11 F2 E1 1C 00 00 B7 [13:38:35]Write i2c OK [13:38:35]MH_I2C_Read... [13:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:35]Read from MH i2c: E2 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 03 00 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 03 00 7C 5C 00 90 00 4C [13:38:35]RAPDU: 90 00 [13:38:35]wFMCommunicate OK [13:38:35]wFMCommunicate request_size=4 [13:38:35]MH_SAM_APDU [13:38:35]CAPDU: 80 0D 03 02 [13:38:35]Write to MH i2c: E2 08 00 7D 5C 80 0D 03 02 00 00 00 00 54 [13:38:35]Write i2c OK [13:38:35]MH_I2C_Read... [13:38:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:35]Read from MH i2c: E2 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 0B 00 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 0B 00 7D 5C 00 DE 2E B3 61 65 C2 9C BD 90 00 F5 [13:38:35]RAPDU: DE 2E B3 61 65 C2 9C BD 90 00 [13:38:35]wFMCommunicate OK [13:38:35]SAM_PROTO_SignData done [13:38:35]FM_MakeSignedData done [13:38:35]CreateOFDProtocolMessage [13:38:35]wFMCommunicate request_size=4 [13:38:35]MH_SAM_APDU [13:38:35]CAPDU: 80 11 00 00 [13:38:35]Write to MH i2c: E2 08 00 7E 5C 80 11 00 00 00 00 00 00 54 [13:38:35]Write i2c OK [13:38:35]MH_I2C_Read... [13:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:35]Read from MH i2c: E2 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 17 00 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 17 00 7E 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AB [13:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:38:35]wFMCommunicate OK [13:38:35]CreateOFDProtocolMessage done [13:38:35]OFDSenderStorePacket 123219 [13:38:35]StoreOFDPacket docnum=123219 [13:38:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 50 9E 08 01 D3 39 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 65 CF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 53 E1 01 00 35 04 06 00 5A FF 11 F2 E1 1C DE 2E B3 61 65 C2 9C BD [13:38:35]CheckFolder [13:38:35]dirname=/storage/ofd_packets [13:38:35]CheckFolder done [13:38:35]ProducePacketName [13:38:35]name=ofd_packets/00123219 [13:38:35]NVStorageSaveData ofd_packets/00123219 [13:38:35]File name is /storage/ofd_packets/00123219 [13:38:35]Write 302 bytes [13:38:35]NVStorageSaveData done [13:38:35]OFDSenderStorePacket done [13:38:35]KKMCreateOFDPacket done [13:38:35]NVStorageSaveData kkm_last_timestamp [13:38:35]File name is /storage/kkm_last_timestamp [13:38:35]Write 4 bytes [13:38:35]NVStorageSaveData done [13:38:35]ExternCall_PrintAddStr [13:38:35]wPrintStart [13:38:35]Write to MH i2c: 01 00 00 7F 5C DB [13:38:35]Write i2c OK [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: 01 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: 01 07 00 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: 01 07 00 7F 5C 00 00 00 00 00 FF 0F F0 [13:38:35]RasterBufferAndPrint [13:38:35]line Счет N : (1)718051 [13:38:35]line ИНН: 02508201610067 [13:38:35]line Контрольно-Кассовый Чек [13:38:35]line ПРОДАЖА [13:38:35]line ТРК (МРК, ГНК) : 5 [13:38:35]line Товар: 2710194210 [13:38:35]line ДТ(л)-К-5 [13:38:35]line 10.000 * 0.00 [13:38:35]line = 0.00 [13:38:35]line НДС 12% НСП 1% [13:38:35]line > о реализуемом товаре [13:38:35]line ИТОГО: 0.00 [13:38:35]line НСП 1% : 0.00 [13:38:35]line НДС 12% : 0.00 [13:38:35]line Наличными: 0.00 [13:38:35]line Безнал.: 0.00 [13:38:35]line Место: АЗС № 64 "Партнер Нефть" [13:38:35]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:38:35]line СНО: Общий режим [13:38:35]line Чек 73 26.11.2024 13:38 [13:38:35]line Смена: 557 ФФД: 1.0 [13:38:35]line ЗНМ: 0300000033 [13:38:35]line РНМ: 0000000000092681 [13:38:35]line Версия ККМ: 001 [13:38:35]line Талоны: ТК ГПНА Online [13:38:35]line 30036695 [13:38:35]line ФМ: 0000000000874881 [13:38:35]line ФД: 123219 [13:38:35]line ФПД: 100051564290332 [13:38:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T133845&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123219&fm=100051564290332&tin=02508201610067®Number=0000000000092681&sum=0 [13:38:36]written 0, free lines is 4095 [13:38:36]OFD Sender: Processing packet 123219 [packets to send 7, broken 6] [13:38:36]ProducePacketName [13:38:36]name=ofd_packets/00123219 [13:38:36]OFD Sender: To server: pG, [13:38:36]CommunicateWithHost lk.salyk.kg:30040 [13:38:36]ConnectInit lk.salyk.kg [13:38:36]Connected sock=10 [13:38:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 50 9E 08 01 D3 39 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 65 CF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 53 E1 01 00 35 04 06 00 5A FF 11 F2 E1 1C DE 2E B3 61 65 C2 9C BD [13:38:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 F9 93 47 00 7D 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 53 E1 01 00 F4 03 04 00 27 7B 45 67 B6 04 01 00 00 F8 38 C5 26 08 51 91 E3 [13:38:36]CommunicateWithHost err = 0 [13:38:36]CheckOFDResponse [13:38:36]1017 (14) - 77093643461234 [13:38:36]1041 (16) - 0000000000874881 [13:38:36]1040 (4) - 123219 [13:38:36]1012 (4) - 26.11.2024 07:39 [13:38:36]1206 (1) - 0 [13:38:36]OFD Sender: Remove packet 123219 [13:38:36]ProducePacketName [13:38:36]name=ofd_packets/00123219 [13:38:36]NVStorageDeleteData [13:38:36]Write to MH i2c: 01 00 00 A9 5C 05 [13:38:36]Write i2c OK [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: 01 [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: 01 07 00 [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: 01 07 00 A9 5C 00 00 00 00 00 60 0C 78 [13:38:36]RasterBufferAndPrint [13:38:36]line [13:38:36]line [13:38:36]line [13:38:36]line [13:38:36]line [13:38:36]written 0, free lines is 3173 [13:38:36]MH_Cut [13:38:36]Write to MH i2c: D1 01 00 B0 5C 01 DE [13:38:36]Write i2c OK [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: D1 [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: D1 01 00 [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: D1 01 00 B0 5C 00 DD [13:38:36]Write to MH i2c: 01 00 00 B1 5C 0D [13:38:36]Write i2c OK [13:38:36]MH_I2C_Read... [13:38:37]OFD Sender: No OFD packet to send [13:38:38]*** Cut start [13:38:38]*** Partial cut [13:38:38]*** CUTSNS_PIN = 1 [13:38:38]*** CUTSNS_PIN = 0 [13:38:38]*** Brake cut motor [13:38:38]Read from MH i2c: 01 [13:38:38]MH_I2C_Read... [13:38:38]*** Stop cut motor [13:38:38]*** Cut end [13:38:38]Read from MH i2c: 01 07 00 [13:38:38]MH_I2C_Read... [13:38:38]Read from MH i2c: 01 07 00 B1 5C 00 00 00 00 00 FF 0F 22 [13:38:38]process_action close_receipt done [13:38:38]requested_data is exist [13:38:38]produce_requested_data [13:38:38]requested_item fm.sn is exist - process it [13:38:38]wFMCommunicate request_size=4 [13:38:38]MH_SAM_APDU [13:38:38]CAPDU: 80 11 00 00 [13:38:38]Write to MH i2c: E2 08 00 B2 5C 80 11 00 00 00 00 00 00 88 [13:38:38]Write i2c OK [13:38:38]MH_I2C_Read... [13:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:38]Read from MH i2c: E2 [13:38:38]MH_I2C_Read... [13:38:38]Read from MH i2c: E2 17 00 [13:38:38]MH_I2C_Read... [13:38:38]Read from MH i2c: E2 17 00 B2 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DF [13:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:38:38]wFMCommunicate OK [13:38:38]requested_item fd.num is exist - process it [13:38:38]SAM_PROTO_GetFieldsCounters [13:38:38]wFMCommunicate request_size=4 [13:38:38]MH_SAM_APDU [13:38:38]CAPDU: 80 13 00 00 [13:38:38]Write to MH i2c: E2 08 00 B3 5C 80 13 00 00 00 00 00 00 8B [13:38:38]Write i2c OK [13:38:38]MH_I2C_Read... [13:38:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:38]Read from MH i2c: E2 [13:38:38]MH_I2C_Read... [13:38:38]Read from MH i2c: E2 62 00 [13:38:38]MH_I2C_Read... [13:38:38]Read from MH i2c: E2 62 00 B3 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 53 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [13:38:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 53 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:38]wFMCommunicate OK [13:38:38]SAM_PROTO_GetFieldsCounters done [13:38:38]requested_item shift.num is exist - process it [13:38:38]requested_item shift.opened is exist - process it [13:38:38]req_shift_opened [13:38:38]FM_GetShiftState [13:38:38]SAM_PROTO_GetShiftState [13:38:38]wFMCommunicate request_size=4 [13:38:38]MH_SAM_APDU [13:38:38]CAPDU: 80 13 01 00 [13:38:38]Write to MH i2c: E2 08 00 B4 5C 80 13 01 00 00 00 00 00 8D [13:38:38]Write i2c OK [13:38:38]MH_I2C_Read... [13:38:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:38]Read from MH i2c: E2 [13:38:38]MH_I2C_Read... [13:38:38]Read from MH i2c: E2 0E 00 [13:38:38]MH_I2C_Read... [13:38:38]Read from MH i2c: E2 0E 00 B4 5C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 EE [13:38:38]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:38:38]wFMCommunicate OK [13:38:38]SAM_PROTO_GetShiftState done [13:38:38]FM_GetShiftState done [13:38:38]req_shift_opened done [13:38:38]requested_item shift.open_date is exist - process it [13:38:38]req_shift_open_date [13:38:38]req_shift_open_date done [13:38:38]produce_requested_data done [13:38:38]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123219,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:38:38]process_action_free close_receipt [13:38:38]json_value_free [13:38:38]json_value_free done [13:38:38]process_json_proto returns [13:38:38]Send response to host [13:38:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123219,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:38:38]free response buf [13:38:38]execute_script done [13:38:38]execute_script returns [13:38:38]free content buf [13:38:38]Sock 9.Close socket [13:38:38]Sock 9.Thread stoped [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:34]accept exits with 7 [13:40:34]New connection [13:40:34]New thread 3066723684 created [13:40:34]Thread 3066580324 joined [13:40:34]Waiting for new connection... [13:40:34] Sock 7.Parse request [13:40:34]Sock 7.Check first char [13:40:34]Sock 7.First char is OK [13:40:34]request: POST /json_proto HTTP/1.0 [13:40:34]Method: POST [13:40:34]URL: /json_proto [13:40:34]Method is POST - this is cgi request [13:40:34]url: /json_proto [13:40:34]query_string will be loaded in cgi processing [13:40:34]execute_cgi json_proto POST (null) [13:40:34]execute_cgi path=json_proto method=POST [13:40:34]POST find Content-Length [13:40:34]Host: 172.17.37.4:8080 [13:40:34]Content-Length: 681 [13:40:34]Content-Type: application/json [13:40:34] [13:40:34]POST finish read [13:40:34]Found Content-Length = 681 [13:40:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 8.020, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:34]execute_script... [13:40:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 8.020, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:34]POST & json_proto [13:40:34]process_json_proto [13:40:34]json parsed OK: [13:40:34]protocol is kg_v1.0 [13:40:34]action value=close_receipt [13:40:34]process_action close_receipt [13:40:34]cmd_close_receipt [13:40:34]MH_GetDate [13:40:34]Write to MH i2c: F0 00 00 B5 5C 00 [13:40:34]Write i2c OK [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: F0 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: F0 09 00 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: F0 09 00 B5 5C 00 DD CF 45 67 B8 5A 43 67 1D [13:40:34]GetLastDocTimeStamp 1732628325 [13:40:34]current date 1732628445 [13:40:34]FM_GetShiftState [13:40:34]SAM_PROTO_GetShiftState [13:40:34]wFMCommunicate request_size=4 [13:40:34]MH_SAM_APDU [13:40:34]CAPDU: 80 13 01 00 [13:40:34]Write to MH i2c: E2 08 00 B6 5C 80 13 01 00 00 00 00 00 8F [13:40:34]Write i2c OK [13:40:34]MH_I2C_Read... [13:40:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:34]Read from MH i2c: E2 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 0E 00 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 0E 00 B6 5C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 F0 [13:40:34]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:40:34]wFMCommunicate OK [13:40:34]SAM_PROTO_GetShiftState done [13:40:34]FM_GetShiftState done [13:40:34]opened in 1732579736 [13:40:34]opened+sec_in_day 1732666136 [13:40:34]quantity*price = 60069 [13:40:34]sum+1 = 60071 [13:40:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 74 26.11.2024 13:40 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123220 ФПД: 95247019437513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T134045&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123220&fm=95247019437513&tin=02508201610067®Number=0000000000092681&sum=60000 [13:40:35]StoreToDocumentArchive [13:40:35]shift 557 fd 123220 [13:40:35]save to /storage/0557/doc_00123220 [13:40:35]save last doc name /storage/0557/doc_00123220 to /storage/kkm_last_doc_name [13:40:35]save OK [13:40:35]Clear old archive folders... [13:40:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:40:35]tlvbuf is 020B0370 [13:40:35]SAM_PROTO_ClearQueue [13:40:35]wFMCommunicate request_size=4 [13:40:35]MH_SAM_APDU [13:40:35]CAPDU: 80 09 00 00 [13:40:35]Write to MH i2c: E2 08 00 C3 5C 80 09 00 00 00 00 00 00 91 [13:40:35]Write i2c OK [13:40:35]MH_I2C_Read... [13:40:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:35]Read from MH i2c: E2 [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: E2 03 00 [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: E2 03 00 C3 5C 00 90 00 93 [13:40:35]RAPDU: 90 00 [13:40:35]wFMCommunicate OK [13:40:35]SAM_PROTO_ClearQueue done [13:40:35]KKMCreateOFDPacket [13:40:35]OFDProtocolAddRootSTLVToBuf [13:40:35]FM_MakeSignedData [13:40:35]FM_MakeSignedData [13:40:35]SAM_PROTO_SignData [13:40:35]wFMCommunicate request_size=4 [13:40:35]MH_SAM_APDU [13:40:35]CAPDU: 80 0D 01 02 [13:40:35]Write to MH i2c: E2 08 00 C4 5C 80 0D 01 02 00 00 00 00 99 [13:40:35]Write i2c OK [13:40:35]MH_I2C_Read... [13:40:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:35]Read from MH i2c: E2 [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: E2 03 00 [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: E2 03 00 C4 5C 00 90 00 94 [13:40:35]RAPDU: 90 00 [13:40:35]wFMCommunicate OK [13:40:35]wFMCommunicate request_size=255 [13:40:35]MH_SAM_APDU [13:40:35]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 35 FF 03 08 00 03 54 1F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 DD CF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 54 E1 01 00 35 04 06 00 [13:40:35]Write to MH i2c: E2 02 01 C5 5C 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 35 FF 03 08 00 03 54 1F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 DD CF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 54 E1 01 00 35 04 06 00 00 00 F9 [13:40:35]Write i2c OK [13:40:35]MH_I2C_Read... [13:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:35]Read from MH i2c: E2 [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: E2 03 00 [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: E2 03 00 C5 5C 00 90 00 95 [13:40:35]RAPDU: 90 00 [13:40:35]wFMCommunicate OK [13:40:35]wFMCommunicate request_size=11 [13:40:35]MH_SAM_APDU [13:40:35]CAPDU: 80 0D 02 02 06 56 A0 6C C2 6D C9 [13:40:35]Write to MH i2c: E2 0E 00 C6 5C 80 0D 02 02 06 00 56 A0 6C C2 6D C9 00 00 02 [13:40:35]Write i2c OK [13:40:35]MH_I2C_Read... [13:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:35]Read from MH i2c: E2 [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: E2 03 00 [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: E2 03 00 C6 5C 00 90 00 96 [13:40:35]RAPDU: 90 00 [13:40:35]wFMCommunicate OK [13:40:35]wFMCommunicate request_size=4 [13:40:35]MH_SAM_APDU [13:40:35]CAPDU: 80 0D 03 02 [13:40:35]Write to MH i2c: E2 08 00 C7 5C 80 0D 03 02 00 00 00 00 9E [13:40:35]Write i2c OK [13:40:35]MH_I2C_Read... [13:40:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:36]Read from MH i2c: E2 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 0B 00 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 0B 00 C7 5C 00 38 82 2F 85 0F 98 EB F6 90 00 95 [13:40:36]RAPDU: 38 82 2F 85 0F 98 EB F6 90 00 [13:40:36]wFMCommunicate OK [13:40:36]SAM_PROTO_SignData done [13:40:36]FM_MakeSignedData done [13:40:36]CreateOFDProtocolMessage [13:40:36]wFMCommunicate request_size=4 [13:40:36]MH_SAM_APDU [13:40:36]CAPDU: 80 11 00 00 [13:40:36]Write to MH i2c: E2 08 00 C8 5C 80 11 00 00 00 00 00 00 9E [13:40:36]Write i2c OK [13:40:36]MH_I2C_Read... [13:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:36]Read from MH i2c: E2 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 17 00 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 17 00 C8 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F5 [13:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:40:36]wFMCommunicate OK [13:40:36]CreateOFDProtocolMessage done [13:40:36]OFDSenderStorePacket 123220 [13:40:36]StoreOFDPacket docnum=123220 [13:40:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 F3 45 08 01 A4 57 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 35 FF 03 08 00 03 54 1F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 DD CF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 54 E1 01 00 35 04 06 00 56 A0 6C C2 6D C9 38 82 2F 85 0F 98 EB F6 [13:40:36]CheckFolder [13:40:36]dirname=/storage/ofd_packets [13:40:36]CheckFolder done [13:40:36]ProducePacketName [13:40:36]name=ofd_packets/00123220 [13:40:36]NVStorageSaveData ofd_packets/00123220 [13:40:36]File name is /storage/ofd_packets/00123220 [13:40:36]Write 302 bytes [13:40:36]NVStorageSaveData done [13:40:36]OFDSenderStorePacket done [13:40:36]KKMCreateOFDPacket done [13:40:36]NVStorageSaveData kkm_last_timestamp [13:40:36]File name is /storage/kkm_last_timestamp [13:40:36]Write 4 bytes [13:40:36]NVStorageSaveData done [13:40:36]ExternCall_PrintAddStr [13:40:36]wPrintStart [13:40:36]Write to MH i2c: 01 00 00 C9 5C 25 [13:40:36]Write i2c OK [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: 01 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: 01 07 00 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: 01 07 00 C9 5C 00 00 00 00 00 FF 0F 3A [13:40:36]RasterBufferAndPrint [13:40:36]line Счет N : (1)718053 [13:40:36]line ИНН: 02508201610067 [13:40:36]line Контрольно-Кассовый Чек [13:40:36]line ПРОДАЖА [13:40:36]line ТРК (МРК, ГНК) : 6 [13:40:36]line Товар: 2710194210 [13:40:36]line ДТ(л)-К-5 [13:40:36]line 8.020 * 74.90 [13:40:36]line = 600.70 [13:40:36]line НДС 12% НСП 1% [13:40:36]line > о реализуемом товаре [13:40:36]line ОКРУГЛЕНИЕ: -0.70 [13:40:36]line ИТОГО: 600.00 [13:40:36]line Внесено: 600.00 [13:40:36]line СДАЧА: 0.00 [13:40:36]line НСП 1% : 5.32 [13:40:36]line НДС 12% : 63.79 [13:40:36]line Наличными: 600.00 [13:40:36]line Безнал.: 0.00 [13:40:36]line Место: АЗС № 64 "Партнер Нефть" [13:40:36]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:40:36]line СНО: Общий режим [13:40:36]line Чек 74 26.11.2024 13:40 [13:40:36]line Смена: 557 ФФД: 1.0 [13:40:36]line ЗНМ: 0300000033 [13:40:36]line РНМ: 0000000000092681 [13:40:36]line Версия ККМ: 001 [13:40:36]line ФМ: 0000000000874881 [13:40:36]line ФД: 123220 [13:40:36]line ФПД: 95247019437513 [13:40:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T134045&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123220&fm=95247019437513&tin=02508201610067®Number=0000000000092681&sum=60000 [13:40:36]OFD Sender: Processing packet 123220 [packets to send 7, broken 6] [13:40:36]ProducePacketName [13:40:36]name=ofd_packets/00123220 [13:40:36]OFD Sender: To server: pG, [13:40:36]CommunicateWithHost lk.salyk.kg:30040 [13:40:36]ConnectInit lk.salyk.kg [13:40:36]written 0, free lines is 4095 [13:40:36]Connected sock=10 [13:40:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 F3 45 08 01 A4 57 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 35 FF 03 08 00 03 54 1F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 DD CF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 54 E1 01 00 35 04 06 00 56 A0 6C C2 6D C9 38 82 2F 85 0F 98 EB F6 [13:40:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 C3 50 47 00 DB 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 54 E1 01 00 F4 03 04 00 9F 7B 45 67 B6 04 01 00 00 9B BB 8B EC E2 7C 50 D0 [13:40:36]CommunicateWithHost err = 0 [13:40:36]CheckOFDResponse [13:40:36]1017 (14) - 77093643461234 [13:40:36]1041 (16) - 0000000000874881 [13:40:36]1040 (4) - 123220 [13:40:36]1012 (4) - 26.11.2024 07:41 [13:40:36]1206 (1) - 0 [13:40:36]OFD Sender: Remove packet 123220 [13:40:36]ProducePacketName [13:40:36]name=ofd_packets/00123220 [13:40:36]NVStorageDeleteData [13:40:36]Write to MH i2c: 01 00 00 F4 5C 50 [13:40:36]Write i2c OK [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: 01 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: 01 07 00 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: 01 07 00 F4 5C 00 00 00 00 00 4A 0C AD [13:40:36]RasterBufferAndPrint [13:40:36]line [13:40:36]line [13:40:36]line [13:40:36]line [13:40:36]line [13:40:36]written 0, free lines is 3150 [13:40:36]MH_Cut [13:40:36]Write to MH i2c: D1 01 00 FB 5C 01 29 [13:40:36]Write i2c OK [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: D1 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: D1 01 00 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: D1 01 00 FB 5C 00 28 [13:40:36]Write to MH i2c: 01 00 00 FC 5C 58 [13:40:36]Write i2c OK [13:40:36]MH_I2C_Read... [13:40:37]OFD Sender: No OFD packet to send [13:40:38]*** Cut start [13:40:38]*** Partial cut [13:40:38]*** CUTSNS_PIN = 1 [13:40:38]*** CUTSNS_PIN = 0 [13:40:38]*** Brake cut motor [13:40:38]Read from MH i2c: 01 [13:40:38]MH_I2C_Read... [13:40:38]*** Stop cut motor [13:40:38]Read from MH i2c: 01 07 00 [13:40:38]MH_I2C_Read... [13:40:38]*** Cut end [13:40:38]Read from MH i2c: 01 07 00 FC 5C 00 00 00 00 00 FF 0F 6D [13:40:38]process_action close_receipt done [13:40:38]requested_data is exist [13:40:38]produce_requested_data [13:40:38]requested_item fm.sn is exist - process it [13:40:38]wFMCommunicate request_size=4 [13:40:38]MH_SAM_APDU [13:40:38]CAPDU: 80 11 00 00 [13:40:38]Write to MH i2c: E2 08 00 FD 5C 80 11 00 00 00 00 00 00 D3 [13:40:38]Write i2c OK [13:40:38]MH_I2C_Read... [13:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:38]Read from MH i2c: E2 [13:40:38]MH_I2C_Read... [13:40:38]Read from MH i2c: E2 17 00 [13:40:38]MH_I2C_Read... [13:40:38]Read from MH i2c: E2 17 00 FD 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2A [13:40:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:40:38]wFMCommunicate OK [13:40:38]requested_item fd.num is exist - process it [13:40:38]SAM_PROTO_GetFieldsCounters [13:40:38]wFMCommunicate request_size=4 [13:40:38]MH_SAM_APDU [13:40:38]CAPDU: 80 13 00 00 [13:40:38]Write to MH i2c: E2 08 00 FE 5C 80 13 00 00 00 00 00 00 D6 [13:40:38]Write i2c OK [13:40:38]MH_I2C_Read... [13:40:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:39]Read from MH i2c: E2 [13:40:39]MH_I2C_Read... [13:40:39]Read from MH i2c: E2 62 00 [13:40:39]MH_I2C_Read... [13:40:39]Read from MH i2c: E2 62 00 FE 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 54 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [13:40:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 54 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:39]wFMCommunicate OK [13:40:39]SAM_PROTO_GetFieldsCounters done [13:40:39]requested_item shift.num is exist - process it [13:40:39]requested_item shift.opened is exist - process it [13:40:39]req_shift_opened [13:40:39]FM_GetShiftState [13:40:39]SAM_PROTO_GetShiftState [13:40:39]wFMCommunicate request_size=4 [13:40:39]MH_SAM_APDU [13:40:39]CAPDU: 80 13 01 00 [13:40:39]Write to MH i2c: E2 08 00 FF 5C 80 13 01 00 00 00 00 00 D8 [13:40:39]Write i2c OK [13:40:39]MH_I2C_Read... [13:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:39]Read from MH i2c: E2 [13:40:39]MH_I2C_Read... [13:40:39]Read from MH i2c: E2 0E 00 [13:40:39]MH_I2C_Read... [13:40:39]Read from MH i2c: E2 0E 00 FF 5C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 39 [13:40:39]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:40:39]wFMCommunicate OK [13:40:39]SAM_PROTO_GetShiftState done [13:40:39]FM_GetShiftState done [13:40:39]req_shift_opened done [13:40:39]requested_item shift.open_date is exist - process it [13:40:39]req_shift_open_date [13:40:39]req_shift_open_date done [13:40:39]produce_requested_data done [13:40:39]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123220,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:40:39]process_action_free close_receipt [13:40:39]json_value_free [13:40:39]json_value_free done [13:40:39]process_json_proto returns [13:40:39]Send response to host [13:40:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123220,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:40:39]free response buf [13:40:39]execute_script done [13:40:39]execute_script returns [13:40:39]free content buf [13:40:39]Sock 7.Close socket [13:40:39]Sock 7.Thread stoped [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:07]accept exits with 9 [13:42:07]New connection [13:42:07]New thread 3066580324 created [13:42:07]Thread 3066723684 joined [13:42:07]Waiting for new connection... [13:42:07] Sock 9.Parse request [13:42:07]Sock 9.Check first char [13:42:07]Sock 9.First char is OK [13:42:07]request: POST /json_proto HTTP/1.0 [13:42:07]Method: POST [13:42:07]URL: /json_proto [13:42:07]Method is POST - this is cgi request [13:42:07]url: /json_proto [13:42:07]query_string will be loaded in cgi processing [13:42:07]execute_cgi json_proto POST (null) [13:42:07]execute_cgi path=json_proto method=POST [13:42:07]POST find Content-Length [13:42:07]Host: 172.17.37.4:8080 [13:42:07]Content-Length: 758 [13:42:07]Content-Type: application/json [13:42:07] [13:42:07]POST finish read [13:42:07]Found Content-Length = 758 [13:42:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30036711", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:07]execute_script... [13:42:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30036711", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:07]POST & json_proto [13:42:07]process_json_proto [13:42:07]json parsed OK: [13:42:07]protocol is kg_v1.0 [13:42:07]action value=close_receipt [13:42:07]process_action close_receipt [13:42:07]cmd_close_receipt [13:42:07]MH_GetDate [13:42:07]Write to MH i2c: F0 00 00 00 5D 4C [13:42:07]Write i2c OK [13:42:07]MH_I2C_Read... [13:42:07]Read from MH i2c: F0 [13:42:07]MH_I2C_Read... [13:42:07]Read from MH i2c: F0 09 00 [13:42:07]MH_I2C_Read... [13:42:07]Read from MH i2c: F0 09 00 00 5D 00 3A D0 45 67 B8 5A 43 67 C7 [13:42:07]GetLastDocTimeStamp 1732628445 [13:42:07]current date 1732628538 [13:42:07]FM_GetShiftState [13:42:07]SAM_PROTO_GetShiftState [13:42:07]wFMCommunicate request_size=4 [13:42:07]MH_SAM_APDU [13:42:07]CAPDU: 80 13 01 00 [13:42:07]Write to MH i2c: E2 08 00 01 5D 80 13 01 00 00 00 00 00 DB [13:42:07]Write i2c OK [13:42:07]MH_I2C_Read... [13:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:07]Read from MH i2c: E2 [13:42:07]MH_I2C_Read... [13:42:07]Read from MH i2c: E2 0E 00 [13:42:07]MH_I2C_Read... [13:42:07]Read from MH i2c: E2 0E 00 01 5D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 3C [13:42:07]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:42:07]wFMCommunicate OK [13:42:07]SAM_PROTO_GetShiftState done [13:42:07]FM_GetShiftState done [13:42:07]opened in 1732579736 [13:42:07]opened+sec_in_day 1732666136 [13:42:07]quantity*price = 0 [13:42:07]sum+1 = 1 [13:42:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 75 26.11.2024 13:42 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: ТК ГПНА Online 30036711 ФМ: 0000000000874881 ФД: 123221 ФПД: 209160085594376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T134218&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123221&fm=209160085594376&tin=02508201610067®Number=0000000000092681&sum=0 [13:42:08]StoreToDocumentArchive [13:42:08]shift 557 fd 123221 [13:42:08]save to /storage/0557/doc_00123221 [13:42:08]save last doc name /storage/0557/doc_00123221 to /storage/kkm_last_doc_name [13:42:08]save OK [13:42:08]Clear old archive folders... [13:42:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:42:08]tlvbuf is 01F42720 [13:42:08]SAM_PROTO_ClearQueue [13:42:08]wFMCommunicate request_size=4 [13:42:08]MH_SAM_APDU [13:42:08]CAPDU: 80 09 00 00 [13:42:08]Write to MH i2c: E2 08 00 0E 5D 80 09 00 00 00 00 00 00 DD [13:42:08]Write i2c OK [13:42:08]MH_I2C_Read... [13:42:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:08]Read from MH i2c: E2 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 03 00 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 03 00 0E 5D 00 90 00 DF [13:42:08]RAPDU: 90 00 [13:42:08]wFMCommunicate OK [13:42:08]SAM_PROTO_ClearQueue done [13:42:08]KKMCreateOFDPacket [13:42:08]OFDProtocolAddRootSTLVToBuf [13:42:08]FM_MakeSignedData [13:42:08]FM_MakeSignedData [13:42:08]SAM_PROTO_SignData [13:42:08]wFMCommunicate request_size=4 [13:42:08]MH_SAM_APDU [13:42:08]CAPDU: 80 0D 01 02 [13:42:08]Write to MH i2c: E2 08 00 0F 5D 80 0D 01 02 00 00 00 00 E5 [13:42:08]Write i2c OK [13:42:08]MH_I2C_Read... [13:42:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:08]Read from MH i2c: E2 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 03 00 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 03 00 0F 5D 00 90 00 E0 [13:42:08]RAPDU: 90 00 [13:42:08]wFMCommunicate OK [13:42:08]wFMCommunicate request_size=255 [13:42:08]MH_SAM_APDU [13:42:08]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 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 3A D0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 55 E1 01 00 35 04 06 00 [13:42:08]Write to MH i2c: E2 02 01 10 5D 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 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 3A D0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 55 E1 01 00 35 04 06 00 00 00 A9 [13:42:08]Write i2c OK [13:42:08]MH_I2C_Read... [13:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:09]Read from MH i2c: E2 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: E2 03 00 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: E2 03 00 10 5D 00 90 00 E1 [13:42:09]RAPDU: 90 00 [13:42:09]wFMCommunicate OK [13:42:09]wFMCommunicate request_size=11 [13:42:09]MH_SAM_APDU [13:42:09]CAPDU: 80 0D 02 02 06 BE 3A E0 9A 61 08 [13:42:09]Write to MH i2c: E2 0E 00 11 5D 80 0D 02 02 06 00 BE 3A E0 9A 61 08 00 00 CF [13:42:09]Write i2c OK [13:42:09]MH_I2C_Read... [13:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:09]Read from MH i2c: E2 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: E2 03 00 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: E2 03 00 11 5D 00 90 00 E2 [13:42:09]RAPDU: 90 00 [13:42:09]wFMCommunicate OK [13:42:09]wFMCommunicate request_size=4 [13:42:09]MH_SAM_APDU [13:42:09]CAPDU: 80 0D 03 02 [13:42:09]Write to MH i2c: E2 08 00 12 5D 80 0D 03 02 00 00 00 00 EA [13:42:09]Write i2c OK [13:42:09]MH_I2C_Read... [13:42:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:09]Read from MH i2c: E2 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: E2 0B 00 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: E2 0B 00 12 5D 00 4A 17 84 11 10 7A FC 2B 90 00 92 [13:42:09]RAPDU: 4A 17 84 11 10 7A FC 2B 90 00 [13:42:09]wFMCommunicate OK [13:42:09]SAM_PROTO_SignData done [13:42:09]FM_MakeSignedData done [13:42:09]CreateOFDProtocolMessage [13:42:09]wFMCommunicate request_size=4 [13:42:09]MH_SAM_APDU [13:42:09]CAPDU: 80 11 00 00 [13:42:09]Write to MH i2c: E2 08 00 13 5D 80 11 00 00 00 00 00 00 EA [13:42:09]Write i2c OK [13:42:09]MH_I2C_Read... [13:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:09]Read from MH i2c: E2 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: E2 17 00 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: E2 17 00 13 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 41 [13:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:42:09]wFMCommunicate OK [13:42:09]CreateOFDProtocolMessage done [13:42:09]OFDSenderStorePacket 123221 [13:42:09]StoreOFDPacket docnum=123221 [13:42:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 9A 02 08 01 D2 7F 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 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 3A D0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 55 E1 01 00 35 04 06 00 BE 3A E0 9A 61 08 4A 17 84 11 10 7A FC 2B [13:42:09]CheckFolder [13:42:09]dirname=/storage/ofd_packets [13:42:09]CheckFolder done [13:42:09]ProducePacketName [13:42:09]name=ofd_packets/00123221 [13:42:09]NVStorageSaveData ofd_packets/00123221 [13:42:09]File name is /storage/ofd_packets/00123221 [13:42:09]Write 302 bytes [13:42:09]NVStorageSaveData done [13:42:09]OFDSenderStorePacket done [13:42:09]KKMCreateOFDPacket done [13:42:09]NVStorageSaveData kkm_last_timestamp [13:42:09]File name is /storage/kkm_last_timestamp [13:42:09]Write 4 bytes [13:42:09]NVStorageSaveData done [13:42:09]ExternCall_PrintAddStr [13:42:09]wPrintStart [13:42:09]Write to MH i2c: 01 00 00 14 5D 71 [13:42:09]Write i2c OK [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: 01 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: 01 07 00 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: 01 07 00 14 5D 00 00 00 00 00 FF 0F 86 [13:42:09]RasterBufferAndPrint [13:42:09]line Счет N : (1)718052 [13:42:09]line ИНН: 02508201610067 [13:42:09]line Контрольно-Кассовый Чек [13:42:09]line ПРОДАЖА [13:42:09]line ТРК (МРК, ГНК) : 5 [13:42:09]line Товар: 2710194210 [13:42:09]line ДТ(л)-К-5 [13:42:09]line 50.000 * 0.00 [13:42:09]line = 0.00 [13:42:09]line НДС 12% НСП 1% [13:42:09]line > о реализуемом товаре [13:42:09]line ИТОГО: 0.00 [13:42:09]line НСП 1% : 0.00 [13:42:09]line НДС 12% : 0.00 [13:42:09]line Наличными: 0.00 [13:42:09]line Безнал.: 0.00 [13:42:09]line Место: АЗС № 64 "Партнер Нефть" [13:42:09]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:42:09]line СНО: Общий режим [13:42:09]line Чек 75 26.11.2024 13:42 [13:42:09]line Смена: 557 ФФД: 1.0 [13:42:09]line ЗНМ: 0300000033 [13:42:09]line РНМ: 0000000000092681 [13:42:09]line Версия ККМ: 001 [13:42:09]line Талоны: ТК ГПНА Online [13:42:09]line 30036711 [13:42:09]line ФМ: 0000000000874881 [13:42:09]line ФД: 123221 [13:42:09]line ФПД: 209160085594376 [13:42:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T134218&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123221&fm=209160085594376&tin=02508201610067®Number=0000000000092681&sum=0 [13:42:09]written 0, free lines is 4095 [13:42:09]OFD Sender: Processing packet 123221 [packets to send 7, broken 6] [13:42:09]ProducePacketName [13:42:09]name=ofd_packets/00123221 [13:42:09]OFD Sender: To server: pG, [13:42:09]CommunicateWithHost lk.salyk.kg:30040 [13:42:09]ConnectInit lk.salyk.kg [13:42:09]Connected sock=7 [13:42:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 9A 02 08 01 D2 7F 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 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 3A D0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 55 E1 01 00 35 04 06 00 BE 3A E0 9A 61 08 4A 17 84 11 10 7A FC 2B [13:42:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 BC 62 47 00 29 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 55 E1 01 00 F4 03 04 00 FC 7B 45 67 B6 04 01 00 00 07 A5 68 FD 16 8C 9F 94 [13:42:09]CommunicateWithHost err = 0 [13:42:09]CheckOFDResponse [13:42:09]1017 (14) - 77093643461234 [13:42:09]1041 (16) - 0000000000874881 [13:42:09]1040 (4) - 123221 [13:42:09]1012 (4) - 26.11.2024 07:42 [13:42:09]1206 (1) - 0 [13:42:09]OFD Sender: Remove packet 123221 [13:42:09]ProducePacketName [13:42:09]name=ofd_packets/00123221 [13:42:09]NVStorageDeleteData [13:42:10]Write to MH i2c: 01 00 00 3E 5D 9B [13:42:10]Write i2c OK [13:42:10]MH_I2C_Read... [13:42:10]Read from MH i2c: 01 [13:42:10]MH_I2C_Read... [13:42:10]Read from MH i2c: 01 07 00 [13:42:10]MH_I2C_Read... [13:42:10]Read from MH i2c: 01 07 00 3E 5D 00 00 00 00 00 61 0C 0F [13:42:10]RasterBufferAndPrint [13:42:10]line [13:42:10]line [13:42:10]line [13:42:10]line [13:42:10]line [13:42:10]written 0, free lines is 3175 [13:42:10]MH_Cut [13:42:10]Write to MH i2c: D1 01 00 45 5D 01 74 [13:42:10]Write i2c OK [13:42:10]MH_I2C_Read... [13:42:10]Read from MH i2c: D1 [13:42:10]MH_I2C_Read... [13:42:10]Read from MH i2c: D1 01 00 [13:42:10]MH_I2C_Read... [13:42:10]Read from MH i2c: D1 01 00 45 5D 00 73 [13:42:10]Write to MH i2c: 01 00 00 46 5D A3 [13:42:10]Write i2c OK [13:42:10]MH_I2C_Read... [13:42:10]OFD Sender: No OFD packet to send [13:42:11]*** Cut start [13:42:11]*** Partial cut [13:42:11]*** CUTSNS_PIN = 1 [13:42:11]*** CUTSNS_PIN = 0 [13:42:11]*** Brake cut motor [13:42:11]Read from MH i2c: 01 [13:42:11]MH_I2C_Read... [13:42:11]*** Stop cut motor [13:42:11]*** Cut end [13:42:11]Read from MH i2c: 01 07 00 [13:42:11]MH_I2C_Read... [13:42:11]Read from MH i2c: 01 07 00 46 5D 00 00 00 00 00 FF 0F B8 [13:42:11]process_action close_receipt done [13:42:11]requested_data is exist [13:42:11]produce_requested_data [13:42:11]requested_item fm.sn is exist - process it [13:42:11]wFMCommunicate request_size=4 [13:42:11]MH_SAM_APDU [13:42:11]CAPDU: 80 11 00 00 [13:42:11]Write to MH i2c: E2 08 00 47 5D 80 11 00 00 00 00 00 00 1E [13:42:12]Write i2c OK [13:42:12]MH_I2C_Read... [13:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:12]Read from MH i2c: E2 [13:42:12]MH_I2C_Read... [13:42:12]Read from MH i2c: E2 17 00 [13:42:12]MH_I2C_Read... [13:42:12]Read from MH i2c: E2 17 00 47 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 75 [13:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:42:12]wFMCommunicate OK [13:42:12]requested_item fd.num is exist - process it [13:42:12]SAM_PROTO_GetFieldsCounters [13:42:12]wFMCommunicate request_size=4 [13:42:12]MH_SAM_APDU [13:42:12]CAPDU: 80 13 00 00 [13:42:12]Write to MH i2c: E2 08 00 48 5D 80 13 00 00 00 00 00 00 21 [13:42:12]Write i2c OK [13:42:12]MH_I2C_Read... [13:42:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:12]Read from MH i2c: E2 [13:42:12]MH_I2C_Read... [13:42:12]Read from MH i2c: E2 62 00 [13:42:12]MH_I2C_Read... [13:42:12]Read from MH i2c: E2 62 00 48 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 55 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [13:42:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 55 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:42:12]wFMCommunicate OK [13:42:12]SAM_PROTO_GetFieldsCounters done [13:42:12]requested_item shift.num is exist - process it [13:42:12]requested_item shift.opened is exist - process it [13:42:12]req_shift_opened [13:42:12]FM_GetShiftState [13:42:12]SAM_PROTO_GetShiftState [13:42:12]wFMCommunicate request_size=4 [13:42:12]MH_SAM_APDU [13:42:12]CAPDU: 80 13 01 00 [13:42:12]Write to MH i2c: E2 08 00 49 5D 80 13 01 00 00 00 00 00 23 [13:42:12]Write i2c OK [13:42:12]MH_I2C_Read... [13:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:12]Read from MH i2c: E2 [13:42:12]MH_I2C_Read... [13:42:12]Read from MH i2c: E2 0E 00 [13:42:12]MH_I2C_Read... [13:42:12]Read from MH i2c: E2 0E 00 49 5D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 84 [13:42:12]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:42:12]wFMCommunicate OK [13:42:12]SAM_PROTO_GetShiftState done [13:42:12]FM_GetShiftState done [13:42:12]req_shift_opened done [13:42:12]requested_item shift.open_date is exist - process it [13:42:12]req_shift_open_date [13:42:12]req_shift_open_date done [13:42:12]produce_requested_data done [13:42:12]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123221,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:42:12]process_action_free close_receipt [13:42:12]json_value_free [13:42:12]json_value_free done [13:42:12]process_json_proto returns [13:42:12]Send response to host [13:42:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123221,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:42:12]free response buf [13:42:12]execute_script done [13:42:12]execute_script returns [13:42:12]free content buf [13:42:12]Sock 9.Close socket [13:42:12]Sock 9.Thread stoped [13:42:15]OFD Sender: No OFD packet to send [13:42:20]OFD Sender: No OFD packet to send [13:42:25]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:45]OFD Sender: No OFD packet to send [13:42:50]OFD Sender: No OFD packet to send [13:42:55]OFD Sender: No OFD packet to send [13:43:00]OFD Sender: No OFD packet to send [13:43:05]OFD Sender: No OFD packet to send [13:43:10]OFD Sender: No OFD packet to send [13:43:15]OFD Sender: No OFD packet to send [13:43:20]OFD Sender: No OFD packet to send [13:43:25]OFD Sender: No OFD packet to send [13:43:30]OFD Sender: No OFD packet to send [13:43:35]OFD Sender: No OFD packet to send [13:43:39]accept exits with 10 [13:43:39]New connection [13:43:39]New thread 3066723684 created [13:43:40]Thread 3066580324 joined [13:43:40]Waiting for new connection... [13:43:40] Sock 10.Parse request [13:43:40]Sock 10.Check first char [13:43:40]Sock 10.First char is OK [13:43:40]request: POST /json_proto HTTP/1.0 [13:43:40]Method: POST [13:43:40]URL: /json_proto [13:43:40]Method is POST - this is cgi request [13:43:40]url: /json_proto [13:43:40]query_string will be loaded in cgi processing [13:43:40]execute_cgi json_proto POST (null) [13:43:40]execute_cgi path=json_proto method=POST [13:43:40]POST find Content-Length [13:43:40]Host: 172.17.37.4:8080 [13:43:40]Content-Length: 758 [13:43:40]Content-Type: application/json [13:43:40] [13:43:40]POST finish read [13:43:40]Found Content-Length = 758 [13:43:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30036711", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:40]execute_script... [13:43:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30036711", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:40]POST & json_proto [13:43:40]process_json_proto [13:43:40]json parsed OK: [13:43:40]protocol is kg_v1.0 [13:43:40]action value=close_receipt [13:43:40]process_action close_receipt [13:43:40]cmd_close_receipt [13:43:40]MH_GetDate [13:43:40]Write to MH i2c: F0 00 00 4A 5D 96 [13:43:40]Write i2c OK [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: F0 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: F0 09 00 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: F0 09 00 4A 5D 00 96 D0 45 67 B8 5A 43 67 6D [13:43:40]GetLastDocTimeStamp 1732628538 [13:43:40]current date 1732628630 [13:43:40]FM_GetShiftState [13:43:40]SAM_PROTO_GetShiftState [13:43:40]wFMCommunicate request_size=4 [13:43:40]MH_SAM_APDU [13:43:40]CAPDU: 80 13 01 00 [13:43:40]Write to MH i2c: E2 08 00 4B 5D 80 13 01 00 00 00 00 00 25 [13:43:40]Write i2c OK [13:43:40]MH_I2C_Read... [13:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:40]Read from MH i2c: E2 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 0E 00 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 0E 00 4B 5D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 86 [13:43:40]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:43:40]wFMCommunicate OK [13:43:40]SAM_PROTO_GetShiftState done [13:43:40]FM_GetShiftState done [13:43:40]opened in 1732579736 [13:43:40]opened+sec_in_day 1732666136 [13:43:40]quantity*price = 0 [13:43:40]sum+1 = 1 [13:43:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 76 26.11.2024 13:43 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: ТК ГПНА Online 30036711 ФМ: 0000000000874881 ФД: 123222 ФПД: 209502695224556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T134350&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123222&fm=209502695224556&tin=02508201610067®Number=0000000000092681&sum=0 [13:43:41]StoreToDocumentArchive [13:43:41]shift 557 fd 123222 [13:43:41]save to /storage/0557/doc_00123222 [13:43:41]save last doc name /storage/0557/doc_00123222 to /storage/kkm_last_doc_name [13:43:41]save OK [13:43:41]Clear old archive folders... [13:43:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:43:41]tlvbuf is 02071650 [13:43:41]SAM_PROTO_ClearQueue [13:43:41]wFMCommunicate request_size=4 [13:43:41]MH_SAM_APDU [13:43:41]CAPDU: 80 09 00 00 [13:43:41]Write to MH i2c: E2 08 00 58 5D 80 09 00 00 00 00 00 00 27 [13:43:41]Write i2c OK [13:43:41]MH_I2C_Read... [13:43:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:41]Read from MH i2c: E2 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 03 00 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 03 00 58 5D 00 90 00 29 [13:43:41]RAPDU: 90 00 [13:43:41]wFMCommunicate OK [13:43:41]SAM_PROTO_ClearQueue done [13:43:41]KKMCreateOFDPacket [13:43:41]OFDProtocolAddRootSTLVToBuf [13:43:41]FM_MakeSignedData [13:43:41]FM_MakeSignedData [13:43:41]SAM_PROTO_SignData [13:43:41]wFMCommunicate request_size=4 [13:43:41]MH_SAM_APDU [13:43:41]CAPDU: 80 0D 01 02 [13:43:41]Write to MH i2c: E2 08 00 59 5D 80 0D 01 02 00 00 00 00 2F [13:43:41]Write i2c OK [13:43:41]MH_I2C_Read... [13:43:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:41]Read from MH i2c: E2 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 03 00 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 03 00 59 5D 00 90 00 2A [13:43:41]RAPDU: 90 00 [13:43:41]wFMCommunicate OK [13:43:41]wFMCommunicate request_size=255 [13:43:41]MH_SAM_APDU [13:43:41]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 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 96 D0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 56 E1 01 00 35 04 06 00 [13:43:41]Write to MH i2c: E2 02 01 5A 5D 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 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 96 D0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 56 E1 01 00 35 04 06 00 00 00 AC [13:43:41]Write i2c OK [13:43:41]MH_I2C_Read... [13:43:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:41]Read from MH i2c: E2 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 03 00 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 03 00 5A 5D 00 90 00 2B [13:43:41]RAPDU: 90 00 [13:43:41]wFMCommunicate OK [13:43:41]wFMCommunicate request_size=11 [13:43:41]MH_SAM_APDU [13:43:41]CAPDU: 80 0D 02 02 06 BE 8A A5 BA 74 EC [13:43:41]Write to MH i2c: E2 0E 00 5B 5D 80 0D 02 02 06 00 BE 8A A5 BA 74 EC 00 00 45 [13:43:41]Write i2c OK [13:43:41]MH_I2C_Read... [13:43:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:41]Read from MH i2c: E2 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 03 00 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 03 00 5B 5D 00 90 00 2C [13:43:41]RAPDU: 90 00 [13:43:41]wFMCommunicate OK [13:43:41]wFMCommunicate request_size=4 [13:43:41]MH_SAM_APDU [13:43:41]CAPDU: 80 0D 03 02 [13:43:41]Write to MH i2c: E2 08 00 5C 5D 80 0D 03 02 00 00 00 00 34 [13:43:41]Write i2c OK [13:43:41]MH_I2C_Read... [13:43:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:41]Read from MH i2c: E2 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 0B 00 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 0B 00 5C 5D 00 5B 9F 68 DC 08 D5 99 95 90 00 7E [13:43:41]RAPDU: 5B 9F 68 DC 08 D5 99 95 90 00 [13:43:41]wFMCommunicate OK [13:43:41]SAM_PROTO_SignData done [13:43:41]FM_MakeSignedData done [13:43:41]CreateOFDProtocolMessage [13:43:41]wFMCommunicate request_size=4 [13:43:41]MH_SAM_APDU [13:43:41]CAPDU: 80 11 00 00 [13:43:41]Write to MH i2c: E2 08 00 5D 5D 80 11 00 00 00 00 00 00 34 [13:43:41]Write i2c OK [13:43:41]MH_I2C_Read... [13:43:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:41]Read from MH i2c: E2 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 17 00 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 17 00 5D 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8B [13:43:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:43:41]wFMCommunicate OK [13:43:41]CreateOFDProtocolMessage done [13:43:41]OFDSenderStorePacket 123222 [13:43:41]StoreOFDPacket docnum=123222 [13:43:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 F5 B3 08 01 6C 97 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 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 96 D0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 56 E1 01 00 35 04 06 00 BE 8A A5 BA 74 EC 5B 9F 68 DC 08 D5 99 95 [13:43:41]CheckFolder [13:43:41]dirname=/storage/ofd_packets [13:43:41]CheckFolder done [13:43:41]ProducePacketName [13:43:41]name=ofd_packets/00123222 [13:43:41]NVStorageSaveData ofd_packets/00123222 [13:43:41]File name is /storage/ofd_packets/00123222 [13:43:41]Write 302 bytes [13:43:41]NVStorageSaveData done [13:43:41]OFDSenderStorePacket done [13:43:41]KKMCreateOFDPacket done [13:43:41]NVStorageSaveData kkm_last_timestamp [13:43:41]File name is /storage/kkm_last_timestamp [13:43:41]Write 4 bytes [13:43:41]NVStorageSaveData done [13:43:41]ExternCall_PrintAddStr [13:43:41]wPrintStart [13:43:41]Write to MH i2c: 01 00 00 5E 5D BB [13:43:41]Write i2c OK [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: 01 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: 01 07 00 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: 01 07 00 5E 5D 00 00 00 00 00 FF 0F D0 [13:43:41]RasterBufferAndPrint [13:43:41]line Счет N : (1)718054 [13:43:41]line ИНН: 02508201610067 [13:43:41]line Контрольно-Кассовый Чек [13:43:41]line ПРОДАЖА [13:43:41]line ТРК (МРК, ГНК) : 5 [13:43:41]line Товар: 2710194210 [13:43:41]line ДТ(л)-К-5 [13:43:41]line 20.000 * 0.00 [13:43:41]line = 0.00 [13:43:41]line НДС 12% НСП 1% [13:43:41]line > о реализуемом товаре [13:43:41]line ИТОГО: 0.00 [13:43:41]line НСП 1% : 0.00 [13:43:41]line НДС 12% : 0.00 [13:43:41]line Наличными: 0.00 [13:43:41]line Безнал.: 0.00 [13:43:41]line Место: АЗС № 64 "Партнер Нефть" [13:43:41]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:43:41]line СНО: Общий режим [13:43:41]line Чек 76 26.11.2024 13:43 [13:43:41]line Смена: 557 ФФД: 1.0 [13:43:41]line ЗНМ: 0300000033 [13:43:41]line РНМ: 0000000000092681 [13:43:41]line Версия ККМ: 001 [13:43:41]line Талоны: ТК ГПНА Online [13:43:41]line 30036711 [13:43:41]line ФМ: 0000000000874881 [13:43:41]line ФД: 123222 [13:43:41]line ФПД: 209502695224556 [13:43:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T134350&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123222&fm=209502695224556&tin=02508201610067®Number=0000000000092681&sum=0 [13:43:42]written 0, free lines is 4095 [13:43:42]OFD Sender: Processing packet 123222 [packets to send 7, broken 6] [13:43:42]ProducePacketName [13:43:42]name=ofd_packets/00123222 [13:43:42]OFD Sender: To server: pG, [13:43:42]CommunicateWithHost lk.salyk.kg:30040 [13:43:42]ConnectInit lk.salyk.kg [13:43:42]Connected sock=9 [13:43:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 F5 B3 08 01 6C 97 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 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 96 D0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 56 E1 01 00 35 04 06 00 BE 8A A5 BA 74 EC 5B 9F 68 DC 08 D5 99 95 [13:43:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 F2 91 47 00 26 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 56 E1 01 00 F4 03 04 00 59 7C 45 67 B6 04 01 00 00 13 55 D0 3F D7 38 14 C4 [13:43:42]CommunicateWithHost err = 0 [13:43:42]CheckOFDResponse [13:43:42]1017 (14) - 77093643461234 [13:43:42]1041 (16) - 0000000000874881 [13:43:42]1040 (4) - 123222 [13:43:42]1012 (4) - 26.11.2024 07:44 [13:43:42]1206 (1) - 0 [13:43:42]OFD Sender: Remove packet 123222 [13:43:42]ProducePacketName [13:43:42]name=ofd_packets/00123222 [13:43:42]NVStorageDeleteData [13:43:42]Write to MH i2c: 01 00 00 88 5D E5 [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: 01 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: 01 07 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: 01 07 00 88 5D 00 00 00 00 00 62 0C 5A [13:43:42]RasterBufferAndPrint [13:43:42]line [13:43:42]line [13:43:42]line [13:43:42]line [13:43:42]line [13:43:42]written 0, free lines is 3174 [13:43:42]MH_Cut [13:43:42]Write to MH i2c: D1 01 00 8F 5D 01 BE [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: D1 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: D1 01 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: D1 01 00 8F 5D 00 BD [13:43:42]Write to MH i2c: 01 00 00 90 5D ED [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]OFD Sender: No OFD packet to send [13:43:43]*** Cut start [13:43:43]*** Partial cut [13:43:43]*** CUTSNS_PIN = 1 [13:43:43]*** CUTSNS_PIN = 0 [13:43:44]*** Brake cut motor [13:43:44]Read from MH i2c: 01 [13:43:44]MH_I2C_Read... [13:43:44]*** Stop cut motor [13:43:44]*** Cut end [13:43:44]Read from MH i2c: 01 07 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: 01 07 00 90 5D 00 00 00 00 00 FF 0F 02 [13:43:44]process_action close_receipt done [13:43:44]requested_data is exist [13:43:44]produce_requested_data [13:43:44]requested_item fm.sn is exist - process it [13:43:44]wFMCommunicate request_size=4 [13:43:44]MH_SAM_APDU [13:43:44]CAPDU: 80 11 00 00 [13:43:44]Write to MH i2c: E2 08 00 91 5D 80 11 00 00 00 00 00 00 68 [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:44]Read from MH i2c: E2 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 17 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 17 00 91 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BF [13:43:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:43:44]wFMCommunicate OK [13:43:44]requested_item fd.num is exist - process it [13:43:44]SAM_PROTO_GetFieldsCounters [13:43:44]wFMCommunicate request_size=4 [13:43:44]MH_SAM_APDU [13:43:44]CAPDU: 80 13 00 00 [13:43:44]Write to MH i2c: E2 08 00 92 5D 80 13 00 00 00 00 00 00 6B [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:44]Read from MH i2c: E2 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 62 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 62 00 92 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 56 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [13:43:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 56 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:44]wFMCommunicate OK [13:43:44]SAM_PROTO_GetFieldsCounters done [13:43:44]requested_item shift.num is exist - process it [13:43:44]requested_item shift.opened is exist - process it [13:43:44]req_shift_opened [13:43:44]FM_GetShiftState [13:43:44]SAM_PROTO_GetShiftState [13:43:44]wFMCommunicate request_size=4 [13:43:44]MH_SAM_APDU [13:43:44]CAPDU: 80 13 01 00 [13:43:44]Write to MH i2c: E2 08 00 93 5D 80 13 01 00 00 00 00 00 6D [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:44]Read from MH i2c: E2 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 0E 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 0E 00 93 5D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 CE [13:43:44]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:43:44]wFMCommunicate OK [13:43:44]SAM_PROTO_GetShiftState done [13:43:44]FM_GetShiftState done [13:43:44]req_shift_opened done [13:43:44]requested_item shift.open_date is exist - process it [13:43:44]req_shift_open_date [13:43:44]req_shift_open_date done [13:43:44]produce_requested_data done [13:43:44]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123222,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:43:44]process_action_free close_receipt [13:43:44]json_value_free [13:43:44]json_value_free done [13:43:44]process_json_proto returns [13:43:44]Send response to host [13:43:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123222,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:43:44]free response buf [13:43:44]execute_script done [13:43:44]execute_script returns [13:43:44]free content buf [13:43:44]Sock 10.Close socket [13:43:44]Sock 10.Thread stoped [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:10]accept exits with 7 [13:46:10]New connection [13:46:10]New thread 3066580324 created [13:46:10]Thread 3066723684 joined [13:46:10]Waiting for new connection... [13:46:10] Sock 7.Parse request [13:46:10]Sock 7.Check first char [13:46:10]Sock 7.First char is OK [13:46:10]request: POST /json_proto HTTP/1.0 [13:46:10]Method: POST [13:46:10]URL: /json_proto [13:46:10]Method is POST - this is cgi request [13:46:10]url: /json_proto [13:46:10]query_string will be loaded in cgi processing [13:46:10]execute_cgi json_proto POST (null) [13:46:10]execute_cgi path=json_proto method=POST [13:46:10]POST find Content-Length [13:46:10]Host: 172.17.37.4:8080 [13:46:10]Content-Length: 677 [13:46:10]Content-Type: application/json [13:46:10] [13:46:10]POST finish read [13:46:10]Found Content-Length = 677 [13:46:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:10]execute_script... [13:46:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:10]POST & json_proto [13:46:10]process_json_proto [13:46:10]json parsed OK: [13:46:10]protocol is kg_v1.0 [13:46:10]action value=close_receipt [13:46:10]process_action close_receipt [13:46:10]cmd_close_receipt [13:46:10]MH_GetDate [13:46:10]Write to MH i2c: F0 00 00 94 5D E0 [13:46:10]Write i2c OK [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: F0 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: F0 09 00 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: F0 09 00 94 5D 00 2D D1 45 67 B8 5A 43 67 4F [13:46:10]GetLastDocTimeStamp 1732628630 [13:46:10]current date 1732628781 [13:46:10]FM_GetShiftState [13:46:10]SAM_PROTO_GetShiftState [13:46:10]wFMCommunicate request_size=4 [13:46:10]MH_SAM_APDU [13:46:10]CAPDU: 80 13 01 00 [13:46:10]Write to MH i2c: E2 08 00 95 5D 80 13 01 00 00 00 00 00 6F [13:46:10]Write i2c OK [13:46:10]MH_I2C_Read... [13:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:10]Read from MH i2c: E2 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: E2 0E 00 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: E2 0E 00 95 5D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 D0 [13:46:10]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:46:10]wFMCommunicate OK [13:46:10]SAM_PROTO_GetShiftState done [13:46:10]FM_GetShiftState done [13:46:10]opened in 1732579736 [13:46:10]opened+sec_in_day 1732666136 [13:46:10]quantity*price = 20017 [13:46:10]sum+1 = 20019 [13:46:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 77 26.11.2024 13:46 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123223 ФПД: 77214394256102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T134621&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123223&fm=77214394256102&tin=02508201610067®Number=0000000000092681&sum=20000 [13:46:11]StoreToDocumentArchive [13:46:11]shift 557 fd 123223 [13:46:11]save to /storage/0557/doc_00123223 [13:46:11]save last doc name /storage/0557/doc_00123223 to /storage/kkm_last_doc_name [13:46:11]save OK [13:46:11]Clear old archive folders... [13:46:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:46:11]tlvbuf is 01F5EA90 [13:46:11]SAM_PROTO_ClearQueue [13:46:11]wFMCommunicate request_size=4 [13:46:11]MH_SAM_APDU [13:46:11]CAPDU: 80 09 00 00 [13:46:11]Write to MH i2c: E2 08 00 A2 5D 80 09 00 00 00 00 00 00 71 [13:46:11]Write i2c OK [13:46:11]MH_I2C_Read... [13:46:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:11]Read from MH i2c: E2 [13:46:11]MH_I2C_Read... [13:46:11]Read from MH i2c: E2 03 00 [13:46:11]MH_I2C_Read... [13:46:11]Read from MH i2c: E2 03 00 A2 5D 00 90 00 73 [13:46:11]RAPDU: 90 00 [13:46:11]wFMCommunicate OK [13:46:11]SAM_PROTO_ClearQueue done [13:46:11]KKMCreateOFDPacket [13:46:11]OFDProtocolAddRootSTLVToBuf [13:46:11]FM_MakeSignedData [13:46:11]FM_MakeSignedData [13:46:11]SAM_PROTO_SignData [13:46:11]wFMCommunicate request_size=4 [13:46:11]MH_SAM_APDU [13:46:11]CAPDU: 80 0D 01 02 [13:46:11]Write to MH i2c: E2 08 00 A3 5D 80 0D 01 02 00 00 00 00 79 [13:46:11]Write i2c OK [13:46:11]MH_I2C_Read... [13:46:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:11]Read from MH i2c: E2 [13:46:11]MH_I2C_Read... [13:46:11]Read from MH i2c: E2 03 00 [13:46:11]MH_I2C_Read... [13:46:11]Read from MH i2c: E2 03 00 A3 5D 00 90 00 74 [13:46:11]RAPDU: 90 00 [13:46:11]wFMCommunicate OK [13:46:11]wFMCommunicate request_size=255 [13:46:11]MH_SAM_APDU [13:46:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 2D D1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 57 E1 01 00 35 04 06 00 46 [13:46:11]Write to MH i2c: E2 02 01 A4 5D 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 2D D1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 57 E1 01 00 35 04 06 00 46 00 00 A2 [13:46:11]Write i2c OK [13:46:11]MH_I2C_Read... [13:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:11]Read from MH i2c: E2 [13:46:11]MH_I2C_Read... [13:46:11]Read from MH i2c: E2 03 00 [13:46:11]MH_I2C_Read... [13:46:11]Read from MH i2c: E2 03 00 A4 5D 00 90 00 75 [13:46:11]RAPDU: 90 00 [13:46:11]wFMCommunicate OK [13:46:11]wFMCommunicate request_size=10 [13:46:11]MH_SAM_APDU [13:46:11]CAPDU: 80 0D 02 02 05 39 E0 8A 8A E6 [13:46:11]Write to MH i2c: E2 0D 00 A5 5D 80 0D 02 02 05 00 39 E0 8A 8A E6 00 00 99 [13:46:11]Write i2c OK [13:46:11]MH_I2C_Read... [13:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:11]Read from MH i2c: E2 [13:46:11]MH_I2C_Read... [13:46:11]Read from MH i2c: E2 03 00 [13:46:11]MH_I2C_Read... [13:46:11]Read from MH i2c: E2 03 00 A5 5D 00 90 00 76 [13:46:11]RAPDU: 90 00 [13:46:11]wFMCommunicate OK [13:46:11]wFMCommunicate request_size=4 [13:46:11]MH_SAM_APDU [13:46:11]CAPDU: 80 0D 03 02 [13:46:11]Write to MH i2c: E2 08 00 A6 5D 80 0D 03 02 00 00 00 00 7E [13:46:11]Write i2c OK [13:46:11]MH_I2C_Read... [13:46:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:11]Read from MH i2c: E2 [13:46:11]MH_I2C_Read... [13:46:11]Read from MH i2c: E2 0B 00 [13:46:11]MH_I2C_Read... [13:46:11]Read from MH i2c: E2 0B 00 A6 5D 00 A1 D8 10 95 12 51 57 C6 90 00 1D [13:46:11]RAPDU: A1 D8 10 95 12 51 57 C6 90 00 [13:46:11]wFMCommunicate OK [13:46:11]SAM_PROTO_SignData done [13:46:11]FM_MakeSignedData done [13:46:11]CreateOFDProtocolMessage [13:46:11]wFMCommunicate request_size=4 [13:46:11]MH_SAM_APDU [13:46:11]CAPDU: 80 11 00 00 [13:46:11]Write to MH i2c: E2 08 00 A7 5D 80 11 00 00 00 00 00 00 7E [13:46:11]Write i2c OK [13:46:11]MH_I2C_Read... [13:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:11]Read from MH i2c: E2 [13:46:11]MH_I2C_Read... [13:46:11]Read from MH i2c: E2 17 00 [13:46:11]MH_I2C_Read... [13:46:11]Read from MH i2c: E2 17 00 A7 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D5 [13:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:46:11]wFMCommunicate OK [13:46:11]CreateOFDProtocolMessage done [13:46:11]OFDSenderStorePacket 123223 [13:46:11]StoreOFDPacket docnum=123223 [13:46:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 48 CC 07 01 0E 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 2D D1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 57 E1 01 00 35 04 06 00 46 39 E0 8A 8A E6 A1 D8 10 95 12 51 57 C6 [13:46:11]CheckFolder [13:46:11]dirname=/storage/ofd_packets [13:46:11]CheckFolder done [13:46:11]ProducePacketName [13:46:11]name=ofd_packets/00123223 [13:46:11]NVStorageSaveData ofd_packets/00123223 [13:46:11]File name is /storage/ofd_packets/00123223 [13:46:11]Write 301 bytes [13:46:11]NVStorageSaveData done [13:46:11]OFDSenderStorePacket done [13:46:11]KKMCreateOFDPacket done [13:46:11]NVStorageSaveData kkm_last_timestamp [13:46:11]File name is /storage/kkm_last_timestamp [13:46:11]Write 4 bytes [13:46:11]NVStorageSaveData done [13:46:11]ExternCall_PrintAddStr [13:46:11]wPrintStart [13:46:11]Write to MH i2c: 01 00 00 A8 5D 05 [13:46:11]Write i2c OK [13:46:11]MH_I2C_Read... [13:46:11]Read from MH i2c: 01 [13:46:11]MH_I2C_Read... [13:46:11]Read from MH i2c: 01 07 00 [13:46:11]MH_I2C_Read... [13:46:11]Read from MH i2c: 01 07 00 A8 5D 00 00 00 00 00 FF 0F 1A [13:46:11]RasterBufferAndPrint [13:46:11]line Счет N : (1)718055 [13:46:11]line ИНН: 02508201610067 [13:46:11]line Контрольно-Кассовый Чек [13:46:11]line ПРОДАЖА [13:46:11]line ТРК (МРК, ГНК) : 42 [13:46:11]line Товар: 2710124130 [13:46:11]line Аи-92-К-4 [13:46:11]line 2.970 * 67.40 [13:46:11]line = 200.18 [13:46:11]line НДС 12% НСП 1% [13:46:11]line > о реализуемом товаре [13:46:11]line ОКРУГЛЕНИЕ: -0.18 [13:46:11]line ИТОГО: 200.00 [13:46:11]line Внесено: 200.00 [13:46:11]line СДАЧА: 0.00 [13:46:11]line НСП 1% : 1.77 [13:46:11]line НДС 12% : 21.26 [13:46:11]line Наличными: 200.00 [13:46:11]line Безнал.: 0.00 [13:46:11]line Место: АЗС № 64 "Партнер Нефть" [13:46:11]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:46:11]line СНО: Общий режим [13:46:11]line Чек 77 26.11.2024 13:46 [13:46:11]line Смена: 557 ФФД: 1.0 [13:46:11]line ЗНМ: 0300000033 [13:46:11]line РНМ: 0000000000092681 [13:46:11]line Версия ККМ: 001 [13:46:11]line ФМ: 0000000000874881 [13:46:11]line ФД: 123223 [13:46:11]line ФПД: 77214394256102 [13:46:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T134621&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123223&fm=77214394256102&tin=02508201610067®Number=0000000000092681&sum=20000 [13:46:12]OFD Sender: Processing packet 123223 [packets to send 7, broken 6] [13:46:12]ProducePacketName [13:46:12]name=ofd_packets/00123223 [13:46:12]OFD Sender: To server: pG, [13:46:12]CommunicateWithHost lk.salyk.kg:30040 [13:46:12]ConnectInit lk.salyk.kg [13:46:12]written 0, free lines is 4095 [13:46:12]Connected sock=10 [13:46:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 48 CC 07 01 0E 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 2D D1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 57 E1 01 00 35 04 06 00 46 39 E0 8A 8A E6 A1 D8 10 95 12 51 57 C6 [13:46:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 8E D8 47 00 2C 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 57 E1 01 00 F4 03 04 00 EF 7C 45 67 B6 04 01 00 00 9A A1 50 22 0F 28 EC A6 [13:46:12]CommunicateWithHost err = 0 [13:46:12]CheckOFDResponse [13:46:12]1017 (14) - 77093643461234 [13:46:12]1041 (16) - 0000000000874881 [13:46:12]1040 (4) - 123223 [13:46:12]1012 (4) - 26.11.2024 07:46 [13:46:12]1206 (1) - 0 [13:46:12]OFD Sender: Remove packet 123223 [13:46:12]ProducePacketName [13:46:12]name=ofd_packets/00123223 [13:46:12]NVStorageDeleteData [13:46:12]Write to MH i2c: 01 00 00 D3 5D 30 [13:46:12]Write i2c OK [13:46:12]MH_I2C_Read... [13:46:12]Read from MH i2c: 01 [13:46:12]MH_I2C_Read... [13:46:12]Read from MH i2c: 01 07 00 [13:46:12]MH_I2C_Read... [13:46:12]Read from MH i2c: 01 07 00 D3 5D 00 00 00 00 00 4C 0C 8F [13:46:12]RasterBufferAndPrint [13:46:12]line [13:46:12]line [13:46:12]line [13:46:12]line [13:46:12]line [13:46:12]written 0, free lines is 3152 [13:46:12]MH_Cut [13:46:12]Write to MH i2c: D1 01 00 DA 5D 01 09 [13:46:12]Write i2c OK [13:46:12]MH_I2C_Read... [13:46:12]Read from MH i2c: D1 [13:46:12]MH_I2C_Read... [13:46:12]Read from MH i2c: D1 01 00 [13:46:12]MH_I2C_Read... [13:46:12]Read from MH i2c: D1 01 00 DA 5D 00 08 [13:46:12]Write to MH i2c: 01 00 00 DB 5D 38 [13:46:12]Write i2c OK [13:46:12]MH_I2C_Read... [13:46:12]OFD Sender: No OFD packet to send [13:46:13]*** Cut start [13:46:13]*** Partial cut [13:46:13]*** CUTSNS_PIN = 1 [13:46:14]*** CUTSNS_PIN = 0 [13:46:14]*** Brake cut motor [13:46:14]Read from MH i2c: 01 [13:46:14]MH_I2C_Read... [13:46:14]*** Stop cut motor [13:46:14]*** Cut end [13:46:14]Read from MH i2c: 01 07 00 [13:46:14]MH_I2C_Read... [13:46:14]Read from MH i2c: 01 07 00 DB 5D 00 00 00 00 00 FF 0F 4D [13:46:14]process_action close_receipt done [13:46:14]requested_data is exist [13:46:14]produce_requested_data [13:46:14]requested_item fm.sn is exist - process it [13:46:14]wFMCommunicate request_size=4 [13:46:14]MH_SAM_APDU [13:46:14]CAPDU: 80 11 00 00 [13:46:14]Write to MH i2c: E2 08 00 DC 5D 80 11 00 00 00 00 00 00 B3 [13:46:14]Write i2c OK [13:46:14]MH_I2C_Read... [13:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:14]Read from MH i2c: E2 [13:46:14]MH_I2C_Read... [13:46:14]Read from MH i2c: E2 17 00 [13:46:14]MH_I2C_Read... [13:46:14]Read from MH i2c: E2 17 00 DC 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0A [13:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:46:14]wFMCommunicate OK [13:46:14]requested_item fd.num is exist - process it [13:46:14]SAM_PROTO_GetFieldsCounters [13:46:14]wFMCommunicate request_size=4 [13:46:14]MH_SAM_APDU [13:46:14]CAPDU: 80 13 00 00 [13:46:14]Write to MH i2c: E2 08 00 DD 5D 80 13 00 00 00 00 00 00 B6 [13:46:14]Write i2c OK [13:46:14]MH_I2C_Read... [13:46:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:14]Read from MH i2c: E2 [13:46:14]MH_I2C_Read... [13:46:14]Read from MH i2c: E2 62 00 [13:46:14]MH_I2C_Read... [13:46:14]Read from MH i2c: E2 62 00 DD 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 57 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [13:46:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 57 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:46:14]wFMCommunicate OK [13:46:14]SAM_PROTO_GetFieldsCounters done [13:46:14]requested_item shift.num is exist - process it [13:46:14]requested_item shift.opened is exist - process it [13:46:14]req_shift_opened [13:46:14]FM_GetShiftState [13:46:14]SAM_PROTO_GetShiftState [13:46:14]wFMCommunicate request_size=4 [13:46:14]MH_SAM_APDU [13:46:14]CAPDU: 80 13 01 00 [13:46:14]Write to MH i2c: E2 08 00 DE 5D 80 13 01 00 00 00 00 00 B8 [13:46:14]Write i2c OK [13:46:14]MH_I2C_Read... [13:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:14]Read from MH i2c: E2 [13:46:14]MH_I2C_Read... [13:46:14]Read from MH i2c: E2 0E 00 [13:46:14]MH_I2C_Read... [13:46:14]Read from MH i2c: E2 0E 00 DE 5D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 19 [13:46:14]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:46:14]wFMCommunicate OK [13:46:14]SAM_PROTO_GetShiftState done [13:46:14]FM_GetShiftState done [13:46:14]req_shift_opened done [13:46:14]requested_item shift.open_date is exist - process it [13:46:14]req_shift_open_date [13:46:14]req_shift_open_date done [13:46:14]produce_requested_data done [13:46:14]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123223,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:46:14]process_action_free close_receipt [13:46:14]json_value_free [13:46:14]json_value_free done [13:46:14]process_json_proto returns [13:46:14]Send response to host [13:46:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123223,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:46:14]free response buf [13:46:14]execute_script done [13:46:14]execute_script returns [13:46:14]free content buf [13:46:14]Sock 7.Close socket [13:46:14]Sock 7.Thread stoped [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:58]OFD Sender: No OFD packet to send [13:48:03]OFD Sender: No OFD packet to send [13:48:08]OFD Sender: No OFD packet to send [13:48:13]OFD Sender: No OFD packet to send [13:48:18]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:54]accept exits with 9 [13:48:54]New connection [13:48:54]New thread 3066723684 created [13:48:54]Thread 3066580324 joined [13:48:54]Waiting for new connection... [13:48:54] Sock 9.Parse request [13:48:54]Sock 9.Check first char [13:48:54]Sock 9.First char is OK [13:48:54]request: POST /json_proto HTTP/1.0 [13:48:54]Method: POST [13:48:54]URL: /json_proto [13:48:54]Method is POST - this is cgi request [13:48:54]url: /json_proto [13:48:54]query_string will be loaded in cgi processing [13:48:54]execute_cgi json_proto POST (null) [13:48:54]execute_cgi path=json_proto method=POST [13:48:54]POST find Content-Length [13:48:54]Host: 172.17.37.4:8080 [13:48:54]Content-Length: 681 [13:48:54]Content-Type: application/json [13:48:54] [13:48:54]POST finish read [13:48:54]Found Content-Length = 681 [13:48:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 2.680, "sum" : 200.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:54]execute_script... [13:48:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 2.680, "sum" : 200.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:54]POST & json_proto [13:48:54]process_json_proto [13:48:54]json parsed OK: [13:48:54]protocol is kg_v1.0 [13:48:54]action value=close_receipt [13:48:54]process_action close_receipt [13:48:54]cmd_close_receipt [13:48:54]MH_GetDate [13:48:54]Write to MH i2c: F0 00 00 DF 5D 2B [13:48:54]Write i2c OK [13:48:54]MH_I2C_Read... [13:48:54]Read from MH i2c: F0 [13:48:54]MH_I2C_Read... [13:48:54]Read from MH i2c: F0 09 00 [13:48:54]MH_I2C_Read... [13:48:54]Read from MH i2c: F0 09 00 DF 5D 00 D1 D1 45 67 B8 5A 43 67 3E [13:48:54]GetLastDocTimeStamp 1732628781 [13:48:54]current date 1732628945 [13:48:54]FM_GetShiftState [13:48:54]SAM_PROTO_GetShiftState [13:48:54]wFMCommunicate request_size=4 [13:48:54]MH_SAM_APDU [13:48:54]CAPDU: 80 13 01 00 [13:48:54]Write to MH i2c: E2 08 00 E0 5D 80 13 01 00 00 00 00 00 BA [13:48:54]Write i2c OK [13:48:54]MH_I2C_Read... [13:48:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:54]Read from MH i2c: E2 [13:48:54]MH_I2C_Read... [13:48:54]Read from MH i2c: E2 0E 00 [13:48:54]MH_I2C_Read... [13:48:54]Read from MH i2c: E2 0E 00 E0 5D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 1B [13:48:54]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:48:54]wFMCommunicate OK [13:48:54]SAM_PROTO_GetShiftState done [13:48:54]FM_GetShiftState done [13:48:54]opened in 1732579736 [13:48:54]opened+sec_in_day 1732666136 [13:48:54]quantity*price = 20073 [13:48:54]sum+1 = 20074 [13:48:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.78 НДС 12% : 21.32 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 78 26.11.2024 13:49 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123224 ФПД: 70128407001747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T134905&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123224&fm=70128407001747&tin=02508201610067®Number=0000000000092681&sum=20000 [13:48:55]StoreToDocumentArchive [13:48:55]shift 557 fd 123224 [13:48:55]save to /storage/0557/doc_00123224 [13:48:55]save last doc name /storage/0557/doc_00123224 to /storage/kkm_last_doc_name [13:48:55]save OK [13:48:55]Clear old archive folders... [13:48:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:48:55]tlvbuf is 02069070 [13:48:55]SAM_PROTO_ClearQueue [13:48:55]wFMCommunicate request_size=4 [13:48:55]MH_SAM_APDU [13:48:55]CAPDU: 80 09 00 00 [13:48:55]Write to MH i2c: E2 08 00 ED 5D 80 09 00 00 00 00 00 00 BC [13:48:55]Write i2c OK [13:48:55]MH_I2C_Read... [13:48:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:55]Read from MH i2c: E2 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 03 00 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 03 00 ED 5D 00 90 00 BE [13:48:55]RAPDU: 90 00 [13:48:55]wFMCommunicate OK [13:48:55]SAM_PROTO_ClearQueue done [13:48:55]KKMCreateOFDPacket [13:48:55]OFDProtocolAddRootSTLVToBuf [13:48:55]FM_MakeSignedData [13:48:55]FM_MakeSignedData [13:48:55]SAM_PROTO_SignData [13:48:55]wFMCommunicate request_size=4 [13:48:55]MH_SAM_APDU [13:48:55]CAPDU: 80 0D 01 02 [13:48:55]Write to MH i2c: E2 08 00 EE 5D 80 0D 01 02 00 00 00 00 C4 [13:48:55]Write i2c OK [13:48:55]MH_I2C_Read... [13:48:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:55]Read from MH i2c: E2 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 03 00 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 03 00 EE 5D 00 90 00 BF [13:48:55]RAPDU: 90 00 [13:48:55]wFMCommunicate OK [13:48:55]wFMCommunicate request_size=255 [13:48:55]MH_SAM_APDU [13:48:55]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 35 FF 03 08 00 03 78 0A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 69 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 D1 D1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 58 E1 01 00 35 04 06 00 [13:48:55]Write to MH i2c: E2 02 01 EF 5D 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 35 FF 03 08 00 03 78 0A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 69 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 D1 D1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 58 E1 01 00 35 04 06 00 00 00 95 [13:48:55]Write i2c OK [13:48:55]MH_I2C_Read... [13:48:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:56]Read from MH i2c: E2 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: E2 03 00 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: E2 03 00 EF 5D 00 90 00 C0 [13:48:56]RAPDU: 90 00 [13:48:56]wFMCommunicate OK [13:48:56]wFMCommunicate request_size=11 [13:48:56]MH_SAM_APDU [13:48:56]CAPDU: 80 0D 02 02 06 3F C8 0A C9 BA 93 [13:48:56]Write to MH i2c: E2 0E 00 F0 5D 80 0D 02 02 06 00 3F C8 0A C9 BA 93 00 00 FA [13:48:56]Write i2c OK [13:48:56]MH_I2C_Read... [13:48:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:56]Read from MH i2c: E2 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: E2 03 00 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: E2 03 00 F0 5D 00 90 00 C1 [13:48:56]RAPDU: 90 00 [13:48:56]wFMCommunicate OK [13:48:56]wFMCommunicate request_size=4 [13:48:56]MH_SAM_APDU [13:48:56]CAPDU: 80 0D 03 02 [13:48:56]Write to MH i2c: E2 08 00 F1 5D 80 0D 03 02 00 00 00 00 C9 [13:48:56]Write i2c OK [13:48:56]MH_I2C_Read... [13:48:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:56]Read from MH i2c: E2 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: E2 0B 00 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: E2 0B 00 F1 5D 00 B5 E5 B5 0D D6 3D 40 B6 90 00 2F [13:48:56]RAPDU: B5 E5 B5 0D D6 3D 40 B6 90 00 [13:48:56]wFMCommunicate OK [13:48:56]SAM_PROTO_SignData done [13:48:56]FM_MakeSignedData done [13:48:56]CreateOFDProtocolMessage [13:48:56]wFMCommunicate request_size=4 [13:48:56]MH_SAM_APDU [13:48:56]CAPDU: 80 11 00 00 [13:48:56]Write to MH i2c: E2 08 00 F2 5D 80 11 00 00 00 00 00 00 C9 [13:48:56]Write i2c OK [13:48:56]MH_I2C_Read... [13:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:56]Read from MH i2c: E2 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: E2 17 00 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: E2 17 00 F2 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 20 [13:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:48:56]wFMCommunicate OK [13:48:56]CreateOFDProtocolMessage done [13:48:56]OFDSenderStorePacket 123224 [13:48:56]StoreOFDPacket docnum=123224 [13:48:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 30 9B 08 01 FB 21 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 35 FF 03 08 00 03 78 0A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 69 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 D1 D1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 58 E1 01 00 35 04 06 00 3F C8 0A C9 BA 93 B5 E5 B5 0D D6 3D 40 B6 [13:48:56]CheckFolder [13:48:56]dirname=/storage/ofd_packets [13:48:56]CheckFolder done [13:48:56]ProducePacketName [13:48:56]name=ofd_packets/00123224 [13:48:56]NVStorageSaveData ofd_packets/00123224 [13:48:56]File name is /storage/ofd_packets/00123224 [13:48:56]Write 302 bytes [13:48:56]NVStorageSaveData done [13:48:56]OFDSenderStorePacket done [13:48:56]KKMCreateOFDPacket done [13:48:56]NVStorageSaveData kkm_last_timestamp [13:48:56]File name is /storage/kkm_last_timestamp [13:48:56]Write 4 bytes [13:48:56]NVStorageSaveData done [13:48:56]ExternCall_PrintAddStr [13:48:56]wPrintStart [13:48:56]Write to MH i2c: 01 00 00 F3 5D 50 [13:48:56]Write i2c OK [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: 01 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: 01 07 00 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: 01 07 00 F3 5D 00 00 00 00 00 FF 0F 65 [13:48:56]RasterBufferAndPrint [13:48:56]line Счет N : (1)718056 [13:48:56]line ИНН: 02508201610067 [13:48:56]line Контрольно-Кассовый Чек [13:48:56]line ПРОДАЖА [13:48:56]line ТРК (МРК, ГНК) : 5 [13:48:56]line Товар: 2710194210 [13:48:56]line ДТ(л)-К-5 [13:48:56]line 2.680 * 74.90 [13:48:56]line = 200.73 [13:48:56]line НДС 12% НСП 1% [13:48:56]line > о реализуемом товаре [13:48:56]line ОКРУГЛЕНИЕ: -0.73 [13:48:56]line ИТОГО: 200.00 [13:48:56]line Внесено: 200.00 [13:48:56]line СДАЧА: 0.00 [13:48:56]line НСП 1% : 1.78 [13:48:56]line НДС 12% : 21.32 [13:48:56]line Наличными: 200.00 [13:48:56]line Безнал.: 0.00 [13:48:56]line Место: АЗС № 64 "Партнер Нефть" [13:48:56]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:48:56]line СНО: Общий режим [13:48:56]line Чек 78 26.11.2024 13:49 [13:48:56]line Смена: 557 ФФД: 1.0 [13:48:56]line ЗНМ: 0300000033 [13:48:56]line РНМ: 0000000000092681 [13:48:56]line Версия ККМ: 001 [13:48:56]line ФМ: 0000000000874881 [13:48:56]line ФД: 123224 [13:48:56]line ФПД: 70128407001747 [13:48:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T134905&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123224&fm=70128407001747&tin=02508201610067®Number=0000000000092681&sum=20000 [13:48:56]OFD Sender: Processing packet 123224 [packets to send 7, broken 6] [13:48:56]ProducePacketName [13:48:56]name=ofd_packets/00123224 [13:48:56]OFD Sender: To server: pG, [13:48:56]CommunicateWithHost lk.salyk.kg:30040 [13:48:56]ConnectInit lk.salyk.kg [13:48:56]written 0, free lines is 4095 [13:48:56]Connected sock=10 [13:48:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 30 9B 08 01 FB 21 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 35 FF 03 08 00 03 78 0A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 69 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 D1 D1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 58 E1 01 00 35 04 06 00 3F C8 0A C9 BA 93 B5 E5 B5 0D D6 3D 40 B6 [13:48:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 49 BC 47 00 8E 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 38 37 34 38 38 31 10 04 04 00 58 E1 01 00 F4 03 04 00 93 7D 45 67 B6 04 01 00 00 46 56 26 4F 95 75 6B 6D [13:48:56]CommunicateWithHost err = 0 [13:48:56]CheckOFDResponse [13:48:56]1017 (14) - 77093643461234 [13:48:56]1041 (16) - 0000000000874881 [13:48:56]1040 (4) - 123224 [13:48:56]1012 (4) - 26.11.2024 07:49 [13:48:56]1206 (1) - 0 [13:48:56]OFD Sender: Remove packet 123224 [13:48:56]ProducePacketName [13:48:56]name=ofd_packets/00123224 [13:48:56]NVStorageDeleteData [13:48:57]Write to MH i2c: 01 00 00 1E 5E 7C [13:48:57]Write i2c OK [13:48:57]MH_I2C_Read... [13:48:57]Read from MH i2c: 01 [13:48:57]MH_I2C_Read... [13:48:57]Read from MH i2c: 01 07 00 [13:48:57]MH_I2C_Read... [13:48:57]Read from MH i2c: 01 07 00 1E 5E 00 00 00 00 00 46 0C D5 [13:48:57]RasterBufferAndPrint [13:48:57]line [13:48:57]line [13:48:57]line [13:48:57]line [13:48:57]line [13:48:57]written 0, free lines is 3147 [13:48:57]MH_Cut [13:48:57]Write to MH i2c: D1 01 00 25 5E 01 55 [13:48:57]Write i2c OK [13:48:57]MH_I2C_Read... [13:48:57]Read from MH i2c: D1 [13:48:57]MH_I2C_Read... [13:48:57]Read from MH i2c: D1 01 00 [13:48:57]MH_I2C_Read... [13:48:57]Read from MH i2c: D1 01 00 25 5E 00 54 [13:48:57]Write to MH i2c: 01 00 00 26 5E 84 [13:48:57]Write i2c OK [13:48:57]MH_I2C_Read... [13:48:57]OFD Sender: No OFD packet to send [13:48:58]*** Cut start [13:48:58]*** Partial cut [13:48:58]*** CUTSNS_PIN = 1 [13:48:58]*** CUTSNS_PIN = 0 [13:48:58]*** Brake cut motor [13:48:59]Read from MH i2c: 01 [13:48:59]MH_I2C_Read... [13:48:59]*** Stop cut motor [13:48:59]*** Cut end [13:48:59]Read from MH i2c: 01 07 00 [13:48:59]MH_I2C_Read... [13:48:59]Read from MH i2c: 01 07 00 26 5E 00 00 00 00 00 FF 0F 99 [13:48:59]process_action close_receipt done [13:48:59]requested_data is exist [13:48:59]produce_requested_data [13:48:59]requested_item fm.sn is exist - process it [13:48:59]wFMCommunicate request_size=4 [13:48:59]MH_SAM_APDU [13:48:59]CAPDU: 80 11 00 00 [13:48:59]Write to MH i2c: E2 08 00 27 5E 80 11 00 00 00 00 00 00 FF [13:48:59]Write i2c OK [13:48:59]MH_I2C_Read... [13:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:59]Read from MH i2c: E2 [13:48:59]MH_I2C_Read... [13:48:59]Read from MH i2c: E2 17 00 [13:48:59]MH_I2C_Read... [13:48:59]Read from MH i2c: E2 17 00 27 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 56 [13:48:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [13:48:59]wFMCommunicate OK [13:48:59]requested_item fd.num is exist - process it [13:48:59]SAM_PROTO_GetFieldsCounters [13:48:59]wFMCommunicate request_size=4 [13:48:59]MH_SAM_APDU [13:48:59]CAPDU: 80 13 00 00 [13:48:59]Write to MH i2c: E2 08 00 28 5E 80 13 00 00 00 00 00 00 02 [13:48:59]Write i2c OK [13:48:59]MH_I2C_Read... [13:48:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:59]Read from MH i2c: E2 [13:48:59]MH_I2C_Read... [13:48:59]Read from MH i2c: E2 62 00 [13:48:59]MH_I2C_Read... [13:48:59]Read from MH i2c: E2 62 00 28 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 58 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [13:48:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 58 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:48:59]wFMCommunicate OK [13:48:59]SAM_PROTO_GetFieldsCounters done [13:48:59]requested_item shift.num is exist - process it [13:48:59]requested_item shift.opened is exist - process it [13:48:59]req_shift_opened [13:48:59]FM_GetShiftState [13:48:59]SAM_PROTO_GetShiftState [13:48:59]wFMCommunicate request_size=4 [13:48:59]MH_SAM_APDU [13:48:59]CAPDU: 80 13 01 00 [13:48:59]Write to MH i2c: E2 08 00 29 5E 80 13 01 00 00 00 00 00 04 [13:48:59]Write i2c OK [13:48:59]MH_I2C_Read... [13:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:59]Read from MH i2c: E2 [13:48:59]MH_I2C_Read... [13:48:59]Read from MH i2c: E2 0E 00 [13:48:59]MH_I2C_Read... [13:48:59]Read from MH i2c: E2 0E 00 29 5E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 65 [13:48:59]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [13:48:59]wFMCommunicate OK [13:48:59]SAM_PROTO_GetShiftState done [13:48:59]FM_GetShiftState done [13:48:59]req_shift_opened done [13:48:59]requested_item shift.open_date is exist - process it [13:48:59]req_shift_open_date [13:48:59]req_shift_open_date done [13:48:59]produce_requested_data done [13:48:59]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123224,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [13:48:59]process_action_free close_receipt [13:48:59]json_value_free [13:48:59]json_value_free done [13:48:59]process_json_proto returns [13:48:59]Send response to host [13:48:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123224,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [13:48:59]free response buf [13:48:59]execute_script done [13:48:59]execute_script returns [13:48:59]free content buf [13:48:59]Sock 9.Close socket [13:48:59]Sock 9.Thread stoped [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:51]accept exits with 7 [14:01:51]New connection [14:01:51]New thread 3066580324 created [14:01:51]Thread 3066723684 joined [14:01:51]Waiting for new connection... [14:01:51] Sock 7.Parse request [14:01:51]Sock 7.Check first char [14:01:51]Sock 7.First char is OK [14:01:51]request: POST /json_proto HTTP/1.0 [14:01:51]Method: POST [14:01:51]URL: /json_proto [14:01:51]Method is POST - this is cgi request [14:01:51]url: /json_proto [14:01:51]query_string will be loaded in cgi processing [14:01:51]execute_cgi json_proto POST (null) [14:01:51]execute_cgi path=json_proto method=POST [14:01:51]POST find Content-Length [14:01:51]Host: 172.17.37.4:8080 [14:01:51]Content-Length: 801 [14:01:51]Content-Type: application/json [14:01:51] [14:01:51]POST finish read [14:01:51]Found Content-Length = 801 [14:01:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.000, "sum" : 674.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" : 674.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:51]execute_script... [14:01:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.000, "sum" : 674.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" : 674.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:51]POST & json_proto [14:01:51]process_json_proto [14:01:51]json parsed OK: [14:01:51]protocol is kg_v1.0 [14:01:51]action value=close_receipt [14:01:51]process_action close_receipt [14:01:51]cmd_close_receipt [14:01:51]MH_GetDate [14:01:51]Write to MH i2c: F0 00 00 2A 5E 77 [14:01:51]Write i2c OK [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: F0 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: F0 09 00 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: F0 09 00 2A 5E 00 DA D4 45 67 B8 5A 43 67 96 [14:01:51]GetLastDocTimeStamp 1732628945 [14:01:51]current date 1732629722 [14:01:51]FM_GetShiftState [14:01:51]SAM_PROTO_GetShiftState [14:01:51]wFMCommunicate request_size=4 [14:01:51]MH_SAM_APDU [14:01:51]CAPDU: 80 13 01 00 [14:01:51]Write to MH i2c: E2 08 00 2B 5E 80 13 01 00 00 00 00 00 06 [14:01:51]Write i2c OK [14:01:51]MH_I2C_Read... [14:01:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:51]Read from MH i2c: E2 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 0E 00 [14:01:51]MH_I2C_Read... [14:01:51]Read from MH i2c: E2 0E 00 2B 5E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 67 [14:01:51]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:01:51]wFMCommunicate OK [14:01:51]SAM_PROTO_GetShiftState done [14:01:51]FM_GetShiftState done [14:01:51]opened in 1732579736 [14:01:51]opened+sec_in_day 1732666136 [14:01:51]quantity*price = 67400 [14:01:51]sum+1 = 67401 [14:01:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 674.00 НСП 1% : 5.96 НДС 12% : 71.57 Наличными: 0.00 Безнал.: 674.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 79 26.11.2024 14:02 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123225 ФПД: 259247454171623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T140202&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123225&fm=259247454171623&tin=02508201610067®Number=0000000000092681&sum=67400 [14:01:53]StoreToDocumentArchive [14:01:53]shift 557 fd 123225 [14:01:53]save to /storage/0557/doc_00123225 [14:01:53]save last doc name /storage/0557/doc_00123225 to /storage/kkm_last_doc_name [14:01:53]save OK [14:01:53]Clear old archive folders... [14:01:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:01:53]tlvbuf is 020B08A0 [14:01:53]SAM_PROTO_ClearQueue [14:01:53]wFMCommunicate request_size=4 [14:01:53]MH_SAM_APDU [14:01:53]CAPDU: 80 09 00 00 [14:01:53]Write to MH i2c: E2 08 00 38 5E 80 09 00 00 00 00 00 00 08 [14:01:53]Write i2c OK [14:01:53]MH_I2C_Read... [14:01:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:53]Read from MH i2c: E2 [14:01:53]MH_I2C_Read... [14:01:53]Read from MH i2c: E2 03 00 [14:01:53]MH_I2C_Read... [14:01:53]Read from MH i2c: E2 03 00 38 5E 00 90 00 0A [14:01:53]RAPDU: 90 00 [14:01:53]wFMCommunicate OK [14:01:53]SAM_PROTO_ClearQueue done [14:01:53]KKMCreateOFDPacket [14:01:53]OFDProtocolAddRootSTLVToBuf [14:01:53]FM_MakeSignedData [14:01:53]FM_MakeSignedData [14:01:53]SAM_PROTO_SignData [14:01:53]wFMCommunicate request_size=4 [14:01:53]MH_SAM_APDU [14:01:53]CAPDU: 80 0D 01 02 [14:01:53]Write to MH i2c: E2 08 00 39 5E 80 0D 01 02 00 00 00 00 10 [14:01:53]Write i2c OK [14:01:53]MH_I2C_Read... [14:01:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:53]Read from MH i2c: E2 [14:01:53]MH_I2C_Read... [14:01:53]Read from MH i2c: E2 03 00 [14:01:53]MH_I2C_Read... [14:01:53]Read from MH i2c: E2 03 00 39 5E 00 90 00 0B [14:01:53]RAPDU: 90 00 [14:01:53]wFMCommunicate OK [14:01:53]wFMCommunicate request_size=255 [14:01:53]MH_SAM_APDU [14:01:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 07 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 DA D4 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 59 E1 01 00 35 04 06 00 EB [14:01:53]Write to MH i2c: E2 02 01 3A 5E 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 07 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 DA D4 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 59 E1 01 00 35 04 06 00 EB 00 00 17 [14:01:53]Write i2c OK [14:01:53]MH_I2C_Read... [14:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:53]Read from MH i2c: E2 [14:01:53]MH_I2C_Read... [14:01:53]Read from MH i2c: E2 03 00 [14:01:53]MH_I2C_Read... [14:01:53]Read from MH i2c: E2 03 00 3A 5E 00 90 00 0C [14:01:53]RAPDU: 90 00 [14:01:53]wFMCommunicate OK [14:01:53]wFMCommunicate request_size=10 [14:01:53]MH_SAM_APDU [14:01:53]CAPDU: 80 0D 02 02 05 C8 C0 6A 31 E7 [14:01:53]Write to MH i2c: E2 0D 00 3B 5E 80 0D 02 02 05 00 C8 C0 6A 31 E7 00 00 27 [14:01:53]Write i2c OK [14:01:53]MH_I2C_Read... [14:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:53]Read from MH i2c: E2 [14:01:53]MH_I2C_Read... [14:01:53]Read from MH i2c: E2 03 00 [14:01:53]MH_I2C_Read... [14:01:53]Read from MH i2c: E2 03 00 3B 5E 00 90 00 0D [14:01:53]RAPDU: 90 00 [14:01:53]wFMCommunicate OK [14:01:53]wFMCommunicate request_size=4 [14:01:53]MH_SAM_APDU [14:01:53]CAPDU: 80 0D 03 02 [14:01:53]Write to MH i2c: E2 08 00 3C 5E 80 0D 03 02 00 00 00 00 15 [14:01:53]Write i2c OK [14:01:53]MH_I2C_Read... [14:01:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:53]Read from MH i2c: E2 [14:01:53]MH_I2C_Read... [14:01:53]Read from MH i2c: E2 0B 00 [14:01:53]MH_I2C_Read... [14:01:53]Read from MH i2c: E2 0B 00 3C 5E 00 55 A7 2F 4A F0 82 97 F1 90 00 85 [14:01:53]RAPDU: 55 A7 2F 4A F0 82 97 F1 90 00 [14:01:53]wFMCommunicate OK [14:01:53]SAM_PROTO_SignData done [14:01:53]FM_MakeSignedData done [14:01:53]CreateOFDProtocolMessage [14:01:53]wFMCommunicate request_size=4 [14:01:53]MH_SAM_APDU [14:01:53]CAPDU: 80 11 00 00 [14:01:53]Write to MH i2c: E2 08 00 3D 5E 80 11 00 00 00 00 00 00 15 [14:01:53]Write i2c OK [14:01:53]MH_I2C_Read... [14:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:53]Read from MH i2c: E2 [14:01:53]MH_I2C_Read... [14:01:53]Read from MH i2c: E2 17 00 [14:01:53]MH_I2C_Read... [14:01:53]Read from MH i2c: E2 17 00 3D 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6C [14:01:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:01:53]wFMCommunicate OK [14:01:53]CreateOFDProtocolMessage done [14:01:53]OFDSenderStorePacket 123225 [14:01:53]StoreOFDPacket docnum=123225 [14:01:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3B 19 07 01 A7 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 07 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 DA D4 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 59 E1 01 00 35 04 06 00 EB C8 C0 6A 31 E7 55 A7 2F 4A F0 82 97 F1 [14:01:53]CheckFolder [14:01:53]dirname=/storage/ofd_packets [14:01:53]CheckFolder done [14:01:53]ProducePacketName [14:01:53]name=ofd_packets/00123225 [14:01:53]NVStorageSaveData ofd_packets/00123225 [14:01:53]File name is /storage/ofd_packets/00123225 [14:01:53]Write 301 bytes [14:01:53]NVStorageSaveData done [14:01:53]OFDSenderStorePacket done [14:01:53]KKMCreateOFDPacket done [14:01:53]NVStorageSaveData kkm_last_timestamp [14:01:53]File name is /storage/kkm_last_timestamp [14:01:53]Write 4 bytes [14:01:53]NVStorageSaveData done [14:01:53]ExternCall_PrintAddStr [14:01:53]wPrintStart [14:01:53]Write to MH i2c: 01 00 00 3E 5E 9C [14:01:53]Write i2c OK [14:01:53]MH_I2C_Read... [14:01:53]Read from MH i2c: 01 [14:01:53]MH_I2C_Read... [14:01:53]Read from MH i2c: 01 07 00 [14:01:53]MH_I2C_Read... [14:01:53]Read from MH i2c: 01 07 00 3E 5E 00 00 00 00 00 FF 0F B1 [14:01:53]RasterBufferAndPrint [14:01:53]line Счет N : (1)718057 [14:01:53]line ИНН: 02508201610067 [14:01:53]line Контрольно-Кассовый Чек [14:01:53]line ПРОДАЖА [14:01:53]line ТРК (МРК, ГНК) : 22 [14:01:53]line Товар: 2710124130 [14:01:53]line Аи-92-К-4 [14:01:53]line 10.000 * 67.40 [14:01:53]line = 674.00 [14:01:53]line НДС 12% НСП 1% [14:01:53]line > о реализуемом товаре [14:01:53]line ИТОГО: 674.00 [14:01:53]line НСП 1% : 5.96 [14:01:53]line НДС 12% : 71.57 [14:01:53]line Наличными: 0.00 [14:01:53]line Безнал.: 674.00 [14:01:53]line Место: АЗС № 64 "Партнер Нефть" [14:01:53]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:01:53]line СНО: Общий режим [14:01:53]line Чек 79 26.11.2024 14:02 [14:01:53]line Смена: 557 ФФД: 1.0 [14:01:53]line ЗНМ: 0300000033 [14:01:53]line РНМ: 0000000000092681 [14:01:53]line Версия ККМ: 001 [14:01:53]line Платежная система: O! деньги [14:01:53]line ФМ: 0000000000874881 [14:01:53]line ФД: 123225 [14:01:53]line ФПД: 259247454171623 [14:01:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T140202&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123225&fm=259247454171623&tin=02508201610067®Number=0000000000092681&sum=67400 [14:01:53]written 0, free lines is 4095 [14:01:53]OFD Sender: Processing packet 123225 [packets to send 7, broken 6] [14:01:53]ProducePacketName [14:01:53]name=ofd_packets/00123225 [14:01:53]OFD Sender: To server: pG, [14:01:53]CommunicateWithHost lk.salyk.kg:30040 [14:01:53]ConnectInit lk.salyk.kg [14:01:53]Connected sock=10 [14:01:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3B 19 07 01 A7 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 48 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 07 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 DA D4 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 59 E1 01 00 35 04 06 00 EB C8 C0 6A 31 E7 55 A7 2F 4A F0 82 97 F1 [14:01:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 BC 49 47 00 C1 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 59 E1 01 00 F4 03 04 00 9C 80 45 67 B6 04 01 00 00 7E 98 E6 B7 23 B9 AF 62 [14:01:53]CommunicateWithHost err = 0 [14:01:53]CheckOFDResponse [14:01:53]1017 (14) - 77093643461234 [14:01:53]1041 (16) - 0000000000874881 [14:01:53]1040 (4) - 123225 [14:01:53]1012 (4) - 26.11.2024 08:02 [14:01:53]1206 (1) - 0 [14:01:53]OFD Sender: Remove packet 123225 [14:01:53]ProducePacketName [14:01:53]name=ofd_packets/00123225 [14:01:53]NVStorageDeleteData [14:01:54]Write to MH i2c: 01 00 00 68 5E C6 [14:01:54]Write i2c OK [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: 01 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: 01 07 00 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: 01 07 00 68 5E 00 00 00 00 00 53 0C 2C [14:01:54]RasterBufferAndPrint [14:01:54]line [14:01:54]line [14:01:54]line [14:01:54]line [14:01:54]line [14:01:54]written 0, free lines is 3161 [14:01:54]MH_Cut [14:01:54]Write to MH i2c: D1 01 00 6F 5E 01 9F [14:01:54]Write i2c OK [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: D1 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: D1 01 00 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: D1 01 00 6F 5E 00 9E [14:01:54]Write to MH i2c: 01 00 00 70 5E CE [14:01:54]Write i2c OK [14:01:54]MH_I2C_Read... [14:01:54]OFD Sender: No OFD packet to send [14:01:55]*** Cut start [14:01:55]*** Partial cut [14:01:55]*** CUTSNS_PIN = 1 [14:01:55]*** CUTSNS_PIN = 0 [14:01:55]*** Brake cut motor [14:01:56]Read from MH i2c: 01 [14:01:56]MH_I2C_Read... [14:01:56]*** Stop cut motor [14:01:56]*** Cut end [14:01:56]Read from MH i2c: 01 07 00 [14:01:56]MH_I2C_Read... [14:01:56]Read from MH i2c: 01 07 00 70 5E 00 00 00 00 00 FF 0F E3 [14:01:56]process_action close_receipt done [14:01:56]requested_data is exist [14:01:56]produce_requested_data [14:01:56]requested_item fm.sn is exist - process it [14:01:56]wFMCommunicate request_size=4 [14:01:56]MH_SAM_APDU [14:01:56]CAPDU: 80 11 00 00 [14:01:56]Write to MH i2c: E2 08 00 71 5E 80 11 00 00 00 00 00 00 49 [14:01:56]Write i2c OK [14:01:56]MH_I2C_Read... [14:01:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:56]Read from MH i2c: E2 [14:01:56]MH_I2C_Read... [14:01:56]Read from MH i2c: E2 17 00 [14:01:56]MH_I2C_Read... [14:01:56]Read from MH i2c: E2 17 00 71 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A0 [14:01:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:01:56]wFMCommunicate OK [14:01:56]requested_item fd.num is exist - process it [14:01:56]SAM_PROTO_GetFieldsCounters [14:01:56]wFMCommunicate request_size=4 [14:01:56]MH_SAM_APDU [14:01:56]CAPDU: 80 13 00 00 [14:01:56]Write to MH i2c: E2 08 00 72 5E 80 13 00 00 00 00 00 00 4C [14:01:56]Write i2c OK [14:01:56]MH_I2C_Read... [14:01:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:56]Read from MH i2c: E2 [14:01:56]MH_I2C_Read... [14:01:56]Read from MH i2c: E2 62 00 [14:01:56]MH_I2C_Read... [14:01:56]Read from MH i2c: E2 62 00 72 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 59 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [14:01:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 59 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:01:56]wFMCommunicate OK [14:01:56]SAM_PROTO_GetFieldsCounters done [14:01:56]requested_item shift.num is exist - process it [14:01:56]requested_item shift.opened is exist - process it [14:01:56]req_shift_opened [14:01:56]FM_GetShiftState [14:01:56]SAM_PROTO_GetShiftState [14:01:56]wFMCommunicate request_size=4 [14:01:56]MH_SAM_APDU [14:01:56]CAPDU: 80 13 01 00 [14:01:56]Write to MH i2c: E2 08 00 73 5E 80 13 01 00 00 00 00 00 4E [14:01:56]Write i2c OK [14:01:56]MH_I2C_Read... [14:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:56]Read from MH i2c: E2 [14:01:56]MH_I2C_Read... [14:01:56]Read from MH i2c: E2 0E 00 [14:01:56]MH_I2C_Read... [14:01:56]Read from MH i2c: E2 0E 00 73 5E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 AF [14:01:56]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:01:56]wFMCommunicate OK [14:01:56]SAM_PROTO_GetShiftState done [14:01:56]FM_GetShiftState done [14:01:56]req_shift_opened done [14:01:56]requested_item shift.open_date is exist - process it [14:01:56]req_shift_open_date [14:01:56]req_shift_open_date done [14:01:56]produce_requested_data done [14:01:56]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123225,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [14:01:56]process_action_free close_receipt [14:01:56]json_value_free [14:01:56]json_value_free done [14:01:56]process_json_proto returns [14:01:56]Send response to host [14:01:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123225,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [14:01:56]free response buf [14:01:56]execute_script done [14:01:56]execute_script returns [14:01:56]free content buf [14:01:56]Sock 7.Close socket [14:01:56]Sock 7.Thread stoped [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [14:02:14]OFD Sender: No OFD packet to send [14:02:19]OFD Sender: No OFD packet to send [14:02:24]OFD Sender: No OFD packet to send [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:09]OFD Sender: No OFD packet to send [14:04:14]OFD Sender: No OFD packet to send [14:04:19]OFD Sender: No OFD packet to send [14:04:24]OFD Sender: No OFD packet to send [14:04:29]OFD Sender: No OFD packet to send [14:04:34]OFD Sender: No OFD packet to send [14:04:39]OFD Sender: No OFD packet to send [14:04:44]OFD Sender: No OFD packet to send [14:04:49]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:04]OFD Sender: No OFD packet to send [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:24]OFD Sender: No OFD packet to send [14:05:29]OFD Sender: No OFD packet to send [14:05:34]OFD Sender: No OFD packet to send [14:05:39]OFD Sender: No OFD packet to send [14:05:44]OFD Sender: No OFD packet to send [14:05:49]OFD Sender: No OFD packet to send [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:31]accept exits with 9 [14:06:31]New connection [14:06:31]New thread 3066723684 created [14:06:31]Thread 3066580324 joined [14:06:31]Waiting for new connection... [14:06:31] Sock 9.Parse request [14:06:31]Sock 9.Check first char [14:06:31]Sock 9.First char is OK [14:06:31]request: POST /json_proto HTTP/1.0 [14:06:31]Method: POST [14:06:31]URL: /json_proto [14:06:31]Method is POST - this is cgi request [14:06:31]url: /json_proto [14:06:31]query_string will be loaded in cgi processing [14:06:31]execute_cgi json_proto POST (null) [14:06:31]execute_cgi path=json_proto method=POST [14:06:31]POST find Content-Length [14:06:31]Host: 172.17.37.4:8080 [14:06:31]Content-Length: 678 [14:06:31]Content-Type: application/json [14:06:31] [14:06:31]POST finish read [14:06:31]Found Content-Length = 678 [14:06:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:31]execute_script... [14:06:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:31]POST & json_proto [14:06:31]process_json_proto [14:06:31]json parsed OK: [14:06:31]protocol is kg_v1.0 [14:06:31]action value=close_receipt [14:06:31]process_action close_receipt [14:06:31]cmd_close_receipt [14:06:31]MH_GetDate [14:06:31]Write to MH i2c: F0 00 00 74 5E C1 [14:06:31]Write i2c OK [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: F0 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: F0 09 00 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: F0 09 00 74 5E 00 F2 D5 45 67 B8 5A 43 67 F9 [14:06:31]GetLastDocTimeStamp 1732629722 [14:06:31]current date 1732630002 [14:06:31]FM_GetShiftState [14:06:31]SAM_PROTO_GetShiftState [14:06:31]wFMCommunicate request_size=4 [14:06:31]MH_SAM_APDU [14:06:31]CAPDU: 80 13 01 00 [14:06:31]Write to MH i2c: E2 08 00 75 5E 80 13 01 00 00 00 00 00 50 [14:06:31]Write i2c OK [14:06:31]MH_I2C_Read... [14:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:31]Read from MH i2c: E2 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: E2 0E 00 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: E2 0E 00 75 5E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 B1 [14:06:31]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:06:31]wFMCommunicate OK [14:06:31]SAM_PROTO_GetShiftState done [14:06:31]FM_GetShiftState done [14:06:31]opened in 1732579736 [14:06:31]opened+sec_in_day 1732666136 [14:06:31]quantity*price = 70028 [14:06:31]sum+1 = 70030 [14:06:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 80 26.11.2024 14:06 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123226 ФПД: 232193718831586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T140642&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123226&fm=232193718831586&tin=02508201610067®Number=0000000000092681&sum=70000 [14:06:32]StoreToDocumentArchive [14:06:32]shift 557 fd 123226 [14:06:32]save to /storage/0557/doc_00123226 [14:06:32]save last doc name /storage/0557/doc_00123226 to /storage/kkm_last_doc_name [14:06:32]save OK [14:06:32]Clear old archive folders... [14:06:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:32]tlvbuf is 01F42920 [14:06:32]SAM_PROTO_ClearQueue [14:06:32]wFMCommunicate request_size=4 [14:06:32]MH_SAM_APDU [14:06:32]CAPDU: 80 09 00 00 [14:06:32]Write to MH i2c: E2 08 00 82 5E 80 09 00 00 00 00 00 00 52 [14:06:32]Write i2c OK [14:06:32]MH_I2C_Read... [14:06:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:32]Read from MH i2c: E2 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 03 00 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 03 00 82 5E 00 90 00 54 [14:06:32]RAPDU: 90 00 [14:06:32]wFMCommunicate OK [14:06:32]SAM_PROTO_ClearQueue done [14:06:32]KKMCreateOFDPacket [14:06:32]OFDProtocolAddRootSTLVToBuf [14:06:32]FM_MakeSignedData [14:06:32]FM_MakeSignedData [14:06:32]SAM_PROTO_SignData [14:06:32]wFMCommunicate request_size=4 [14:06:32]MH_SAM_APDU [14:06:32]CAPDU: 80 0D 01 02 [14:06:32]Write to MH i2c: E2 08 00 83 5E 80 0D 01 02 00 00 00 00 5A [14:06:32]Write i2c OK [14:06:32]MH_I2C_Read... [14:06:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:32]Read from MH i2c: E2 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 03 00 [14:06:32]MH_I2C_Read... [14:06:32]Read from MH i2c: E2 03 00 83 5E 00 90 00 55 [14:06:32]RAPDU: 90 00 [14:06:32]wFMCommunicate OK [14:06:32]wFMCommunicate request_size=255 [14:06:32]MH_SAM_APDU [14:06:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F2 D5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5A E1 01 00 35 04 06 00 D3 [14:06:32]Write to MH i2c: E2 02 01 84 5E 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 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F2 D5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5A E1 01 00 35 04 06 00 D3 00 00 D0 [14:06:32]Write i2c OK [14:06:32]MH_I2C_Read... [14:06:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:33]Read from MH i2c: E2 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: E2 03 00 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: E2 03 00 84 5E 00 90 00 56 [14:06:33]RAPDU: 90 00 [14:06:33]wFMCommunicate OK [14:06:33]wFMCommunicate request_size=10 [14:06:33]MH_SAM_APDU [14:06:33]CAPDU: 80 0D 02 02 05 2D D0 21 49 E2 [14:06:33]Write to MH i2c: E2 0D 00 85 5E 80 0D 02 02 05 00 2D D0 21 49 E2 00 00 B0 [14:06:33]Write i2c OK [14:06:33]MH_I2C_Read... [14:06:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:33]Read from MH i2c: E2 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: E2 03 00 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: E2 03 00 85 5E 00 90 00 57 [14:06:33]RAPDU: 90 00 [14:06:33]wFMCommunicate OK [14:06:33]wFMCommunicate request_size=4 [14:06:33]MH_SAM_APDU [14:06:33]CAPDU: 80 0D 03 02 [14:06:33]Write to MH i2c: E2 08 00 86 5E 80 0D 03 02 00 00 00 00 5F [14:06:33]Write i2c OK [14:06:33]MH_I2C_Read... [14:06:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:33]Read from MH i2c: E2 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: E2 0B 00 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: E2 0B 00 86 5E 00 77 16 89 47 A8 98 30 1D 90 00 4A [14:06:33]RAPDU: 77 16 89 47 A8 98 30 1D 90 00 [14:06:33]wFMCommunicate OK [14:06:33]SAM_PROTO_SignData done [14:06:33]FM_MakeSignedData done [14:06:33]CreateOFDProtocolMessage [14:06:33]wFMCommunicate request_size=4 [14:06:33]MH_SAM_APDU [14:06:33]CAPDU: 80 11 00 00 [14:06:33]Write to MH i2c: E2 08 00 87 5E 80 11 00 00 00 00 00 00 5F [14:06:33]Write i2c OK [14:06:33]MH_I2C_Read... [14:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:33]Read from MH i2c: E2 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: E2 17 00 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: E2 17 00 87 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B6 [14:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:06:33]wFMCommunicate OK [14:06:33]CreateOFDProtocolMessage done [14:06:33]OFDSenderStorePacket 123226 [14:06:33]StoreOFDPacket docnum=123226 [14:06:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D6 07 07 01 56 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F2 D5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5A E1 01 00 35 04 06 00 D3 2D D0 21 49 E2 77 16 89 47 A8 98 30 1D [14:06:33]CheckFolder [14:06:33]dirname=/storage/ofd_packets [14:06:33]CheckFolder done [14:06:33]ProducePacketName [14:06:33]name=ofd_packets/00123226 [14:06:33]NVStorageSaveData ofd_packets/00123226 [14:06:33]File name is /storage/ofd_packets/00123226 [14:06:33]Write 301 bytes [14:06:33]NVStorageSaveData done [14:06:33]OFDSenderStorePacket done [14:06:33]KKMCreateOFDPacket done [14:06:33]NVStorageSaveData kkm_last_timestamp [14:06:33]File name is /storage/kkm_last_timestamp [14:06:33]Write 4 bytes [14:06:33]NVStorageSaveData done [14:06:33]ExternCall_PrintAddStr [14:06:33]wPrintStart [14:06:33]Write to MH i2c: 01 00 00 88 5E E6 [14:06:33]Write i2c OK [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: 01 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: 01 07 00 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: 01 07 00 88 5E 00 00 00 00 00 FF 0F FB [14:06:33]RasterBufferAndPrint [14:06:33]line Счет N : (1)718058 [14:06:33]line ИНН: 02508201610067 [14:06:33]line Контрольно-Кассовый Чек [14:06:33]line ПРОДАЖА [14:06:33]line ТРК (МРК, ГНК) : 42 [14:06:33]line Товар: 2710124130 [14:06:33]line Аи-92-К-4 [14:06:33]line 10.390 * 67.40 [14:06:33]line = 700.29 [14:06:33]line НДС 12% НСП 1% [14:06:33]line > о реализуемом товаре [14:06:33]line ОКРУГЛЕНИЕ: -0.29 [14:06:33]line ИТОГО: 700.00 [14:06:33]line Внесено: 700.00 [14:06:33]line СДАЧА: 0.00 [14:06:33]line НСП 1% : 6.20 [14:06:33]line НДС 12% : 74.37 [14:06:33]line Наличными: 700.00 [14:06:33]line Безнал.: 0.00 [14:06:33]line Место: АЗС № 64 "Партнер Нефть" [14:06:33]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:06:33]line СНО: Общий режим [14:06:33]line Чек 80 26.11.2024 14:06 [14:06:33]line Смена: 557 ФФД: 1.0 [14:06:33]line ЗНМ: 0300000033 [14:06:33]line РНМ: 0000000000092681 [14:06:33]line Версия ККМ: 001 [14:06:33]line ФМ: 0000000000874881 [14:06:33]line ФД: 123226 [14:06:33]line ФПД: 232193718831586 [14:06:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T140642&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123226&fm=232193718831586&tin=02508201610067®Number=0000000000092681&sum=70000 [14:06:33]OFD Sender: Processing packet 123226 [packets to send 7, broken 6] [14:06:33]ProducePacketName [14:06:33]name=ofd_packets/00123226 [14:06:33]OFD Sender: To server: pG, [14:06:33]CommunicateWithHost lk.salyk.kg:30040 [14:06:33]ConnectInit lk.salyk.kg [14:06:33]written 0, free lines is 4095 [14:06:33]Connected sock=10 [14:06:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D6 07 07 01 56 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F2 D5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5A E1 01 00 35 04 06 00 D3 2D D0 21 49 E2 77 16 89 47 A8 98 30 1D [14:06:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 75 16 47 00 BF E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5A E1 01 00 F4 03 04 00 B4 81 45 67 B6 04 01 00 00 27 C6 5D 4D 61 01 D5 48 [14:06:33]CommunicateWithHost err = 0 [14:06:33]CheckOFDResponse [14:06:33]1017 (14) - 77093643461234 [14:06:33]1041 (16) - 0000000000874881 [14:06:33]1040 (4) - 123226 [14:06:33]1012 (4) - 26.11.2024 08:07 [14:06:33]1206 (1) - 0 [14:06:33]OFD Sender: Remove packet 123226 [14:06:33]ProducePacketName [14:06:33]name=ofd_packets/00123226 [14:06:33]NVStorageDeleteData [14:06:34]Write to MH i2c: 01 00 00 B3 5E 11 [14:06:34]Write i2c OK [14:06:34]MH_I2C_Read... [14:06:34]Read from MH i2c: 01 [14:06:34]MH_I2C_Read... [14:06:34]Read from MH i2c: 01 07 00 [14:06:34]MH_I2C_Read... [14:06:34]Read from MH i2c: 01 07 00 B3 5E 00 00 00 00 00 42 0C 66 [14:06:34]RasterBufferAndPrint [14:06:34]line [14:06:34]line [14:06:34]line [14:06:34]line [14:06:34]line [14:06:34]written 0, free lines is 3144 [14:06:34]MH_Cut [14:06:34]Write to MH i2c: D1 01 00 BA 5E 01 EA [14:06:34]Write i2c OK [14:06:34]MH_I2C_Read... [14:06:34]Read from MH i2c: D1 [14:06:34]MH_I2C_Read... [14:06:34]Read from MH i2c: D1 01 00 [14:06:34]MH_I2C_Read... [14:06:34]Read from MH i2c: D1 01 00 BA 5E 00 E9 [14:06:34]Write to MH i2c: 01 00 00 BB 5E 19 [14:06:34]Write i2c OK [14:06:34]MH_I2C_Read... [14:06:34]OFD Sender: No OFD packet to send [14:06:35]*** Cut start [14:06:35]*** Partial cut [14:06:35]*** CUTSNS_PIN = 1 [14:06:35]*** CUTSNS_PIN = 0 [14:06:35]*** Brake cut motor [14:06:36]Read from MH i2c: 01 [14:06:36]MH_I2C_Read... [14:06:36]*** Stop cut motor [14:06:36]*** Cut end [14:06:36]Read from MH i2c: 01 07 00 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: 01 07 00 BB 5E 00 00 00 00 00 FF 0F 2E [14:06:36]process_action close_receipt done [14:06:36]requested_data is exist [14:06:36]produce_requested_data [14:06:36]requested_item fm.sn is exist - process it [14:06:36]wFMCommunicate request_size=4 [14:06:36]MH_SAM_APDU [14:06:36]CAPDU: 80 11 00 00 [14:06:36]Write to MH i2c: E2 08 00 BC 5E 80 11 00 00 00 00 00 00 94 [14:06:36]Write i2c OK [14:06:36]MH_I2C_Read... [14:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:36]Read from MH i2c: E2 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 17 00 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 17 00 BC 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EB [14:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:06:36]wFMCommunicate OK [14:06:36]requested_item fd.num is exist - process it [14:06:36]SAM_PROTO_GetFieldsCounters [14:06:36]wFMCommunicate request_size=4 [14:06:36]MH_SAM_APDU [14:06:36]CAPDU: 80 13 00 00 [14:06:36]Write to MH i2c: E2 08 00 BD 5E 80 13 00 00 00 00 00 00 97 [14:06:36]Write i2c OK [14:06:36]MH_I2C_Read... [14:06:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:36]Read from MH i2c: E2 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 62 00 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 62 00 BD 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5A E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [14:06:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5A E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:06:36]wFMCommunicate OK [14:06:36]SAM_PROTO_GetFieldsCounters done [14:06:36]requested_item shift.num is exist - process it [14:06:36]requested_item shift.opened is exist - process it [14:06:36]req_shift_opened [14:06:36]FM_GetShiftState [14:06:36]SAM_PROTO_GetShiftState [14:06:36]wFMCommunicate request_size=4 [14:06:36]MH_SAM_APDU [14:06:36]CAPDU: 80 13 01 00 [14:06:36]Write to MH i2c: E2 08 00 BE 5E 80 13 01 00 00 00 00 00 99 [14:06:36]Write i2c OK [14:06:36]MH_I2C_Read... [14:06:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:36]Read from MH i2c: E2 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 0E 00 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 0E 00 BE 5E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 FA [14:06:36]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:06:36]wFMCommunicate OK [14:06:36]SAM_PROTO_GetShiftState done [14:06:36]FM_GetShiftState done [14:06:36]req_shift_opened done [14:06:36]requested_item shift.open_date is exist - process it [14:06:36]req_shift_open_date [14:06:36]req_shift_open_date done [14:06:36]produce_requested_data done [14:06:36]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123226,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [14:06:36]process_action_free close_receipt [14:06:36]json_value_free [14:06:36]json_value_free done [14:06:36]process_json_proto returns [14:06:36]Send response to host [14:06:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123226,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [14:06:36]free response buf [14:06:36]execute_script done [14:06:36]execute_script returns [14:06:36]free content buf [14:06:36]Sock 9.Close socket [14:06:36]Sock 9.Thread stoped [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:47]accept exits with 7 [14:06:47]New connection [14:06:47]New thread 3066580324 created [14:06:47]Thread 3066723684 joined [14:06:47]Waiting for new connection... [14:06:47] Sock 7.Parse request [14:06:47]Sock 7.Check first char [14:06:47]Sock 7.First char is OK [14:06:47]request: POST /json_proto HTTP/1.0 [14:06:47]Method: POST [14:06:47]URL: /json_proto [14:06:47]Method is POST - this is cgi request [14:06:47]url: /json_proto [14:06:47]query_string will be loaded in cgi processing [14:06:47]execute_cgi json_proto POST (null) [14:06:47]execute_cgi path=json_proto method=POST [14:06:47]POST find Content-Length [14:06:47]Host: 172.17.37.4:8080 [14:06:47]Content-Length: 682 [14:06:47]Content-Type: application/json [14:06:47] [14:06:47]POST finish read [14:06:47]Found Content-Length = 682 [14:06:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 10.690, "sum" : 800.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:47]execute_script... [14:06:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 10.690, "sum" : 800.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:47]POST & json_proto [14:06:47]process_json_proto [14:06:47]json parsed OK: [14:06:47]protocol is kg_v1.0 [14:06:47]action value=close_receipt [14:06:47]process_action close_receipt [14:06:47]cmd_close_receipt [14:06:47]MH_GetDate [14:06:47]Write to MH i2c: F0 00 00 BF 5E 0C [14:06:47]Write i2c OK [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: F0 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: F0 09 00 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: F0 09 00 BF 5E 00 02 D6 45 67 B8 5A 43 67 55 [14:06:47]GetLastDocTimeStamp 1732630002 [14:06:47]current date 1732630018 [14:06:47]FM_GetShiftState [14:06:47]SAM_PROTO_GetShiftState [14:06:47]wFMCommunicate request_size=4 [14:06:47]MH_SAM_APDU [14:06:47]CAPDU: 80 13 01 00 [14:06:47]Write to MH i2c: E2 08 00 C0 5E 80 13 01 00 00 00 00 00 9B [14:06:47]Write i2c OK [14:06:47]MH_I2C_Read... [14:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:47]Read from MH i2c: E2 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: E2 0E 00 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: E2 0E 00 C0 5E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 FC [14:06:47]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:06:47]wFMCommunicate OK [14:06:47]SAM_PROTO_GetShiftState done [14:06:47]FM_GetShiftState done [14:06:47]opened in 1732579736 [14:06:47]opened+sec_in_day 1732666136 [14:06:47]quantity*price = 80068 [14:06:47]sum+1 = 80069 [14:06:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.09 НДС 12% : 85.03 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 81 26.11.2024 14:06 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123227 ФПД: 111778609562020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T140658&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123227&fm=111778609562020&tin=02508201610067®Number=0000000000092681&sum=80000 [14:06:48]StoreToDocumentArchive [14:06:48]shift 557 fd 123227 [14:06:48]save to /storage/0557/doc_00123227 [14:06:48]save last doc name /storage/0557/doc_00123227 to /storage/kkm_last_doc_name [14:06:48]save OK [14:06:48]Clear old archive folders... [14:06:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:06:48]tlvbuf is 0212B990 [14:06:48]SAM_PROTO_ClearQueue [14:06:48]wFMCommunicate request_size=4 [14:06:48]MH_SAM_APDU [14:06:48]CAPDU: 80 09 00 00 [14:06:48]Write to MH i2c: E2 08 00 CD 5E 80 09 00 00 00 00 00 00 9D [14:06:48]Write i2c OK [14:06:48]MH_I2C_Read... [14:06:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:49]Read from MH i2c: E2 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 CD 5E 00 90 00 9F [14:06:49]RAPDU: 90 00 [14:06:49]wFMCommunicate OK [14:06:49]SAM_PROTO_ClearQueue done [14:06:49]KKMCreateOFDPacket [14:06:49]OFDProtocolAddRootSTLVToBuf [14:06:49]FM_MakeSignedData [14:06:49]FM_MakeSignedData [14:06:49]SAM_PROTO_SignData [14:06:49]wFMCommunicate request_size=4 [14:06:49]MH_SAM_APDU [14:06:49]CAPDU: 80 0D 01 02 [14:06:49]Write to MH i2c: E2 08 00 CE 5E 80 0D 01 02 00 00 00 00 A5 [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:49]Read from MH i2c: E2 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 CE 5E 00 90 00 A0 [14:06:49]RAPDU: 90 00 [14:06:49]wFMCommunicate OK [14:06:49]wFMCommunicate request_size=255 [14:06:49]MH_SAM_APDU [14:06:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C2 29 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 C4 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 02 D6 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5B E1 01 00 35 04 06 00 [14:06:49]Write to MH i2c: E2 02 01 CF 5E 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 35 FF 03 08 00 03 C2 29 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 C4 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 02 D6 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5B E1 01 00 35 04 06 00 00 00 08 [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:49]Read from MH i2c: E2 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 CF 5E 00 90 00 A1 [14:06:49]RAPDU: 90 00 [14:06:49]wFMCommunicate OK [14:06:49]wFMCommunicate request_size=11 [14:06:49]MH_SAM_APDU [14:06:49]CAPDU: 80 0D 02 02 06 65 A9 7C 51 01 A4 [14:06:49]Write to MH i2c: E2 0E 00 D0 5E 80 0D 02 02 06 00 65 A9 7C 51 01 A4 00 00 34 [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:49]Read from MH i2c: E2 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 D0 5E 00 90 00 A2 [14:06:49]RAPDU: 90 00 [14:06:49]wFMCommunicate OK [14:06:49]wFMCommunicate request_size=4 [14:06:49]MH_SAM_APDU [14:06:49]CAPDU: 80 0D 03 02 [14:06:49]Write to MH i2c: E2 08 00 D1 5E 80 0D 03 02 00 00 00 00 AA [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:49]Read from MH i2c: E2 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 0B 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 0B 00 D1 5E 00 C6 0B 88 C8 D6 FE D6 A0 90 00 16 [14:06:49]RAPDU: C6 0B 88 C8 D6 FE D6 A0 90 00 [14:06:49]wFMCommunicate OK [14:06:49]SAM_PROTO_SignData done [14:06:49]FM_MakeSignedData done [14:06:49]CreateOFDProtocolMessage [14:06:49]wFMCommunicate request_size=4 [14:06:49]MH_SAM_APDU [14:06:49]CAPDU: 80 11 00 00 [14:06:49]Write to MH i2c: E2 08 00 D2 5E 80 11 00 00 00 00 00 00 AA [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:49]Read from MH i2c: E2 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 17 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 17 00 D2 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 01 [14:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:06:49]wFMCommunicate OK [14:06:49]CreateOFDProtocolMessage done [14:06:49]OFDSenderStorePacket 123227 [14:06:49]StoreOFDPacket docnum=123227 [14:06:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 D4 C7 08 01 A2 94 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 35 FF 03 08 00 03 C2 29 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 C4 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 02 D6 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5B E1 01 00 35 04 06 00 65 A9 7C 51 01 A4 C6 0B 88 C8 D6 FE D6 A0 [14:06:49]CheckFolder [14:06:49]dirname=/storage/ofd_packets [14:06:49]CheckFolder done [14:06:49]ProducePacketName [14:06:49]name=ofd_packets/00123227 [14:06:49]NVStorageSaveData ofd_packets/00123227 [14:06:49]File name is /storage/ofd_packets/00123227 [14:06:49]Write 302 bytes [14:06:49]NVStorageSaveData done [14:06:49]OFDSenderStorePacket done [14:06:49]KKMCreateOFDPacket done [14:06:49]NVStorageSaveData kkm_last_timestamp [14:06:49]File name is /storage/kkm_last_timestamp [14:06:49]Write 4 bytes [14:06:49]NVStorageSaveData done [14:06:49]ExternCall_PrintAddStr [14:06:49]wPrintStart [14:06:49]Write to MH i2c: 01 00 00 D3 5E 31 [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: 01 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: 01 07 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: 01 07 00 D3 5E 00 00 00 00 00 FF 0F 46 [14:06:49]RasterBufferAndPrint [14:06:49]line Счет N : (1)718059 [14:06:49]line ИНН: 02508201610067 [14:06:49]line Контрольно-Кассовый Чек [14:06:49]line ПРОДАЖА [14:06:49]line ТРК (МРК, ГНК) : 5 [14:06:49]line Товар: 2710194210 [14:06:49]line ДТ(л)-К-5 [14:06:49]line 10.690 * 74.90 [14:06:49]line = 800.68 [14:06:49]line НДС 12% НСП 1% [14:06:49]line > о реализуемом товаре [14:06:49]line ОКРУГЛЕНИЕ: -0.68 [14:06:49]line ИТОГО: 800.00 [14:06:49]line Внесено: 800.00 [14:06:49]line СДАЧА: 0.00 [14:06:49]line НСП 1% : 7.09 [14:06:49]line НДС 12% : 85.03 [14:06:49]line Наличными: 800.00 [14:06:49]line Безнал.: 0.00 [14:06:49]line Место: АЗС № 64 "Партнер Нефть" [14:06:49]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:06:49]line СНО: Общий режим [14:06:49]line Чек 81 26.11.2024 14:06 [14:06:49]line Смена: 557 ФФД: 1.0 [14:06:49]line ЗНМ: 0300000033 [14:06:49]line РНМ: 0000000000092681 [14:06:49]line Версия ККМ: 001 [14:06:49]line ФМ: 0000000000874881 [14:06:49]line ФД: 123227 [14:06:49]line ФПД: 111778609562020 [14:06:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T140658&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123227&fm=111778609562020&tin=02508201610067®Number=0000000000092681&sum=80000 [14:06:49]OFD Sender: Processing packet 123227 [packets to send 7, broken 6] [14:06:49]ProducePacketName [14:06:49]name=ofd_packets/00123227 [14:06:49]OFD Sender: To server: pG, [14:06:49]CommunicateWithHost lk.salyk.kg:30040 [14:06:49]ConnectInit lk.salyk.kg [14:06:49]written 0, free lines is 4095 [14:06:49]Connected sock=10 [14:06:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 D4 C7 08 01 A2 94 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 35 FF 03 08 00 03 C2 29 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 C4 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 02 D6 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5B E1 01 00 35 04 06 00 65 A9 7C 51 01 A4 C6 0B 88 C8 D6 FE D6 A0 [14:06:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 6D BC 47 00 CD 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 38 37 34 38 38 31 10 04 04 00 5B E1 01 00 F4 03 04 00 C5 81 45 67 B6 04 01 00 00 6F 98 24 8A 98 AE 6B D0 [14:06:50]CommunicateWithHost err = 0 [14:06:50]CheckOFDResponse [14:06:50]1017 (14) - 77093643461234 [14:06:50]1041 (16) - 0000000000874881 [14:06:50]1040 (4) - 123227 [14:06:50]1012 (4) - 26.11.2024 08:07 [14:06:50]1206 (1) - 0 [14:06:50]OFD Sender: Remove packet 123227 [14:06:50]ProducePacketName [14:06:50]name=ofd_packets/00123227 [14:06:50]NVStorageDeleteData [14:06:50]Write to MH i2c: 01 00 00 FE 5E 5C [14:06:50]Write i2c OK [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: 01 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: 01 07 00 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: 01 07 00 FE 5E 00 00 00 00 00 4B 0C BA [14:06:50]RasterBufferAndPrint [14:06:50]line [14:06:50]line [14:06:50]line [14:06:50]line [14:06:50]line [14:06:50]written 0, free lines is 3151 [14:06:50]MH_Cut [14:06:50]Write to MH i2c: D1 01 00 05 5F 01 36 [14:06:50]Write i2c OK [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: D1 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: D1 01 00 [14:06:50]MH_I2C_Read... [14:06:50]Read from MH i2c: D1 01 00 05 5F 00 35 [14:06:50]Write to MH i2c: 01 00 00 06 5F 65 [14:06:50]Write i2c OK [14:06:50]MH_I2C_Read... [14:06:50]OFD Sender: No OFD packet to send [14:06:51]*** Cut start [14:06:51]*** Partial cut [14:06:51]*** CUTSNS_PIN = 1 [14:06:51]*** CUTSNS_PIN = 0 [14:06:51]*** Brake cut motor [14:06:52]Read from MH i2c: 01 [14:06:52]MH_I2C_Read... [14:06:52]*** Stop cut motor [14:06:52]*** Cut end [14:06:52]Read from MH i2c: 01 07 00 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: 01 07 00 06 5F 00 00 00 00 00 FF 0F 7A [14:06:52]process_action close_receipt done [14:06:52]requested_data is exist [14:06:52]produce_requested_data [14:06:52]requested_item fm.sn is exist - process it [14:06:52]wFMCommunicate request_size=4 [14:06:52]MH_SAM_APDU [14:06:52]CAPDU: 80 11 00 00 [14:06:52]Write to MH i2c: E2 08 00 07 5F 80 11 00 00 00 00 00 00 E0 [14:06:52]Write i2c OK [14:06:52]MH_I2C_Read... [14:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:52]Read from MH i2c: E2 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 17 00 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 17 00 07 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 37 [14:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:06:52]wFMCommunicate OK [14:06:52]requested_item fd.num is exist - process it [14:06:52]SAM_PROTO_GetFieldsCounters [14:06:52]wFMCommunicate request_size=4 [14:06:52]MH_SAM_APDU [14:06:52]CAPDU: 80 13 00 00 [14:06:52]Write to MH i2c: E2 08 00 08 5F 80 13 00 00 00 00 00 00 E3 [14:06:52]Write i2c OK [14:06:52]MH_I2C_Read... [14:06:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:52]Read from MH i2c: E2 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 62 00 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 62 00 08 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5B E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [14:06:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5B E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:06:52]wFMCommunicate OK [14:06:52]SAM_PROTO_GetFieldsCounters done [14:06:52]requested_item shift.num is exist - process it [14:06:52]requested_item shift.opened is exist - process it [14:06:52]req_shift_opened [14:06:52]FM_GetShiftState [14:06:52]SAM_PROTO_GetShiftState [14:06:52]wFMCommunicate request_size=4 [14:06:52]MH_SAM_APDU [14:06:52]CAPDU: 80 13 01 00 [14:06:52]Write to MH i2c: E2 08 00 09 5F 80 13 01 00 00 00 00 00 E5 [14:06:52]Write i2c OK [14:06:52]MH_I2C_Read... [14:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:52]Read from MH i2c: E2 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 0E 00 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 0E 00 09 5F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 46 [14:06:52]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:06:52]wFMCommunicate OK [14:06:52]SAM_PROTO_GetShiftState done [14:06:52]FM_GetShiftState done [14:06:52]req_shift_opened done [14:06:52]requested_item shift.open_date is exist - process it [14:06:52]req_shift_open_date [14:06:52]req_shift_open_date done [14:06:52]produce_requested_data done [14:06:52]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123227,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [14:06:52]process_action_free close_receipt [14:06:52]json_value_free [14:06:52]json_value_free done [14:06:52]process_json_proto returns [14:06:52]Send response to host [14:06:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123227,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [14:06:52]free response buf [14:06:52]execute_script done [14:06:52]execute_script returns [14:06:52]free content buf [14:06:52]Sock 7.Close socket [14:06:52]Sock 7.Thread stoped [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:15]OFD Sender: No OFD packet to send [14:07:20]OFD Sender: No OFD packet to send [14:07:25]OFD Sender: No OFD packet to send [14:07:30]OFD Sender: No OFD packet to send [14:07:35]OFD Sender: No OFD packet to send [14:07:40]OFD Sender: No OFD packet to send [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [14:07:55]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:50]OFD Sender: No OFD packet to send [14:09:55]accept exits with 9 [14:09:55]New connection [14:09:55]New thread 3066723684 created [14:09:55]Thread 3066580324 joined [14:09:55]Waiting for new connection... [14:09:55] Sock 9.Parse request [14:09:55]Sock 9.Check first char [14:09:55]Sock 9.First char is OK [14:09:55]request: POST /json_proto HTTP/1.0 [14:09:55]Method: POST [14:09:55]URL: /json_proto [14:09:55]Method is POST - this is cgi request [14:09:55]url: /json_proto [14:09:55]query_string will be loaded in cgi processing [14:09:55]execute_cgi json_proto POST (null) [14:09:55]execute_cgi path=json_proto method=POST [14:09:55]POST find Content-Length [14:09:55]Host: 172.17.37.4:8080 [14:09:55]Content-Length: 677 [14:09:55]Content-Type: application/json [14:09:55] [14:09:55]POST finish read [14:09:55]Found Content-Length = 677 [14:09:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.380, "sum" : 160.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:55]execute_script... [14:09:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.380, "sum" : 160.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:55]POST & json_proto [14:09:55]process_json_proto [14:09:55]json parsed OK: [14:09:55]protocol is kg_v1.0 [14:09:55]action value=close_receipt [14:09:55]process_action close_receipt [14:09:55]cmd_close_receipt [14:09:55]MH_GetDate [14:09:55]Write to MH i2c: F0 00 00 0A 5F 58 [14:09:55]Write i2c OK [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: F0 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: F0 09 00 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: F0 09 00 0A 5F 00 BE D6 45 67 B8 5A 43 67 5D [14:09:55]GetLastDocTimeStamp 1732630018 [14:09:55]current date 1732630206 [14:09:55]FM_GetShiftState [14:09:55]SAM_PROTO_GetShiftState [14:09:55]wFMCommunicate request_size=4 [14:09:55]MH_SAM_APDU [14:09:55]CAPDU: 80 13 01 00 [14:09:55]Write to MH i2c: E2 08 00 0B 5F 80 13 01 00 00 00 00 00 E7 [14:09:55]Write i2c OK [14:09:55]MH_I2C_Read... [14:09:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:55]Read from MH i2c: E2 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: E2 0E 00 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: E2 0E 00 0B 5F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 48 [14:09:55]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:09:55]wFMCommunicate OK [14:09:55]SAM_PROTO_GetShiftState done [14:09:55]FM_GetShiftState done [14:09:55]opened in 1732579736 [14:09:55]opened+sec_in_day 1732666136 [14:09:55]quantity*price = 16041 [14:09:55]sum+1 = 16042 [14:09:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 160.00 Внесено: 160.00 СДАЧА: 0.00 НСП 1% : 1.42 НДС 12% : 17.03 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 82 26.11.2024 14:10 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123228 ФПД: 167770946975335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T141006&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123228&fm=167770946975335&tin=02508201610067®Number=0000000000092681&sum=16000 [14:09:56]StoreToDocumentArchive [14:09:56]shift 557 fd 123228 [14:09:56]save to /storage/0557/doc_00123228 [14:09:56]save last doc name /storage/0557/doc_00123228 to /storage/kkm_last_doc_name [14:09:56]save OK [14:09:56]Clear old archive folders... [14:09:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:56]tlvbuf is 01F5EDF0 [14:09:56]SAM_PROTO_ClearQueue [14:09:56]wFMCommunicate request_size=4 [14:09:56]MH_SAM_APDU [14:09:56]CAPDU: 80 09 00 00 [14:09:56]Write to MH i2c: E2 08 00 18 5F 80 09 00 00 00 00 00 00 E9 [14:09:56]Write i2c OK [14:09:56]MH_I2C_Read... [14:09:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:56]Read from MH i2c: E2 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: E2 03 00 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: E2 03 00 18 5F 00 90 00 EB [14:09:56]RAPDU: 90 00 [14:09:56]wFMCommunicate OK [14:09:56]SAM_PROTO_ClearQueue done [14:09:56]KKMCreateOFDPacket [14:09:56]OFDProtocolAddRootSTLVToBuf [14:09:56]FM_MakeSignedData [14:09:56]FM_MakeSignedData [14:09:56]SAM_PROTO_SignData [14:09:56]wFMCommunicate request_size=4 [14:09:56]MH_SAM_APDU [14:09:56]CAPDU: 80 0D 01 02 [14:09:56]Write to MH i2c: E2 08 00 19 5F 80 0D 01 02 00 00 00 00 F1 [14:09:56]Write i2c OK [14:09:56]MH_I2C_Read... [14:09:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:56]Read from MH i2c: E2 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: E2 03 00 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: E2 03 00 19 5F 00 90 00 EC [14:09:56]RAPDU: 90 00 [14:09:56]wFMCommunicate OK [14:09:56]wFMCommunicate request_size=255 [14:09:56]MH_SAM_APDU [14:09:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4C 09 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A9 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 BE D6 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5C E1 01 00 35 04 06 00 98 [14:09:56]Write to MH i2c: E2 02 01 1A 5F 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 34 FF 03 08 00 03 4C 09 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A9 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 BE D6 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5C E1 01 00 35 04 06 00 98 00 00 F7 [14:09:56]Write i2c OK [14:09:56]MH_I2C_Read... [14:09:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:57]Read from MH i2c: E2 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 03 00 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 03 00 1A 5F 00 90 00 ED [14:09:57]RAPDU: 90 00 [14:09:57]wFMCommunicate OK [14:09:57]wFMCommunicate request_size=10 [14:09:57]MH_SAM_APDU [14:09:57]CAPDU: 80 0D 02 02 05 96 37 B2 B6 67 [14:09:57]Write to MH i2c: E2 0D 00 1B 5F 80 0D 02 02 05 00 96 37 B2 B6 67 00 00 9A [14:09:57]Write i2c OK [14:09:57]MH_I2C_Read... [14:09:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:57]Read from MH i2c: E2 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 03 00 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 03 00 1B 5F 00 90 00 EE [14:09:57]RAPDU: 90 00 [14:09:57]wFMCommunicate OK [14:09:57]wFMCommunicate request_size=4 [14:09:57]MH_SAM_APDU [14:09:57]CAPDU: 80 0D 03 02 [14:09:57]Write to MH i2c: E2 08 00 1C 5F 80 0D 03 02 00 00 00 00 F6 [14:09:57]Write i2c OK [14:09:57]MH_I2C_Read... [14:09:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:57]Read from MH i2c: E2 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 0B 00 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 0B 00 1C 5F 00 B6 40 54 04 FA AE 51 D8 90 00 16 [14:09:57]RAPDU: B6 40 54 04 FA AE 51 D8 90 00 [14:09:57]wFMCommunicate OK [14:09:57]SAM_PROTO_SignData done [14:09:57]FM_MakeSignedData done [14:09:57]CreateOFDProtocolMessage [14:09:57]wFMCommunicate request_size=4 [14:09:57]MH_SAM_APDU [14:09:57]CAPDU: 80 11 00 00 [14:09:57]Write to MH i2c: E2 08 00 1D 5F 80 11 00 00 00 00 00 00 F6 [14:09:57]Write i2c OK [14:09:57]MH_I2C_Read... [14:09:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:57]Read from MH i2c: E2 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 17 00 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 17 00 1D 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 4D [14:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:09:57]wFMCommunicate OK [14:09:57]CreateOFDProtocolMessage done [14:09:57]OFDSenderStorePacket 123228 [14:09:57]StoreOFDPacket docnum=123228 [14:09:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 ED 0C 07 01 C4 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4C 09 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A9 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 BE D6 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5C E1 01 00 35 04 06 00 98 96 37 B2 B6 67 B6 40 54 04 FA AE 51 D8 [14:09:57]CheckFolder [14:09:57]dirname=/storage/ofd_packets [14:09:57]CheckFolder done [14:09:57]ProducePacketName [14:09:57]name=ofd_packets/00123228 [14:09:57]NVStorageSaveData ofd_packets/00123228 [14:09:57]File name is /storage/ofd_packets/00123228 [14:09:57]Write 301 bytes [14:09:57]NVStorageSaveData done [14:09:57]OFDSenderStorePacket done [14:09:57]KKMCreateOFDPacket done [14:09:57]NVStorageSaveData kkm_last_timestamp [14:09:57]File name is /storage/kkm_last_timestamp [14:09:57]Write 4 bytes [14:09:57]NVStorageSaveData done [14:09:57]ExternCall_PrintAddStr [14:09:57]wPrintStart [14:09:57]Write to MH i2c: 01 00 00 1E 5F 7D [14:09:57]Write i2c OK [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: 01 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: 01 07 00 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: 01 07 00 1E 5F 00 00 00 00 00 FF 0F 92 [14:09:57]RasterBufferAndPrint [14:09:57]line Счет N : (1)718060 [14:09:57]line ИНН: 02508201610067 [14:09:57]line Контрольно-Кассовый Чек [14:09:57]line ПРОДАЖА [14:09:57]line ТРК (МРК, ГНК) : 32 [14:09:57]line Товар: 2710124130 [14:09:57]line Аи-92-К-4 [14:09:57]line 2.380 * 67.40 [14:09:57]line = 160.41 [14:09:57]line НДС 12% НСП 1% [14:09:57]line > о реализуемом товаре [14:09:57]line ОКРУГЛЕНИЕ: -0.41 [14:09:57]line ИТОГО: 160.00 [14:09:57]line Внесено: 160.00 [14:09:57]line СДАЧА: 0.00 [14:09:57]line НСП 1% : 1.42 [14:09:57]line НДС 12% : 17.03 [14:09:57]line Наличными: 160.00 [14:09:57]line Безнал.: 0.00 [14:09:57]line Место: АЗС № 64 "Партнер Нефть" [14:09:57]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:09:57]line СНО: Общий режим [14:09:57]line Чек 82 26.11.2024 14:10 [14:09:57]line Смена: 557 ФФД: 1.0 [14:09:57]line ЗНМ: 0300000033 [14:09:57]line РНМ: 0000000000092681 [14:09:57]line Версия ККМ: 001 [14:09:57]line ФМ: 0000000000874881 [14:09:57]line ФД: 123228 [14:09:57]line ФПД: 167770946975335 [14:09:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T141006&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123228&fm=167770946975335&tin=02508201610067®Number=0000000000092681&sum=16000 [14:09:57]OFD Sender: Processing packet 123228 [packets to send 7, broken 6] [14:09:57]ProducePacketName [14:09:57]name=ofd_packets/00123228 [14:09:57]OFD Sender: To server: pG, [14:09:57]CommunicateWithHost lk.salyk.kg:30040 [14:09:57]ConnectInit lk.salyk.kg [14:09:57]written 0, free lines is 4095 [14:09:57]Connected sock=10 [14:09:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 ED 0C 07 01 C4 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4C 09 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A9 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 BE D6 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5C E1 01 00 35 04 06 00 98 96 37 B2 B6 67 B6 40 54 04 FA AE 51 D8 [14:09:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 16 13 47 00 DF 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5C E1 01 00 F4 03 04 00 80 82 45 67 B6 04 01 00 00 BF E0 41 BF C2 5B 8F 2E [14:09:57]CommunicateWithHost err = 0 [14:09:57]CheckOFDResponse [14:09:57]1017 (14) - 77093643461234 [14:09:57]1041 (16) - 0000000000874881 [14:09:57]1040 (4) - 123228 [14:09:57]1012 (4) - 26.11.2024 08:10 [14:09:57]1206 (1) - 0 [14:09:57]OFD Sender: Remove packet 123228 [14:09:57]ProducePacketName [14:09:57]name=ofd_packets/00123228 [14:09:57]NVStorageDeleteData [14:09:57]Write to MH i2c: 01 00 00 49 5F A8 [14:09:57]Write i2c OK [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: 01 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: 01 07 00 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: 01 07 00 49 5F 00 00 00 00 00 4C 0C 07 [14:09:57]RasterBufferAndPrint [14:09:57]line [14:09:57]line [14:09:57]line [14:09:57]line [14:09:57]line [14:09:58]written 0, free lines is 3152 [14:09:58]MH_Cut [14:09:58]Write to MH i2c: D1 01 00 50 5F 01 81 [14:09:58]Write i2c OK [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: D1 [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: D1 01 00 [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: D1 01 00 50 5F 00 80 [14:09:58]Write to MH i2c: 01 00 00 51 5F B0 [14:09:58]Write i2c OK [14:09:58]MH_I2C_Read... [14:09:58]OFD Sender: No OFD packet to send [14:09:59]*** Cut start [14:09:59]*** Partial cut [14:09:59]*** CUTSNS_PIN = 1 [14:09:59]*** CUTSNS_PIN = 0 [14:09:59]*** Brake cut motor [14:09:59]Read from MH i2c: 01 [14:09:59]MH_I2C_Read... [14:09:59]*** Stop cut motor [14:09:59]*** Cut end [14:09:59]Read from MH i2c: 01 07 00 [14:09:59]MH_I2C_Read... [14:09:59]Read from MH i2c: 01 07 00 51 5F 00 00 00 00 00 FF 0F C5 [14:09:59]process_action close_receipt done [14:09:59]requested_data is exist [14:09:59]produce_requested_data [14:09:59]requested_item fm.sn is exist - process it [14:09:59]wFMCommunicate request_size=4 [14:09:59]MH_SAM_APDU [14:09:59]CAPDU: 80 11 00 00 [14:09:59]Write to MH i2c: E2 08 00 52 5F 80 11 00 00 00 00 00 00 2B [14:09:59]Write i2c OK [14:09:59]MH_I2C_Read... [14:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:00]Read from MH i2c: E2 [14:10:00]MH_I2C_Read... [14:10:00]Read from MH i2c: E2 17 00 [14:10:00]MH_I2C_Read... [14:10:00]Read from MH i2c: E2 17 00 52 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 82 [14:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:10:00]wFMCommunicate OK [14:10:00]requested_item fd.num is exist - process it [14:10:00]SAM_PROTO_GetFieldsCounters [14:10:00]wFMCommunicate request_size=4 [14:10:00]MH_SAM_APDU [14:10:00]CAPDU: 80 13 00 00 [14:10:00]Write to MH i2c: E2 08 00 53 5F 80 13 00 00 00 00 00 00 2E [14:10:00]Write i2c OK [14:10:00]MH_I2C_Read... [14:10:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:00]Read from MH i2c: E2 [14:10:00]MH_I2C_Read... [14:10:00]Read from MH i2c: E2 62 00 [14:10:00]MH_I2C_Read... [14:10:00]Read from MH i2c: E2 62 00 53 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5C E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [14:10:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5C E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:10:00]wFMCommunicate OK [14:10:00]SAM_PROTO_GetFieldsCounters done [14:10:00]requested_item shift.num is exist - process it [14:10:00]requested_item shift.opened is exist - process it [14:10:00]req_shift_opened [14:10:00]FM_GetShiftState [14:10:00]SAM_PROTO_GetShiftState [14:10:00]wFMCommunicate request_size=4 [14:10:00]MH_SAM_APDU [14:10:00]CAPDU: 80 13 01 00 [14:10:00]Write to MH i2c: E2 08 00 54 5F 80 13 01 00 00 00 00 00 30 [14:10:00]Write i2c OK [14:10:00]MH_I2C_Read... [14:10:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:00]Read from MH i2c: E2 [14:10:00]MH_I2C_Read... [14:10:00]Read from MH i2c: E2 0E 00 [14:10:00]MH_I2C_Read... [14:10:00]Read from MH i2c: E2 0E 00 54 5F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 91 [14:10:00]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:10:00]wFMCommunicate OK [14:10:00]SAM_PROTO_GetShiftState done [14:10:00]FM_GetShiftState done [14:10:00]req_shift_opened done [14:10:00]requested_item shift.open_date is exist - process it [14:10:00]req_shift_open_date [14:10:00]req_shift_open_date done [14:10:00]produce_requested_data done [14:10:00]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123228,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [14:10:00]process_action_free close_receipt [14:10:00]json_value_free [14:10:00]json_value_free done [14:10:00]process_json_proto returns [14:10:00]Send response to host [14:10:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123228,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [14:10:00]free response buf [14:10:00]execute_script done [14:10:00]execute_script returns [14:10:00]free content buf [14:10:00]Sock 9.Close socket [14:10:00]Sock 9.Thread stoped [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:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:17]accept exits with 7 [14:16:17]New connection [14:16:17]New thread 3066580324 created [14:16:17]Thread 3066723684 joined [14:16:17]Waiting for new connection... [14:16:17] Sock 7.Parse request [14:16:17]Sock 7.Check first char [14:16:17]Sock 7.First char is OK [14:16:17]request: POST /json_proto HTTP/1.0 [14:16:17]Method: POST [14:16:17]URL: /json_proto [14:16:17]Method is POST - this is cgi request [14:16:17]url: /json_proto [14:16:17]query_string will be loaded in cgi processing [14:16:17]execute_cgi json_proto POST (null) [14:16:17]execute_cgi path=json_proto method=POST [14:16:17]POST find Content-Length [14:16:17]Host: 172.17.37.4:8080 [14:16:17]Content-Length: 677 [14:16:17]Content-Type: application/json [14:16:17] [14:16:17]POST finish read [14:16:17]Found Content-Length = 677 [14:16:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:17]execute_script... [14:16:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:17]POST & json_proto [14:16:17]process_json_proto [14:16:17]json parsed OK: [14:16:17]protocol is kg_v1.0 [14:16:17]action value=close_receipt [14:16:17]process_action close_receipt [14:16:17]cmd_close_receipt [14:16:17]MH_GetDate [14:16:17]Write to MH i2c: F0 00 00 55 5F A3 [14:16:17]Write i2c OK [14:16:17]MH_I2C_Read... [14:16:17]Read from MH i2c: F0 [14:16:17]MH_I2C_Read... [14:16:17]Read from MH i2c: F0 09 00 [14:16:17]MH_I2C_Read... [14:16:17]Read from MH i2c: F0 09 00 55 5F 00 3C D8 45 67 B8 5A 43 67 28 [14:16:17]GetLastDocTimeStamp 1732630206 [14:16:17]current date 1732630588 [14:16:17]FM_GetShiftState [14:16:17]SAM_PROTO_GetShiftState [14:16:17]wFMCommunicate request_size=4 [14:16:17]MH_SAM_APDU [14:16:17]CAPDU: 80 13 01 00 [14:16:17]Write to MH i2c: E2 08 00 56 5F 80 13 01 00 00 00 00 00 32 [14:16:17]Write i2c OK [14:16:17]MH_I2C_Read... [14:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:17]Read from MH i2c: E2 [14:16:17]MH_I2C_Read... [14:16:17]Read from MH i2c: E2 0E 00 [14:16:17]MH_I2C_Read... [14:16:17]Read from MH i2c: E2 0E 00 56 5F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 93 [14:16:17]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:16:17]wFMCommunicate OK [14:16:17]SAM_PROTO_GetShiftState done [14:16:17]FM_GetShiftState done [14:16:17]opened in 1732579736 [14:16:17]opened+sec_in_day 1732666136 [14:16:17]quantity*price = 40035 [14:16:17]sum+1 = 40037 [14:16:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 83 26.11.2024 14:16 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123229 ФПД: 253866552029795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T141628&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123229&fm=253866552029795&tin=02508201610067®Number=0000000000092681&sum=40000 [14:16:18]StoreToDocumentArchive [14:16:18]shift 557 fd 123229 [14:16:18]save to /storage/0557/doc_00123229 [14:16:18]save last doc name /storage/0557/doc_00123229 to /storage/kkm_last_doc_name [14:16:18]save OK [14:16:18]Clear old archive folders... [14:16:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:18]tlvbuf is 020B0580 [14:16:18]SAM_PROTO_ClearQueue [14:16:18]wFMCommunicate request_size=4 [14:16:18]MH_SAM_APDU [14:16:18]CAPDU: 80 09 00 00 [14:16:18]Write to MH i2c: E2 08 00 63 5F 80 09 00 00 00 00 00 00 34 [14:16:18]Write i2c OK [14:16:18]MH_I2C_Read... [14:16:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:18]Read from MH i2c: E2 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 03 00 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 03 00 63 5F 00 90 00 36 [14:16:18]RAPDU: 90 00 [14:16:18]wFMCommunicate OK [14:16:18]SAM_PROTO_ClearQueue done [14:16:18]KKMCreateOFDPacket [14:16:18]OFDProtocolAddRootSTLVToBuf [14:16:18]FM_MakeSignedData [14:16:18]FM_MakeSignedData [14:16:18]SAM_PROTO_SignData [14:16:18]wFMCommunicate request_size=4 [14:16:18]MH_SAM_APDU [14:16:18]CAPDU: 80 0D 01 02 [14:16:18]Write to MH i2c: E2 08 00 64 5F 80 0D 01 02 00 00 00 00 3C [14:16:18]Write i2c OK [14:16:18]MH_I2C_Read... [14:16:18]OFD Sender: No OFD packet to send [14:16:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:18]Read from MH i2c: E2 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 03 00 [14:16:18]MH_I2C_Read... [14:16:18]Read from MH i2c: E2 03 00 64 5F 00 90 00 37 [14:16:18]RAPDU: 90 00 [14:16:18]wFMCommunicate OK [14:16:18]wFMCommunicate request_size=255 [14:16:18]MH_SAM_APDU [14:16:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 3C D8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5D E1 01 00 35 04 06 00 E6 [14:16:18]Write to MH i2c: E2 02 01 65 5F 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 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 3C D8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5D E1 01 00 35 04 06 00 E6 00 00 31 [14:16:18]Write i2c OK [14:16:18]MH_I2C_Read... [14:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:19]Read from MH i2c: E2 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: E2 03 00 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: E2 03 00 65 5F 00 90 00 38 [14:16:19]RAPDU: 90 00 [14:16:19]wFMCommunicate OK [14:16:19]wFMCommunicate request_size=10 [14:16:19]MH_SAM_APDU [14:16:19]CAPDU: 80 0D 02 02 05 E3 E9 A7 72 63 [14:16:19]Write to MH i2c: E2 0D 00 66 5F 80 0D 02 02 05 00 E3 E9 A7 72 63 00 00 91 [14:16:19]Write i2c OK [14:16:19]MH_I2C_Read... [14:16:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:19]Read from MH i2c: E2 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: E2 03 00 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: E2 03 00 66 5F 00 90 00 39 [14:16:19]RAPDU: 90 00 [14:16:19]wFMCommunicate OK [14:16:19]wFMCommunicate request_size=4 [14:16:19]MH_SAM_APDU [14:16:19]CAPDU: 80 0D 03 02 [14:16:19]Write to MH i2c: E2 08 00 67 5F 80 0D 03 02 00 00 00 00 41 [14:16:19]Write i2c OK [14:16:19]MH_I2C_Read... [14:16:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:19]Read from MH i2c: E2 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: E2 0B 00 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: E2 0B 00 67 5F 00 B5 36 6C B0 8E 19 E7 A7 90 00 7E [14:16:19]RAPDU: B5 36 6C B0 8E 19 E7 A7 90 00 [14:16:19]wFMCommunicate OK [14:16:19]SAM_PROTO_SignData done [14:16:19]FM_MakeSignedData done [14:16:19]CreateOFDProtocolMessage [14:16:19]wFMCommunicate request_size=4 [14:16:19]MH_SAM_APDU [14:16:19]CAPDU: 80 11 00 00 [14:16:19]Write to MH i2c: E2 08 00 68 5F 80 11 00 00 00 00 00 00 41 [14:16:19]Write i2c OK [14:16:19]MH_I2C_Read... [14:16:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:19]Read from MH i2c: E2 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: E2 17 00 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: E2 17 00 68 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 98 [14:16:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:16:19]wFMCommunicate OK [14:16:19]CreateOFDProtocolMessage done [14:16:19]OFDSenderStorePacket 123229 [14:16:19]StoreOFDPacket docnum=123229 [14:16:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B3 67 07 01 33 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 3C D8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5D E1 01 00 35 04 06 00 E6 E3 E9 A7 72 63 B5 36 6C B0 8E 19 E7 A7 [14:16:19]CheckFolder [14:16:19]dirname=/storage/ofd_packets [14:16:19]CheckFolder done [14:16:19]ProducePacketName [14:16:19]name=ofd_packets/00123229 [14:16:19]NVStorageSaveData ofd_packets/00123229 [14:16:19]File name is /storage/ofd_packets/00123229 [14:16:19]Write 301 bytes [14:16:19]NVStorageSaveData done [14:16:19]OFDSenderStorePacket done [14:16:19]KKMCreateOFDPacket done [14:16:19]NVStorageSaveData kkm_last_timestamp [14:16:19]File name is /storage/kkm_last_timestamp [14:16:19]Write 4 bytes [14:16:19]NVStorageSaveData done [14:16:19]ExternCall_PrintAddStr [14:16:19]wPrintStart [14:16:19]Write to MH i2c: 01 00 00 69 5F C8 [14:16:19]Write i2c OK [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: 01 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: 01 07 00 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: 01 07 00 69 5F 00 00 00 00 00 FF 0F DD [14:16:19]RasterBufferAndPrint [14:16:19]line Счет N : (1)718061 [14:16:19]line ИНН: 02508201610067 [14:16:19]line Контрольно-Кассовый Чек [14:16:19]line ПРОДАЖА [14:16:19]line ТРК (МРК, ГНК) : 22 [14:16:19]line Товар: 2710124130 [14:16:19]line Аи-92-К-4 [14:16:19]line 5.940 * 67.40 [14:16:19]line = 400.36 [14:16:19]line НДС 12% НСП 1% [14:16:19]line > о реализуемом товаре [14:16:19]line ОКРУГЛЕНИЕ: -0.36 [14:16:19]line ИТОГО: 400.00 [14:16:19]line Внесено: 400.00 [14:16:19]line СДАЧА: 0.00 [14:16:19]line НСП 1% : 3.54 [14:16:19]line НДС 12% : 42.52 [14:16:19]line Наличными: 400.00 [14:16:19]line Безнал.: 0.00 [14:16:19]line Место: АЗС № 64 "Партнер Нефть" [14:16:19]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:16:19]line СНО: Общий режим [14:16:19]line Чек 83 26.11.2024 14:16 [14:16:19]line Смена: 557 ФФД: 1.0 [14:16:19]line ЗНМ: 0300000033 [14:16:19]line РНМ: 0000000000092681 [14:16:19]line Версия ККМ: 001 [14:16:19]line ФМ: 0000000000874881 [14:16:19]line ФД: 123229 [14:16:19]line ФПД: 253866552029795 [14:16:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T141628&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123229&fm=253866552029795&tin=02508201610067®Number=0000000000092681&sum=40000 [14:16:19]written 0, free lines is 4095 [14:16:19]OFD Sender: Processing packet 123229 [packets to send 7, broken 6] [14:16:19]ProducePacketName [14:16:19]name=ofd_packets/00123229 [14:16:19]OFD Sender: To server: pG, [14:16:19]CommunicateWithHost lk.salyk.kg:30040 [14:16:19]ConnectInit lk.salyk.kg [14:16:19]Connected sock=10 [14:16:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B3 67 07 01 33 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 3C D8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5D E1 01 00 35 04 06 00 E6 E3 E9 A7 72 63 B5 36 6C B0 8E 19 E7 A7 [14:16:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 7C C7 47 00 26 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5D E1 01 00 F4 03 04 00 FE 83 45 67 B6 04 01 00 00 E3 F0 46 12 A3 BD D7 80 [14:16:19]CommunicateWithHost err = 0 [14:16:19]CheckOFDResponse [14:16:19]1017 (14) - 77093643461234 [14:16:19]1041 (16) - 0000000000874881 [14:16:19]1040 (4) - 123229 [14:16:19]1012 (4) - 26.11.2024 08:17 [14:16:19]1206 (1) - 0 [14:16:19]OFD Sender: Remove packet 123229 [14:16:19]ProducePacketName [14:16:19]name=ofd_packets/00123229 [14:16:19]NVStorageDeleteData [14:16:19]Write to MH i2c: 01 00 00 94 5F F3 [14:16:19]Write i2c OK [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: 01 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: 01 07 00 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: 01 07 00 94 5F 00 00 00 00 00 55 0C 5B [14:16:19]RasterBufferAndPrint [14:16:19]line [14:16:19]line [14:16:19]line [14:16:19]line [14:16:19]line [14:16:19]written 0, free lines is 3160 [14:16:19]MH_Cut [14:16:19]Write to MH i2c: D1 01 00 9B 5F 01 CC [14:16:19]Write i2c OK [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: D1 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: D1 01 00 [14:16:19]MH_I2C_Read... [14:16:19]Read from MH i2c: D1 01 00 9B 5F 00 CB [14:16:19]Write to MH i2c: 01 00 00 9C 5F FB [14:16:19]Write i2c OK [14:16:19]MH_I2C_Read... [14:16:20]OFD Sender: No OFD packet to send [14:16:20]*** Cut start [14:16:20]*** Partial cut [14:16:20]*** CUTSNS_PIN = 1 [14:16:20]*** CUTSNS_PIN = 0 [14:16:21]*** Brake cut motor [14:16:21]Read from MH i2c: 01 [14:16:21]MH_I2C_Read... [14:16:21]*** Stop cut motor [14:16:21]*** Cut end [14:16:21]Read from MH i2c: 01 07 00 [14:16:21]MH_I2C_Read... [14:16:21]Read from MH i2c: 01 07 00 9C 5F 00 00 00 00 00 FF 0F 10 [14:16:21]process_action close_receipt done [14:16:21]requested_data is exist [14:16:21]produce_requested_data [14:16:21]requested_item fm.sn is exist - process it [14:16:21]wFMCommunicate request_size=4 [14:16:21]MH_SAM_APDU [14:16:21]CAPDU: 80 11 00 00 [14:16:21]Write to MH i2c: E2 08 00 9D 5F 80 11 00 00 00 00 00 00 76 [14:16:21]Write i2c OK [14:16:21]MH_I2C_Read... [14:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:21]Read from MH i2c: E2 [14:16:21]MH_I2C_Read... [14:16:21]Read from MH i2c: E2 17 00 [14:16:21]MH_I2C_Read... [14:16:21]Read from MH i2c: E2 17 00 9D 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CD [14:16:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:16:21]wFMCommunicate OK [14:16:21]requested_item fd.num is exist - process it [14:16:21]SAM_PROTO_GetFieldsCounters [14:16:21]wFMCommunicate request_size=4 [14:16:21]MH_SAM_APDU [14:16:21]CAPDU: 80 13 00 00 [14:16:21]Write to MH i2c: E2 08 00 9E 5F 80 13 00 00 00 00 00 00 79 [14:16:21]Write i2c OK [14:16:21]MH_I2C_Read... [14:16:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:21]Read from MH i2c: E2 [14:16:21]MH_I2C_Read... [14:16:21]Read from MH i2c: E2 62 00 [14:16:21]MH_I2C_Read... [14:16:21]Read from MH i2c: E2 62 00 9E 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5D E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [14:16:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5D E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:21]wFMCommunicate OK [14:16:21]SAM_PROTO_GetFieldsCounters done [14:16:21]requested_item shift.num is exist - process it [14:16:21]requested_item shift.opened is exist - process it [14:16:21]req_shift_opened [14:16:21]FM_GetShiftState [14:16:21]SAM_PROTO_GetShiftState [14:16:21]wFMCommunicate request_size=4 [14:16:21]MH_SAM_APDU [14:16:21]CAPDU: 80 13 01 00 [14:16:21]Write to MH i2c: E2 08 00 9F 5F 80 13 01 00 00 00 00 00 7B [14:16:21]Write i2c OK [14:16:21]MH_I2C_Read... [14:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:21]Read from MH i2c: E2 [14:16:21]MH_I2C_Read... [14:16:21]Read from MH i2c: E2 0E 00 [14:16:21]MH_I2C_Read... [14:16:21]Read from MH i2c: E2 0E 00 9F 5F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 DC [14:16:21]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:16:21]wFMCommunicate OK [14:16:21]SAM_PROTO_GetShiftState done [14:16:21]FM_GetShiftState done [14:16:21]req_shift_opened done [14:16:21]requested_item shift.open_date is exist - process it [14:16:21]req_shift_open_date [14:16:21]req_shift_open_date done [14:16:21]produce_requested_data done [14:16:21]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123229,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [14:16:21]process_action_free close_receipt [14:16:21]json_value_free [14:16:21]json_value_free done [14:16:21]process_json_proto returns [14:16:21]Send response to host [14:16:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123229,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [14:16:21]free response buf [14:16:21]execute_script done [14:16:21]execute_script returns [14:16:21]free content buf [14:16:21]Sock 7.Close socket [14:16:21]Sock 7.Thread stoped [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:01]accept exits with 9 [14:18:01]New connection [14:18:01]New thread 3066723684 created [14:18:01]Thread 3066580324 joined [14:18:01]Waiting for new connection... [14:18:01] Sock 9.Parse request [14:18:01]Sock 9.Check first char [14:18:01]Sock 9.First char is OK [14:18:01]request: POST /json_proto HTTP/1.0 [14:18:01]Method: POST [14:18:01]URL: /json_proto [14:18:01]Method is POST - this is cgi request [14:18:01]url: /json_proto [14:18:01]query_string will be loaded in cgi processing [14:18:01]execute_cgi json_proto POST (null) [14:18:01]execute_cgi path=json_proto method=POST [14:18:01]POST find Content-Length [14:18:01]Host: 172.17.37.4:8080 [14:18:01]Content-Length: 682 [14:18:01]Content-Type: application/json [14:18:01] [14:18:01]POST finish read [14:18:01]Found Content-Length = 682 [14:18:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:01]execute_script... [14:18:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:01]POST & json_proto [14:18:01]process_json_proto [14:18:01]json parsed OK: [14:18:01]protocol is kg_v1.0 [14:18:01]action value=close_receipt [14:18:01]process_action close_receipt [14:18:01]cmd_close_receipt [14:18:01]MH_GetDate [14:18:01]Write to MH i2c: F0 00 00 A0 5F EE [14:18:01]Write i2c OK [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: F0 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: F0 09 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: F0 09 00 A0 5F 00 A4 D8 45 67 B8 5A 43 67 DB [14:18:01]GetLastDocTimeStamp 1732630588 [14:18:01]current date 1732630692 [14:18:01]FM_GetShiftState [14:18:01]SAM_PROTO_GetShiftState [14:18:01]wFMCommunicate request_size=4 [14:18:01]MH_SAM_APDU [14:18:01]CAPDU: 80 13 01 00 [14:18:01]Write to MH i2c: E2 08 00 A1 5F 80 13 01 00 00 00 00 00 7D [14:18:01]Write i2c OK [14:18:01]MH_I2C_Read... [14:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:01]Read from MH i2c: E2 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 0E 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 0E 00 A1 5F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 DE [14:18:01]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:18:01]wFMCommunicate OK [14:18:01]SAM_PROTO_GetShiftState done [14:18:01]FM_GetShiftState done [14:18:01]opened in 1732579736 [14:18:01]opened+sec_in_day 1732666136 [14:18:01]quantity*price = 100021 [14:18:01]sum+1 = 100023 [14:18:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 84 26.11.2024 14:18 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123230 ФПД: 31400875461116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T141812&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123230&fm=31400875461116&tin=02508201610067®Number=0000000000092681&sum=100000 [14:18:03]StoreToDocumentArchive [14:18:03]shift 557 fd 123230 [14:18:03]save to /storage/0557/doc_00123230 [14:18:03]save last doc name /storage/0557/doc_00123230 to /storage/kkm_last_doc_name [14:18:03]save OK [14:18:03]Clear old archive folders... [14:18:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:03]tlvbuf is 02166890 [14:18:03]SAM_PROTO_ClearQueue [14:18:03]wFMCommunicate request_size=4 [14:18:03]MH_SAM_APDU [14:18:03]CAPDU: 80 09 00 00 [14:18:03]Write to MH i2c: E2 08 00 AE 5F 80 09 00 00 00 00 00 00 7F [14:18:03]Write i2c OK [14:18:03]MH_I2C_Read... [14:18:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:03]Read from MH i2c: E2 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 03 00 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 03 00 AE 5F 00 90 00 81 [14:18:03]RAPDU: 90 00 [14:18:03]wFMCommunicate OK [14:18:03]SAM_PROTO_ClearQueue done [14:18:03]KKMCreateOFDPacket [14:18:03]OFDProtocolAddRootSTLVToBuf [14:18:03]FM_MakeSignedData [14:18:03]FM_MakeSignedData [14:18:03]SAM_PROTO_SignData [14:18:03]wFMCommunicate request_size=4 [14:18:03]MH_SAM_APDU [14:18:03]CAPDU: 80 0D 01 02 [14:18:03]Write to MH i2c: E2 08 00 AF 5F 80 0D 01 02 00 00 00 00 87 [14:18:03]Write i2c OK [14:18:03]MH_I2C_Read... [14:18:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:03]Read from MH i2c: E2 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 03 00 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 03 00 AF 5F 00 90 00 82 [14:18:03]RAPDU: 90 00 [14:18:03]wFMCommunicate OK [14:18:03]wFMCommunicate request_size=255 [14:18:03]MH_SAM_APDU [14:18:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A4 D8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5E E1 01 00 35 04 06 00 1C [14:18:03]Write to MH i2c: E2 02 01 B0 5F 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A4 D8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5E E1 01 00 35 04 06 00 1C 00 00 E5 [14:18:03]Write i2c OK [14:18:03]MH_I2C_Read... [14:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:03]Read from MH i2c: E2 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 03 00 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 03 00 B0 5F 00 90 00 83 [14:18:03]RAPDU: 90 00 [14:18:03]wFMCommunicate OK [14:18:03]wFMCommunicate request_size=10 [14:18:03]MH_SAM_APDU [14:18:03]CAPDU: 80 0D 02 02 05 8F 16 07 09 FC [14:18:03]Write to MH i2c: E2 0D 00 B1 5F 80 0D 02 02 05 00 8F 16 07 09 FC 00 00 45 [14:18:03]Write i2c OK [14:18:03]MH_I2C_Read... [14:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:03]Read from MH i2c: E2 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 03 00 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 03 00 B1 5F 00 90 00 84 [14:18:03]RAPDU: 90 00 [14:18:03]wFMCommunicate OK [14:18:03]wFMCommunicate request_size=4 [14:18:03]MH_SAM_APDU [14:18:03]CAPDU: 80 0D 03 02 [14:18:03]Write to MH i2c: E2 08 00 B2 5F 80 0D 03 02 00 00 00 00 8C [14:18:03]Write i2c OK [14:18:03]MH_I2C_Read... [14:18:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:03]Read from MH i2c: E2 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 0B 00 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 0B 00 B2 5F 00 69 A1 C0 6D B1 AD 06 15 90 00 3D [14:18:03]RAPDU: 69 A1 C0 6D B1 AD 06 15 90 00 [14:18:03]wFMCommunicate OK [14:18:03]SAM_PROTO_SignData done [14:18:03]FM_MakeSignedData done [14:18:03]CreateOFDProtocolMessage [14:18:03]wFMCommunicate request_size=4 [14:18:03]MH_SAM_APDU [14:18:03]CAPDU: 80 11 00 00 [14:18:03]Write to MH i2c: E2 08 00 B3 5F 80 11 00 00 00 00 00 00 8C [14:18:03]Write i2c OK [14:18:03]MH_I2C_Read... [14:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:03]Read from MH i2c: E2 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 17 00 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 17 00 B3 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E3 [14:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:18:03]wFMCommunicate OK [14:18:03]CreateOFDProtocolMessage done [14:18:03]OFDSenderStorePacket 123230 [14:18:03]StoreOFDPacket docnum=123230 [14:18:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 0F 42 07 01 8A FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A4 D8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5E E1 01 00 35 04 06 00 1C 8F 16 07 09 FC 69 A1 C0 6D B1 AD 06 15 [14:18:03]CheckFolder [14:18:03]dirname=/storage/ofd_packets [14:18:03]CheckFolder done [14:18:03]ProducePacketName [14:18:03]name=ofd_packets/00123230 [14:18:03]NVStorageSaveData ofd_packets/00123230 [14:18:03]File name is /storage/ofd_packets/00123230 [14:18:03]Write 301 bytes [14:18:03]NVStorageSaveData done [14:18:03]OFDSenderStorePacket done [14:18:03]KKMCreateOFDPacket done [14:18:03]NVStorageSaveData kkm_last_timestamp [14:18:03]File name is /storage/kkm_last_timestamp [14:18:03]Write 4 bytes [14:18:03]NVStorageSaveData done [14:18:03]ExternCall_PrintAddStr [14:18:03]wPrintStart [14:18:03]Write to MH i2c: 01 00 00 B4 5F 13 [14:18:03]Write i2c OK [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: 01 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: 01 07 00 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: 01 07 00 B4 5F 00 00 00 00 00 FF 0F 28 [14:18:03]RasterBufferAndPrint [14:18:03]line Счет N : (1)718062 [14:18:03]line ИНН: 02508201610067 [14:18:03]line Контрольно-Кассовый Чек [14:18:03]line ПРОДАЖА [14:18:03]line ТРК (МРК, ГНК) : 22 [14:18:03]line Товар: 2710124130 [14:18:03]line Аи-92-К-4 [14:18:03]line 14.840 * 67.40 [14:18:03]line = 1000.22 [14:18:03]line НДС 12% НСП 1% [14:18:03]line > о реализуемом товаре [14:18:03]line ОКРУГЛЕНИЕ: -0.22 [14:18:03]line ИТОГО: 1000.00 [14:18:03]line Внесено: 1000.00 [14:18:03]line СДАЧА: 0.00 [14:18:03]line НСП 1% : 8.85 [14:18:03]line НДС 12% : 106.22 [14:18:03]line Наличными: 1000.00 [14:18:03]line Безнал.: 0.00 [14:18:03]line Место: АЗС № 64 "Партнер Нефть" [14:18:03]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:18:03]line СНО: Общий режим [14:18:03]line Чек 84 26.11.2024 14:18 [14:18:03]line Смена: 557 ФФД: 1.0 [14:18:03]line ЗНМ: 0300000033 [14:18:03]line РНМ: 0000000000092681 [14:18:03]line Версия ККМ: 001 [14:18:03]line ФМ: 0000000000874881 [14:18:03]line ФД: 123230 [14:18:03]line ФПД: 31400875461116 [14:18:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T141812&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123230&fm=31400875461116&tin=02508201610067®Number=0000000000092681&sum=100000 [14:18:03]OFD Sender: Processing packet 123230 [packets to send 7, broken 6] [14:18:03]ProducePacketName [14:18:03]name=ofd_packets/00123230 [14:18:03]OFD Sender: To server: pG, [14:18:03]CommunicateWithHost lk.salyk.kg:30040 [14:18:03]ConnectInit lk.salyk.kg [14:18:03]written 0, free lines is 4095 [14:18:03]Connected sock=10 [14:18:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 0F 42 07 01 8A FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A4 D8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5E E1 01 00 35 04 06 00 1C 8F 16 07 09 FC 69 A1 C0 6D B1 AD 06 15 [14:18:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 62 FE 47 00 EC B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5E E1 01 00 F4 03 04 00 67 84 45 67 B6 04 01 00 00 07 CA 8D 12 02 05 9C FA [14:18:04]CommunicateWithHost err = 0 [14:18:04]CheckOFDResponse [14:18:04]1017 (14) - 77093643461234 [14:18:04]1041 (16) - 0000000000874881 [14:18:04]1040 (4) - 123230 [14:18:04]1012 (4) - 26.11.2024 08:18 [14:18:04]1206 (1) - 0 [14:18:04]OFD Sender: Remove packet 123230 [14:18:04]ProducePacketName [14:18:04]name=ofd_packets/00123230 [14:18:04]NVStorageDeleteData [14:18:04]Write to MH i2c: 01 00 00 DF 5F 3E [14:18:04]Write i2c OK [14:18:04]MH_I2C_Read... [14:18:04]Read from MH i2c: 01 [14:18:04]MH_I2C_Read... [14:18:04]Read from MH i2c: 01 07 00 [14:18:04]MH_I2C_Read... [14:18:04]Read from MH i2c: 01 07 00 DF 5F 00 00 00 00 00 47 0C 98 [14:18:04]RasterBufferAndPrint [14:18:04]line [14:18:04]line [14:18:04]line [14:18:04]line [14:18:04]line [14:18:04]written 0, free lines is 3148 [14:18:04]MH_Cut [14:18:04]Write to MH i2c: D1 01 00 E6 5F 01 17 [14:18:04]Write i2c OK [14:18:04]MH_I2C_Read... [14:18:04]Read from MH i2c: D1 [14:18:04]MH_I2C_Read... [14:18:04]Read from MH i2c: D1 01 00 [14:18:04]MH_I2C_Read... [14:18:04]Read from MH i2c: D1 01 00 E6 5F 00 16 [14:18:04]Write to MH i2c: 01 00 00 E7 5F 46 [14:18:04]Write i2c OK [14:18:04]MH_I2C_Read... [14:18:04]OFD Sender: No OFD packet to send [14:18:05]*** Cut start [14:18:05]*** Partial cut [14:18:05]*** CUTSNS_PIN = 1 [14:18:05]*** CUTSNS_PIN = 0 [14:18:05]*** Brake cut motor [14:18:06]Read from MH i2c: 01 [14:18:06]MH_I2C_Read... [14:18:06]*** Stop cut motor [14:18:06]*** Cut end [14:18:06]Read from MH i2c: 01 07 00 [14:18:06]MH_I2C_Read... [14:18:06]Read from MH i2c: 01 07 00 E7 5F 00 00 00 00 00 FF 0F 5B [14:18:06]process_action close_receipt done [14:18:06]requested_data is exist [14:18:06]produce_requested_data [14:18:06]requested_item fm.sn is exist - process it [14:18:06]wFMCommunicate request_size=4 [14:18:06]MH_SAM_APDU [14:18:06]CAPDU: 80 11 00 00 [14:18:06]Write to MH i2c: E2 08 00 E8 5F 80 11 00 00 00 00 00 00 C1 [14:18:06]Write i2c OK [14:18:06]MH_I2C_Read... [14:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:06]Read from MH i2c: E2 [14:18:06]MH_I2C_Read... [14:18:06]Read from MH i2c: E2 17 00 [14:18:06]MH_I2C_Read... [14:18:06]Read from MH i2c: E2 17 00 E8 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 18 [14:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:18:06]wFMCommunicate OK [14:18:06]requested_item fd.num is exist - process it [14:18:06]SAM_PROTO_GetFieldsCounters [14:18:06]wFMCommunicate request_size=4 [14:18:06]MH_SAM_APDU [14:18:06]CAPDU: 80 13 00 00 [14:18:06]Write to MH i2c: E2 08 00 E9 5F 80 13 00 00 00 00 00 00 C4 [14:18:06]Write i2c OK [14:18:06]MH_I2C_Read... [14:18:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:06]Read from MH i2c: E2 [14:18:06]MH_I2C_Read... [14:18:06]Read from MH i2c: E2 62 00 [14:18:06]MH_I2C_Read... [14:18:06]Read from MH i2c: E2 62 00 E9 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5E E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [14:18:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5E E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:06]wFMCommunicate OK [14:18:06]SAM_PROTO_GetFieldsCounters done [14:18:06]requested_item shift.num is exist - process it [14:18:06]requested_item shift.opened is exist - process it [14:18:06]req_shift_opened [14:18:06]FM_GetShiftState [14:18:06]SAM_PROTO_GetShiftState [14:18:06]wFMCommunicate request_size=4 [14:18:06]MH_SAM_APDU [14:18:06]CAPDU: 80 13 01 00 [14:18:06]Write to MH i2c: E2 08 00 EA 5F 80 13 01 00 00 00 00 00 C6 [14:18:06]Write i2c OK [14:18:06]MH_I2C_Read... [14:18:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:06]Read from MH i2c: E2 [14:18:06]MH_I2C_Read... [14:18:06]Read from MH i2c: E2 0E 00 [14:18:06]MH_I2C_Read... [14:18:06]Read from MH i2c: E2 0E 00 EA 5F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 27 [14:18:06]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:18:06]wFMCommunicate OK [14:18:06]SAM_PROTO_GetShiftState done [14:18:06]FM_GetShiftState done [14:18:06]req_shift_opened done [14:18:06]requested_item shift.open_date is exist - process it [14:18:06]req_shift_open_date [14:18:06]req_shift_open_date done [14:18:06]produce_requested_data done [14:18:06]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123230,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [14:18:06]process_action_free close_receipt [14:18:06]json_value_free [14:18:06]json_value_free done [14:18:06]process_json_proto returns [14:18:06]Send response to host [14:18:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123230,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [14:18:06]free response buf [14:18:06]execute_script done [14:18:06]execute_script returns [14:18:06]free content buf [14:18:06]Sock 9.Close socket [14:18:06]Sock 9.Thread stoped [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]accept exits with 7 [14:20:34]New connection [14:20:34]New thread 3066580324 created [14:20:34]Thread 3066723684 joined [14:20:34]Waiting for new connection... [14:20:34] Sock 7.Parse request [14:20:34]Sock 7.Check first char [14:20:34]Sock 7.First char is OK [14:20:34]request: POST /json_proto HTTP/1.0 [14:20:34]Method: POST [14:20:34]URL: /json_proto [14:20:34]Method is POST - this is cgi request [14:20:34]url: /json_proto [14:20:34]query_string will be loaded in cgi processing [14:20:34]execute_cgi json_proto POST (null) [14:20:34]execute_cgi path=json_proto method=POST [14:20:34]POST find Content-Length [14:20:34]Host: 172.17.37.4:8080 [14:20:34]Content-Length: 823 [14:20:34]Content-Type: application/json [14:20:34] [14:20:34]POST finish read [14:20:34]Found Content-Length = 823 [14:20:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 16.030, "sum" : 1200.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1200.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:34]execute_script... [14:20:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 16.030, "sum" : 1200.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1200.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:34]POST & json_proto [14:20:34]process_json_proto [14:20:34]json parsed OK: [14:20:34]protocol is kg_v1.0 [14:20:34]action value=close_receipt [14:20:34]process_action close_receipt [14:20:34]cmd_close_receipt [14:20:34]MH_GetDate [14:20:34]Write to MH i2c: F0 00 00 EB 5F 39 [14:20:34]Write i2c OK [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: F0 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: F0 09 00 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: F0 09 00 EB 5F 00 3D D9 45 67 B8 5A 43 67 C0 [14:20:34]GetLastDocTimeStamp 1732630692 [14:20:34]current date 1732630845 [14:20:34]FM_GetShiftState [14:20:34]SAM_PROTO_GetShiftState [14:20:34]wFMCommunicate request_size=4 [14:20:34]MH_SAM_APDU [14:20:34]CAPDU: 80 13 01 00 [14:20:34]Write to MH i2c: E2 08 00 EC 5F 80 13 01 00 00 00 00 00 C8 [14:20:34]Write i2c OK [14:20:34]MH_I2C_Read... [14:20:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:34]Read from MH i2c: E2 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: E2 0E 00 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: E2 0E 00 EC 5F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 29 [14:20:34]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:20:34]wFMCommunicate OK [14:20:34]SAM_PROTO_GetShiftState done [14:20:34]FM_GetShiftState done [14:20:34]opened in 1732579736 [14:20:34]opened+sec_in_day 1732666136 [14:20:34]quantity*price = 120064 [14:20:34]sum+1 = 120066 [14:20:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.65 НСП 1% : 10.62 НДС 12% : 127.50 Наличными: 0.00 Безнал.: 1200.65 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 85 26.11.2024 14:20 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123231 ФПД: 19230535228820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T142045&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123231&fm=19230535228820&tin=02508201610067®Number=0000000000092681&sum=120065 [14:20:35]StoreToDocumentArchive [14:20:35]shift 557 fd 123231 [14:20:35]save to /storage/0557/doc_00123231 [14:20:35]save last doc name /storage/0557/doc_00123231 to /storage/kkm_last_doc_name [14:20:35]save OK [14:20:35]Clear old archive folders... [14:20:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:20:35]tlvbuf is B6D70070 [14:20:35]SAM_PROTO_ClearQueue [14:20:35]wFMCommunicate request_size=4 [14:20:35]MH_SAM_APDU [14:20:35]CAPDU: 80 09 00 00 [14:20:35]Write to MH i2c: E2 08 00 F9 5F 80 09 00 00 00 00 00 00 CA [14:20:35]Write i2c OK [14:20:35]MH_I2C_Read... [14:20:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:35]Read from MH i2c: E2 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: E2 03 00 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: E2 03 00 F9 5F 00 90 00 CC [14:20:35]RAPDU: 90 00 [14:20:35]wFMCommunicate OK [14:20:35]SAM_PROTO_ClearQueue done [14:20:35]KKMCreateOFDPacket [14:20:35]OFDProtocolAddRootSTLVToBuf [14:20:35]FM_MakeSignedData [14:20:35]FM_MakeSignedData [14:20:35]SAM_PROTO_SignData [14:20:35]wFMCommunicate request_size=4 [14:20:35]MH_SAM_APDU [14:20:35]CAPDU: 80 0D 01 02 [14:20:35]Write to MH i2c: E2 08 00 FA 5F 80 0D 01 02 00 00 00 00 D2 [14:20:35]Write i2c OK [14:20:35]MH_I2C_Read... [14:20:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:35]Read from MH i2c: E2 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: E2 03 00 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: E2 03 00 FA 5F 00 90 00 CD [14:20:35]RAPDU: 90 00 [14:20:35]wFMCommunicate OK [14:20:35]wFMCommunicate request_size=255 [14:20:35]MH_SAM_APDU [14:20:35]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 35 FF 03 08 00 03 9E 3E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 01 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 3D D9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5F E1 01 00 35 04 06 00 [14:20:35]Write to MH i2c: E2 02 01 FB 5F 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 35 FF 03 08 00 03 9E 3E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 01 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 3D D9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5F E1 01 00 35 04 06 00 00 00 8C [14:20:35]Write i2c OK [14:20:35]MH_I2C_Read... [14:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:36]Read from MH i2c: E2 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 03 00 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 03 00 FB 5F 00 90 00 CE [14:20:36]RAPDU: 90 00 [14:20:36]wFMCommunicate OK [14:20:36]wFMCommunicate request_size=11 [14:20:36]MH_SAM_APDU [14:20:36]CAPDU: 80 0D 02 02 06 11 7D 75 38 9D 94 [14:20:36]Write to MH i2c: E2 0E 00 FC 5F 80 0D 02 02 06 00 11 7D 75 38 9D 94 00 00 4D [14:20:36]Write i2c OK [14:20:36]MH_I2C_Read... [14:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:36]Read from MH i2c: E2 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 03 00 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 03 00 FC 5F 00 90 00 CF [14:20:36]RAPDU: 90 00 [14:20:36]wFMCommunicate OK [14:20:36]wFMCommunicate request_size=4 [14:20:36]MH_SAM_APDU [14:20:36]CAPDU: 80 0D 03 02 [14:20:36]Write to MH i2c: E2 08 00 FD 5F 80 0D 03 02 00 00 00 00 D7 [14:20:36]Write i2c OK [14:20:36]MH_I2C_Read... [14:20:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:36]Read from MH i2c: E2 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 0B 00 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 0B 00 FD 5F 00 5F CA AB 96 F0 8F 51 60 90 00 72 [14:20:36]RAPDU: 5F CA AB 96 F0 8F 51 60 90 00 [14:20:36]wFMCommunicate OK [14:20:36]SAM_PROTO_SignData done [14:20:36]FM_MakeSignedData done [14:20:36]CreateOFDProtocolMessage [14:20:36]wFMCommunicate request_size=4 [14:20:36]MH_SAM_APDU [14:20:36]CAPDU: 80 11 00 00 [14:20:36]Write to MH i2c: E2 08 00 FE 5F 80 11 00 00 00 00 00 00 D7 [14:20:36]Write i2c OK [14:20:36]MH_I2C_Read... [14:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:36]Read from MH i2c: E2 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 17 00 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 17 00 FE 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2E [14:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:20:36]wFMCommunicate OK [14:20:36]CreateOFDProtocolMessage done [14:20:36]OFDSenderStorePacket 123231 [14:20:36]StoreOFDPacket docnum=123231 [14:20:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 A7 9C 08 01 02 85 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 35 FF 03 08 00 03 9E 3E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 01 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 3D D9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5F E1 01 00 35 04 06 00 11 7D 75 38 9D 94 5F CA AB 96 F0 8F 51 60 [14:20:36]CheckFolder [14:20:36]dirname=/storage/ofd_packets [14:20:36]CheckFolder done [14:20:36]ProducePacketName [14:20:36]name=ofd_packets/00123231 [14:20:36]NVStorageSaveData ofd_packets/00123231 [14:20:36]File name is /storage/ofd_packets/00123231 [14:20:36]Write 302 bytes [14:20:36]NVStorageSaveData done [14:20:36]OFDSenderStorePacket done [14:20:36]KKMCreateOFDPacket done [14:20:36]NVStorageSaveData kkm_last_timestamp [14:20:36]File name is /storage/kkm_last_timestamp [14:20:36]Write 4 bytes [14:20:36]NVStorageSaveData done [14:20:36]ExternCall_PrintAddStr [14:20:36]wPrintStart [14:20:36]Write to MH i2c: 01 00 00 FF 5F 5E [14:20:36]Write i2c OK [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: 01 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: 01 07 00 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: 01 07 00 FF 5F 00 00 00 00 00 FF 0F 73 [14:20:36]RasterBufferAndPrint [14:20:36]line Счет N : (1)718063 [14:20:36]line ИНН: 02508201610067 [14:20:36]line Контрольно-Кассовый Чек [14:20:36]line ПРОДАЖА [14:20:36]line ТРК (МРК, ГНК) : 6 [14:20:36]line Товар: 2710194210 [14:20:36]line ДТ(л)-К-5 [14:20:36]line 16.030 * 74.90 [14:20:36]line = 1200.65 [14:20:36]line НДС 12% НСП 1% [14:20:36]line > о реализуемом товаре [14:20:36]line ИТОГО: 1200.65 [14:20:36]line НСП 1% : 10.62 [14:20:36]line НДС 12% : 127.50 [14:20:36]line Наличными: 0.00 [14:20:36]line Безнал.: 1200.65 [14:20:36]line Место: АЗС № 64 "Партнер Нефть" [14:20:36]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:20:36]line СНО: Общий режим [14:20:36]line Чек 85 26.11.2024 14:20 [14:20:36]line Смена: 557 ФФД: 1.0 [14:20:36]line ЗНМ: 0300000033 [14:20:36]line РНМ: 0000000000092681 [14:20:36]line Версия ККМ: 001 [14:20:36]line Платежная система: Бакай Банк [14:20:36]line ФМ: 0000000000874881 [14:20:36]line ФД: 123231 [14:20:36]line ФПД: 19230535228820 [14:20:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T142045&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123231&fm=19230535228820&tin=02508201610067®Number=0000000000092681&sum=120065 [14:20:36]written 0, free lines is 4095 [14:20:36]OFD Sender: Processing packet 123231 [packets to send 7, broken 6] [14:20:36]ProducePacketName [14:20:36]name=ofd_packets/00123231 [14:20:36]OFD Sender: To server: pG, [14:20:36]CommunicateWithHost lk.salyk.kg:30040 [14:20:36]ConnectInit lk.salyk.kg [14:20:36]Connected sock=10 [14:20:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 A7 9C 08 01 02 85 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 35 FF 03 08 00 03 9E 3E 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 01 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 3D D9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5F E1 01 00 35 04 06 00 11 7D 75 38 9D 94 5F CA AB 96 F0 8F 51 60 [14:20:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 EA AD 47 00 B8 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 5F E1 01 00 F4 03 04 00 FF 84 45 67 B6 04 01 00 00 08 EA 0F E5 31 EC EA 11 [14:20:36]CommunicateWithHost err = 0 [14:20:36]CheckOFDResponse [14:20:36]1017 (14) - 77093643461234 [14:20:36]1041 (16) - 0000000000874881 [14:20:36]1040 (4) - 123231 [14:20:36]1012 (4) - 26.11.2024 08:21 [14:20:36]1206 (1) - 0 [14:20:36]OFD Sender: Remove packet 123231 [14:20:36]ProducePacketName [14:20:36]name=ofd_packets/00123231 [14:20:36]NVStorageDeleteData [14:20:36]Write to MH i2c: 01 00 00 29 60 89 [14:20:36]Write i2c OK [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: 01 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: 01 07 00 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: 01 07 00 29 60 00 00 00 00 00 5D 0C F9 [14:20:36]RasterBufferAndPrint [14:20:36]line [14:20:36]line [14:20:36]line [14:20:36]line [14:20:36]line [14:20:36]written 0, free lines is 3170 [14:20:36]MH_Cut [14:20:36]Write to MH i2c: D1 01 00 30 60 01 62 [14:20:36]Write i2c OK [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: D1 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: D1 01 00 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: D1 01 00 30 60 00 61 [14:20:36]Write to MH i2c: 01 00 00 31 60 91 [14:20:36]Write i2c OK [14:20:36]MH_I2C_Read... [14:20:37]OFD Sender: No OFD packet to send [14:20:38]*** Cut start [14:20:38]*** Partial cut [14:20:38]*** CUTSNS_PIN = 1 [14:20:38]*** CUTSNS_PIN = 0 [14:20:38]*** Brake cut motor [14:20:38]Read from MH i2c: 01 [14:20:38]MH_I2C_Read... [14:20:38]*** Stop cut motor [14:20:38]*** Cut end [14:20:38]Read from MH i2c: 01 07 00 [14:20:38]MH_I2C_Read... [14:20:38]Read from MH i2c: 01 07 00 31 60 00 00 00 00 00 FF 0F A6 [14:20:38]process_action close_receipt done [14:20:38]requested_data is exist [14:20:38]produce_requested_data [14:20:38]requested_item fm.sn is exist - process it [14:20:38]wFMCommunicate request_size=4 [14:20:38]MH_SAM_APDU [14:20:38]CAPDU: 80 11 00 00 [14:20:38]Write to MH i2c: E2 08 00 32 60 80 11 00 00 00 00 00 00 0C [14:20:38]Write i2c OK [14:20:38]MH_I2C_Read... [14:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:39]Read from MH i2c: E2 [14:20:39]MH_I2C_Read... [14:20:39]Read from MH i2c: E2 17 00 [14:20:39]MH_I2C_Read... [14:20:39]Read from MH i2c: E2 17 00 32 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 63 [14:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:20:39]wFMCommunicate OK [14:20:39]requested_item fd.num is exist - process it [14:20:39]SAM_PROTO_GetFieldsCounters [14:20:39]wFMCommunicate request_size=4 [14:20:39]MH_SAM_APDU [14:20:39]CAPDU: 80 13 00 00 [14:20:39]Write to MH i2c: E2 08 00 33 60 80 13 00 00 00 00 00 00 0F [14:20:39]Write i2c OK [14:20:39]MH_I2C_Read... [14:20:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:39]Read from MH i2c: E2 [14:20:39]MH_I2C_Read... [14:20:39]Read from MH i2c: E2 62 00 [14:20:39]MH_I2C_Read... [14:20:39]Read from MH i2c: E2 62 00 33 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5F E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [14:20:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 5F E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:20:39]wFMCommunicate OK [14:20:39]SAM_PROTO_GetFieldsCounters done [14:20:39]requested_item shift.num is exist - process it [14:20:39]requested_item shift.opened is exist - process it [14:20:39]req_shift_opened [14:20:39]FM_GetShiftState [14:20:39]SAM_PROTO_GetShiftState [14:20:39]wFMCommunicate request_size=4 [14:20:39]MH_SAM_APDU [14:20:39]CAPDU: 80 13 01 00 [14:20:39]Write to MH i2c: E2 08 00 34 60 80 13 01 00 00 00 00 00 11 [14:20:39]Write i2c OK [14:20:39]MH_I2C_Read... [14:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:39]Read from MH i2c: E2 [14:20:39]MH_I2C_Read... [14:20:39]Read from MH i2c: E2 0E 00 [14:20:39]MH_I2C_Read... [14:20:39]Read from MH i2c: E2 0E 00 34 60 00 09 00 01 98 11 45 67 00 00 00 00 90 00 72 [14:20:39]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:20:39]wFMCommunicate OK [14:20:39]SAM_PROTO_GetShiftState done [14:20:39]FM_GetShiftState done [14:20:39]req_shift_opened done [14:20:39]requested_item shift.open_date is exist - process it [14:20:39]req_shift_open_date [14:20:39]req_shift_open_date done [14:20:39]produce_requested_data done [14:20:39]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123231,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [14:20:39]process_action_free close_receipt [14:20:39]json_value_free [14:20:39]json_value_free done [14:20:39]process_json_proto returns [14:20:39]Send response to host [14:20:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123231,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [14:20:39]free response buf [14:20:39]execute_script done [14:20:39]execute_script returns [14:20:39]free content buf [14:20:39]Sock 7.Close socket [14:20:39]Sock 7.Thread stoped [14:20:42]OFD Sender: No OFD packet to send [14:20:47]OFD Sender: No OFD packet to send [14:20:52]OFD Sender: No OFD packet to send [14:20:57]OFD Sender: No OFD packet to send [14:21:02]OFD Sender: No OFD packet to send [14:21:07]OFD Sender: No OFD packet to send [14:21:12]OFD Sender: No OFD packet to send [14:21:17]OFD Sender: No OFD packet to send [14:21:22]OFD Sender: No OFD packet to send [14:21:27]OFD Sender: No OFD packet to send [14:21:32]OFD Sender: No OFD packet to send [14:21:37]OFD Sender: No OFD packet to send [14:21:42]OFD Sender: No OFD packet to send [14:21:47]OFD Sender: No OFD packet to send [14:21:52]OFD Sender: No OFD packet to send [14:21:57]OFD Sender: No OFD packet to send [14:22:02]OFD Sender: No OFD packet to send [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:57]OFD Sender: No OFD packet to send [14:25:02]OFD Sender: No OFD packet to send [14:25:07]OFD Sender: No OFD packet to send [14:25:12]OFD Sender: No OFD packet to send [14:25:17]OFD Sender: No OFD packet to send [14:25:22]OFD Sender: No OFD packet to send [14:25:27]OFD Sender: No OFD packet to send [14:25:32]OFD Sender: No OFD packet to send [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:32]OFD Sender: No OFD packet to send [14:26:37]OFD Sender: No OFD packet to send [14:26:42]OFD Sender: No OFD packet to send [14:26:47]OFD Sender: No OFD packet to send [14:26:52]OFD Sender: No OFD packet to send [14:26:57]OFD Sender: No OFD packet to send [14:27:02]OFD Sender: No OFD packet to send [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]OFD Sender: No OFD packet to send [14:29:57]OFD Sender: No OFD packet to send [14:30:02]OFD Sender: No OFD packet to send [14:30:07]OFD Sender: No OFD packet to send [14:30:12]OFD Sender: No OFD packet to send [14:30:17]OFD Sender: No OFD packet to send [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:43]OFD Sender: No OFD packet to send [14:35:48]OFD Sender: No OFD packet to send [14:35:53]OFD Sender: No OFD packet to send [14:35:58]OFD Sender: No OFD packet to send [14:36:03]accept exits with 9 [14:36:03]New connection [14:36:03]New thread 3066723684 created [14:36:03]Thread 3066580324 joined [14:36:03]Waiting for new connection... [14:36:03] Sock 9.Parse request [14:36:03]Sock 9.Check first char [14:36:03]Sock 9.First char is OK [14:36:03]request: POST /json_proto HTTP/1.0 [14:36:03]Method: POST [14:36:03]URL: /json_proto [14:36:03]Method is POST - this is cgi request [14:36:03]url: /json_proto [14:36:03]query_string will be loaded in cgi processing [14:36:03]execute_cgi json_proto POST (null) [14:36:03]execute_cgi path=json_proto method=POST [14:36:03]POST find Content-Length [14:36:03]Host: 172.17.37.4:8080 [14:36:03]Content-Length: 678 [14:36:03]Content-Type: application/json [14:36:03] [14:36:03]POST finish read [14:36:03]Found Content-Length = 678 [14:36:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 13.360, "sum" : 900.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:03]execute_script... [14:36:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 13.360, "sum" : 900.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:03]POST & json_proto [14:36:03]process_json_proto [14:36:03]json parsed OK: [14:36:03]protocol is kg_v1.0 [14:36:03]action value=close_receipt [14:36:03]process_action close_receipt [14:36:03]cmd_close_receipt [14:36:03]MH_GetDate [14:36:03]Write to MH i2c: F0 00 00 35 60 84 [14:36:03]Write i2c OK [14:36:03]MH_I2C_Read... [14:36:03]Read from MH i2c: F0 [14:36:03]MH_I2C_Read... [14:36:03]Read from MH i2c: F0 09 00 [14:36:03]MH_I2C_Read... [14:36:03]Read from MH i2c: F0 09 00 35 60 00 DE DC 45 67 B8 5A 43 67 AF [14:36:03]GetLastDocTimeStamp 1732630845 [14:36:03]current date 1732631774 [14:36:03]FM_GetShiftState [14:36:03]SAM_PROTO_GetShiftState [14:36:03]wFMCommunicate request_size=4 [14:36:03]MH_SAM_APDU [14:36:03]CAPDU: 80 13 01 00 [14:36:03]Write to MH i2c: E2 08 00 36 60 80 13 01 00 00 00 00 00 13 [14:36:03]Write i2c OK [14:36:03]MH_I2C_Read... [14:36:03]OFD Sender: No OFD packet to send [14:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:03]Read from MH i2c: E2 [14:36:03]MH_I2C_Read... [14:36:03]Read from MH i2c: E2 0E 00 [14:36:03]MH_I2C_Read... [14:36:03]Read from MH i2c: E2 0E 00 36 60 00 09 00 01 98 11 45 67 00 00 00 00 90 00 74 [14:36:03]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:36:03]wFMCommunicate OK [14:36:03]SAM_PROTO_GetShiftState done [14:36:03]FM_GetShiftState done [14:36:03]opened in 1732579736 [14:36:03]opened+sec_in_day 1732666136 [14:36:03]quantity*price = 90046 [14:36:03]sum+1 = 90047 [14:36:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 86 26.11.2024 14:36 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123232 ФПД: 74568684303576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T143614&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123232&fm=74568684303576&tin=02508201610067®Number=0000000000092681&sum=90000 [14:36:04]StoreToDocumentArchive [14:36:04]shift 557 fd 123232 [14:36:04]save to /storage/0557/doc_00123232 [14:36:04]save last doc name /storage/0557/doc_00123232 to /storage/kkm_last_doc_name [14:36:04]save OK [14:36:04]Clear old archive folders... [14:36:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:04]tlvbuf is 0210F480 [14:36:04]SAM_PROTO_ClearQueue [14:36:04]wFMCommunicate request_size=4 [14:36:04]MH_SAM_APDU [14:36:04]CAPDU: 80 09 00 00 [14:36:04]Write to MH i2c: E2 08 00 43 60 80 09 00 00 00 00 00 00 15 [14:36:04]Write i2c OK [14:36:04]MH_I2C_Read... [14:36:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:04]Read from MH i2c: E2 [14:36:04]MH_I2C_Read... [14:36:04]Read from MH i2c: E2 03 00 [14:36:04]MH_I2C_Read... [14:36:04]Read from MH i2c: E2 03 00 43 60 00 90 00 17 [14:36:04]RAPDU: 90 00 [14:36:04]wFMCommunicate OK [14:36:04]SAM_PROTO_ClearQueue done [14:36:04]KKMCreateOFDPacket [14:36:04]OFDProtocolAddRootSTLVToBuf [14:36:04]FM_MakeSignedData [14:36:04]FM_MakeSignedData [14:36:04]SAM_PROTO_SignData [14:36:04]wFMCommunicate request_size=4 [14:36:04]MH_SAM_APDU [14:36:04]CAPDU: 80 0D 01 02 [14:36:04]Write to MH i2c: E2 08 00 44 60 80 0D 01 02 00 00 00 00 1D [14:36:04]Write i2c OK [14:36:04]MH_I2C_Read... [14:36:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:04]Read from MH i2c: E2 [14:36:04]MH_I2C_Read... [14:36:04]Read from MH i2c: E2 03 00 [14:36:04]MH_I2C_Read... [14:36:04]Read from MH i2c: E2 03 00 44 60 00 90 00 18 [14:36:04]RAPDU: 90 00 [14:36:04]wFMCommunicate OK [14:36:04]wFMCommunicate request_size=255 [14:36:04]MH_SAM_APDU [14:36:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 BE 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 DE DC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 60 E1 01 00 35 04 06 00 43 [14:36:04]Write to MH i2c: E2 02 01 45 60 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 34 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 BE 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 DE DC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 60 E1 01 00 35 04 06 00 43 00 00 0A [14:36:04]Write i2c OK [14:36:04]MH_I2C_Read... [14:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:04]Read from MH i2c: E2 [14:36:04]MH_I2C_Read... [14:36:04]Read from MH i2c: E2 03 00 [14:36:04]MH_I2C_Read... [14:36:04]Read from MH i2c: E2 03 00 45 60 00 90 00 19 [14:36:04]RAPDU: 90 00 [14:36:04]wFMCommunicate OK [14:36:04]wFMCommunicate request_size=10 [14:36:04]MH_SAM_APDU [14:36:04]CAPDU: 80 0D 02 02 05 D1 DF F0 74 D8 [14:36:04]Write to MH i2c: E2 0D 00 46 60 80 0D 02 02 05 00 D1 DF F0 74 D8 00 00 16 [14:36:04]Write i2c OK [14:36:04]MH_I2C_Read... [14:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:04]Read from MH i2c: E2 [14:36:04]MH_I2C_Read... [14:36:04]Read from MH i2c: E2 03 00 [14:36:04]MH_I2C_Read... [14:36:04]Read from MH i2c: E2 03 00 46 60 00 90 00 1A [14:36:04]RAPDU: 90 00 [14:36:04]wFMCommunicate OK [14:36:04]wFMCommunicate request_size=4 [14:36:04]MH_SAM_APDU [14:36:04]CAPDU: 80 0D 03 02 [14:36:04]Write to MH i2c: E2 08 00 47 60 80 0D 03 02 00 00 00 00 22 [14:36:04]Write i2c OK [14:36:04]MH_I2C_Read... [14:36:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:04]Read from MH i2c: E2 [14:36:04]MH_I2C_Read... [14:36:04]Read from MH i2c: E2 0B 00 [14:36:04]MH_I2C_Read... [14:36:04]Read from MH i2c: E2 0B 00 47 60 00 A9 24 7F 5A C1 1E 1D F7 90 00 BC [14:36:04]RAPDU: A9 24 7F 5A C1 1E 1D F7 90 00 [14:36:04]wFMCommunicate OK [14:36:04]SAM_PROTO_SignData done [14:36:04]FM_MakeSignedData done [14:36:04]CreateOFDProtocolMessage [14:36:04]wFMCommunicate request_size=4 [14:36:04]MH_SAM_APDU [14:36:04]CAPDU: 80 11 00 00 [14:36:04]Write to MH i2c: E2 08 00 48 60 80 11 00 00 00 00 00 00 22 [14:36:04]Write i2c OK [14:36:04]MH_I2C_Read... [14:36:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:04]Read from MH i2c: E2 [14:36:04]MH_I2C_Read... [14:36:04]Read from MH i2c: E2 17 00 [14:36:04]MH_I2C_Read... [14:36:04]Read from MH i2c: E2 17 00 48 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 79 [14:36:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:36:04]wFMCommunicate OK [14:36:04]CreateOFDProtocolMessage done [14:36:04]OFDSenderStorePacket 123232 [14:36:04]StoreOFDPacket docnum=123232 [14:36:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 45 CE 07 01 53 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 BE 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 DE DC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 60 E1 01 00 35 04 06 00 43 D1 DF F0 74 D8 A9 24 7F 5A C1 1E 1D F7 [14:36:04]CheckFolder [14:36:04]dirname=/storage/ofd_packets [14:36:04]CheckFolder done [14:36:04]ProducePacketName [14:36:04]name=ofd_packets/00123232 [14:36:04]NVStorageSaveData ofd_packets/00123232 [14:36:04]File name is /storage/ofd_packets/00123232 [14:36:04]Write 301 bytes [14:36:04]NVStorageSaveData done [14:36:04]OFDSenderStorePacket done [14:36:04]KKMCreateOFDPacket done [14:36:04]NVStorageSaveData kkm_last_timestamp [14:36:04]File name is /storage/kkm_last_timestamp [14:36:04]Write 4 bytes [14:36:04]NVStorageSaveData done [14:36:04]ExternCall_PrintAddStr [14:36:04]wPrintStart [14:36:04]Write to MH i2c: 01 00 00 49 60 A9 [14:36:04]Write i2c OK [14:36:04]MH_I2C_Read... [14:36:04]Read from MH i2c: 01 [14:36:04]MH_I2C_Read... [14:36:04]Read from MH i2c: 01 07 00 [14:36:04]MH_I2C_Read... [14:36:04]Read from MH i2c: 01 07 00 49 60 00 00 00 00 00 FF 0F BE [14:36:04]RasterBufferAndPrint [14:36:04]line Счет N : (1)718064 [14:36:04]line ИНН: 02508201610067 [14:36:04]line Контрольно-Кассовый Чек [14:36:04]line ПРОДАЖА [14:36:04]line ТРК (МРК, ГНК) : 22 [14:36:04]line Товар: 2710124130 [14:36:04]line Аи-92-К-4 [14:36:04]line 13.360 * 67.40 [14:36:04]line = 900.46 [14:36:04]line НДС 12% НСП 1% [14:36:04]line > о реализуемом товаре [14:36:04]line ОКРУГЛЕНИЕ: -0.46 [14:36:04]line ИТОГО: 900.00 [14:36:04]line Внесено: 900.00 [14:36:04]line СДАЧА: 0.00 [14:36:04]line НСП 1% : 7.97 [14:36:04]line НДС 12% : 95.62 [14:36:04]line Наличными: 900.00 [14:36:04]line Безнал.: 0.00 [14:36:04]line Место: АЗС № 64 "Партнер Нефть" [14:36:04]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:36:04]line СНО: Общий режим [14:36:04]line Чек 86 26.11.2024 14:36 [14:36:04]line Смена: 557 ФФД: 1.0 [14:36:04]line ЗНМ: 0300000033 [14:36:04]line РНМ: 0000000000092681 [14:36:04]line Версия ККМ: 001 [14:36:04]line ФМ: 0000000000874881 [14:36:04]line ФД: 123232 [14:36:04]line ФПД: 74568684303576 [14:36:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T143614&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123232&fm=74568684303576&tin=02508201610067®Number=0000000000092681&sum=90000 [14:36:05]OFD Sender: Processing packet 123232 [packets to send 7, broken 6] [14:36:05]ProducePacketName [14:36:05]name=ofd_packets/00123232 [14:36:05]OFD Sender: To server: pG, [14:36:05]CommunicateWithHost lk.salyk.kg:30040 [14:36:05]ConnectInit lk.salyk.kg [14:36:05]written 0, free lines is 4095 [14:36:05]Connected sock=10 [14:36:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 45 CE 07 01 53 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 BE 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 DE DC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 60 E1 01 00 35 04 06 00 43 D1 DF F0 74 D8 A9 24 7F 5A C1 1E 1D F7 [14:36:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 4E 22 47 00 3E A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 60 E1 01 00 F4 03 04 00 A0 88 45 67 B6 04 01 00 00 8A E1 A1 81 E5 C2 CA 12 [14:36:05]CommunicateWithHost err = 0 [14:36:05]CheckOFDResponse [14:36:05]1017 (14) - 77093643461234 [14:36:05]1041 (16) - 0000000000874881 [14:36:05]1040 (4) - 123232 [14:36:05]1012 (4) - 26.11.2024 08:36 [14:36:05]1206 (1) - 0 [14:36:05]OFD Sender: Remove packet 123232 [14:36:05]ProducePacketName [14:36:05]name=ofd_packets/00123232 [14:36:05]NVStorageDeleteData [14:36:05]Write to MH i2c: 01 00 00 74 60 D4 [14:36:05]Write i2c OK [14:36:05]MH_I2C_Read... [14:36:05]Read from MH i2c: 01 [14:36:05]MH_I2C_Read... [14:36:05]Read from MH i2c: 01 07 00 [14:36:05]MH_I2C_Read... [14:36:05]Read from MH i2c: 01 07 00 74 60 00 00 00 00 00 40 0C 27 [14:36:05]RasterBufferAndPrint [14:36:05]line [14:36:05]line [14:36:05]line [14:36:05]line [14:36:05]line [14:36:05]written 0, free lines is 3140 [14:36:05]MH_Cut [14:36:05]Write to MH i2c: D1 01 00 7B 60 01 AD [14:36:05]Write i2c OK [14:36:05]MH_I2C_Read... [14:36:05]Read from MH i2c: D1 [14:36:05]MH_I2C_Read... [14:36:05]Read from MH i2c: D1 01 00 [14:36:05]MH_I2C_Read... [14:36:05]Read from MH i2c: D1 01 00 7B 60 00 AC [14:36:05]Write to MH i2c: 01 00 00 7C 60 DC [14:36:05]Write i2c OK [14:36:05]MH_I2C_Read... [14:36:05]OFD Sender: No OFD packet to send [14:36:06]*** Cut start [14:36:06]*** Partial cut [14:36:06]*** CUTSNS_PIN = 1 [14:36:06]*** CUTSNS_PIN = 0 [14:36:07]*** Brake cut motor [14:36:07]Read from MH i2c: 01 [14:36:07]MH_I2C_Read... [14:36:07]*** Stop cut motor [14:36:07]*** Cut end [14:36:07]Read from MH i2c: 01 07 00 [14:36:07]MH_I2C_Read... [14:36:07]Read from MH i2c: 01 07 00 7C 60 00 00 00 00 00 FF 0F F1 [14:36:07]process_action close_receipt done [14:36:07]requested_data is exist [14:36:07]produce_requested_data [14:36:07]requested_item fm.sn is exist - process it [14:36:07]wFMCommunicate request_size=4 [14:36:07]MH_SAM_APDU [14:36:07]CAPDU: 80 11 00 00 [14:36:07]Write to MH i2c: E2 08 00 7D 60 80 11 00 00 00 00 00 00 57 [14:36:07]Write i2c OK [14:36:07]MH_I2C_Read... [14:36:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:07]Read from MH i2c: E2 [14:36:07]MH_I2C_Read... [14:36:07]Read from MH i2c: E2 17 00 [14:36:07]MH_I2C_Read... [14:36:07]Read from MH i2c: E2 17 00 7D 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AE [14:36:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:36:07]wFMCommunicate OK [14:36:07]requested_item fd.num is exist - process it [14:36:07]SAM_PROTO_GetFieldsCounters [14:36:07]wFMCommunicate request_size=4 [14:36:07]MH_SAM_APDU [14:36:07]CAPDU: 80 13 00 00 [14:36:07]Write to MH i2c: E2 08 00 7E 60 80 13 00 00 00 00 00 00 5A [14:36:07]Write i2c OK [14:36:07]MH_I2C_Read... [14:36:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:07]Read from MH i2c: E2 [14:36:07]MH_I2C_Read... [14:36:07]Read from MH i2c: E2 62 00 [14:36:07]MH_I2C_Read... [14:36:07]Read from MH i2c: E2 62 00 7E 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 60 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [14:36:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 60 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:07]wFMCommunicate OK [14:36:07]SAM_PROTO_GetFieldsCounters done [14:36:07]requested_item shift.num is exist - process it [14:36:07]requested_item shift.opened is exist - process it [14:36:07]req_shift_opened [14:36:07]FM_GetShiftState [14:36:07]SAM_PROTO_GetShiftState [14:36:07]wFMCommunicate request_size=4 [14:36:07]MH_SAM_APDU [14:36:07]CAPDU: 80 13 01 00 [14:36:07]Write to MH i2c: E2 08 00 7F 60 80 13 01 00 00 00 00 00 5C [14:36:07]Write i2c OK [14:36:07]MH_I2C_Read... [14:36:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:07]Read from MH i2c: E2 [14:36:07]MH_I2C_Read... [14:36:07]Read from MH i2c: E2 0E 00 [14:36:07]MH_I2C_Read... [14:36:07]Read from MH i2c: E2 0E 00 7F 60 00 09 00 01 98 11 45 67 00 00 00 00 90 00 BD [14:36:07]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:36:07]wFMCommunicate OK [14:36:07]SAM_PROTO_GetShiftState done [14:36:07]FM_GetShiftState done [14:36:07]req_shift_opened done [14:36:07]requested_item shift.open_date is exist - process it [14:36:07]req_shift_open_date [14:36:07]req_shift_open_date done [14:36:07]produce_requested_data done [14:36:07]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123232,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [14:36:07]process_action_free close_receipt [14:36:07]json_value_free [14:36:07]json_value_free done [14:36:07]process_json_proto returns [14:36:07]Send response to host [14:36:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123232,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [14:36:07]free response buf [14:36:07]execute_script done [14:36:07]execute_script returns [14:36:07]free content buf [14:36:07]Sock 9.Close socket [14:36:07]Sock 9.Thread stoped [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:47]accept exits with 7 [14:37:47]New connection [14:37:47]New thread 3066580324 created [14:37:47]Thread 3066723684 joined [14:37:47]Waiting for new connection... [14:37:47] Sock 7.Parse request [14:37:47]Sock 7.Check first char [14:37:47]Sock 7.First char is OK [14:37:47]request: POST /json_proto HTTP/1.0 [14:37:47]Method: POST [14:37:47]URL: /json_proto [14:37:47]Method is POST - this is cgi request [14:37:47]url: /json_proto [14:37:47]query_string will be loaded in cgi processing [14:37:47]execute_cgi json_proto POST (null) [14:37:47]execute_cgi path=json_proto method=POST [14:37:47]POST find Content-Length [14:37:47]Host: 172.17.37.4:8080 [14:37:47]Content-Length: 677 [14:37:47]Content-Type: application/json [14:37:47] [14:37:47]POST finish read [14:37:47]Found Content-Length = 677 [14:37:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:47]execute_script... [14: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 : (1)718065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:47]POST & json_proto [14:37:47]process_json_proto [14:37:47]json parsed OK: [14:37:47]protocol is kg_v1.0 [14:37:47]action value=close_receipt [14:37:47]process_action close_receipt [14:37:47]cmd_close_receipt [14:37:47]MH_GetDate [14:37:47]Write to MH i2c: F0 00 00 80 60 CF [14:37:47]Write i2c OK [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: F0 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: F0 09 00 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: F0 09 00 80 60 00 46 DD 45 67 B8 5A 43 67 63 [14:37:47]GetLastDocTimeStamp 1732631774 [14:37:47]current date 1732631878 [14:37:47]FM_GetShiftState [14:37:47]SAM_PROTO_GetShiftState [14:37:47]wFMCommunicate request_size=4 [14:37:47]MH_SAM_APDU [14:37:47]CAPDU: 80 13 01 00 [14:37:47]Write to MH i2c: E2 08 00 81 60 80 13 01 00 00 00 00 00 5E [14:37:47]Write i2c OK [14:37:47]MH_I2C_Read... [14:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:47]Read from MH i2c: E2 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: E2 0E 00 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: E2 0E 00 81 60 00 09 00 01 98 11 45 67 00 00 00 00 90 00 BF [14:37:47]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:37:47]wFMCommunicate OK [14:37:47]SAM_PROTO_GetShiftState done [14:37:47]FM_GetShiftState done [14:37:47]opened in 1732579736 [14:37:47]opened+sec_in_day 1732666136 [14:37:47]quantity*price = 50010 [14:37:47]sum+1 = 50012 [14:37:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 87 26.11.2024 14:37 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123233 ФПД: 118471718636818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T143758&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123233&fm=118471718636818&tin=02508201610067®Number=0000000000092681&sum=50000 [14:37:48]StoreToDocumentArchive [14:37:48]shift 557 fd 123233 [14:37:48]save to /storage/0557/doc_00123233 [14:37:48]save last doc name /storage/0557/doc_00123233 to /storage/kkm_last_doc_name [14:37:48]save OK [14:37:48]Clear old archive folders... [14:37:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:48]tlvbuf is 020715F0 [14:37:48]SAM_PROTO_ClearQueue [14:37:48]wFMCommunicate request_size=4 [14:37:48]MH_SAM_APDU [14:37:48]CAPDU: 80 09 00 00 [14:37:48]Write to MH i2c: E2 08 00 8E 60 80 09 00 00 00 00 00 00 60 [14:37:48]Write i2c OK [14:37:48]MH_I2C_Read... [14:37:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:48]Read from MH i2c: E2 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: E2 03 00 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: E2 03 00 8E 60 00 90 00 62 [14:37:48]RAPDU: 90 00 [14:37:48]wFMCommunicate OK [14:37:48]SAM_PROTO_ClearQueue done [14:37:48]KKMCreateOFDPacket [14:37:48]OFDProtocolAddRootSTLVToBuf [14:37:48]FM_MakeSignedData [14:37:48]FM_MakeSignedData [14:37:48]SAM_PROTO_SignData [14:37:48]wFMCommunicate request_size=4 [14:37:48]MH_SAM_APDU [14:37:48]CAPDU: 80 0D 01 02 [14:37:48]Write to MH i2c: E2 08 00 8F 60 80 0D 01 02 00 00 00 00 68 [14:37:48]Write i2c OK [14:37:48]MH_I2C_Read... [14:37:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:48]Read from MH i2c: E2 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: E2 03 00 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: E2 03 00 8F 60 00 90 00 63 [14:37:48]RAPDU: 90 00 [14:37:48]wFMCommunicate OK [14:37:48]wFMCommunicate request_size=255 [14:37:48]MH_SAM_APDU [14:37:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 46 DD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 61 E1 01 00 35 04 06 00 6B [14:37:48]Write to MH i2c: E2 02 01 90 60 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 46 DD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 61 E1 01 00 35 04 06 00 6B 00 00 D2 [14:37:48]Write i2c OK [14:37:48]MH_I2C_Read... [14:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:48]Read from MH i2c: E2 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: E2 03 00 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: E2 03 00 90 60 00 90 00 64 [14:37:48]RAPDU: 90 00 [14:37:48]wFMCommunicate OK [14:37:48]wFMCommunicate request_size=10 [14:37:48]MH_SAM_APDU [14:37:48]CAPDU: 80 0D 02 02 05 BF D8 B4 8D 12 [14:37:48]Write to MH i2c: E2 0D 00 91 60 80 0D 02 02 05 00 BF D8 B4 8D 12 00 00 5F [14:37:48]Write i2c OK [14:37:48]MH_I2C_Read... [14:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:49]Read from MH i2c: E2 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: E2 03 00 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: E2 03 00 91 60 00 90 00 65 [14:37:49]RAPDU: 90 00 [14:37:49]wFMCommunicate OK [14:37:49]wFMCommunicate request_size=4 [14:37:49]MH_SAM_APDU [14:37:49]CAPDU: 80 0D 03 02 [14:37:49]Write to MH i2c: E2 08 00 92 60 80 0D 03 02 00 00 00 00 6D [14:37:49]Write i2c OK [14:37:49]MH_I2C_Read... [14:37:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:49]Read from MH i2c: E2 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: E2 0B 00 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: E2 0B 00 92 60 00 21 90 A8 D8 A1 6A AD 07 90 00 5E [14:37:49]RAPDU: 21 90 A8 D8 A1 6A AD 07 90 00 [14:37:49]wFMCommunicate OK [14:37:49]SAM_PROTO_SignData done [14:37:49]FM_MakeSignedData done [14:37:49]CreateOFDProtocolMessage [14:37:49]wFMCommunicate request_size=4 [14:37:49]MH_SAM_APDU [14:37:49]CAPDU: 80 11 00 00 [14:37:49]Write to MH i2c: E2 08 00 93 60 80 11 00 00 00 00 00 00 6D [14:37:49]Write i2c OK [14:37:49]MH_I2C_Read... [14:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:49]Read from MH i2c: E2 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: E2 17 00 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: E2 17 00 93 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C4 [14:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:37:49]wFMCommunicate OK [14:37:49]CreateOFDProtocolMessage done [14:37:49]OFDSenderStorePacket 123233 [14:37:49]StoreOFDPacket docnum=123233 [14:37:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B7 D8 07 01 63 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 46 DD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 61 E1 01 00 35 04 06 00 6B BF D8 B4 8D 12 21 90 A8 D8 A1 6A AD 07 [14:37:49]CheckFolder [14:37:49]dirname=/storage/ofd_packets [14:37:49]CheckFolder done [14:37:49]ProducePacketName [14:37:49]name=ofd_packets/00123233 [14:37:49]NVStorageSaveData ofd_packets/00123233 [14:37:49]File name is /storage/ofd_packets/00123233 [14:37:49]Write 301 bytes [14:37:49]NVStorageSaveData done [14:37:49]OFDSenderStorePacket done [14:37:49]KKMCreateOFDPacket done [14:37:49]NVStorageSaveData kkm_last_timestamp [14:37:49]File name is /storage/kkm_last_timestamp [14:37:49]Write 4 bytes [14:37:49]NVStorageSaveData done [14:37:49]ExternCall_PrintAddStr [14:37:49]wPrintStart [14:37:49]Write to MH i2c: 01 00 00 94 60 F4 [14:37:49]Write i2c OK [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: 01 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: 01 07 00 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: 01 07 00 94 60 00 00 00 00 00 FF 0F 09 [14:37:49]RasterBufferAndPrint [14:37:49]line Счет N : (1)718065 [14:37:49]line ИНН: 02508201610067 [14:37:49]line Контрольно-Кассовый Чек [14:37:49]line ПРОДАЖА [14:37:49]line ТРК (МРК, ГНК) : 42 [14:37:49]line Товар: 2710124130 [14:37:49]line Аи-92-К-4 [14:37:49]line 7.420 * 67.40 [14:37:49]line = 500.11 [14:37:49]line НДС 12% НСП 1% [14:37:49]line > о реализуемом товаре [14:37:49]line ОКРУГЛЕНИЕ: -0.11 [14:37:49]line ИТОГО: 500.00 [14:37:49]line Внесено: 500.00 [14:37:49]line СДАЧА: 0.00 [14:37:49]line НСП 1% : 4.43 [14:37:49]line НДС 12% : 53.11 [14:37:49]line Наличными: 500.00 [14:37:49]line Безнал.: 0.00 [14:37:49]line Место: АЗС № 64 "Партнер Нефть" [14:37:49]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:37:49]line СНО: Общий режим [14:37:49]line Чек 87 26.11.2024 14:37 [14:37:49]line Смена: 557 ФФД: 1.0 [14:37:49]line ЗНМ: 0300000033 [14:37:49]line РНМ: 0000000000092681 [14:37:49]line Версия ККМ: 001 [14:37:49]line ФМ: 0000000000874881 [14:37:49]line ФД: 123233 [14:37:49]line ФПД: 118471718636818 [14:37:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T143758&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123233&fm=118471718636818&tin=02508201610067®Number=0000000000092681&sum=50000 [14:37:49]written 0, free lines is 4095 [14:37:49]OFD Sender: Processing packet 123233 [packets to send 7, broken 6] [14:37:49]ProducePacketName [14:37:49]name=ofd_packets/00123233 [14:37:49]OFD Sender: To server: pG, [14:37:49]CommunicateWithHost lk.salyk.kg:30040 [14:37:49]ConnectInit lk.salyk.kg [14:37:49]Connected sock=10 [14:37:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B7 D8 07 01 63 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 46 DD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 61 E1 01 00 35 04 06 00 6B BF D8 B4 8D 12 21 90 A8 D8 A1 6A AD 07 [14:37:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 A3 DB 47 00 83 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 61 E1 01 00 F4 03 04 00 08 89 45 67 B6 04 01 00 00 CE 14 6B B1 5F B9 46 E2 [14:37:49]CommunicateWithHost err = 0 [14:37:49]CheckOFDResponse [14:37:49]1017 (14) - 77093643461234 [14:37:49]1041 (16) - 0000000000874881 [14:37:49]1040 (4) - 123233 [14:37:49]1012 (4) - 26.11.2024 08:38 [14:37:49]1206 (1) - 0 [14:37:49]OFD Sender: Remove packet 123233 [14:37:49]ProducePacketName [14:37:49]name=ofd_packets/00123233 [14:37:49]NVStorageDeleteData [14:37:49]Write to MH i2c: 01 00 00 BF 60 1F [14:37:49]Write i2c OK [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: 01 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: 01 07 00 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: 01 07 00 BF 60 00 00 00 00 00 4A 0C 7C [14:37:49]RasterBufferAndPrint [14:37:49]line [14:37:49]line [14:37:49]line [14:37:49]line [14:37:49]line [14:37:49]written 0, free lines is 3150 [14:37:49]MH_Cut [14:37:49]Write to MH i2c: D1 01 00 C6 60 01 F8 [14:37:49]Write i2c OK [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: D1 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: D1 01 00 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: D1 01 00 C6 60 00 F7 [14:37:49]Write to MH i2c: 01 00 00 C7 60 27 [14:37:49]Write i2c OK [14:37:49]MH_I2C_Read... [14:37:49]OFD Sender: No OFD packet to send [14:37:50]*** Cut start [14:37:50]*** Partial cut [14:37:50]*** CUTSNS_PIN = 1 [14:37:50]*** CUTSNS_PIN = 0 [14:37:51]*** Brake cut motor [14:37:51]Read from MH i2c: 01 [14:37:51]MH_I2C_Read... [14:37:51]*** Stop cut motor [14:37:51]*** Cut end [14:37:51]Read from MH i2c: 01 07 00 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: 01 07 00 C7 60 00 00 00 00 00 FF 0F 3C [14:37:51]process_action close_receipt done [14:37:51]requested_data is exist [14:37:51]produce_requested_data [14:37:51]requested_item fm.sn is exist - process it [14:37:51]wFMCommunicate request_size=4 [14:37:51]MH_SAM_APDU [14:37:51]CAPDU: 80 11 00 00 [14:37:51]Write to MH i2c: E2 08 00 C8 60 80 11 00 00 00 00 00 00 A2 [14:37:51]Write i2c OK [14:37:51]MH_I2C_Read... [14:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:51]Read from MH i2c: E2 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 17 00 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 17 00 C8 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F9 [14:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:37:51]wFMCommunicate OK [14:37:51]requested_item fd.num is exist - process it [14:37:51]SAM_PROTO_GetFieldsCounters [14:37:51]wFMCommunicate request_size=4 [14:37:51]MH_SAM_APDU [14:37:51]CAPDU: 80 13 00 00 [14:37:51]Write to MH i2c: E2 08 00 C9 60 80 13 00 00 00 00 00 00 A5 [14:37:51]Write i2c OK [14:37:51]MH_I2C_Read... [14:37:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:51]Read from MH i2c: E2 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 62 00 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 62 00 C9 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 61 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [14:37:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 61 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:51]wFMCommunicate OK [14:37:51]SAM_PROTO_GetFieldsCounters done [14:37:51]requested_item shift.num is exist - process it [14:37:51]requested_item shift.opened is exist - process it [14:37:51]req_shift_opened [14:37:51]FM_GetShiftState [14:37:51]SAM_PROTO_GetShiftState [14:37:51]wFMCommunicate request_size=4 [14:37:51]MH_SAM_APDU [14:37:51]CAPDU: 80 13 01 00 [14:37:51]Write to MH i2c: E2 08 00 CA 60 80 13 01 00 00 00 00 00 A7 [14:37:51]Write i2c OK [14:37:51]MH_I2C_Read... [14:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:51]Read from MH i2c: E2 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 0E 00 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 0E 00 CA 60 00 09 00 01 98 11 45 67 00 00 00 00 90 00 08 [14:37:51]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:37:51]wFMCommunicate OK [14:37:51]SAM_PROTO_GetShiftState done [14:37:51]FM_GetShiftState done [14:37:51]req_shift_opened done [14:37:51]requested_item shift.open_date is exist - process it [14:37:51]req_shift_open_date [14:37:51]req_shift_open_date done [14:37:51]produce_requested_data done [14:37:51]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123233,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [14:37:51]process_action_free close_receipt [14:37:51]json_value_free [14:37:51]json_value_free done [14:37:51]process_json_proto returns [14:37:51]Send response to host [14:37:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123233,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [14:37:51]free response buf [14:37:51]execute_script done [14:37:51]execute_script returns [14:37:51]free content buf [14:37:51]Sock 7.Close socket [14:37:51]Sock 7.Thread stoped [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:32]accept exits with 9 [14:40:32]New connection [14:40:32]New thread 3066723684 created [14:40:32]Thread 3066580324 joined [14:40:32]Waiting for new connection... [14:40:32] Sock 9.Parse request [14:40:32]Sock 9.Check first char [14:40:32]Sock 9.First char is OK [14:40:32]request: POST /json_proto HTTP/1.0 [14:40:32]Method: POST [14:40:32]URL: /json_proto [14:40:32]Method is POST - this is cgi request [14:40:32]url: /json_proto [14:40:32]query_string will be loaded in cgi processing [14:40:32]execute_cgi json_proto POST (null) [14:40:32]execute_cgi path=json_proto method=POST [14:40:32]POST find Content-Length [14:40:32]Host: 172.17.37.4:8080 [14:40:32]Content-Length: 682 [14:40:32]Content-Type: application/json [14:40:32] [14:40:32]POST finish read [14:40:32]Found Content-Length = 682 [14:40:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 17.810, "sum" : 1200.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:32]execute_script... [14:40:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 17.810, "sum" : 1200.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:32]POST & json_proto [14:40:32]process_json_proto [14:40:32]json parsed OK: [14:40:32]protocol is kg_v1.0 [14:40:32]action value=close_receipt [14:40:32]process_action close_receipt [14:40:32]cmd_close_receipt [14:40:32]MH_GetDate [14:40:32]Write to MH i2c: F0 00 00 CB 60 1A [14:40:32]Write i2c OK [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: F0 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: F0 09 00 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: F0 09 00 CB 60 00 EB DD 45 67 B8 5A 43 67 53 [14:40:32]GetLastDocTimeStamp 1732631878 [14:40:32]current date 1732632043 [14:40:32]FM_GetShiftState [14:40:32]SAM_PROTO_GetShiftState [14:40:32]wFMCommunicate request_size=4 [14:40:32]MH_SAM_APDU [14:40:32]CAPDU: 80 13 01 00 [14:40:32]Write to MH i2c: E2 08 00 CC 60 80 13 01 00 00 00 00 00 A9 [14:40:32]Write i2c OK [14:40:32]MH_I2C_Read... [14:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:32]Read from MH i2c: E2 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 0E 00 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 0E 00 CC 60 00 09 00 01 98 11 45 67 00 00 00 00 90 00 0A [14:40:32]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:40:32]wFMCommunicate OK [14:40:32]SAM_PROTO_GetShiftState done [14:40:32]FM_GetShiftState done [14:40:32]opened in 1732579736 [14:40:32]opened+sec_in_day 1732666136 [14:40:32]quantity*price = 120039 [14:40:32]sum+1 = 120040 [14:40:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.47 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 88 26.11.2024 14:40 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123234 ФПД: 23123317179749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T144043&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123234&fm=23123317179749&tin=02508201610067®Number=0000000000092681&sum=120000 [14:40:33]StoreToDocumentArchive [14:40:33]shift 557 fd 123234 [14:40:33]save to /storage/0557/doc_00123234 [14:40:33]save last doc name /storage/0557/doc_00123234 to /storage/kkm_last_doc_name [14:40:33]save OK [14:40:33]Clear old archive folders... [14:40:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:33]tlvbuf is B6EA2350 [14:40:33]SAM_PROTO_ClearQueue [14:40:33]wFMCommunicate request_size=4 [14:40:33]MH_SAM_APDU [14:40:33]CAPDU: 80 09 00 00 [14:40:33]Write to MH i2c: E2 08 00 D9 60 80 09 00 00 00 00 00 00 AB [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:33]Read from MH i2c: E2 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 03 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 03 00 D9 60 00 90 00 AD [14:40:33]RAPDU: 90 00 [14:40:33]wFMCommunicate OK [14:40:33]SAM_PROTO_ClearQueue done [14:40:33]KKMCreateOFDPacket [14:40:33]OFDProtocolAddRootSTLVToBuf [14:40:33]FM_MakeSignedData [14:40:33]FM_MakeSignedData [14:40:33]SAM_PROTO_SignData [14:40:33]wFMCommunicate request_size=4 [14:40:33]MH_SAM_APDU [14:40:33]CAPDU: 80 0D 01 02 [14:40:33]Write to MH i2c: E2 08 00 DA 60 80 0D 01 02 00 00 00 00 B3 [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:33]Read from MH i2c: E2 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 03 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 03 00 DA 60 00 90 00 AE [14:40:33]RAPDU: 90 00 [14:40:33]wFMCommunicate OK [14:40:33]wFMCommunicate request_size=255 [14:40:33]MH_SAM_APDU [14:40:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 45 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 E7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 EB DD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 62 E1 01 00 35 04 06 00 15 [14:40:33]Write to MH i2c: E2 02 01 DB 60 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 34 FF 03 08 00 03 92 45 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 E7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 EB DD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 62 E1 01 00 35 04 06 00 15 00 00 66 [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:33]Read from MH i2c: E2 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 03 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 03 00 DB 60 00 90 00 AF [14:40:33]RAPDU: 90 00 [14:40:33]wFMCommunicate OK [14:40:33]wFMCommunicate request_size=10 [14:40:33]MH_SAM_APDU [14:40:33]CAPDU: 80 0D 02 02 05 07 D1 1B 45 65 [14:40:33]Write to MH i2c: E2 0D 00 DC 60 80 0D 02 02 05 00 07 D1 1B 45 65 00 00 5D [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:33]Read from MH i2c: E2 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 03 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 03 00 DC 60 00 90 00 B0 [14:40:33]RAPDU: 90 00 [14:40:33]wFMCommunicate OK [14:40:33]wFMCommunicate request_size=4 [14:40:33]MH_SAM_APDU [14:40:33]CAPDU: 80 0D 03 02 [14:40:33]Write to MH i2c: E2 08 00 DD 60 80 0D 03 02 00 00 00 00 B8 [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:33]Read from MH i2c: E2 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 0B 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 0B 00 DD 60 00 B7 B2 9F 37 BE 21 A7 83 90 00 01 [14:40:33]RAPDU: B7 B2 9F 37 BE 21 A7 83 90 00 [14:40:33]wFMCommunicate OK [14:40:33]SAM_PROTO_SignData done [14:40:33]FM_MakeSignedData done [14:40:33]CreateOFDProtocolMessage [14:40:33]wFMCommunicate request_size=4 [14:40:33]MH_SAM_APDU [14:40:33]CAPDU: 80 11 00 00 [14:40:33]Write to MH i2c: E2 08 00 DE 60 80 11 00 00 00 00 00 00 B8 [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:33]Read from MH i2c: E2 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 17 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: E2 17 00 DE 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0F [14:40:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:40:33]wFMCommunicate OK [14:40:33]CreateOFDProtocolMessage done [14:40:33]OFDSenderStorePacket 123234 [14:40:33]StoreOFDPacket docnum=123234 [14:40:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 A8 EC 07 01 03 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 45 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 E7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 EB DD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 62 E1 01 00 35 04 06 00 15 07 D1 1B 45 65 B7 B2 9F 37 BE 21 A7 83 [14:40:33]CheckFolder [14:40:33]dirname=/storage/ofd_packets [14:40:33]CheckFolder done [14:40:33]ProducePacketName [14:40:33]name=ofd_packets/00123234 [14:40:33]NVStorageSaveData ofd_packets/00123234 [14:40:33]File name is /storage/ofd_packets/00123234 [14:40:33]Write 301 bytes [14:40:33]NVStorageSaveData done [14:40:33]OFDSenderStorePacket done [14:40:33]KKMCreateOFDPacket done [14:40:33]NVStorageSaveData kkm_last_timestamp [14:40:33]File name is /storage/kkm_last_timestamp [14:40:33]Write 4 bytes [14:40:33]NVStorageSaveData done [14:40:33]ExternCall_PrintAddStr [14:40:33]wPrintStart [14:40:33]Write to MH i2c: 01 00 00 DF 60 3F [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: 01 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: 01 07 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: 01 07 00 DF 60 00 00 00 00 00 FF 0F 54 [14:40:33]RasterBufferAndPrint [14:40:33]line Счет N : (1)718068 [14:40:33]line ИНН: 02508201610067 [14:40:33]line Контрольно-Кассовый Чек [14:40:33]line ПРОДАЖА [14:40:33]line ТРК (МРК, ГНК) : 22 [14:40:33]line Товар: 2710124130 [14:40:33]line Аи-92-К-4 [14:40:33]line 17.810 * 67.40 [14:40:33]line = 1200.39 [14:40:33]line НДС 12% НСП 1% [14:40:33]line > о реализуемом товаре [14:40:33]line ОКРУГЛЕНИЕ: -0.39 [14:40:33]line ИТОГО: 1200.00 [14:40:33]line Внесено: 1200.00 [14:40:33]line СДАЧА: 0.00 [14:40:33]line НСП 1% : 10.62 [14:40:33]line НДС 12% : 127.47 [14:40:33]line Наличными: 1200.00 [14:40:33]line Безнал.: 0.00 [14:40:33]line Место: АЗС № 64 "Партнер Нефть" [14:40:33]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:40:33]line СНО: Общий режим [14:40:33]line Чек 88 26.11.2024 14:40 [14:40:33]line Смена: 557 ФФД: 1.0 [14:40:33]line ЗНМ: 0300000033 [14:40:33]line РНМ: 0000000000092681 [14:40:33]line Версия ККМ: 001 [14:40:33]line ФМ: 0000000000874881 [14:40:33]line ФД: 123234 [14:40:33]line ФПД: 23123317179749 [14:40:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T144043&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123234&fm=23123317179749&tin=02508201610067®Number=0000000000092681&sum=120000 [14:40:34]OFD Sender: Processing packet 123234 [packets to send 7, broken 6] [14:40:34]ProducePacketName [14:40:34]name=ofd_packets/00123234 [14:40:34]OFD Sender: To server: pG, [14:40:34]CommunicateWithHost lk.salyk.kg:30040 [14:40:34]ConnectInit lk.salyk.kg [14:40:34]written 0, free lines is 4095 [14:40:34]Connected sock=10 [14:40:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 A8 EC 07 01 03 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 45 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 E7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 EB DD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 62 E1 01 00 35 04 06 00 15 07 D1 1B 45 65 B7 B2 9F 37 BE 21 A7 83 [14:40:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 2A 7F 47 00 D3 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 62 E1 01 00 F4 03 04 00 AD 89 45 67 B6 04 01 00 00 D5 E5 AD 24 29 06 5D 63 [14:40:34]CommunicateWithHost err = 0 [14:40:34]CheckOFDResponse [14:40:34]1017 (14) - 77093643461234 [14:40:34]1041 (16) - 0000000000874881 [14:40:34]1040 (4) - 123234 [14:40:34]1012 (4) - 26.11.2024 08:41 [14:40:34]1206 (1) - 0 [14:40:34]OFD Sender: Remove packet 123234 [14:40:34]ProducePacketName [14:40:34]name=ofd_packets/00123234 [14:40:34]NVStorageDeleteData [14:40:34]Write to MH i2c: 01 00 00 0A 61 6B [14:40:34]Write i2c OK [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: 01 [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: 01 07 00 [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: 01 07 00 0A 61 00 00 00 00 00 43 0C C1 [14:40:34]RasterBufferAndPrint [14:40:34]line [14:40:34]line [14:40:34]line [14:40:34]line [14:40:34]line [14:40:34]written 0, free lines is 3145 [14:40:34]MH_Cut [14:40:34]Write to MH i2c: D1 01 00 11 61 01 44 [14:40:34]Write i2c OK [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: D1 [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: D1 01 00 [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: D1 01 00 11 61 00 43 [14:40:34]Write to MH i2c: 01 00 00 12 61 73 [14:40:34]Write i2c OK [14:40:34]MH_I2C_Read... [14:40:34]OFD Sender: No OFD packet to send [14:40:35]*** Cut start [14:40:35]*** Partial cut [14:40:35]*** CUTSNS_PIN = 1 [14:40:35]*** CUTSNS_PIN = 0 [14:40:36]*** Brake cut motor [14:40:36]Read from MH i2c: 01 [14:40:36]MH_I2C_Read... [14:40:36]*** Stop cut motor [14:40:36]*** Cut end [14:40:36]Read from MH i2c: 01 07 00 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: 01 07 00 12 61 00 00 00 00 00 FF 0F 88 [14:40:36]process_action close_receipt done [14:40:36]requested_data is exist [14:40:36]produce_requested_data [14:40:36]requested_item fm.sn is exist - process it [14:40:36]wFMCommunicate request_size=4 [14:40:36]MH_SAM_APDU [14:40:36]CAPDU: 80 11 00 00 [14:40:36]Write to MH i2c: E2 08 00 13 61 80 11 00 00 00 00 00 00 EE [14:40:36]Write i2c OK [14:40:36]MH_I2C_Read... [14:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:36]Read from MH i2c: E2 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: E2 17 00 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: E2 17 00 13 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 45 [14:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:40:36]wFMCommunicate OK [14:40:36]requested_item fd.num is exist - process it [14:40:36]SAM_PROTO_GetFieldsCounters [14:40:36]wFMCommunicate request_size=4 [14:40:36]MH_SAM_APDU [14:40:36]CAPDU: 80 13 00 00 [14:40:36]Write to MH i2c: E2 08 00 14 61 80 13 00 00 00 00 00 00 F1 [14:40:36]Write i2c OK [14:40:36]MH_I2C_Read... [14:40:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:36]Read from MH i2c: E2 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: E2 62 00 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: E2 62 00 14 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 62 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [14:40:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 62 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:36]wFMCommunicate OK [14:40:36]SAM_PROTO_GetFieldsCounters done [14:40:36]requested_item shift.num is exist - process it [14:40:36]requested_item shift.opened is exist - process it [14:40:36]req_shift_opened [14:40:36]FM_GetShiftState [14:40:36]SAM_PROTO_GetShiftState [14:40:36]wFMCommunicate request_size=4 [14:40:36]MH_SAM_APDU [14:40:36]CAPDU: 80 13 01 00 [14:40:36]Write to MH i2c: E2 08 00 15 61 80 13 01 00 00 00 00 00 F3 [14:40:36]Write i2c OK [14:40:36]MH_I2C_Read... [14:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:36]Read from MH i2c: E2 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: E2 0E 00 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: E2 0E 00 15 61 00 09 00 01 98 11 45 67 00 00 00 00 90 00 54 [14:40:36]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:40:36]wFMCommunicate OK [14:40:36]SAM_PROTO_GetShiftState done [14:40:36]FM_GetShiftState done [14:40:36]req_shift_opened done [14:40:36]requested_item shift.open_date is exist - process it [14:40:36]req_shift_open_date [14:40:36]req_shift_open_date done [14:40:36]produce_requested_data done [14:40:36]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123234,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [14:40:36]process_action_free close_receipt [14:40:36]json_value_free [14:40:36]json_value_free done [14:40:36]process_json_proto returns [14:40:36]Send response to host [14:40:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123234,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [14:40:36]free response buf [14:40:36]execute_script done [14:40:36]execute_script returns [14:40:36]free content buf [14:40:36]Sock 9.Close socket [14:40:36]Sock 9.Thread stoped [14:40:37]accept exits with 7 [14:40:37]New connection [14:40:37]New thread 3066580324 created [14:40:37]Thread 3066723684 joined [14:40:37]Waiting for new connection... [14:40:37] Sock 7.Parse request [14:40:37]Sock 7.Check first char [14:40:37]Sock 7.First char is OK [14:40:37]request: POST /json_proto HTTP/1.0 [14:40:37]Method: POST [14:40:37]URL: /json_proto [14:40:37]Method is POST - this is cgi request [14:40:37]url: /json_proto [14:40:37]query_string will be loaded in cgi processing [14:40:37]execute_cgi json_proto POST (null) [14:40:37]execute_cgi path=json_proto method=POST [14:40:37]POST find Content-Length [14:40:37]Host: 172.17.37.4:8080 [14:40:37]Content-Length: 800 [14:40:37]Content-Type: application/json [14:40:37] [14:40:37]POST finish read [14:40:37]Found Content-Length = 800 [14:40:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "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" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:37]execute_script... [14:40:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "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" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:37]POST & json_proto [14:40:37]process_json_proto [14:40:37]json parsed OK: [14:40:37]protocol is kg_v1.0 [14:40:37]action value=close_receipt [14:40:37]process_action close_receipt [14:40:37]cmd_close_receipt [14:40:37]MH_GetDate [14:40:37]Write to MH i2c: F0 00 00 16 61 66 [14:40:37]Write i2c OK [14:40:37]MH_I2C_Read... [14:40:37]Read from MH i2c: F0 [14:40:37]MH_I2C_Read... [14:40:37]Read from MH i2c: F0 09 00 [14:40:37]MH_I2C_Read... [14:40:37]Read from MH i2c: F0 09 00 16 61 00 F0 DD 45 67 B8 5A 43 67 A4 [14:40:37]GetLastDocTimeStamp 1732632043 [14:40:37]current date 1732632048 [14:40:37]FM_GetShiftState [14:40:37]SAM_PROTO_GetShiftState [14:40:37]wFMCommunicate request_size=4 [14:40:37]MH_SAM_APDU [14:40:37]CAPDU: 80 13 01 00 [14:40:37]Write to MH i2c: E2 08 00 17 61 80 13 01 00 00 00 00 00 F5 [14:40:37]Write i2c OK [14:40:37]MH_I2C_Read... [14:40:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:37]Read from MH i2c: E2 [14:40:37]MH_I2C_Read... [14:40:37]Read from MH i2c: E2 0E 00 [14:40:37]MH_I2C_Read... [14:40:37]Read from MH i2c: E2 0E 00 17 61 00 09 00 01 98 11 45 67 00 00 00 00 90 00 56 [14:40:37]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:40:37]wFMCommunicate OK [14:40:37]SAM_PROTO_GetShiftState done [14:40:37]FM_GetShiftState done [14:40:37]opened in 1732579736 [14:40:37]opened+sec_in_day 1732666136 [14:40:37]quantity*price = 50010 [14:40:37]sum+1 = 50012 [14:40:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 89 26.11.2024 14:40 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123235 ФПД: 189688944371635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T144048&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123235&fm=189688944371635&tin=02508201610067®Number=0000000000092681&sum=50011 [14:40:38]StoreToDocumentArchive [14:40:38]shift 557 fd 123235 [14:40:38]save to /storage/0557/doc_00123235 [14:40:38]save last doc name /storage/0557/doc_00123235 to /storage/kkm_last_doc_name [14:40:38]save OK [14:40:38]Clear old archive folders... [14:40:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:38]tlvbuf is 02068740 [14:40:38]SAM_PROTO_ClearQueue [14:40:38]wFMCommunicate request_size=4 [14:40:38]MH_SAM_APDU [14:40:38]CAPDU: 80 09 00 00 [14:40:38]Write to MH i2c: E2 08 00 24 61 80 09 00 00 00 00 00 00 F7 [14:40:38]Write i2c OK [14:40:38]MH_I2C_Read... [14:40:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:38]Read from MH i2c: E2 [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: E2 03 00 [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: E2 03 00 24 61 00 90 00 F9 [14:40:38]RAPDU: 90 00 [14:40:38]wFMCommunicate OK [14:40:38]SAM_PROTO_ClearQueue done [14:40:38]KKMCreateOFDPacket [14:40:38]OFDProtocolAddRootSTLVToBuf [14:40:38]FM_MakeSignedData [14:40:38]FM_MakeSignedData [14:40:38]SAM_PROTO_SignData [14:40:38]wFMCommunicate request_size=4 [14:40:38]MH_SAM_APDU [14:40:38]CAPDU: 80 0D 01 02 [14:40:38]Write to MH i2c: E2 08 00 25 61 80 0D 01 02 00 00 00 00 FF [14:40:38]Write i2c OK [14:40:38]MH_I2C_Read... [14:40:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:38]Read from MH i2c: E2 [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: E2 03 00 [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: E2 03 00 25 61 00 90 00 FA [14:40:38]RAPDU: 90 00 [14:40:38]wFMCommunicate OK [14:40:38]wFMCommunicate request_size=255 [14:40:38]MH_SAM_APDU [14:40:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 F0 DD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 63 E1 01 00 35 04 06 00 AC [14:40:38]Write to MH i2c: E2 02 01 26 61 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 F0 DD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 63 E1 01 00 35 04 06 00 AC 00 00 6E [14:40:38]Write i2c OK [14:40:38]MH_I2C_Read... [14:40:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:38]Read from MH i2c: E2 [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: E2 03 00 [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: E2 03 00 26 61 00 90 00 FB [14:40:38]RAPDU: 90 00 [14:40:38]wFMCommunicate OK [14:40:38]wFMCommunicate request_size=10 [14:40:38]MH_SAM_APDU [14:40:38]CAPDU: 80 0D 02 02 05 85 66 25 A7 B3 [14:40:38]Write to MH i2c: E2 0D 00 27 61 80 0D 02 02 05 00 85 66 25 A7 B3 00 00 76 [14:40:38]Write i2c OK [14:40:38]MH_I2C_Read... [14:40:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:39]Read from MH i2c: E2 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 03 00 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 03 00 27 61 00 90 00 FC [14:40:39]RAPDU: 90 00 [14:40:39]wFMCommunicate OK [14:40:39]wFMCommunicate request_size=4 [14:40:39]MH_SAM_APDU [14:40:39]CAPDU: 80 0D 03 02 [14:40:39]Write to MH i2c: E2 08 00 28 61 80 0D 03 02 00 00 00 00 04 [14:40:39]Write i2c OK [14:40:39]MH_I2C_Read... [14:40:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:39]Read from MH i2c: E2 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 0B 00 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 0B 00 28 61 00 7F 6B 60 6E BC 58 7B 06 90 00 52 [14:40:39]RAPDU: 7F 6B 60 6E BC 58 7B 06 90 00 [14:40:39]wFMCommunicate OK [14:40:39]SAM_PROTO_SignData done [14:40:39]FM_MakeSignedData done [14:40:39]CreateOFDProtocolMessage [14:40:39]wFMCommunicate request_size=4 [14:40:39]MH_SAM_APDU [14:40:39]CAPDU: 80 11 00 00 [14:40:39]Write to MH i2c: E2 08 00 29 61 80 11 00 00 00 00 00 00 04 [14:40:39]Write i2c OK [14:40:39]MH_I2C_Read... [14:40:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:39]Read from MH i2c: E2 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 17 00 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 17 00 29 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5B [14:40:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:40:39]wFMCommunicate OK [14:40:39]CreateOFDProtocolMessage done [14:40:39]OFDSenderStorePacket 123235 [14:40:39]StoreOFDPacket docnum=123235 [14:40:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 8A D6 07 01 2B BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 F0 DD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 63 E1 01 00 35 04 06 00 AC 85 66 25 A7 B3 7F 6B 60 6E BC 58 7B 06 [14:40:39]CheckFolder [14:40:39]dirname=/storage/ofd_packets [14:40:39]CheckFolder done [14:40:39]ProducePacketName [14:40:39]name=ofd_packets/00123235 [14:40:39]NVStorageSaveData ofd_packets/00123235 [14:40:39]File name is /storage/ofd_packets/00123235 [14:40:39]Write 301 bytes [14:40:39]NVStorageSaveData done [14:40:39]OFDSenderStorePacket done [14:40:39]KKMCreateOFDPacket done [14:40:39]NVStorageSaveData kkm_last_timestamp [14:40:39]File name is /storage/kkm_last_timestamp [14:40:39]Write 4 bytes [14:40:39]NVStorageSaveData done [14:40:39]ExternCall_PrintAddStr [14:40:39]wPrintStart [14:40:39]Write to MH i2c: 01 00 00 2A 61 8B [14:40:39]Write i2c OK [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: 01 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: 01 07 00 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: 01 07 00 2A 61 00 00 00 00 00 FF 0F A0 [14:40:39]RasterBufferAndPrint [14:40:39]line Счет N : (1)718067 [14:40:39]line ИНН: 02508201610067 [14:40:39]line Контрольно-Кассовый Чек [14:40:39]line ПРОДАЖА [14:40:39]line ТРК (МРК, ГНК) : 42 [14:40:39]line Товар: 2710124130 [14:40:39]line Аи-92-К-4 [14:40:39]line 7.420 * 67.40 [14:40:39]line = 500.11 [14:40:39]line НДС 12% НСП 1% [14:40:39]line > о реализуемом товаре [14:40:39]line ИТОГО: 500.11 [14:40:39]line НСП 1% : 4.43 [14:40:39]line НДС 12% : 53.11 [14:40:39]line Наличными: 0.00 [14:40:39]line Безнал.: 500.11 [14:40:39]line Место: АЗС № 64 "Партнер Нефть" [14:40:39]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:40:39]line СНО: Общий режим [14:40:39]line Чек 89 26.11.2024 14:40 [14:40:39]line Смена: 557 ФФД: 1.0 [14:40:39]line ЗНМ: 0300000033 [14:40:39]line РНМ: 0000000000092681 [14:40:39]line Версия ККМ: 001 [14:40:39]line Платежная система: O! деньги [14:40:39]line ФМ: 0000000000874881 [14:40:39]line ФД: 123235 [14:40:39]line ФПД: 189688944371635 [14:40:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T144048&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123235&fm=189688944371635&tin=02508201610067®Number=0000000000092681&sum=50011 [14:40:39]OFD Sender: Processing packet 123235 [packets to send 7, broken 6] [14:40:39]ProducePacketName [14:40:39]name=ofd_packets/00123235 [14:40:39]OFD Sender: To server: pG, [14:40:39]CommunicateWithHost lk.salyk.kg:30040 [14:40:39]ConnectInit lk.salyk.kg [14:40:39]written 0, free lines is 4095 [14:40:39]Connected sock=10 [14:40:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 8A D6 07 01 2B BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 F0 DD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 63 E1 01 00 35 04 06 00 AC 85 66 25 A7 B3 7F 6B 60 6E BC 58 7B 06 [14:40:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 B5 19 47 00 08 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 63 E1 01 00 F4 03 04 00 B2 89 45 67 B6 04 01 00 00 24 46 AF BA 0D F8 C4 5E [14:40:39]CommunicateWithHost err = 0 [14:40:39]CheckOFDResponse [14:40:39]1017 (14) - 77093643461234 [14:40:39]1041 (16) - 0000000000874881 [14:40:39]1040 (4) - 123235 [14:40:39]1012 (4) - 26.11.2024 08:41 [14:40:39]1206 (1) - 0 [14:40:39]OFD Sender: Remove packet 123235 [14:40:39]ProducePacketName [14:40:39]name=ofd_packets/00123235 [14:40:39]NVStorageDeleteData [14:40:39]Write to MH i2c: 01 00 00 54 61 B5 [14:40:39]Write i2c OK [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: 01 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: 01 07 00 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: 01 07 00 54 61 00 00 00 00 00 68 0C 30 [14:40:39]RasterBufferAndPrint [14:40:39]line [14:40:39]line [14:40:39]line [14:40:39]line [14:40:39]line [14:40:39]written 0, free lines is 3184 [14:40:39]MH_Cut [14:40:39]Write to MH i2c: D1 01 00 5B 61 01 8E [14:40:39]Write i2c OK [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: D1 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: D1 01 00 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: D1 01 00 5B 61 00 8D [14:40:39]Write to MH i2c: 01 00 00 5C 61 BD [14:40:39]Write i2c OK [14:40:39]MH_I2C_Read... [14:40:40]OFD Sender: No OFD packet to send [14:40:41]*** Cut start [14:40:41]*** Partial cut [14:40:41]*** CUTSNS_PIN = 1 [14:40:41]*** CUTSNS_PIN = 0 [14:40:41]*** Brake cut motor [14:40:41]Read from MH i2c: 01 [14:40:41]MH_I2C_Read... [14:40:41]*** Stop cut motor [14:40:41]*** Cut end [14:40:41]Read from MH i2c: 01 07 00 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: 01 07 00 5C 61 00 00 00 00 00 FF 0F D2 [14:40:41]process_action close_receipt done [14:40:41]requested_data is exist [14:40:41]produce_requested_data [14:40:41]requested_item fm.sn is exist - process it [14:40:41]wFMCommunicate request_size=4 [14:40:41]MH_SAM_APDU [14:40:41]CAPDU: 80 11 00 00 [14:40:41]Write to MH i2c: E2 08 00 5D 61 80 11 00 00 00 00 00 00 38 [14:40:41]Write i2c OK [14:40:41]MH_I2C_Read... [14:40:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:41]Read from MH i2c: E2 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: E2 17 00 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: E2 17 00 5D 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8F [14:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:40:41]wFMCommunicate OK [14:40:41]requested_item fd.num is exist - process it [14:40:41]SAM_PROTO_GetFieldsCounters [14:40:41]wFMCommunicate request_size=4 [14:40:41]MH_SAM_APDU [14:40:41]CAPDU: 80 13 00 00 [14:40:41]Write to MH i2c: E2 08 00 5E 61 80 13 00 00 00 00 00 00 3B [14:40:41]Write i2c OK [14:40:41]MH_I2C_Read... [14:40:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:42]Read from MH i2c: E2 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 62 00 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 62 00 5E 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 63 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [14:40:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 63 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:42]wFMCommunicate OK [14:40:42]SAM_PROTO_GetFieldsCounters done [14:40:42]requested_item shift.num is exist - process it [14:40:42]requested_item shift.opened is exist - process it [14:40:42]req_shift_opened [14:40:42]FM_GetShiftState [14:40:42]SAM_PROTO_GetShiftState [14:40:42]wFMCommunicate request_size=4 [14:40:42]MH_SAM_APDU [14:40:42]CAPDU: 80 13 01 00 [14:40:42]Write to MH i2c: E2 08 00 5F 61 80 13 01 00 00 00 00 00 3D [14:40:42]Write i2c OK [14:40:42]MH_I2C_Read... [14:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:42]Read from MH i2c: E2 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 0E 00 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 0E 00 5F 61 00 09 00 01 98 11 45 67 00 00 00 00 90 00 9E [14:40:42]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:40:42]wFMCommunicate OK [14:40:42]SAM_PROTO_GetShiftState done [14:40:42]FM_GetShiftState done [14:40:42]req_shift_opened done [14:40:42]requested_item shift.open_date is exist - process it [14:40:42]req_shift_open_date [14:40:42]req_shift_open_date done [14:40:42]produce_requested_data done [14:40:42]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123235,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [14:40:42]process_action_free close_receipt [14:40:42]json_value_free [14:40:42]json_value_free done [14:40:42]process_json_proto returns [14:40:42]Send response to host [14:40:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123235,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [14:40:42]free response buf [14:40:42]execute_script done [14:40:42]execute_script returns [14:40:42]free content buf [14:40:42]Sock 7.Close socket [14:40:42]Sock 7.Thread stoped [14:40:42]accept exits with 9 [14:40:42]New connection [14:40:42]New thread 3066723684 created [14:40:42]Thread 3066580324 joined [14:40:42]Waiting for new connection... [14:40:42] Sock 9.Parse request [14:40:42]Sock 9.Check first char [14:40:42]Sock 9.First char is OK [14:40:42]request: POST /json_proto HTTP/1.0 [14:40:42]Method: POST [14:40:42]URL: /json_proto [14:40:42]Method is POST - this is cgi request [14:40:42]url: /json_proto [14:40:42]query_string will be loaded in cgi processing [14:40:42]execute_cgi json_proto POST (null) [14:40:42]execute_cgi path=json_proto method=POST [14:40:42]POST find Content-Length [14:40:42]Host: 172.17.37.4:8080 [14:40:42]Content-Length: 739 [14:40:42]Content-Type: application/json [14:40:42] [14:40:42]POST finish read [14:40:42]Found Content-Length = 739 [14:40:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123234, "base_FM": "0000000000874881", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 17.810, "sum" : 1200.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:42]execute_script... [14:40:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123234, "base_FM": "0000000000874881", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 17.810, "sum" : 1200.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:42]POST & json_proto [14:40:42]process_json_proto [14:40:42]json parsed OK: [14:40:42]protocol is kg_v1.0 [14:40:42]action value=close_receipt [14:40:42]process_action close_receipt [14:40:42]cmd_close_receipt [14:40:42]MH_GetDate [14:40:42]Write to MH i2c: F0 00 00 60 61 B0 [14:40:42]Write i2c OK [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: F0 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: F0 09 00 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: F0 09 00 60 61 00 F5 DD 45 67 B8 5A 43 67 F3 [14:40:42]GetLastDocTimeStamp 1732632048 [14:40:42]current date 1732632053 [14:40:42]FM_GetShiftState [14:40:42]SAM_PROTO_GetShiftState [14:40:42]wFMCommunicate request_size=4 [14:40:42]MH_SAM_APDU [14:40:42]CAPDU: 80 13 01 00 [14:40:42]Write to MH i2c: E2 08 00 61 61 80 13 01 00 00 00 00 00 3F [14:40:42]Write i2c OK [14:40:42]MH_I2C_Read... [14:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:42]Read from MH i2c: E2 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 0E 00 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 0E 00 61 61 00 09 00 01 98 11 45 67 00 00 00 00 90 00 A0 [14:40:42]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:40:42]wFMCommunicate OK [14:40:42]SAM_PROTO_GetShiftState done [14:40:42]FM_GetShiftState done [14:40:42]opened in 1732579736 [14:40:42]opened+sec_in_day 1732666136 [14:40:42]quantity*price = 120039 [14:40:42]sum+1 = 120040 [14:40:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 1200.00 НСП 1% : 10.62 НДС 12% : 127.47 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 90 26.11.2024 14:40 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФД осн.: 123234 ФМ осн.: 0000000000874881 ФМ: 0000000000874881 ФД: 123236 ФПД: 72263863405773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T144053&type=2&operation_type=1&fn_number=0000000000874881&fd_number=123236&fm=72263863405773&tin=02508201610067®Number=0000000000092681&sum=120000 [14:40:43]StoreToDocumentArchive [14:40:43]shift 557 fd 123236 [14:40:43]save to /storage/0557/doc_00123236 [14:40:43]save last doc name /storage/0557/doc_00123236 to /storage/kkm_last_doc_name [14:40:43]save OK [14:40:43]Clear old archive folders... [14:40:43]ProcessDocumentItem done err = 0, tmpTLVsize=279 [14:40:43]tlvbuf is B6D70730 [14:40:43]SAM_PROTO_ClearQueue [14:40:43]wFMCommunicate request_size=4 [14:40:43]MH_SAM_APDU [14:40:43]CAPDU: 80 09 00 00 [14:40:43]Write to MH i2c: E2 08 00 70 61 80 09 00 00 00 00 00 00 43 [14:40:43]Write i2c OK [14:40:43]MH_I2C_Read... [14:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:44]Read from MH i2c: E2 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 03 00 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 03 00 70 61 00 90 00 45 [14:40:44]RAPDU: 90 00 [14:40:44]wFMCommunicate OK [14:40:44]SAM_PROTO_ClearQueue done [14:40:44]KKMCreateOFDPacket [14:40:44]OFDProtocolAddRootSTLVToBuf [14:40:44]FM_MakeSignedData [14:40:44]FM_MakeSignedData [14:40:44]SAM_PROTO_SignData [14:40:44]wFMCommunicate request_size=4 [14:40:44]MH_SAM_APDU [14:40:44]CAPDU: 80 0D 01 02 [14:40:44]Write to MH i2c: E2 08 00 71 61 80 0D 01 02 00 00 00 00 4B [14:40:44]Write i2c OK [14:40:44]MH_I2C_Read... [14:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:44]Read from MH i2c: E2 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 03 00 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 03 00 71 61 00 90 00 46 [14:40:44]RAPDU: 90 00 [14:40:44]wFMCommunicate OK [14:40:44]wFMCommunicate request_size=255 [14:40:44]MH_SAM_APDU [14:40:44]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 45 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 E7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F5 DD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 62 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 [14:40:44]Write to MH i2c: E2 02 01 72 61 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 45 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 E7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F5 DD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 62 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 00 00 57 [14:40:44]Write i2c OK [14:40:44]MH_I2C_Read... [14:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:44]Read from MH i2c: E2 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 03 00 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 03 00 72 61 00 90 00 47 [14:40:44]RAPDU: 90 00 [14:40:44]wFMCommunicate OK [14:40:44]wFMCommunicate request_size=38 [14:40:44]MH_SAM_APDU [14:40:44]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 64 E1 01 00 35 04 06 00 41 B9 3D E8 8C CD [14:40:44]Write to MH i2c: E2 29 00 73 61 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 64 E1 01 00 35 04 06 00 41 B9 3D E8 8C CD 00 00 99 [14:40:44]Write i2c OK [14:40:44]MH_I2C_Read... [14:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:44]Read from MH i2c: E2 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 03 00 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 03 00 73 61 00 90 00 48 [14:40:44]RAPDU: 90 00 [14:40:44]wFMCommunicate OK [14:40:44]wFMCommunicate request_size=4 [14:40:44]MH_SAM_APDU [14:40:44]CAPDU: 80 0D 03 02 [14:40:44]Write to MH i2c: E2 08 00 74 61 80 0D 03 02 00 00 00 00 50 [14:40:44]Write i2c OK [14:40:44]MH_I2C_Read... [14:40:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:44]Read from MH i2c: E2 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 0B 00 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 0B 00 74 61 00 22 37 1B C0 A1 CC 01 16 90 00 09 [14:40:44]RAPDU: 22 37 1B C0 A1 CC 01 16 90 00 [14:40:44]wFMCommunicate OK [14:40:44]SAM_PROTO_SignData done [14:40:44]FM_MakeSignedData done [14:40:44]CreateOFDProtocolMessage [14:40:44]wFMCommunicate request_size=4 [14:40:44]MH_SAM_APDU [14:40:44]CAPDU: 80 11 00 00 [14:40:44]Write to MH i2c: E2 08 00 75 61 80 11 00 00 00 00 00 00 50 [14:40:44]Write i2c OK [14:40:44]MH_I2C_Read... [14:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:44]Read from MH i2c: E2 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 17 00 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 17 00 75 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A7 [14:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:40:44]wFMCommunicate OK [14:40:44]CreateOFDProtocolMessage done [14:40:44]OFDSenderStorePacket 123236 [14:40:44]StoreOFDPacket docnum=123236 [14:40:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 2B 01 00 00 F4 97 23 01 B0 23 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 45 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 E7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F5 DD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 62 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 64 E1 01 00 35 04 06 00 41 B9 3D E8 8C CD 22 37 1B C0 A1 CC 01 16 [14:40:44]CheckFolder [14:40:44]dirname=/storage/ofd_packets [14:40:44]CheckFolder done [14:40:44]ProducePacketName [14:40:44]name=ofd_packets/00123236 [14:40:44]NVStorageSaveData ofd_packets/00123236 [14:40:44]File name is /storage/ofd_packets/00123236 [14:40:44]Write 329 bytes [14:40:44]NVStorageSaveData done [14:40:44]OFDSenderStorePacket done [14:40:44]KKMCreateOFDPacket done [14:40:44]NVStorageSaveData kkm_last_timestamp [14:40:44]File name is /storage/kkm_last_timestamp [14:40:44]Write 4 bytes [14:40:44]NVStorageSaveData done [14:40:44]ExternCall_PrintAddStr [14:40:44]wPrintStart [14:40:44]Write to MH i2c: 01 00 00 76 61 D7 [14:40:44]Write i2c OK [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: 01 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: 01 07 00 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: 01 07 00 76 61 00 00 00 00 00 FF 0F EC [14:40:44]RasterBufferAndPrint [14:40:44]line Счет N : (1)718068 [14:40:44]line ИНН: 02508201610067 [14:40:44]line Контрольно-Кассовый Чек [14:40:44]line ВОЗВРАТ ПРОДАЖИ [14:40:44]line ТРК (МРК, ГНК) : 22 [14:40:44]line Товар: 2710124130 [14:40:44]line Аи-92-К-4 [14:40:44]line 17.810 * 67.40 [14:40:44]line = 1200.39 [14:40:44]line НДС 12% НСП 1% [14:40:44]line > о реализуемом товаре [14:40:44]line ОКРУГЛЕНИЕ: -0.39 [14:40:44]line ИТОГО: 1200.00 [14:40:44]line НСП 1% : 10.62 [14:40:44]line НДС 12% : 127.47 [14:40:44]line Наличными: 1200.00 [14:40:44]line Безнал.: 0.00 [14:40:44]line Место: АЗС № 64 "Партнер Нефть" [14:40:44]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:40:44]line СНО: Общий режим [14:40:44]line Чек 90 26.11.2024 14:40 [14:40:44]line Смена: 557 ФФД: 1.0 [14:40:44]line ЗНМ: 0300000033 [14:40:44]line РНМ: 0000000000092681 [14:40:44]line Версия ККМ: 001 [14:40:44]line ФД осн.: 123234 [14:40:44]line ФМ осн.: 0000000000874881 [14:40:44]line ФМ: 0000000000874881 [14:40:44]line ФД: 123236 [14:40:44]line ФПД: 72263863405773 [14:40:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T144053&type=2&operation_type=1&fn_number=0000000000874881&fd_number=123236&fm=72263863405773&tin=02508201610067®Number=0000000000092681&sum=120000 [14:40:44]written 0, free lines is 4095 [14:40:44]OFD Sender: Processing packet 123236 [packets to send 7, broken 6] [14:40:44]ProducePacketName [14:40:44]name=ofd_packets/00123236 [14:40:44]OFD Sender: To server: pG, [14:40:44]CommunicateWithHost lk.salyk.kg:30040 [14:40:44]ConnectInit lk.salyk.kg [14:40:44]Connected sock=10 [14:40:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 2B 01 00 00 F4 97 23 01 B0 23 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 45 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 E7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F5 DD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 62 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 64 E1 01 00 35 04 06 00 41 B9 3D E8 8C CD 22 37 1B C0 A1 CC 01 16 [14:40:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 AA E8 47 00 45 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 64 E1 01 00 F4 03 04 00 B8 89 45 67 B6 04 01 00 00 ED 22 99 E3 F4 75 83 02 [14:40:45]CommunicateWithHost err = 0 [14:40:45]CheckOFDResponse [14:40:45]1017 (14) - 77093643461234 [14:40:45]1041 (16) - 0000000000874881 [14:40:45]1040 (4) - 123236 [14:40:45]1012 (4) - 26.11.2024 08:41 [14:40:45]1206 (1) - 0 [14:40:45]OFD Sender: Remove packet 123236 [14:40:45]ProducePacketName [14:40:45]name=ofd_packets/00123236 [14:40:45]NVStorageDeleteData [14:40:45]Write to MH i2c: 01 00 00 A1 61 02 [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: 01 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: 01 07 00 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: 01 07 00 A1 61 00 00 00 00 00 67 0C 7C [14:40:45]RasterBufferAndPrint [14:40:45]line [14:40:45]line [14:40:45]line [14:40:45]line [14:40:45]line [14:40:45]written 0, free lines is 3187 [14:40:45]MH_Cut [14:40:45]Write to MH i2c: D1 01 00 A8 61 01 DB [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: D1 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: D1 01 00 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: D1 01 00 A8 61 00 DA [14:40:45]Write to MH i2c: 01 00 00 A9 61 0A [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:45]OFD Sender: No OFD packet to send [14:40:46]*** Cut start [14:40:46]*** Partial cut [14:40:46]*** CUTSNS_PIN = 1 [14:40:46]*** CUTSNS_PIN = 0 [14:40:46]*** Brake cut motor [14:40:47]Read from MH i2c: 01 [14:40:47]MH_I2C_Read... [14:40:47]*** Stop cut motor [14:40:47]*** Cut end [14:40:47]Read from MH i2c: 01 07 00 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: 01 07 00 A9 61 00 00 00 00 00 FF 0F 1F [14:40:47]process_action close_receipt done [14:40:47]requested_data is exist [14:40:47]produce_requested_data [14:40:47]requested_item fm.sn is exist - process it [14:40:47]wFMCommunicate request_size=4 [14:40:47]MH_SAM_APDU [14:40:47]CAPDU: 80 11 00 00 [14:40:47]Write to MH i2c: E2 08 00 AA 61 80 11 00 00 00 00 00 00 85 [14:40:47]Write i2c OK [14:40:47]MH_I2C_Read... [14:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:47]Read from MH i2c: E2 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: E2 17 00 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: E2 17 00 AA 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DC [14:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:40:47]wFMCommunicate OK [14:40:47]requested_item fd.num is exist - process it [14:40:47]SAM_PROTO_GetFieldsCounters [14:40:47]wFMCommunicate request_size=4 [14:40:47]MH_SAM_APDU [14:40:47]CAPDU: 80 13 00 00 [14:40:47]Write to MH i2c: E2 08 00 AB 61 80 13 00 00 00 00 00 00 88 [14:40:47]Write i2c OK [14:40:47]MH_I2C_Read... [14:40:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:47]Read from MH i2c: E2 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: E2 62 00 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: E2 62 00 AB 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 64 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [14:40:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 64 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:47]wFMCommunicate OK [14:40:47]SAM_PROTO_GetFieldsCounters done [14:40:47]requested_item shift.num is exist - process it [14:40:47]requested_item shift.opened is exist - process it [14:40:47]req_shift_opened [14:40:47]FM_GetShiftState [14:40:47]SAM_PROTO_GetShiftState [14:40:47]wFMCommunicate request_size=4 [14:40:47]MH_SAM_APDU [14:40:47]CAPDU: 80 13 01 00 [14:40:47]Write to MH i2c: E2 08 00 AC 61 80 13 01 00 00 00 00 00 8A [14:40:47]Write i2c OK [14:40:47]MH_I2C_Read... [14:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:47]Read from MH i2c: E2 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: E2 0E 00 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: E2 0E 00 AC 61 00 09 00 01 98 11 45 67 00 00 00 00 90 00 EB [14:40:47]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:40:47]wFMCommunicate OK [14:40:47]SAM_PROTO_GetShiftState done [14:40:47]FM_GetShiftState done [14:40:47]req_shift_opened done [14:40:47]requested_item shift.open_date is exist - process it [14:40:47]req_shift_open_date [14:40:47]req_shift_open_date done [14:40:47]produce_requested_data done [14:40:47]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123236,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [14:40:47]process_action_free close_receipt [14:40:47]json_value_free [14:40:47]json_value_free done [14:40:47]process_json_proto returns [14:40:47]Send response to host [14:40:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123236,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [14:40:47]free response buf [14:40:47]execute_script done [14:40:47]execute_script returns [14:40:47]free content buf [14:40:47]Sock 9.Close socket [14:40:47]Sock 9.Thread stoped [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:10]accept exits with 7 [14:41:10]New connection [14:41:10]New thread 3066580324 created [14:41:10]Thread 3066723684 joined [14:41:10]Waiting for new connection... [14:41:10] Sock 7.Parse request [14:41:10]Sock 7.Check first char [14:41:10]Sock 7.First char is OK [14:41:10]request: POST /json_proto HTTP/1.0 [14:41:10]Method: POST [14:41:10]URL: /json_proto [14:41:10]Method is POST - this is cgi request [14:41:10]url: /json_proto [14:41:10]query_string will be loaded in cgi processing [14:41:10]execute_cgi json_proto POST (null) [14:41:10]execute_cgi path=json_proto method=POST [14:41:10]POST find Content-Length [14:41:10]Host: 172.17.37.4:8080 [14:41:10]Content-Length: 792 [14:41:10]Content-Type: application/json [14:41:10] [14:41:10]POST finish read [14:41:10]Found Content-Length = 792 [14:41:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53046", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:10]execute_script... [14:41:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53046", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:10]POST & json_proto [14:41:10]process_json_proto [14:41:10]json parsed OK: [14:41:10]protocol is kg_v1.0 [14:41:10]action value=close_receipt [14:41:10]process_action close_receipt [14:41:10]cmd_close_receipt [14:41:10]MH_GetDate [14:41:10]Write to MH i2c: F0 00 00 AD 61 FD [14:41:10]Write i2c OK [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: F0 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: F0 09 00 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: F0 09 00 AD 61 00 11 DE 45 67 B8 5A 43 67 5D [14:41:10]GetLastDocTimeStamp 1732632053 [14:41:10]current date 1732632081 [14:41:10]FM_GetShiftState [14:41:10]SAM_PROTO_GetShiftState [14:41:10]wFMCommunicate request_size=4 [14:41:10]MH_SAM_APDU [14:41:10]CAPDU: 80 13 01 00 [14:41:10]Write to MH i2c: E2 08 00 AE 61 80 13 01 00 00 00 00 00 8C [14:41:10]Write i2c OK [14:41:10]MH_I2C_Read... [14:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:10]Read from MH i2c: E2 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: E2 0E 00 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: E2 0E 00 AE 61 00 09 00 01 98 11 45 67 00 00 00 00 90 00 ED [14:41:10]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:41:10]wFMCommunicate OK [14:41:10]SAM_PROTO_GetShiftState done [14:41:10]FM_GetShiftState done [14:41:10]opened in 1732579736 [14:41:10]opened+sec_in_day 1732666136 [14:41:10]quantity*price = 0 [14:41:10]sum+1 = 1 [14:41:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 91 26.11.2024 14:41 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 53046 ФМ: 0000000000874881 ФД: 123237 ФПД: 27177685774378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T144121&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123237&fm=27177685774378&tin=02508201610067®Number=0000000000092681&sum=0 [14:41:12]StoreToDocumentArchive [14:41:12]shift 557 fd 123237 [14:41:12]save to /storage/0557/doc_00123237 [14:41:12]save last doc name /storage/0557/doc_00123237 to /storage/kkm_last_doc_name [14:41:12]save OK [14:41:12]Clear old archive folders... [14:41:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:12]tlvbuf is B6F20EF0 [14:41:12]SAM_PROTO_ClearQueue [14:41:12]wFMCommunicate request_size=4 [14:41:12]MH_SAM_APDU [14:41:12]CAPDU: 80 09 00 00 [14:41:12]Write to MH i2c: E2 08 00 BB 61 80 09 00 00 00 00 00 00 8E [14:41:12]Write i2c OK [14:41:12]MH_I2C_Read... [14:41:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:12]Read from MH i2c: E2 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 03 00 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 03 00 BB 61 00 90 00 90 [14:41:12]RAPDU: 90 00 [14:41:12]wFMCommunicate OK [14:41:12]SAM_PROTO_ClearQueue done [14:41:12]KKMCreateOFDPacket [14:41:12]OFDProtocolAddRootSTLVToBuf [14:41:12]FM_MakeSignedData [14:41:12]FM_MakeSignedData [14:41:12]SAM_PROTO_SignData [14:41:12]wFMCommunicate request_size=4 [14:41:12]MH_SAM_APDU [14:41:12]CAPDU: 80 0D 01 02 [14:41:12]Write to MH i2c: E2 08 00 BC 61 80 0D 01 02 00 00 00 00 96 [14:41:12]Write i2c OK [14:41:12]MH_I2C_Read... [14:41:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:12]Read from MH i2c: E2 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 03 00 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 03 00 BC 61 00 90 00 91 [14:41:12]RAPDU: 90 00 [14:41:12]wFMCommunicate OK [14:41:12]wFMCommunicate request_size=255 [14:41:12]MH_SAM_APDU [14:41:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 11 DE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 65 E1 01 00 35 04 06 00 18 [14:41:12]Write to MH i2c: E2 02 01 BD 61 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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 11 DE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 65 E1 01 00 35 04 06 00 18 00 00 CD [14:41:12]Write i2c OK [14:41:12]MH_I2C_Read... [14:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:12]Read from MH i2c: E2 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 03 00 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 03 00 BD 61 00 90 00 92 [14:41:12]RAPDU: 90 00 [14:41:12]wFMCommunicate OK [14:41:12]wFMCommunicate request_size=10 [14:41:12]MH_SAM_APDU [14:41:12]CAPDU: 80 0D 02 02 05 B7 CC 4E 70 2A [14:41:12]Write to MH i2c: E2 0D 00 BE 61 80 0D 02 02 05 00 B7 CC 4E 70 2A 00 00 0E [14:41:12]Write i2c OK [14:41:12]MH_I2C_Read... [14:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:12]Read from MH i2c: E2 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 03 00 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 03 00 BE 61 00 90 00 93 [14:41:12]RAPDU: 90 00 [14:41:12]wFMCommunicate OK [14:41:12]wFMCommunicate request_size=4 [14:41:12]MH_SAM_APDU [14:41:12]CAPDU: 80 0D 03 02 [14:41:12]Write to MH i2c: E2 08 00 BF 61 80 0D 03 02 00 00 00 00 9B [14:41:12]Write i2c OK [14:41:12]MH_I2C_Read... [14:41:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:12]Read from MH i2c: E2 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 0B 00 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 0B 00 BF 61 00 0C FF A0 02 05 0D 0A E8 90 00 4D [14:41:12]RAPDU: 0C FF A0 02 05 0D 0A E8 90 00 [14:41:12]wFMCommunicate OK [14:41:12]SAM_PROTO_SignData done [14:41:12]FM_MakeSignedData done [14:41:12]CreateOFDProtocolMessage [14:41:12]wFMCommunicate request_size=4 [14:41:12]MH_SAM_APDU [14:41:12]CAPDU: 80 11 00 00 [14:41:12]Write to MH i2c: E2 08 00 C0 61 80 11 00 00 00 00 00 00 9B [14:41:12]Write i2c OK [14:41:12]MH_I2C_Read... [14:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:12]Read from MH i2c: E2 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 17 00 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 17 00 C0 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F2 [14:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:41:12]wFMCommunicate OK [14:41:12]CreateOFDProtocolMessage done [14:41:12]OFDSenderStorePacket 123237 [14:41:12]StoreOFDPacket docnum=123237 [14:41:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3C 9C 07 01 91 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 11 DE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 65 E1 01 00 35 04 06 00 18 B7 CC 4E 70 2A 0C FF A0 02 05 0D 0A E8 [14:41:12]CheckFolder [14:41:12]dirname=/storage/ofd_packets [14:41:12]CheckFolder done [14:41:12]ProducePacketName [14:41:12]name=ofd_packets/00123237 [14:41:12]NVStorageSaveData ofd_packets/00123237 [14:41:12]File name is /storage/ofd_packets/00123237 [14:41:12]Write 301 bytes [14:41:12]NVStorageSaveData done [14:41:12]OFDSenderStorePacket done [14:41:12]KKMCreateOFDPacket done [14:41:12]NVStorageSaveData kkm_last_timestamp [14:41:12]File name is /storage/kkm_last_timestamp [14:41:12]Write 4 bytes [14:41:12]NVStorageSaveData done [14:41:12]ExternCall_PrintAddStr [14:41:12]wPrintStart [14:41:12]Write to MH i2c: 01 00 00 C1 61 22 [14:41:12]OFD Sender: Processing packet 123237 [packets to send 7, broken 6] [14:41:12]ProducePacketName [14:41:12]name=ofd_packets/00123237 [14:41:12]OFD Sender: To server: pG, [14:41:12]CommunicateWithHost lk.salyk.kg:30040 [14:41:12]ConnectInit lk.salyk.kg [14:41:12]Write i2c OK [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: 01 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: 01 07 00 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: 01 07 00 C1 61 00 00 00 00 00 FF 0F 37 [14:41:12]RasterBufferAndPrint [14:41:12]line Счет N : (1)718066 [14:41:12]line ИНН: 02508201610067 [14:41:12]line Контрольно-Кассовый Чек [14:41:12]line ПРОДАЖА [14:41:12]line ТРК (МРК, ГНК) : 32 [14:41:12]line Товар: 2710124130 [14:41:12]line Аи-92-К-4 [14:41:12]line 30.000 * 0.00 [14:41:12]line = 0.00 [14:41:12]line НДС 12% НСП 1% [14:41:12]line > о реализуемом товаре [14:41:12]line ИТОГО: 0.00 [14:41:12]line НСП 1% : 0.00 [14:41:12]line НДС 12% : 0.00 [14:41:12]line Наличными: 0.00 [14:41:12]line Безнал.: 0.00 [14:41:12]line Место: АЗС № 64 "Партнер Нефть" [14:41:12]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:41:12]line СНО: Общий режим [14:41:12]line Чек 91 26.11.2024 14:41 [14:41:12]line Смена: 557 ФФД: 1.0 [14:41:12]line ЗНМ: 0300000033 [14:41:12]line РНМ: 0000000000092681 [14:41:12]line Версия ККМ: 001 [14:41:12]line Талоны: Топливная Карта [14:41:12]line 53046 [14:41:12]line ФМ: 0000000000874881 [14:41:12]line ФД: 123237 [14:41:12]line ФПД: 27177685774378 [14:41:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T144121&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123237&fm=27177685774378&tin=02508201610067®Number=0000000000092681&sum=0 [14:41:12]written 0, free lines is 4095 [14:41:12]Connected sock=10 [14:41:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3C 9C 07 01 91 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 11 DE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 65 E1 01 00 35 04 06 00 18 B7 CC 4E 70 2A 0C FF A0 02 05 0D 0A E8 [14:41:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 AB 5B 47 00 BD C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 65 E1 01 00 F4 03 04 00 D3 89 45 67 B6 04 01 00 00 BB 89 62 C2 C5 6B 96 9A [14:41:12]CommunicateWithHost err = 0 [14:41:12]CheckOFDResponse [14:41:12]1017 (14) - 77093643461234 [14:41:12]1041 (16) - 0000000000874881 [14:41:12]1040 (4) - 123237 [14:41:12]1012 (4) - 26.11.2024 08:41 [14:41:12]1206 (1) - 0 [14:41:12]OFD Sender: Remove packet 123237 [14:41:12]ProducePacketName [14:41:12]name=ofd_packets/00123237 [14:41:12]NVStorageDeleteData [14:41:13]Write to MH i2c: 01 00 00 EB 61 4C [14:41:13]Write i2c OK [14:41:13]MH_I2C_Read... [14:41:13]Read from MH i2c: 01 [14:41:13]MH_I2C_Read... [14:41:13]Read from MH i2c: 01 07 00 [14:41:13]MH_I2C_Read... [14:41:13]Read from MH i2c: 01 07 00 EB 61 00 00 00 00 00 71 0C D0 [14:41:13]RasterBufferAndPrint [14:41:13]line [14:41:13]line [14:41:13]line [14:41:13]line [14:41:13]line [14:41:13]written 0, free lines is 3197 [14:41:13]MH_Cut [14:41:13]Write to MH i2c: D1 01 00 F2 61 01 25 [14:41:13]Write i2c OK [14:41:13]MH_I2C_Read... [14:41:13]Read from MH i2c: D1 [14:41:13]MH_I2C_Read... [14:41:13]Read from MH i2c: D1 01 00 [14:41:13]MH_I2C_Read... [14:41:13]Read from MH i2c: D1 01 00 F2 61 00 24 [14:41:13]Write to MH i2c: 01 00 00 F3 61 54 [14:41:13]Write i2c OK [14:41:13]MH_I2C_Read... [14:41:13]OFD Sender: No OFD packet to send [14:41:14]*** Cut start [14:41:14]*** Partial cut [14:41:14]*** CUTSNS_PIN = 1 [14:41:14]*** CUTSNS_PIN = 0 [14:41:14]*** Brake cut motor [14:41:14]Read from MH i2c: 01 [14:41:14]MH_I2C_Read... [14:41:14]*** Stop cut motor [14:41:15]*** Cut end [14:41:15]Read from MH i2c: 01 07 00 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: 01 07 00 F3 61 00 00 00 00 00 FF 0F 69 [14:41:15]process_action close_receipt done [14:41:15]requested_data is exist [14:41:15]produce_requested_data [14:41:15]requested_item fm.sn is exist - process it [14:41:15]wFMCommunicate request_size=4 [14:41:15]MH_SAM_APDU [14:41:15]CAPDU: 80 11 00 00 [14:41:15]Write to MH i2c: E2 08 00 F4 61 80 11 00 00 00 00 00 00 CF [14:41:15]Write i2c OK [14:41:15]MH_I2C_Read... [14:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:15]Read from MH i2c: E2 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 17 00 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 17 00 F4 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 26 [14:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:41:15]wFMCommunicate OK [14:41:15]requested_item fd.num is exist - process it [14:41:15]SAM_PROTO_GetFieldsCounters [14:41:15]wFMCommunicate request_size=4 [14:41:15]MH_SAM_APDU [14:41:15]CAPDU: 80 13 00 00 [14:41:15]Write to MH i2c: E2 08 00 F5 61 80 13 00 00 00 00 00 00 D2 [14:41:15]Write i2c OK [14:41:15]MH_I2C_Read... [14:41:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:15]Read from MH i2c: E2 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 62 00 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 62 00 F5 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 65 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [14:41:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 65 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:15]wFMCommunicate OK [14:41:15]SAM_PROTO_GetFieldsCounters done [14:41:15]requested_item shift.num is exist - process it [14:41:15]requested_item shift.opened is exist - process it [14:41:15]req_shift_opened [14:41:15]FM_GetShiftState [14:41:15]SAM_PROTO_GetShiftState [14:41:15]wFMCommunicate request_size=4 [14:41:15]MH_SAM_APDU [14:41:15]CAPDU: 80 13 01 00 [14:41:15]Write to MH i2c: E2 08 00 F6 61 80 13 01 00 00 00 00 00 D4 [14:41:15]Write i2c OK [14:41:15]MH_I2C_Read... [14:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:15]Read from MH i2c: E2 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 0E 00 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 0E 00 F6 61 00 09 00 01 98 11 45 67 00 00 00 00 90 00 35 [14:41:15]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:41:15]wFMCommunicate OK [14:41:15]SAM_PROTO_GetShiftState done [14:41:15]FM_GetShiftState done [14:41:15]req_shift_opened done [14:41:15]requested_item shift.open_date is exist - process it [14:41:15]req_shift_open_date [14:41:15]req_shift_open_date done [14:41:15]produce_requested_data done [14:41:15]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123237,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [14:41:15]process_action_free close_receipt [14:41:15]json_value_free [14:41:15]json_value_free done [14:41:15]process_json_proto returns [14:41:15]Send response to host [14:41:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123237,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [14:41:15]free response buf [14:41:15]execute_script done [14:41:15]execute_script returns [14:41:15]free content buf [14:41:15]Sock 7.Close socket [14:41:15]Sock 7.Thread stoped [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:28]OFD Sender: No OFD packet to send [14:41:33]OFD Sender: No OFD packet to send [14:41:38]OFD Sender: No OFD packet to send [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:32]accept exits with 9 [14:44:32]New connection [14:44:32]New thread 3066723684 created [14:44:32]Thread 3066580324 joined [14:44:32]Waiting for new connection... [14:44:32] Sock 9.Parse request [14:44:32]Sock 9.Check first char [14:44:32]Sock 9.First char is OK [14:44:32]request: POST /json_proto HTTP/1.0 [14:44:32]Method: POST [14:44:32]URL: /json_proto [14:44:32]Method is POST - this is cgi request [14:44:32]url: /json_proto [14:44:32]query_string will be loaded in cgi processing [14:44:32]execute_cgi json_proto POST (null) [14:44:32]execute_cgi path=json_proto method=POST [14:44:32]POST find Content-Length [14:44:32]Host: 172.17.37.4:8080 [14:44:32]Content-Length: 758 [14:44:32]Content-Type: application/json [14:44:32] [14:44:32]POST finish read [14:44:32]Found Content-Length = 758 [14:44:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30036711", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:32]execute_script... [14:44:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30036711", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:32]POST & json_proto [14:44:32]process_json_proto [14:44:32]json parsed OK: [14:44:32]protocol is kg_v1.0 [14:44:32]action value=close_receipt [14:44:32]process_action close_receipt [14:44:32]cmd_close_receipt [14:44:32]MH_GetDate [14:44:32]Write to MH i2c: F0 00 00 F7 61 47 [14:44:32]Write i2c OK [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: F0 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: F0 09 00 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: F0 09 00 F7 61 00 DB DE 45 67 B8 5A 43 67 71 [14:44:32]GetLastDocTimeStamp 1732632081 [14:44:32]current date 1732632283 [14:44:32]FM_GetShiftState [14:44:32]SAM_PROTO_GetShiftState [14:44:32]wFMCommunicate request_size=4 [14:44:32]MH_SAM_APDU [14:44:32]CAPDU: 80 13 01 00 [14:44:32]Write to MH i2c: E2 08 00 F8 61 80 13 01 00 00 00 00 00 D6 [14:44:32]Write i2c OK [14:44:32]MH_I2C_Read... [14:44:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:32]Read from MH i2c: E2 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: E2 0E 00 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: E2 0E 00 F8 61 00 09 00 01 98 11 45 67 00 00 00 00 90 00 37 [14:44:32]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:44:32]wFMCommunicate OK [14:44:32]SAM_PROTO_GetShiftState done [14:44:32]FM_GetShiftState done [14:44:32]opened in 1732579736 [14:44:32]opened+sec_in_day 1732666136 [14:44:32]quantity*price = 0 [14:44:32]sum+1 = 1 [14:44:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 92 26.11.2024 14:44 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: ТК ГПНА Online 30036711 ФМ: 0000000000874881 ФД: 123238 ФПД: 211531085917474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T144443&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123238&fm=211531085917474&tin=02508201610067®Number=0000000000092681&sum=0 [14:44:33]StoreToDocumentArchive [14:44:33]shift 557 fd 123238 [14:44:33]save to /storage/0557/doc_00123238 [14:44:33]save last doc name /storage/0557/doc_00123238 to /storage/kkm_last_doc_name [14:44:33]save OK [14:44:33]Clear old archive folders... [14:44:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:44:33]tlvbuf is 01F93600 [14:44:33]SAM_PROTO_ClearQueue [14:44:33]wFMCommunicate request_size=4 [14:44:33]MH_SAM_APDU [14:44:33]CAPDU: 80 09 00 00 [14:44:33]Write to MH i2c: E2 08 00 05 62 80 09 00 00 00 00 00 00 D9 [14:44:33]Write i2c OK [14:44:33]MH_I2C_Read... [14:44:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:33]Read from MH i2c: E2 [14:44:33]MH_I2C_Read... [14:44:33]Read from MH i2c: E2 03 00 [14:44:33]MH_I2C_Read... [14:44:33]Read from MH i2c: E2 03 00 05 62 00 90 00 DB [14:44:33]RAPDU: 90 00 [14:44:33]wFMCommunicate OK [14:44:33]SAM_PROTO_ClearQueue done [14:44:33]KKMCreateOFDPacket [14:44:33]OFDProtocolAddRootSTLVToBuf [14:44:33]FM_MakeSignedData [14:44:33]FM_MakeSignedData [14:44:33]SAM_PROTO_SignData [14:44:33]wFMCommunicate request_size=4 [14:44:33]MH_SAM_APDU [14:44:33]CAPDU: 80 0D 01 02 [14:44:33]Write to MH i2c: E2 08 00 06 62 80 0D 01 02 00 00 00 00 E1 [14:44:33]Write i2c OK [14:44:33]MH_I2C_Read... [14:44:33]OFD Sender: No OFD packet to send [14:44:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:33]Read from MH i2c: E2 [14:44:33]MH_I2C_Read... [14:44:33]Read from MH i2c: E2 03 00 [14:44:33]MH_I2C_Read... [14:44:33]Read from MH i2c: E2 03 00 06 62 00 90 00 DC [14:44:33]RAPDU: 90 00 [14:44:33]wFMCommunicate OK [14:44:33]wFMCommunicate request_size=255 [14:44:33]MH_SAM_APDU [14:44:33]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 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 DB DE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 66 E1 01 00 35 04 06 00 [14:44:33]Write to MH i2c: E2 02 01 07 62 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 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 DB DE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 66 E1 01 00 35 04 06 00 00 00 D1 [14:44:33]Write i2c OK [14:44:33]MH_I2C_Read... [14:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:34]Read from MH i2c: E2 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: E2 03 00 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: E2 03 00 07 62 00 90 00 DD [14:44:34]RAPDU: 90 00 [14:44:34]wFMCommunicate OK [14:44:34]wFMCommunicate request_size=11 [14:44:34]MH_SAM_APDU [14:44:34]CAPDU: 80 0D 02 02 06 C0 62 EB 3C 2D 22 [14:44:34]Write to MH i2c: E2 0E 00 08 62 80 0D 02 02 06 00 C0 62 EB 3C 2D 22 00 00 88 [14:44:34]Write i2c OK [14:44:34]MH_I2C_Read... [14:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:34]Read from MH i2c: E2 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: E2 03 00 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: E2 03 00 08 62 00 90 00 DE [14:44:34]RAPDU: 90 00 [14:44:34]wFMCommunicate OK [14:44:34]wFMCommunicate request_size=4 [14:44:34]MH_SAM_APDU [14:44:34]CAPDU: 80 0D 03 02 [14:44:34]Write to MH i2c: E2 08 00 09 62 80 0D 03 02 00 00 00 00 E6 [14:44:34]Write i2c OK [14:44:34]MH_I2C_Read... [14:44:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:34]Read from MH i2c: E2 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: E2 0B 00 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: E2 0B 00 09 62 00 30 05 F1 41 9C 41 62 34 90 00 C1 [14:44:34]RAPDU: 30 05 F1 41 9C 41 62 34 90 00 [14:44:34]wFMCommunicate OK [14:44:34]SAM_PROTO_SignData done [14:44:34]FM_MakeSignedData done [14:44:34]CreateOFDProtocolMessage [14:44:34]wFMCommunicate request_size=4 [14:44:34]MH_SAM_APDU [14:44:34]CAPDU: 80 11 00 00 [14:44:34]Write to MH i2c: E2 08 00 0A 62 80 11 00 00 00 00 00 00 E6 [14:44:34]Write i2c OK [14:44:34]MH_I2C_Read... [14:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:34]Read from MH i2c: E2 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: E2 17 00 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: E2 17 00 0A 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3D [14:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:44:34]wFMCommunicate OK [14:44:34]CreateOFDProtocolMessage done [14:44:34]OFDSenderStorePacket 123238 [14:44:34]StoreOFDPacket docnum=123238 [14:44:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 86 7E 08 01 D8 6B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 DB DE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 66 E1 01 00 35 04 06 00 C0 62 EB 3C 2D 22 30 05 F1 41 9C 41 62 34 [14:44:34]CheckFolder [14:44:34]dirname=/storage/ofd_packets [14:44:34]CheckFolder done [14:44:34]ProducePacketName [14:44:34]name=ofd_packets/00123238 [14:44:34]NVStorageSaveData ofd_packets/00123238 [14:44:34]File name is /storage/ofd_packets/00123238 [14:44:34]Write 302 bytes [14:44:34]NVStorageSaveData done [14:44:34]OFDSenderStorePacket done [14:44:34]KKMCreateOFDPacket done [14:44:34]NVStorageSaveData kkm_last_timestamp [14:44:34]File name is /storage/kkm_last_timestamp [14:44:34]Write 4 bytes [14:44:34]NVStorageSaveData done [14:44:34]ExternCall_PrintAddStr [14:44:34]wPrintStart [14:44:34]Write to MH i2c: 01 00 00 0B 62 6D [14:44:34]Write i2c OK [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: 01 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: 01 07 00 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: 01 07 00 0B 62 00 00 00 00 00 FF 0F 82 [14:44:34]RasterBufferAndPrint [14:44:34]line Счет N : (1)718069 [14:44:34]line ИНН: 02508201610067 [14:44:34]line Контрольно-Кассовый Чек [14:44:34]line ПРОДАЖА [14:44:34]line ТРК (МРК, ГНК) : 5 [14:44:34]line Товар: 2710194210 [14:44:34]line ДТ(л)-К-5 [14:44:34]line 20.000 * 0.00 [14:44:34]line = 0.00 [14:44:34]line НДС 12% НСП 1% [14:44:34]line > о реализуемом товаре [14:44:34]line ИТОГО: 0.00 [14:44:34]line НСП 1% : 0.00 [14:44:34]line НДС 12% : 0.00 [14:44:34]line Наличными: 0.00 [14:44:34]line Безнал.: 0.00 [14:44:34]line Место: АЗС № 64 "Партнер Нефть" [14:44:34]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:44:34]line СНО: Общий режим [14:44:34]line Чек 92 26.11.2024 14:44 [14:44:34]line Смена: 557 ФФД: 1.0 [14:44:34]line ЗНМ: 0300000033 [14:44:34]line РНМ: 0000000000092681 [14:44:34]line Версия ККМ: 001 [14:44:34]line Талоны: ТК ГПНА Online [14:44:34]line 30036711 [14:44:34]line ФМ: 0000000000874881 [14:44:34]line ФД: 123238 [14:44:34]line ФПД: 211531085917474 [14:44:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T144443&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123238&fm=211531085917474&tin=02508201610067®Number=0000000000092681&sum=0 [14:44:34]written 0, free lines is 4095 [14:44:34]OFD Sender: Processing packet 123238 [packets to send 7, broken 6] [14:44:34]ProducePacketName [14:44:34]name=ofd_packets/00123238 [14:44:34]OFD Sender: To server: pG, [14:44:34]CommunicateWithHost lk.salyk.kg:30040 [14:44:34]ConnectInit lk.salyk.kg [14:44:34]Connected sock=11 [14:44:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 86 7E 08 01 D8 6B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 DB DE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 66 E1 01 00 35 04 06 00 C0 62 EB 3C 2D 22 30 05 F1 41 9C 41 62 34 [14:44:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 E1 12 47 00 82 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 66 E1 01 00 F4 03 04 00 9D 8A 45 67 B6 04 01 00 00 EB 06 B9 E9 C7 AC 19 27 [14:44:34]CommunicateWithHost err = 0 [14:44:34]CheckOFDResponse [14:44:34]1017 (14) - 77093643461234 [14:44:34]1041 (16) - 0000000000874881 [14:44:34]1040 (4) - 123238 [14:44:34]1012 (4) - 26.11.2024 08:45 [14:44:34]1206 (1) - 0 [14:44:34]OFD Sender: Remove packet 123238 [14:44:34]ProducePacketName [14:44:34]name=ofd_packets/00123238 [14:44:34]NVStorageDeleteData [14:44:34]Write to MH i2c: 01 00 00 35 62 97 [14:44:34]Write i2c OK [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: 01 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: 01 07 00 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: 01 07 00 35 62 00 00 00 00 00 60 0C 0A [14:44:34]RasterBufferAndPrint [14:44:34]line [14:44:34]line [14:44:34]line [14:44:34]line [14:44:34]line [14:44:34]written 0, free lines is 3172 [14:44:34]MH_Cut [14:44:34]Write to MH i2c: D1 01 00 3C 62 01 70 [14:44:34]Write i2c OK [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: D1 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: D1 01 00 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: D1 01 00 3C 62 00 6F [14:44:34]Write to MH i2c: 01 00 00 3D 62 9F [14:44:34]Write i2c OK [14:44:34]MH_I2C_Read... [14:44:34]OFD Sender: No OFD packet to send [14:44:35]*** Cut start [14:44:35]*** Partial cut [14:44:35]*** CUTSNS_PIN = 1 [14:44:35]*** CUTSNS_PIN = 0 [14:44:36]*** Brake cut motor [14:44:36]Read from MH i2c: 01 [14:44:36]MH_I2C_Read... [14:44:36]*** Stop cut motor [14:44:36]*** Cut end [14:44:36]Read from MH i2c: 01 07 00 [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: 01 07 00 3D 62 00 00 00 00 00 FF 0F B4 [14:44:36]process_action close_receipt done [14:44:36]requested_data is exist [14:44:36]produce_requested_data [14:44:36]requested_item fm.sn is exist - process it [14:44:36]wFMCommunicate request_size=4 [14:44:36]MH_SAM_APDU [14:44:36]CAPDU: 80 11 00 00 [14:44:36]Write to MH i2c: E2 08 00 3E 62 80 11 00 00 00 00 00 00 1A [14:44:36]Write i2c OK [14:44:36]MH_I2C_Read... [14:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:36]Read from MH i2c: E2 [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: E2 17 00 [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: E2 17 00 3E 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 71 [14:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:44:36]wFMCommunicate OK [14:44:36]requested_item fd.num is exist - process it [14:44:36]SAM_PROTO_GetFieldsCounters [14:44:36]wFMCommunicate request_size=4 [14:44:36]MH_SAM_APDU [14:44:36]CAPDU: 80 13 00 00 [14:44:36]Write to MH i2c: E2 08 00 3F 62 80 13 00 00 00 00 00 00 1D [14:44:36]Write i2c OK [14:44:36]MH_I2C_Read... [14:44:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:36]Read from MH i2c: E2 [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: E2 62 00 [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: E2 62 00 3F 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 66 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [14:44:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 66 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:36]wFMCommunicate OK [14:44:36]SAM_PROTO_GetFieldsCounters done [14:44:36]requested_item shift.num is exist - process it [14:44:36]requested_item shift.opened is exist - process it [14:44:36]req_shift_opened [14:44:36]FM_GetShiftState [14:44:36]SAM_PROTO_GetShiftState [14:44:36]wFMCommunicate request_size=4 [14:44:36]MH_SAM_APDU [14:44:36]CAPDU: 80 13 01 00 [14:44:36]Write to MH i2c: E2 08 00 40 62 80 13 01 00 00 00 00 00 1F [14:44:36]Write i2c OK [14:44:36]MH_I2C_Read... [14:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:36]Read from MH i2c: E2 [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: E2 0E 00 [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: E2 0E 00 40 62 00 09 00 01 98 11 45 67 00 00 00 00 90 00 80 [14:44:36]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:44:36]wFMCommunicate OK [14:44:36]SAM_PROTO_GetShiftState done [14:44:36]FM_GetShiftState done [14:44:36]req_shift_opened done [14:44:36]requested_item shift.open_date is exist - process it [14:44:36]req_shift_open_date [14:44:36]req_shift_open_date done [14:44:36]produce_requested_data done [14:44:36]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123238,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [14:44:36]process_action_free close_receipt [14:44:36]json_value_free [14:44:36]json_value_free done [14:44:36]process_json_proto returns [14:44:36]Send response to host [14:44:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123238,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [14:44:36]free response buf [14:44:36]execute_script done [14:44:36]execute_script returns [14:44:36]free content buf [14:44:36]Sock 9.Close socket [14:44:36]Sock 9.Thread stoped [14:44:39]OFD Sender: No OFD packet to send [14:44:44]OFD Sender: No OFD packet to send [14:44:49]OFD Sender: No OFD packet to send [14:44:54]OFD Sender: No OFD packet to send [14:44:59]OFD Sender: No OFD packet to send [14:45:04]OFD Sender: No OFD packet to send [14:45:09]OFD Sender: No OFD packet to send [14:45:14]OFD Sender: No OFD packet to send [14:45:19]OFD Sender: No OFD packet to send [14:45:24]OFD Sender: No OFD packet to send [14:45:29]OFD Sender: No OFD packet to send [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:54]OFD Sender: No OFD packet to send [14:45:59]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:23]accept exits with 7 [14:47:23]New connection [14:47:23]New thread 3066580324 created [14:47:23]Thread 3066723684 joined [14:47:23]Waiting for new connection... [14:47:23] Sock 7.Parse request [14:47:23]Sock 7.Check first char [14:47:23]Sock 7.First char is OK [14:47:23]request: POST /json_proto HTTP/1.0 [14:47:23]Method: POST [14:47:23]URL: /json_proto [14:47:23]Method is POST - this is cgi request [14:47:23]url: /json_proto [14:47:23]query_string will be loaded in cgi processing [14:47:24]execute_cgi json_proto POST (null) [14:47:24]execute_cgi path=json_proto method=POST [14:47:24]POST find Content-Length [14:47:24]Host: 172.17.37.4:8080 [14:47:24]Content-Length: 677 [14:47:24]Content-Type: application/json [14:47:24] [14:47:24]POST finish read [14:47:24]Found Content-Length = 677 [14:47:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:24]execute_script... [14:47:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:24]POST & json_proto [14:47:24]process_json_proto [14:47:24]json parsed OK: [14:47:24]protocol is kg_v1.0 [14:47:24]action value=close_receipt [14:47:24]process_action close_receipt [14:47:24]cmd_close_receipt [14:47:24]MH_GetDate [14:47:24]Write to MH i2c: F0 00 00 41 62 92 [14:47:24]Write i2c OK [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: F0 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: F0 09 00 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: F0 09 00 41 62 00 87 DF 45 67 B8 5A 43 67 69 [14:47:24]GetLastDocTimeStamp 1732632283 [14:47:24]current date 1732632455 [14:47:24]FM_GetShiftState [14:47:24]SAM_PROTO_GetShiftState [14:47:24]wFMCommunicate request_size=4 [14:47:24]MH_SAM_APDU [14:47:24]CAPDU: 80 13 01 00 [14:47:24]Write to MH i2c: E2 08 00 42 62 80 13 01 00 00 00 00 00 21 [14:47:24]Write i2c OK [14:47:24]MH_I2C_Read... [14:47:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:24]Read from MH i2c: E2 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: E2 0E 00 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: E2 0E 00 42 62 00 09 00 01 98 11 45 67 00 00 00 00 90 00 82 [14:47:24]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:47:24]wFMCommunicate OK [14:47:24]SAM_PROTO_GetShiftState done [14:47:24]FM_GetShiftState done [14:47:24]opened in 1732579736 [14:47:24]opened+sec_in_day 1732666136 [14:47:24]quantity*price = 50010 [14:47:24]sum+1 = 50012 [14:47:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 93 26.11.2024 14:47 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123239 ФПД: 36806856834009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T144735&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123239&fm=36806856834009&tin=02508201610067®Number=0000000000092681&sum=50000 [14:47:25]StoreToDocumentArchive [14:47:25]shift 557 fd 123239 [14:47:25]save to /storage/0557/doc_00123239 [14:47:25]save last doc name /storage/0557/doc_00123239 to /storage/kkm_last_doc_name [14:47:25]save OK [14:47:25]Clear old archive folders... [14:47:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:25]tlvbuf is B6D70430 [14:47:25]SAM_PROTO_ClearQueue [14:47:25]wFMCommunicate request_size=4 [14:47:25]MH_SAM_APDU [14:47:25]CAPDU: 80 09 00 00 [14:47:25]Write to MH i2c: E2 08 00 4F 62 80 09 00 00 00 00 00 00 23 [14:47:25]Write i2c OK [14:47:25]MH_I2C_Read... [14:47:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:25]Read from MH i2c: E2 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: E2 03 00 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: E2 03 00 4F 62 00 90 00 25 [14:47:25]RAPDU: 90 00 [14:47:25]wFMCommunicate OK [14:47:25]SAM_PROTO_ClearQueue done [14:47:25]KKMCreateOFDPacket [14:47:25]OFDProtocolAddRootSTLVToBuf [14:47:25]FM_MakeSignedData [14:47:25]FM_MakeSignedData [14:47:25]SAM_PROTO_SignData [14:47:25]wFMCommunicate request_size=4 [14:47:25]MH_SAM_APDU [14:47:25]CAPDU: 80 0D 01 02 [14:47:25]Write to MH i2c: E2 08 00 50 62 80 0D 01 02 00 00 00 00 2B [14:47:25]Write i2c OK [14:47:25]MH_I2C_Read... [14:47:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:25]Read from MH i2c: E2 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: E2 03 00 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: E2 03 00 50 62 00 90 00 26 [14:47:25]RAPDU: 90 00 [14:47:25]wFMCommunicate OK [14:47:25]wFMCommunicate request_size=255 [14:47:25]MH_SAM_APDU [14:47:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 87 DF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 67 E1 01 00 35 04 06 00 21 [14:47:25]Write to MH i2c: E2 02 01 51 62 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 87 DF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 67 E1 01 00 35 04 06 00 21 00 00 9A [14:47:25]Write i2c OK [14:47:25]MH_I2C_Read... [14:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:25]Read from MH i2c: E2 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: E2 03 00 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: E2 03 00 51 62 00 90 00 27 [14:47:25]RAPDU: 90 00 [14:47:25]wFMCommunicate OK [14:47:25]wFMCommunicate request_size=10 [14:47:25]MH_SAM_APDU [14:47:25]CAPDU: 80 0D 02 02 05 79 C3 A0 7B D9 [14:47:25]Write to MH i2c: E2 0D 00 52 62 80 0D 02 02 05 00 79 C3 A0 7B D9 00 00 68 [14:47:25]Write i2c OK [14:47:25]MH_I2C_Read... [14:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:25]Read from MH i2c: E2 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: E2 03 00 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: E2 03 00 52 62 00 90 00 28 [14:47:25]RAPDU: 90 00 [14:47:25]wFMCommunicate OK [14:47:25]wFMCommunicate request_size=4 [14:47:25]MH_SAM_APDU [14:47:25]CAPDU: 80 0D 03 02 [14:47:25]Write to MH i2c: E2 08 00 53 62 80 0D 03 02 00 00 00 00 30 [14:47:25]Write i2c OK [14:47:25]MH_I2C_Read... [14:47:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:25]Read from MH i2c: E2 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: E2 0B 00 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: E2 0B 00 53 62 00 BE 84 4B 34 DE E2 85 E2 90 00 19 [14:47:25]RAPDU: BE 84 4B 34 DE E2 85 E2 90 00 [14:47:25]wFMCommunicate OK [14:47:25]SAM_PROTO_SignData done [14:47:25]FM_MakeSignedData done [14:47:25]CreateOFDProtocolMessage [14:47:25]wFMCommunicate request_size=4 [14:47:25]MH_SAM_APDU [14:47:25]CAPDU: 80 11 00 00 [14:47:25]Write to MH i2c: E2 08 00 54 62 80 11 00 00 00 00 00 00 30 [14:47:25]Write i2c OK [14:47:25]MH_I2C_Read... [14:47:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:25]Read from MH i2c: E2 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: E2 17 00 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: E2 17 00 54 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 87 [14:47:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:47:25]wFMCommunicate OK [14:47:25]CreateOFDProtocolMessage done [14:47:25]OFDSenderStorePacket 123239 [14:47:25]StoreOFDPacket docnum=123239 [14:47:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 21 E8 07 01 D3 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 87 DF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 67 E1 01 00 35 04 06 00 21 79 C3 A0 7B D9 BE 84 4B 34 DE E2 85 E2 [14:47:25]CheckFolder [14:47:25]dirname=/storage/ofd_packets [14:47:25]CheckFolder done [14:47:25]ProducePacketName [14:47:25]name=ofd_packets/00123239 [14:47:25]NVStorageSaveData ofd_packets/00123239 [14:47:25]File name is /storage/ofd_packets/00123239 [14:47:25]Write 301 bytes [14:47:25]NVStorageSaveData done [14:47:25]OFDSenderStorePacket done [14:47:25]KKMCreateOFDPacket done [14:47:25]NVStorageSaveData kkm_last_timestamp [14:47:25]File name is /storage/kkm_last_timestamp [14:47:25]Write 4 bytes [14:47:25]NVStorageSaveData done [14:47:25]ExternCall_PrintAddStr [14:47:25]wPrintStart [14:47:25]Write to MH i2c: 01 00 00 55 62 B7 [14:47:25]Write i2c OK [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: 01 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: 01 07 00 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: 01 07 00 55 62 00 00 00 00 00 FF 0F CC [14:47:25]RasterBufferAndPrint [14:47:25]line Счет N : (1)718070 [14:47:25]line ИНН: 02508201610067 [14:47:25]line Контрольно-Кассовый Чек [14:47:25]line ПРОДАЖА [14:47:25]line ТРК (МРК, ГНК) : 22 [14:47:25]line Товар: 2710124130 [14:47:25]line Аи-92-К-4 [14:47:25]line 7.420 * 67.40 [14:47:25]line = 500.11 [14:47:25]line НДС 12% НСП 1% [14:47:25]line > о реализуемом товаре [14:47:25]line ОКРУГЛЕНИЕ: -0.11 [14:47:25]line ИТОГО: 500.00 [14:47:25]line Внесено: 500.00 [14:47:25]line СДАЧА: 0.00 [14:47:25]line НСП 1% : 4.43 [14:47:25]line НДС 12% : 53.11 [14:47:25]line Наличными: 500.00 [14:47:25]line Безнал.: 0.00 [14:47:25]line Место: АЗС № 64 "Партнер Нефть" [14:47:25]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:47:25]line СНО: Общий режим [14:47:25]line Чек 93 26.11.2024 14:47 [14:47:25]line Смена: 557 ФФД: 1.0 [14:47:25]line ЗНМ: 0300000033 [14:47:25]line РНМ: 0000000000092681 [14:47:25]line Версия ККМ: 001 [14:47:25]line ФМ: 0000000000874881 [14:47:25]line ФД: 123239 [14:47:25]line ФПД: 36806856834009 [14:47:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T144735&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123239&fm=36806856834009&tin=02508201610067®Number=0000000000092681&sum=50000 [14:47:26]OFD Sender: Processing packet 123239 [packets to send 7, broken 6] [14:47:26]ProducePacketName [14:47:26]name=ofd_packets/00123239 [14:47:26]OFD Sender: To server: pG, [14:47:26]CommunicateWithHost lk.salyk.kg:30040 [14:47:26]ConnectInit lk.salyk.kg [14:47:26]written 0, free lines is 4095 [14:47:26]Connected sock=10 [14:47:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 21 E8 07 01 D3 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 87 DF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 67 E1 01 00 35 04 06 00 21 79 C3 A0 7B D9 BE 84 4B 34 DE E2 85 E2 [14:47:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 53 D2 47 00 82 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 67 E1 01 00 F4 03 04 00 49 8B 45 67 B6 04 01 00 00 A8 75 AC 52 1B CE 73 6F [14:47:26]CommunicateWithHost err = 0 [14:47:26]CheckOFDResponse [14:47:26]1017 (14) - 77093643461234 [14:47:26]1041 (16) - 0000000000874881 [14:47:26]1040 (4) - 123239 [14:47:26]1012 (4) - 26.11.2024 08:48 [14:47:26]1206 (1) - 0 [14:47:26]OFD Sender: Remove packet 123239 [14:47:26]ProducePacketName [14:47:26]name=ofd_packets/00123239 [14:47:26]NVStorageDeleteData [14:47:26]Write to MH i2c: 01 00 00 80 62 E2 [14:47:26]Write i2c OK [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: 01 [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: 01 07 00 [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: 01 07 00 80 62 00 00 00 00 00 48 0C 3D [14:47:26]RasterBufferAndPrint [14:47:26]line [14:47:26]line [14:47:26]line [14:47:26]line [14:47:26]line [14:47:26]written 0, free lines is 3149 [14:47:26]MH_Cut [14:47:26]Write to MH i2c: D1 01 00 87 62 01 BB [14:47:26]Write i2c OK [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: D1 [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: D1 01 00 [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: D1 01 00 87 62 00 BA [14:47:26]Write to MH i2c: 01 00 00 88 62 EA [14:47:26]Write i2c OK [14:47:26]MH_I2C_Read... [14:47:26]OFD Sender: No OFD packet to send [14:47:27]*** Cut start [14:47:27]*** Partial cut [14:47:27]*** CUTSNS_PIN = 1 [14:47:27]*** CUTSNS_PIN = 0 [14:47:28]*** Brake cut motor [14:47:28]Read from MH i2c: 01 [14:47:28]MH_I2C_Read... [14:47:28]*** Stop cut motor [14:47:28]*** Cut end [14:47:28]Read from MH i2c: 01 07 00 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: 01 07 00 88 62 00 00 00 00 00 FF 0F FF [14:47:28]process_action close_receipt done [14:47:28]requested_data is exist [14:47:28]produce_requested_data [14:47:28]requested_item fm.sn is exist - process it [14:47:28]wFMCommunicate request_size=4 [14:47:28]MH_SAM_APDU [14:47:28]CAPDU: 80 11 00 00 [14:47:28]Write to MH i2c: E2 08 00 89 62 80 11 00 00 00 00 00 00 65 [14:47:28]Write i2c OK [14:47:28]MH_I2C_Read... [14:47:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:28]Read from MH i2c: E2 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: E2 17 00 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: E2 17 00 89 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BC [14:47:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:47:28]wFMCommunicate OK [14:47:28]requested_item fd.num is exist - process it [14:47:28]SAM_PROTO_GetFieldsCounters [14:47:28]wFMCommunicate request_size=4 [14:47:28]MH_SAM_APDU [14:47:28]CAPDU: 80 13 00 00 [14:47:28]Write to MH i2c: E2 08 00 8A 62 80 13 00 00 00 00 00 00 68 [14:47:28]Write i2c OK [14:47:28]MH_I2C_Read... [14:47:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:28]Read from MH i2c: E2 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: E2 62 00 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: E2 62 00 8A 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 67 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [14:47:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 67 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:28]wFMCommunicate OK [14:47:28]SAM_PROTO_GetFieldsCounters done [14:47:28]requested_item shift.num is exist - process it [14:47:28]requested_item shift.opened is exist - process it [14:47:28]req_shift_opened [14:47:28]FM_GetShiftState [14:47:28]SAM_PROTO_GetShiftState [14:47:28]wFMCommunicate request_size=4 [14:47:28]MH_SAM_APDU [14:47:28]CAPDU: 80 13 01 00 [14:47:28]Write to MH i2c: E2 08 00 8B 62 80 13 01 00 00 00 00 00 6A [14:47:28]Write i2c OK [14:47:28]MH_I2C_Read... [14:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:28]Read from MH i2c: E2 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: E2 0E 00 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: E2 0E 00 8B 62 00 09 00 01 98 11 45 67 00 00 00 00 90 00 CB [14:47:28]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:47:28]wFMCommunicate OK [14:47:28]SAM_PROTO_GetShiftState done [14:47:28]FM_GetShiftState done [14:47:28]req_shift_opened done [14:47:28]requested_item shift.open_date is exist - process it [14:47:28]req_shift_open_date [14:47:28]req_shift_open_date done [14:47:28]produce_requested_data done [14:47:28]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123239,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [14:47:28]process_action_free close_receipt [14:47:28]json_value_free [14:47:28]json_value_free done [14:47:28]process_json_proto returns [14:47:28]Send response to host [14:47:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123239,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [14:47:28]free response buf [14:47:28]execute_script done [14:47:28]execute_script returns [14:47:28]free content buf [14:47:28]Sock 7.Close socket [14:47:28]Sock 7.Thread stoped [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]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:34]accept exits with 9 [14:56:34]New connection [14:56:34]New thread 3066723684 created [14:56:34]Thread 3066580324 joined [14:56:34]Waiting for new connection... [14:56:34] Sock 9.Parse request [14:56:34]Sock 9.Check first char [14:56:34]Sock 9.First char is OK [14:56:34]request: POST /json_proto HTTP/1.0 [14:56:34]Method: POST [14:56:34]URL: /json_proto [14:56:34]Method is POST - this is cgi request [14:56:34]url: /json_proto [14:56:34]query_string will be loaded in cgi processing [14:56:34]execute_cgi json_proto POST (null) [14:56:34]execute_cgi path=json_proto method=POST [14:56:34]POST find Content-Length [14:56:34]Host: 172.17.37.4:8080 [14:56:34]Content-Length: 686 [14:56:34]Content-Type: application/json [14:56:34] [14:56:34]POST finish read [14:56:34]Found Content-Length = 686 [14:56:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:34]execute_script... [14:56:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:34]POST & json_proto [14:56:34]process_json_proto [14:56:34]json parsed OK: [14:56:34]protocol is kg_v1.0 [14:56:34]action value=close_receipt [14:56:34]process_action close_receipt [14:56:34]cmd_close_receipt [14:56:34]MH_GetDate [14:56:34]Write to MH i2c: F0 00 00 8C 62 DD [14:56:34]Write i2c OK [14:56:34]MH_I2C_Read... [14:56:34]Read from MH i2c: F0 [14:56:34]MH_I2C_Read... [14:56:34]Read from MH i2c: F0 09 00 [14:56:34]MH_I2C_Read... [14:56:34]Read from MH i2c: F0 09 00 8C 62 00 AD E1 45 67 B8 5A 43 67 DC [14:56:34]GetLastDocTimeStamp 1732632455 [14:56:34]current date 1732633005 [14:56:34]FM_GetShiftState [14:56:34]SAM_PROTO_GetShiftState [14:56:34]wFMCommunicate request_size=4 [14:56:34]MH_SAM_APDU [14:56:34]CAPDU: 80 13 01 00 [14:56:34]Write to MH i2c: E2 08 00 8D 62 80 13 01 00 00 00 00 00 6C [14:56:34]Write i2c OK [14:56:34]MH_I2C_Read... [14:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:34]Read from MH i2c: E2 [14:56:34]MH_I2C_Read... [14:56:34]Read from MH i2c: E2 0E 00 [14:56:34]MH_I2C_Read... [14:56:34]Read from MH i2c: E2 0E 00 8D 62 00 09 00 01 98 11 45 67 00 00 00 00 90 00 CD [14:56:34]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:56:34]wFMCommunicate OK [14:56:34]SAM_PROTO_GetShiftState done [14:56:34]FM_GetShiftState done [14:56:34]opened in 1732579736 [14:56:34]opened+sec_in_day 1732666136 [14:56:34]quantity*price = 100066 [14:56:34]sum+1 = 100067 [14:56:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 94 26.11.2024 14:56 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123240 ФПД: 146559512369113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T145645&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123240&fm=146559512369113&tin=02508201610067®Number=0000000000092681&sum=100000 [14:56:35]StoreToDocumentArchive [14:56:35]shift 557 fd 123240 [14:56:35]save to /storage/0557/doc_00123240 [14:56:35]save last doc name /storage/0557/doc_00123240 to /storage/kkm_last_doc_name [14:56:35]save OK [14:56:35]Clear old archive folders... [14:56:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:56:35]tlvbuf is 0215AAD0 [14:56:35]SAM_PROTO_ClearQueue [14:56:35]wFMCommunicate request_size=4 [14:56:35]MH_SAM_APDU [14:56:35]CAPDU: 80 09 00 00 [14:56:35]Write to MH i2c: E2 08 00 9A 62 80 09 00 00 00 00 00 00 6E [14:56:35]Write i2c OK [14:56:35]MH_I2C_Read... [14:56:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:35]Read from MH i2c: E2 [14:56:35]MH_I2C_Read... [14:56:35]Read from MH i2c: E2 03 00 [14:56:35]MH_I2C_Read... [14:56:35]Read from MH i2c: E2 03 00 9A 62 00 90 00 70 [14:56:35]RAPDU: 90 00 [14:56:35]wFMCommunicate OK [14:56:35]SAM_PROTO_ClearQueue done [14:56:35]KKMCreateOFDPacket [14:56:35]OFDProtocolAddRootSTLVToBuf [14:56:35]FM_MakeSignedData [14:56:35]FM_MakeSignedData [14:56:35]SAM_PROTO_SignData [14:56:35]wFMCommunicate request_size=4 [14:56:35]MH_SAM_APDU [14:56:35]CAPDU: 80 0D 01 02 [14:56:35]Write to MH i2c: E2 08 00 9B 62 80 0D 01 02 00 00 00 00 76 [14:56:35]Write i2c OK [14:56:35]MH_I2C_Read... [14:56:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:35]Read from MH i2c: E2 [14:56:35]MH_I2C_Read... [14:56:35]Read from MH i2c: E2 03 00 [14:56:35]MH_I2C_Read... [14:56:35]Read from MH i2c: E2 03 00 9B 62 00 90 00 71 [14:56:35]RAPDU: 90 00 [14:56:35]wFMCommunicate OK [14:56:35]wFMCommunicate request_size=255 [14:56:35]MH_SAM_APDU [14:56:35]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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 AD E1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 68 E1 01 00 35 04 06 00 [14:56:35]Write to MH i2c: E2 02 01 9C 62 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 AD E1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 68 E1 01 00 35 04 06 00 00 00 6E [14:56:35]Write i2c OK [14:56:35]MH_I2C_Read... [14:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:35]Read from MH i2c: E2 [14:56:35]MH_I2C_Read... [14:56:35]Read from MH i2c: E2 03 00 [14:56:35]MH_I2C_Read... [14:56:35]Read from MH i2c: E2 03 00 9C 62 00 90 00 72 [14:56:35]RAPDU: 90 00 [14:56:35]wFMCommunicate OK [14:56:35]wFMCommunicate request_size=11 [14:56:35]MH_SAM_APDU [14:56:35]CAPDU: 80 0D 02 02 06 85 4B 8B AC 57 D9 [14:56:35]Write to MH i2c: E2 0E 00 9D 62 80 0D 02 02 06 00 85 4B 8B AC 57 D9 00 00 BC [14:56:35]Write i2c OK [14:56:35]MH_I2C_Read... [14:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:35]Read from MH i2c: E2 [14:56:35]MH_I2C_Read... [14:56:35]Read from MH i2c: E2 03 00 [14:56:35]MH_I2C_Read... [14:56:35]Read from MH i2c: E2 03 00 9D 62 00 90 00 73 [14:56:35]RAPDU: 90 00 [14:56:35]wFMCommunicate OK [14:56:35]wFMCommunicate request_size=4 [14:56:35]MH_SAM_APDU [14:56:35]CAPDU: 80 0D 03 02 [14:56:35]Write to MH i2c: E2 08 00 9E 62 80 0D 03 02 00 00 00 00 7B [14:56:35]Write i2c OK [14:56:35]MH_I2C_Read... [14:56:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:35]Read from MH i2c: E2 [14:56:35]MH_I2C_Read... [14:56:35]Read from MH i2c: E2 0B 00 [14:56:35]MH_I2C_Read... [14:56:35]Read from MH i2c: E2 0B 00 9E 62 00 73 D6 D0 B5 C1 57 8B 68 90 00 55 [14:56:35]RAPDU: 73 D6 D0 B5 C1 57 8B 68 90 00 [14:56:35]wFMCommunicate OK [14:56:35]SAM_PROTO_SignData done [14:56:35]FM_MakeSignedData done [14:56:35]CreateOFDProtocolMessage [14:56:35]wFMCommunicate request_size=4 [14:56:35]MH_SAM_APDU [14:56:35]CAPDU: 80 11 00 00 [14:56:35]Write to MH i2c: E2 08 00 9F 62 80 11 00 00 00 00 00 00 7B [14:56:35]Write i2c OK [14:56:35]MH_I2C_Read... [14:56:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:35]Read from MH i2c: E2 [14:56:35]MH_I2C_Read... [14:56:35]Read from MH i2c: E2 17 00 [14:56:35]MH_I2C_Read... [14:56:35]Read from MH i2c: E2 17 00 9F 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D2 [14:56:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:56:35]wFMCommunicate OK [14:56:35]CreateOFDProtocolMessage done [14:56:35]OFDSenderStorePacket 123240 [14:56:35]StoreOFDPacket docnum=123240 [14:56:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 2C 56 08 01 88 56 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 AD E1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 68 E1 01 00 35 04 06 00 85 4B 8B AC 57 D9 73 D6 D0 B5 C1 57 8B 68 [14:56:35]CheckFolder [14:56:35]dirname=/storage/ofd_packets [14:56:35]CheckFolder done [14:56:35]ProducePacketName [14:56:35]name=ofd_packets/00123240 [14:56:35]NVStorageSaveData ofd_packets/00123240 [14:56:35]File name is /storage/ofd_packets/00123240 [14:56:35]Write 302 bytes [14:56:35]NVStorageSaveData done [14:56:35]OFDSenderStorePacket done [14:56:35]KKMCreateOFDPacket done [14:56:35]NVStorageSaveData kkm_last_timestamp [14:56:35]File name is /storage/kkm_last_timestamp [14:56:35]Write 4 bytes [14:56:35]NVStorageSaveData done [14:56:35]ExternCall_PrintAddStr [14:56:35]wPrintStart [14:56:35]Write to MH i2c: 01 00 00 A0 62 02 [14:56:35]Write i2c OK [14:56:35]MH_I2C_Read... [14:56:35]Read from MH i2c: 01 [14:56:35]MH_I2C_Read... [14:56:35]Read from MH i2c: 01 07 00 [14:56:35]MH_I2C_Read... [14:56:35]Read from MH i2c: 01 07 00 A0 62 00 00 00 00 00 FF 0F 17 [14:56:35]RasterBufferAndPrint [14:56:35]line Счет N : (1)718071 [14:56:35]line ИНН: 02508201610067 [14:56:35]line Контрольно-Кассовый Чек [14:56:35]line ПРОДАЖА [14:56:35]line ТРК (МРК, ГНК) : 5 [14:56:35]line Товар: 2710194210 [14:56:35]line ДТ(л)-К-5 [14:56:35]line 13.360 * 74.90 [14:56:35]line = 1000.66 [14:56:35]line НДС 12% НСП 1% [14:56:35]line > о реализуемом товаре [14:56:35]line ОКРУГЛЕНИЕ: -0.66 [14:56:35]line ИТОГО: 1000.00 [14:56:35]line Внесено: 1000.00 [14:56:35]line СДАЧА: 0.00 [14:56:35]line НСП 1% : 8.85 [14:56:35]line НДС 12% : 106.26 [14:56:35]line Наличными: 1000.00 [14:56:35]line Безнал.: 0.00 [14:56:35]line Место: АЗС № 64 "Партнер Нефть" [14:56:35]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:56:35]line СНО: Общий режим [14:56:35]line Чек 94 26.11.2024 14:56 [14:56:35]line Смена: 557 ФФД: 1.0 [14:56:35]line ЗНМ: 0300000033 [14:56:35]line РНМ: 0000000000092681 [14:56:35]line Версия ККМ: 001 [14:56:35]line ФМ: 0000000000874881 [14:56:35]line ФД: 123240 [14:56:35]line ФПД: 146559512369113 [14:56:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T145645&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123240&fm=146559512369113&tin=02508201610067®Number=0000000000092681&sum=100000 [14:56:36]OFD Sender: Processing packet 123240 [packets to send 7, broken 6] [14:56:36]ProducePacketName [14:56:36]name=ofd_packets/00123240 [14:56:36]OFD Sender: To server: pG, [14:56:36]CommunicateWithHost lk.salyk.kg:30040 [14:56:36]ConnectInit lk.salyk.kg [14:56:36]written 0, free lines is 4095 [14:56:36]Connected sock=10 [14:56:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 2C 56 08 01 88 56 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 AD E1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 68 E1 01 00 35 04 06 00 85 4B 8B AC 57 D9 73 D6 D0 B5 C1 57 8B 68 [14:56:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 4C E9 47 00 AF B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 68 E1 01 00 F4 03 04 00 6F 8D 45 67 B6 04 01 00 00 66 2F 4D D6 A3 3D 73 B2 [14:56:36]CommunicateWithHost err = 0 [14:56:36]CheckOFDResponse [14:56:36]1017 (14) - 77093643461234 [14:56:36]1041 (16) - 0000000000874881 [14:56:36]1040 (4) - 123240 [14:56:36]1012 (4) - 26.11.2024 08:57 [14:56:36]1206 (1) - 0 [14:56:36]OFD Sender: Remove packet 123240 [14:56:36]ProducePacketName [14:56:36]name=ofd_packets/00123240 [14:56:36]NVStorageDeleteData [14:56:36]Write to MH i2c: 01 00 00 CB 62 2D [14:56:36]Write i2c OK [14:56:36]MH_I2C_Read... [14:56:36]Read from MH i2c: 01 [14:56:36]MH_I2C_Read... [14:56:36]Read from MH i2c: 01 07 00 [14:56:36]MH_I2C_Read... [14:56:36]Read from MH i2c: 01 07 00 CB 62 00 00 00 00 00 46 0C 86 [14:56:36]RasterBufferAndPrint [14:56:36]line [14:56:36]line [14:56:36]line [14:56:36]line [14:56:36]line [14:56:36]written 0, free lines is 3146 [14:56:36]MH_Cut [14:56:36]Write to MH i2c: D1 01 00 D2 62 01 06 [14:56:36]Write i2c OK [14:56:36]MH_I2C_Read... [14:56:36]Read from MH i2c: D1 [14:56:36]MH_I2C_Read... [14:56:36]Read from MH i2c: D1 01 00 [14:56:36]MH_I2C_Read... [14:56:36]Read from MH i2c: D1 01 00 D2 62 00 05 [14:56:36]Write to MH i2c: 01 00 00 D3 62 35 [14:56:36]Write i2c OK [14:56:36]MH_I2C_Read... [14:56:37]OFD Sender: No OFD packet to send [14:56:37]*** Cut start [14:56:37]*** Partial cut [14:56:37]*** CUTSNS_PIN = 1 [14:56:38]*** CUTSNS_PIN = 0 [14:56:38]*** Brake cut motor [14:56:38]Read from MH i2c: 01 [14:56:38]MH_I2C_Read... [14:56:38]*** Stop cut motor [14:56:38]*** Cut end [14:56:38]Read from MH i2c: 01 07 00 [14:56:38]MH_I2C_Read... [14:56:38]Read from MH i2c: 01 07 00 D3 62 00 00 00 00 00 FF 0F 4A [14:56:38]process_action close_receipt done [14:56:38]requested_data is exist [14:56:38]produce_requested_data [14:56:38]requested_item fm.sn is exist - process it [14:56:38]wFMCommunicate request_size=4 [14:56:38]MH_SAM_APDU [14:56:38]CAPDU: 80 11 00 00 [14:56:38]Write to MH i2c: E2 08 00 D4 62 80 11 00 00 00 00 00 00 B0 [14:56:38]Write i2c OK [14:56:38]MH_I2C_Read... [14:56:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:38]Read from MH i2c: E2 [14:56:38]MH_I2C_Read... [14:56:38]Read from MH i2c: E2 17 00 [14:56:38]MH_I2C_Read... [14:56:38]Read from MH i2c: E2 17 00 D4 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 07 [14:56:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:56:38]wFMCommunicate OK [14:56:38]requested_item fd.num is exist - process it [14:56:38]SAM_PROTO_GetFieldsCounters [14:56:38]wFMCommunicate request_size=4 [14:56:38]MH_SAM_APDU [14:56:38]CAPDU: 80 13 00 00 [14:56:38]Write to MH i2c: E2 08 00 D5 62 80 13 00 00 00 00 00 00 B3 [14:56:38]Write i2c OK [14:56:38]MH_I2C_Read... [14:56:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:38]Read from MH i2c: E2 [14:56:38]MH_I2C_Read... [14:56:38]Read from MH i2c: E2 62 00 [14:56:38]MH_I2C_Read... [14:56:38]Read from MH i2c: E2 62 00 D5 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 68 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [14:56:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 68 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:38]wFMCommunicate OK [14:56:38]SAM_PROTO_GetFieldsCounters done [14:56:38]requested_item shift.num is exist - process it [14:56:38]requested_item shift.opened is exist - process it [14:56:38]req_shift_opened [14:56:38]FM_GetShiftState [14:56:38]SAM_PROTO_GetShiftState [14:56:38]wFMCommunicate request_size=4 [14:56:38]MH_SAM_APDU [14:56:38]CAPDU: 80 13 01 00 [14:56:38]Write to MH i2c: E2 08 00 D6 62 80 13 01 00 00 00 00 00 B5 [14:56:38]Write i2c OK [14:56:38]MH_I2C_Read... [14:56:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:38]Read from MH i2c: E2 [14:56:38]MH_I2C_Read... [14:56:38]Read from MH i2c: E2 0E 00 [14:56:38]MH_I2C_Read... [14:56:38]Read from MH i2c: E2 0E 00 D6 62 00 09 00 01 98 11 45 67 00 00 00 00 90 00 16 [14:56:38]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [14:56:38]wFMCommunicate OK [14:56:38]SAM_PROTO_GetShiftState done [14:56:38]FM_GetShiftState done [14:56:38]req_shift_opened done [14:56:38]requested_item shift.open_date is exist - process it [14:56:38]req_shift_open_date [14:56:38]req_shift_open_date done [14:56:38]produce_requested_data done [14:56:38]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123240,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [14:56:38]process_action_free close_receipt [14:56:38]json_value_free [14:56:38]json_value_free done [14:56:38]process_json_proto returns [14:56:38]Send response to host [14:56:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123240,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [14:56:38]free response buf [14:56:38]execute_script done [14:56:38]execute_script returns [14:56:38]free content buf [14:56:38]Sock 9.Close socket [14:56:38]Sock 9.Thread stoped [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:03]accept exits with 7 [15:01:03]New connection [15:01:03]New thread 3066580324 created [15:01:03]Thread 3066723684 joined [15:01:03]Waiting for new connection... [15:01:03] Sock 7.Parse request [15:01:03]Sock 7.Check first char [15:01:03]Sock 7.First char is OK [15:01:03]request: POST /json_proto HTTP/1.0 [15:01:03]Method: POST [15:01:03]URL: /json_proto [15:01:03]Method is POST - this is cgi request [15:01:03]url: /json_proto [15:01:03]query_string will be loaded in cgi processing [15:01:03]execute_cgi json_proto POST (null) [15:01:03]execute_cgi path=json_proto method=POST [15:01:03]POST find Content-Length [15:01:03]Host: 172.17.37.4:8080 [15:01:03]Content-Length: 677 [15:01:03]Content-Type: application/json [15:01:03] [15:01:03]POST finish read [15:01:03]Found Content-Length = 677 [15:01:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:03]execute_script... [15:01:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:03]POST & json_proto [15:01:03]process_json_proto [15:01:03]json parsed OK: [15:01:03]protocol is kg_v1.0 [15:01:03]action value=close_receipt [15:01:03]process_action close_receipt [15:01:03]cmd_close_receipt [15:01:03]MH_GetDate [15:01:03]Write to MH i2c: F0 00 00 D7 62 28 [15:01:03]Write i2c OK [15:01:03]MH_I2C_Read... [15:01:03]Read from MH i2c: F0 [15:01:03]MH_I2C_Read... [15:01:03]Read from MH i2c: F0 09 00 [15:01:03]MH_I2C_Read... [15:01:03]Read from MH i2c: F0 09 00 D7 62 00 BB E2 45 67 B8 5A 43 67 36 [15:01:03]GetLastDocTimeStamp 1732633005 [15:01:03]current date 1732633275 [15:01:03]FM_GetShiftState [15:01:03]SAM_PROTO_GetShiftState [15:01:03]wFMCommunicate request_size=4 [15:01:03]MH_SAM_APDU [15:01:03]CAPDU: 80 13 01 00 [15:01:03]Write to MH i2c: E2 08 00 D8 62 80 13 01 00 00 00 00 00 B7 [15:01:03]Write i2c OK [15:01:03]MH_I2C_Read... [15:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:04]Read from MH i2c: E2 [15:01:04]MH_I2C_Read... [15:01:04]Read from MH i2c: E2 0E 00 [15:01:04]MH_I2C_Read... [15:01:04]Read from MH i2c: E2 0E 00 D8 62 00 09 00 01 98 11 45 67 00 00 00 00 90 00 18 [15:01:04]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:01:04]wFMCommunicate OK [15:01:04]SAM_PROTO_GetShiftState done [15:01:04]FM_GetShiftState done [15:01:04]opened in 1732579736 [15:01:04]opened+sec_in_day 1732666136 [15:01:04]quantity*price = 40035 [15:01:04]sum+1 = 40037 [15:01:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 95 26.11.2024 15:01 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123241 ФПД: 25360281692660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T150115&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123241&fm=25360281692660&tin=02508201610067®Number=0000000000092681&sum=40000 [15:01:05]StoreToDocumentArchive [15:01:05]shift 557 fd 123241 [15:01:05]save to /storage/0557/doc_00123241 [15:01:05]save last doc name /storage/0557/doc_00123241 to /storage/kkm_last_doc_name [15:01:05]save OK [15:01:05]Clear old archive folders... [15:01:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:01:05]tlvbuf is 021C8EC0 [15:01:05]SAM_PROTO_ClearQueue [15:01:05]wFMCommunicate request_size=4 [15:01:05]MH_SAM_APDU [15:01:05]CAPDU: 80 09 00 00 [15:01:05]Write to MH i2c: E2 08 00 E5 62 80 09 00 00 00 00 00 00 B9 [15:01:05]Write i2c OK [15:01:05]MH_I2C_Read... [15:01:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:05]Read from MH i2c: E2 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: E2 03 00 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: E2 03 00 E5 62 00 90 00 BB [15:01:05]RAPDU: 90 00 [15:01:05]wFMCommunicate OK [15:01:05]SAM_PROTO_ClearQueue done [15:01:05]KKMCreateOFDPacket [15:01:05]OFDProtocolAddRootSTLVToBuf [15:01:05]FM_MakeSignedData [15:01:05]FM_MakeSignedData [15:01:05]SAM_PROTO_SignData [15:01:05]wFMCommunicate request_size=4 [15:01:05]MH_SAM_APDU [15:01:05]CAPDU: 80 0D 01 02 [15:01:05]Write to MH i2c: E2 08 00 E6 62 80 0D 01 02 00 00 00 00 C1 [15:01:05]Write i2c OK [15:01:05]MH_I2C_Read... [15:01:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:05]Read from MH i2c: E2 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: E2 03 00 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: E2 03 00 E6 62 00 90 00 BC [15:01:05]RAPDU: 90 00 [15:01:05]wFMCommunicate OK [15:01:05]wFMCommunicate request_size=255 [15:01:05]MH_SAM_APDU [15:01:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 BB E2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 69 E1 01 00 35 04 06 00 17 [15:01:05]Write to MH i2c: E2 02 01 E7 62 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 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 BB E2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 69 E1 01 00 35 04 06 00 17 00 00 88 [15:01:05]Write i2c OK [15:01:05]MH_I2C_Read... [15:01:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:05]Read from MH i2c: E2 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: E2 03 00 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: E2 03 00 E7 62 00 90 00 BD [15:01:05]RAPDU: 90 00 [15:01:05]wFMCommunicate OK [15:01:05]wFMCommunicate request_size=10 [15:01:05]MH_SAM_APDU [15:01:05]CAPDU: 80 0D 02 02 05 10 A6 94 E9 F4 [15:01:05]Write to MH i2c: E2 0D 00 E8 62 80 0D 02 02 05 00 10 A6 94 E9 F4 00 00 F5 [15:01:05]Write i2c OK [15:01:05]MH_I2C_Read... [15:01:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:05]Read from MH i2c: E2 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: E2 03 00 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: E2 03 00 E8 62 00 90 00 BE [15:01:05]RAPDU: 90 00 [15:01:05]wFMCommunicate OK [15:01:05]wFMCommunicate request_size=4 [15:01:05]MH_SAM_APDU [15:01:05]CAPDU: 80 0D 03 02 [15:01:05]Write to MH i2c: E2 08 00 E9 62 80 0D 03 02 00 00 00 00 C6 [15:01:05]Write i2c OK [15:01:05]MH_I2C_Read... [15:01:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:05]Read from MH i2c: E2 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: E2 0B 00 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: E2 0B 00 E9 62 00 53 A9 9B 86 E7 E9 33 6A 90 00 51 [15:01:05]RAPDU: 53 A9 9B 86 E7 E9 33 6A 90 00 [15:01:05]wFMCommunicate OK [15:01:05]SAM_PROTO_SignData done [15:01:05]FM_MakeSignedData done [15:01:05]CreateOFDProtocolMessage [15:01:05]wFMCommunicate request_size=4 [15:01:05]MH_SAM_APDU [15:01:05]CAPDU: 80 11 00 00 [15:01:05]Write to MH i2c: E2 08 00 EA 62 80 11 00 00 00 00 00 00 C6 [15:01:05]Write i2c OK [15:01:05]MH_I2C_Read... [15:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:05]Read from MH i2c: E2 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: E2 17 00 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: E2 17 00 EA 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1D [15:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:01:05]wFMCommunicate OK [15:01:05]CreateOFDProtocolMessage done [15:01:05]OFDSenderStorePacket 123241 [15:01:05]StoreOFDPacket docnum=123241 [15:01:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E5 8F 07 01 CB 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 BB E2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 69 E1 01 00 35 04 06 00 17 10 A6 94 E9 F4 53 A9 9B 86 E7 E9 33 6A [15:01:05]CheckFolder [15:01:05]dirname=/storage/ofd_packets [15:01:05]CheckFolder done [15:01:05]ProducePacketName [15:01:05]name=ofd_packets/00123241 [15:01:05]NVStorageSaveData ofd_packets/00123241 [15:01:05]File name is /storage/ofd_packets/00123241 [15:01:05]Write 301 bytes [15:01:05]NVStorageSaveData done [15:01:05]OFDSenderStorePacket done [15:01:05]KKMCreateOFDPacket done [15:01:05]NVStorageSaveData kkm_last_timestamp [15:01:05]File name is /storage/kkm_last_timestamp [15:01:05]Write 4 bytes [15:01:05]NVStorageSaveData done [15:01:05]ExternCall_PrintAddStr [15:01:05]wPrintStart [15:01:05]Write to MH i2c: 01 00 00 EB 62 4D [15:01:05]Write i2c OK [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: 01 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: 01 07 00 [15:01:05]MH_I2C_Read... [15:01:05]Read from MH i2c: 01 07 00 EB 62 00 00 00 00 00 FF 0F 62 [15:01:05]RasterBufferAndPrint [15:01:05]line Счет N : (1)718072 [15:01:05]line ИНН: 02508201610067 [15:01:05]line Контрольно-Кассовый Чек [15:01:05]line ПРОДАЖА [15:01:05]line ТРК (МРК, ГНК) : 22 [15:01:05]line Товар: 2710124130 [15:01:05]line Аи-92-К-4 [15:01:05]line 5.940 * 67.40 [15:01:05]line = 400.36 [15:01:05]line НДС 12% НСП 1% [15:01:05]line > о реализуемом товаре [15:01:05]line ОКРУГЛЕНИЕ: -0.36 [15:01:05]line ИТОГО: 400.00 [15:01:05]line Внесено: 400.00 [15:01:05]line СДАЧА: 0.00 [15:01:05]line НСП 1% : 3.54 [15:01:05]line НДС 12% : 42.52 [15:01:05]line Наличными: 400.00 [15:01:05]line Безнал.: 0.00 [15:01:05]line Место: АЗС № 64 "Партнер Нефть" [15:01:05]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:01:05]line СНО: Общий режим [15:01:05]line Чек 95 26.11.2024 15:01 [15:01:05]line Смена: 557 ФФД: 1.0 [15:01:05]line ЗНМ: 0300000033 [15:01:05]line РНМ: 0000000000092681 [15:01:05]line Версия ККМ: 001 [15:01:05]line ФМ: 0000000000874881 [15:01:05]line ФД: 123241 [15:01:05]line ФПД: 25360281692660 [15:01:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T150115&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123241&fm=25360281692660&tin=02508201610067®Number=0000000000092681&sum=40000 [15:01:06]OFD Sender: Processing packet 123241 [packets to send 7, broken 6] [15:01:06]ProducePacketName [15:01:06]name=ofd_packets/00123241 [15:01:06]OFD Sender: To server: pG, [15:01:06]CommunicateWithHost lk.salyk.kg:30040 [15:01:06]ConnectInit lk.salyk.kg [15:01:06]written 0, free lines is 4095 [15:01:06]Connected sock=10 [15:01:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E5 8F 07 01 CB 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 BB E2 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 69 E1 01 00 35 04 06 00 17 10 A6 94 E9 F4 53 A9 9B 86 E7 E9 33 6A [15:01:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 3D 62 47 00 63 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 69 E1 01 00 F4 03 04 00 7D 8E 45 67 B6 04 01 00 00 65 C5 51 AF 9E 9D 4D EB [15:01:06]CommunicateWithHost err = 0 [15:01:06]CheckOFDResponse [15:01:06]1017 (14) - 77093643461234 [15:01:06]1041 (16) - 0000000000874881 [15:01:06]1040 (4) - 123241 [15:01:06]1012 (4) - 26.11.2024 09:01 [15:01:06]1206 (1) - 0 [15:01:06]OFD Sender: Remove packet 123241 [15:01:06]ProducePacketName [15:01:06]name=ofd_packets/00123241 [15:01:06]NVStorageDeleteData [15:01:06]Write to MH i2c: 01 00 00 16 63 79 [15:01:06]Write i2c OK [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: 01 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: 01 07 00 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: 01 07 00 16 63 00 00 00 00 00 4E 0C DA [15:01:06]RasterBufferAndPrint [15:01:06]line [15:01:06]line [15:01:06]line [15:01:06]line [15:01:06]line [15:01:06]written 0, free lines is 3153 [15:01:06]MH_Cut [15:01:06]Write to MH i2c: D1 01 00 1D 63 01 52 [15:01:06]Write i2c OK [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: D1 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: D1 01 00 [15:01:06]MH_I2C_Read... [15:01:06]Read from MH i2c: D1 01 00 1D 63 00 51 [15:01:06]Write to MH i2c: 01 00 00 1E 63 81 [15:01:06]Write i2c OK [15:01:06]MH_I2C_Read... [15:01:06]OFD Sender: No OFD packet to send [15:01:07]*** Cut start [15:01:07]*** Partial cut [15:01:07]*** CUTSNS_PIN = 1 [15:01:07]*** CUTSNS_PIN = 0 [15:01:08]*** Brake cut motor [15:01:08]Read from MH i2c: 01 [15:01:08]MH_I2C_Read... [15:01:08]*** Stop cut motor [15:01:08]*** Cut end [15:01:08]Read from MH i2c: 01 07 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: 01 07 00 1E 63 00 00 00 00 00 FF 0F 96 [15:01:08]process_action close_receipt done [15:01:08]requested_data is exist [15:01:08]produce_requested_data [15:01:08]requested_item fm.sn is exist - process it [15:01:08]wFMCommunicate request_size=4 [15:01:08]MH_SAM_APDU [15:01:08]CAPDU: 80 11 00 00 [15:01:08]Write to MH i2c: E2 08 00 1F 63 80 11 00 00 00 00 00 00 FC [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:08]Read from MH i2c: E2 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 17 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 17 00 1F 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 53 [15:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:01:08]wFMCommunicate OK [15:01:08]requested_item fd.num is exist - process it [15:01:08]SAM_PROTO_GetFieldsCounters [15:01:08]wFMCommunicate request_size=4 [15:01:08]MH_SAM_APDU [15:01:08]CAPDU: 80 13 00 00 [15:01:08]Write to MH i2c: E2 08 00 20 63 80 13 00 00 00 00 00 00 FF [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:08]Read from MH i2c: E2 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 62 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 62 00 20 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 69 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [15:01:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 69 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:08]wFMCommunicate OK [15:01:08]SAM_PROTO_GetFieldsCounters done [15:01:08]requested_item shift.num is exist - process it [15:01:08]requested_item shift.opened is exist - process it [15:01:08]req_shift_opened [15:01:08]FM_GetShiftState [15:01:08]SAM_PROTO_GetShiftState [15:01:08]wFMCommunicate request_size=4 [15:01:08]MH_SAM_APDU [15:01:08]CAPDU: 80 13 01 00 [15:01:08]Write to MH i2c: E2 08 00 21 63 80 13 01 00 00 00 00 00 01 [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:08]Read from MH i2c: E2 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 0E 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 0E 00 21 63 00 09 00 01 98 11 45 67 00 00 00 00 90 00 62 [15:01:08]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:01:08]wFMCommunicate OK [15:01:08]SAM_PROTO_GetShiftState done [15:01:08]FM_GetShiftState done [15:01:08]req_shift_opened done [15:01:08]requested_item shift.open_date is exist - process it [15:01:08]req_shift_open_date [15:01:08]req_shift_open_date done [15:01:08]produce_requested_data done [15:01:08]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123241,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [15:01:08]process_action_free close_receipt [15:01:08]json_value_free [15:01:08]json_value_free done [15:01:08]process_json_proto returns [15:01:08]Send response to host [15:01:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123241,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [15:01:08]free response buf [15:01:08]execute_script done [15:01:08]execute_script returns [15:01:08]free content buf [15:01:08]Sock 7.Close socket [15:01:08]Sock 7.Thread stoped [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:39]accept exits with 9 [15:02:39]New connection [15:02:39]New thread 3066723684 created [15:02:39]Thread 3066580324 joined [15:02:39]Waiting for new connection... [15:02:39] Sock 9.Parse request [15:02:39]Sock 9.Check first char [15:02:39]Sock 9.First char is OK [15:02:39]request: POST /json_proto HTTP/1.0 [15:02:39]Method: POST [15:02:39]URL: /json_proto [15:02:39]Method is POST - this is cgi request [15:02:39]url: /json_proto [15:02:39]query_string will be loaded in cgi processing [15:02:39]execute_cgi json_proto POST (null) [15:02:39]execute_cgi path=json_proto method=POST [15:02:39]POST find Content-Length [15:02:39]Host: 172.17.37.4:8080 [15:02:39]Content-Length: 800 [15:02:39]Content-Type: application/json [15:02:39] [15:02:39]POST finish read [15:02:39]Found Content-Length = 800 [15:02:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 8.910, "sum" : 600.53, "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" : 600.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:39]execute_script... [15:02:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 8.910, "sum" : 600.53, "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" : 600.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:39]POST & json_proto [15:02:39]process_json_proto [15:02:39]json parsed OK: [15:02:39]protocol is kg_v1.0 [15:02:39]action value=close_receipt [15:02:39]process_action close_receipt [15:02:39]cmd_close_receipt [15:02:39]MH_GetDate [15:02:39]Write to MH i2c: F0 00 00 22 63 74 [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: F0 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: F0 09 00 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: F0 09 00 22 63 00 1A E3 45 67 B8 5A 43 67 E2 [15:02:39]GetLastDocTimeStamp 1732633275 [15:02:39]current date 1732633370 [15:02:39]FM_GetShiftState [15:02:39]SAM_PROTO_GetShiftState [15:02:39]wFMCommunicate request_size=4 [15:02:39]MH_SAM_APDU [15:02:39]CAPDU: 80 13 01 00 [15:02:39]Write to MH i2c: E2 08 00 23 63 80 13 01 00 00 00 00 00 03 [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:39]Read from MH i2c: E2 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 0E 00 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 0E 00 23 63 00 09 00 01 98 11 45 67 00 00 00 00 90 00 64 [15:02:39]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:02:39]wFMCommunicate OK [15:02:39]SAM_PROTO_GetShiftState done [15:02:39]FM_GetShiftState done [15:02:39]opened in 1732579736 [15:02:39]opened+sec_in_day 1732666136 [15:02:39]quantity*price = 60053 [15:02:39]sum+1 = 60054 [15:02:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.53 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 0.00 Безнал.: 600.53 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 96 26.11.2024 15:02 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123242 ФПД: 211777235423148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T150250&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123242&fm=211777235423148&tin=02508201610067®Number=0000000000092681&sum=60053 [15:02:40]StoreToDocumentArchive [15:02:40]shift 557 fd 123242 [15:02:40]save to /storage/0557/doc_00123242 [15:02:40]save last doc name /storage/0557/doc_00123242 to /storage/kkm_last_doc_name [15:02:40]save OK [15:02:40]Clear old archive folders... [15:02:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:02:40]tlvbuf is 01F5EC90 [15:02:40]SAM_PROTO_ClearQueue [15:02:40]wFMCommunicate request_size=4 [15:02:40]MH_SAM_APDU [15:02:40]CAPDU: 80 09 00 00 [15:02:40]Write to MH i2c: E2 08 00 30 63 80 09 00 00 00 00 00 00 05 [15:02:40]Write i2c OK [15:02:40]MH_I2C_Read... [15:02:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:40]Read from MH i2c: E2 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 03 00 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 03 00 30 63 00 90 00 07 [15:02:40]RAPDU: 90 00 [15:02:40]wFMCommunicate OK [15:02:40]SAM_PROTO_ClearQueue done [15:02:40]KKMCreateOFDPacket [15:02:40]OFDProtocolAddRootSTLVToBuf [15:02:40]FM_MakeSignedData [15:02:40]FM_MakeSignedData [15:02:40]SAM_PROTO_SignData [15:02:40]wFMCommunicate request_size=4 [15:02:40]MH_SAM_APDU [15:02:40]CAPDU: 80 0D 01 02 [15:02:40]Write to MH i2c: E2 08 00 31 63 80 0D 01 02 00 00 00 00 0D [15:02:40]Write i2c OK [15:02:40]MH_I2C_Read... [15:02:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:40]Read from MH i2c: E2 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 03 00 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 03 00 31 63 00 90 00 08 [15:02:40]RAPDU: 90 00 [15:02:40]wFMCommunicate OK [15:02:40]wFMCommunicate request_size=255 [15:02:40]MH_SAM_APDU [15:02:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1A E3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6A E1 01 00 35 04 06 00 C0 [15:02:40]Write to MH i2c: E2 02 01 32 63 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 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1A E3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6A E1 01 00 35 04 06 00 C0 00 00 50 [15:02:40]Write i2c OK [15:02:40]MH_I2C_Read... [15:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:40]Read from MH i2c: E2 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 03 00 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 03 00 32 63 00 90 00 09 [15:02:40]RAPDU: 90 00 [15:02:40]wFMCommunicate OK [15:02:40]wFMCommunicate request_size=10 [15:02:40]MH_SAM_APDU [15:02:40]CAPDU: 80 0D 02 02 05 9C 3A E3 8F AC [15:02:40]Write to MH i2c: E2 0D 00 33 63 80 0D 02 02 05 00 9C 3A E3 8F AC 00 00 0E [15:02:40]Write i2c OK [15:02:40]MH_I2C_Read... [15:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:40]Read from MH i2c: E2 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 03 00 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 03 00 33 63 00 90 00 0A [15:02:40]RAPDU: 90 00 [15:02:40]wFMCommunicate OK [15:02:40]wFMCommunicate request_size=4 [15:02:40]MH_SAM_APDU [15:02:40]CAPDU: 80 0D 03 02 [15:02:40]Write to MH i2c: E2 08 00 34 63 80 0D 03 02 00 00 00 00 12 [15:02:40]Write i2c OK [15:02:40]MH_I2C_Read... [15:02:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:40]Read from MH i2c: E2 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 0B 00 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 0B 00 34 63 00 9D CB EB D4 A9 25 21 19 90 00 42 [15:02:40]RAPDU: 9D CB EB D4 A9 25 21 19 90 00 [15:02:40]wFMCommunicate OK [15:02:40]SAM_PROTO_SignData done [15:02:40]FM_MakeSignedData done [15:02:40]CreateOFDProtocolMessage [15:02:40]wFMCommunicate request_size=4 [15:02:40]MH_SAM_APDU [15:02:40]CAPDU: 80 11 00 00 [15:02:40]Write to MH i2c: E2 08 00 35 63 80 11 00 00 00 00 00 00 12 [15:02:40]Write i2c OK [15:02:40]MH_I2C_Read... [15:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:40]Read from MH i2c: E2 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 17 00 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 17 00 35 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 69 [15:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:02:40]wFMCommunicate OK [15:02:40]CreateOFDProtocolMessage done [15:02:40]OFDSenderStorePacket 123242 [15:02:40]StoreOFDPacket docnum=123242 [15:02:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 85 FD 07 01 EA 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 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1A E3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6A E1 01 00 35 04 06 00 C0 9C 3A E3 8F AC 9D CB EB D4 A9 25 21 19 [15:02:40]CheckFolder [15:02:40]dirname=/storage/ofd_packets [15:02:40]CheckFolder done [15:02:40]ProducePacketName [15:02:40]name=ofd_packets/00123242 [15:02:40]NVStorageSaveData ofd_packets/00123242 [15:02:40]File name is /storage/ofd_packets/00123242 [15:02:40]Write 301 bytes [15:02:40]NVStorageSaveData done [15:02:40]OFDSenderStorePacket done [15:02:40]KKMCreateOFDPacket done [15:02:40]NVStorageSaveData kkm_last_timestamp [15:02:40]File name is /storage/kkm_last_timestamp [15:02:40]Write 4 bytes [15:02:40]NVStorageSaveData done [15:02:40]ExternCall_PrintAddStr [15:02:40]wPrintStart [15:02:40]Write to MH i2c: 01 00 00 36 63 99 [15:02:40]Write i2c OK [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: 01 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: 01 07 00 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: 01 07 00 36 63 00 00 00 00 00 FF 0F AE [15:02:40]RasterBufferAndPrint [15:02:40]line Счет N : (1)718073 [15:02:40]line ИНН: 02508201610067 [15:02:40]line Контрольно-Кассовый Чек [15:02:40]line ПРОДАЖА [15:02:40]line ТРК (МРК, ГНК) : 12 [15:02:40]line Товар: 2710124130 [15:02:40]line Аи-92-К-4 [15:02:40]line 8.910 * 67.40 [15:02:40]line = 600.53 [15:02:40]line НДС 12% НСП 1% [15:02:40]line > о реализуемом товаре [15:02:40]line ИТОГО: 600.53 [15:02:40]line НСП 1% : 5.31 [15:02:40]line НДС 12% : 63.77 [15:02:40]line Наличными: 0.00 [15:02:40]line Безнал.: 600.53 [15:02:40]line Место: АЗС № 64 "Партнер Нефть" [15:02:40]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:02:40]line СНО: Общий режим [15:02:40]line Чек 96 26.11.2024 15:02 [15:02:40]line Смена: 557 ФФД: 1.0 [15:02:40]line ЗНМ: 0300000033 [15:02:40]line РНМ: 0000000000092681 [15:02:40]line Версия ККМ: 001 [15:02:40]line Платежная система: O! деньги [15:02:40]line ФМ: 0000000000874881 [15:02:40]line ФД: 123242 [15:02:40]line ФПД: 211777235423148 [15:02:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T150250&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123242&fm=211777235423148&tin=02508201610067®Number=0000000000092681&sum=60053 [15:02:41]written 0, free lines is 4095 [15:02:41]OFD Sender: Processing packet 123242 [packets to send 7, broken 6] [15:02:41]ProducePacketName [15:02:41]name=ofd_packets/00123242 [15:02:41]OFD Sender: To server: pG, [15:02:41]CommunicateWithHost lk.salyk.kg:30040 [15:02:41]ConnectInit lk.salyk.kg [15:02:41]Connected sock=10 [15:02:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 85 FD 07 01 EA 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 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1A E3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6A E1 01 00 35 04 06 00 C0 9C 3A E3 8F AC 9D CB EB D4 A9 25 21 19 [15:02:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 10 E3 47 00 4B AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6A E1 01 00 F4 03 04 00 DC 8E 45 67 B6 04 01 00 00 C8 AA 82 4E 95 76 E0 B8 [15:02:41]CommunicateWithHost err = 0 [15:02:41]CheckOFDResponse [15:02:41]1017 (14) - 77093643461234 [15:02:41]1041 (16) - 0000000000874881 [15:02:41]1040 (4) - 123242 [15:02:41]1012 (4) - 26.11.2024 09:03 [15:02:41]1206 (1) - 0 [15:02:41]OFD Sender: Remove packet 123242 [15:02:41]ProducePacketName [15:02:41]name=ofd_packets/00123242 [15:02:41]NVStorageDeleteData [15:02:41]Write to MH i2c: 01 00 00 60 63 C3 [15:02:41]Write i2c OK [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: 01 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: 01 07 00 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: 01 07 00 60 63 00 00 00 00 00 5E 0C 34 [15:02:41]RasterBufferAndPrint [15:02:41]line [15:02:41]line [15:02:41]line [15:02:41]line [15:02:41]line [15:02:41]written 0, free lines is 3172 [15:02:41]MH_Cut [15:02:41]Write to MH i2c: D1 01 00 67 63 01 9C [15:02:41]Write i2c OK [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: D1 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: D1 01 00 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: D1 01 00 67 63 00 9B [15:02:41]Write to MH i2c: 01 00 00 68 63 CB [15:02:41]Write i2c OK [15:02:41]MH_I2C_Read... [15:02:41]OFD Sender: No OFD packet to send [15:02:42]*** Cut start [15:02:42]*** Partial cut [15:02:42]*** CUTSNS_PIN = 1 [15:02:43]*** CUTSNS_PIN = 0 [15:02:43]*** Brake cut motor [15:02:43]Read from MH i2c: 01 [15:02:43]MH_I2C_Read... [15:02:43]*** Stop cut motor [15:02:43]*** Cut end [15:02:43]Read from MH i2c: 01 07 00 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: 01 07 00 68 63 00 00 00 00 00 FF 0F E0 [15:02:43]process_action close_receipt done [15:02:43]requested_data is exist [15:02:43]produce_requested_data [15:02:43]requested_item fm.sn is exist - process it [15:02:43]wFMCommunicate request_size=4 [15:02:43]MH_SAM_APDU [15:02:43]CAPDU: 80 11 00 00 [15:02:43]Write to MH i2c: E2 08 00 69 63 80 11 00 00 00 00 00 00 46 [15:02:43]Write i2c OK [15:02:43]MH_I2C_Read... [15:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:43]Read from MH i2c: E2 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: E2 17 00 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: E2 17 00 69 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 9D [15:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:02:43]wFMCommunicate OK [15:02:43]requested_item fd.num is exist - process it [15:02:43]SAM_PROTO_GetFieldsCounters [15:02:43]wFMCommunicate request_size=4 [15:02:43]MH_SAM_APDU [15:02:43]CAPDU: 80 13 00 00 [15:02:43]Write to MH i2c: E2 08 00 6A 63 80 13 00 00 00 00 00 00 49 [15:02:43]Write i2c OK [15:02:43]MH_I2C_Read... [15:02:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:43]Read from MH i2c: E2 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: E2 62 00 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: E2 62 00 6A 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6A E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [15:02:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6A E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:02:43]wFMCommunicate OK [15:02:43]SAM_PROTO_GetFieldsCounters done [15:02:43]requested_item shift.num is exist - process it [15:02:43]requested_item shift.opened is exist - process it [15:02:43]req_shift_opened [15:02:43]FM_GetShiftState [15:02:43]SAM_PROTO_GetShiftState [15:02:43]wFMCommunicate request_size=4 [15:02:43]MH_SAM_APDU [15:02:43]CAPDU: 80 13 01 00 [15:02:43]Write to MH i2c: E2 08 00 6B 63 80 13 01 00 00 00 00 00 4B [15:02:43]Write i2c OK [15:02:43]MH_I2C_Read... [15:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:43]Read from MH i2c: E2 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: E2 0E 00 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: E2 0E 00 6B 63 00 09 00 01 98 11 45 67 00 00 00 00 90 00 AC [15:02:43]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:02:43]wFMCommunicate OK [15:02:43]SAM_PROTO_GetShiftState done [15:02:43]FM_GetShiftState done [15:02:43]req_shift_opened done [15:02:43]requested_item shift.open_date is exist - process it [15:02:43]req_shift_open_date [15:02:43]req_shift_open_date done [15:02:43]produce_requested_data done [15:02:43]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123242,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [15:02:43]process_action_free close_receipt [15:02:43]json_value_free [15:02:43]json_value_free done [15:02:43]process_json_proto returns [15:02:43]Send response to host [15:02:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123242,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [15:02:43]free response buf [15:02:43]execute_script done [15:02:43]execute_script returns [15:02:43]free content buf [15:02:43]Sock 9.Close socket [15:02:43]Sock 9.Thread stoped [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:21]accept exits with 7 [15:05:21]New connection [15:05:21]New thread 3066580324 created [15:05:21]Thread 3066723684 joined [15:05:21]Waiting for new connection... [15:05:21] Sock 7.Parse request [15:05:21]Sock 7.Check first char [15:05:21]Sock 7.First char is OK [15:05:21]request: POST /json_proto HTTP/1.0 [15:05:21]Method: POST [15:05:21]URL: /json_proto [15:05:21]Method is POST - this is cgi request [15:05:21]url: /json_proto [15:05:21]query_string will be loaded in cgi processing [15:05:21]execute_cgi json_proto POST (null) [15:05:21]execute_cgi path=json_proto method=POST [15:05:21]POST find Content-Length [15:05:21]Host: 172.17.37.4:8080 [15:05:21]Content-Length: 804 [15:05:21]Content-Type: application/json [15:05:21] [15:05:21]POST finish read [15:05:21]Found Content-Length = 804 [15:05:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 1.740, "sum" : 130.33, "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" : 130.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:21]execute_script... [15:05:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 1.740, "sum" : 130.33, "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" : 130.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:21]POST & json_proto [15:05:21]process_json_proto [15:05:21]json parsed OK: [15:05:21]protocol is kg_v1.0 [15:05:21]action value=close_receipt [15:05:21]process_action close_receipt [15:05:21]cmd_close_receipt [15:05:21]MH_GetDate [15:05:21]Write to MH i2c: F0 00 00 6C 63 BE [15:05:21]Write i2c OK [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: F0 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: F0 09 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: F0 09 00 6C 63 00 BC E3 45 67 B8 5A 43 67 CE [15:05:21]GetLastDocTimeStamp 1732633370 [15:05:21]current date 1732633532 [15:05:21]FM_GetShiftState [15:05:21]SAM_PROTO_GetShiftState [15:05:21]wFMCommunicate request_size=4 [15:05:21]MH_SAM_APDU [15:05:21]CAPDU: 80 13 01 00 [15:05:21]Write to MH i2c: E2 08 00 6D 63 80 13 01 00 00 00 00 00 4D [15:05:21]Write i2c OK [15:05:21]MH_I2C_Read... [15:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:21]Read from MH i2c: E2 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 0E 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 0E 00 6D 63 00 09 00 01 98 11 45 67 00 00 00 00 90 00 AE [15:05:21]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:05:21]wFMCommunicate OK [15:05:21]SAM_PROTO_GetShiftState done [15:05:21]FM_GetShiftState done [15:05:21]opened in 1732579736 [15:05:21]opened+sec_in_day 1732666136 [15:05:21]quantity*price = 13032 [15:05:21]sum+1 = 13034 [15:05:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.33 НСП 1% : 1.15 НДС 12% : 13.84 Наличными: 0.00 Безнал.: 130.33 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 97 26.11.2024 15:05 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123243 ФПД: 123521970493351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T150532&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123243&fm=123521970493351&tin=02508201610067®Number=0000000000092681&sum=13033 [15:05:22]StoreToDocumentArchive [15:05:22]shift 557 fd 123243 [15:05:22]save to /storage/0557/doc_00123243 [15:05:22]save last doc name /storage/0557/doc_00123243 to /storage/kkm_last_doc_name [15:05:22]save OK [15:05:22]Clear old archive folders... [15:05:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:05:22]tlvbuf is 02068940 [15:05:22]SAM_PROTO_ClearQueue [15:05:22]wFMCommunicate request_size=4 [15:05:22]MH_SAM_APDU [15:05:22]CAPDU: 80 09 00 00 [15:05:22]Write to MH i2c: E2 08 00 7A 63 80 09 00 00 00 00 00 00 4F [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:22]Read from MH i2c: E2 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 7A 63 00 90 00 51 [15:05:22]RAPDU: 90 00 [15:05:22]wFMCommunicate OK [15:05:22]SAM_PROTO_ClearQueue done [15:05:22]KKMCreateOFDPacket [15:05:22]OFDProtocolAddRootSTLVToBuf [15:05:22]FM_MakeSignedData [15:05:22]FM_MakeSignedData [15:05:22]SAM_PROTO_SignData [15:05:22]wFMCommunicate request_size=4 [15:05:22]MH_SAM_APDU [15:05:22]CAPDU: 80 0D 01 02 [15:05:22]Write to MH i2c: E2 08 00 7B 63 80 0D 01 02 00 00 00 00 57 [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:22]Read from MH i2c: E2 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 7B 63 00 90 00 52 [15:05:22]RAPDU: 90 00 [15:05:22]wFMCommunicate OK [15:05:22]wFMCommunicate request_size=255 [15:05:22]MH_SAM_APDU [15:05:22]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 35 FF 03 08 00 03 CC 06 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E9 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 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 68 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 BC E3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6B E1 01 00 35 04 06 00 [15:05:22]Write to MH i2c: E2 02 01 7C 63 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 35 FF 03 08 00 03 CC 06 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E9 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 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 68 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 BC E3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6B E1 01 00 35 04 06 00 00 00 2B [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:23]Read from MH i2c: E2 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 03 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 03 00 7C 63 00 90 00 53 [15:05:23]RAPDU: 90 00 [15:05:23]wFMCommunicate OK [15:05:23]wFMCommunicate request_size=11 [15:05:23]MH_SAM_APDU [15:05:23]CAPDU: 80 0D 02 02 06 70 57 B3 2C 57 A7 [15:05:23]Write to MH i2c: E2 0E 00 7D 63 80 0D 02 02 06 00 70 57 B3 2C 57 A7 00 00 0A [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:23]Read from MH i2c: E2 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 03 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 03 00 7D 63 00 90 00 54 [15:05:23]RAPDU: 90 00 [15:05:23]wFMCommunicate OK [15:05:23]wFMCommunicate request_size=4 [15:05:23]MH_SAM_APDU [15:05:23]CAPDU: 80 0D 03 02 [15:05:23]Write to MH i2c: E2 08 00 7E 63 80 0D 03 02 00 00 00 00 5C [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:23]Read from MH i2c: E2 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 0B 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 0B 00 7E 63 00 C8 21 35 F1 0F C2 CB D8 90 00 E0 [15:05:23]RAPDU: C8 21 35 F1 0F C2 CB D8 90 00 [15:05:23]wFMCommunicate OK [15:05:23]SAM_PROTO_SignData done [15:05:23]FM_MakeSignedData done [15:05:23]CreateOFDProtocolMessage [15:05:23]wFMCommunicate request_size=4 [15:05:23]MH_SAM_APDU [15:05:23]CAPDU: 80 11 00 00 [15:05:23]Write to MH i2c: E2 08 00 7F 63 80 11 00 00 00 00 00 00 5C [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:23]Read from MH i2c: E2 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 17 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 17 00 7F 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B3 [15:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:05:23]wFMCommunicate OK [15:05:23]CreateOFDProtocolMessage done [15:05:23]OFDSenderStorePacket 123243 [15:05:23]StoreOFDPacket docnum=123243 [15:05:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 E0 FA 08 01 F2 AE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 06 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E9 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 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 68 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 BC E3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6B E1 01 00 35 04 06 00 70 57 B3 2C 57 A7 C8 21 35 F1 0F C2 CB D8 [15:05:23]CheckFolder [15:05:23]dirname=/storage/ofd_packets [15:05:23]CheckFolder done [15:05:23]ProducePacketName [15:05:23]name=ofd_packets/00123243 [15:05:23]NVStorageSaveData ofd_packets/00123243 [15:05:23]File name is /storage/ofd_packets/00123243 [15:05:23]Write 302 bytes [15:05:23]NVStorageSaveData done [15:05:23]OFDSenderStorePacket done [15:05:23]KKMCreateOFDPacket done [15:05:23]NVStorageSaveData kkm_last_timestamp [15:05:23]File name is /storage/kkm_last_timestamp [15:05:23]Write 4 bytes [15:05:23]NVStorageSaveData done [15:05:23]ExternCall_PrintAddStr [15:05:23]wPrintStart [15:05:23]Write to MH i2c: 01 00 00 80 63 E3 [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: 01 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: 01 07 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: 01 07 00 80 63 00 00 00 00 00 FF 0F F8 [15:05:23]RasterBufferAndPrint [15:05:23]line Счет N : (1)718074 [15:05:23]line ИНН: 02508201610067 [15:05:23]line Контрольно-Кассовый Чек [15:05:23]line ПРОДАЖА [15:05:23]line ТРК (МРК, ГНК) : 6 [15:05:23]line Товар: 2710194210 [15:05:23]line ДТ(л)-К-5 [15:05:23]line 1.740 * 74.90 [15:05:23]line = 130.33 [15:05:23]line НДС 12% НСП 1% [15:05:23]line > о реализуемом товаре [15:05:23]line ИТОГО: 130.33 [15:05:23]line НСП 1% : 1.15 [15:05:23]line НДС 12% : 13.84 [15:05:23]line Наличными: 0.00 [15:05:23]line Безнал.: 130.33 [15:05:23]line Место: АЗС № 64 "Партнер Нефть" [15:05:23]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:05:23]line СНО: Общий режим [15:05:23]line Чек 97 26.11.2024 15:05 [15:05:23]line Смена: 557 ФФД: 1.0 [15:05:23]line ЗНМ: 0300000033 [15:05:23]line РНМ: 0000000000092681 [15:05:23]line Версия ККМ: 001 [15:05:23]line Платежная система: O! деньги [15:05:23]line ФМ: 0000000000874881 [15:05:23]line ФД: 123243 [15:05:23]line ФПД: 123521970493351 [15:05:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T150532&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123243&fm=123521970493351&tin=02508201610067®Number=0000000000092681&sum=13033 [15:05:23]OFD Sender: Processing packet 123243 [packets to send 7, broken 6] [15:05:23]ProducePacketName [15:05:23]name=ofd_packets/00123243 [15:05:23]OFD Sender: To server: pG, [15:05:23]CommunicateWithHost lk.salyk.kg:30040 [15:05:23]ConnectInit lk.salyk.kg [15:05:23]written 0, free lines is 4095 [15:05:23]Connected sock=10 [15:05:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 E0 FA 08 01 F2 AE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 06 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E9 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 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 68 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 BC E3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6B E1 01 00 35 04 06 00 70 57 B3 2C 57 A7 C8 21 35 F1 0F C2 CB D8 [15:05:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 3F ED 47 00 6B 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6B E1 01 00 F4 03 04 00 7E 8F 45 67 B6 04 01 00 00 A7 41 83 7E FB 5B 96 14 [15:05:23]CommunicateWithHost err = 0 [15:05:23]CheckOFDResponse [15:05:23]1017 (14) - 77093643461234 [15:05:23]1041 (16) - 0000000000874881 [15:05:23]1040 (4) - 123243 [15:05:23]1012 (4) - 26.11.2024 09:06 [15:05:23]1206 (1) - 0 [15:05:23]OFD Sender: Remove packet 123243 [15:05:23]ProducePacketName [15:05:23]name=ofd_packets/00123243 [15:05:23]NVStorageDeleteData [15:05:23]Write to MH i2c: 01 00 00 AA 63 0D [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: 01 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: 01 07 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: 01 07 00 AA 63 00 00 00 00 00 63 0C 83 [15:05:23]RasterBufferAndPrint [15:05:23]line [15:05:23]line [15:05:23]line [15:05:23]line [15:05:23]line [15:05:23]written 0, free lines is 3176 [15:05:23]MH_Cut [15:05:23]Write to MH i2c: D1 01 00 B1 63 01 E6 [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: D1 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: D1 01 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: D1 01 00 B1 63 00 E5 [15:05:23]Write to MH i2c: 01 00 00 B2 63 15 [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:24]OFD Sender: No OFD packet to send [15:05:25]*** Cut start [15:05:25]*** Partial cut [15:05:25]*** CUTSNS_PIN = 1 [15:05:25]*** CUTSNS_PIN = 0 [15:05:25]*** Brake cut motor [15:05:25]Read from MH i2c: 01 [15:05:25]MH_I2C_Read... [15:05:25]*** Stop cut motor [15:05:25]*** Cut end [15:05:25]Read from MH i2c: 01 07 00 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: 01 07 00 B2 63 00 00 00 00 00 FF 0F 2A [15:05:25]process_action close_receipt done [15:05:25]requested_data is exist [15:05:25]produce_requested_data [15:05:25]requested_item fm.sn is exist - process it [15:05:25]wFMCommunicate request_size=4 [15:05:25]MH_SAM_APDU [15:05:25]CAPDU: 80 11 00 00 [15:05:25]Write to MH i2c: E2 08 00 B3 63 80 11 00 00 00 00 00 00 90 [15:05:25]Write i2c OK [15:05:25]MH_I2C_Read... [15:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:25]Read from MH i2c: E2 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: E2 17 00 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: E2 17 00 B3 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E7 [15:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:05:25]wFMCommunicate OK [15:05:25]requested_item fd.num is exist - process it [15:05:25]SAM_PROTO_GetFieldsCounters [15:05:25]wFMCommunicate request_size=4 [15:05:25]MH_SAM_APDU [15:05:25]CAPDU: 80 13 00 00 [15:05:25]Write to MH i2c: E2 08 00 B4 63 80 13 00 00 00 00 00 00 93 [15:05:25]Write i2c OK [15:05:25]MH_I2C_Read... [15:05:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:26]Read from MH i2c: E2 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 62 00 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 62 00 B4 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6B E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [15:05:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6B E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:26]wFMCommunicate OK [15:05:26]SAM_PROTO_GetFieldsCounters done [15:05:26]requested_item shift.num is exist - process it [15:05:26]requested_item shift.opened is exist - process it [15:05:26]req_shift_opened [15:05:26]FM_GetShiftState [15:05:26]SAM_PROTO_GetShiftState [15:05:26]wFMCommunicate request_size=4 [15:05:26]MH_SAM_APDU [15:05:26]CAPDU: 80 13 01 00 [15:05:26]Write to MH i2c: E2 08 00 B5 63 80 13 01 00 00 00 00 00 95 [15:05:26]Write i2c OK [15:05:26]MH_I2C_Read... [15:05:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:26]Read from MH i2c: E2 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 0E 00 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 0E 00 B5 63 00 09 00 01 98 11 45 67 00 00 00 00 90 00 F6 [15:05:26]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:05:26]wFMCommunicate OK [15:05:26]SAM_PROTO_GetShiftState done [15:05:26]FM_GetShiftState done [15:05:26]req_shift_opened done [15:05:26]requested_item shift.open_date is exist - process it [15:05:26]req_shift_open_date [15:05:26]req_shift_open_date done [15:05:26]produce_requested_data done [15:05:26]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123243,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [15:05:26]process_action_free close_receipt [15:05:26]json_value_free [15:05:26]json_value_free done [15:05:26]process_json_proto returns [15:05:26]Send response to host [15:05:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123243,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [15:05:26]free response buf [15:05:26]execute_script done [15:05:26]execute_script returns [15:05:26]free content buf [15:05:26]Sock 7.Close socket [15:05:26]Sock 7.Thread stoped [15:05:29]OFD Sender: No OFD packet to send [15:05:33]accept exits with 9 [15:05:33]New connection [15:05:33]New thread 3066723684 created [15:05:33]Thread 3066580324 joined [15:05:33]Waiting for new connection... [15:05:33] Sock 9.Parse request [15:05:33]Sock 9.Check first char [15:05:33]Sock 9.First char is OK [15:05:33]request: POST /json_proto HTTP/1.0 [15:05:33]Method: POST [15:05:33]URL: /json_proto [15:05:33]Method is POST - this is cgi request [15:05:33]url: /json_proto [15:05:33]query_string will be loaded in cgi processing [15:05:33]execute_cgi json_proto POST (null) [15:05:33]execute_cgi path=json_proto method=POST [15:05:33]POST find Content-Length [15:05:33]Host: 172.17.37.4:8080 [15:05:33]Content-Length: 681 [15:05:33]Content-Type: application/json [15:05:33] [15:05:33]POST finish read [15:05:33]Found Content-Length = 681 [15:05:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 2.940, "sum" : 220.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:33]execute_script... [15:05:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 2.940, "sum" : 220.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:33]POST & json_proto [15:05:33]process_json_proto [15:05:33]json parsed OK: [15:05:33]protocol is kg_v1.0 [15:05:33]action value=close_receipt [15:05:33]process_action close_receipt [15:05:33]cmd_close_receipt [15:05:33]MH_GetDate [15:05:33]Write to MH i2c: F0 00 00 B6 63 08 [15:05:33]Write i2c OK [15:05:33]MH_I2C_Read... [15:05:33]Read from MH i2c: F0 [15:05:33]MH_I2C_Read... [15:05:33]Read from MH i2c: F0 09 00 [15:05:33]MH_I2C_Read... [15:05:33]Read from MH i2c: F0 09 00 B6 63 00 C8 E3 45 67 B8 5A 43 67 24 [15:05:33]GetLastDocTimeStamp 1732633532 [15:05:33]current date 1732633544 [15:05:33]FM_GetShiftState [15:05:33]SAM_PROTO_GetShiftState [15:05:33]wFMCommunicate request_size=4 [15:05:33]MH_SAM_APDU [15:05:33]CAPDU: 80 13 01 00 [15:05:33]Write to MH i2c: E2 08 00 B7 63 80 13 01 00 00 00 00 00 97 [15:05:33]Write i2c OK [15:05:33]MH_I2C_Read... [15:05:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:33]Read from MH i2c: E2 [15:05:33]MH_I2C_Read... [15:05:33]Read from MH i2c: E2 0E 00 [15:05:33]MH_I2C_Read... [15:05:33]Read from MH i2c: E2 0E 00 B7 63 00 09 00 01 98 11 45 67 00 00 00 00 90 00 F8 [15:05:33]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:05:33]wFMCommunicate OK [15:05:33]SAM_PROTO_GetShiftState done [15:05:33]FM_GetShiftState done [15:05:33]opened in 1732579736 [15:05:33]opened+sec_in_day 1732666136 [15:05:33]quantity*price = 22020 [15:05:33]sum+1 = 22022 [15:05:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.38 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 98 26.11.2024 15:05 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123244 ФПД: 225430159329690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T150544&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123244&fm=225430159329690&tin=02508201610067®Number=0000000000092681&sum=22000 [15:05:34]StoreToDocumentArchive [15:05:34]shift 557 fd 123244 [15:05:34]save to /storage/0557/doc_00123244 [15:05:34]save last doc name /storage/0557/doc_00123244 to /storage/kkm_last_doc_name [15:05:34]save OK [15:05:34]Clear old archive folders... [15:05:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:05:34]tlvbuf is 021AB900 [15:05:34]SAM_PROTO_ClearQueue [15:05:34]wFMCommunicate request_size=4 [15:05:34]MH_SAM_APDU [15:05:34]CAPDU: 80 09 00 00 [15:05:34]Write to MH i2c: E2 08 00 C4 63 80 09 00 00 00 00 00 00 99 [15:05:34]Write i2c OK [15:05:34]MH_I2C_Read... [15:05:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:34]Read from MH i2c: E2 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 03 00 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 03 00 C4 63 00 90 00 9B [15:05:34]RAPDU: 90 00 [15:05:34]wFMCommunicate OK [15:05:34]SAM_PROTO_ClearQueue done [15:05:34]KKMCreateOFDPacket [15:05:34]OFDProtocolAddRootSTLVToBuf [15:05:34]FM_MakeSignedData [15:05:34]FM_MakeSignedData [15:05:34]SAM_PROTO_SignData [15:05:34]wFMCommunicate request_size=4 [15:05:34]MH_SAM_APDU [15:05:34]CAPDU: 80 0D 01 02 [15:05:34]Write to MH i2c: E2 08 00 C5 63 80 0D 01 02 00 00 00 00 A1 [15:05:34]Write i2c OK [15:05:34]MH_I2C_Read... [15:05:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:34]Read from MH i2c: E2 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 03 00 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 03 00 C5 63 00 90 00 9C [15:05:34]RAPDU: 90 00 [15:05:34]wFMCommunicate OK [15:05:34]wFMCommunicate request_size=255 [15:05:34]MH_SAM_APDU [15:05:34]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 35 FF 03 08 00 03 7C 0B 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 05 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 C8 E3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6C E1 01 00 35 04 06 00 [15:05:34]Write to MH i2c: E2 02 01 C6 63 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 35 FF 03 08 00 03 7C 0B 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 05 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 C8 E3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6C E1 01 00 35 04 06 00 00 00 DA [15:05:34]Write i2c OK [15:05:34]MH_I2C_Read... [15:05:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:34]Read from MH i2c: E2 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 03 00 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 03 00 C6 63 00 90 00 9D [15:05:34]RAPDU: 90 00 [15:05:34]wFMCommunicate OK [15:05:34]wFMCommunicate request_size=11 [15:05:34]MH_SAM_APDU [15:05:34]CAPDU: 80 0D 02 02 06 CD 07 0C 91 89 9A [15:05:34]Write to MH i2c: E2 0E 00 C7 63 80 0D 02 02 06 00 CD 07 0C 91 89 9A 00 00 44 [15:05:34]Write i2c OK [15:05:34]MH_I2C_Read... [15:05:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:34]Read from MH i2c: E2 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 03 00 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 03 00 C7 63 00 90 00 9E [15:05:34]RAPDU: 90 00 [15:05:34]wFMCommunicate OK [15:05:34]wFMCommunicate request_size=4 [15:05:34]MH_SAM_APDU [15:05:34]CAPDU: 80 0D 03 02 [15:05:34]Write to MH i2c: E2 08 00 C8 63 80 0D 03 02 00 00 00 00 A6 [15:05:34]Write i2c OK [15:05:34]MH_I2C_Read... [15:05:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:34]Read from MH i2c: E2 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 0B 00 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 0B 00 C8 63 00 31 2F B1 B4 B7 41 2E F7 90 00 89 [15:05:34]RAPDU: 31 2F B1 B4 B7 41 2E F7 90 00 [15:05:34]wFMCommunicate OK [15:05:34]SAM_PROTO_SignData done [15:05:34]FM_MakeSignedData done [15:05:34]CreateOFDProtocolMessage [15:05:34]wFMCommunicate request_size=4 [15:05:34]MH_SAM_APDU [15:05:34]CAPDU: 80 11 00 00 [15:05:34]Write to MH i2c: E2 08 00 C9 63 80 11 00 00 00 00 00 00 A6 [15:05:34]Write i2c OK [15:05:34]MH_I2C_Read... [15:05:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:34]Read from MH i2c: E2 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 17 00 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 17 00 C9 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FD [15:05:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:05:34]wFMCommunicate OK [15:05:34]CreateOFDProtocolMessage done [15:05:34]OFDSenderStorePacket 123244 [15:05:34]StoreOFDPacket docnum=123244 [15:05:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 67 E7 08 01 39 6A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 0B 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 05 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 C8 E3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6C E1 01 00 35 04 06 00 CD 07 0C 91 89 9A 31 2F B1 B4 B7 41 2E F7 [15:05:34]CheckFolder [15:05:34]dirname=/storage/ofd_packets [15:05:34]CheckFolder done [15:05:34]ProducePacketName [15:05:34]name=ofd_packets/00123244 [15:05:34]NVStorageSaveData ofd_packets/00123244 [15:05:34]File name is /storage/ofd_packets/00123244 [15:05:34]Write 302 bytes [15:05:34]NVStorageSaveData done [15:05:34]OFDSenderStorePacket done [15:05:34]KKMCreateOFDPacket done [15:05:34]NVStorageSaveData kkm_last_timestamp [15:05:34]File name is /storage/kkm_last_timestamp [15:05:34]Write 4 bytes [15:05:34]NVStorageSaveData done [15:05:34]ExternCall_PrintAddStr [15:05:34]wPrintStart [15:05:34]Write to MH i2c: 01 00 00 CA 63 2D [15:05:34]Write i2c OK [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: 01 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: 01 07 00 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: 01 07 00 CA 63 00 00 00 00 00 FF 0F 42 [15:05:34]RasterBufferAndPrint [15:05:34]line Счет N : (1)718075 [15:05:34]line ИНН: 02508201610067 [15:05:34]line Контрольно-Кассовый Чек [15:05:34]line ПРОДАЖА [15:05:34]line ТРК (МРК, ГНК) : 6 [15:05:34]line Товар: 2710194210 [15:05:34]line ДТ(л)-К-5 [15:05:34]line 2.940 * 74.90 [15:05:34]line = 220.21 [15:05:34]line НДС 12% НСП 1% [15:05:34]line > о реализуемом товаре [15:05:34]line ОКРУГЛЕНИЕ: -0.21 [15:05:34]line ИТОГО: 220.00 [15:05:34]line Внесено: 220.00 [15:05:34]line СДАЧА: 0.00 [15:05:34]line НСП 1% : 1.95 [15:05:34]line НДС 12% : 23.38 [15:05:34]line Наличными: 220.00 [15:05:34]line Безнал.: 0.00 [15:05:34]line Место: АЗС № 64 "Партнер Нефть" [15:05:34]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:05:34]line СНО: Общий режим [15:05:34]line Чек 98 26.11.2024 15:05 [15:05:34]line Смена: 557 ФФД: 1.0 [15:05:34]line ЗНМ: 0300000033 [15:05:34]line РНМ: 0000000000092681 [15:05:34]line Версия ККМ: 001 [15:05:34]line ФМ: 0000000000874881 [15:05:34]line ФД: 123244 [15:05:34]line ФПД: 225430159329690 [15:05:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T150544&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123244&fm=225430159329690&tin=02508201610067®Number=0000000000092681&sum=22000 [15:05:34]OFD Sender: Processing packet 123244 [packets to send 7, broken 6] [15:05:34]ProducePacketName [15:05:34]name=ofd_packets/00123244 [15:05:34]OFD Sender: To server: pG, [15:05:34]CommunicateWithHost lk.salyk.kg:30040 [15:05:34]ConnectInit lk.salyk.kg [15:05:34]written 0, free lines is 4095 [15:05:35]Connected sock=10 [15:05:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 67 E7 08 01 39 6A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 0B 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 05 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 C8 E3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6C E1 01 00 35 04 06 00 CD 07 0C 91 89 9A 31 2F B1 B4 B7 41 2E F7 [15:05:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 95 EB 47 00 9C 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6C E1 01 00 F4 03 04 00 8A 8F 45 67 B6 04 01 00 00 A2 5A 1A E5 32 3C 2F 0C [15:05:35]CommunicateWithHost err = 0 [15:05:35]CheckOFDResponse [15:05:35]1017 (14) - 77093643461234 [15:05:35]1041 (16) - 0000000000874881 [15:05:35]1040 (4) - 123244 [15:05:35]1012 (4) - 26.11.2024 09:06 [15:05:35]1206 (1) - 0 [15:05:35]OFD Sender: Remove packet 123244 [15:05:35]ProducePacketName [15:05:35]name=ofd_packets/00123244 [15:05:35]NVStorageDeleteData [15:05:35]Write to MH i2c: 01 00 00 F5 63 58 [15:05:35]Write i2c OK [15:05:35]MH_I2C_Read... [15:05:35]Read from MH i2c: 01 [15:05:35]MH_I2C_Read... [15:05:35]Read from MH i2c: 01 07 00 [15:05:35]MH_I2C_Read... [15:05:35]Read from MH i2c: 01 07 00 F5 63 00 00 00 00 00 5F 0C CA [15:05:35]RasterBufferAndPrint [15:05:35]line [15:05:35]line [15:05:35]line [15:05:35]line [15:05:35]line [15:05:35]written 0, free lines is 3173 [15:05:35]MH_Cut [15:05:35]Write to MH i2c: D1 01 00 FC 63 01 31 [15:05:35]Write i2c OK [15:05:35]MH_I2C_Read... [15:05:35]Read from MH i2c: D1 [15:05:35]MH_I2C_Read... [15:05:35]Read from MH i2c: D1 01 00 [15:05:35]MH_I2C_Read... [15:05:35]Read from MH i2c: D1 01 00 FC 63 00 30 [15:05:35]Write to MH i2c: 01 00 00 FD 63 60 [15:05:35]Write i2c OK [15:05:35]MH_I2C_Read... [15:05:35]OFD Sender: No OFD packet to send [15:05:36]*** Cut start [15:05:36]*** Partial cut [15:05:36]*** CUTSNS_PIN = 1 [15:05:36]*** CUTSNS_PIN = 0 [15:05:37]*** Brake cut motor [15:05:37]Read from MH i2c: 01 [15:05:37]MH_I2C_Read... [15:05:37]*** Stop cut motor [15:05:37]*** Cut end [15:05:37]Read from MH i2c: 01 07 00 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: 01 07 00 FD 63 00 00 00 00 00 FF 0F 75 [15:05:37]process_action close_receipt done [15:05:37]requested_data is exist [15:05:37]produce_requested_data [15:05:37]requested_item fm.sn is exist - process it [15:05:37]wFMCommunicate request_size=4 [15:05:37]MH_SAM_APDU [15:05:37]CAPDU: 80 11 00 00 [15:05:37]Write to MH i2c: E2 08 00 FE 63 80 11 00 00 00 00 00 00 DB [15:05:37]Write i2c OK [15:05:37]MH_I2C_Read... [15:05:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:37]Read from MH i2c: E2 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: E2 17 00 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: E2 17 00 FE 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 32 [15:05:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:05:37]wFMCommunicate OK [15:05:37]requested_item fd.num is exist - process it [15:05:37]SAM_PROTO_GetFieldsCounters [15:05:37]wFMCommunicate request_size=4 [15:05:37]MH_SAM_APDU [15:05:37]CAPDU: 80 13 00 00 [15:05:37]Write to MH i2c: E2 08 00 FF 63 80 13 00 00 00 00 00 00 DE [15:05:37]Write i2c OK [15:05:37]MH_I2C_Read... [15:05:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:37]Read from MH i2c: E2 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: E2 62 00 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: E2 62 00 FF 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6C E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [15:05:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6C E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:37]wFMCommunicate OK [15:05:37]SAM_PROTO_GetFieldsCounters done [15:05:37]requested_item shift.num is exist - process it [15:05:37]requested_item shift.opened is exist - process it [15:05:37]req_shift_opened [15:05:37]FM_GetShiftState [15:05:37]SAM_PROTO_GetShiftState [15:05:37]wFMCommunicate request_size=4 [15:05:37]MH_SAM_APDU [15:05:37]CAPDU: 80 13 01 00 [15:05:37]Write to MH i2c: E2 08 00 00 64 80 13 01 00 00 00 00 00 E1 [15:05:37]Write i2c OK [15:05:37]MH_I2C_Read... [15:05:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:37]Read from MH i2c: E2 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: E2 0E 00 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: E2 0E 00 00 64 00 09 00 01 98 11 45 67 00 00 00 00 90 00 42 [15:05:37]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:05:37]wFMCommunicate OK [15:05:37]SAM_PROTO_GetShiftState done [15:05:37]FM_GetShiftState done [15:05:37]req_shift_opened done [15:05:37]requested_item shift.open_date is exist - process it [15:05:37]req_shift_open_date [15:05:37]req_shift_open_date done [15:05:37]produce_requested_data done [15:05:37]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123244,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [15:05:37]process_action_free close_receipt [15:05:37]json_value_free [15:05:37]json_value_free done [15:05:37]process_json_proto returns [15:05:37]Send response to host [15:05:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123244,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [15:05:37]free response buf [15:05:37]execute_script done [15:05:37]execute_script returns [15:05:37]free content buf [15:05:37]Sock 9.Close socket [15:05:37]Sock 9.Thread stoped [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:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:24]accept exits with 7 [15:19:24]New connection [15:19:24]New thread 3066580324 created [15:19:24]Thread 3066723684 joined [15:19:24]Waiting for new connection... [15:19:24] Sock 7.Parse request [15:19:24]Sock 7.Check first char [15:19:24]Sock 7.First char is OK [15:19:24]request: POST /json_proto HTTP/1.0 [15:19:24]Method: POST [15:19:24]URL: /json_proto [15:19:24]Method is POST - this is cgi request [15:19:24]url: /json_proto [15:19:24]query_string will be loaded in cgi processing [15:19:24]execute_cgi json_proto POST (null) [15:19:24]execute_cgi path=json_proto method=POST [15:19:24]POST find Content-Length [15:19:24]Host: 172.17.37.4:8080 [15:19:24]Content-Length: 804 [15:19:24]Content-Type: application/json [15:19:24] [15:19:24]POST finish read [15:19:24]Found Content-Length = 804 [15:19:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 6.680, "sum" : 500.33, "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" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:24]execute_script... [15:19:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 6.680, "sum" : 500.33, "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" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:24]POST & json_proto [15:19:24]process_json_proto [15:19:24]json parsed OK: [15:19:24]protocol is kg_v1.0 [15:19:24]action value=close_receipt [15:19:24]process_action close_receipt [15:19:24]cmd_close_receipt [15:19:24]MH_GetDate [15:19:24]Write to MH i2c: F0 00 00 01 64 54 [15:19:24]Write i2c OK [15:19:24]MH_I2C_Read... [15:19:24]Read from MH i2c: F0 [15:19:24]MH_I2C_Read... [15:19:24]Read from MH i2c: F0 09 00 [15:19:24]MH_I2C_Read... [15:19:24]Read from MH i2c: F0 09 00 01 64 00 07 E7 45 67 B8 5A 43 67 B3 [15:19:24]GetLastDocTimeStamp 1732633544 [15:19:24]current date 1732634375 [15:19:24]FM_GetShiftState [15:19:24]SAM_PROTO_GetShiftState [15:19:24]wFMCommunicate request_size=4 [15:19:24]MH_SAM_APDU [15:19:24]CAPDU: 80 13 01 00 [15:19:24]Write to MH i2c: E2 08 00 02 64 80 13 01 00 00 00 00 00 E3 [15:19:24]Write i2c OK [15:19:24]MH_I2C_Read... [15:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:24]Read from MH i2c: E2 [15:19:24]MH_I2C_Read... [15:19:24]Read from MH i2c: E2 0E 00 [15:19:24]MH_I2C_Read... [15:19:24]Read from MH i2c: E2 0E 00 02 64 00 09 00 01 98 11 45 67 00 00 00 00 90 00 44 [15:19:24]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:19:24]wFMCommunicate OK [15:19:24]SAM_PROTO_GetShiftState done [15:19:24]FM_GetShiftState done [15:19:24]opened in 1732579736 [15:19:24]opened+sec_in_day 1732666136 [15:19:24]quantity*price = 50033 [15:19:24]sum+1 = 50034 [15:19:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 99 26.11.2024 15:19 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123245 ФПД: 10405729994255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T151935&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123245&fm=10405729994255&tin=02508201610067®Number=0000000000092681&sum=50033 [15:19:25]StoreToDocumentArchive [15:19:25]shift 557 fd 123245 [15:19:25]save to /storage/0557/doc_00123245 [15:19:25]save last doc name /storage/0557/doc_00123245 to /storage/kkm_last_doc_name [15:19:25]save OK [15:19:25]Clear old archive folders... [15:19:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:19:25]tlvbuf is 01F2F610 [15:19:25]SAM_PROTO_ClearQueue [15:19:25]wFMCommunicate request_size=4 [15:19:25]MH_SAM_APDU [15:19:25]CAPDU: 80 09 00 00 [15:19:25]Write to MH i2c: E2 08 00 0F 64 80 09 00 00 00 00 00 00 E5 [15:19:25]Write i2c OK [15:19:25]MH_I2C_Read... [15:19:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:25]Read from MH i2c: E2 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 03 00 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 03 00 0F 64 00 90 00 E7 [15:19:25]RAPDU: 90 00 [15:19:25]wFMCommunicate OK [15:19:25]SAM_PROTO_ClearQueue done [15:19:25]KKMCreateOFDPacket [15:19:25]OFDProtocolAddRootSTLVToBuf [15:19:25]FM_MakeSignedData [15:19:25]FM_MakeSignedData [15:19:25]SAM_PROTO_SignData [15:19:25]wFMCommunicate request_size=4 [15:19:25]MH_SAM_APDU [15:19:25]CAPDU: 80 0D 01 02 [15:19:25]Write to MH i2c: E2 08 00 10 64 80 0D 01 02 00 00 00 00 ED [15:19:25]Write i2c OK [15:19:25]MH_I2C_Read... [15:19:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:25]Read from MH i2c: E2 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 03 00 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 03 00 10 64 00 90 00 E8 [15:19:25]RAPDU: 90 00 [15:19:25]wFMCommunicate OK [15:19:25]wFMCommunicate request_size=255 [15:19:25]MH_SAM_APDU [15:19:25]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 07 E7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6D E1 01 00 35 04 06 00 [15:19:25]Write to MH i2c: E2 02 01 11 64 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 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 07 E7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6D E1 01 00 35 04 06 00 00 00 70 [15:19:25]Write i2c OK [15:19:25]MH_I2C_Read... [15:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:25]Read from MH i2c: E2 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 03 00 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 03 00 11 64 00 90 00 E9 [15:19:25]RAPDU: 90 00 [15:19:25]wFMCommunicate OK [15:19:25]wFMCommunicate request_size=11 [15:19:25]MH_SAM_APDU [15:19:25]CAPDU: 80 0D 02 02 06 09 76 C5 D7 06 0F [15:19:25]Write to MH i2c: E2 0E 00 12 64 80 0D 02 02 06 00 09 76 C5 D7 06 0F 00 00 2C [15:19:25]Write i2c OK [15:19:25]MH_I2C_Read... [15:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:25]Read from MH i2c: E2 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 03 00 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 03 00 12 64 00 90 00 EA [15:19:25]RAPDU: 90 00 [15:19:25]wFMCommunicate OK [15:19:25]wFMCommunicate request_size=4 [15:19:25]MH_SAM_APDU [15:19:25]CAPDU: 80 0D 03 02 [15:19:25]Write to MH i2c: E2 08 00 13 64 80 0D 03 02 00 00 00 00 F2 [15:19:25]Write i2c OK [15:19:25]MH_I2C_Read... [15:19:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:25]Read from MH i2c: E2 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 0B 00 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 0B 00 13 64 00 22 48 AA FE 56 92 93 ED 90 00 6D [15:19:25]RAPDU: 22 48 AA FE 56 92 93 ED 90 00 [15:19:25]wFMCommunicate OK [15:19:25]SAM_PROTO_SignData done [15:19:25]FM_MakeSignedData done [15:19:25]CreateOFDProtocolMessage [15:19:25]wFMCommunicate request_size=4 [15:19:25]MH_SAM_APDU [15:19:25]CAPDU: 80 11 00 00 [15:19:25]Write to MH i2c: E2 08 00 14 64 80 11 00 00 00 00 00 00 F2 [15:19:25]Write i2c OK [15:19:25]MH_I2C_Read... [15:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:25]Read from MH i2c: E2 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 17 00 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 17 00 14 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 49 [15:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:19:25]wFMCommunicate OK [15:19:25]CreateOFDProtocolMessage done [15:19:25]OFDSenderStorePacket 123245 [15:19:25]StoreOFDPacket docnum=123245 [15:19:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 E0 09 08 01 B4 5C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 07 E7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6D E1 01 00 35 04 06 00 09 76 C5 D7 06 0F 22 48 AA FE 56 92 93 ED [15:19:25]CheckFolder [15:19:25]dirname=/storage/ofd_packets [15:19:25]CheckFolder done [15:19:25]ProducePacketName [15:19:25]name=ofd_packets/00123245 [15:19:25]NVStorageSaveData ofd_packets/00123245 [15:19:25]File name is /storage/ofd_packets/00123245 [15:19:25]Write 302 bytes [15:19:25]NVStorageSaveData done [15:19:25]OFDSenderStorePacket done [15:19:25]KKMCreateOFDPacket done [15:19:25]NVStorageSaveData kkm_last_timestamp [15:19:25]File name is /storage/kkm_last_timestamp [15:19:25]Write 4 bytes [15:19:25]NVStorageSaveData done [15:19:25]ExternCall_PrintAddStr [15:19:25]wPrintStart [15:19:25]Write to MH i2c: 01 00 00 15 64 79 [15:19:25]Write i2c OK [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: 01 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: 01 07 00 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: 01 07 00 15 64 00 00 00 00 00 FF 0F 8E [15:19:25]RasterBufferAndPrint [15:19:25]line Счет N : (1)718076 [15:19:25]line ИНН: 02508201610067 [15:19:25]line Контрольно-Кассовый Чек [15:19:25]line ПРОДАЖА [15:19:25]line ТРК (МРК, ГНК) : 6 [15:19:25]line Товар: 2710194210 [15:19:25]line ДТ(л)-К-5 [15:19:25]line 6.680 * 74.90 [15:19:25]line = 500.33 [15:19:25]line НДС 12% НСП 1% [15:19:25]line > о реализуемом товаре [15:19:25]line ИТОГО: 500.33 [15:19:25]line НСП 1% : 4.43 [15:19:25]line НДС 12% : 53.13 [15:19:25]line Наличными: 0.00 [15:19:25]line Безнал.: 500.33 [15:19:25]line Место: АЗС № 64 "Партнер Нефть" [15:19:25]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:19:25]line СНО: Общий режим [15:19:25]line Чек 99 26.11.2024 15:19 [15:19:25]line Смена: 557 ФФД: 1.0 [15:19:25]line ЗНМ: 0300000033 [15:19:25]line РНМ: 0000000000092681 [15:19:25]line Версия ККМ: 001 [15:19:25]line Платежная система: O! деньги [15:19:25]line ФМ: 0000000000874881 [15:19:25]line ФД: 123245 [15:19:25]line ФПД: 10405729994255 [15:19:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T151935&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123245&fm=10405729994255&tin=02508201610067®Number=0000000000092681&sum=50033 [15:19:26]written 0, free lines is 4095 [15:19:26]OFD Sender: Processing packet 123245 [packets to send 7, broken 6] [15:19:26]ProducePacketName [15:19:26]name=ofd_packets/00123245 [15:19:26]OFD Sender: To server: pG, [15:19:26]CommunicateWithHost lk.salyk.kg:30040 [15:19:26]ConnectInit lk.salyk.kg [15:19:26]Connected sock=10 [15:19:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 E0 09 08 01 B4 5C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 07 E7 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6D E1 01 00 35 04 06 00 09 76 C5 D7 06 0F 22 48 AA FE 56 92 93 ED [15:19:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 3D 46 47 00 64 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6D E1 01 00 F4 03 04 00 C9 92 45 67 B6 04 01 00 00 05 33 A8 2C 73 27 E2 E8 [15:19:26]CommunicateWithHost err = 0 [15:19:26]CheckOFDResponse [15:19:26]1017 (14) - 77093643461234 [15:19:26]1041 (16) - 0000000000874881 [15:19:26]1040 (4) - 123245 [15:19:26]1012 (4) - 26.11.2024 09:20 [15:19:26]1206 (1) - 0 [15:19:26]OFD Sender: Remove packet 123245 [15:19:26]ProducePacketName [15:19:26]name=ofd_packets/00123245 [15:19:26]NVStorageDeleteData [15:19:26]Write to MH i2c: 01 00 00 3F 64 A3 [15:19:26]Write i2c OK [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: 01 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: 01 07 00 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: 01 07 00 3F 64 00 00 00 00 00 59 0C 0F [15:19:26]RasterBufferAndPrint [15:19:26]line [15:19:26]line [15:19:26]line [15:19:26]line [15:19:26]line [15:19:26]written 0, free lines is 3167 [15:19:26]MH_Cut [15:19:26]Write to MH i2c: D1 01 00 46 64 01 7C [15:19:26]Write i2c OK [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: D1 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: D1 01 00 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: D1 01 00 46 64 00 7B [15:19:26]Write to MH i2c: 01 00 00 47 64 AB [15:19:26]Write i2c OK [15:19:26]MH_I2C_Read... [15:19:26]OFD Sender: No OFD packet to send [15:19:27]*** Cut start [15:19:27]*** Partial cut [15:19:27]*** CUTSNS_PIN = 1 [15:19:28]*** CUTSNS_PIN = 0 [15:19:28]*** Brake cut motor [15:19:28]Read from MH i2c: 01 [15:19:28]MH_I2C_Read... [15:19:28]*** Stop cut motor [15:19:28]*** Cut end [15:19:28]Read from MH i2c: 01 07 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: 01 07 00 47 64 00 00 00 00 00 FF 0F C0 [15:19:28]process_action close_receipt done [15:19:28]requested_data is exist [15:19:28]produce_requested_data [15:19:28]requested_item fm.sn is exist - process it [15:19:28]wFMCommunicate request_size=4 [15:19:28]MH_SAM_APDU [15:19:28]CAPDU: 80 11 00 00 [15:19:28]Write to MH i2c: E2 08 00 48 64 80 11 00 00 00 00 00 00 26 [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:28]Read from MH i2c: E2 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 17 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 17 00 48 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 7D [15:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:19:28]wFMCommunicate OK [15:19:28]requested_item fd.num is exist - process it [15:19:28]SAM_PROTO_GetFieldsCounters [15:19:28]wFMCommunicate request_size=4 [15:19:28]MH_SAM_APDU [15:19:28]CAPDU: 80 13 00 00 [15:19:28]Write to MH i2c: E2 08 00 49 64 80 13 00 00 00 00 00 00 29 [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:28]Read from MH i2c: E2 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 62 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 62 00 49 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6D E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [15:19:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6D E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:28]wFMCommunicate OK [15:19:28]SAM_PROTO_GetFieldsCounters done [15:19:28]requested_item shift.num is exist - process it [15:19:28]requested_item shift.opened is exist - process it [15:19:28]req_shift_opened [15:19:28]FM_GetShiftState [15:19:28]SAM_PROTO_GetShiftState [15:19:28]wFMCommunicate request_size=4 [15:19:28]MH_SAM_APDU [15:19:28]CAPDU: 80 13 01 00 [15:19:28]Write to MH i2c: E2 08 00 4A 64 80 13 01 00 00 00 00 00 2B [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:28]Read from MH i2c: E2 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 0E 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 0E 00 4A 64 00 09 00 01 98 11 45 67 00 00 00 00 90 00 8C [15:19:28]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:19:28]wFMCommunicate OK [15:19:28]SAM_PROTO_GetShiftState done [15:19:28]FM_GetShiftState done [15:19:28]req_shift_opened done [15:19:28]requested_item shift.open_date is exist - process it [15:19:28]req_shift_open_date [15:19:28]req_shift_open_date done [15:19:28]produce_requested_data done [15:19:28]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123245,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [15:19:28]process_action_free close_receipt [15:19:28]json_value_free [15:19:28]json_value_free done [15:19:28]process_json_proto returns [15:19:28]Send response to host [15:19:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123245,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [15:19:28]free response buf [15:19:28]execute_script done [15:19:28]execute_script returns [15:19:28]free content buf [15:19:28]Sock 7.Close socket [15:19:28]Sock 7.Thread stoped [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:37]OFD Sender: No OFD packet to send [15:20:42]OFD Sender: No OFD packet to send [15:20:47]OFD Sender: No OFD packet to send [15:20:52]OFD Sender: No OFD packet to send [15:20:57]OFD Sender: No OFD packet to send [15:21:02]OFD Sender: No OFD packet to send [15:21:07]OFD Sender: No OFD packet to send [15:21:12]OFD Sender: No OFD packet to send [15:21:17]OFD Sender: No OFD packet to send [15:21:22]OFD Sender: No OFD packet to send [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:17]OFD Sender: No OFD packet to send [15:23:22]OFD Sender: No OFD packet to send [15:23:27]OFD Sender: No OFD packet to send [15:23:32]OFD Sender: No OFD packet to send [15:23:37]OFD Sender: No OFD packet to send [15:23:42]OFD Sender: No OFD packet to send [15:23:47]OFD Sender: No OFD packet to send [15:23:52]OFD Sender: No OFD packet to send [15:23:57]OFD Sender: No OFD packet to send [15:24:02]OFD Sender: No OFD packet to send [15:24:07]OFD Sender: No OFD packet to send [15:24:12]OFD Sender: No OFD packet to send [15:24:17]OFD Sender: No OFD packet to send [15:24:22]OFD Sender: No OFD packet to send [15:24:27]OFD Sender: No OFD packet to send [15:24:32]OFD Sender: No OFD packet to send [15:24:37]OFD Sender: No OFD packet to send [15:24:42]OFD Sender: No OFD packet to send [15:24:47]OFD Sender: No OFD packet to send [15:24:52]OFD Sender: No OFD packet to send [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:52]OFD Sender: No OFD packet to send [15:26:57]OFD Sender: No OFD packet to send [15:27:02]OFD Sender: No OFD packet to send [15:27:07]OFD Sender: No OFD packet to send [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:02]accept exits with 9 [15:31:02]New connection [15:31:02]New thread 3066723684 created [15:31:02]Thread 3066580324 joined [15:31:02]Waiting for new connection... [15:31:02] Sock 9.Parse request [15:31:02]Sock 9.Check first char [15:31:02]Sock 9.First char is OK [15:31:02]request: POST /json_proto HTTP/1.0 [15:31:02]Method: POST [15:31:02]URL: /json_proto [15:31:02]Method is POST - this is cgi request [15:31:02]url: /json_proto [15:31:02]query_string will be loaded in cgi processing [15:31:02]execute_cgi json_proto POST (null) [15:31:02]execute_cgi path=json_proto method=POST [15:31:02]POST find Content-Length [15:31:02]Host: 172.17.37.4:8080 [15:31:02]Content-Length: 677 [15:31:02]Content-Type: application/json [15:31:02] [15:31:02]POST finish read [15:31:02]Found Content-Length = 677 [15:31:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:02]execute_script... [15:31:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:02]POST & json_proto [15:31:02]process_json_proto [15:31:02]json parsed OK: [15:31:02]protocol is kg_v1.0 [15:31:02]action value=close_receipt [15:31:02]process_action close_receipt [15:31:02]cmd_close_receipt [15:31:02]MH_GetDate [15:31:02]Write to MH i2c: F0 00 00 4B 64 9E [15:31:02]Write i2c OK [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: F0 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: F0 09 00 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: F0 09 00 4B 64 00 C2 E9 45 67 B8 5A 43 67 BA [15:31:02]GetLastDocTimeStamp 1732634375 [15:31:02]current date 1732635074 [15:31:02]FM_GetShiftState [15:31:02]SAM_PROTO_GetShiftState [15:31:02]wFMCommunicate request_size=4 [15:31:02]MH_SAM_APDU [15:31:02]CAPDU: 80 13 01 00 [15:31:02]Write to MH i2c: E2 08 00 4C 64 80 13 01 00 00 00 00 00 2D [15:31:02]Write i2c OK [15:31:02]MH_I2C_Read... [15:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:02]Read from MH i2c: E2 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: E2 0E 00 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: E2 0E 00 4C 64 00 09 00 01 98 11 45 67 00 00 00 00 90 00 8E [15:31:02]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:31:02]wFMCommunicate OK [15:31:02]SAM_PROTO_GetShiftState done [15:31:02]FM_GetShiftState done [15:31:02]opened in 1732579736 [15:31:02]opened+sec_in_day 1732666136 [15:31:02]quantity*price = 20017 [15:31:02]sum+1 = 20019 [15:31:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 100 26.11.2024 15:31 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123246 ФПД: 51462274583502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T153114&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123246&fm=51462274583502&tin=02508201610067®Number=0000000000092681&sum=20000 [15:31:04]StoreToDocumentArchive [15:31:04]shift 557 fd 123246 [15:31:04]save to /storage/0557/doc_00123246 [15:31:04]save last doc name /storage/0557/doc_00123246 to /storage/kkm_last_doc_name [15:31:04]save OK [15:31:04]Clear old archive folders... [15:31:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:31:04]tlvbuf is 01F936D0 [15:31:04]SAM_PROTO_ClearQueue [15:31:04]wFMCommunicate request_size=4 [15:31:04]MH_SAM_APDU [15:31:04]CAPDU: 80 09 00 00 [15:31:04]Write to MH i2c: E2 08 00 59 64 80 09 00 00 00 00 00 00 2F [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:04]Read from MH i2c: E2 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 03 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 03 00 59 64 00 90 00 31 [15:31:04]RAPDU: 90 00 [15:31:04]wFMCommunicate OK [15:31:04]SAM_PROTO_ClearQueue done [15:31:04]KKMCreateOFDPacket [15:31:04]OFDProtocolAddRootSTLVToBuf [15:31:04]FM_MakeSignedData [15:31:04]FM_MakeSignedData [15:31:04]SAM_PROTO_SignData [15:31:04]wFMCommunicate request_size=4 [15:31:04]MH_SAM_APDU [15:31:04]CAPDU: 80 0D 01 02 [15:31:04]Write to MH i2c: E2 08 00 5A 64 80 0D 01 02 00 00 00 00 37 [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:04]Read from MH i2c: E2 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 03 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 03 00 5A 64 00 90 00 32 [15:31:04]RAPDU: 90 00 [15:31:04]wFMCommunicate OK [15:31:04]wFMCommunicate request_size=255 [15:31:04]MH_SAM_APDU [15:31:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 C2 E9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6E E1 01 00 35 04 06 00 2E [15:31:04]Write to MH i2c: E2 02 01 5B 64 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 C2 E9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6E E1 01 00 35 04 06 00 2E 00 00 23 [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:04]Read from MH i2c: E2 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 03 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 03 00 5B 64 00 90 00 33 [15:31:04]RAPDU: 90 00 [15:31:04]wFMCommunicate OK [15:31:04]wFMCommunicate request_size=10 [15:31:04]MH_SAM_APDU [15:31:04]CAPDU: 80 0D 02 02 05 CD FE 98 8B CE [15:31:04]Write to MH i2c: E2 0D 00 5C 64 80 0D 02 02 05 00 CD FE 98 8B CE 00 00 00 [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:04]Read from MH i2c: E2 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 03 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 03 00 5C 64 00 90 00 34 [15:31:04]RAPDU: 90 00 [15:31:04]wFMCommunicate OK [15:31:04]wFMCommunicate request_size=4 [15:31:04]MH_SAM_APDU [15:31:04]CAPDU: 80 0D 03 02 [15:31:04]Write to MH i2c: E2 08 00 5D 64 80 0D 03 02 00 00 00 00 3C [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:04]Read from MH i2c: E2 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 0B 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 0B 00 5D 64 00 6A 86 8B 95 A8 70 AB D2 90 00 E2 [15:31:04]RAPDU: 6A 86 8B 95 A8 70 AB D2 90 00 [15:31:04]wFMCommunicate OK [15:31:04]SAM_PROTO_SignData done [15:31:04]FM_MakeSignedData done [15:31:04]CreateOFDProtocolMessage [15:31:04]wFMCommunicate request_size=4 [15:31:04]MH_SAM_APDU [15:31:04]CAPDU: 80 11 00 00 [15:31:04]Write to MH i2c: E2 08 00 5E 64 80 11 00 00 00 00 00 00 3C [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:04]Read from MH i2c: E2 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 17 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 17 00 5E 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 93 [15:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:31:04]wFMCommunicate OK [15:31:04]CreateOFDProtocolMessage done [15:31:04]OFDSenderStorePacket 123246 [15:31:04]StoreOFDPacket docnum=123246 [15:31:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 9D 38 07 01 88 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 C2 E9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6E E1 01 00 35 04 06 00 2E CD FE 98 8B CE 6A 86 8B 95 A8 70 AB D2 [15:31:04]CheckFolder [15:31:04]dirname=/storage/ofd_packets [15:31:04]CheckFolder done [15:31:04]ProducePacketName [15:31:04]name=ofd_packets/00123246 [15:31:04]NVStorageSaveData ofd_packets/00123246 [15:31:04]File name is /storage/ofd_packets/00123246 [15:31:04]Write 301 bytes [15:31:04]NVStorageSaveData done [15:31:04]OFDSenderStorePacket done [15:31:04]KKMCreateOFDPacket done [15:31:04]NVStorageSaveData kkm_last_timestamp [15:31:04]File name is /storage/kkm_last_timestamp [15:31:04]Write 4 bytes [15:31:04]NVStorageSaveData done [15:31:04]ExternCall_PrintAddStr [15:31:04]wPrintStart [15:31:04]Write to MH i2c: 01 00 00 5F 64 C3 [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: 01 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: 01 07 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: 01 07 00 5F 64 00 00 00 00 00 FF 0F D8 [15:31:04]RasterBufferAndPrint [15:31:04]line Счет N : (1)718078 [15:31:04]line ИНН: 02508201610067 [15:31:04]line Контрольно-Кассовый Чек [15:31:04]line ПРОДАЖА [15:31:04]line ТРК (МРК, ГНК) : 22 [15:31:04]line Товар: 2710124130 [15:31:04]line Аи-92-К-4 [15:31:04]line 2.970 * 67.40 [15:31:04]line = 200.18 [15:31:04]line НДС 12% НСП 1% [15:31:04]line > о реализуемом товаре [15:31:04]line ОКРУГЛЕНИЕ: -0.18 [15:31:04]line ИТОГО: 200.00 [15:31:04]line Внесено: 200.00 [15:31:04]line СДАЧА: 0.00 [15:31:04]line НСП 1% : 1.77 [15:31:04]line НДС 12% : 21.26 [15:31:04]line Наличными: 200.00 [15:31:04]line Безнал.: 0.00 [15:31:04]line Место: АЗС № 64 "Партнер Нефть" [15:31:04]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:31:04]line СНО: Общий режим [15:31:04]line Чек 100 26.11.2024 15:31 [15:31:04]line Смена: 557 ФФД: 1.0 [15:31:04]line ЗНМ: 0300000033 [15:31:04]line РНМ: 0000000000092681 [15:31:04]line Версия ККМ: 001 [15:31:04]line ФМ: 0000000000874881 [15:31:04]line ФД: 123246 [15:31:04]line ФПД: 51462274583502 [15:31:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T153114&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123246&fm=51462274583502&tin=02508201610067®Number=0000000000092681&sum=20000 [15:31:04]OFD Sender: Processing packet 123246 [packets to send 7, broken 6] [15:31:04]ProducePacketName [15:31:04]name=ofd_packets/00123246 [15:31:04]OFD Sender: To server: pG, [15:31:04]CommunicateWithHost lk.salyk.kg:30040 [15:31:04]ConnectInit lk.salyk.kg [15:31:04]written 0, free lines is 4095 [15:31:05]Connected sock=10 [15:31:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 9D 38 07 01 88 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 C2 E9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6E E1 01 00 35 04 06 00 2E CD FE 98 8B CE 6A 86 8B 95 A8 70 AB D2 [15:31:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 CF 2D 47 00 FE C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6E E1 01 00 F4 03 04 00 84 95 45 67 B6 04 01 00 00 66 CB B6 D2 4D 47 5A 59 [15:31:05]CommunicateWithHost err = 0 [15:31:05]CheckOFDResponse [15:31:05]1017 (14) - 77093643461234 [15:31:05]1041 (16) - 0000000000874881 [15:31:05]1040 (4) - 123246 [15:31:05]1012 (4) - 26.11.2024 09:31 [15:31:05]1206 (1) - 0 [15:31:05]OFD Sender: Remove packet 123246 [15:31:05]ProducePacketName [15:31:05]name=ofd_packets/00123246 [15:31:05]NVStorageDeleteData [15:31:05]Write to MH i2c: 01 00 00 8A 64 EE [15:31:05]Write i2c OK [15:31:05]MH_I2C_Read... [15:31:05]Read from MH i2c: 01 [15:31:05]MH_I2C_Read... [15:31:05]Read from MH i2c: 01 07 00 [15:31:05]MH_I2C_Read... [15:31:05]Read from MH i2c: 01 07 00 8A 64 00 00 00 00 00 44 0C 45 [15:31:05]RasterBufferAndPrint [15:31:05]line [15:31:05]line [15:31:05]line [15:31:05]line [15:31:05]line [15:31:05]written 0, free lines is 3146 [15:31:05]MH_Cut [15:31:05]Write to MH i2c: D1 01 00 91 64 01 C7 [15:31:05]Write i2c OK [15:31:05]MH_I2C_Read... [15:31:05]Read from MH i2c: D1 [15:31:05]MH_I2C_Read... [15:31:05]Read from MH i2c: D1 01 00 [15:31:05]MH_I2C_Read... [15:31:05]Read from MH i2c: D1 01 00 91 64 00 C6 [15:31:05]Write to MH i2c: 01 00 00 92 64 F6 [15:31:05]Write i2c OK [15:31:05]MH_I2C_Read... [15:31:05]OFD Sender: No OFD packet to send [15:31:06]*** Cut start [15:31:06]*** Partial cut [15:31:06]*** CUTSNS_PIN = 1 [15:31:06]*** CUTSNS_PIN = 0 [15:31:07]*** Brake cut motor [15:31:07]Read from MH i2c: 01 [15:31:07]MH_I2C_Read... [15:31:07]*** Stop cut motor [15:31:07]*** Cut end [15:31:07]Read from MH i2c: 01 07 00 [15:31:07]MH_I2C_Read... [15:31:07]Read from MH i2c: 01 07 00 92 64 00 00 00 00 00 FF 0F 0B [15:31:07]process_action close_receipt done [15:31:07]requested_data is exist [15:31:07]produce_requested_data [15:31:07]requested_item fm.sn is exist - process it [15:31:07]wFMCommunicate request_size=4 [15:31:07]MH_SAM_APDU [15:31:07]CAPDU: 80 11 00 00 [15:31:07]Write to MH i2c: E2 08 00 93 64 80 11 00 00 00 00 00 00 71 [15:31:07]Write i2c OK [15:31:07]MH_I2C_Read... [15:31:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:07]Read from MH i2c: E2 [15:31:07]MH_I2C_Read... [15:31:07]Read from MH i2c: E2 17 00 [15:31:07]MH_I2C_Read... [15:31:07]Read from MH i2c: E2 17 00 93 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C8 [15:31:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:31:07]wFMCommunicate OK [15:31:07]requested_item fd.num is exist - process it [15:31:07]SAM_PROTO_GetFieldsCounters [15:31:07]wFMCommunicate request_size=4 [15:31:07]MH_SAM_APDU [15:31:07]CAPDU: 80 13 00 00 [15:31:07]Write to MH i2c: E2 08 00 94 64 80 13 00 00 00 00 00 00 74 [15:31:07]Write i2c OK [15:31:07]MH_I2C_Read... [15:31:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:07]Read from MH i2c: E2 [15:31:07]MH_I2C_Read... [15:31:07]Read from MH i2c: E2 62 00 [15:31:07]MH_I2C_Read... [15:31:07]Read from MH i2c: E2 62 00 94 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6E E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [15:31:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6E E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:07]wFMCommunicate OK [15:31:07]SAM_PROTO_GetFieldsCounters done [15:31:07]requested_item shift.num is exist - process it [15:31:07]requested_item shift.opened is exist - process it [15:31:07]req_shift_opened [15:31:07]FM_GetShiftState [15:31:07]SAM_PROTO_GetShiftState [15:31:07]wFMCommunicate request_size=4 [15:31:07]MH_SAM_APDU [15:31:07]CAPDU: 80 13 01 00 [15:31:07]Write to MH i2c: E2 08 00 95 64 80 13 01 00 00 00 00 00 76 [15:31:07]Write i2c OK [15:31:07]MH_I2C_Read... [15:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:07]Read from MH i2c: E2 [15:31:07]MH_I2C_Read... [15:31:07]Read from MH i2c: E2 0E 00 [15:31:07]MH_I2C_Read... [15:31:07]Read from MH i2c: E2 0E 00 95 64 00 09 00 01 98 11 45 67 00 00 00 00 90 00 D7 [15:31:07]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:31:07]wFMCommunicate OK [15:31:07]SAM_PROTO_GetShiftState done [15:31:07]FM_GetShiftState done [15:31:07]req_shift_opened done [15:31:07]requested_item shift.open_date is exist - process it [15:31:07]req_shift_open_date [15:31:07]req_shift_open_date done [15:31:07]produce_requested_data done [15:31:07]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123246,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [15:31:07]process_action_free close_receipt [15:31:07]json_value_free [15:31:07]json_value_free done [15:31:07]process_json_proto returns [15:31:07]Send response to host [15:31:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123246,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [15:31:07]free response buf [15:31:07]execute_script done [15:31:07]execute_script returns [15:31:07]free content buf [15:31:07]Sock 9.Close socket [15:31:07]Sock 9.Thread stoped [15:31:10]OFD Sender: No OFD packet to send [15:31:14]accept exits with 7 [15:31:14]New connection [15:31:14]New thread 3066580324 created [15:31:14]Thread 3066723684 joined [15:31:14]Waiting for new connection... [15:31:14] Sock 7.Parse request [15:31:14]Sock 7.Check first char [15:31:14]Sock 7.First char is OK [15:31:14]request: POST /json_proto HTTP/1.0 [15:31:14]Method: POST [15:31:14]URL: /json_proto [15:31:14]Method is POST - this is cgi request [15:31:14]url: /json_proto [15:31:14]query_string will be loaded in cgi processing [15:31:14]execute_cgi json_proto POST (null) [15:31:14]execute_cgi path=json_proto method=POST [15:31:14]POST find Content-Length [15:31:14]Host: 172.17.37.4:8080 [15:31:14]Content-Length: 819 [15:31:14]Content-Type: application/json [15:31:14] [15:31:14]POST finish read [15:31:14]Found Content-Length = 819 [15:31:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:14]execute_script... [15:31:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:14]POST & json_proto [15:31:14]process_json_proto [15:31:14]json parsed OK: [15:31:14]protocol is kg_v1.0 [15:31:14]action value=close_receipt [15:31:14]process_action close_receipt [15:31:14]cmd_close_receipt [15:31:14]MH_GetDate [15:31:14]Write to MH i2c: F0 00 00 96 64 E9 [15:31:14]Write i2c OK [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: F0 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: F0 09 00 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: F0 09 00 96 64 00 CE E9 45 67 B8 5A 43 67 11 [15:31:14]GetLastDocTimeStamp 1732635074 [15:31:14]current date 1732635086 [15:31:14]FM_GetShiftState [15:31:14]SAM_PROTO_GetShiftState [15:31:14]wFMCommunicate request_size=4 [15:31:14]MH_SAM_APDU [15:31:14]CAPDU: 80 13 01 00 [15:31:14]Write to MH i2c: E2 08 00 97 64 80 13 01 00 00 00 00 00 78 [15:31:14]Write i2c OK [15:31:14]MH_I2C_Read... [15:31:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:14]Read from MH i2c: E2 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: E2 0E 00 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: E2 0E 00 97 64 00 09 00 01 98 11 45 67 00 00 00 00 90 00 D9 [15:31:14]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:31:14]wFMCommunicate OK [15:31:14]SAM_PROTO_GetShiftState done [15:31:14]FM_GetShiftState done [15:31:14]opened in 1732579736 [15:31:14]opened+sec_in_day 1732666136 [15:31:14]quantity*price = 100021 [15:31:14]sum+1 = 100023 [15:31:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 101 26.11.2024 15:31 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123247 ФПД: 235685230109252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T153126&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123247&fm=235685230109252&tin=02508201610067®Number=0000000000092681&sum=100022 [15:31:16]StoreToDocumentArchive [15:31:16]shift 557 fd 123247 [15:31:16]save to /storage/0557/doc_00123247 [15:31:16]save last doc name /storage/0557/doc_00123247 to /storage/kkm_last_doc_name [15:31:16]save OK [15:31:16]Clear old archive folders... [15:31:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:31:16]tlvbuf is 01F427D0 [15:31:16]SAM_PROTO_ClearQueue [15:31:16]wFMCommunicate request_size=4 [15:31:16]MH_SAM_APDU [15:31:16]CAPDU: 80 09 00 00 [15:31:16]Write to MH i2c: E2 08 00 A4 64 80 09 00 00 00 00 00 00 7A [15:31:16]Write i2c OK [15:31:16]MH_I2C_Read... [15:31:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:16]Read from MH i2c: E2 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 03 00 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 03 00 A4 64 00 90 00 7C [15:31:16]RAPDU: 90 00 [15:31:16]wFMCommunicate OK [15:31:16]SAM_PROTO_ClearQueue done [15:31:16]KKMCreateOFDPacket [15:31:16]OFDProtocolAddRootSTLVToBuf [15:31:16]FM_MakeSignedData [15:31:16]FM_MakeSignedData [15:31:16]SAM_PROTO_SignData [15:31:16]wFMCommunicate request_size=4 [15:31:16]MH_SAM_APDU [15:31:16]CAPDU: 80 0D 01 02 [15:31:16]Write to MH i2c: E2 08 00 A5 64 80 0D 01 02 00 00 00 00 82 [15:31:16]Write i2c OK [15:31:16]MH_I2C_Read... [15:31:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:16]Read from MH i2c: E2 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 03 00 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 03 00 A5 64 00 90 00 7D [15:31:16]RAPDU: 90 00 [15:31:16]wFMCommunicate OK [15:31:16]wFMCommunicate request_size=255 [15:31:16]MH_SAM_APDU [15:31:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 CE E9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6F E1 01 00 35 04 06 00 D6 [15:31:16]Write to MH i2c: E2 02 01 A6 64 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 CE E9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6F E1 01 00 35 04 06 00 D6 00 00 23 [15:31:16]Write i2c OK [15:31:16]MH_I2C_Read... [15:31:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:16]Read from MH i2c: E2 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 03 00 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 03 00 A6 64 00 90 00 7E [15:31:16]RAPDU: 90 00 [15:31:16]wFMCommunicate OK [15:31:16]wFMCommunicate request_size=10 [15:31:16]MH_SAM_APDU [15:31:16]CAPDU: 80 0D 02 02 05 5A BE 6B 62 44 [15:31:16]Write to MH i2c: E2 0D 00 A7 64 80 0D 02 02 05 00 5A BE 6B 62 44 00 00 B8 [15:31:16]Write i2c OK [15:31:16]MH_I2C_Read... [15:31:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:16]Read from MH i2c: E2 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 03 00 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 03 00 A7 64 00 90 00 7F [15:31:16]RAPDU: 90 00 [15:31:16]wFMCommunicate OK [15:31:16]wFMCommunicate request_size=4 [15:31:16]MH_SAM_APDU [15:31:16]CAPDU: 80 0D 03 02 [15:31:16]Write to MH i2c: E2 08 00 A8 64 80 0D 03 02 00 00 00 00 87 [15:31:16]Write i2c OK [15:31:16]MH_I2C_Read... [15:31:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:16]Read from MH i2c: E2 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 0B 00 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 0B 00 A8 64 00 28 8E D9 9A 70 6C A9 2E 90 00 64 [15:31:16]RAPDU: 28 8E D9 9A 70 6C A9 2E 90 00 [15:31:16]wFMCommunicate OK [15:31:16]SAM_PROTO_SignData done [15:31:16]FM_MakeSignedData done [15:31:16]CreateOFDProtocolMessage [15:31:16]wFMCommunicate request_size=4 [15:31:16]MH_SAM_APDU [15:31:16]CAPDU: 80 11 00 00 [15:31:16]Write to MH i2c: E2 08 00 A9 64 80 11 00 00 00 00 00 00 87 [15:31:16]Write i2c OK [15:31:16]MH_I2C_Read... [15:31:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:16]Read from MH i2c: E2 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 17 00 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 17 00 A9 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DE [15:31:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:31:16]wFMCommunicate OK [15:31:16]CreateOFDProtocolMessage done [15:31:16]OFDSenderStorePacket 123247 [15:31:16]StoreOFDPacket docnum=123247 [15:31:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E2 4D 07 01 A5 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 CE E9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6F E1 01 00 35 04 06 00 D6 5A BE 6B 62 44 28 8E D9 9A 70 6C A9 2E [15:31:16]CheckFolder [15:31:16]dirname=/storage/ofd_packets [15:31:16]CheckFolder done [15:31:16]ProducePacketName [15:31:16]name=ofd_packets/00123247 [15:31:16]NVStorageSaveData ofd_packets/00123247 [15:31:16]File name is /storage/ofd_packets/00123247 [15:31:16]Write 301 bytes [15:31:16]NVStorageSaveData done [15:31:16]OFDSenderStorePacket done [15:31:16]KKMCreateOFDPacket done [15:31:16]NVStorageSaveData kkm_last_timestamp [15:31:16]File name is /storage/kkm_last_timestamp [15:31:16]Write 4 bytes [15:31:16]NVStorageSaveData done [15:31:16]ExternCall_PrintAddStr [15:31:16]wPrintStart [15:31:16]Write to MH i2c: 01 00 00 AA 64 0E [15:31:16]Write i2c OK [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: 01 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: 01 07 00 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: 01 07 00 AA 64 00 00 00 00 00 FF 0F 23 [15:31:16]RasterBufferAndPrint [15:31:16]line Счет N : (1)718077 [15:31:16]line ИНН: 02508201610067 [15:31:16]line Контрольно-Кассовый Чек [15:31:16]line ПРОДАЖА [15:31:16]line ТРК (МРК, ГНК) : 32 [15:31:16]line Товар: 2710124130 [15:31:16]line Аи-92-К-4 [15:31:16]line 14.840 * 67.40 [15:31:16]line = 1000.22 [15:31:16]line НДС 12% НСП 1% [15:31:16]line > о реализуемом товаре [15:31:16]line ИТОГО: 1000.22 [15:31:16]line НСП 1% : 8.85 [15:31:16]line НДС 12% : 106.22 [15:31:16]line Наличными: 0.00 [15:31:16]line Безнал.: 1000.22 [15:31:16]line Место: АЗС № 64 "Партнер Нефть" [15:31:16]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:31:16]line СНО: Общий режим [15:31:16]line Чек 101 26.11.2024 15:31 [15:31:16]line Смена: 557 ФФД: 1.0 [15:31:16]line ЗНМ: 0300000033 [15:31:16]line РНМ: 0000000000092681 [15:31:16]line Версия ККМ: 001 [15:31:16]line Платежная система: Бакай Банк [15:31:16]line ФМ: 0000000000874881 [15:31:16]line ФД: 123247 [15:31:16]line ФПД: 235685230109252 [15:31:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T153126&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123247&fm=235685230109252&tin=02508201610067®Number=0000000000092681&sum=100022 [15:31:16]OFD Sender: Processing packet 123247 [packets to send 7, broken 6] [15:31:16]ProducePacketName [15:31:16]name=ofd_packets/00123247 [15:31:16]OFD Sender: To server: pG, [15:31:16]CommunicateWithHost lk.salyk.kg:30040 [15:31:16]ConnectInit lk.salyk.kg [15:31:16]written 0, free lines is 4095 [15:31:16]Connected sock=10 [15:31:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E2 4D 07 01 A5 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 CE E9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6F E1 01 00 35 04 06 00 D6 5A BE 6B 62 44 28 8E D9 9A 70 6C A9 2E [15:31:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 7E 44 47 00 16 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6F E1 01 00 F4 03 04 00 90 95 45 67 B6 04 01 00 00 FF F2 D1 B0 D0 CA 69 60 [15:31:16]CommunicateWithHost err = 0 [15:31:16]CheckOFDResponse [15:31:16]1017 (14) - 77093643461234 [15:31:16]1041 (16) - 0000000000874881 [15:31:16]1040 (4) - 123247 [15:31:16]1012 (4) - 26.11.2024 09:32 [15:31:16]1206 (1) - 0 [15:31:16]OFD Sender: Remove packet 123247 [15:31:16]ProducePacketName [15:31:16]name=ofd_packets/00123247 [15:31:16]NVStorageDeleteData [15:31:17]Write to MH i2c: 01 00 00 D4 64 38 [15:31:17]Write i2c OK [15:31:17]MH_I2C_Read... [15:31:17]Read from MH i2c: 01 [15:31:17]MH_I2C_Read... [15:31:17]Read from MH i2c: 01 07 00 [15:31:17]MH_I2C_Read... [15:31:17]Read from MH i2c: 01 07 00 D4 64 00 00 00 00 00 6F 0C BA [15:31:17]RasterBufferAndPrint [15:31:17]line [15:31:17]line [15:31:17]line [15:31:17]line [15:31:17]line [15:31:17]written 0, free lines is 3190 [15:31:17]MH_Cut [15:31:17]Write to MH i2c: D1 01 00 DB 64 01 11 [15:31:17]Write i2c OK [15:31:17]MH_I2C_Read... [15:31:17]Read from MH i2c: D1 [15:31:17]MH_I2C_Read... [15:31:17]Read from MH i2c: D1 01 00 [15:31:17]MH_I2C_Read... [15:31:17]Read from MH i2c: D1 01 00 DB 64 00 10 [15:31:17]Write to MH i2c: 01 00 00 DC 64 40 [15:31:17]Write i2c OK [15:31:17]MH_I2C_Read... [15:31:17]OFD Sender: No OFD packet to send [15:31:18]*** Cut start [15:31:18]*** Partial cut [15:31:18]*** CUTSNS_PIN = 1 [15:31:18]*** CUTSNS_PIN = 0 [15:31:18]*** Brake cut motor [15:31:19]Read from MH i2c: 01 [15:31:19]MH_I2C_Read... [15:31:19]*** Stop cut motor [15:31:19]*** Cut end [15:31:19]Read from MH i2c: 01 07 00 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: 01 07 00 DC 64 00 00 00 00 00 FF 0F 55 [15:31:19]process_action close_receipt done [15:31:19]requested_data is exist [15:31:19]produce_requested_data [15:31:19]requested_item fm.sn is exist - process it [15:31:19]wFMCommunicate request_size=4 [15:31:19]MH_SAM_APDU [15:31:19]CAPDU: 80 11 00 00 [15:31:19]Write to MH i2c: E2 08 00 DD 64 80 11 00 00 00 00 00 00 BB [15:31:19]Write i2c OK [15:31:19]MH_I2C_Read... [15:31:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:19]Read from MH i2c: E2 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: E2 17 00 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: E2 17 00 DD 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 12 [15:31:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:31:19]wFMCommunicate OK [15:31:19]requested_item fd.num is exist - process it [15:31:19]SAM_PROTO_GetFieldsCounters [15:31:19]wFMCommunicate request_size=4 [15:31:19]MH_SAM_APDU [15:31:19]CAPDU: 80 13 00 00 [15:31:19]Write to MH i2c: E2 08 00 DE 64 80 13 00 00 00 00 00 00 BE [15:31:19]Write i2c OK [15:31:19]MH_I2C_Read... [15:31:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:19]Read from MH i2c: E2 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: E2 62 00 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: E2 62 00 DE 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6F E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [15:31:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 6F E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:19]wFMCommunicate OK [15:31:19]SAM_PROTO_GetFieldsCounters done [15:31:19]requested_item shift.num is exist - process it [15:31:19]requested_item shift.opened is exist - process it [15:31:19]req_shift_opened [15:31:19]FM_GetShiftState [15:31:19]SAM_PROTO_GetShiftState [15:31:19]wFMCommunicate request_size=4 [15:31:19]MH_SAM_APDU [15:31:19]CAPDU: 80 13 01 00 [15:31:19]Write to MH i2c: E2 08 00 DF 64 80 13 01 00 00 00 00 00 C0 [15:31:19]Write i2c OK [15:31:19]MH_I2C_Read... [15:31:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:19]Read from MH i2c: E2 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: E2 0E 00 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: E2 0E 00 DF 64 00 09 00 01 98 11 45 67 00 00 00 00 90 00 21 [15:31:19]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:31:19]wFMCommunicate OK [15:31:19]SAM_PROTO_GetShiftState done [15:31:19]FM_GetShiftState done [15:31:19]req_shift_opened done [15:31:19]requested_item shift.open_date is exist - process it [15:31:19]req_shift_open_date [15:31:19]req_shift_open_date done [15:31:19]produce_requested_data done [15:31:19]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123247,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [15:31:19]process_action_free close_receipt [15:31:19]json_value_free [15:31:19]json_value_free done [15:31:19]process_json_proto returns [15:31:19]Send response to host [15:31:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123247,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [15:31:19]free response buf [15:31:19]execute_script done [15:31:19]execute_script returns [15:31:19]free content buf [15:31:19]Sock 7.Close socket [15:31:19]Sock 7.Thread stoped [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:28]accept exits with 9 [15:33:28]New connection [15:33:28]New thread 3066723684 created [15:33:28]Thread 3066580324 joined [15:33:28]Waiting for new connection... [15:33:28] Sock 9.Parse request [15:33:28]Sock 9.Check first char [15:33:28]Sock 9.First char is OK [15:33:28]request: POST /json_proto HTTP/1.0 [15:33:28]Method: POST [15:33:28]URL: /json_proto [15:33:28]Method is POST - this is cgi request [15:33:28]url: /json_proto [15:33:28]query_string will be loaded in cgi processing [15:33:28]execute_cgi json_proto POST (null) [15:33:28]execute_cgi path=json_proto method=POST [15:33:28]POST find Content-Length [15:33:28]Host: 172.17.37.4:8080 [15:33:28]Content-Length: 677 [15:33:28]Content-Type: application/json [15:33:28] [15:33:28]POST finish read [15:33:28]Found Content-Length = 677 [15:33:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:28]execute_script... [15:33:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:28]POST & json_proto [15:33:28]process_json_proto [15:33:28]json parsed OK: [15:33:28]protocol is kg_v1.0 [15:33:28]action value=close_receipt [15:33:28]process_action close_receipt [15:33:28]cmd_close_receipt [15:33:28]MH_GetDate [15:33:28]Write to MH i2c: F0 00 00 E0 64 33 [15:33:28]Write i2c OK [15:33:28]MH_I2C_Read... [15:33:28]Read from MH i2c: F0 [15:33:28]MH_I2C_Read... [15:33:28]Read from MH i2c: F0 09 00 [15:33:28]MH_I2C_Read... [15:33:28]Read from MH i2c: F0 09 00 E0 64 00 53 EA 45 67 B8 5A 43 67 E1 [15:33:28]GetLastDocTimeStamp 1732635086 [15:33:28]current date 1732635219 [15:33:28]FM_GetShiftState [15:33:28]SAM_PROTO_GetShiftState [15:33:28]wFMCommunicate request_size=4 [15:33:28]MH_SAM_APDU [15:33:28]CAPDU: 80 13 01 00 [15:33:28]Write to MH i2c: E2 08 00 E1 64 80 13 01 00 00 00 00 00 C2 [15:33:28]Write i2c OK [15:33:28]MH_I2C_Read... [15:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:28]Read from MH i2c: E2 [15:33:28]MH_I2C_Read... [15:33:28]Read from MH i2c: E2 0E 00 [15:33:28]MH_I2C_Read... [15:33:28]Read from MH i2c: E2 0E 00 E1 64 00 09 00 01 98 11 45 67 00 00 00 00 90 00 23 [15:33:28]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:33:28]wFMCommunicate OK [15:33:28]SAM_PROTO_GetShiftState done [15:33:28]FM_GetShiftState done [15:33:28]opened in 1732579736 [15:33:28]opened+sec_in_day 1732666136 [15:33:28]quantity*price = 20017 [15:33:28]sum+1 = 20019 [15:33:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 102 26.11.2024 15:33 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123248 ФПД: 8885517693540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T153339&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123248&fm=8885517693540&tin=02508201610067®Number=0000000000092681&sum=20000 [15:33:29]StoreToDocumentArchive [15:33:29]shift 557 fd 123248 [15:33:29]save to /storage/0557/doc_00123248 [15:33:29]save last doc name /storage/0557/doc_00123248 to /storage/kkm_last_doc_name [15:33:29]save OK [15:33:29]Clear old archive folders... [15:33:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:29]tlvbuf is 020B08D0 [15:33:29]SAM_PROTO_ClearQueue [15:33:29]wFMCommunicate request_size=4 [15:33:29]MH_SAM_APDU [15:33:29]CAPDU: 80 09 00 00 [15:33:29]Write to MH i2c: E2 08 00 EE 64 80 09 00 00 00 00 00 00 C4 [15:33:29]Write i2c OK [15:33:29]MH_I2C_Read... [15:33:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:29]Read from MH i2c: E2 [15:33:29]MH_I2C_Read... [15:33:29]Read from MH i2c: E2 03 00 [15:33:29]MH_I2C_Read... [15:33:29]Read from MH i2c: E2 03 00 EE 64 00 90 00 C6 [15:33:29]RAPDU: 90 00 [15:33:29]wFMCommunicate OK [15:33:29]SAM_PROTO_ClearQueue done [15:33:29]KKMCreateOFDPacket [15:33:29]OFDProtocolAddRootSTLVToBuf [15:33:29]FM_MakeSignedData [15:33:29]FM_MakeSignedData [15:33:29]SAM_PROTO_SignData [15:33:29]wFMCommunicate request_size=4 [15:33:29]MH_SAM_APDU [15:33:29]CAPDU: 80 0D 01 02 [15:33:29]Write to MH i2c: E2 08 00 EF 64 80 0D 01 02 00 00 00 00 CC [15:33:29]Write i2c OK [15:33:29]MH_I2C_Read... [15:33:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:29]Read from MH i2c: E2 [15:33:29]MH_I2C_Read... [15:33:29]Read from MH i2c: E2 03 00 [15:33:29]MH_I2C_Read... [15:33:29]Read from MH i2c: E2 03 00 EF 64 00 90 00 C7 [15:33:29]RAPDU: 90 00 [15:33:29]wFMCommunicate OK [15:33:29]wFMCommunicate request_size=255 [15:33:29]MH_SAM_APDU [15:33:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 53 EA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 70 E1 01 00 35 04 06 00 08 [15:33:29]Write to MH i2c: E2 02 01 F0 64 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 53 EA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 70 E1 01 00 35 04 06 00 08 00 00 28 [15:33:29]Write i2c OK [15:33:29]MH_I2C_Read... [15:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:29]Read from MH i2c: E2 [15:33:29]MH_I2C_Read... [15:33:29]Read from MH i2c: E2 03 00 [15:33:29]MH_I2C_Read... [15:33:29]Read from MH i2c: E2 03 00 F0 64 00 90 00 C8 [15:33:29]RAPDU: 90 00 [15:33:29]wFMCommunicate OK [15:33:29]wFMCommunicate request_size=10 [15:33:29]MH_SAM_APDU [15:33:29]CAPDU: 80 0D 02 02 05 14 D2 20 32 64 [15:33:29]Write to MH i2c: E2 0D 00 F1 64 80 0D 02 02 05 00 14 D2 20 32 64 00 00 75 [15:33:30]Write i2c OK [15:33:30]MH_I2C_Read... [15:33:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:30]Read from MH i2c: E2 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 03 00 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 03 00 F1 64 00 90 00 C9 [15:33:30]RAPDU: 90 00 [15:33:30]wFMCommunicate OK [15:33:30]wFMCommunicate request_size=4 [15:33:30]MH_SAM_APDU [15:33:30]CAPDU: 80 0D 03 02 [15:33:30]Write to MH i2c: E2 08 00 F2 64 80 0D 03 02 00 00 00 00 D1 [15:33:30]Write i2c OK [15:33:30]MH_I2C_Read... [15:33:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:30]Read from MH i2c: E2 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 0B 00 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 0B 00 F2 64 00 D1 E3 6D 10 FD 35 70 2B 90 00 D0 [15:33:30]RAPDU: D1 E3 6D 10 FD 35 70 2B 90 00 [15:33:30]wFMCommunicate OK [15:33:30]SAM_PROTO_SignData done [15:33:30]FM_MakeSignedData done [15:33:30]CreateOFDProtocolMessage [15:33:30]wFMCommunicate request_size=4 [15:33:30]MH_SAM_APDU [15:33:30]CAPDU: 80 11 00 00 [15:33:30]Write to MH i2c: E2 08 00 F3 64 80 11 00 00 00 00 00 00 D1 [15:33:30]Write i2c OK [15:33:30]MH_I2C_Read... [15:33:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:30]Read from MH i2c: E2 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 17 00 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 17 00 F3 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 28 [15:33:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:33:30]wFMCommunicate OK [15:33:30]CreateOFDProtocolMessage done [15:33:30]OFDSenderStorePacket 123248 [15:33:30]StoreOFDPacket docnum=123248 [15:33:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 6F 69 07 01 E0 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 53 EA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 70 E1 01 00 35 04 06 00 08 14 D2 20 32 64 D1 E3 6D 10 FD 35 70 2B [15:33:30]CheckFolder [15:33:30]dirname=/storage/ofd_packets [15:33:30]CheckFolder done [15:33:30]ProducePacketName [15:33:30]name=ofd_packets/00123248 [15:33:30]NVStorageSaveData ofd_packets/00123248 [15:33:30]File name is /storage/ofd_packets/00123248 [15:33:30]Write 301 bytes [15:33:30]NVStorageSaveData done [15:33:30]OFDSenderStorePacket done [15:33:30]KKMCreateOFDPacket done [15:33:30]NVStorageSaveData kkm_last_timestamp [15:33:30]File name is /storage/kkm_last_timestamp [15:33:30]Write 4 bytes [15:33:30]NVStorageSaveData done [15:33:30]ExternCall_PrintAddStr [15:33:30]wPrintStart [15:33:30]Write to MH i2c: 01 00 00 F4 64 58 [15:33:30]Write i2c OK [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: 01 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: 01 07 00 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: 01 07 00 F4 64 00 00 00 00 00 FF 0F 6D [15:33:30]RasterBufferAndPrint [15:33:30]line Счет N : (1)718079 [15:33:30]line ИНН: 02508201610067 [15:33:30]line Контрольно-Кассовый Чек [15:33:30]line ПРОДАЖА [15:33:30]line ТРК (МРК, ГНК) : 22 [15:33:30]line Товар: 2710124130 [15:33:30]line Аи-92-К-4 [15:33:30]line 2.970 * 67.40 [15:33:30]line = 200.18 [15:33:30]line НДС 12% НСП 1% [15:33:30]line > о реализуемом товаре [15:33:30]line ОКРУГЛЕНИЕ: -0.18 [15:33:30]line ИТОГО: 200.00 [15:33:30]line Внесено: 200.00 [15:33:30]line СДАЧА: 0.00 [15:33:30]line НСП 1% : 1.77 [15:33:30]line НДС 12% : 21.26 [15:33:30]line Наличными: 200.00 [15:33:30]line Безнал.: 0.00 [15:33:30]line Место: АЗС № 64 "Партнер Нефть" [15:33:30]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:33:30]line СНО: Общий режим [15:33:30]line Чек 102 26.11.2024 15:33 [15:33:30]line Смена: 557 ФФД: 1.0 [15:33:30]line ЗНМ: 0300000033 [15:33:30]line РНМ: 0000000000092681 [15:33:30]line Версия ККМ: 001 [15:33:30]line ФМ: 0000000000874881 [15:33:30]line ФД: 123248 [15:33:30]line ФПД: 8885517693540 [15:33:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T153339&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123248&fm=8885517693540&tin=02508201610067®Number=0000000000092681&sum=20000 [15:33:30]OFD Sender: Processing packet 123248 [packets to send 7, broken 6] [15:33:30]ProducePacketName [15:33:30]name=ofd_packets/00123248 [15:33:30]OFD Sender: To server: pG, [15:33:30]CommunicateWithHost lk.salyk.kg:30040 [15:33:30]ConnectInit lk.salyk.kg [15:33:30]written 0, free lines is 4095 [15:33:30]Connected sock=10 [15:33:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 6F 69 07 01 E0 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 53 EA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 70 E1 01 00 35 04 06 00 08 14 D2 20 32 64 D1 E3 6D 10 FD 35 70 2B [15:33:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 07 3B 47 00 74 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 38 37 34 38 38 31 10 04 04 00 70 E1 01 00 F4 03 04 00 15 96 45 67 B6 04 01 00 00 6A E2 F5 6C 65 2D 7E 89 [15:33:30]CommunicateWithHost err = 0 [15:33:30]CheckOFDResponse [15:33:30]1017 (14) - 77093643461234 [15:33:30]1041 (16) - 0000000000874881 [15:33:30]1040 (4) - 123248 [15:33:30]1012 (4) - 26.11.2024 09:34 [15:33:30]1206 (1) - 0 [15:33:30]OFD Sender: Remove packet 123248 [15:33:30]ProducePacketName [15:33:30]name=ofd_packets/00123248 [15:33:30]NVStorageDeleteData [15:33:30]Write to MH i2c: 01 00 00 1F 65 84 [15:33:30]Write i2c OK [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: 01 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: 01 07 00 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: 01 07 00 1F 65 00 00 00 00 00 48 0C DF [15:33:30]RasterBufferAndPrint [15:33:30]line [15:33:30]line [15:33:30]line [15:33:30]line [15:33:30]line [15:33:30]written 0, free lines is 3148 [15:33:30]MH_Cut [15:33:30]Write to MH i2c: D1 01 00 26 65 01 5D [15:33:30]Write i2c OK [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: D1 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: D1 01 00 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: D1 01 00 26 65 00 5C [15:33:30]Write to MH i2c: 01 00 00 27 65 8C [15:33:30]Write i2c OK [15:33:30]MH_I2C_Read... [15:33:31]OFD Sender: No OFD packet to send [15:33:32]*** Cut start [15:33:32]*** Partial cut [15:33:32]*** CUTSNS_PIN = 1 [15:33:32]*** CUTSNS_PIN = 0 [15:33:32]*** Brake cut motor [15:33:32]Read from MH i2c: 01 [15:33:32]MH_I2C_Read... [15:33:32]*** Stop cut motor [15:33:32]*** Cut end [15:33:32]Read from MH i2c: 01 07 00 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: 01 07 00 27 65 00 00 00 00 00 FF 0F A1 [15:33:32]process_action close_receipt done [15:33:32]requested_data is exist [15:33:32]produce_requested_data [15:33:32]requested_item fm.sn is exist - process it [15:33:32]wFMCommunicate request_size=4 [15:33:32]MH_SAM_APDU [15:33:32]CAPDU: 80 11 00 00 [15:33:32]Write to MH i2c: E2 08 00 28 65 80 11 00 00 00 00 00 00 07 [15:33:32]Write i2c OK [15:33:32]MH_I2C_Read... [15:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:32]Read from MH i2c: E2 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: E2 17 00 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: E2 17 00 28 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5E [15:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:33:32]wFMCommunicate OK [15:33:32]requested_item fd.num is exist - process it [15:33:32]SAM_PROTO_GetFieldsCounters [15:33:32]wFMCommunicate request_size=4 [15:33:32]MH_SAM_APDU [15:33:32]CAPDU: 80 13 00 00 [15:33:32]Write to MH i2c: E2 08 00 29 65 80 13 00 00 00 00 00 00 0A [15:33:32]Write i2c OK [15:33:32]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 62 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 62 00 29 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 70 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [15:33:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 70 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:33]wFMCommunicate OK [15:33:33]SAM_PROTO_GetFieldsCounters done [15:33:33]requested_item shift.num is exist - process it [15:33:33]requested_item shift.opened is exist - process it [15:33:33]req_shift_opened [15:33:33]FM_GetShiftState [15:33:33]SAM_PROTO_GetShiftState [15:33:33]wFMCommunicate request_size=4 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 13 01 00 [15:33:33]Write to MH i2c: E2 08 00 2A 65 80 13 01 00 00 00 00 00 0C [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 0E 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 0E 00 2A 65 00 09 00 01 98 11 45 67 00 00 00 00 90 00 6D [15:33:33]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:33:33]wFMCommunicate OK [15:33:33]SAM_PROTO_GetShiftState done [15:33:33]FM_GetShiftState done [15:33:33]req_shift_opened done [15:33:33]requested_item shift.open_date is exist - process it [15:33:33]req_shift_open_date [15:33:33]req_shift_open_date done [15:33:33]produce_requested_data done [15:33:33]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123248,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [15:33:33]process_action_free close_receipt [15:33:33]json_value_free [15:33:33]json_value_free done [15:33:33]process_json_proto returns [15:33:33]Send response to host [15:33:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123248,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [15:33:33]free response buf [15:33:33]execute_script done [15:33:33]execute_script returns [15:33:33]free content buf [15:33:33]Sock 9.Close socket [15:33:33]Sock 9.Thread stoped [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:15]accept exits with 7 [15:34:15]New connection [15:34:15]New thread 3066580324 created [15:34:15]Thread 3066723684 joined [15:34:15]Waiting for new connection... [15:34:15] Sock 7.Parse request [15:34:15]Sock 7.Check first char [15:34:15]Sock 7.First char is OK [15:34:15]request: POST /json_proto HTTP/1.0 [15:34:15]Method: POST [15:34:15]URL: /json_proto [15:34:15]Method is POST - this is cgi request [15:34:15]url: /json_proto [15:34:15]query_string will be loaded in cgi processing [15:34:15]execute_cgi json_proto POST (null) [15:34:15]execute_cgi path=json_proto method=POST [15:34:15]POST find Content-Length [15:34:15]Host: 172.17.37.4:8080 [15:34:15]Content-Length: 681 [15:34:15]Content-Type: application/json [15:34:15] [15:34:15]POST finish read [15:34:15]Found Content-Length = 681 [15:34:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 6.950, "sum" : 520.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:15]execute_script... [15:34:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 6.950, "sum" : 520.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:15]POST & json_proto [15:34:15]process_json_proto [15:34:15]json parsed OK: [15:34:15]protocol is kg_v1.0 [15:34:15]action value=close_receipt [15:34:15]process_action close_receipt [15:34:15]cmd_close_receipt [15:34:15]MH_GetDate [15:34:15]Write to MH i2c: F0 00 00 2B 65 7F [15:34:15]Write i2c OK [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: F0 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: F0 09 00 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: F0 09 00 2B 65 00 83 EA 45 67 B8 5A 43 67 5D [15:34:15]GetLastDocTimeStamp 1732635219 [15:34:15]current date 1732635267 [15:34:15]FM_GetShiftState [15:34:15]SAM_PROTO_GetShiftState [15:34:15]wFMCommunicate request_size=4 [15:34:15]MH_SAM_APDU [15:34:15]CAPDU: 80 13 01 00 [15:34:15]Write to MH i2c: E2 08 00 2C 65 80 13 01 00 00 00 00 00 0E [15:34:15]Write i2c OK [15:34:15]MH_I2C_Read... [15:34:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:15]Read from MH i2c: E2 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: E2 0E 00 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: E2 0E 00 2C 65 00 09 00 01 98 11 45 67 00 00 00 00 90 00 6F [15:34:15]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:34:15]wFMCommunicate OK [15:34:15]SAM_PROTO_GetShiftState done [15:34:15]FM_GetShiftState done [15:34:15]opened in 1732579736 [15:34:15]opened+sec_in_day 1732666136 [15:34:15]quantity*price = 52055 [15:34:15]sum+1 = 52057 [15:34:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.61 НДС 12% : 55.28 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 103 26.11.2024 15:34 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123249 ФПД: 171927675459193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T153427&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123249&fm=171927675459193&tin=02508201610067®Number=0000000000092681&sum=52000 [15:34:17]StoreToDocumentArchive [15:34:17]shift 557 fd 123249 [15:34:17]save to /storage/0557/doc_00123249 [15:34:17]save last doc name /storage/0557/doc_00123249 to /storage/kkm_last_doc_name [15:34:17]save OK [15:34:17]Clear old archive folders... [15:34:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:34:17]tlvbuf is 00051400 [15:34:17]SAM_PROTO_ClearQueue [15:34:17]wFMCommunicate request_size=4 [15:34:17]MH_SAM_APDU [15:34:17]CAPDU: 80 09 00 00 [15:34:17]Write to MH i2c: E2 08 00 39 65 80 09 00 00 00 00 00 00 10 [15:34:17]Write i2c OK [15:34:17]MH_I2C_Read... [15:34:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:17]Read from MH i2c: E2 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 03 00 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 03 00 39 65 00 90 00 12 [15:34:17]RAPDU: 90 00 [15:34:17]wFMCommunicate OK [15:34:17]SAM_PROTO_ClearQueue done [15:34:17]KKMCreateOFDPacket [15:34:17]OFDProtocolAddRootSTLVToBuf [15:34:17]FM_MakeSignedData [15:34:17]FM_MakeSignedData [15:34:17]SAM_PROTO_SignData [15:34:17]wFMCommunicate request_size=4 [15:34:17]MH_SAM_APDU [15:34:17]CAPDU: 80 0D 01 02 [15:34:17]Write to MH i2c: E2 08 00 3A 65 80 0D 01 02 00 00 00 00 18 [15:34:17]Write i2c OK [15:34:17]MH_I2C_Read... [15:34:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:17]Read from MH i2c: E2 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 03 00 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 03 00 3A 65 00 90 00 13 [15:34:17]RAPDU: 90 00 [15:34:17]wFMCommunicate OK [15:34:17]wFMCommunicate request_size=255 [15:34:17]MH_SAM_APDU [15:34:17]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 35 FF 03 08 00 03 26 1B 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 58 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 83 EA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 71 E1 01 00 35 04 06 00 [15:34:17]Write to MH i2c: E2 02 01 3B 65 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 35 FF 03 08 00 03 26 1B 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 58 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 83 EA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 71 E1 01 00 35 04 06 00 00 00 78 [15:34:17]Write i2c OK [15:34:17]MH_I2C_Read... [15:34:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:17]Read from MH i2c: E2 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 03 00 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 03 00 3B 65 00 90 00 14 [15:34:17]RAPDU: 90 00 [15:34:17]wFMCommunicate OK [15:34:17]wFMCommunicate request_size=11 [15:34:17]MH_SAM_APDU [15:34:17]CAPDU: 80 0D 02 02 06 9C 5E 08 05 D6 79 [15:34:17]Write to MH i2c: E2 0E 00 3C 65 80 0D 02 02 06 00 9C 5E 08 05 D6 79 00 00 7D [15:34:17]Write i2c OK [15:34:17]MH_I2C_Read... [15:34:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:17]Read from MH i2c: E2 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 03 00 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 03 00 3C 65 00 90 00 15 [15:34:17]RAPDU: 90 00 [15:34:17]wFMCommunicate OK [15:34:17]wFMCommunicate request_size=4 [15:34:17]MH_SAM_APDU [15:34:17]CAPDU: 80 0D 03 02 [15:34:17]Write to MH i2c: E2 08 00 3D 65 80 0D 03 02 00 00 00 00 1D [15:34:17]Write i2c OK [15:34:17]MH_I2C_Read... [15:34:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:17]Read from MH i2c: E2 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 0B 00 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 0B 00 3D 65 00 A5 F2 43 9A F9 9B E7 31 90 00 3E [15:34:17]RAPDU: A5 F2 43 9A F9 9B E7 31 90 00 [15:34:17]wFMCommunicate OK [15:34:17]SAM_PROTO_SignData done [15:34:17]FM_MakeSignedData done [15:34:17]CreateOFDProtocolMessage [15:34:17]wFMCommunicate request_size=4 [15:34:17]MH_SAM_APDU [15:34:17]CAPDU: 80 11 00 00 [15:34:17]Write to MH i2c: E2 08 00 3E 65 80 11 00 00 00 00 00 00 1D [15:34:17]Write i2c OK [15:34:17]MH_I2C_Read... [15:34:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:17]Read from MH i2c: E2 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 17 00 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 17 00 3E 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 74 [15:34:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:34:17]wFMCommunicate OK [15:34:17]CreateOFDProtocolMessage done [15:34:17]OFDSenderStorePacket 123249 [15:34:17]StoreOFDPacket docnum=123249 [15:34:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 5C 68 08 01 5E 62 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 35 FF 03 08 00 03 26 1B 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 58 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 83 EA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 71 E1 01 00 35 04 06 00 9C 5E 08 05 D6 79 A5 F2 43 9A F9 9B E7 31 [15:34:17]CheckFolder [15:34:17]dirname=/storage/ofd_packets [15:34:17]CheckFolder done [15:34:17]ProducePacketName [15:34:17]name=ofd_packets/00123249 [15:34:17]NVStorageSaveData ofd_packets/00123249 [15:34:17]File name is /storage/ofd_packets/00123249 [15:34:17]Write 302 bytes [15:34:17]NVStorageSaveData done [15:34:17]OFDSenderStorePacket done [15:34:17]KKMCreateOFDPacket done [15:34:17]NVStorageSaveData kkm_last_timestamp [15:34:17]File name is /storage/kkm_last_timestamp [15:34:17]Write 4 bytes [15:34:17]NVStorageSaveData done [15:34:17]ExternCall_PrintAddStr [15:34:17]wPrintStart [15:34:17]Write to MH i2c: 01 00 00 3F 65 A4 [15:34:17]Write i2c OK [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: 01 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: 01 07 00 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: 01 07 00 3F 65 00 00 00 00 00 FF 0F B9 [15:34:17]RasterBufferAndPrint [15:34:17]line Счет N : (1)718080 [15:34:17]line ИНН: 02508201610067 [15:34:17]line Контрольно-Кассовый Чек [15:34:17]line ПРОДАЖА [15:34:17]line ТРК (МРК, ГНК) : 5 [15:34:17]line Товар: 2710194210 [15:34:17]line ДТ(л)-К-5 [15:34:17]line 6.950 * 74.90 [15:34:17]line = 520.56 [15:34:17]line НДС 12% НСП 1% [15:34:17]line > о реализуемом товаре [15:34:17]line ОКРУГЛЕНИЕ: -0.56 [15:34:17]line ИТОГО: 520.00 [15:34:17]line Внесено: 520.00 [15:34:17]line СДАЧА: 0.00 [15:34:17]line НСП 1% : 4.61 [15:34:17]line НДС 12% : 55.28 [15:34:17]line Наличными: 520.00 [15:34:17]line Безнал.: 0.00 [15:34:17]line Место: АЗС № 64 "Партнер Нефть" [15:34:17]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:34:17]line СНО: Общий режим [15:34:17]line Чек 103 26.11.2024 15:34 [15:34:17]line Смена: 557 ФФД: 1.0 [15:34:17]line ЗНМ: 0300000033 [15:34:17]line РНМ: 0000000000092681 [15:34:17]line Версия ККМ: 001 [15:34:17]line ФМ: 0000000000874881 [15:34:17]line ФД: 123249 [15:34:17]line ФПД: 171927675459193 [15:34:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T153427&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123249&fm=171927675459193&tin=02508201610067®Number=0000000000092681&sum=52000 [15:34:17]OFD Sender: Processing packet 123249 [packets to send 7, broken 6] [15:34:17]ProducePacketName [15:34:17]name=ofd_packets/00123249 [15:34:17]OFD Sender: To server: pG, [15:34:17]CommunicateWithHost lk.salyk.kg:30040 [15:34:17]ConnectInit lk.salyk.kg [15:34:17]written 0, free lines is 4095 [15:34:18]Connected sock=10 [15:34:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 5C 68 08 01 5E 62 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 35 FF 03 08 00 03 26 1B 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 58 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 83 EA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 71 E1 01 00 35 04 06 00 9C 5E 08 05 D6 79 A5 F2 43 9A F9 9B E7 31 [15:34:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 55 B8 47 00 84 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 71 E1 01 00 F4 03 04 00 45 96 45 67 B6 04 01 00 00 5B 94 CA A3 C0 36 A7 1A [15:34:18]CommunicateWithHost err = 0 [15:34:18]CheckOFDResponse [15:34:18]1017 (14) - 77093643461234 [15:34:18]1041 (16) - 0000000000874881 [15:34:18]1040 (4) - 123249 [15:34:18]1012 (4) - 26.11.2024 09:35 [15:34:18]1206 (1) - 0 [15:34:18]OFD Sender: Remove packet 123249 [15:34:18]ProducePacketName [15:34:18]name=ofd_packets/00123249 [15:34:18]NVStorageDeleteData [15:34:18]Write to MH i2c: 01 00 00 6A 65 CF [15:34:18]Write i2c OK [15:34:18]MH_I2C_Read... [15:34:18]Read from MH i2c: 01 [15:34:18]MH_I2C_Read... [15:34:18]Read from MH i2c: 01 07 00 [15:34:18]MH_I2C_Read... [15:34:18]Read from MH i2c: 01 07 00 6A 65 00 00 00 00 00 4F 0C 31 [15:34:18]RasterBufferAndPrint [15:34:18]line [15:34:18]line [15:34:18]line [15:34:18]line [15:34:18]line [15:34:18]written 0, free lines is 3153 [15:34:18]MH_Cut [15:34:18]Write to MH i2c: D1 01 00 71 65 01 A8 [15:34:18]Write i2c OK [15:34:18]MH_I2C_Read... [15:34:18]Read from MH i2c: D1 [15:34:18]MH_I2C_Read... [15:34:18]Read from MH i2c: D1 01 00 [15:34:18]MH_I2C_Read... [15:34:18]Read from MH i2c: D1 01 00 71 65 00 A7 [15:34:18]Write to MH i2c: 01 00 00 72 65 D7 [15:34:18]Write i2c OK [15:34:18]MH_I2C_Read... [15:34:18]OFD Sender: No OFD packet to send [15:34:19]*** Cut start [15:34:19]*** Partial cut [15:34:19]*** CUTSNS_PIN = 1 [15:34:19]*** CUTSNS_PIN = 0 [15:34:20]*** Brake cut motor [15:34:20]Read from MH i2c: 01 [15:34:20]MH_I2C_Read... [15:34:20]*** Stop cut motor [15:34:20]*** Cut end [15:34:20]Read from MH i2c: 01 07 00 [15:34:20]MH_I2C_Read... [15:34:20]Read from MH i2c: 01 07 00 72 65 00 00 00 00 00 FF 0F EC [15:34:20]process_action close_receipt done [15:34:20]requested_data is exist [15:34:20]produce_requested_data [15:34:20]requested_item fm.sn is exist - process it [15:34:20]wFMCommunicate request_size=4 [15:34:20]MH_SAM_APDU [15:34:20]CAPDU: 80 11 00 00 [15:34:20]Write to MH i2c: E2 08 00 73 65 80 11 00 00 00 00 00 00 52 [15:34:20]Write i2c OK [15:34:20]MH_I2C_Read... [15:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:20]Read from MH i2c: E2 [15:34:20]MH_I2C_Read... [15:34:20]Read from MH i2c: E2 17 00 [15:34:20]MH_I2C_Read... [15:34:20]Read from MH i2c: E2 17 00 73 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A9 [15:34:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:34:20]wFMCommunicate OK [15:34:20]requested_item fd.num is exist - process it [15:34:20]SAM_PROTO_GetFieldsCounters [15:34:20]wFMCommunicate request_size=4 [15:34:20]MH_SAM_APDU [15:34:20]CAPDU: 80 13 00 00 [15:34:20]Write to MH i2c: E2 08 00 74 65 80 13 00 00 00 00 00 00 55 [15:34:20]Write i2c OK [15:34:20]MH_I2C_Read... [15:34:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:20]Read from MH i2c: E2 [15:34:20]MH_I2C_Read... [15:34:20]Read from MH i2c: E2 62 00 [15:34:20]MH_I2C_Read... [15:34:20]Read from MH i2c: E2 62 00 74 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 71 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [15:34:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 71 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:20]wFMCommunicate OK [15:34:20]SAM_PROTO_GetFieldsCounters done [15:34:20]requested_item shift.num is exist - process it [15:34:20]requested_item shift.opened is exist - process it [15:34:20]req_shift_opened [15:34:20]FM_GetShiftState [15:34:20]SAM_PROTO_GetShiftState [15:34:20]wFMCommunicate request_size=4 [15:34:20]MH_SAM_APDU [15:34:20]CAPDU: 80 13 01 00 [15:34:20]Write to MH i2c: E2 08 00 75 65 80 13 01 00 00 00 00 00 57 [15:34:20]Write i2c OK [15:34:20]MH_I2C_Read... [15:34:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:20]Read from MH i2c: E2 [15:34:20]MH_I2C_Read... [15:34:20]Read from MH i2c: E2 0E 00 [15:34:20]MH_I2C_Read... [15:34:20]Read from MH i2c: E2 0E 00 75 65 00 09 00 01 98 11 45 67 00 00 00 00 90 00 B8 [15:34:20]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:34:20]wFMCommunicate OK [15:34:20]SAM_PROTO_GetShiftState done [15:34:20]FM_GetShiftState done [15:34:20]req_shift_opened done [15:34:20]requested_item shift.open_date is exist - process it [15:34:20]req_shift_open_date [15:34:20]req_shift_open_date done [15:34:20]produce_requested_data done [15:34:20]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123249,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [15:34:20]process_action_free close_receipt [15:34:20]json_value_free [15:34:20]json_value_free done [15:34:20]process_json_proto returns [15:34:20]Send response to host [15:34:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123249,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [15:34:20]free response buf [15:34:20]execute_script done [15:34:20]execute_script returns [15:34:20]free content buf [15:34:20]Sock 7.Close socket [15:34:20]Sock 7.Thread stoped [15:34:23]OFD Sender: No OFD packet to send [15:34:28]OFD Sender: No OFD packet to send [15:34:33]OFD Sender: No OFD packet to send [15:34:36]accept exits with 9 [15:34:36]New connection [15:34:36]New thread 3066723684 created [15:34:36]Thread 3066580324 joined [15:34:36]Waiting for new connection... [15:34:36] Sock 9.Parse request [15:34:36]Sock 9.Check first char [15:34:36]Sock 9.First char is OK [15:34:36]request: POST /json_proto HTTP/1.0 [15:34:36]Method: POST [15:34:36]URL: /json_proto [15:34:36]Method is POST - this is cgi request [15:34:36]url: /json_proto [15:34:36]query_string will be loaded in cgi processing [15:34:36]execute_cgi json_proto POST (null) [15:34:36]execute_cgi path=json_proto method=POST [15:34:36]POST find Content-Length [15:34:36]Host: 172.17.37.4:8080 [15:34:36]Content-Length: 681 [15:34:36]Content-Type: application/json [15:34:36] [15:34:36]POST finish read [15:34:36]Found Content-Length = 681 [15:34:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 9.350, "sum" : 700.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:36]execute_script... [15:34:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 9.350, "sum" : 700.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:36]POST & json_proto [15:34:36]process_json_proto [15:34:36]json parsed OK: [15:34:36]protocol is kg_v1.0 [15:34:36]action value=close_receipt [15:34:36]process_action close_receipt [15:34:36]cmd_close_receipt [15:34:36]MH_GetDate [15:34:36]Write to MH i2c: F0 00 00 76 65 CA [15:34:36]Write i2c OK [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: F0 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: F0 09 00 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: F0 09 00 76 65 00 97 EA 45 67 B8 5A 43 67 BC [15:34:36]GetLastDocTimeStamp 1732635267 [15:34:36]current date 1732635287 [15:34:36]FM_GetShiftState [15:34:36]SAM_PROTO_GetShiftState [15:34:36]wFMCommunicate request_size=4 [15:34:36]MH_SAM_APDU [15:34:36]CAPDU: 80 13 01 00 [15:34:36]Write to MH i2c: E2 08 00 77 65 80 13 01 00 00 00 00 00 59 [15:34:36]Write i2c OK [15:34:36]MH_I2C_Read... [15:34:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:36]Read from MH i2c: E2 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: E2 0E 00 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: E2 0E 00 77 65 00 09 00 01 98 11 45 67 00 00 00 00 90 00 BA [15:34:36]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:34:36]wFMCommunicate OK [15:34:36]SAM_PROTO_GetShiftState done [15:34:36]FM_GetShiftState done [15:34:36]opened in 1732579736 [15:34:36]opened+sec_in_day 1732666136 [15:34:36]quantity*price = 70031 [15:34:36]sum+1 = 70033 [15:34:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 104 26.11.2024 15:34 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123250 ФПД: 44678983438482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T153447&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123250&fm=44678983438482&tin=02508201610067®Number=0000000000092681&sum=70000 [15:34:37]StoreToDocumentArchive [15:34:37]shift 557 fd 123250 [15:34:37]save to /storage/0557/doc_00123250 [15:34:37]save last doc name /storage/0557/doc_00123250 to /storage/kkm_last_doc_name [15:34:37]save OK [15:34:37]Clear old archive folders... [15:34:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:34:37]tlvbuf is 020D3180 [15:34:37]SAM_PROTO_ClearQueue [15:34:37]wFMCommunicate request_size=4 [15:34:37]MH_SAM_APDU [15:34:37]CAPDU: 80 09 00 00 [15:34:37]Write to MH i2c: E2 08 00 84 65 80 09 00 00 00 00 00 00 5B [15:34:37]Write i2c OK [15:34:37]MH_I2C_Read... [15:34:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:37]Read from MH i2c: E2 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 03 00 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 03 00 84 65 00 90 00 5D [15:34:37]RAPDU: 90 00 [15:34:37]wFMCommunicate OK [15:34:37]SAM_PROTO_ClearQueue done [15:34:37]KKMCreateOFDPacket [15:34:37]OFDProtocolAddRootSTLVToBuf [15:34:37]FM_MakeSignedData [15:34:37]FM_MakeSignedData [15:34:37]SAM_PROTO_SignData [15:34:37]wFMCommunicate request_size=4 [15:34:37]MH_SAM_APDU [15:34:37]CAPDU: 80 0D 01 02 [15:34:37]Write to MH i2c: E2 08 00 85 65 80 0D 01 02 00 00 00 00 63 [15:34:37]Write i2c OK [15:34:37]MH_I2C_Read... [15:34:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:37]Read from MH i2c: E2 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 03 00 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 03 00 85 65 00 90 00 5E [15:34:37]RAPDU: 90 00 [15:34:37]wFMCommunicate OK [15:34:37]wFMCommunicate request_size=255 [15:34:37]MH_SAM_APDU [15:34:37]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 35 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 90 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 97 EA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 72 E1 01 00 35 04 06 00 [15:34:37]Write to MH i2c: E2 02 01 86 65 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 35 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 90 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 97 EA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 72 E1 01 00 35 04 06 00 00 00 0C [15:34:37]Write i2c OK [15:34:37]MH_I2C_Read... [15:34:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:37]Read from MH i2c: E2 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 03 00 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 03 00 86 65 00 90 00 5F [15:34:37]RAPDU: 90 00 [15:34:37]wFMCommunicate OK [15:34:37]wFMCommunicate request_size=11 [15:34:37]MH_SAM_APDU [15:34:37]CAPDU: 80 0D 02 02 06 28 A2 A2 EF D0 92 [15:34:37]Write to MH i2c: E2 0E 00 87 65 80 0D 02 02 06 00 28 A2 A2 EF D0 92 00 00 2F [15:34:37]Write i2c OK [15:34:37]MH_I2C_Read... [15:34:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:37]Read from MH i2c: E2 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 03 00 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 03 00 87 65 00 90 00 60 [15:34:37]RAPDU: 90 00 [15:34:37]wFMCommunicate OK [15:34:37]wFMCommunicate request_size=4 [15:34:37]MH_SAM_APDU [15:34:37]CAPDU: 80 0D 03 02 [15:34:37]Write to MH i2c: E2 08 00 88 65 80 0D 03 02 00 00 00 00 68 [15:34:37]Write i2c OK [15:34:37]MH_I2C_Read... [15:34:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:37]Read from MH i2c: E2 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 0B 00 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 0B 00 88 65 00 17 7A CE 92 D3 9C 28 E7 90 00 D8 [15:34:37]RAPDU: 17 7A CE 92 D3 9C 28 E7 90 00 [15:34:37]wFMCommunicate OK [15:34:37]SAM_PROTO_SignData done [15:34:37]FM_MakeSignedData done [15:34:37]CreateOFDProtocolMessage [15:34:37]wFMCommunicate request_size=4 [15:34:37]MH_SAM_APDU [15:34:37]CAPDU: 80 11 00 00 [15:34:37]Write to MH i2c: E2 08 00 89 65 80 11 00 00 00 00 00 00 68 [15:34:37]Write i2c OK [15:34:37]MH_I2C_Read... [15:34:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:37]Read from MH i2c: E2 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 17 00 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 17 00 89 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BF [15:34:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:34:37]wFMCommunicate OK [15:34:37]CreateOFDProtocolMessage done [15:34:37]OFDSenderStorePacket 123250 [15:34:37]StoreOFDPacket docnum=123250 [15:34:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 82 67 08 01 68 73 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 35 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 90 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 97 EA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 72 E1 01 00 35 04 06 00 28 A2 A2 EF D0 92 17 7A CE 92 D3 9C 28 E7 [15:34:37]CheckFolder [15:34:37]dirname=/storage/ofd_packets [15:34:37]CheckFolder done [15:34:37]ProducePacketName [15:34:37]name=ofd_packets/00123250 [15:34:37]NVStorageSaveData ofd_packets/00123250 [15:34:37]File name is /storage/ofd_packets/00123250 [15:34:37]Write 302 bytes [15:34:37]NVStorageSaveData done [15:34:37]OFDSenderStorePacket done [15:34:37]KKMCreateOFDPacket done [15:34:37]NVStorageSaveData kkm_last_timestamp [15:34:37]File name is /storage/kkm_last_timestamp [15:34:37]Write 4 bytes [15:34:37]NVStorageSaveData done [15:34:37]ExternCall_PrintAddStr [15:34:37]wPrintStart [15:34:37]Write to MH i2c: 01 00 00 8A 65 EF [15:34:37]Write i2c OK [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: 01 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: 01 07 00 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: 01 07 00 8A 65 00 00 00 00 00 FF 0F 04 [15:34:37]RasterBufferAndPrint [15:34:37]line Счет N : (1)718081 [15:34:37]line ИНН: 02508201610067 [15:34:37]line Контрольно-Кассовый Чек [15:34:37]line ПРОДАЖА [15:34:37]line ТРК (МРК, ГНК) : 6 [15:34:37]line Товар: 2710194210 [15:34:37]line ДТ(л)-К-5 [15:34:37]line 9.350 * 74.90 [15:34:37]line = 700.32 [15:34:37]line НДС 12% НСП 1% [15:34:37]line > о реализуемом товаре [15:34:37]line ОКРУГЛЕНИЕ: -0.32 [15:34:37]line ИТОГО: 700.00 [15:34:37]line Внесено: 700.00 [15:34:37]line СДАЧА: 0.00 [15:34:37]line НСП 1% : 6.20 [15:34:37]line НДС 12% : 74.37 [15:34:37]line Наличными: 700.00 [15:34:38]line Безнал.: 0.00 [15:34:38]line Место: АЗС № 64 "Партнер Нефть" [15:34:38]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:34:38]line СНО: Общий режим [15:34:38]line Чек 104 26.11.2024 15:34 [15:34:38]line Смена: 557 ФФД: 1.0 [15:34:38]line ЗНМ: 0300000033 [15:34:38]line РНМ: 0000000000092681 [15:34:38]line Версия ККМ: 001 [15:34:38]line ФМ: 0000000000874881 [15:34:38]line ФД: 123250 [15:34:38]line ФПД: 44678983438482 [15:34:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T153447&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123250&fm=44678983438482&tin=02508201610067®Number=0000000000092681&sum=70000 [15:34:38]OFD Sender: Processing packet 123250 [packets to send 7, broken 6] [15:34:38]ProducePacketName [15:34:38]name=ofd_packets/00123250 [15:34:38]OFD Sender: To server: pG, [15:34:38]CommunicateWithHost lk.salyk.kg:30040 [15:34:38]ConnectInit lk.salyk.kg [15:34:38]written 0, free lines is 4095 [15:34:38]Connected sock=10 [15:34:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 82 67 08 01 68 73 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 35 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 90 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 97 EA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 72 E1 01 00 35 04 06 00 28 A2 A2 EF D0 92 17 7A CE 92 D3 9C 28 E7 [15:34:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 6E 61 47 00 96 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 72 E1 01 00 F4 03 04 00 59 96 45 67 B6 04 01 00 00 E8 F5 48 53 F9 FB B4 76 [15:34:38]CommunicateWithHost err = 0 [15:34:38]CheckOFDResponse [15:34:38]1017 (14) - 77093643461234 [15:34:38]1041 (16) - 0000000000874881 [15:34:38]1040 (4) - 123250 [15:34:38]1012 (4) - 26.11.2024 09:35 [15:34:38]1206 (1) - 0 [15:34:38]OFD Sender: Remove packet 123250 [15:34:38]ProducePacketName [15:34:38]name=ofd_packets/00123250 [15:34:38]NVStorageDeleteData [15:34:38]Write to MH i2c: 01 00 00 B5 65 1A [15:34:38]Write i2c OK [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: 01 [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: 01 07 00 [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: 01 07 00 B5 65 00 00 00 00 00 4D 0C 7A [15:34:38]RasterBufferAndPrint [15:34:38]line [15:34:38]line [15:34:38]line [15:34:38]line [15:34:38]line [15:34:38]written 0, free lines is 3152 [15:34:38]MH_Cut [15:34:38]Write to MH i2c: D1 01 00 BC 65 01 F3 [15:34:38]Write i2c OK [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: D1 [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: D1 01 00 [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: D1 01 00 BC 65 00 F2 [15:34:38]Write to MH i2c: 01 00 00 BD 65 22 [15:34:38]Write i2c OK [15:34:38]MH_I2C_Read... [15:34:39]OFD Sender: No OFD packet to send [15:34:40]*** Cut start [15:34:40]*** Partial cut [15:34:40]*** CUTSNS_PIN = 1 [15:34:40]*** CUTSNS_PIN = 0 [15:34:40]*** Brake cut motor [15:34:40]Read from MH i2c: 01 [15:34:40]MH_I2C_Read... [15:34:40]*** Stop cut motor [15:34:40]*** Cut end [15:34:40]Read from MH i2c: 01 07 00 [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: 01 07 00 BD 65 00 00 00 00 00 FF 0F 37 [15:34:40]process_action close_receipt done [15:34:40]requested_data is exist [15:34:40]produce_requested_data [15:34:40]requested_item fm.sn is exist - process it [15:34:40]wFMCommunicate request_size=4 [15:34:40]MH_SAM_APDU [15:34:40]CAPDU: 80 11 00 00 [15:34:40]Write to MH i2c: E2 08 00 BE 65 80 11 00 00 00 00 00 00 9D [15:34:40]Write i2c OK [15:34:40]MH_I2C_Read... [15:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:40]Read from MH i2c: E2 [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: E2 17 00 [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: E2 17 00 BE 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F4 [15:34:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:34:40]wFMCommunicate OK [15:34:40]requested_item fd.num is exist - process it [15:34:40]SAM_PROTO_GetFieldsCounters [15:34:40]wFMCommunicate request_size=4 [15:34:40]MH_SAM_APDU [15:34:40]CAPDU: 80 13 00 00 [15:34:40]Write to MH i2c: E2 08 00 BF 65 80 13 00 00 00 00 00 00 A0 [15:34:40]Write i2c OK [15:34:40]MH_I2C_Read... [15:34:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:40]Read from MH i2c: E2 [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: E2 62 00 [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: E2 62 00 BF 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 72 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [15:34:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 72 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:40]wFMCommunicate OK [15:34:40]SAM_PROTO_GetFieldsCounters done [15:34:40]requested_item shift.num is exist - process it [15:34:40]requested_item shift.opened is exist - process it [15:34:40]req_shift_opened [15:34:40]FM_GetShiftState [15:34:40]SAM_PROTO_GetShiftState [15:34:40]wFMCommunicate request_size=4 [15:34:40]MH_SAM_APDU [15:34:40]CAPDU: 80 13 01 00 [15:34:40]Write to MH i2c: E2 08 00 C0 65 80 13 01 00 00 00 00 00 A2 [15:34:40]Write i2c OK [15:34:40]MH_I2C_Read... [15:34:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:40]Read from MH i2c: E2 [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: E2 0E 00 [15:34:40]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 0E 00 C0 65 00 09 00 01 98 11 45 67 00 00 00 00 90 00 03 [15:34:41]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:34:41]wFMCommunicate OK [15:34:41]SAM_PROTO_GetShiftState done [15:34:41]FM_GetShiftState done [15:34:41]req_shift_opened done [15:34:41]requested_item shift.open_date is exist - process it [15:34:41]req_shift_open_date [15:34:41]req_shift_open_date done [15:34:41]produce_requested_data done [15:34:41]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123250,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [15:34:41]process_action_free close_receipt [15:34:41]json_value_free [15:34:41]json_value_free done [15:34:41]process_json_proto returns [15:34:41]Send response to host [15:34:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123250,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [15:34:41]free response buf [15:34:41]execute_script done [15:34:41]execute_script returns [15:34:41]free content buf [15:34:41]Sock 9.Close socket [15:34:41]Sock 9.Thread stoped [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:39]OFD Sender: No OFD packet to send [15:36:44]OFD Sender: No OFD packet to send [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:49]accept exits with 7 [15:43:49]New connection [15:43:49]New thread 3066580324 created [15:43:49]Thread 3066723684 joined [15:43:49]Waiting for new connection... [15:43:49] Sock 7.Parse request [15:43:49]Sock 7.Check first char [15:43:49]Sock 7.First char is OK [15:43:49]request: POST /json_proto HTTP/1.0 [15:43:49]Method: POST [15:43:49]URL: /json_proto [15:43:49]Method is POST - this is cgi request [15:43:49]url: /json_proto [15:43:49]query_string will be loaded in cgi processing [15:43:49]execute_cgi json_proto POST (null) [15:43:49]execute_cgi path=json_proto method=POST [15:43:49]POST find Content-Length [15:43:49]Host: 172.17.37.4:8080 [15:43:49]Content-Length: 800 [15:43:49]Content-Type: application/json [15:43:49] [15:43:49]POST finish read [15:43:49]Found Content-Length = 800 [15:43:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "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" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:49]execute_script... [15:43:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "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" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:49]POST & json_proto [15:43:49]process_json_proto [15:43:49]json parsed OK: [15:43:49]protocol is kg_v1.0 [15:43:49]action value=close_receipt [15:43:49]process_action close_receipt [15:43:49]cmd_close_receipt [15:43:49]MH_GetDate [15:43:49]Write to MH i2c: F0 00 00 C1 65 15 [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: F0 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: F0 09 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: F0 09 00 C1 65 00 C1 EC 45 67 B8 5A 43 67 33 [15:43:49]GetLastDocTimeStamp 1732635287 [15:43:49]current date 1732635841 [15:43:49]FM_GetShiftState [15:43:49]SAM_PROTO_GetShiftState [15:43:49]wFMCommunicate request_size=4 [15:43:49]MH_SAM_APDU [15:43:49]CAPDU: 80 13 01 00 [15:43:49]Write to MH i2c: E2 08 00 C2 65 80 13 01 00 00 00 00 00 A4 [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:49]Read from MH i2c: E2 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 0E 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 0E 00 C2 65 00 09 00 01 98 11 45 67 00 00 00 00 90 00 05 [15:43:49]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:43:49]wFMCommunicate OK [15:43:49]SAM_PROTO_GetShiftState done [15:43:49]FM_GetShiftState done [15:43:49]opened in 1732579736 [15:43:49]opened+sec_in_day 1732666136 [15:43:49]quantity*price = 50010 [15:43:49]sum+1 = 50012 [15:43:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 105 26.11.2024 15:44 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123251 ФПД: 241186898732713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T154401&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123251&fm=241186898732713&tin=02508201610067®Number=0000000000092681&sum=50011 [15:43:50]StoreToDocumentArchive [15:43:50]shift 557 fd 123251 [15:43:50]save to /storage/0557/doc_00123251 [15:43:50]save last doc name /storage/0557/doc_00123251 to /storage/kkm_last_doc_name [15:43:50]save OK [15:43:50]Clear old archive folders... [15:43:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:50]tlvbuf is 02205A90 [15:43:50]SAM_PROTO_ClearQueue [15:43:50]wFMCommunicate request_size=4 [15:43:50]MH_SAM_APDU [15:43:50]CAPDU: 80 09 00 00 [15:43:50]Write to MH i2c: E2 08 00 CF 65 80 09 00 00 00 00 00 00 A6 [15:43:50]Write i2c OK [15:43:50]MH_I2C_Read... [15:43:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:51]Read from MH i2c: E2 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 03 00 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 03 00 CF 65 00 90 00 A8 [15:43:51]RAPDU: 90 00 [15:43:51]wFMCommunicate OK [15:43:51]SAM_PROTO_ClearQueue done [15:43:51]KKMCreateOFDPacket [15:43:51]OFDProtocolAddRootSTLVToBuf [15:43:51]FM_MakeSignedData [15:43:51]FM_MakeSignedData [15:43:51]SAM_PROTO_SignData [15:43:51]wFMCommunicate request_size=4 [15:43:51]MH_SAM_APDU [15:43:51]CAPDU: 80 0D 01 02 [15:43:51]Write to MH i2c: E2 08 00 D0 65 80 0D 01 02 00 00 00 00 AE [15:43:51]Write i2c OK [15:43:51]MH_I2C_Read... [15:43:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:51]Read from MH i2c: E2 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 03 00 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 03 00 D0 65 00 90 00 A9 [15:43:51]RAPDU: 90 00 [15:43:51]wFMCommunicate OK [15:43:51]wFMCommunicate request_size=255 [15:43:51]MH_SAM_APDU [15:43: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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 C1 EC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 73 E1 01 00 35 04 06 00 DB [15:43:51]Write to MH i2c: E2 02 01 D1 65 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 C1 EC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 73 E1 01 00 35 04 06 00 DB 00 00 4C [15:43:51]Write i2c OK [15:43:51]MH_I2C_Read... [15:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:51]Read from MH i2c: E2 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 03 00 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 03 00 D1 65 00 90 00 AA [15:43:51]RAPDU: 90 00 [15:43:51]wFMCommunicate OK [15:43:51]wFMCommunicate request_size=10 [15:43:51]MH_SAM_APDU [15:43:51]CAPDU: 80 0D 02 02 05 5B B3 6C 66 A9 [15:43:51]Write to MH i2c: E2 0D 00 D2 65 80 0D 02 02 05 00 5B B3 6C 66 A9 00 00 44 [15:43:51]Write i2c OK [15:43:51]MH_I2C_Read... [15:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:51]Read from MH i2c: E2 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 03 00 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 03 00 D2 65 00 90 00 AB [15:43:51]RAPDU: 90 00 [15:43:51]wFMCommunicate OK [15:43:51]wFMCommunicate request_size=4 [15:43:51]MH_SAM_APDU [15:43:51]CAPDU: 80 0D 03 02 [15:43:51]Write to MH i2c: E2 08 00 D3 65 80 0D 03 02 00 00 00 00 B3 [15:43:51]Write i2c OK [15:43:51]MH_I2C_Read... [15:43:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:51]Read from MH i2c: E2 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 0B 00 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 0B 00 D3 65 00 1B 4F 1E 8F 5B 23 1B DE 90 00 42 [15:43:51]RAPDU: 1B 4F 1E 8F 5B 23 1B DE 90 00 [15:43:51]wFMCommunicate OK [15:43:51]SAM_PROTO_SignData done [15:43:51]FM_MakeSignedData done [15:43:51]CreateOFDProtocolMessage [15:43:51]wFMCommunicate request_size=4 [15:43:51]MH_SAM_APDU [15:43:51]CAPDU: 80 11 00 00 [15:43:51]Write to MH i2c: E2 08 00 D4 65 80 11 00 00 00 00 00 00 B3 [15:43:51]Write i2c OK [15:43:51]MH_I2C_Read... [15:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:51]Read from MH i2c: E2 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 17 00 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 17 00 D4 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0A [15:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:43:51]wFMCommunicate OK [15:43:51]CreateOFDProtocolMessage done [15:43:51]OFDSenderStorePacket 123251 [15:43:51]StoreOFDPacket docnum=123251 [15:43:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 2C 7F 07 01 23 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 C1 EC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 73 E1 01 00 35 04 06 00 DB 5B B3 6C 66 A9 1B 4F 1E 8F 5B 23 1B DE [15:43:51]CheckFolder [15:43:51]dirname=/storage/ofd_packets [15:43:51]CheckFolder done [15:43:51]ProducePacketName [15:43:51]name=ofd_packets/00123251 [15:43:51]NVStorageSaveData ofd_packets/00123251 [15:43:51]File name is /storage/ofd_packets/00123251 [15:43:51]Write 301 bytes [15:43:51]NVStorageSaveData done [15:43:51]OFDSenderStorePacket done [15:43:51]KKMCreateOFDPacket done [15:43:51]NVStorageSaveData kkm_last_timestamp [15:43:51]File name is /storage/kkm_last_timestamp [15:43:51]Write 4 bytes [15:43:51]NVStorageSaveData done [15:43:51]ExternCall_PrintAddStr [15:43:51]wPrintStart [15:43:51]Write to MH i2c: 01 00 00 D5 65 3A [15:43:51]Write i2c OK [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: 01 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: 01 07 00 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: 01 07 00 D5 65 00 00 00 00 00 FF 0F 4F [15:43:51]RasterBufferAndPrint [15:43:51]line Счет N : (1)718082 [15:43:51]line ИНН: 02508201610067 [15:43:51]line Контрольно-Кассовый Чек [15:43:51]line ПРОДАЖА [15:43:51]line ТРК (МРК, ГНК) : 22 [15:43:51]line Товар: 2710124130 [15:43:51]line Аи-92-К-4 [15:43:51]line 7.420 * 67.40 [15:43:51]line = 500.11 [15:43:51]line НДС 12% НСП 1% [15:43:51]line > о реализуемом товаре [15:43:51]line ИТОГО: 500.11 [15:43:51]line НСП 1% : 4.43 [15:43:51]line НДС 12% : 53.11 [15:43:51]line Наличными: 0.00 [15:43:51]line Безнал.: 500.11 [15:43:51]line Место: АЗС № 64 "Партнер Нефть" [15:43:51]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:43:51]line СНО: Общий режим [15:43:51]line Чек 105 26.11.2024 15:44 [15:43:51]line Смена: 557 ФФД: 1.0 [15:43:51]line ЗНМ: 0300000033 [15:43:51]line РНМ: 0000000000092681 [15:43:51]line Версия ККМ: 001 [15:43:51]line Платежная система: O! деньги [15:43:51]line ФМ: 0000000000874881 [15:43:51]line ФД: 123251 [15:43:51]line ФПД: 241186898732713 [15:43:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T154401&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123251&fm=241186898732713&tin=02508201610067®Number=0000000000092681&sum=50011 [15:43:51]OFD Sender: Processing packet 123251 [packets to send 7, broken 6] [15:43:51]ProducePacketName [15:43:51]name=ofd_packets/00123251 [15:43:51]OFD Sender: To server: pG, [15:43:51]CommunicateWithHost lk.salyk.kg:30040 [15:43:51]ConnectInit lk.salyk.kg [15:43:51]written 0, free lines is 4095 [15:43:51]Connected sock=10 [15:43:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 2C 7F 07 01 23 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 C1 EC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 73 E1 01 00 35 04 06 00 DB 5B B3 6C 66 A9 1B 4F 1E 8F 5B 23 1B DE [15:43:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 4A 49 47 00 8F 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 73 E1 01 00 F4 03 04 00 83 98 45 67 B6 04 01 00 00 89 1A 15 EE B8 33 91 04 [15:43:52]CommunicateWithHost err = 0 [15:43:52]CheckOFDResponse [15:43:52]1017 (14) - 77093643461234 [15:43:52]1041 (16) - 0000000000874881 [15:43:52]1040 (4) - 123251 [15:43:52]1012 (4) - 26.11.2024 09:44 [15:43:52]1206 (1) - 0 [15:43:52]OFD Sender: Remove packet 123251 [15:43:52]ProducePacketName [15:43:52]name=ofd_packets/00123251 [15:43:52]NVStorageDeleteData [15:43:52]Write to MH i2c: 01 00 00 FF 65 64 [15:43:52]Write i2c OK [15:43:52]MH_I2C_Read... [15:43:52]Read from MH i2c: 01 [15:43:52]MH_I2C_Read... [15:43:52]Read from MH i2c: 01 07 00 [15:43:52]MH_I2C_Read... [15:43:52]Read from MH i2c: 01 07 00 FF 65 00 00 00 00 00 55 0C CC [15:43:52]RasterBufferAndPrint [15:43:52]line [15:43:52]line [15:43:52]line [15:43:52]line [15:43:52]line [15:43:52]written 0, free lines is 3161 [15:43:52]MH_Cut [15:43:52]Write to MH i2c: D1 01 00 06 66 01 3E [15:43:52]Write i2c OK [15:43:52]MH_I2C_Read... [15:43:52]Read from MH i2c: D1 [15:43:52]MH_I2C_Read... [15:43:52]Read from MH i2c: D1 01 00 [15:43:52]MH_I2C_Read... [15:43:52]Read from MH i2c: D1 01 00 06 66 00 3D [15:43:52]Write to MH i2c: 01 00 00 07 66 6D [15:43:52]Write i2c OK [15:43:52]MH_I2C_Read... [15:43:52]OFD Sender: No OFD packet to send [15:43:53]*** Cut start [15:43:53]*** Partial cut [15:43:53]*** CUTSNS_PIN = 1 [15:43:53]*** CUTSNS_PIN = 0 [15:43:53]*** Brake cut motor [15:43:54]Read from MH i2c: 01 [15:43:54]MH_I2C_Read... [15:43:54]*** Stop cut motor [15:43:54]*** Cut end [15:43:54]Read from MH i2c: 01 07 00 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: 01 07 00 07 66 00 00 00 00 00 FF 0F 82 [15:43:54]process_action close_receipt done [15:43:54]requested_data is exist [15:43:54]produce_requested_data [15:43:54]requested_item fm.sn is exist - process it [15:43:54]wFMCommunicate request_size=4 [15:43:54]MH_SAM_APDU [15:43:54]CAPDU: 80 11 00 00 [15:43:54]Write to MH i2c: E2 08 00 08 66 80 11 00 00 00 00 00 00 E8 [15:43:54]Write i2c OK [15:43:54]MH_I2C_Read... [15:43:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:54]Read from MH i2c: E2 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 17 00 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 17 00 08 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3F [15:43:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:43:54]wFMCommunicate OK [15:43:54]requested_item fd.num is exist - process it [15:43:54]SAM_PROTO_GetFieldsCounters [15:43:54]wFMCommunicate request_size=4 [15:43:54]MH_SAM_APDU [15:43:54]CAPDU: 80 13 00 00 [15:43:54]Write to MH i2c: E2 08 00 09 66 80 13 00 00 00 00 00 00 EB [15:43:54]Write i2c OK [15:43:54]MH_I2C_Read... [15:43:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:54]Read from MH i2c: E2 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 62 00 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 62 00 09 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 73 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [15:43:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 73 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:54]wFMCommunicate OK [15:43:54]SAM_PROTO_GetFieldsCounters done [15:43:54]requested_item shift.num is exist - process it [15:43:54]requested_item shift.opened is exist - process it [15:43:54]req_shift_opened [15:43:54]FM_GetShiftState [15:43:54]SAM_PROTO_GetShiftState [15:43:54]wFMCommunicate request_size=4 [15:43:54]MH_SAM_APDU [15:43:54]CAPDU: 80 13 01 00 [15:43:54]Write to MH i2c: E2 08 00 0A 66 80 13 01 00 00 00 00 00 ED [15:43:54]Write i2c OK [15:43:54]MH_I2C_Read... [15:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:54]Read from MH i2c: E2 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 0E 00 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 0E 00 0A 66 00 09 00 01 98 11 45 67 00 00 00 00 90 00 4E [15:43:54]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:43:54]wFMCommunicate OK [15:43:54]SAM_PROTO_GetShiftState done [15:43:54]FM_GetShiftState done [15:43:54]req_shift_opened done [15:43:54]requested_item shift.open_date is exist - process it [15:43:54]req_shift_open_date [15:43:54]req_shift_open_date done [15:43:54]produce_requested_data done [15:43:54]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123251,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [15:43:54]process_action_free close_receipt [15:43:54]json_value_free [15:43:54]json_value_free done [15:43:54]process_json_proto returns [15:43:54]Send response to host [15:43:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123251,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [15:43:54]free response buf [15:43:54]execute_script done [15:43:54]execute_script returns [15:43:54]free content buf [15:43:54]Sock 7.Close socket [15:43:54]Sock 7.Thread stoped [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]accept exits with 9 [15:46:57]New connection [15:46:57]New thread 3066723684 created [15:46:57]Thread 3066580324 joined [15:46:57]Waiting for new connection... [15:46:57] Sock 9.Parse request [15:46:57]Sock 9.Check first char [15:46:57]Sock 9.First char is OK [15:46:57]request: POST /json_proto HTTP/1.0 [15:46:57]Method: POST [15:46:57]URL: /json_proto [15:46:57]Method is POST - this is cgi request [15:46:57]url: /json_proto [15:46:57]query_string will be loaded in cgi processing [15:46:57]execute_cgi json_proto POST (null) [15:46:57]execute_cgi path=json_proto method=POST [15:46:57]POST find Content-Length [15:46:57]Host: 172.17.37.4:8080 [15:46:57]Content-Length: 754 [15:46:57]Content-Type: application/json [15:46:57] [15:46:57]POST finish read [15:46:57]Found Content-Length = 754 [15:46:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30048633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:57]execute_script... [15:46:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30048633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:57]POST & json_proto [15:46:57]process_json_proto [15:46:57]json parsed OK: [15:46:57]protocol is kg_v1.0 [15:46:57]action value=close_receipt [15:46:57]process_action close_receipt [15:46:57]cmd_close_receipt [15:46:57]MH_GetDate [15:46:57]Write to MH i2c: F0 00 00 0B 66 60 [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: F0 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: F0 09 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: F0 09 00 0B 66 00 7C ED 45 67 B8 5A 43 67 3A [15:46:57]GetLastDocTimeStamp 1732635841 [15:46:57]current date 1732636028 [15:46:57]FM_GetShiftState [15:46:57]SAM_PROTO_GetShiftState [15:46:57]wFMCommunicate request_size=4 [15:46:57]MH_SAM_APDU [15:46:57]CAPDU: 80 13 01 00 [15:46:57]Write to MH i2c: E2 08 00 0C 66 80 13 01 00 00 00 00 00 EF [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:57]Read from MH i2c: E2 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 0E 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 0E 00 0C 66 00 09 00 01 98 11 45 67 00 00 00 00 90 00 50 [15:46:57]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:46:57]wFMCommunicate OK [15:46:57]SAM_PROTO_GetShiftState done [15:46:57]FM_GetShiftState done [15:46:57]opened in 1732579736 [15:46:57]opened+sec_in_day 1732666136 [15:46:57]quantity*price = 0 [15:46:57]sum+1 = 1 [15:46:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 106 26.11.2024 15:47 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: ТК ГПНА Online 30048633 ФМ: 0000000000874881 ФД: 123252 ФПД: 178130243700671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T154708&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123252&fm=178130243700671&tin=02508201610067®Number=0000000000092681&sum=0 [15:46:58]StoreToDocumentArchive [15:46:58]shift 557 fd 123252 [15:46:58]save to /storage/0557/doc_00123252 [15:46:58]save last doc name /storage/0557/doc_00123252 to /storage/kkm_last_doc_name [15:46:58]save OK [15:46:58]Clear old archive folders... [15:46:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:58]tlvbuf is 01F33510 [15:46:58]SAM_PROTO_ClearQueue [15:46:58]wFMCommunicate request_size=4 [15:46:58]MH_SAM_APDU [15:46:58]CAPDU: 80 09 00 00 [15:46:58]Write to MH i2c: E2 08 00 19 66 80 09 00 00 00 00 00 00 F1 [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:58]Read from MH i2c: E2 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 03 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 03 00 19 66 00 90 00 F3 [15:46:58]RAPDU: 90 00 [15:46:58]wFMCommunicate OK [15:46:58]SAM_PROTO_ClearQueue done [15:46:58]KKMCreateOFDPacket [15:46:58]OFDProtocolAddRootSTLVToBuf [15:46:58]FM_MakeSignedData [15:46:58]FM_MakeSignedData [15:46:58]SAM_PROTO_SignData [15:46:58]wFMCommunicate request_size=4 [15:46:58]MH_SAM_APDU [15:46:58]CAPDU: 80 0D 01 02 [15:46:58]Write to MH i2c: E2 08 00 1A 66 80 0D 01 02 00 00 00 00 F9 [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:58]Read from MH i2c: E2 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 03 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 03 00 1A 66 00 90 00 F4 [15:46:58]RAPDU: 90 00 [15:46:58]wFMCommunicate OK [15:46:58]wFMCommunicate request_size=255 [15:46:58]MH_SAM_APDU [15:46:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 7C ED 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 74 E1 01 00 35 04 06 00 A2 [15:46:58]Write to MH i2c: E2 02 01 1B 66 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 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 7C ED 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 74 E1 01 00 35 04 06 00 A2 00 00 C0 [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:58]Read from MH i2c: E2 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 03 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 03 00 1B 66 00 90 00 F5 [15:46:58]RAPDU: 90 00 [15:46:58]wFMCommunicate OK [15:46:58]wFMCommunicate request_size=10 [15:46:58]MH_SAM_APDU [15:46:58]CAPDU: 80 0D 02 02 05 02 2D E6 47 BF [15:46:58]Write to MH i2c: E2 0D 00 1C 66 80 0D 02 02 05 00 02 2D E6 47 BF 00 00 21 [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:58]Read from MH i2c: E2 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 03 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 03 00 1C 66 00 90 00 F6 [15:46:58]RAPDU: 90 00 [15:46:58]wFMCommunicate OK [15:46:58]wFMCommunicate request_size=4 [15:46:58]MH_SAM_APDU [15:46:58]CAPDU: 80 0D 03 02 [15:46:58]Write to MH i2c: E2 08 00 1D 66 80 0D 03 02 00 00 00 00 FE [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:58]Read from MH i2c: E2 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 0B 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 0B 00 1D 66 00 33 72 2F D1 63 CE D0 AB 90 00 50 [15:46:58]RAPDU: 33 72 2F D1 63 CE D0 AB 90 00 [15:46:58]wFMCommunicate OK [15:46:58]SAM_PROTO_SignData done [15:46:58]FM_MakeSignedData done [15:46:58]CreateOFDProtocolMessage [15:46:58]wFMCommunicate request_size=4 [15:46:58]MH_SAM_APDU [15:46:58]CAPDU: 80 11 00 00 [15:46:58]Write to MH i2c: E2 08 00 1E 66 80 11 00 00 00 00 00 00 FE [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:58]Read from MH i2c: E2 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 17 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 17 00 1E 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 55 [15:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:46:58]wFMCommunicate OK [15:46:58]CreateOFDProtocolMessage done [15:46:58]OFDSenderStorePacket 123252 [15:46:58]StoreOFDPacket docnum=123252 [15:46:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B9 AD 07 01 68 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 7C ED 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 74 E1 01 00 35 04 06 00 A2 02 2D E6 47 BF 33 72 2F D1 63 CE D0 AB [15:46:58]CheckFolder [15:46:58]dirname=/storage/ofd_packets [15:46:58]CheckFolder done [15:46:58]ProducePacketName [15:46:58]name=ofd_packets/00123252 [15:46:58]NVStorageSaveData ofd_packets/00123252 [15:46:58]File name is /storage/ofd_packets/00123252 [15:46:58]Write 301 bytes [15:46:58]NVStorageSaveData done [15:46:58]OFDSenderStorePacket done [15:46:58]KKMCreateOFDPacket done [15:46:58]NVStorageSaveData kkm_last_timestamp [15:46:58]File name is /storage/kkm_last_timestamp [15:46:58]Write 4 bytes [15:46:58]NVStorageSaveData done [15:46:58]ExternCall_PrintAddStr [15:46:58]wPrintStart [15:46:58]Write to MH i2c: 01 00 00 1F 66 85 [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: 01 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: 01 07 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: 01 07 00 1F 66 00 00 00 00 00 FF 0F 9A [15:46:58]RasterBufferAndPrint [15:46:58]line Счет N : (1)718083 [15:46:58]line ИНН: 02508201610067 [15:46:58]line Контрольно-Кассовый Чек [15:46:58]line ПРОДАЖА [15:46:58]line ТРК (МРК, ГНК) : 12 [15:46:58]line Товар: 2710124130 [15:46:58]line Аи-92-К-4 [15:46:58]line 50.000 * 0.00 [15:46:58]line = 0.00 [15:46:58]line НДС 12% НСП 1% [15:46:58]line > о реализуемом товаре [15:46:58]line ИТОГО: 0.00 [15:46:58]line НСП 1% : 0.00 [15:46:58]line НДС 12% : 0.00 [15:46:58]line Наличными: 0.00 [15:46:58]line Безнал.: 0.00 [15:46:58]line Место: АЗС № 64 "Партнер Нефть" [15:46:58]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:46:58]line СНО: Общий режим [15:46:58]line Чек 106 26.11.2024 15:47 [15:46:58]line Смена: 557 ФФД: 1.0 [15:46:58]line ЗНМ: 0300000033 [15:46:58]line РНМ: 0000000000092681 [15:46:58]line Версия ККМ: 001 [15:46:58]line Талоны: ТК ГПНА Online [15:46:58]line 30048633 [15:46:58]line ФМ: 0000000000874881 [15:46:58]line ФД: 123252 [15:46:58]line ФПД: 178130243700671 [15:46:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T154708&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123252&fm=178130243700671&tin=02508201610067®Number=0000000000092681&sum=0 [15:46:58]written 0, free lines is 4095 [15:46:58]OFD Sender: Processing packet 123252 [packets to send 7, broken 6] [15:46:58]ProducePacketName [15:46:58]name=ofd_packets/00123252 [15:46:58]OFD Sender: To server: pG, [15:46:58]CommunicateWithHost lk.salyk.kg:30040 [15:46:58]ConnectInit lk.salyk.kg [15:46:58]Connected sock=10 [15:46:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B9 AD 07 01 68 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 7C ED 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 74 E1 01 00 35 04 06 00 A2 02 2D E6 47 BF 33 72 2F D1 63 CE D0 AB [15:46:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 16 B9 47 00 44 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 74 E1 01 00 F4 03 04 00 3E 99 45 67 B6 04 01 00 00 9C E4 0F 54 B4 1D D3 66 [15:46:59]CommunicateWithHost err = 0 [15:46:59]CheckOFDResponse [15:46:59]1017 (14) - 77093643461234 [15:46:59]1041 (16) - 0000000000874881 [15:46:59]1040 (4) - 123252 [15:46:59]1012 (4) - 26.11.2024 09:47 [15:46:59]1206 (1) - 0 [15:46:59]OFD Sender: Remove packet 123252 [15:46:59]ProducePacketName [15:46:59]name=ofd_packets/00123252 [15:46:59]NVStorageDeleteData [15:46:59]Write to MH i2c: 01 00 00 49 66 AF [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: 01 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: 01 07 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: 01 07 00 49 66 00 00 00 00 00 62 0C 24 [15:46:59]RasterBufferAndPrint [15:46:59]line [15:46:59]line [15:46:59]line [15:46:59]line [15:46:59]line [15:46:59]written 0, free lines is 3177 [15:46:59]MH_Cut [15:46:59]Write to MH i2c: D1 01 00 50 66 01 88 [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: D1 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: D1 01 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: D1 01 00 50 66 00 87 [15:46:59]Write to MH i2c: 01 00 00 51 66 B7 [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]OFD Sender: No OFD packet to send [15:47:00]*** Cut start [15:47:00]*** Partial cut [15:47:00]*** CUTSNS_PIN = 1 [15:47:00]*** CUTSNS_PIN = 0 [15:47:00]*** Brake cut motor [15:47:01]Read from MH i2c: 01 [15:47:01]MH_I2C_Read... [15:47:01]*** Stop cut motor [15:47:01]*** Cut end [15:47:01]Read from MH i2c: 01 07 00 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: 01 07 00 51 66 00 00 00 00 00 FF 0F CC [15:47:01]process_action close_receipt done [15:47:01]requested_data is exist [15:47:01]produce_requested_data [15:47:01]requested_item fm.sn is exist - process it [15:47:01]wFMCommunicate request_size=4 [15:47:01]MH_SAM_APDU [15:47:01]CAPDU: 80 11 00 00 [15:47:01]Write to MH i2c: E2 08 00 52 66 80 11 00 00 00 00 00 00 32 [15:47:01]Write i2c OK [15:47:01]MH_I2C_Read... [15:47:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:01]Read from MH i2c: E2 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: E2 17 00 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: E2 17 00 52 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 89 [15:47:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:47:01]wFMCommunicate OK [15:47:01]requested_item fd.num is exist - process it [15:47:01]SAM_PROTO_GetFieldsCounters [15:47:01]wFMCommunicate request_size=4 [15:47:01]MH_SAM_APDU [15:47:01]CAPDU: 80 13 00 00 [15:47:01]Write to MH i2c: E2 08 00 53 66 80 13 00 00 00 00 00 00 35 [15:47:01]Write i2c OK [15:47:01]MH_I2C_Read... [15:47:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:01]Read from MH i2c: E2 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: E2 62 00 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: E2 62 00 53 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 74 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [15:47:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 74 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:01]wFMCommunicate OK [15:47:01]SAM_PROTO_GetFieldsCounters done [15:47:01]requested_item shift.num is exist - process it [15:47:01]requested_item shift.opened is exist - process it [15:47:01]req_shift_opened [15:47:01]FM_GetShiftState [15:47:01]SAM_PROTO_GetShiftState [15:47:01]wFMCommunicate request_size=4 [15:47:01]MH_SAM_APDU [15:47:01]CAPDU: 80 13 01 00 [15:47:01]Write to MH i2c: E2 08 00 54 66 80 13 01 00 00 00 00 00 37 [15:47:01]Write i2c OK [15:47:01]MH_I2C_Read... [15:47:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:01]Read from MH i2c: E2 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: E2 0E 00 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: E2 0E 00 54 66 00 09 00 01 98 11 45 67 00 00 00 00 90 00 98 [15:47:01]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:47:01]wFMCommunicate OK [15:47:01]SAM_PROTO_GetShiftState done [15:47:01]FM_GetShiftState done [15:47:01]req_shift_opened done [15:47:01]requested_item shift.open_date is exist - process it [15:47:01]req_shift_open_date [15:47:01]req_shift_open_date done [15:47:01]produce_requested_data done [15:47:01]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123252,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [15:47:01]process_action_free close_receipt [15:47:01]json_value_free [15:47:01]json_value_free done [15:47:01]process_json_proto returns [15:47:01]Send response to host [15:47:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123252,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [15:47:01]free response buf [15:47:01]execute_script done [15:47:01]execute_script returns [15:47:01]free content buf [15:47:01]Sock 9.Close socket [15:47:01]Sock 9.Thread stoped [15:47:04]OFD Sender: No OFD packet to send [15:47:09]OFD Sender: No OFD packet to send [15:47:14]OFD Sender: No OFD packet to send [15:47:19]OFD Sender: No OFD packet to send [15:47:24]OFD Sender: No OFD packet to send [15:47:29]OFD Sender: No OFD packet to send [15:47:34]OFD Sender: No OFD packet to send [15:47:39]OFD Sender: No OFD packet to send [15:47:44]OFD Sender: No OFD packet to send [15:47:49]OFD Sender: No OFD packet to send [15:47:54]OFD Sender: No OFD packet to send [15:47:59]OFD Sender: No OFD packet to send [15:48:02]accept exits with 7 [15:48:02]New connection [15:48:02]New thread 3066580324 created [15:48:02]Thread 3066723684 joined [15:48:02]Waiting for new connection... [15:48:02] Sock 7.Parse request [15:48:02]Sock 7.Check first char [15:48:02]Sock 7.First char is OK [15:48:02]request: POST /json_proto HTTP/1.0 [15:48:02]Method: POST [15:48:02]URL: /json_proto [15:48:02]Method is POST - this is cgi request [15:48:02]url: /json_proto [15:48:02]query_string will be loaded in cgi processing [15:48:02]execute_cgi json_proto POST (null) [15:48:02]execute_cgi path=json_proto method=POST [15:48:02]POST find Content-Length [15:48:02]Host: 172.17.37.4:8080 [15:48:02]Content-Length: 803 [15:48:02]Content-Type: application/json [15:48:02] [15:48:02]POST finish read [15:48:02]Found Content-Length = 803 [15:48:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 22.260, "sum" : 1500.32, "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" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:02]execute_script... [15:48:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 22.260, "sum" : 1500.32, "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" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:02]POST & json_proto [15:48:02]process_json_proto [15:48:02]json parsed OK: [15:48:02]protocol is kg_v1.0 [15:48:02]action value=close_receipt [15:48:02]process_action close_receipt [15:48:02]cmd_close_receipt [15:48:02]MH_GetDate [15:48:02]Write to MH i2c: F0 00 00 55 66 AA [15:48:02]Write i2c OK [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: F0 [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: F0 09 00 [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: F0 09 00 55 66 00 BE ED 45 67 B8 5A 43 67 C6 [15:48:02]GetLastDocTimeStamp 1732636028 [15:48:02]current date 1732636094 [15:48:02]FM_GetShiftState [15:48:02]SAM_PROTO_GetShiftState [15:48:02]wFMCommunicate request_size=4 [15:48:02]MH_SAM_APDU [15:48:02]CAPDU: 80 13 01 00 [15:48:02]Write to MH i2c: E2 08 00 56 66 80 13 01 00 00 00 00 00 39 [15:48:02]Write i2c OK [15:48:02]MH_I2C_Read... [15:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:02]Read from MH i2c: E2 [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: E2 0E 00 [15:48:02]MH_I2C_Read... [15:48:02]Read from MH i2c: E2 0E 00 56 66 00 09 00 01 98 11 45 67 00 00 00 00 90 00 9A [15:48:02]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:48:02]wFMCommunicate OK [15:48:02]SAM_PROTO_GetShiftState done [15:48:02]FM_GetShiftState done [15:48:02]opened in 1732579736 [15:48:02]opened+sec_in_day 1732666136 [15:48:02]quantity*price = 150032 [15:48:02]sum+1 = 150033 [15:48:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 107 26.11.2024 15:48 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123253 ФПД: 103369194224203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T154814&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123253&fm=103369194224203&tin=02508201610067®Number=0000000000092681&sum=150032 [15:48:04]StoreToDocumentArchive [15:48:04]shift 557 fd 123253 [15:48:04]save to /storage/0557/doc_00123253 [15:48:04]save last doc name /storage/0557/doc_00123253 to /storage/kkm_last_doc_name [15:48:04]save OK [15:48:04]Clear old archive folders... [15:48:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:04]tlvbuf is 0212B7B0 [15:48:04]SAM_PROTO_ClearQueue [15:48:04]wFMCommunicate request_size=4 [15:48:04]MH_SAM_APDU [15:48:04]CAPDU: 80 09 00 00 [15:48:04]Write to MH i2c: E2 08 00 63 66 80 09 00 00 00 00 00 00 3B [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:04]Read from MH i2c: E2 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 63 66 00 90 00 3D [15:48:04]RAPDU: 90 00 [15:48:04]wFMCommunicate OK [15:48:04]SAM_PROTO_ClearQueue done [15:48:04]KKMCreateOFDPacket [15:48:04]OFDProtocolAddRootSTLVToBuf [15:48:04]FM_MakeSignedData [15:48:04]FM_MakeSignedData [15:48:04]SAM_PROTO_SignData [15:48:04]wFMCommunicate request_size=4 [15:48:04]MH_SAM_APDU [15:48:04]CAPDU: 80 0D 01 02 [15:48:04]Write to MH i2c: E2 08 00 64 66 80 0D 01 02 00 00 00 00 43 [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:04]Read from MH i2c: E2 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 64 66 00 90 00 3E [15:48:04]RAPDU: 90 00 [15:48:04]wFMCommunicate OK [15:48:04]wFMCommunicate request_size=255 [15:48:04]MH_SAM_APDU [15:48:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 BE ED 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 75 E1 01 00 35 04 06 00 5E [15:48:04]Write to MH i2c: E2 02 01 65 66 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 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 BE ED 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 75 E1 01 00 35 04 06 00 5E 00 00 73 [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:04]Read from MH i2c: E2 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 65 66 00 90 00 3F [15:48:04]RAPDU: 90 00 [15:48:04]wFMCommunicate OK [15:48:04]wFMCommunicate request_size=10 [15:48:04]MH_SAM_APDU [15:48:04]CAPDU: 80 0D 02 02 05 03 84 1A 3A 4B [15:48:04]Write to MH i2c: E2 0D 00 66 66 80 0D 02 02 05 00 03 84 1A 3A 4B 00 00 76 [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:04]Read from MH i2c: E2 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 66 66 00 90 00 40 [15:48:04]RAPDU: 90 00 [15:48:04]wFMCommunicate OK [15:48:04]wFMCommunicate request_size=4 [15:48:04]MH_SAM_APDU [15:48:04]CAPDU: 80 0D 03 02 [15:48:04]Write to MH i2c: E2 08 00 67 66 80 0D 03 02 00 00 00 00 48 [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:04]Read from MH i2c: E2 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 0B 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 0B 00 67 66 00 0D C5 54 90 AD EE 03 7A 90 00 17 [15:48:04]RAPDU: 0D C5 54 90 AD EE 03 7A 90 00 [15:48:04]wFMCommunicate OK [15:48:04]SAM_PROTO_SignData done [15:48:04]FM_MakeSignedData done [15:48:04]CreateOFDProtocolMessage [15:48:04]wFMCommunicate request_size=4 [15:48:04]MH_SAM_APDU [15:48:04]CAPDU: 80 11 00 00 [15:48:04]Write to MH i2c: E2 08 00 68 66 80 11 00 00 00 00 00 00 48 [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:04]Read from MH i2c: E2 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 17 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 17 00 68 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 9F [15:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:48:04]wFMCommunicate OK [15:48:04]CreateOFDProtocolMessage done [15:48:04]OFDSenderStorePacket 123253 [15:48:04]StoreOFDPacket docnum=123253 [15:48:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 60 AF 07 01 6B B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 BE ED 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 75 E1 01 00 35 04 06 00 5E 03 84 1A 3A 4B 0D C5 54 90 AD EE 03 7A [15:48:04]CheckFolder [15:48:04]dirname=/storage/ofd_packets [15:48:04]CheckFolder done [15:48:04]ProducePacketName [15:48:04]name=ofd_packets/00123253 [15:48:04]NVStorageSaveData ofd_packets/00123253 [15:48:04]File name is /storage/ofd_packets/00123253 [15:48:04]Write 301 bytes [15:48:04]NVStorageSaveData done [15:48:04]OFDSenderStorePacket done [15:48:04]KKMCreateOFDPacket done [15:48:04]NVStorageSaveData kkm_last_timestamp [15:48:04]File name is /storage/kkm_last_timestamp [15:48:04]Write 4 bytes [15:48:04]NVStorageSaveData done [15:48:04]ExternCall_PrintAddStr [15:48:04]wPrintStart [15:48:04]Write to MH i2c: 01 00 00 69 66 CF [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: 01 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: 01 07 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: 01 07 00 69 66 00 00 00 00 00 FF 0F E4 [15:48:04]RasterBufferAndPrint [15:48:04]line Счет N : (1)718084 [15:48:04]line ИНН: 02508201610067 [15:48:04]line Контрольно-Кассовый Чек [15:48:04]line ПРОДАЖА [15:48:04]line ТРК (МРК, ГНК) : 32 [15:48:04]line Товар: 2710124130 [15:48:04]line Аи-92-К-4 [15:48:04]line 22.260 * 67.40 [15:48:04]line = 1500.32 [15:48:04]line НДС 12% НСП 1% [15:48:04]line > о реализуемом товаре [15:48:04]line ИТОГО: 1500.32 [15:48:04]line НСП 1% : 13.28 [15:48:04]line НДС 12% : 159.33 [15:48:04]line Наличными: 0.00 [15:48:04]line Безнал.: 1500.32 [15:48:04]line Место: АЗС № 64 "Партнер Нефть" [15:48:04]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:48:04]line СНО: Общий режим [15:48:04]line Чек 107 26.11.2024 15:48 [15:48:04]line Смена: 557 ФФД: 1.0 [15:48:04]line ЗНМ: 0300000033 [15:48:04]line РНМ: 0000000000092681 [15:48:04]line Версия ККМ: 001 [15:48:04]line Платежная система: O! деньги [15:48:04]line ФМ: 0000000000874881 [15:48:04]line ФД: 123253 [15:48:04]line ФПД: 103369194224203 [15:48:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T154814&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123253&fm=103369194224203&tin=02508201610067®Number=0000000000092681&sum=150032 [15:48:04]written 0, free lines is 4095 [15:48:04]OFD Sender: Processing packet 123253 [packets to send 7, broken 6] [15:48:04]ProducePacketName [15:48:04]name=ofd_packets/00123253 [15:48:04]OFD Sender: To server: pG, [15:48:04]CommunicateWithHost lk.salyk.kg:30040 [15:48:04]ConnectInit lk.salyk.kg [15:48:04]Connected sock=9 [15:48:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 60 AF 07 01 6B B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 BE ED 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 75 E1 01 00 35 04 06 00 5E 03 84 1A 3A 4B 0D C5 54 90 AD EE 03 7A [15:48:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 00 99 47 00 90 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 75 E1 01 00 F4 03 04 00 80 99 45 67 B6 04 01 00 00 A7 5C D0 48 9A 51 23 64 [15:48:05]CommunicateWithHost err = 0 [15:48:05]CheckOFDResponse [15:48:05]1017 (14) - 77093643461234 [15:48:05]1041 (16) - 0000000000874881 [15:48:05]1040 (4) - 123253 [15:48:05]1012 (4) - 26.11.2024 09:48 [15:48:05]1206 (1) - 0 [15:48:05]OFD Sender: Remove packet 123253 [15:48:05]ProducePacketName [15:48:05]name=ofd_packets/00123253 [15:48:05]NVStorageDeleteData [15:48:05]Write to MH i2c: 01 00 00 93 66 F9 [15:48:05]Write i2c OK [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: 01 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: 01 07 00 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: 01 07 00 93 66 00 00 00 00 00 5D 0C 69 [15:48:05]RasterBufferAndPrint [15:48:05]line [15:48:05]line [15:48:05]line [15:48:05]line [15:48:05]line [15:48:05]written 0, free lines is 3171 [15:48:05]MH_Cut [15:48:05]Write to MH i2c: D1 01 00 9A 66 01 D2 [15:48:05]Write i2c OK [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: D1 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: D1 01 00 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: D1 01 00 9A 66 00 D1 [15:48:05]Write to MH i2c: 01 00 00 9B 66 01 [15:48:05]Write i2c OK [15:48:05]MH_I2C_Read... [15:48:05]OFD Sender: No OFD packet to send [15:48:06]*** Cut start [15:48:06]*** Partial cut [15:48:06]*** CUTSNS_PIN = 1 [15:48:06]*** CUTSNS_PIN = 0 [15:48:06]*** Brake cut motor [15:48:07]Read from MH i2c: 01 [15:48:07]MH_I2C_Read... [15:48:07]*** Stop cut motor [15:48:07]*** Cut end [15:48:07]Read from MH i2c: 01 07 00 [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: 01 07 00 9B 66 00 00 00 00 00 FF 0F 16 [15:48:07]process_action close_receipt done [15:48:07]requested_data is exist [15:48:07]produce_requested_data [15:48:07]requested_item fm.sn is exist - process it [15:48:07]wFMCommunicate request_size=4 [15:48:07]MH_SAM_APDU [15:48:07]CAPDU: 80 11 00 00 [15:48:07]Write to MH i2c: E2 08 00 9C 66 80 11 00 00 00 00 00 00 7C [15:48:07]Write i2c OK [15:48:07]MH_I2C_Read... [15:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:07]Read from MH i2c: E2 [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: E2 17 00 [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: E2 17 00 9C 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D3 [15:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:48:07]wFMCommunicate OK [15:48:07]requested_item fd.num is exist - process it [15:48:07]SAM_PROTO_GetFieldsCounters [15:48:07]wFMCommunicate request_size=4 [15:48:07]MH_SAM_APDU [15:48:07]CAPDU: 80 13 00 00 [15:48:07]Write to MH i2c: E2 08 00 9D 66 80 13 00 00 00 00 00 00 7F [15:48:07]Write i2c OK [15:48:07]MH_I2C_Read... [15:48:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:07]Read from MH i2c: E2 [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: E2 62 00 [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: E2 62 00 9D 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 75 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [15:48:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 75 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:07]wFMCommunicate OK [15:48:07]SAM_PROTO_GetFieldsCounters done [15:48:07]requested_item shift.num is exist - process it [15:48:07]requested_item shift.opened is exist - process it [15:48:07]req_shift_opened [15:48:07]FM_GetShiftState [15:48:07]SAM_PROTO_GetShiftState [15:48:07]wFMCommunicate request_size=4 [15:48:07]MH_SAM_APDU [15:48:07]CAPDU: 80 13 01 00 [15:48:07]Write to MH i2c: E2 08 00 9E 66 80 13 01 00 00 00 00 00 81 [15:48:07]Write i2c OK [15:48:07]MH_I2C_Read... [15:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:07]Read from MH i2c: E2 [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: E2 0E 00 [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: E2 0E 00 9E 66 00 09 00 01 98 11 45 67 00 00 00 00 90 00 E2 [15:48:07]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:48:07]wFMCommunicate OK [15:48:07]SAM_PROTO_GetShiftState done [15:48:07]FM_GetShiftState done [15:48:07]req_shift_opened done [15:48:07]requested_item shift.open_date is exist - process it [15:48:07]req_shift_open_date [15:48:07]req_shift_open_date done [15:48:07]produce_requested_data done [15:48:07]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123253,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [15:48:07]process_action_free close_receipt [15:48:07]json_value_free [15:48:07]json_value_free done [15:48:07]process_json_proto returns [15:48:07]Send response to host [15:48:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123253,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [15:48:07]free response buf [15:48:07]execute_script done [15:48:07]execute_script returns [15:48:07]free content buf [15:48:07]Sock 7.Close socket [15:48:07]Sock 7.Thread stoped [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:16]accept exits with 10 [15:51:16]New connection [15:51:16]New thread 3066723684 created [15:51:16]Thread 3066580324 joined [15:51:16]Waiting for new connection... [15:51:16] Sock 10.Parse request [15:51:16]Sock 10.Check first char [15:51:16]Sock 10.First char is OK [15:51:16]request: POST /json_proto HTTP/1.0 [15:51:16]Method: POST [15:51:16]URL: /json_proto [15:51:16]Method is POST - this is cgi request [15:51:16]url: /json_proto [15:51:16]query_string will be loaded in cgi processing [15:51:16]execute_cgi json_proto POST (null) [15:51:16]execute_cgi path=json_proto method=POST [15:51:16]POST find Content-Length [15:51:16]Host: 172.17.37.4:8080 [15:51:16]Content-Length: 758 [15:51:16]Content-Type: application/json [15:51:16] [15:51:16]POST finish read [15:51:16]Found Content-Length = 758 [15:51:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 10.970, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097614", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:16]execute_script... [15:51:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 10.970, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097614", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:16]POST & json_proto [15:51:16]process_json_proto [15:51:16]json parsed OK: [15:51:16]protocol is kg_v1.0 [15:51:16]action value=close_receipt [15:51:16]process_action close_receipt [15:51:16]cmd_close_receipt [15:51:16]MH_GetDate [15:51:16]Write to MH i2c: F0 00 00 9F 66 F4 [15:51:16]Write i2c OK [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: F0 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: F0 09 00 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: F0 09 00 9F 66 00 7F EE 45 67 B8 5A 43 67 D2 [15:51:16]GetLastDocTimeStamp 1732636094 [15:51:16]current date 1732636287 [15:51:16]FM_GetShiftState [15:51:16]SAM_PROTO_GetShiftState [15:51:16]wFMCommunicate request_size=4 [15:51:16]MH_SAM_APDU [15:51:16]CAPDU: 80 13 01 00 [15:51:16]Write to MH i2c: E2 08 00 A0 66 80 13 01 00 00 00 00 00 83 [15:51:16]Write i2c OK [15:51:16]MH_I2C_Read... [15:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:16]Read from MH i2c: E2 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: E2 0E 00 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: E2 0E 00 A0 66 00 09 00 01 98 11 45 67 00 00 00 00 90 00 E4 [15:51:16]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:51:16]wFMCommunicate OK [15:51:16]SAM_PROTO_GetShiftState done [15:51:16]FM_GetShiftState done [15:51:16]opened in 1732579736 [15:51:16]opened+sec_in_day 1732666136 [15:51:16]quantity*price = 0 [15:51:16]sum+1 = 1 [15:51:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 108 26.11.2024 15:51 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: ТК ГПНА Online 30097614 ФМ: 0000000000874881 ФД: 123254 ФПД: 146294020397643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T155128&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123254&fm=146294020397643&tin=02508201610067®Number=0000000000092681&sum=0 [15:51:17]StoreToDocumentArchive [15:51:17]shift 557 fd 123254 [15:51:17]save to /storage/0557/doc_00123254 [15:51:17]save last doc name /storage/0557/doc_00123254 to /storage/kkm_last_doc_name [15:51:17]save OK [15:51:17]Clear old archive folders... [15:51:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:51:17]tlvbuf is 02205A90 [15:51:17]SAM_PROTO_ClearQueue [15:51:17]wFMCommunicate request_size=4 [15:51:17]MH_SAM_APDU [15:51:17]CAPDU: 80 09 00 00 [15:51:17]Write to MH i2c: E2 08 00 AD 66 80 09 00 00 00 00 00 00 85 [15:51:17]Write i2c OK [15:51:17]MH_I2C_Read... [15:51:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:17]Read from MH i2c: E2 [15:51:17]MH_I2C_Read... [15:51:17]Read from MH i2c: E2 03 00 [15:51:17]MH_I2C_Read... [15:51:17]Read from MH i2c: E2 03 00 AD 66 00 90 00 87 [15:51:17]RAPDU: 90 00 [15:51:17]wFMCommunicate OK [15:51:17]SAM_PROTO_ClearQueue done [15:51:17]KKMCreateOFDPacket [15:51:17]OFDProtocolAddRootSTLVToBuf [15:51:17]FM_MakeSignedData [15:51:17]FM_MakeSignedData [15:51:17]SAM_PROTO_SignData [15:51:17]wFMCommunicate request_size=4 [15:51:17]MH_SAM_APDU [15:51:17]CAPDU: 80 0D 01 02 [15:51:17]Write to MH i2c: E2 08 00 AE 66 80 0D 01 02 00 00 00 00 8D [15:51:17]Write i2c OK [15:51:17]MH_I2C_Read... [15:51:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:17]Read from MH i2c: E2 [15:51:17]MH_I2C_Read... [15:51:17]Read from MH i2c: E2 03 00 [15:51:17]MH_I2C_Read... [15:51:17]Read from MH i2c: E2 03 00 AE 66 00 90 00 88 [15:51:17]RAPDU: 90 00 [15:51:17]wFMCommunicate OK [15:51:17]wFMCommunicate request_size=255 [15:51:17]MH_SAM_APDU [15:51:17]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 35 FF 03 08 00 03 DA 2A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 80 EE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 76 E1 01 00 35 04 06 00 [15:51:17]Write to MH i2c: E2 02 01 AF 66 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 35 FF 03 08 00 03 DA 2A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 80 EE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 76 E1 01 00 35 04 06 00 00 00 E8 [15:51:17]Write i2c OK [15:51:17]MH_I2C_Read... [15:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:18]Read from MH i2c: E2 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 03 00 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 03 00 AF 66 00 90 00 89 [15:51:18]RAPDU: 90 00 [15:51:18]wFMCommunicate OK [15:51:18]wFMCommunicate request_size=11 [15:51:18]MH_SAM_APDU [15:51:18]CAPDU: 80 0D 02 02 06 85 0D BB 1E 5A 4B [15:51:18]Write to MH i2c: E2 0E 00 B0 66 80 0D 02 02 06 00 85 0D BB 1E 5A 4B 00 00 AC [15:51:18]Write i2c OK [15:51:18]MH_I2C_Read... [15:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:18]Read from MH i2c: E2 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 03 00 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 03 00 B0 66 00 90 00 8A [15:51:18]RAPDU: 90 00 [15:51:18]wFMCommunicate OK [15:51:18]wFMCommunicate request_size=4 [15:51:18]MH_SAM_APDU [15:51:18]CAPDU: 80 0D 03 02 [15:51:18]Write to MH i2c: E2 08 00 B1 66 80 0D 03 02 00 00 00 00 92 [15:51:18]Write i2c OK [15:51:18]MH_I2C_Read... [15:51:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:18]Read from MH i2c: E2 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 0B 00 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 0B 00 B1 66 00 22 E6 79 62 5D BF DE 0E 90 00 7E [15:51:18]RAPDU: 22 E6 79 62 5D BF DE 0E 90 00 [15:51:18]wFMCommunicate OK [15:51:18]SAM_PROTO_SignData done [15:51:18]FM_MakeSignedData done [15:51:18]CreateOFDProtocolMessage [15:51:18]wFMCommunicate request_size=4 [15:51:18]MH_SAM_APDU [15:51:18]CAPDU: 80 11 00 00 [15:51:18]Write to MH i2c: E2 08 00 B2 66 80 11 00 00 00 00 00 00 92 [15:51:18]Write i2c OK [15:51:18]MH_I2C_Read... [15:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:18]Read from MH i2c: E2 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 17 00 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: E2 17 00 B2 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E9 [15:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:51:18]wFMCommunicate OK [15:51:18]CreateOFDProtocolMessage done [15:51:18]OFDSenderStorePacket 123254 [15:51:18]StoreOFDPacket docnum=123254 [15:51:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 D5 69 08 01 3B 64 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 35 FF 03 08 00 03 DA 2A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 80 EE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 76 E1 01 00 35 04 06 00 85 0D BB 1E 5A 4B 22 E6 79 62 5D BF DE 0E [15:51:18]CheckFolder [15:51:18]dirname=/storage/ofd_packets [15:51:18]CheckFolder done [15:51:18]ProducePacketName [15:51:18]name=ofd_packets/00123254 [15:51:18]NVStorageSaveData ofd_packets/00123254 [15:51:18]File name is /storage/ofd_packets/00123254 [15:51:18]Write 302 bytes [15:51:18]NVStorageSaveData done [15:51:18]OFDSenderStorePacket done [15:51:18]KKMCreateOFDPacket done [15:51:18]NVStorageSaveData kkm_last_timestamp [15:51:18]File name is /storage/kkm_last_timestamp [15:51:18]Write 4 bytes [15:51:18]NVStorageSaveData done [15:51:18]ExternCall_PrintAddStr [15:51:18]wPrintStart [15:51:18]Write to MH i2c: 01 00 00 B3 66 19 [15:51:18]Write i2c OK [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: 01 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: 01 07 00 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: 01 07 00 B3 66 00 00 00 00 00 FF 0F 2E [15:51:18]RasterBufferAndPrint [15:51:18]line Счет N : (1)718085 [15:51:18]line ИНН: 02508201610067 [15:51:18]line Контрольно-Кассовый Чек [15:51:18]line ПРОДАЖА [15:51:18]line ТРК (МРК, ГНК) : 5 [15:51:18]line Товар: 2710194210 [15:51:18]line ДТ(л)-К-5 [15:51:18]line 10.970 * 0.00 [15:51:18]line = 0.00 [15:51:18]line НДС 12% НСП 1% [15:51:18]line > о реализуемом товаре [15:51:18]line ИТОГО: 0.00 [15:51:18]line НСП 1% : 0.00 [15:51:18]line НДС 12% : 0.00 [15:51:18]line Наличными: 0.00 [15:51:18]line Безнал.: 0.00 [15:51:18]line Место: АЗС № 64 "Партнер Нефть" [15:51:18]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:51:18]line СНО: Общий режим [15:51:18]line Чек 108 26.11.2024 15:51 [15:51:18]line Смена: 557 ФФД: 1.0 [15:51:18]line ЗНМ: 0300000033 [15:51:18]line РНМ: 0000000000092681 [15:51:18]line Версия ККМ: 001 [15:51:18]line Талоны: ТК ГПНА Online [15:51:18]line 30097614 [15:51:18]line ФМ: 0000000000874881 [15:51:18]line ФД: 123254 [15:51:18]line ФПД: 146294020397643 [15:51:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T155128&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123254&fm=146294020397643&tin=02508201610067®Number=0000000000092681&sum=0 [15:51:18]OFD Sender: Processing packet 123254 [packets to send 7, broken 6] [15:51:18]ProducePacketName [15:51:18]name=ofd_packets/00123254 [15:51:18]OFD Sender: To server: pG, [15:51:18]CommunicateWithHost lk.salyk.kg:30040 [15:51:18]ConnectInit lk.salyk.kg [15:51:18]written 0, free lines is 4095 [15:51:18]Connected sock=9 [15:51:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 D5 69 08 01 3B 64 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 35 FF 03 08 00 03 DA 2A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 80 EE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 76 E1 01 00 35 04 06 00 85 0D BB 1E 5A 4B 22 E6 79 62 5D BF DE 0E [15:51:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 1C 20 47 00 BD 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 76 E1 01 00 F4 03 04 00 42 9A 45 67 B6 04 01 00 00 AC 71 71 76 76 9B F8 F7 [15:51:18]CommunicateWithHost err = 0 [15:51:18]CheckOFDResponse [15:51:18]1017 (14) - 77093643461234 [15:51:18]1041 (16) - 0000000000874881 [15:51:18]1040 (4) - 123254 [15:51:18]1012 (4) - 26.11.2024 09:52 [15:51:18]1206 (1) - 0 [15:51:18]OFD Sender: Remove packet 123254 [15:51:18]ProducePacketName [15:51:18]name=ofd_packets/00123254 [15:51:18]NVStorageDeleteData [15:51:19]Write to MH i2c: 01 00 00 DD 66 43 [15:51:19]Write i2c OK [15:51:19]MH_I2C_Read... [15:51:19]Read from MH i2c: 01 [15:51:19]MH_I2C_Read... [15:51:19]Read from MH i2c: 01 07 00 [15:51:19]MH_I2C_Read... [15:51:19]Read from MH i2c: 01 07 00 DD 66 00 00 00 00 00 60 0C B6 [15:51:19]RasterBufferAndPrint [15:51:19]line [15:51:19]line [15:51:19]line [15:51:19]line [15:51:19]line [15:51:19]written 0, free lines is 3171 [15:51:19]MH_Cut [15:51:19]Write to MH i2c: D1 01 00 E4 66 01 1C [15:51:19]Write i2c OK [15:51:19]MH_I2C_Read... [15:51:19]Read from MH i2c: D1 [15:51:19]MH_I2C_Read... [15:51:19]Read from MH i2c: D1 01 00 [15:51:19]MH_I2C_Read... [15:51:19]Read from MH i2c: D1 01 00 E4 66 00 1B [15:51:19]Write to MH i2c: 01 00 00 E5 66 4B [15:51:19]Write i2c OK [15:51:19]MH_I2C_Read... [15:51:19]OFD Sender: No OFD packet to send [15:51:20]*** Cut start [15:51:20]*** Partial cut [15:51:20]*** CUTSNS_PIN = 1 [15:51:20]*** CUTSNS_PIN = 0 [15:51:20]*** Brake cut motor [15:51:21]Read from MH i2c: 01 [15:51:21]MH_I2C_Read... [15:51:21]*** Stop cut motor [15:51:21]*** Cut end [15:51:21]Read from MH i2c: 01 07 00 [15:51:21]MH_I2C_Read... [15:51:21]Read from MH i2c: 01 07 00 E5 66 00 00 00 00 00 FF 0F 60 [15:51:21]process_action close_receipt done [15:51:21]requested_data is exist [15:51:21]produce_requested_data [15:51:21]requested_item fm.sn is exist - process it [15:51:21]wFMCommunicate request_size=4 [15:51:21]MH_SAM_APDU [15:51:21]CAPDU: 80 11 00 00 [15:51:21]Write to MH i2c: E2 08 00 E6 66 80 11 00 00 00 00 00 00 C6 [15:51:21]Write i2c OK [15:51:21]MH_I2C_Read... [15:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:21]Read from MH i2c: E2 [15:51:21]MH_I2C_Read... [15:51:21]Read from MH i2c: E2 17 00 [15:51:21]MH_I2C_Read... [15:51:21]Read from MH i2c: E2 17 00 E6 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1D [15:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:51:21]wFMCommunicate OK [15:51:21]requested_item fd.num is exist - process it [15:51:21]SAM_PROTO_GetFieldsCounters [15:51:21]wFMCommunicate request_size=4 [15:51:21]MH_SAM_APDU [15:51:21]CAPDU: 80 13 00 00 [15:51:21]Write to MH i2c: E2 08 00 E7 66 80 13 00 00 00 00 00 00 C9 [15:51:21]Write i2c OK [15:51:21]MH_I2C_Read... [15:51:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:21]Read from MH i2c: E2 [15:51:21]MH_I2C_Read... [15:51:21]Read from MH i2c: E2 62 00 [15:51:21]MH_I2C_Read... [15:51:21]Read from MH i2c: E2 62 00 E7 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 76 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [15:51:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 76 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:51:21]wFMCommunicate OK [15:51:21]SAM_PROTO_GetFieldsCounters done [15:51:21]requested_item shift.num is exist - process it [15:51:21]requested_item shift.opened is exist - process it [15:51:21]req_shift_opened [15:51:21]FM_GetShiftState [15:51:21]SAM_PROTO_GetShiftState [15:51:21]wFMCommunicate request_size=4 [15:51:21]MH_SAM_APDU [15:51:21]CAPDU: 80 13 01 00 [15:51:21]Write to MH i2c: E2 08 00 E8 66 80 13 01 00 00 00 00 00 CB [15:51:21]Write i2c OK [15:51:21]MH_I2C_Read... [15:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:21]Read from MH i2c: E2 [15:51:21]MH_I2C_Read... [15:51:21]Read from MH i2c: E2 0E 00 [15:51:21]MH_I2C_Read... [15:51:21]Read from MH i2c: E2 0E 00 E8 66 00 09 00 01 98 11 45 67 00 00 00 00 90 00 2C [15:51:21]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:51:21]wFMCommunicate OK [15:51:21]SAM_PROTO_GetShiftState done [15:51:21]FM_GetShiftState done [15:51:21]req_shift_opened done [15:51:21]requested_item shift.open_date is exist - process it [15:51:21]req_shift_open_date [15:51:21]req_shift_open_date done [15:51:21]produce_requested_data done [15:51:21]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123254,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [15:51:21]process_action_free close_receipt [15:51:21]json_value_free [15:51:21]json_value_free done [15:51:21]process_json_proto returns [15:51:21]Send response to host [15:51:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123254,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [15:51:21]free response buf [15:51:21]execute_script done [15:51:21]execute_script returns [15:51:21]free content buf [15:51:21]Sock 10.Close socket [15:51:21]Sock 10.Thread stoped [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]accept exits with 7 [15:53:29]New connection [15:53:29]New thread 3066580324 created [15:53:29]Thread 3066723684 joined [15:53:29]Waiting for new connection... [15:53:29] Sock 7.Parse request [15:53:29]Sock 7.Check first char [15:53:29]Sock 7.First char is OK [15:53:29]request: POST /json_proto HTTP/1.0 [15:53:29]Method: POST [15:53:29]URL: /json_proto [15:53:29]Method is POST - this is cgi request [15:53:29]url: /json_proto [15:53:29]query_string will be loaded in cgi processing [15:53:29]execute_cgi json_proto POST (null) [15:53:29]execute_cgi path=json_proto method=POST [15:53:29]POST find Content-Length [15:53:29]Host: 172.17.37.4:8080 [15:53:29]Content-Length: 823 [15:53:29]Content-Type: application/json [15:53:29] [15:53:29]POST finish read [15:53:29]Found Content-Length = 823 [15:53:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:29]execute_script... [15:53:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:29]POST & json_proto [15:53:29]process_json_proto [15:53:29]json parsed OK: [15:53:29]protocol is kg_v1.0 [15:53:29]action value=close_receipt [15:53:29]process_action close_receipt [15:53:29]cmd_close_receipt [15:53:29]MH_GetDate [15:53:29]Write to MH i2c: F0 00 00 E9 66 3E [15:53:29]Write i2c OK [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: F0 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: F0 09 00 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: F0 09 00 E9 66 00 04 EF 45 67 B8 5A 43 67 A2 [15:53:29]GetLastDocTimeStamp 1732636288 [15:53:29]current date 1732636420 [15:53:29]FM_GetShiftState [15:53:29]SAM_PROTO_GetShiftState [15:53:29]wFMCommunicate request_size=4 [15:53:29]MH_SAM_APDU [15:53:29]CAPDU: 80 13 01 00 [15:53:29]Write to MH i2c: E2 08 00 EA 66 80 13 01 00 00 00 00 00 CD [15:53:29]Write i2c OK [15:53:29]MH_I2C_Read... [15:53:29]OFD Sender: No OFD packet to send [15:53:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:29]Read from MH i2c: E2 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: E2 0E 00 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: E2 0E 00 EA 66 00 09 00 01 98 11 45 67 00 00 00 00 90 00 2E [15:53:29]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:53:29]wFMCommunicate OK [15:53:29]SAM_PROTO_GetShiftState done [15:53:29]FM_GetShiftState done [15:53:29]opened in 1732579736 [15:53:29]opened+sec_in_day 1732666136 [15:53:29]quantity*price = 100066 [15:53:29]sum+1 = 100067 [15:53:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 109 26.11.2024 15:53 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123255 ФПД: 221596962009040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T155340&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123255&fm=221596962009040&tin=02508201610067®Number=0000000000092681&sum=100066 [15:53:30]StoreToDocumentArchive [15:53:30]shift 557 fd 123255 [15:53:30]save to /storage/0557/doc_00123255 [15:53:30]save last doc name /storage/0557/doc_00123255 to /storage/kkm_last_doc_name [15:53:30]save OK [15:53:30]Clear old archive folders... [15:53:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:53:30]tlvbuf is 0212B7D0 [15:53:30]SAM_PROTO_ClearQueue [15:53:30]wFMCommunicate request_size=4 [15:53:30]MH_SAM_APDU [15:53:30]CAPDU: 80 09 00 00 [15:53:30]Write to MH i2c: E2 08 00 F7 66 80 09 00 00 00 00 00 00 CF [15:53:30]Write i2c OK [15:53:30]MH_I2C_Read... [15:53:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:30]Read from MH i2c: E2 [15:53:30]MH_I2C_Read... [15:53:30]Read from MH i2c: E2 03 00 [15:53:30]MH_I2C_Read... [15:53:30]Read from MH i2c: E2 03 00 F7 66 00 90 00 D1 [15:53:30]RAPDU: 90 00 [15:53:30]wFMCommunicate OK [15:53:30]SAM_PROTO_ClearQueue done [15:53:30]KKMCreateOFDPacket [15:53:30]OFDProtocolAddRootSTLVToBuf [15:53:30]FM_MakeSignedData [15:53:30]FM_MakeSignedData [15:53:30]SAM_PROTO_SignData [15:53:30]wFMCommunicate request_size=4 [15:53:30]MH_SAM_APDU [15:53:30]CAPDU: 80 0D 01 02 [15:53:30]Write to MH i2c: E2 08 00 F8 66 80 0D 01 02 00 00 00 00 D7 [15:53:30]Write i2c OK [15:53:30]MH_I2C_Read... [15:53:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:30]Read from MH i2c: E2 [15:53:30]MH_I2C_Read... [15:53:30]Read from MH i2c: E2 03 00 [15:53:30]MH_I2C_Read... [15:53:30]Read from MH i2c: E2 03 00 F8 66 00 90 00 D2 [15:53:30]RAPDU: 90 00 [15:53:30]wFMCommunicate OK [15:53:30]wFMCommunicate request_size=255 [15:53:30]MH_SAM_APDU [15:53:30]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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 04 EF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 77 E1 01 00 35 04 06 00 [15:53:30]Write to MH i2c: E2 02 01 F9 66 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 04 EF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 77 E1 01 00 35 04 06 00 00 00 D6 [15:53:30]Write i2c OK [15:53:30]MH_I2C_Read... [15:53:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:31]Read from MH i2c: E2 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: E2 03 00 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: E2 03 00 F9 66 00 90 00 D3 [15:53:31]RAPDU: 90 00 [15:53:31]wFMCommunicate OK [15:53:31]wFMCommunicate request_size=11 [15:53:31]MH_SAM_APDU [15:53:31]CAPDU: 80 0D 02 02 06 C9 8A 90 34 2F D0 [15:53:31]Write to MH i2c: E2 0E 00 FA 66 80 0D 02 02 06 00 C9 8A 90 34 2F D0 00 00 FC [15:53:31]Write i2c OK [15:53:31]MH_I2C_Read... [15:53:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:31]Read from MH i2c: E2 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: E2 03 00 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: E2 03 00 FA 66 00 90 00 D4 [15:53:31]RAPDU: 90 00 [15:53:31]wFMCommunicate OK [15:53:31]wFMCommunicate request_size=4 [15:53:31]MH_SAM_APDU [15:53:31]CAPDU: 80 0D 03 02 [15:53:31]Write to MH i2c: E2 08 00 FB 66 80 0D 03 02 00 00 00 00 DC [15:53:31]Write i2c OK [15:53:31]MH_I2C_Read... [15:53:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:31]Read from MH i2c: E2 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: E2 0B 00 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: E2 0B 00 FB 66 00 8D FC 4B 73 70 17 DD ED 90 00 75 [15:53:31]RAPDU: 8D FC 4B 73 70 17 DD ED 90 00 [15:53:31]wFMCommunicate OK [15:53:31]SAM_PROTO_SignData done [15:53:31]FM_MakeSignedData done [15:53:31]CreateOFDProtocolMessage [15:53:31]wFMCommunicate request_size=4 [15:53:31]MH_SAM_APDU [15:53:31]CAPDU: 80 11 00 00 [15:53:31]Write to MH i2c: E2 08 00 FC 66 80 11 00 00 00 00 00 00 DC [15:53:31]Write i2c OK [15:53:31]MH_I2C_Read... [15:53:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:31]Read from MH i2c: E2 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: E2 17 00 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: E2 17 00 FC 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 33 [15:53:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:53:31]wFMCommunicate OK [15:53:31]CreateOFDProtocolMessage done [15:53:31]OFDSenderStorePacket 123255 [15:53:31]StoreOFDPacket docnum=123255 [15:53:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 1F BD 08 01 B3 31 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 04 EF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 77 E1 01 00 35 04 06 00 C9 8A 90 34 2F D0 8D FC 4B 73 70 17 DD ED [15:53:31]CheckFolder [15:53:31]dirname=/storage/ofd_packets [15:53:31]CheckFolder done [15:53:31]ProducePacketName [15:53:31]name=ofd_packets/00123255 [15:53:31]NVStorageSaveData ofd_packets/00123255 [15:53:31]File name is /storage/ofd_packets/00123255 [15:53:31]Write 302 bytes [15:53:31]NVStorageSaveData done [15:53:31]OFDSenderStorePacket done [15:53:31]KKMCreateOFDPacket done [15:53:31]NVStorageSaveData kkm_last_timestamp [15:53:31]File name is /storage/kkm_last_timestamp [15:53:31]Write 4 bytes [15:53:31]NVStorageSaveData done [15:53:31]ExternCall_PrintAddStr [15:53:31]wPrintStart [15:53:31]Write to MH i2c: 01 00 00 FD 66 63 [15:53:31]Write i2c OK [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: 01 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: 01 07 00 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: 01 07 00 FD 66 00 00 00 00 00 FF 0F 78 [15:53:31]RasterBufferAndPrint [15:53:31]line Счет N : (1)718086 [15:53:31]line ИНН: 02508201610067 [15:53:31]line Контрольно-Кассовый Чек [15:53:31]line ПРОДАЖА [15:53:31]line ТРК (МРК, ГНК) : 6 [15:53:31]line Товар: 2710194210 [15:53:31]line ДТ(л)-К-5 [15:53:31]line 13.360 * 74.90 [15:53:31]line = 1000.66 [15:53:31]line НДС 12% НСП 1% [15:53:31]line > о реализуемом товаре [15:53:31]line ИТОГО: 1000.66 [15:53:31]line НСП 1% : 8.85 [15:53:31]line НДС 12% : 106.26 [15:53:31]line Наличными: 0.00 [15:53:31]line Безнал.: 1000.66 [15:53:31]line Место: АЗС № 64 "Партнер Нефть" [15:53:31]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:53:31]line СНО: Общий режим [15:53:31]line Чек 109 26.11.2024 15:53 [15:53:31]line Смена: 557 ФФД: 1.0 [15:53:31]line ЗНМ: 0300000033 [15:53:31]line РНМ: 0000000000092681 [15:53:31]line Версия ККМ: 001 [15:53:31]line Платежная система: Бакай Банк [15:53:31]line ФМ: 0000000000874881 [15:53:31]line ФД: 123255 [15:53:31]line ФПД: 221596962009040 [15:53:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T155340&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123255&fm=221596962009040&tin=02508201610067®Number=0000000000092681&sum=100066 [15:53:31]written 0, free lines is 4095 [15:53:31]OFD Sender: Processing packet 123255 [packets to send 7, broken 6] [15:53:31]ProducePacketName [15:53:31]name=ofd_packets/00123255 [15:53:31]OFD Sender: To server: pG, [15:53:31]CommunicateWithHost lk.salyk.kg:30040 [15:53:31]ConnectInit lk.salyk.kg [15:53:31]Connected sock=10 [15:53:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 1F BD 08 01 B3 31 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 04 EF 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 77 E1 01 00 35 04 06 00 C9 8A 90 34 2F D0 8D FC 4B 73 70 17 DD ED [15:53:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 92 76 47 00 D8 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 77 E1 01 00 F4 03 04 00 C7 9A 45 67 B6 04 01 00 00 CC 6E EE 66 19 45 4E 5B [15:53:31]CommunicateWithHost err = 0 [15:53:31]CheckOFDResponse [15:53:31]1017 (14) - 77093643461234 [15:53:31]1041 (16) - 0000000000874881 [15:53:31]1040 (4) - 123255 [15:53:31]1012 (4) - 26.11.2024 09:54 [15:53:31]1206 (1) - 0 [15:53:31]OFD Sender: Remove packet 123255 [15:53:31]ProducePacketName [15:53:31]name=ofd_packets/00123255 [15:53:31]NVStorageDeleteData [15:53:32]Write to MH i2c: 01 00 00 27 67 8E [15:53:32]Write i2c OK [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: 01 [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: 01 07 00 [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: 01 07 00 27 67 00 00 00 00 00 5D 0C FE [15:53:32]RasterBufferAndPrint [15:53:32]line [15:53:32]line [15:53:32]line [15:53:32]line [15:53:32]line [15:53:32]written 0, free lines is 3170 [15:53:32]MH_Cut [15:53:32]Write to MH i2c: D1 01 00 2E 67 01 67 [15:53:32]Write i2c OK [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: D1 [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: D1 01 00 [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: D1 01 00 2E 67 00 66 [15:53:32]Write to MH i2c: 01 00 00 2F 67 96 [15:53:32]Write i2c OK [15:53:32]MH_I2C_Read... [15:53:32]OFD Sender: No OFD packet to send [15:53:33]*** Cut start [15:53:33]*** Partial cut [15:53:33]*** CUTSNS_PIN = 1 [15:53:33]*** CUTSNS_PIN = 0 [15:53:33]*** Brake cut motor [15:53:34]Read from MH i2c: 01 [15:53:34]MH_I2C_Read... [15:53:34]*** Stop cut motor [15:53:34]*** Cut end [15:53:34]Read from MH i2c: 01 07 00 [15:53:34]MH_I2C_Read... [15:53:34]Read from MH i2c: 01 07 00 2F 67 00 00 00 00 00 FF 0F AB [15:53:34]process_action close_receipt done [15:53:34]requested_data is exist [15:53:34]produce_requested_data [15:53:34]requested_item fm.sn is exist - process it [15:53:34]wFMCommunicate request_size=4 [15:53:34]MH_SAM_APDU [15:53:34]CAPDU: 80 11 00 00 [15:53:34]Write to MH i2c: E2 08 00 30 67 80 11 00 00 00 00 00 00 11 [15:53:34]Write i2c OK [15:53:34]MH_I2C_Read... [15:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:34]Read from MH i2c: E2 [15:53:34]MH_I2C_Read... [15:53:34]Read from MH i2c: E2 17 00 [15:53:34]MH_I2C_Read... [15:53:34]Read from MH i2c: E2 17 00 30 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 68 [15:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:53:34]wFMCommunicate OK [15:53:34]requested_item fd.num is exist - process it [15:53:34]SAM_PROTO_GetFieldsCounters [15:53:34]wFMCommunicate request_size=4 [15:53:34]MH_SAM_APDU [15:53:34]CAPDU: 80 13 00 00 [15:53:34]Write to MH i2c: E2 08 00 31 67 80 13 00 00 00 00 00 00 14 [15:53:34]Write i2c OK [15:53:34]MH_I2C_Read... [15:53:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:34]Read from MH i2c: E2 [15:53:34]MH_I2C_Read... [15:53:34]Read from MH i2c: E2 62 00 [15:53:34]MH_I2C_Read... [15:53:34]Read from MH i2c: E2 62 00 31 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 77 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [15:53:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 77 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:34]wFMCommunicate OK [15:53:34]SAM_PROTO_GetFieldsCounters done [15:53:34]requested_item shift.num is exist - process it [15:53:34]requested_item shift.opened is exist - process it [15:53:34]req_shift_opened [15:53:34]FM_GetShiftState [15:53:34]SAM_PROTO_GetShiftState [15:53:34]wFMCommunicate request_size=4 [15:53:34]MH_SAM_APDU [15:53:34]CAPDU: 80 13 01 00 [15:53:34]Write to MH i2c: E2 08 00 32 67 80 13 01 00 00 00 00 00 16 [15:53:34]Write i2c OK [15:53:34]MH_I2C_Read... [15:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:34]Read from MH i2c: E2 [15:53:34]MH_I2C_Read... [15:53:34]Read from MH i2c: E2 0E 00 [15:53:34]MH_I2C_Read... [15:53:34]Read from MH i2c: E2 0E 00 32 67 00 09 00 01 98 11 45 67 00 00 00 00 90 00 77 [15:53:34]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:53:34]wFMCommunicate OK [15:53:34]SAM_PROTO_GetShiftState done [15:53:34]FM_GetShiftState done [15:53:34]req_shift_opened done [15:53:34]requested_item shift.open_date is exist - process it [15:53:34]req_shift_open_date [15:53:34]req_shift_open_date done [15:53:34]produce_requested_data done [15:53:34]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123255,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [15:53:34]process_action_free close_receipt [15:53:34]json_value_free [15:53:34]json_value_free done [15:53:34]process_json_proto returns [15:53:34]Send response to host [15:53:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123255,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [15:53:34]free response buf [15:53:34]execute_script done [15:53:34]execute_script returns [15:53:34]free content buf [15:53:34]Sock 7.Close socket [15:53:34]Sock 7.Thread stoped [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]accept exits with 9 [15:58:17]New connection [15:58:17]New thread 3066723684 created [15:58:17]Thread 3066580324 joined [15:58:17]Waiting for new connection... [15:58:17] Sock 9.Parse request [15:58:17]Sock 9.Check first char [15:58:17]Sock 9.First char is OK [15:58:17]request: POST /json_proto HTTP/1.0 [15:58:17]Method: POST [15:58:17]URL: /json_proto [15:58:17]Method is POST - this is cgi request [15:58:17]url: /json_proto [15:58:17]query_string will be loaded in cgi processing [15:58:17]execute_cgi json_proto POST (null) [15:58:17]execute_cgi path=json_proto method=POST [15:58:17]POST find Content-Length [15:58:17]Host: 172.17.37.4:8080 [15:58:17]Content-Length: 800 [15:58:17]Content-Type: application/json [15:58:17] [15:58:17]POST finish read [15:58:17]Found Content-Length = 800 [15:58:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.570, "sum" : 240.62, "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" : 240.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:17]execute_script... [15:58:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.570, "sum" : 240.62, "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" : 240.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:17]POST & json_proto [15:58:17]process_json_proto [15:58:17]json parsed OK: [15:58:17]protocol is kg_v1.0 [15:58:17]action value=close_receipt [15:58:17]process_action close_receipt [15:58:17]cmd_close_receipt [15:58:17]MH_GetDate [15:58:17]Write to MH i2c: F0 00 00 33 67 89 [15:58:17]Write i2c OK [15:58:17]MH_I2C_Read... [15:58:17]Read from MH i2c: F0 [15:58:17]MH_I2C_Read... [15:58:17]Read from MH i2c: F0 09 00 [15:58:17]MH_I2C_Read... [15:58:17]Read from MH i2c: F0 09 00 33 67 00 24 F0 45 67 B8 5A 43 67 0E [15:58:17]GetLastDocTimeStamp 1732636420 [15:58:17]current date 1732636708 [15:58:17]FM_GetShiftState [15:58:17]SAM_PROTO_GetShiftState [15:58:17]wFMCommunicate request_size=4 [15:58:17]MH_SAM_APDU [15:58:17]CAPDU: 80 13 01 00 [15:58:17]Write to MH i2c: E2 08 00 34 67 80 13 01 00 00 00 00 00 18 [15:58:17]Write i2c OK [15:58:17]MH_I2C_Read... [15:58:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:17]Read from MH i2c: E2 [15:58:17]MH_I2C_Read... [15:58:17]Read from MH i2c: E2 0E 00 [15:58:17]MH_I2C_Read... [15:58:17]Read from MH i2c: E2 0E 00 34 67 00 09 00 01 98 11 45 67 00 00 00 00 90 00 79 [15:58:17]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:58:17]wFMCommunicate OK [15:58:17]SAM_PROTO_GetShiftState done [15:58:17]FM_GetShiftState done [15:58:17]opened in 1732579736 [15:58:17]opened+sec_in_day 1732666136 [15:58:17]quantity*price = 24061 [15:58:17]sum+1 = 24063 [15:58:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 240.62 НСП 1% : 2.13 НДС 12% : 25.55 Наличными: 0.00 Безнал.: 240.62 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 110 26.11.2024 15:58 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123256 ФПД: 103688078446463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T155828&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123256&fm=103688078446463&tin=02508201610067®Number=0000000000092681&sum=24062 [15:58:18]StoreToDocumentArchive [15:58:18]shift 557 fd 123256 [15:58:18]save to /storage/0557/doc_00123256 [15:58:18]save last doc name /storage/0557/doc_00123256 to /storage/kkm_last_doc_name [15:58:18]save OK [15:58:18]Clear old archive folders... [15:58:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:58:18]tlvbuf is 02193AF0 [15:58:18]SAM_PROTO_ClearQueue [15:58:18]wFMCommunicate request_size=4 [15:58:18]MH_SAM_APDU [15:58:18]CAPDU: 80 09 00 00 [15:58:18]Write to MH i2c: E2 08 00 41 67 80 09 00 00 00 00 00 00 1A [15:58:18]Write i2c OK [15:58:18]MH_I2C_Read... [15:58:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:18]Read from MH i2c: E2 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 03 00 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 03 00 41 67 00 90 00 1C [15:58:18]RAPDU: 90 00 [15:58:18]wFMCommunicate OK [15:58:18]SAM_PROTO_ClearQueue done [15:58:18]KKMCreateOFDPacket [15:58:18]OFDProtocolAddRootSTLVToBuf [15:58:18]FM_MakeSignedData [15:58:18]FM_MakeSignedData [15:58:18]SAM_PROTO_SignData [15:58:18]wFMCommunicate request_size=4 [15:58:18]MH_SAM_APDU [15:58:18]CAPDU: 80 0D 01 02 [15:58:18]Write to MH i2c: E2 08 00 42 67 80 0D 01 02 00 00 00 00 22 [15:58:18]Write i2c OK [15:58:18]MH_I2C_Read... [15:58:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:18]Read from MH i2c: E2 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 03 00 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 03 00 42 67 00 90 00 1D [15:58:18]RAPDU: 90 00 [15:58:18]wFMCommunicate OK [15:58:18]wFMCommunicate request_size=255 [15:58:18]MH_SAM_APDU [15:58:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F2 0D 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 FE 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FE 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FE 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 24 F0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 78 E1 01 00 35 04 06 00 5E [15:58:18]Write to MH i2c: E2 02 01 43 67 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 34 FF 03 08 00 03 F2 0D 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 FE 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FE 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FE 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 24 F0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 78 E1 01 00 35 04 06 00 5E 00 00 9C [15:58:18]Write i2c OK [15:58:18]MH_I2C_Read... [15:58:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:18]Read from MH i2c: E2 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 03 00 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 03 00 43 67 00 90 00 1E [15:58:18]RAPDU: 90 00 [15:58:18]wFMCommunicate OK [15:58:18]wFMCommunicate request_size=10 [15:58:18]MH_SAM_APDU [15:58:18]CAPDU: 80 0D 02 02 05 4D C3 15 4F 7F [15:58:18]Write to MH i2c: E2 0D 00 44 67 80 0D 02 02 05 00 4D C3 15 4F 7F 00 00 22 [15:58:18]Write i2c OK [15:58:18]MH_I2C_Read... [15:58:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:18]Read from MH i2c: E2 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 03 00 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 03 00 44 67 00 90 00 1F [15:58:18]RAPDU: 90 00 [15:58:18]wFMCommunicate OK [15:58:18]wFMCommunicate request_size=4 [15:58:18]MH_SAM_APDU [15:58:18]CAPDU: 80 0D 03 02 [15:58:18]Write to MH i2c: E2 08 00 45 67 80 0D 03 02 00 00 00 00 27 [15:58:18]Write i2c OK [15:58:18]MH_I2C_Read... [15:58:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:18]Read from MH i2c: E2 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 0B 00 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 0B 00 45 67 00 35 2D 54 FF 90 EB 2C B9 90 00 3D [15:58:18]RAPDU: 35 2D 54 FF 90 EB 2C B9 90 00 [15:58:18]wFMCommunicate OK [15:58:18]SAM_PROTO_SignData done [15:58:18]FM_MakeSignedData done [15:58:18]CreateOFDProtocolMessage [15:58:18]wFMCommunicate request_size=4 [15:58:18]MH_SAM_APDU [15:58:18]CAPDU: 80 11 00 00 [15:58:18]Write to MH i2c: E2 08 00 46 67 80 11 00 00 00 00 00 00 27 [15:58:18]Write i2c OK [15:58:18]MH_I2C_Read... [15:58:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:18]Read from MH i2c: E2 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 17 00 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 17 00 46 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 7E [15:58:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:58:18]wFMCommunicate OK [15:58:18]CreateOFDProtocolMessage done [15:58:18]OFDSenderStorePacket 123256 [15:58:18]StoreOFDPacket docnum=123256 [15:58:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 8E 66 07 01 31 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F2 0D 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 FE 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FE 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FE 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 24 F0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 78 E1 01 00 35 04 06 00 5E 4D C3 15 4F 7F 35 2D 54 FF 90 EB 2C B9 [15:58:18]CheckFolder [15:58:18]dirname=/storage/ofd_packets [15:58:18]CheckFolder done [15:58:18]ProducePacketName [15:58:18]name=ofd_packets/00123256 [15:58:18]NVStorageSaveData ofd_packets/00123256 [15:58:18]File name is /storage/ofd_packets/00123256 [15:58:18]Write 301 bytes [15:58:18]NVStorageSaveData done [15:58:18]OFDSenderStorePacket done [15:58:18]KKMCreateOFDPacket done [15:58:18]NVStorageSaveData kkm_last_timestamp [15:58:18]File name is /storage/kkm_last_timestamp [15:58:18]Write 4 bytes [15:58:18]NVStorageSaveData done [15:58:18]ExternCall_PrintAddStr [15:58:18]wPrintStart [15:58:18]Write to MH i2c: 01 00 00 47 67 AE [15:58:18]Write i2c OK [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: 01 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: 01 07 00 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: 01 07 00 47 67 00 00 00 00 00 FF 0F C3 [15:58:18]RasterBufferAndPrint [15:58:18]line Счет N : (1)718087 [15:58:18]line ИНН: 02508201610067 [15:58:18]line Контрольно-Кассовый Чек [15:58:18]line ПРОДАЖА [15:58:18]line ТРК (МРК, ГНК) : 42 [15:58:18]line Товар: 2710124130 [15:58:18]line Аи-92-К-4 [15:58:18]line 3.570 * 67.40 [15:58:18]line = 240.62 [15:58:18]line НДС 12% НСП 1% [15:58:18]line > о реализуемом товаре [15:58:18]line ИТОГО: 240.62 [15:58:18]line НСП 1% : 2.13 [15:58:18]line НДС 12% : 25.55 [15:58:18]line Наличными: 0.00 [15:58:18]line Безнал.: 240.62 [15:58:18]line Место: АЗС № 64 "Партнер Нефть" [15:58:18]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:58:18]line СНО: Общий режим [15:58:18]line Чек 110 26.11.2024 15:58 [15:58:18]line Смена: 557 ФФД: 1.0 [15:58:18]line ЗНМ: 0300000033 [15:58:18]line РНМ: 0000000000092681 [15:58:18]line Версия ККМ: 001 [15:58:18]line Платежная система: O! деньги [15:58:18]line ФМ: 0000000000874881 [15:58:18]line ФД: 123256 [15:58:18]line ФПД: 103688078446463 [15:58:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T155828&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123256&fm=103688078446463&tin=02508201610067®Number=0000000000092681&sum=24062 [15:58:19]OFD Sender: Processing packet 123256 [packets to send 7, broken 6] [15:58:19]ProducePacketName [15:58:19]name=ofd_packets/00123256 [15:58:19]OFD Sender: To server: pG, [15:58:19]CommunicateWithHost lk.salyk.kg:30040 [15:58:19]ConnectInit lk.salyk.kg [15:58:19]written 0, free lines is 4095 [15:58:19]Connected sock=10 [15:58:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 8E 66 07 01 31 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F2 0D 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 FE 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FE 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FE 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 24 F0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 78 E1 01 00 35 04 06 00 5E 4D C3 15 4F 7F 35 2D 54 FF 90 EB 2C B9 [15:58:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 88 99 47 00 C2 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 78 E1 01 00 F4 03 04 00 E6 9B 45 67 B6 04 01 00 00 DB DE EB D3 7F 21 6F 08 [15:58:19]CommunicateWithHost err = 0 [15:58:19]CheckOFDResponse [15:58:19]1017 (14) - 77093643461234 [15:58:19]1041 (16) - 0000000000874881 [15:58:19]1040 (4) - 123256 [15:58:19]1012 (4) - 26.11.2024 09:59 [15:58:19]1206 (1) - 0 [15:58:19]OFD Sender: Remove packet 123256 [15:58:19]ProducePacketName [15:58:19]name=ofd_packets/00123256 [15:58:19]NVStorageDeleteData [15:58:19]Write to MH i2c: 01 00 00 71 67 D8 [15:58:19]Write i2c OK [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: 01 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: 01 07 00 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: 01 07 00 71 67 00 00 00 00 00 5A 0C 45 [15:58:19]RasterBufferAndPrint [15:58:19]line [15:58:19]line [15:58:19]line [15:58:19]line [15:58:19]line [15:58:19]written 0, free lines is 3166 [15:58:19]MH_Cut [15:58:19]Write to MH i2c: D1 01 00 78 67 01 B1 [15:58:19]Write i2c OK [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: D1 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: D1 01 00 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: D1 01 00 78 67 00 B0 [15:58:19]Write to MH i2c: 01 00 00 79 67 E0 [15:58:19]Write i2c OK [15:58:19]MH_I2C_Read... [15:58:19]OFD Sender: No OFD packet to send [15:58:20]*** Cut start [15:58:20]*** Partial cut [15:58:20]*** CUTSNS_PIN = 1 [15:58:20]*** CUTSNS_PIN = 0 [15:58:21]*** Brake cut motor [15:58:21]Read from MH i2c: 01 [15:58:21]MH_I2C_Read... [15:58:21]*** Stop cut motor [15:58:21]*** Cut end [15:58:21]Read from MH i2c: 01 07 00 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: 01 07 00 79 67 00 00 00 00 00 FF 0F F5 [15:58:21]process_action close_receipt done [15:58:21]requested_data is exist [15:58:21]produce_requested_data [15:58:21]requested_item fm.sn is exist - process it [15:58:21]wFMCommunicate request_size=4 [15:58:21]MH_SAM_APDU [15:58:21]CAPDU: 80 11 00 00 [15:58:21]Write to MH i2c: E2 08 00 7A 67 80 11 00 00 00 00 00 00 5B [15:58:21]Write i2c OK [15:58:21]MH_I2C_Read... [15:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:21]Read from MH i2c: E2 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: E2 17 00 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: E2 17 00 7A 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B2 [15:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:58:21]wFMCommunicate OK [15:58:21]requested_item fd.num is exist - process it [15:58:21]SAM_PROTO_GetFieldsCounters [15:58:21]wFMCommunicate request_size=4 [15:58:21]MH_SAM_APDU [15:58:21]CAPDU: 80 13 00 00 [15:58:21]Write to MH i2c: E2 08 00 7B 67 80 13 00 00 00 00 00 00 5E [15:58:21]Write i2c OK [15:58:21]MH_I2C_Read... [15:58:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:21]Read from MH i2c: E2 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: E2 62 00 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: E2 62 00 7B 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 78 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [15:58:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 78 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:21]wFMCommunicate OK [15:58:21]SAM_PROTO_GetFieldsCounters done [15:58:21]requested_item shift.num is exist - process it [15:58:21]requested_item shift.opened is exist - process it [15:58:21]req_shift_opened [15:58:21]FM_GetShiftState [15:58:21]SAM_PROTO_GetShiftState [15:58:21]wFMCommunicate request_size=4 [15:58:21]MH_SAM_APDU [15:58:21]CAPDU: 80 13 01 00 [15:58:21]Write to MH i2c: E2 08 00 7C 67 80 13 01 00 00 00 00 00 60 [15:58:21]Write i2c OK [15:58:21]MH_I2C_Read... [15:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:21]Read from MH i2c: E2 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: E2 0E 00 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: E2 0E 00 7C 67 00 09 00 01 98 11 45 67 00 00 00 00 90 00 C1 [15:58:21]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [15:58:21]wFMCommunicate OK [15:58:21]SAM_PROTO_GetShiftState done [15:58:21]FM_GetShiftState done [15:58:21]req_shift_opened done [15:58:21]requested_item shift.open_date is exist - process it [15:58:21]req_shift_open_date [15:58:21]req_shift_open_date done [15:58:21]produce_requested_data done [15:58:21]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123256,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [15:58:21]process_action_free close_receipt [15:58:21]json_value_free [15:58:21]json_value_free done [15:58:21]process_json_proto returns [15:58:21]Send response to host [15:58:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123256,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [15:58:21]free response buf [15:58:21]execute_script done [15:58:21]execute_script returns [15:58:21]free content buf [15:58:21]Sock 9.Close socket [15:58:21]Sock 9.Thread stoped [15:58:24]OFD Sender: No OFD packet to send [15:58:29]OFD Sender: No OFD packet to send [15:58:34]OFD Sender: No OFD packet to send [15:58:39]OFD Sender: No OFD packet to send [15:58:44]OFD Sender: No OFD packet to send [15:58:49]OFD Sender: No OFD packet to send [15:58:54]OFD Sender: No OFD packet to send [15:58:59]OFD Sender: No OFD packet to send [15:59:04]OFD Sender: No OFD packet to send [15:59:09]OFD Sender: No OFD packet to send [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:23]accept exits with 7 [16:00:23]New connection [16:00:23]New thread 3066580324 created [16:00:23]Thread 3066723684 joined [16:00:23]Waiting for new connection... [16:00:23] Sock 7.Parse request [16:00:23]Sock 7.Check first char [16:00:23]Sock 7.First char is OK [16:00:23]request: POST /json_proto HTTP/1.0 [16:00:23]Method: POST [16:00:23]URL: /json_proto [16:00:23]Method is POST - this is cgi request [16:00:23]url: /json_proto [16:00:23]query_string will be loaded in cgi processing [16:00:23]execute_cgi json_proto POST (null) [16:00:23]execute_cgi path=json_proto method=POST [16:00:23]POST find Content-Length [16:00:23]Host: 172.17.37.4:8080 [16:00:23]Content-Length: 800 [16:00:23]Content-Type: application/json [16:00:23] [16:00:23]POST finish read [16:00:23]Found Content-Length = 800 [16:00:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:23]execute_script... [16:00:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:23]POST & json_proto [16:00:23]process_json_proto [16:00:23]json parsed OK: [16:00:23]protocol is kg_v1.0 [16:00:23]action value=close_receipt [16:00:23]process_action close_receipt [16:00:23]cmd_close_receipt [16:00:23]MH_GetDate [16:00:23]Write to MH i2c: F0 00 00 7D 67 D3 [16:00:23]Write i2c OK [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: F0 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: F0 09 00 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: F0 09 00 7D 67 00 A2 F0 45 67 B8 5A 43 67 D6 [16:00:23]GetLastDocTimeStamp 1732636708 [16:00:23]current date 1732636834 [16:00:23]FM_GetShiftState [16:00:23]SAM_PROTO_GetShiftState [16:00:23]wFMCommunicate request_size=4 [16:00:23]MH_SAM_APDU [16:00:23]CAPDU: 80 13 01 00 [16:00:23]Write to MH i2c: E2 08 00 7E 67 80 13 01 00 00 00 00 00 62 [16:00:23]Write i2c OK [16:00:23]MH_I2C_Read... [16:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:23]Read from MH i2c: E2 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 0E 00 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 0E 00 7E 67 00 09 00 01 98 11 45 67 00 00 00 00 90 00 C3 [16:00:23]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:00:23]wFMCommunicate OK [16:00:23]SAM_PROTO_GetShiftState done [16:00:23]FM_GetShiftState done [16:00:23]opened in 1732579736 [16:00:23]opened+sec_in_day 1732666136 [16:00:23]quantity*price = 30060 [16:00:23]sum+1 = 30061 [16:00:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.60 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.60 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 111 26.11.2024 16:00 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123257 ФПД: 200863031836736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T160034&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123257&fm=200863031836736&tin=02508201610067®Number=0000000000092681&sum=30060 [16:00:24]StoreToDocumentArchive [16:00:24]shift 557 fd 123257 [16:00:24]save to /storage/0557/doc_00123257 [16:00:24]save last doc name /storage/0557/doc_00123257 to /storage/kkm_last_doc_name [16:00:24]save OK [16:00:24]Clear old archive folders... [16:00:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:24]tlvbuf is 01F5F240 [16:00:24]SAM_PROTO_ClearQueue [16:00:24]wFMCommunicate request_size=4 [16:00:24]MH_SAM_APDU [16:00:24]CAPDU: 80 09 00 00 [16:00:24]Write to MH i2c: E2 08 00 8B 67 80 09 00 00 00 00 00 00 64 [16:00:24]Write i2c OK [16:00:24]MH_I2C_Read... [16:00:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:24]Read from MH i2c: E2 [16:00:24]MH_I2C_Read... [16:00:24]Read from MH i2c: E2 03 00 [16:00:24]MH_I2C_Read... [16:00:24]Read from MH i2c: E2 03 00 8B 67 00 90 00 66 [16:00:24]RAPDU: 90 00 [16:00:24]wFMCommunicate OK [16:00:24]SAM_PROTO_ClearQueue done [16:00:24]KKMCreateOFDPacket [16:00:24]OFDProtocolAddRootSTLVToBuf [16:00:24]FM_MakeSignedData [16:00:24]FM_MakeSignedData [16:00:24]SAM_PROTO_SignData [16:00:24]wFMCommunicate request_size=4 [16:00:24]MH_SAM_APDU [16:00:24]CAPDU: 80 0D 01 02 [16:00:24]Write to MH i2c: E2 08 00 8C 67 80 0D 01 02 00 00 00 00 6C [16:00:24]Write i2c OK [16:00:24]MH_I2C_Read... [16:00:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:24]Read from MH i2c: E2 [16:00:24]MH_I2C_Read... [16:00:24]Read from MH i2c: E2 03 00 [16:00:24]MH_I2C_Read... [16:00:24]Read from MH i2c: E2 03 00 8C 67 00 90 00 67 [16:00:24]RAPDU: 90 00 [16:00:24]wFMCommunicate OK [16:00:24]wFMCommunicate request_size=255 [16:00:24]MH_SAM_APDU [16:00:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 A2 F0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 79 E1 01 00 35 04 06 00 B6 [16:00:24]Write to MH i2c: E2 02 01 8D 67 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 A2 F0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 79 E1 01 00 35 04 06 00 B6 00 00 84 [16:00:24]Write i2c OK [16:00:24]MH_I2C_Read... [16:00:24]OFD Sender: No OFD packet to send [16:00:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:24]Read from MH i2c: E2 [16:00:24]MH_I2C_Read... [16:00:24]Read from MH i2c: E2 03 00 [16:00:24]MH_I2C_Read... [16:00:24]Read from MH i2c: E2 03 00 8D 67 00 90 00 68 [16:00:24]RAPDU: 90 00 [16:00:25]wFMCommunicate OK [16:00:25]wFMCommunicate request_size=10 [16:00:25]MH_SAM_APDU [16:00:25]CAPDU: 80 0D 02 02 05 AF 11 A9 40 40 [16:00:25]Write to MH i2c: E2 0D 00 8E 67 80 0D 02 02 05 00 AF 11 A9 40 40 00 00 62 [16:00:25]Write i2c OK [16:00:25]MH_I2C_Read... [16:00:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:25]Read from MH i2c: E2 [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: E2 03 00 [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: E2 03 00 8E 67 00 90 00 69 [16:00:25]RAPDU: 90 00 [16:00:25]wFMCommunicate OK [16:00:25]wFMCommunicate request_size=4 [16:00:25]MH_SAM_APDU [16:00:25]CAPDU: 80 0D 03 02 [16:00:25]Write to MH i2c: E2 08 00 8F 67 80 0D 03 02 00 00 00 00 71 [16:00:25]Write i2c OK [16:00:25]MH_I2C_Read... [16:00:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:25]Read from MH i2c: E2 [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: E2 0B 00 [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: E2 0B 00 8F 67 00 E9 1C 7C 29 AC 97 9F 2A 90 00 28 [16:00:25]RAPDU: E9 1C 7C 29 AC 97 9F 2A 90 00 [16:00:25]wFMCommunicate OK [16:00:25]SAM_PROTO_SignData done [16:00:25]FM_MakeSignedData done [16:00:25]CreateOFDProtocolMessage [16:00:25]wFMCommunicate request_size=4 [16:00:25]MH_SAM_APDU [16:00:25]CAPDU: 80 11 00 00 [16:00:25]Write to MH i2c: E2 08 00 90 67 80 11 00 00 00 00 00 00 71 [16:00:25]Write i2c OK [16:00:25]MH_I2C_Read... [16:00:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:25]Read from MH i2c: E2 [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: E2 17 00 [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: E2 17 00 90 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C8 [16:00:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:00:25]wFMCommunicate OK [16:00:25]CreateOFDProtocolMessage done [16:00:25]OFDSenderStorePacket 123257 [16:00:25]StoreOFDPacket docnum=123257 [16:00:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 C0 60 07 01 E8 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 A2 F0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 79 E1 01 00 35 04 06 00 B6 AF 11 A9 40 40 E9 1C 7C 29 AC 97 9F 2A [16:00:25]CheckFolder [16:00:25]dirname=/storage/ofd_packets [16:00:25]CheckFolder done [16:00:25]ProducePacketName [16:00:25]name=ofd_packets/00123257 [16:00:25]NVStorageSaveData ofd_packets/00123257 [16:00:25]File name is /storage/ofd_packets/00123257 [16:00:25]Write 301 bytes [16:00:25]NVStorageSaveData done [16:00:25]OFDSenderStorePacket done [16:00:25]KKMCreateOFDPacket done [16:00:25]NVStorageSaveData kkm_last_timestamp [16:00:25]File name is /storage/kkm_last_timestamp [16:00:25]Write 4 bytes [16:00:25]NVStorageSaveData done [16:00:25]ExternCall_PrintAddStr [16:00:25]wPrintStart [16:00:25]Write to MH i2c: 01 00 00 91 67 F8 [16:00:25]Write i2c OK [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: 01 [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: 01 07 00 [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: 01 07 00 91 67 00 00 00 00 00 FF 0F 0D [16:00:25]RasterBufferAndPrint [16:00:25]line Счет N : (1)718088 [16:00:25]line ИНН: 02508201610067 [16:00:25]line Контрольно-Кассовый Чек [16:00:25]line ПРОДАЖА [16:00:25]line ТРК (МРК, ГНК) : 22 [16:00:25]line Товар: 2710124130 [16:00:25]line Аи-92-К-4 [16:00:25]line 4.460 * 67.40 [16:00:25]line = 300.60 [16:00:25]line НДС 12% НСП 1% [16:00:25]line > о реализуемом товаре [16:00:25]line ИТОГО: 300.60 [16:00:25]line НСП 1% : 2.66 [16:00:25]line НДС 12% : 31.92 [16:00:25]line Наличными: 0.00 [16:00:25]line Безнал.: 300.60 [16:00:25]line Место: АЗС № 64 "Партнер Нефть" [16:00:25]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:00:25]line СНО: Общий режим [16:00:25]line Чек 111 26.11.2024 16:00 [16:00:25]line Смена: 557 ФФД: 1.0 [16:00:25]line ЗНМ: 0300000033 [16:00:25]line РНМ: 0000000000092681 [16:00:25]line Версия ККМ: 001 [16:00:25]line Платежная система: O! деньги [16:00:25]line ФМ: 0000000000874881 [16:00:25]line ФД: 123257 [16:00:25]line ФПД: 200863031836736 [16:00:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T160034&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123257&fm=200863031836736&tin=02508201610067®Number=0000000000092681&sum=30060 [16:00:25]OFD Sender: Processing packet 123257 [packets to send 7, broken 6] [16:00:25]ProducePacketName [16:00:25]name=ofd_packets/00123257 [16:00:25]OFD Sender: To server: pG, [16:00:25]CommunicateWithHost lk.salyk.kg:30040 [16:00:25]ConnectInit lk.salyk.kg [16:00:25]written 0, free lines is 4095 [16:00:25]Connected sock=10 [16:00:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 C0 60 07 01 E8 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 A2 F0 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 79 E1 01 00 35 04 06 00 B6 AF 11 A9 40 40 E9 1C 7C 29 AC 97 9F 2A [16:00:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 82 27 47 00 C8 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 79 E1 01 00 F4 03 04 00 64 9C 45 67 B6 04 01 00 00 BE 0E 1F 86 A3 E3 83 0C [16:00:25]CommunicateWithHost err = 0 [16:00:25]CheckOFDResponse [16:00:25]1017 (14) - 77093643461234 [16:00:25]1041 (16) - 0000000000874881 [16:00:25]1040 (4) - 123257 [16:00:25]1012 (4) - 26.11.2024 10:01 [16:00:25]1206 (1) - 0 [16:00:25]OFD Sender: Remove packet 123257 [16:00:25]ProducePacketName [16:00:25]name=ofd_packets/00123257 [16:00:25]NVStorageDeleteData [16:00:25]Write to MH i2c: 01 00 00 BB 67 22 [16:00:25]Write i2c OK [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: 01 [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: 01 07 00 [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: 01 07 00 BB 67 00 00 00 00 00 5C 0C 91 [16:00:25]RasterBufferAndPrint [16:00:25]line [16:00:25]line [16:00:25]line [16:00:25]line [16:00:25]line [16:00:25]written 0, free lines is 3168 [16:00:25]MH_Cut [16:00:25]Write to MH i2c: D1 01 00 C2 67 01 FB [16:00:25]Write i2c OK [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: D1 [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: D1 01 00 [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: D1 01 00 C2 67 00 FA [16:00:25]Write to MH i2c: 01 00 00 C3 67 2A [16:00:25]Write i2c OK [16:00:25]MH_I2C_Read... [16:00:26]OFD Sender: No OFD packet to send [16:00:27]*** Cut start [16:00:27]*** Partial cut [16:00:27]*** CUTSNS_PIN = 1 [16:00:27]*** CUTSNS_PIN = 0 [16:00:27]*** Brake cut motor [16:00:27]Read from MH i2c: 01 [16:00:27]MH_I2C_Read... [16:00:27]*** Stop cut motor [16:00:27]*** Cut end [16:00:27]Read from MH i2c: 01 07 00 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: 01 07 00 C3 67 00 00 00 00 00 FF 0F 3F [16:00:27]process_action close_receipt done [16:00:27]requested_data is exist [16:00:27]produce_requested_data [16:00:27]requested_item fm.sn is exist - process it [16:00:27]wFMCommunicate request_size=4 [16:00:27]MH_SAM_APDU [16:00:27]CAPDU: 80 11 00 00 [16:00:27]Write to MH i2c: E2 08 00 C4 67 80 11 00 00 00 00 00 00 A5 [16:00:27]Write i2c OK [16:00:27]MH_I2C_Read... [16:00:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:27]Read from MH i2c: E2 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: E2 17 00 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: E2 17 00 C4 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FC [16:00:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:00:27]wFMCommunicate OK [16:00:27]requested_item fd.num is exist - process it [16:00:27]SAM_PROTO_GetFieldsCounters [16:00:27]wFMCommunicate request_size=4 [16:00:27]MH_SAM_APDU [16:00:27]CAPDU: 80 13 00 00 [16:00:27]Write to MH i2c: E2 08 00 C5 67 80 13 00 00 00 00 00 00 A8 [16:00:27]Write i2c OK [16:00:27]MH_I2C_Read... [16:00:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:28]Read from MH i2c: E2 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 62 00 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 62 00 C5 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 79 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [16:00:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 79 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:28]wFMCommunicate OK [16:00:28]SAM_PROTO_GetFieldsCounters done [16:00:28]requested_item shift.num is exist - process it [16:00:28]requested_item shift.opened is exist - process it [16:00:28]req_shift_opened [16:00:28]FM_GetShiftState [16:00:28]SAM_PROTO_GetShiftState [16:00:28]wFMCommunicate request_size=4 [16:00:28]MH_SAM_APDU [16:00:28]CAPDU: 80 13 01 00 [16:00:28]Write to MH i2c: E2 08 00 C6 67 80 13 01 00 00 00 00 00 AA [16:00:28]Write i2c OK [16:00:28]MH_I2C_Read... [16:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:28]Read from MH i2c: E2 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 0E 00 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 0E 00 C6 67 00 09 00 01 98 11 45 67 00 00 00 00 90 00 0B [16:00:28]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:00:28]wFMCommunicate OK [16:00:28]SAM_PROTO_GetShiftState done [16:00:28]FM_GetShiftState done [16:00:28]req_shift_opened done [16:00:28]requested_item shift.open_date is exist - process it [16:00:28]req_shift_open_date [16:00:28]req_shift_open_date done [16:00:28]produce_requested_data done [16:00:28]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123257,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:00:28]process_action_free close_receipt [16:00:28]json_value_free [16:00:28]json_value_free done [16:00:28]process_json_proto returns [16:00:28]Send response to host [16:00:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123257,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:00:28]free response buf [16:00:28]execute_script done [16:00:28]execute_script returns [16:00:28]free content buf [16:00:28]Sock 7.Close socket [16:00:28]Sock 7.Thread stoped [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:01:59]accept exits with 9 [16:01:59]New connection [16:01:59]New thread 3066723684 created [16:01:59]Thread 3066580324 joined [16:01:59]Waiting for new connection... [16:01:59] Sock 9.Parse request [16:01:59]Sock 9.Check first char [16:01:59]Sock 9.First char is OK [16:01:59]request: POST /json_proto HTTP/1.0 [16:01:59]Method: POST [16:01:59]URL: /json_proto [16:01:59]Method is POST - this is cgi request [16:01:59]url: /json_proto [16:01:59]query_string will be loaded in cgi processing [16:01:59]execute_cgi json_proto POST (null) [16:01:59]execute_cgi path=json_proto method=POST [16:01:59]POST find Content-Length [16:01:59]Host: 172.17.37.4:8080 [16:01:59]Content-Length: 786 [16:01:59]Content-Type: application/json [16:01:59] [16:01:59]POST finish read [16:01:59]Found Content-Length = 786 [16:01:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4458393", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:59]execute_script... [16:01:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4458393", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:59]POST & json_proto [16:01:59]process_json_proto [16:01:59]json parsed OK: [16:01:59]protocol is kg_v1.0 [16:01:59]action value=close_receipt [16:01:59]process_action close_receipt [16:01:59]cmd_close_receipt [16:01:59]MH_GetDate [16:01:59]Write to MH i2c: F0 00 00 C7 67 1D [16:01:59]Write i2c OK [16:01:59]MH_I2C_Read... [16:01:59]Read from MH i2c: F0 [16:01:59]MH_I2C_Read... [16:01:59]Read from MH i2c: F0 09 00 [16:01:59]MH_I2C_Read... [16:01:59]Read from MH i2c: F0 09 00 C7 67 00 03 F1 45 67 B8 5A 43 67 82 [16:01:59]GetLastDocTimeStamp 1732636834 [16:01:59]current date 1732636931 [16:01:59]FM_GetShiftState [16:01:59]SAM_PROTO_GetShiftState [16:01:59]wFMCommunicate request_size=4 [16:01:59]MH_SAM_APDU [16:01:59]CAPDU: 80 13 01 00 [16:01:59]Write to MH i2c: E2 08 00 C8 67 80 13 01 00 00 00 00 00 AC [16:01:59]Write i2c OK [16:01:59]MH_I2C_Read... [16:01:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:59]Read from MH i2c: E2 [16:01:59]MH_I2C_Read... [16:01:59]Read from MH i2c: E2 0E 00 [16:01:59]MH_I2C_Read... [16:01:59]Read from MH i2c: E2 0E 00 C8 67 00 09 00 01 98 11 45 67 00 00 00 00 90 00 0D [16:01:59]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:01:59]wFMCommunicate OK [16:01:59]SAM_PROTO_GetShiftState done [16:01:59]FM_GetShiftState done [16:01:59]opened in 1732579736 [16:01:59]opened+sec_in_day 1732666136 [16:01:59]quantity*price = 0 [16:01:59]sum+1 = 1 [16:01:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 112 26.11.2024 16:02 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Партнер нефть 4458393 ФМ: 0000000000874881 ФД: 123258 ФПД: 145113132119400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T160211&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123258&fm=145113132119400&tin=02508201610067®Number=0000000000092681&sum=0 [16:02:00]StoreToDocumentArchive [16:02:00]shift 557 fd 123258 [16:02:00]save to /storage/0557/doc_00123258 [16:02:00]save last doc name /storage/0557/doc_00123258 to /storage/kkm_last_doc_name [16:02:00]save OK [16:02:00]Clear old archive folders... [16:02:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:02:00]tlvbuf is 01F33660 [16:02:00]SAM_PROTO_ClearQueue [16:02:00]wFMCommunicate request_size=4 [16:02:00]MH_SAM_APDU [16:02:00]CAPDU: 80 09 00 00 [16:02:00]Write to MH i2c: E2 08 00 D5 67 80 09 00 00 00 00 00 00 AE [16:02:00]Write i2c OK [16:02:00]MH_I2C_Read... [16:02:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:00]Read from MH i2c: E2 [16:02:00]MH_I2C_Read... [16:02:00]Read from MH i2c: E2 03 00 [16:02:00]MH_I2C_Read... [16:02:00]Read from MH i2c: E2 03 00 D5 67 00 90 00 B0 [16:02:00]RAPDU: 90 00 [16:02:00]wFMCommunicate OK [16:02:00]SAM_PROTO_ClearQueue done [16:02:00]KKMCreateOFDPacket [16:02:00]OFDProtocolAddRootSTLVToBuf [16:02:00]FM_MakeSignedData [16:02:00]FM_MakeSignedData [16:02:00]SAM_PROTO_SignData [16:02:00]wFMCommunicate request_size=4 [16:02:00]MH_SAM_APDU [16:02:00]CAPDU: 80 0D 01 02 [16:02:00]Write to MH i2c: E2 08 00 D6 67 80 0D 01 02 00 00 00 00 B6 [16:02:00]Write i2c OK [16:02:00]MH_I2C_Read... [16:02:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:00]Read from MH i2c: E2 [16:02:00]MH_I2C_Read... [16:02:00]Read from MH i2c: E2 03 00 [16:02:00]MH_I2C_Read... [16:02:00]Read from MH i2c: E2 03 00 D6 67 00 90 00 B1 [16:02:00]RAPDU: 90 00 [16:02:00]wFMCommunicate OK [16:02:00]wFMCommunicate request_size=255 [16:02:00]MH_SAM_APDU [16:02:00]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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 03 F1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7A E1 01 00 35 04 06 00 [16:02:00]Write to MH i2c: E2 02 01 D7 67 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 03 F1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7A E1 01 00 35 04 06 00 00 00 D2 [16:02:00]Write i2c OK [16:02:00]MH_I2C_Read... [16:02:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:01]Read from MH i2c: E2 [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: E2 03 00 [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: E2 03 00 D7 67 00 90 00 B2 [16:02:01]RAPDU: 90 00 [16:02:01]wFMCommunicate OK [16:02:01]wFMCommunicate request_size=11 [16:02:01]MH_SAM_APDU [16:02:01]CAPDU: 80 0D 02 02 06 83 FA C8 B1 35 68 [16:02:01]Write to MH i2c: E2 0E 00 D8 67 80 0D 02 02 06 00 83 FA C8 B1 35 68 00 00 58 [16:02:01]Write i2c OK [16:02:01]MH_I2C_Read... [16:02:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:01]Read from MH i2c: E2 [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: E2 03 00 [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: E2 03 00 D8 67 00 90 00 B3 [16:02:01]RAPDU: 90 00 [16:02:01]wFMCommunicate OK [16:02:01]wFMCommunicate request_size=4 [16:02:01]MH_SAM_APDU [16:02:01]CAPDU: 80 0D 03 02 [16:02:01]Write to MH i2c: E2 08 00 D9 67 80 0D 03 02 00 00 00 00 BB [16:02:01]Write i2c OK [16:02:01]MH_I2C_Read... [16:02:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:01]Read from MH i2c: E2 [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: E2 0B 00 [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: E2 0B 00 D9 67 00 9A A2 41 85 09 39 80 30 90 00 B0 [16:02:01]RAPDU: 9A A2 41 85 09 39 80 30 90 00 [16:02:01]wFMCommunicate OK [16:02:01]SAM_PROTO_SignData done [16:02:01]FM_MakeSignedData done [16:02:01]CreateOFDProtocolMessage [16:02:01]wFMCommunicate request_size=4 [16:02:01]MH_SAM_APDU [16:02:01]CAPDU: 80 11 00 00 [16:02:01]Write to MH i2c: E2 08 00 DA 67 80 11 00 00 00 00 00 00 BB [16:02:01]Write i2c OK [16:02:01]MH_I2C_Read... [16:02:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:01]Read from MH i2c: E2 [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: E2 17 00 [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: E2 17 00 DA 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 12 [16:02:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:02:01]wFMCommunicate OK [16:02:01]CreateOFDProtocolMessage done [16:02:01]OFDSenderStorePacket 123258 [16:02:01]StoreOFDPacket docnum=123258 [16:02:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 BB 1C 08 01 A3 A0 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 03 F1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7A E1 01 00 35 04 06 00 83 FA C8 B1 35 68 9A A2 41 85 09 39 80 30 [16:02:01]CheckFolder [16:02:01]dirname=/storage/ofd_packets [16:02:01]CheckFolder done [16:02:01]ProducePacketName [16:02:01]name=ofd_packets/00123258 [16:02:01]NVStorageSaveData ofd_packets/00123258 [16:02:01]File name is /storage/ofd_packets/00123258 [16:02:01]Write 302 bytes [16:02:01]NVStorageSaveData done [16:02:01]OFDSenderStorePacket done [16:02:01]KKMCreateOFDPacket done [16:02:01]NVStorageSaveData kkm_last_timestamp [16:02:01]File name is /storage/kkm_last_timestamp [16:02:01]Write 4 bytes [16:02:01]NVStorageSaveData done [16:02:01]ExternCall_PrintAddStr [16:02:01]wPrintStart [16:02:01]Write to MH i2c: 01 00 00 DB 67 42 [16:02:01]Write i2c OK [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: 01 [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: 01 07 00 [16:02:01]MH_I2C_Read... [16:02:01]Read from MH i2c: 01 07 00 DB 67 00 00 00 00 00 FF 0F 57 [16:02:01]RasterBufferAndPrint [16:02:01]line Счет N : (1)718089 [16:02:01]line ИНН: 02508201610067 [16:02:01]line Контрольно-Кассовый Чек [16:02:01]line ПРОДАЖА [16:02:01]line ТРК (МРК, ГНК) : 5 [16:02:01]line Товар: 2710194210 [16:02:01]line ДТ(л)-К-5 [16:02:01]line 10.000 * 0.00 [16:02:01]line = 0.00 [16:02:01]line НДС 12% НСП 1% [16:02:01]line > о реализуемом товаре [16:02:01]line ИТОГО: 0.00 [16:02:01]line НСП 1% : 0.00 [16:02:01]line НДС 12% : 0.00 [16:02:01]line Наличными: 0.00 [16:02:01]line Безнал.: 0.00 [16:02:01]line Место: АЗС № 64 "Партнер Нефть" [16:02:01]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:02:01]line СНО: Общий режим [16:02:01]line Чек 112 26.11.2024 16:02 [16:02:01]line Смена: 557 ФФД: 1.0 [16:02:01]line ЗНМ: 0300000033 [16:02:01]line РНМ: 0000000000092681 [16:02:01]line Версия ККМ: 001 [16:02:01]line Талоны: Партнер нефть [16:02:01]line 4458393 [16:02:01]line ФМ: 0000000000874881 [16:02:01]line ФД: 123258 [16:02:01]line ФПД: 145113132119400 [16:02:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T160211&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123258&fm=145113132119400&tin=02508201610067®Number=0000000000092681&sum=0 [16:02:01]written 0, free lines is 4095 [16:02:01]OFD Sender: Processing packet 123258 [packets to send 7, broken 6] [16:02:01]ProducePacketName [16:02:01]name=ofd_packets/00123258 [16:02:01]OFD Sender: To server: pG, [16:02:01]CommunicateWithHost lk.salyk.kg:30040 [16:02:01]ConnectInit lk.salyk.kg [16:02:01]Connected sock=10 [16:02:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 BB 1C 08 01 A3 A0 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 03 F1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7A E1 01 00 35 04 06 00 83 FA C8 B1 35 68 9A A2 41 85 09 39 80 30 [16:02:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 E4 5F 47 00 95 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7A E1 01 00 F4 03 04 00 C5 9C 45 67 B6 04 01 00 00 AC E6 5F 95 BE F9 BA 4B [16:02:01]CommunicateWithHost err = 0 [16:02:01]CheckOFDResponse [16:02:01]1017 (14) - 77093643461234 [16:02:01]1041 (16) - 0000000000874881 [16:02:01]1040 (4) - 123258 [16:02:01]1012 (4) - 26.11.2024 10:02 [16:02:01]1206 (1) - 0 [16:02:01]OFD Sender: Remove packet 123258 [16:02:01]ProducePacketName [16:02:01]name=ofd_packets/00123258 [16:02:01]NVStorageDeleteData [16:02:02]Write to MH i2c: 01 00 00 05 68 6D [16:02:02]Write i2c OK [16:02:02]MH_I2C_Read... [16:02:02]Read from MH i2c: 01 [16:02:02]MH_I2C_Read... [16:02:02]Read from MH i2c: 01 07 00 [16:02:02]MH_I2C_Read... [16:02:02]Read from MH i2c: 01 07 00 05 68 00 00 00 00 00 61 0C E1 [16:02:02]RasterBufferAndPrint [16:02:02]line [16:02:02]line [16:02:02]line [16:02:02]line [16:02:02]line [16:02:02]written 0, free lines is 3176 [16:02:02]MH_Cut [16:02:02]Write to MH i2c: D1 01 00 0C 68 01 46 [16:02:02]Write i2c OK [16:02:02]MH_I2C_Read... [16:02:02]Read from MH i2c: D1 [16:02:02]MH_I2C_Read... [16:02:02]Read from MH i2c: D1 01 00 [16:02:02]MH_I2C_Read... [16:02:02]Read from MH i2c: D1 01 00 0C 68 00 45 [16:02:02]Write to MH i2c: 01 00 00 0D 68 75 [16:02:02]Write i2c OK [16:02:02]MH_I2C_Read... [16:02:02]OFD Sender: No OFD packet to send [16:02:03]*** Cut start [16:02:03]*** Partial cut [16:02:03]*** CUTSNS_PIN = 1 [16:02:03]*** CUTSNS_PIN = 0 [16:02:03]*** Brake cut motor [16:02:04]Read from MH i2c: 01 [16:02:04]MH_I2C_Read... [16:02:04]*** Stop cut motor [16:02:04]*** Cut end [16:02:04]Read from MH i2c: 01 07 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: 01 07 00 0D 68 00 00 00 00 00 FF 0F 8A [16:02:04]process_action close_receipt done [16:02:04]requested_data is exist [16:02:04]produce_requested_data [16:02:04]requested_item fm.sn is exist - process it [16:02:04]wFMCommunicate request_size=4 [16:02:04]MH_SAM_APDU [16:02:04]CAPDU: 80 11 00 00 [16:02:04]Write to MH i2c: E2 08 00 0E 68 80 11 00 00 00 00 00 00 F0 [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 17 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 17 00 0E 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 47 [16:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:02:04]wFMCommunicate OK [16:02:04]requested_item fd.num is exist - process it [16:02:04]SAM_PROTO_GetFieldsCounters [16:02:04]wFMCommunicate request_size=4 [16:02:04]MH_SAM_APDU [16:02:04]CAPDU: 80 13 00 00 [16:02:04]Write to MH i2c: E2 08 00 0F 68 80 13 00 00 00 00 00 00 F3 [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 62 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 62 00 0F 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7A E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [16:02:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7A E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:04]wFMCommunicate OK [16:02:04]SAM_PROTO_GetFieldsCounters done [16:02:04]requested_item shift.num is exist - process it [16:02:04]requested_item shift.opened is exist - process it [16:02:04]req_shift_opened [16:02:04]FM_GetShiftState [16:02:04]SAM_PROTO_GetShiftState [16:02:04]wFMCommunicate request_size=4 [16:02:04]MH_SAM_APDU [16:02:04]CAPDU: 80 13 01 00 [16:02:04]Write to MH i2c: E2 08 00 10 68 80 13 01 00 00 00 00 00 F5 [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 0E 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 0E 00 10 68 00 09 00 01 98 11 45 67 00 00 00 00 90 00 56 [16:02:04]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:02:04]wFMCommunicate OK [16:02:04]SAM_PROTO_GetShiftState done [16:02:04]FM_GetShiftState done [16:02:04]req_shift_opened done [16:02:04]requested_item shift.open_date is exist - process it [16:02:04]req_shift_open_date [16:02:04]req_shift_open_date done [16:02:04]produce_requested_data done [16:02:04]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123258,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:02:04]process_action_free close_receipt [16:02:04]json_value_free [16:02:04]json_value_free done [16:02:04]process_json_proto returns [16:02:04]Send response to host [16:02:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123258,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:02:04]free response buf [16:02:04]execute_script done [16:02:04]execute_script returns [16:02:04]free content buf [16:02:04]Sock 9.Close socket [16:02:04]Sock 9.Thread stoped [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:52]OFD Sender: No OFD packet to send [16:03:52]accept exits with 7 [16:03:52]New connection [16:03:52]New thread 3066580324 created [16:03:52]Thread 3066723684 joined [16:03:52]Waiting for new connection... [16:03:52] Sock 7.Parse request [16:03:52]Sock 7.Check first char [16:03:52]Sock 7.First char is OK [16:03:52]request: POST /json_proto HTTP/1.0 [16:03:52]Method: POST [16:03:52]URL: /json_proto [16:03:52]Method is POST - this is cgi request [16:03:52]url: /json_proto [16:03:52]query_string will be loaded in cgi processing [16:03:52]execute_cgi json_proto POST (null) [16:03:52]execute_cgi path=json_proto method=POST [16:03:52]POST find Content-Length [16:03:52]Host: 172.17.37.4:8080 [16:03:52]Content-Length: 800 [16:03:52]Content-Type: application/json [16:03:52] [16:03:52]POST finish read [16:03:52]Found Content-Length = 800 [16:03:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "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" : 200.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:52]execute_script... [16:03:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "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" : 200.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:52]POST & json_proto [16:03:52]process_json_proto [16:03:52]json parsed OK: [16:03:52]protocol is kg_v1.0 [16:03:52]action value=close_receipt [16:03:52]process_action close_receipt [16:03:52]cmd_close_receipt [16:03:52]MH_GetDate [16:03:52]Write to MH i2c: F0 00 00 11 68 68 [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: F0 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: F0 09 00 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: F0 09 00 11 68 00 74 F1 45 67 B8 5A 43 67 3E [16:03:52]GetLastDocTimeStamp 1732636931 [16:03:52]current date 1732637044 [16:03:52]FM_GetShiftState [16:03:52]SAM_PROTO_GetShiftState [16:03:52]wFMCommunicate request_size=4 [16:03:52]MH_SAM_APDU [16:03:52]CAPDU: 80 13 01 00 [16:03:52]Write to MH i2c: E2 08 00 12 68 80 13 01 00 00 00 00 00 F7 [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:52]Read from MH i2c: E2 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: E2 0E 00 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: E2 0E 00 12 68 00 09 00 01 98 11 45 67 00 00 00 00 90 00 58 [16:03:53]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:03:53]wFMCommunicate OK [16:03:53]SAM_PROTO_GetShiftState done [16:03:53]FM_GetShiftState done [16:03:53]opened in 1732579736 [16:03:53]opened+sec_in_day 1732666136 [16:03:53]quantity*price = 20017 [16:03:53]sum+1 = 20019 [16:03:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.18 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 0.00 Безнал.: 200.18 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 113 26.11.2024 16:04 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123259 ФПД: 156202556321789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T160404&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123259&fm=156202556321789&tin=02508201610067®Number=0000000000092681&sum=20018 [16:03:54]StoreToDocumentArchive [16:03:54]shift 557 fd 123259 [16:03:54]save to /storage/0557/doc_00123259 [16:03:54]save last doc name /storage/0557/doc_00123259 to /storage/kkm_last_doc_name [16:03:54]save OK [16:03:54]Clear old archive folders... [16:03:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:03:54]tlvbuf is 0215ABD0 [16:03:54]SAM_PROTO_ClearQueue [16:03:54]wFMCommunicate request_size=4 [16:03:54]MH_SAM_APDU [16:03:54]CAPDU: 80 09 00 00 [16:03:54]Write to MH i2c: E2 08 00 1F 68 80 09 00 00 00 00 00 00 F9 [16:03:54]Write i2c OK [16:03:54]MH_I2C_Read... [16:03:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:54]Read from MH i2c: E2 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 03 00 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 03 00 1F 68 00 90 00 FB [16:03:54]RAPDU: 90 00 [16:03:54]wFMCommunicate OK [16:03:54]SAM_PROTO_ClearQueue done [16:03:54]KKMCreateOFDPacket [16:03:54]OFDProtocolAddRootSTLVToBuf [16:03:54]FM_MakeSignedData [16:03:54]FM_MakeSignedData [16:03:54]SAM_PROTO_SignData [16:03:54]wFMCommunicate request_size=4 [16:03:54]MH_SAM_APDU [16:03:54]CAPDU: 80 0D 01 02 [16:03:54]Write to MH i2c: E2 08 00 20 68 80 0D 01 02 00 00 00 00 01 [16:03:54]Write i2c OK [16:03:54]MH_I2C_Read... [16:03:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:54]Read from MH i2c: E2 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 03 00 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 03 00 20 68 00 90 00 FC [16:03:54]RAPDU: 90 00 [16:03:54]wFMCommunicate OK [16:03:54]wFMCommunicate request_size=255 [16:03:54]MH_SAM_APDU [16:03:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 74 F1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7B E1 01 00 35 04 06 00 8E [16:03:54]Write to MH i2c: E2 02 01 21 68 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 74 F1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7B E1 01 00 35 04 06 00 8E 00 00 45 [16:03:54]Write i2c OK [16:03:54]MH_I2C_Read... [16:03:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:54]Read from MH i2c: E2 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 03 00 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 03 00 21 68 00 90 00 FD [16:03:54]RAPDU: 90 00 [16:03:54]wFMCommunicate OK [16:03:54]wFMCommunicate request_size=10 [16:03:54]MH_SAM_APDU [16:03:54]CAPDU: 80 0D 02 02 05 10 BD E1 EF FD [16:03:54]Write to MH i2c: E2 0D 00 22 68 80 0D 02 02 05 00 10 BD E1 EF FD 00 00 A8 [16:03:54]Write i2c OK [16:03:54]MH_I2C_Read... [16:03:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:54]Read from MH i2c: E2 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 03 00 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 03 00 22 68 00 90 00 FE [16:03:54]RAPDU: 90 00 [16:03:54]wFMCommunicate OK [16:03:54]wFMCommunicate request_size=4 [16:03:54]MH_SAM_APDU [16:03:54]CAPDU: 80 0D 03 02 [16:03:54]Write to MH i2c: E2 08 00 23 68 80 0D 03 02 00 00 00 00 06 [16:03:54]Write i2c OK [16:03:54]MH_I2C_Read... [16:03:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:54]Read from MH i2c: E2 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 0B 00 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 0B 00 23 68 00 56 85 E6 09 13 BA C0 2D 90 00 8B [16:03:54]RAPDU: 56 85 E6 09 13 BA C0 2D 90 00 [16:03:54]wFMCommunicate OK [16:03:54]SAM_PROTO_SignData done [16:03:54]FM_MakeSignedData done [16:03:54]CreateOFDProtocolMessage [16:03:54]wFMCommunicate request_size=4 [16:03:54]MH_SAM_APDU [16:03:54]CAPDU: 80 11 00 00 [16:03:54]Write to MH i2c: E2 08 00 24 68 80 11 00 00 00 00 00 00 06 [16:03:54]Write i2c OK [16:03:54]MH_I2C_Read... [16:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:54]Read from MH i2c: E2 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 17 00 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 17 00 24 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5D [16:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:03:54]wFMCommunicate OK [16:03:54]CreateOFDProtocolMessage done [16:03:54]OFDSenderStorePacket 123259 [16:03:54]StoreOFDPacket docnum=123259 [16:03:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 25 7C 07 01 C0 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 74 F1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7B E1 01 00 35 04 06 00 8E 10 BD E1 EF FD 56 85 E6 09 13 BA C0 2D [16:03:54]CheckFolder [16:03:54]dirname=/storage/ofd_packets [16:03:54]CheckFolder done [16:03:54]ProducePacketName [16:03:54]name=ofd_packets/00123259 [16:03:54]NVStorageSaveData ofd_packets/00123259 [16:03:54]File name is /storage/ofd_packets/00123259 [16:03:54]Write 301 bytes [16:03:54]NVStorageSaveData done [16:03:54]OFDSenderStorePacket done [16:03:54]KKMCreateOFDPacket done [16:03:54]NVStorageSaveData kkm_last_timestamp [16:03:54]File name is /storage/kkm_last_timestamp [16:03:54]Write 4 bytes [16:03:54]NVStorageSaveData done [16:03:54]ExternCall_PrintAddStr [16:03:54]wPrintStart [16:03:54]Write to MH i2c: 01 00 00 25 68 8D [16:03:54]Write i2c OK [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: 01 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: 01 07 00 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: 01 07 00 25 68 00 00 00 00 00 FF 0F A2 [16:03:54]RasterBufferAndPrint [16:03:54]line Счет N : (1)718090 [16:03:54]line ИНН: 02508201610067 [16:03:54]line Контрольно-Кассовый Чек [16:03:54]line ПРОДАЖА [16:03:54]line ТРК (МРК, ГНК) : 22 [16:03:54]line Товар: 2710124130 [16:03:54]line Аи-92-К-4 [16:03:54]line 2.970 * 67.40 [16:03:54]line = 200.18 [16:03:54]line НДС 12% НСП 1% [16:03:54]line > о реализуемом товаре [16:03:54]line ИТОГО: 200.18 [16:03:54]line НСП 1% : 1.77 [16:03:54]line НДС 12% : 21.26 [16:03:54]line Наличными: 0.00 [16:03:54]line Безнал.: 200.18 [16:03:54]line Место: АЗС № 64 "Партнер Нефть" [16:03:54]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:03:54]line СНО: Общий режим [16:03:54]line Чек 113 26.11.2024 16:04 [16:03:54]line Смена: 557 ФФД: 1.0 [16:03:54]line ЗНМ: 0300000033 [16:03:54]line РНМ: 0000000000092681 [16:03:54]line Версия ККМ: 001 [16:03:54]line Платежная система: O! деньги [16:03:54]line ФМ: 0000000000874881 [16:03:54]line ФД: 123259 [16:03:54]line ФПД: 156202556321789 [16:03:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T160404&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123259&fm=156202556321789&tin=02508201610067®Number=0000000000092681&sum=20018 [16:03:55]written 0, free lines is 4095 [16:03:55]OFD Sender: Processing packet 123259 [packets to send 7, broken 6] [16:03:55]ProducePacketName [16:03:55]name=ofd_packets/00123259 [16:03:55]OFD Sender: To server: pG, [16:03:55]CommunicateWithHost lk.salyk.kg:30040 [16:03:55]ConnectInit lk.salyk.kg [16:03:55]Connected sock=11 [16:03:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 25 7C 07 01 C0 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 74 F1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7B E1 01 00 35 04 06 00 8E 10 BD E1 EF FD 56 85 E6 09 13 BA C0 2D [16:03:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 D5 64 47 00 22 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7B E1 01 00 F4 03 04 00 36 9D 45 67 B6 04 01 00 00 D1 FB 25 5B D7 69 C6 5B [16:03:55]CommunicateWithHost err = 0 [16:03:55]CheckOFDResponse [16:03:55]1017 (14) - 77093643461234 [16:03:55]1041 (16) - 0000000000874881 [16:03:55]1040 (4) - 123259 [16:03:55]1012 (4) - 26.11.2024 10:04 [16:03:55]1206 (1) - 0 [16:03:55]OFD Sender: Remove packet 123259 [16:03:55]ProducePacketName [16:03:55]name=ofd_packets/00123259 [16:03:55]NVStorageDeleteData [16:03:55]Write to MH i2c: 01 00 00 4F 68 B7 [16:03:55]Write i2c OK [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: 01 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: 01 07 00 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: 01 07 00 4F 68 00 00 00 00 00 64 0C 2E [16:03:55]RasterBufferAndPrint [16:03:55]line [16:03:55]line [16:03:55]line [16:03:55]line [16:03:55]line [16:03:55]written 0, free lines is 3176 [16:03:55]MH_Cut [16:03:55]Write to MH i2c: D1 01 00 56 68 01 90 [16:03:55]Write i2c OK [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: D1 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: D1 01 00 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: D1 01 00 56 68 00 8F [16:03:55]Write to MH i2c: 01 00 00 57 68 BF [16:03:55]Write i2c OK [16:03:55]MH_I2C_Read... [16:03:55]OFD Sender: No OFD packet to send [16:03:56]*** Cut start [16:03:56]*** Partial cut [16:03:56]*** CUTSNS_PIN = 1 [16:03:56]*** CUTSNS_PIN = 0 [16:03:57]*** Brake cut motor [16:03:57]Read from MH i2c: 01 [16:03:57]MH_I2C_Read... [16:03:57]*** Stop cut motor [16:03:57]*** Cut end [16:03:57]Read from MH i2c: 01 07 00 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: 01 07 00 57 68 00 00 00 00 00 FF 0F D4 [16:03:57]process_action close_receipt done [16:03:57]requested_data is exist [16:03:57]produce_requested_data [16:03:57]requested_item fm.sn is exist - process it [16:03:57]wFMCommunicate request_size=4 [16:03:57]MH_SAM_APDU [16:03:57]CAPDU: 80 11 00 00 [16:03:57]Write to MH i2c: E2 08 00 58 68 80 11 00 00 00 00 00 00 3A [16:03:57]Write i2c OK [16:03:57]MH_I2C_Read... [16:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:57]Read from MH i2c: E2 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: E2 17 00 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: E2 17 00 58 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 91 [16:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:03:57]wFMCommunicate OK [16:03:57]requested_item fd.num is exist - process it [16:03:57]SAM_PROTO_GetFieldsCounters [16:03:57]wFMCommunicate request_size=4 [16:03:57]MH_SAM_APDU [16:03:57]CAPDU: 80 13 00 00 [16:03:57]Write to MH i2c: E2 08 00 59 68 80 13 00 00 00 00 00 00 3D [16:03:57]Write i2c OK [16:03:57]MH_I2C_Read... [16:03:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:57]Read from MH i2c: E2 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: E2 62 00 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: E2 62 00 59 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7B E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [16:03:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7B E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:57]wFMCommunicate OK [16:03:57]SAM_PROTO_GetFieldsCounters done [16:03:57]requested_item shift.num is exist - process it [16:03:57]requested_item shift.opened is exist - process it [16:03:57]req_shift_opened [16:03:57]FM_GetShiftState [16:03:57]SAM_PROTO_GetShiftState [16:03:57]wFMCommunicate request_size=4 [16:03:57]MH_SAM_APDU [16:03:57]CAPDU: 80 13 01 00 [16:03:57]Write to MH i2c: E2 08 00 5A 68 80 13 01 00 00 00 00 00 3F [16:03:57]Write i2c OK [16:03:57]MH_I2C_Read... [16:03:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:57]Read from MH i2c: E2 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: E2 0E 00 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: E2 0E 00 5A 68 00 09 00 01 98 11 45 67 00 00 00 00 90 00 A0 [16:03:57]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:03:57]wFMCommunicate OK [16:03:57]SAM_PROTO_GetShiftState done [16:03:57]FM_GetShiftState done [16:03:57]req_shift_opened done [16:03:57]requested_item shift.open_date is exist - process it [16:03:57]req_shift_open_date [16:03:57]req_shift_open_date done [16:03:57]produce_requested_data done [16:03:57]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123259,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:03:57]process_action_free close_receipt [16:03:57]json_value_free [16:03:57]json_value_free done [16:03:57]process_json_proto returns [16:03:57]Send response to host [16:03:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123259,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:03:57]free response buf [16:03:57]execute_script done [16:03:57]execute_script returns [16:03:57]free content buf [16:03:57]Sock 7.Close socket [16:03:57]Sock 7.Thread stoped [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]accept exits with 9 [16:04:10]New connection [16:04:10]New thread 3066723684 created [16:04:10]Thread 3066580324 joined [16:04:10]Waiting for new connection... [16:04:10] Sock 9.Parse request [16:04:10]Sock 9.Check first char [16:04:10]Sock 9.First char is OK [16:04:10]request: POST /json_proto HTTP/1.0 [16:04:10]Method: POST [16:04:10]URL: /json_proto [16:04:10]Method is POST - this is cgi request [16:04:10]url: /json_proto [16:04:10]query_string will be loaded in cgi processing [16:04:10]execute_cgi json_proto POST (null) [16:04:10]execute_cgi path=json_proto method=POST [16:04:10]POST find Content-Length [16:04:10]Host: 172.17.37.4:8080 [16:04:10]Content-Length: 800 [16:04:10]Content-Type: application/json [16:04:10] [16:04:10]POST finish read [16:04:10]Found Content-Length = 800 [16:04:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 8.910, "sum" : 600.53, "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" : 600.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:10]execute_script... [16:04:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 8.910, "sum" : 600.53, "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" : 600.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:10]POST & json_proto [16:04:10]process_json_proto [16:04:10]json parsed OK: [16:04:10]protocol is kg_v1.0 [16:04:10]action value=close_receipt [16:04:10]process_action close_receipt [16:04:10]cmd_close_receipt [16:04:10]MH_GetDate [16:04:10]Write to MH i2c: F0 00 00 5B 68 B2 [16:04:10]Write i2c OK [16:04:10]MH_I2C_Read... [16:04:10]OFD Sender: No OFD packet to send [16:04:10]Read from MH i2c: F0 [16:04:10]MH_I2C_Read... [16:04:10]Read from MH i2c: F0 09 00 [16:04:10]MH_I2C_Read... [16:04:10]Read from MH i2c: F0 09 00 5B 68 00 86 F1 45 67 B8 5A 43 67 9A [16:04:10]GetLastDocTimeStamp 1732637044 [16:04:10]current date 1732637062 [16:04:10]FM_GetShiftState [16:04:10]SAM_PROTO_GetShiftState [16:04:10]wFMCommunicate request_size=4 [16:04:10]MH_SAM_APDU [16:04:10]CAPDU: 80 13 01 00 [16:04:10]Write to MH i2c: E2 08 00 5C 68 80 13 01 00 00 00 00 00 41 [16:04:10]Write i2c OK [16:04:10]MH_I2C_Read... [16:04:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:10]Read from MH i2c: E2 [16:04:10]MH_I2C_Read... [16:04:10]Read from MH i2c: E2 0E 00 [16:04:10]MH_I2C_Read... [16:04:10]Read from MH i2c: E2 0E 00 5C 68 00 09 00 01 98 11 45 67 00 00 00 00 90 00 A2 [16:04:10]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:04:10]wFMCommunicate OK [16:04:10]SAM_PROTO_GetShiftState done [16:04:10]FM_GetShiftState done [16:04:10]opened in 1732579736 [16:04:10]opened+sec_in_day 1732666136 [16:04:10]quantity*price = 60053 [16:04:10]sum+1 = 60054 [16:04:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.53 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 0.00 Безнал.: 600.53 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 114 26.11.2024 16:04 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123260 ФПД: 99973711362276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T160422&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123260&fm=99973711362276&tin=02508201610067®Number=0000000000092681&sum=60053 [16:04:11]StoreToDocumentArchive [16:04:11]shift 557 fd 123260 [16:04:11]save to /storage/0557/doc_00123260 [16:04:11]save last doc name /storage/0557/doc_00123260 to /storage/kkm_last_doc_name [16:04:11]save OK [16:04:11]Clear old archive folders... [16:04:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:04:11]tlvbuf is 01F46FB0 [16:04:11]SAM_PROTO_ClearQueue [16:04:11]wFMCommunicate request_size=4 [16:04:11]MH_SAM_APDU [16:04:11]CAPDU: 80 09 00 00 [16:04:11]Write to MH i2c: E2 08 00 69 68 80 09 00 00 00 00 00 00 43 [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:12]Read from MH i2c: E2 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 03 00 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 03 00 69 68 00 90 00 45 [16:04:12]RAPDU: 90 00 [16:04:12]wFMCommunicate OK [16:04:12]SAM_PROTO_ClearQueue done [16:04:12]KKMCreateOFDPacket [16:04:12]OFDProtocolAddRootSTLVToBuf [16:04:12]FM_MakeSignedData [16:04:12]FM_MakeSignedData [16:04:12]SAM_PROTO_SignData [16:04:12]wFMCommunicate request_size=4 [16:04:12]MH_SAM_APDU [16:04:12]CAPDU: 80 0D 01 02 [16:04:12]Write to MH i2c: E2 08 00 6A 68 80 0D 01 02 00 00 00 00 4B [16:04:12]Write i2c OK [16:04:12]MH_I2C_Read... [16:04:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:12]Read from MH i2c: E2 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 03 00 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 03 00 6A 68 00 90 00 46 [16:04:12]RAPDU: 90 00 [16:04:12]wFMCommunicate OK [16:04:12]wFMCommunicate request_size=255 [16:04:12]MH_SAM_APDU [16:04:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 86 F1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7C E1 01 00 35 04 06 00 5A [16:04:12]Write to MH i2c: E2 02 01 6B 68 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 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 86 F1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7C E1 01 00 35 04 06 00 5A 00 00 C6 [16:04:12]Write i2c OK [16:04:12]MH_I2C_Read... [16:04:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:12]Read from MH i2c: E2 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 03 00 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 03 00 6B 68 00 90 00 47 [16:04:12]RAPDU: 90 00 [16:04:12]wFMCommunicate OK [16:04:12]wFMCommunicate request_size=10 [16:04:12]MH_SAM_APDU [16:04:12]CAPDU: 80 0D 02 02 05 EC F1 8D 78 E4 [16:04:12]Write to MH i2c: E2 0D 00 6C 68 80 0D 02 02 05 00 EC F1 8D 78 E4 00 00 1E [16:04:12]Write i2c OK [16:04:12]MH_I2C_Read... [16:04:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:12]Read from MH i2c: E2 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 03 00 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 03 00 6C 68 00 90 00 48 [16:04:12]RAPDU: 90 00 [16:04:12]wFMCommunicate OK [16:04:12]wFMCommunicate request_size=4 [16:04:12]MH_SAM_APDU [16:04:12]CAPDU: 80 0D 03 02 [16:04:12]Write to MH i2c: E2 08 00 6D 68 80 0D 03 02 00 00 00 00 50 [16:04:12]Write i2c OK [16:04:12]MH_I2C_Read... [16:04:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:12]Read from MH i2c: E2 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 0B 00 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 0B 00 6D 68 00 4C 5D F3 F7 80 54 F5 FC 90 00 A9 [16:04:12]RAPDU: 4C 5D F3 F7 80 54 F5 FC 90 00 [16:04:12]wFMCommunicate OK [16:04:12]SAM_PROTO_SignData done [16:04:12]FM_MakeSignedData done [16:04:12]CreateOFDProtocolMessage [16:04:12]wFMCommunicate request_size=4 [16:04:12]MH_SAM_APDU [16:04:12]CAPDU: 80 11 00 00 [16:04:12]Write to MH i2c: E2 08 00 6E 68 80 11 00 00 00 00 00 00 50 [16:04:12]Write i2c OK [16:04:12]MH_I2C_Read... [16:04:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:12]Read from MH i2c: E2 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 17 00 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 17 00 6E 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A7 [16:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:04:12]wFMCommunicate OK [16:04:12]CreateOFDProtocolMessage done [16:04:12]OFDSenderStorePacket 123260 [16:04:12]StoreOFDPacket docnum=123260 [16:04:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 AB 25 07 01 3C E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 86 F1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7C E1 01 00 35 04 06 00 5A EC F1 8D 78 E4 4C 5D F3 F7 80 54 F5 FC [16:04:12]CheckFolder [16:04:12]dirname=/storage/ofd_packets [16:04:12]CheckFolder done [16:04:12]ProducePacketName [16:04:12]name=ofd_packets/00123260 [16:04:12]NVStorageSaveData ofd_packets/00123260 [16:04:12]File name is /storage/ofd_packets/00123260 [16:04:12]Write 301 bytes [16:04:12]NVStorageSaveData done [16:04:12]OFDSenderStorePacket done [16:04:12]KKMCreateOFDPacket done [16:04:12]NVStorageSaveData kkm_last_timestamp [16:04:12]File name is /storage/kkm_last_timestamp [16:04:12]Write 4 bytes [16:04:12]NVStorageSaveData done [16:04:12]ExternCall_PrintAddStr [16:04:12]wPrintStart [16:04:12]Write to MH i2c: 01 00 00 6F 68 D7 [16:04:12]Write i2c OK [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: 01 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: 01 07 00 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: 01 07 00 6F 68 00 00 00 00 00 FF 0F EC [16:04:12]RasterBufferAndPrint [16:04:12]line Счет N : (1)718091 [16:04:12]line ИНН: 02508201610067 [16:04:12]line Контрольно-Кассовый Чек [16:04:12]line ПРОДАЖА [16:04:12]line ТРК (МРК, ГНК) : 12 [16:04:12]line Товар: 2710124130 [16:04:12]line Аи-92-К-4 [16:04:12]line 8.910 * 67.40 [16:04:12]line = 600.53 [16:04:12]line НДС 12% НСП 1% [16:04:12]line > о реализуемом товаре [16:04:12]line ИТОГО: 600.53 [16:04:12]line НСП 1% : 5.31 [16:04:12]line НДС 12% : 63.77 [16:04:12]line Наличными: 0.00 [16:04:12]line Безнал.: 600.53 [16:04:12]line Место: АЗС № 64 "Партнер Нефть" [16:04:12]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:04:12]line СНО: Общий режим [16:04:12]line Чек 114 26.11.2024 16:04 [16:04:12]line Смена: 557 ФФД: 1.0 [16:04:12]line ЗНМ: 0300000033 [16:04:12]line РНМ: 0000000000092681 [16:04:12]line Версия ККМ: 001 [16:04:12]line Платежная система: O! деньги [16:04:12]line ФМ: 0000000000874881 [16:04:12]line ФД: 123260 [16:04:12]line ФПД: 99973711362276 [16:04:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T160422&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123260&fm=99973711362276&tin=02508201610067®Number=0000000000092681&sum=60053 [16:04:12]written 0, free lines is 4095 [16:04:12]OFD Sender: Processing packet 123260 [packets to send 7, broken 6] [16:04:12]ProducePacketName [16:04:12]name=ofd_packets/00123260 [16:04:12]OFD Sender: To server: pG, [16:04:12]CommunicateWithHost lk.salyk.kg:30040 [16:04:12]ConnectInit lk.salyk.kg [16:04:12]Connected sock=7 [16:04:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 AB 25 07 01 3C E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 86 F1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7C E1 01 00 35 04 06 00 5A EC F1 8D 78 E4 4C 5D F3 F7 80 54 F5 FC [16:04:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 AC AA 47 00 19 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7C E1 01 00 F4 03 04 00 48 9D 45 67 B6 04 01 00 00 F1 1D 85 06 D9 B4 34 01 [16:04:13]CommunicateWithHost err = 0 [16:04:13]CheckOFDResponse [16:04:13]1017 (14) - 77093643461234 [16:04:13]1041 (16) - 0000000000874881 [16:04:13]1040 (4) - 123260 [16:04:13]1012 (4) - 26.11.2024 10:04 [16:04:13]1206 (1) - 0 [16:04:13]OFD Sender: Remove packet 123260 [16:04:13]ProducePacketName [16:04:13]name=ofd_packets/00123260 [16:04:13]NVStorageDeleteData [16:04:13]Write to MH i2c: 01 00 00 99 68 01 [16:04:13]Write i2c OK [16:04:13]MH_I2C_Read... [16:04:13]Read from MH i2c: 01 [16:04:13]MH_I2C_Read... [16:04:13]Read from MH i2c: 01 07 00 [16:04:13]MH_I2C_Read... [16:04:13]Read from MH i2c: 01 07 00 99 68 00 00 00 00 00 7A 0C 8E [16:04:13]RasterBufferAndPrint [16:04:13]line [16:04:13]line [16:04:13]line [16:04:13]line [16:04:13]line [16:04:13]written 0, free lines is 3197 [16:04:13]MH_Cut [16:04:13]Write to MH i2c: D1 01 00 A0 68 01 DA [16:04:13]Write i2c OK [16:04:13]MH_I2C_Read... [16:04:13]Read from MH i2c: D1 [16:04:13]MH_I2C_Read... [16:04:13]Read from MH i2c: D1 01 00 [16:04:13]MH_I2C_Read... [16:04:13]Read from MH i2c: D1 01 00 A0 68 00 D9 [16:04:13]Write to MH i2c: 01 00 00 A1 68 09 [16:04:13]Write i2c OK [16:04:13]MH_I2C_Read... [16:04:13]OFD Sender: No OFD packet to send [16:04:14]*** Cut start [16:04:14]*** Partial cut [16:04:14]*** CUTSNS_PIN = 1 [16:04:14]*** CUTSNS_PIN = 0 [16:04:14]*** Brake cut motor [16:04:15]Read from MH i2c: 01 [16:04:15]MH_I2C_Read... [16:04:15]*** Stop cut motor [16:04:15]*** Cut end [16:04:15]Read from MH i2c: 01 07 00 [16:04:15]MH_I2C_Read... [16:04:15]Read from MH i2c: 01 07 00 A1 68 00 00 00 00 00 FF 0F 1E [16:04:15]process_action close_receipt done [16:04:15]requested_data is exist [16:04:15]produce_requested_data [16:04:15]requested_item fm.sn is exist - process it [16:04:15]wFMCommunicate request_size=4 [16:04:15]MH_SAM_APDU [16:04:15]CAPDU: 80 11 00 00 [16:04:15]Write to MH i2c: E2 08 00 A2 68 80 11 00 00 00 00 00 00 84 [16:04:15]Write i2c OK [16:04:15]MH_I2C_Read... [16:04:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:15]Read from MH i2c: E2 [16:04:15]MH_I2C_Read... [16:04:15]Read from MH i2c: E2 17 00 [16:04:15]MH_I2C_Read... [16:04:15]Read from MH i2c: E2 17 00 A2 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DB [16:04:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:04:15]wFMCommunicate OK [16:04:15]requested_item fd.num is exist - process it [16:04:15]SAM_PROTO_GetFieldsCounters [16:04:15]wFMCommunicate request_size=4 [16:04:15]MH_SAM_APDU [16:04:15]CAPDU: 80 13 00 00 [16:04:15]Write to MH i2c: E2 08 00 A3 68 80 13 00 00 00 00 00 00 87 [16:04:15]Write i2c OK [16:04:15]MH_I2C_Read... [16:04:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:15]Read from MH i2c: E2 [16:04:15]MH_I2C_Read... [16:04:15]Read from MH i2c: E2 62 00 [16:04:15]MH_I2C_Read... [16:04:15]Read from MH i2c: E2 62 00 A3 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7C E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [16:04:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7C E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:04:15]wFMCommunicate OK [16:04:15]SAM_PROTO_GetFieldsCounters done [16:04:15]requested_item shift.num is exist - process it [16:04:15]requested_item shift.opened is exist - process it [16:04:15]req_shift_opened [16:04:15]FM_GetShiftState [16:04:15]SAM_PROTO_GetShiftState [16:04:15]wFMCommunicate request_size=4 [16:04:15]MH_SAM_APDU [16:04:15]CAPDU: 80 13 01 00 [16:04:15]Write to MH i2c: E2 08 00 A4 68 80 13 01 00 00 00 00 00 89 [16:04:15]Write i2c OK [16:04:15]MH_I2C_Read... [16:04:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:15]Read from MH i2c: E2 [16:04:15]MH_I2C_Read... [16:04:15]Read from MH i2c: E2 0E 00 [16:04:15]MH_I2C_Read... [16:04:15]Read from MH i2c: E2 0E 00 A4 68 00 09 00 01 98 11 45 67 00 00 00 00 90 00 EA [16:04:15]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:04:15]wFMCommunicate OK [16:04:15]SAM_PROTO_GetShiftState done [16:04:15]FM_GetShiftState done [16:04:15]req_shift_opened done [16:04:15]requested_item shift.open_date is exist - process it [16:04:15]req_shift_open_date [16:04:15]req_shift_open_date done [16:04:15]produce_requested_data done [16:04:15]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123260,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:04:15]process_action_free close_receipt [16:04:15]json_value_free [16:04:15]json_value_free done [16:04:15]process_json_proto returns [16:04:15]Send response to host [16:04:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123260,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:04:15]free response buf [16:04:15]execute_script done [16:04:15]execute_script returns [16:04:15]free content buf [16:04:15]Sock 9.Close socket [16:04:15]Sock 9.Thread stoped [16:04:18]OFD Sender: No OFD packet to send [16:04:23]accept exits with 10 [16:04:23]New connection [16:04:23]New thread 3066580324 created [16:04:23]Thread 3066723684 joined [16:04:23]Waiting for new connection... [16:04:23] Sock 10.Parse request [16:04:23]Sock 10.Check first char [16:04:23]Sock 10.First char is OK [16:04:23]request: POST /json_proto HTTP/1.0 [16:04:23]Method: POST [16:04:23]URL: /json_proto [16:04:23]Method is POST - this is cgi request [16:04:23]url: /json_proto [16:04:23]query_string will be loaded in cgi processing [16:04:23]execute_cgi json_proto POST (null) [16:04:23]execute_cgi path=json_proto method=POST [16:04:23]POST find Content-Length [16:04:23]Host: 172.17.37.4:8080 [16:04:23]Content-Length: 677 [16:04:23]Content-Type: application/json [16:04:23] [16:04:23]POST finish read [16:04:23]Found Content-Length = 677 [16:04:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.380, "sum" : 160.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:23]execute_script... [16:04:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.380, "sum" : 160.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:23]POST & json_proto [16:04:23]process_json_proto [16:04:23]json parsed OK: [16:04:23]protocol is kg_v1.0 [16:04:23]action value=close_receipt [16:04:23]process_action close_receipt [16:04:23]cmd_close_receipt [16:04:23]MH_GetDate [16:04:23]Write to MH i2c: F0 00 00 A5 68 FC [16:04:23]Write i2c OK [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: F0 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: F0 09 00 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: F0 09 00 A5 68 00 92 F1 45 67 B8 5A 43 67 F0 [16:04:23]GetLastDocTimeStamp 1732637062 [16:04:23]current date 1732637074 [16:04:23]FM_GetShiftState [16:04:23]SAM_PROTO_GetShiftState [16:04:23]wFMCommunicate request_size=4 [16:04:23]MH_SAM_APDU [16:04:23]CAPDU: 80 13 01 00 [16:04:23]Write to MH i2c: E2 08 00 A6 68 80 13 01 00 00 00 00 00 8B [16:04:23]Write i2c OK [16:04:23]MH_I2C_Read... [16:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:23]Read from MH i2c: E2 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: E2 0E 00 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: E2 0E 00 A6 68 00 09 00 01 98 11 45 67 00 00 00 00 90 00 EC [16:04:23]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:04:23]wFMCommunicate OK [16:04:23]SAM_PROTO_GetShiftState done [16:04:23]FM_GetShiftState done [16:04:23]opened in 1732579736 [16:04:23]opened+sec_in_day 1732666136 [16:04:23]quantity*price = 16041 [16:04:23]sum+1 = 16042 [16:04:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 160.00 Внесено: 160.00 СДАЧА: 0.00 НСП 1% : 1.42 НДС 12% : 17.03 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 115 26.11.2024 16:04 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123261 ФПД: 263218863730907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T160434&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123261&fm=263218863730907&tin=02508201610067®Number=0000000000092681&sum=16000 [16:04:24]StoreToDocumentArchive [16:04:24]shift 557 fd 123261 [16:04:24]save to /storage/0557/doc_00123261 [16:04:24]save last doc name /storage/0557/doc_00123261 to /storage/kkm_last_doc_name [16:04:24]save OK [16:04:24]Clear old archive folders... [16:04:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:04:24]tlvbuf is 020A92B0 [16:04:24]SAM_PROTO_ClearQueue [16:04:24]wFMCommunicate request_size=4 [16:04:24]MH_SAM_APDU [16:04:24]CAPDU: 80 09 00 00 [16:04:24]Write to MH i2c: E2 08 00 B3 68 80 09 00 00 00 00 00 00 8D [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:24]Read from MH i2c: E2 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 B3 68 00 90 00 8F [16:04:24]RAPDU: 90 00 [16:04:24]wFMCommunicate OK [16:04:24]SAM_PROTO_ClearQueue done [16:04:24]KKMCreateOFDPacket [16:04:24]OFDProtocolAddRootSTLVToBuf [16:04:24]FM_MakeSignedData [16:04:24]FM_MakeSignedData [16:04:24]SAM_PROTO_SignData [16:04:24]wFMCommunicate request_size=4 [16:04:24]MH_SAM_APDU [16:04:24]CAPDU: 80 0D 01 02 [16:04:24]Write to MH i2c: E2 08 00 B4 68 80 0D 01 02 00 00 00 00 95 [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:24]Read from MH i2c: E2 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 B4 68 00 90 00 90 [16:04:24]RAPDU: 90 00 [16:04:24]wFMCommunicate OK [16:04:24]wFMCommunicate request_size=255 [16:04:24]MH_SAM_APDU [16:04:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4C 09 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A9 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 92 F1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7D E1 01 00 35 04 06 00 EF [16:04:24]Write to MH i2c: E2 02 01 B5 68 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 34 FF 03 08 00 03 4C 09 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A9 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 92 F1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7D E1 01 00 35 04 06 00 EF 00 00 23 [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:24]Read from MH i2c: E2 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 B5 68 00 90 00 91 [16:04:24]RAPDU: 90 00 [16:04:24]wFMCommunicate OK [16:04:24]wFMCommunicate request_size=10 [16:04:24]MH_SAM_APDU [16:04:24]CAPDU: 80 0D 02 02 05 65 6A DE F0 DB [16:04:24]Write to MH i2c: E2 0D 00 B6 68 80 0D 02 02 05 00 65 6A DE F0 DB 00 00 1A [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:24]Read from MH i2c: E2 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 B6 68 00 90 00 92 [16:04:24]RAPDU: 90 00 [16:04:24]wFMCommunicate OK [16:04:24]wFMCommunicate request_size=4 [16:04:24]MH_SAM_APDU [16:04:24]CAPDU: 80 0D 03 02 [16:04:24]Write to MH i2c: E2 08 00 B7 68 80 0D 03 02 00 00 00 00 9A [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:24]Read from MH i2c: E2 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 0B 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 0B 00 B7 68 00 BE 80 80 5D 0C 77 51 0D 90 00 97 [16:04:24]RAPDU: BE 80 80 5D 0C 77 51 0D 90 00 [16:04:24]wFMCommunicate OK [16:04:24]SAM_PROTO_SignData done [16:04:24]FM_MakeSignedData done [16:04:24]CreateOFDProtocolMessage [16:04:24]wFMCommunicate request_size=4 [16:04:24]MH_SAM_APDU [16:04:24]CAPDU: 80 11 00 00 [16:04:24]Write to MH i2c: E2 08 00 B8 68 80 11 00 00 00 00 00 00 9A [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:24]Read from MH i2c: E2 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 17 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 17 00 B8 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F1 [16:04:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:04:24]wFMCommunicate OK [16:04:24]CreateOFDProtocolMessage done [16:04:24]OFDSenderStorePacket 123261 [16:04:24]StoreOFDPacket docnum=123261 [16:04:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E3 32 07 01 44 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4C 09 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A9 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 92 F1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7D E1 01 00 35 04 06 00 EF 65 6A DE F0 DB BE 80 80 5D 0C 77 51 0D [16:04:24]CheckFolder [16:04:24]dirname=/storage/ofd_packets [16:04:24]CheckFolder done [16:04:24]ProducePacketName [16:04:24]name=ofd_packets/00123261 [16:04:24]NVStorageSaveData ofd_packets/00123261 [16:04:24]File name is /storage/ofd_packets/00123261 [16:04:24]Write 301 bytes [16:04:24]NVStorageSaveData done [16:04:24]OFDSenderStorePacket done [16:04:24]KKMCreateOFDPacket done [16:04:24]NVStorageSaveData kkm_last_timestamp [16:04:24]File name is /storage/kkm_last_timestamp [16:04:24]Write 4 bytes [16:04:24]NVStorageSaveData done [16:04:24]ExternCall_PrintAddStr [16:04:24]wPrintStart [16:04:24]Write to MH i2c: 01 00 00 B9 68 21 [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: 01 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: 01 07 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: 01 07 00 B9 68 00 00 00 00 00 FF 0F 36 [16:04:24]RasterBufferAndPrint [16:04:24]line Счет N : (1)718092 [16:04:24]line ИНН: 02508201610067 [16:04:24]line Контрольно-Кассовый Чек [16:04:24]line ПРОДАЖА [16:04:24]line ТРК (МРК, ГНК) : 32 [16:04:24]line Товар: 2710124130 [16:04:24]line Аи-92-К-4 [16:04:24]line 2.380 * 67.40 [16:04:24]line = 160.41 [16:04:24]line НДС 12% НСП 1% [16:04:24]line > о реализуемом товаре [16:04:24]line ОКРУГЛЕНИЕ: -0.41 [16:04:24]line ИТОГО: 160.00 [16:04:24]line Внесено: 160.00 [16:04:24]line СДАЧА: 0.00 [16:04:24]line НСП 1% : 1.42 [16:04:24]line НДС 12% : 17.03 [16:04:24]line Наличными: 160.00 [16:04:24]line Безнал.: 0.00 [16:04:24]line Место: АЗС № 64 "Партнер Нефть" [16:04:24]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:04:24]line СНО: Общий режим [16:04:24]line Чек 115 26.11.2024 16:04 [16:04:24]line Смена: 557 ФФД: 1.0 [16:04:24]line ЗНМ: 0300000033 [16:04:24]line РНМ: 0000000000092681 [16:04:24]line Версия ККМ: 001 [16:04:24]line ФМ: 0000000000874881 [16:04:24]line ФД: 123261 [16:04:24]line ФПД: 263218863730907 [16:04:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T160434&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123261&fm=263218863730907&tin=02508201610067®Number=0000000000092681&sum=16000 [16:04:24]written 0, free lines is 4095 [16:04:24]OFD Sender: Processing packet 123261 [packets to send 7, broken 6] [16:04:24]ProducePacketName [16:04:24]name=ofd_packets/00123261 [16:04:24]OFD Sender: To server: pG, [16:04:24]CommunicateWithHost lk.salyk.kg:30040 [16:04:24]ConnectInit lk.salyk.kg [16:04:25]Connected sock=9 [16:04:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 E3 32 07 01 44 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4C 09 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A9 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 92 F1 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7D E1 01 00 35 04 06 00 EF 65 6A DE F0 DB BE 80 80 5D 0C 77 51 0D [16:04:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 C6 72 47 00 BD 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7D E1 01 00 F4 03 04 00 54 9D 45 67 B6 04 01 00 00 DB 4B 26 4A 17 0F 45 B6 [16:04:25]CommunicateWithHost err = 0 [16:04:25]CheckOFDResponse [16:04:25]1017 (14) - 77093643461234 [16:04:25]1041 (16) - 0000000000874881 [16:04:25]1040 (4) - 123261 [16:04:25]1012 (4) - 26.11.2024 10:05 [16:04:25]1206 (1) - 0 [16:04:25]OFD Sender: Remove packet 123261 [16:04:25]ProducePacketName [16:04:25]name=ofd_packets/00123261 [16:04:25]NVStorageDeleteData [16:04:25]Write to MH i2c: 01 00 00 E4 68 4C [16:04:25]Write i2c OK [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: 01 [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: 01 07 00 [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: 01 07 00 E4 68 00 00 00 00 00 5E 0C BD [16:04:25]RasterBufferAndPrint [16:04:25]line [16:04:25]line [16:04:25]line [16:04:25]line [16:04:25]line [16:04:25]written 0, free lines is 3173 [16:04:25]MH_Cut [16:04:25]Write to MH i2c: D1 01 00 EB 68 01 25 [16:04:25]Write i2c OK [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: D1 [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: D1 01 00 [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: D1 01 00 EB 68 00 24 [16:04:25]Write to MH i2c: 01 00 00 EC 68 54 [16:04:25]Write i2c OK [16:04:25]MH_I2C_Read... [16:04:25]OFD Sender: No OFD packet to send [16:04:26]*** Cut start [16:04:26]*** Partial cut [16:04:26]*** CUTSNS_PIN = 1 [16:04:26]*** CUTSNS_PIN = 0 [16:04:27]*** Brake cut motor [16:04:27]Read from MH i2c: 01 [16:04:27]MH_I2C_Read... [16:04:27]*** Stop cut motor [16:04:27]*** Cut end [16:04:27]Read from MH i2c: 01 07 00 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: 01 07 00 EC 68 00 00 00 00 00 FF 0F 69 [16:04:27]process_action close_receipt done [16:04:27]requested_data is exist [16:04:27]produce_requested_data [16:04:27]requested_item fm.sn is exist - process it [16:04:27]wFMCommunicate request_size=4 [16:04:27]MH_SAM_APDU [16:04:27]CAPDU: 80 11 00 00 [16:04:27]Write to MH i2c: E2 08 00 ED 68 80 11 00 00 00 00 00 00 CF [16:04:27]Write i2c OK [16:04:27]MH_I2C_Read... [16:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:27]Read from MH i2c: E2 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: E2 17 00 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: E2 17 00 ED 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 26 [16:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:04:27]wFMCommunicate OK [16:04:27]requested_item fd.num is exist - process it [16:04:27]SAM_PROTO_GetFieldsCounters [16:04:27]wFMCommunicate request_size=4 [16:04:27]MH_SAM_APDU [16:04:27]CAPDU: 80 13 00 00 [16:04:27]Write to MH i2c: E2 08 00 EE 68 80 13 00 00 00 00 00 00 D2 [16:04:27]Write i2c OK [16:04:27]MH_I2C_Read... [16:04:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:27]Read from MH i2c: E2 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: E2 62 00 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: E2 62 00 EE 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7D E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [16:04:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7D E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:04:27]wFMCommunicate OK [16:04:27]SAM_PROTO_GetFieldsCounters done [16:04:27]requested_item shift.num is exist - process it [16:04:27]requested_item shift.opened is exist - process it [16:04:27]req_shift_opened [16:04:27]FM_GetShiftState [16:04:27]SAM_PROTO_GetShiftState [16:04:27]wFMCommunicate request_size=4 [16:04:27]MH_SAM_APDU [16:04:27]CAPDU: 80 13 01 00 [16:04:27]Write to MH i2c: E2 08 00 EF 68 80 13 01 00 00 00 00 00 D4 [16:04:27]Write i2c OK [16:04:27]MH_I2C_Read... [16:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:27]Read from MH i2c: E2 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: E2 0E 00 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: E2 0E 00 EF 68 00 09 00 01 98 11 45 67 00 00 00 00 90 00 35 [16:04:27]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:04:27]wFMCommunicate OK [16:04:27]SAM_PROTO_GetShiftState done [16:04:27]FM_GetShiftState done [16:04:27]req_shift_opened done [16:04:27]requested_item shift.open_date is exist - process it [16:04:27]req_shift_open_date [16:04:27]req_shift_open_date done [16:04:27]produce_requested_data done [16:04:27]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123261,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:04:27]process_action_free close_receipt [16:04:27]json_value_free [16:04:27]json_value_free done [16:04:27]process_json_proto returns [16:04:27]Send response to host [16:04:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123261,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:04:27]free response buf [16:04:27]execute_script done [16:04:27]execute_script returns [16:04:27]free content buf [16:04:27]Sock 10.Close socket [16:04:27]Sock 10.Thread stoped [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:45]accept exits with 7 [16:13:45]New connection [16:13:45]New thread 3066723684 created [16:13:45]Thread 3066580324 joined [16:13:45]Waiting for new connection... [16:13:45] Sock 7.Parse request [16:13:45]Sock 7.Check first char [16:13:45]Sock 7.First char is OK [16:13:45]request: POST /json_proto HTTP/1.0 [16:13:45]Method: POST [16:13:45]URL: /json_proto [16:13:45]Method is POST - this is cgi request [16:13:45]url: /json_proto [16:13:45]query_string will be loaded in cgi processing [16:13:45]execute_cgi json_proto POST (null) [16:13:45]execute_cgi path=json_proto method=POST [16:13:45]POST find Content-Length [16:13:45]Host: 172.17.37.4:8080 [16:13:45]Content-Length: 681 [16:13:45]Content-Type: application/json [16:13:45] [16:13:45]POST finish read [16:13:45]Found Content-Length = 681 [16:13:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 6.680, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:45]execute_script... [16:13:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 6.680, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:45]POST & json_proto [16:13:45]process_json_proto [16:13:45]json parsed OK: [16:13:45]protocol is kg_v1.0 [16:13:45]action value=close_receipt [16:13:45]process_action close_receipt [16:13:45]cmd_close_receipt [16:13:45]MH_GetDate [16:13:45]Write to MH i2c: F0 00 00 F0 68 47 [16:13:45]Write i2c OK [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: F0 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: F0 09 00 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: F0 09 00 F0 68 00 C5 F3 45 67 B8 5A 43 67 70 [16:13:45]GetLastDocTimeStamp 1732637074 [16:13:45]current date 1732637637 [16:13:45]FM_GetShiftState [16:13:45]SAM_PROTO_GetShiftState [16:13:45]wFMCommunicate request_size=4 [16:13:45]MH_SAM_APDU [16:13:45]CAPDU: 80 13 01 00 [16:13:45]Write to MH i2c: E2 08 00 F1 68 80 13 01 00 00 00 00 00 D6 [16:13:45]Write i2c OK [16:13:45]MH_I2C_Read... [16:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:45]Read from MH i2c: E2 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: E2 0E 00 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: E2 0E 00 F1 68 00 09 00 01 98 11 45 67 00 00 00 00 90 00 37 [16:13:45]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:13:45]wFMCommunicate OK [16:13:45]SAM_PROTO_GetShiftState done [16:13:45]FM_GetShiftState done [16:13:45]opened in 1732579736 [16:13:45]opened+sec_in_day 1732666136 [16:13:45]quantity*price = 50033 [16:13:45]sum+1 = 50034 [16:13:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 116 26.11.2024 16:13 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123262 ФПД: 197927623219541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T161357&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123262&fm=197927623219541&tin=02508201610067®Number=0000000000092681&sum=50000 [16:13:46]StoreToDocumentArchive [16:13:46]shift 557 fd 123262 [16:13:46]save to /storage/0557/doc_00123262 [16:13:46]save last doc name /storage/0557/doc_00123262 to /storage/kkm_last_doc_name [16:13:46]save OK [16:13:46]Clear old archive folders... [16:13:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:13:46]tlvbuf is 021DA260 [16:13:46]SAM_PROTO_ClearQueue [16:13:46]wFMCommunicate request_size=4 [16:13:46]MH_SAM_APDU [16:13:46]CAPDU: 80 09 00 00 [16:13:46]Write to MH i2c: E2 08 00 FE 68 80 09 00 00 00 00 00 00 D8 [16:13:46]Write i2c OK [16:13:46]MH_I2C_Read... [16:13:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:46]Read from MH i2c: E2 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 03 00 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 03 00 FE 68 00 90 00 DA [16:13:46]RAPDU: 90 00 [16:13:46]wFMCommunicate OK [16:13:46]SAM_PROTO_ClearQueue done [16:13:46]KKMCreateOFDPacket [16:13:46]OFDProtocolAddRootSTLVToBuf [16:13:46]FM_MakeSignedData [16:13:46]FM_MakeSignedData [16:13:46]SAM_PROTO_SignData [16:13:46]wFMCommunicate request_size=4 [16:13:46]MH_SAM_APDU [16:13:46]CAPDU: 80 0D 01 02 [16:13:46]Write to MH i2c: E2 08 00 FF 68 80 0D 01 02 00 00 00 00 E0 [16:13:46]Write i2c OK [16:13:46]MH_I2C_Read... [16:13:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:46]Read from MH i2c: E2 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 03 00 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 03 00 FF 68 00 90 00 DB [16:13:46]RAPDU: 90 00 [16:13:46]wFMCommunicate OK [16:13:46]wFMCommunicate request_size=255 [16:13:46]MH_SAM_APDU [16:13:46]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 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 C5 F3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7E E1 01 00 35 04 06 00 [16:13:46]Write to MH i2c: E2 02 01 00 69 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 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 C5 F3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7E E1 01 00 35 04 06 00 00 00 0E [16:13:46]Write i2c OK [16:13:46]MH_I2C_Read... [16:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:47]Read from MH i2c: E2 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 03 00 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 03 00 00 69 00 90 00 DD [16:13:47]RAPDU: 90 00 [16:13:47]wFMCommunicate OK [16:13:47]wFMCommunicate request_size=11 [16:13:47]MH_SAM_APDU [16:13:47]CAPDU: 80 0D 02 02 06 B4 03 9D AC 59 55 [16:13:47]Write to MH i2c: E2 0E 00 01 69 80 0D 02 02 06 00 B4 03 9D AC 59 55 00 00 9E [16:13:47]Write i2c OK [16:13:47]MH_I2C_Read... [16:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:47]Read from MH i2c: E2 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 03 00 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 03 00 01 69 00 90 00 DE [16:13:47]RAPDU: 90 00 [16:13:47]wFMCommunicate OK [16:13:47]wFMCommunicate request_size=4 [16:13:47]MH_SAM_APDU [16:13:47]CAPDU: 80 0D 03 02 [16:13:47]Write to MH i2c: E2 08 00 02 69 80 0D 03 02 00 00 00 00 E6 [16:13:47]Write i2c OK [16:13:47]MH_I2C_Read... [16:13:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:47]Read from MH i2c: E2 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 0B 00 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 0B 00 02 69 00 62 03 1C 50 25 27 3A 81 90 00 BF [16:13:47]RAPDU: 62 03 1C 50 25 27 3A 81 90 00 [16:13:47]wFMCommunicate OK [16:13:47]SAM_PROTO_SignData done [16:13:47]FM_MakeSignedData done [16:13:47]CreateOFDProtocolMessage [16:13:47]wFMCommunicate request_size=4 [16:13:47]MH_SAM_APDU [16:13:47]CAPDU: 80 11 00 00 [16:13:47]Write to MH i2c: E2 08 00 03 69 80 11 00 00 00 00 00 00 E6 [16:13:47]Write i2c OK [16:13:47]MH_I2C_Read... [16:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:47]Read from MH i2c: E2 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 17 00 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: E2 17 00 03 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3D [16:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:13:47]wFMCommunicate OK [16:13:47]CreateOFDProtocolMessage done [16:13:47]OFDSenderStorePacket 123262 [16:13:47]StoreOFDPacket docnum=123262 [16:13:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 D9 77 08 01 B9 C9 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 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 C5 F3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7E E1 01 00 35 04 06 00 B4 03 9D AC 59 55 62 03 1C 50 25 27 3A 81 [16:13:47]CheckFolder [16:13:47]dirname=/storage/ofd_packets [16:13:47]CheckFolder done [16:13:47]ProducePacketName [16:13:47]name=ofd_packets/00123262 [16:13:47]NVStorageSaveData ofd_packets/00123262 [16:13:47]File name is /storage/ofd_packets/00123262 [16:13:47]Write 302 bytes [16:13:47]NVStorageSaveData done [16:13:47]OFDSenderStorePacket done [16:13:47]KKMCreateOFDPacket done [16:13:47]NVStorageSaveData kkm_last_timestamp [16:13:47]File name is /storage/kkm_last_timestamp [16:13:47]Write 4 bytes [16:13:47]NVStorageSaveData done [16:13:47]ExternCall_PrintAddStr [16:13:47]wPrintStart [16:13:47]Write to MH i2c: 01 00 00 04 69 6D [16:13:47]Write i2c OK [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: 01 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: 01 07 00 [16:13:47]MH_I2C_Read... [16:13:47]Read from MH i2c: 01 07 00 04 69 00 00 00 00 00 FF 0F 82 [16:13:47]RasterBufferAndPrint [16:13:47]line Счет N : (1)718093 [16:13:47]line ИНН: 02508201610067 [16:13:47]line Контрольно-Кассовый Чек [16:13:47]line ПРОДАЖА [16:13:47]line ТРК (МРК, ГНК) : 6 [16:13:47]line Товар: 2710194210 [16:13:47]line ДТ(л)-К-5 [16:13:47]line 6.680 * 74.90 [16:13:47]line = 500.33 [16:13:47]line НДС 12% НСП 1% [16:13:47]line > о реализуемом товаре [16:13:47]line ОКРУГЛЕНИЕ: -0.33 [16:13:47]line ИТОГО: 500.00 [16:13:47]line Внесено: 500.00 [16:13:47]line СДАЧА: 0.00 [16:13:47]line НСП 1% : 4.43 [16:13:47]line НДС 12% : 53.13 [16:13:47]line Наличными: 500.00 [16:13:47]line Безнал.: 0.00 [16:13:47]line Место: АЗС № 64 "Партнер Нефть" [16:13:47]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:13:47]line СНО: Общий режим [16:13:47]line Чек 116 26.11.2024 16:13 [16:13:47]line Смена: 557 ФФД: 1.0 [16:13:47]line ЗНМ: 0300000033 [16:13:47]line РНМ: 0000000000092681 [16:13:47]line Версия ККМ: 001 [16:13:47]line ФМ: 0000000000874881 [16:13:47]line ФД: 123262 [16:13:47]line ФПД: 197927623219541 [16:13:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T161357&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123262&fm=197927623219541&tin=02508201610067®Number=0000000000092681&sum=50000 [16:13:47]OFD Sender: Processing packet 123262 [packets to send 7, broken 6] [16:13:47]ProducePacketName [16:13:47]name=ofd_packets/00123262 [16:13:47]OFD Sender: To server: pG, [16:13:47]CommunicateWithHost lk.salyk.kg:30040 [16:13:47]ConnectInit lk.salyk.kg [16:13:47]written 0, free lines is 4095 [16:13:47]Connected sock=10 [16:13:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 D9 77 08 01 B9 C9 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 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 C5 F3 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7E E1 01 00 35 04 06 00 B4 03 9D AC 59 55 62 03 1C 50 25 27 3A 81 [16:13:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 25 19 47 00 90 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7E E1 01 00 F4 03 04 00 87 9F 45 67 B6 04 01 00 00 47 1F 0B B7 59 1E A5 94 [16:13:47]CommunicateWithHost err = 0 [16:13:47]CheckOFDResponse [16:13:47]1017 (14) - 77093643461234 [16:13:47]1041 (16) - 0000000000874881 [16:13:47]1040 (4) - 123262 [16:13:47]1012 (4) - 26.11.2024 10:14 [16:13:47]1206 (1) - 0 [16:13:47]OFD Sender: Remove packet 123262 [16:13:47]ProducePacketName [16:13:47]name=ofd_packets/00123262 [16:13:47]NVStorageDeleteData [16:13:48]Write to MH i2c: 01 00 00 2F 69 98 [16:13:48]Write i2c OK [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: 01 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: 01 07 00 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: 01 07 00 2F 69 00 00 00 00 00 47 0C F2 [16:13:48]RasterBufferAndPrint [16:13:48]line [16:13:48]line [16:13:48]line [16:13:48]line [16:13:48]line [16:13:48]written 0, free lines is 3148 [16:13:48]MH_Cut [16:13:48]Write to MH i2c: D1 01 00 36 69 01 71 [16:13:48]Write i2c OK [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: D1 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: D1 01 00 [16:13:48]MH_I2C_Read... [16:13:48]Read from MH i2c: D1 01 00 36 69 00 70 [16:13:48]Write to MH i2c: 01 00 00 37 69 A0 [16:13:48]Write i2c OK [16:13:48]MH_I2C_Read... [16:13:48]OFD Sender: No OFD packet to send [16:13:49]*** Cut start [16:13:49]*** Partial cut [16:13:49]*** CUTSNS_PIN = 1 [16:13:49]*** CUTSNS_PIN = 0 [16:13:49]*** Brake cut motor [16:13:50]Read from MH i2c: 01 [16:13:50]MH_I2C_Read... [16:13:50]*** Stop cut motor [16:13:50]*** Cut end [16:13:50]Read from MH i2c: 01 07 00 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: 01 07 00 37 69 00 00 00 00 00 FF 0F B5 [16:13:50]process_action close_receipt done [16:13:50]requested_data is exist [16:13:50]produce_requested_data [16:13:50]requested_item fm.sn is exist - process it [16:13:50]wFMCommunicate request_size=4 [16:13:50]MH_SAM_APDU [16:13:50]CAPDU: 80 11 00 00 [16:13:50]Write to MH i2c: E2 08 00 38 69 80 11 00 00 00 00 00 00 1B [16:13:50]Write i2c OK [16:13:50]MH_I2C_Read... [16:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:50]Read from MH i2c: E2 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 17 00 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 17 00 38 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 72 [16:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:13:50]wFMCommunicate OK [16:13:50]requested_item fd.num is exist - process it [16:13:50]SAM_PROTO_GetFieldsCounters [16:13:50]wFMCommunicate request_size=4 [16:13:50]MH_SAM_APDU [16:13:50]CAPDU: 80 13 00 00 [16:13:50]Write to MH i2c: E2 08 00 39 69 80 13 00 00 00 00 00 00 1E [16:13:50]Write i2c OK [16:13:50]MH_I2C_Read... [16:13:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:50]Read from MH i2c: E2 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 62 00 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 62 00 39 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7E E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [16:13:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7E E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:50]wFMCommunicate OK [16:13:50]SAM_PROTO_GetFieldsCounters done [16:13:50]requested_item shift.num is exist - process it [16:13:50]requested_item shift.opened is exist - process it [16:13:50]req_shift_opened [16:13:50]FM_GetShiftState [16:13:50]SAM_PROTO_GetShiftState [16:13:50]wFMCommunicate request_size=4 [16:13:50]MH_SAM_APDU [16:13:50]CAPDU: 80 13 01 00 [16:13:50]Write to MH i2c: E2 08 00 3A 69 80 13 01 00 00 00 00 00 20 [16:13:50]Write i2c OK [16:13:50]MH_I2C_Read... [16:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:50]Read from MH i2c: E2 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 0E 00 [16:13:50]MH_I2C_Read... [16:13:50]Read from MH i2c: E2 0E 00 3A 69 00 09 00 01 98 11 45 67 00 00 00 00 90 00 81 [16:13:50]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:13:50]wFMCommunicate OK [16:13:50]SAM_PROTO_GetShiftState done [16:13:50]FM_GetShiftState done [16:13:50]req_shift_opened done [16:13:50]requested_item shift.open_date is exist - process it [16:13:50]req_shift_open_date [16:13:50]req_shift_open_date done [16:13:50]produce_requested_data done [16:13:50]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123262,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:13:50]process_action_free close_receipt [16:13:50]json_value_free [16:13:50]json_value_free done [16:13:50]process_json_proto returns [16:13:50]Send response to host [16:13:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123262,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:13:50]free response buf [16:13:50]execute_script done [16:13:50]execute_script returns [16:13:50]free content buf [16:13:50]Sock 7.Close socket [16:13:50]Sock 7.Thread stoped [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:01]accept exits with 9 [16:17:01]New connection [16:17:01]New thread 3066580324 created [16:17:01]Thread 3066723684 joined [16:17:01]Waiting for new connection... [16:17:01] Sock 9.Parse request [16:17:01]Sock 9.Check first char [16:17:01]Sock 9.First char is OK [16:17:01]request: POST /json_proto HTTP/1.0 [16:17:01]Method: POST [16:17:01]URL: /json_proto [16:17:01]Method is POST - this is cgi request [16:17:01]url: /json_proto [16:17:01]query_string will be loaded in cgi processing [16:17:01]execute_cgi json_proto POST (null) [16:17:01]execute_cgi path=json_proto method=POST [16:17:01]POST find Content-Length [16:17:01]Host: 172.17.37.4:8080 [16:17:01]Content-Length: 686 [16:17:01]Content-Type: application/json [16:17:01] [16:17:01]POST finish read [16:17:01]Found Content-Length = 686 [16:17:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 26.710, "sum" : 2000.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:01]execute_script... [16:17:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 26.710, "sum" : 2000.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:01]POST & json_proto [16:17:01]process_json_proto [16:17:01]json parsed OK: [16:17:01]protocol is kg_v1.0 [16:17:01]action value=close_receipt [16:17:01]process_action close_receipt [16:17:01]cmd_close_receipt [16:17:01]MH_GetDate [16:17:01]Write to MH i2c: F0 00 00 3B 69 93 [16:17:01]Write i2c OK [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: F0 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: F0 09 00 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: F0 09 00 3B 69 00 88 F4 45 67 B8 5A 43 67 80 [16:17:01]GetLastDocTimeStamp 1732637637 [16:17:01]current date 1732637832 [16:17:01]FM_GetShiftState [16:17:01]SAM_PROTO_GetShiftState [16:17:01]wFMCommunicate request_size=4 [16:17:01]MH_SAM_APDU [16:17:01]CAPDU: 80 13 01 00 [16:17:01]Write to MH i2c: E2 08 00 3C 69 80 13 01 00 00 00 00 00 22 [16:17:01]Write i2c OK [16:17:01]MH_I2C_Read... [16:17:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:01]Read from MH i2c: E2 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: E2 0E 00 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: E2 0E 00 3C 69 00 09 00 01 98 11 45 67 00 00 00 00 90 00 83 [16:17:01]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:17:01]wFMCommunicate OK [16:17:01]SAM_PROTO_GetShiftState done [16:17:01]FM_GetShiftState done [16:17:01]opened in 1732579736 [16:17:01]opened+sec_in_day 1732666136 [16:17:01]quantity*price = 200057 [16:17:01]sum+1 = 200059 [16:17:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 117 26.11.2024 16:17 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123263 ФПД: 32727495649679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T161713&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123263&fm=32727495649679&tin=02508201610067®Number=0000000000092681&sum=200000 [16:17:02]StoreToDocumentArchive [16:17:02]shift 557 fd 123263 [16:17:02]save to /storage/0557/doc_00123263 [16:17:02]save last doc name /storage/0557/doc_00123263 to /storage/kkm_last_doc_name [16:17:02]save OK [16:17:02]Clear old archive folders... [16:17:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:17:02]tlvbuf is 020A9B30 [16:17:02]SAM_PROTO_ClearQueue [16:17:02]wFMCommunicate request_size=4 [16:17:02]MH_SAM_APDU [16:17:02]CAPDU: 80 09 00 00 [16:17:02]Write to MH i2c: E2 08 00 49 69 80 09 00 00 00 00 00 00 24 [16:17:02]Write i2c OK [16:17:02]MH_I2C_Read... [16:17:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:02]Read from MH i2c: E2 [16:17:02]MH_I2C_Read... [16:17:02]Read from MH i2c: E2 03 00 [16:17:02]MH_I2C_Read... [16:17:02]Read from MH i2c: E2 03 00 49 69 00 90 00 26 [16:17:02]RAPDU: 90 00 [16:17:02]wFMCommunicate OK [16:17:02]SAM_PROTO_ClearQueue done [16:17:02]KKMCreateOFDPacket [16:17:02]OFDProtocolAddRootSTLVToBuf [16:17:02]FM_MakeSignedData [16:17:02]FM_MakeSignedData [16:17:02]SAM_PROTO_SignData [16:17:02]wFMCommunicate request_size=4 [16:17:02]MH_SAM_APDU [16:17:02]CAPDU: 80 0D 01 02 [16:17:02]Write to MH i2c: E2 08 00 4A 69 80 0D 01 02 00 00 00 00 2C [16:17:02]Write i2c OK [16:17:02]MH_I2C_Read... [16:17:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:02]Read from MH i2c: E2 [16:17:02]MH_I2C_Read... [16:17:02]Read from MH i2c: E2 03 00 [16:17:02]MH_I2C_Read... [16:17:02]Read from MH i2c: E2 03 00 4A 69 00 90 00 27 [16:17:02]RAPDU: 90 00 [16:17:02]wFMCommunicate OK [16:17:02]wFMCommunicate request_size=255 [16:17:02]MH_SAM_APDU [16:17:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 89 F4 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7F E1 01 00 35 04 06 00 [16:17:02]Write to MH i2c: E2 02 01 4B 69 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 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 89 F4 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7F E1 01 00 35 04 06 00 00 00 2A [16:17:02]Write i2c OK [16:17:02]MH_I2C_Read... [16:17:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:03]Read from MH i2c: E2 [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: E2 03 00 [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: E2 03 00 4B 69 00 90 00 28 [16:17:03]RAPDU: 90 00 [16:17:03]wFMCommunicate OK [16:17:03]wFMCommunicate request_size=11 [16:17:03]MH_SAM_APDU [16:17:03]CAPDU: 80 0D 02 02 06 1D C3 F6 C0 A9 8F [16:17:03]Write to MH i2c: E2 0E 00 4C 69 80 0D 02 02 06 00 1D C3 F6 C0 A9 8F 00 00 09 [16:17:03]Write i2c OK [16:17:03]MH_I2C_Read... [16:17:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:03]Read from MH i2c: E2 [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: E2 03 00 [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: E2 03 00 4C 69 00 90 00 29 [16:17:03]RAPDU: 90 00 [16:17:03]wFMCommunicate OK [16:17:03]wFMCommunicate request_size=4 [16:17:03]MH_SAM_APDU [16:17:03]CAPDU: 80 0D 03 02 [16:17:03]Write to MH i2c: E2 08 00 4D 69 80 0D 03 02 00 00 00 00 31 [16:17:03]Write i2c OK [16:17:03]MH_I2C_Read... [16:17:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:03]Read from MH i2c: E2 [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: E2 0B 00 [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: E2 0B 00 4D 69 00 BA 38 14 34 47 3B 6C 5D 90 00 B7 [16:17:03]RAPDU: BA 38 14 34 47 3B 6C 5D 90 00 [16:17:03]wFMCommunicate OK [16:17:03]SAM_PROTO_SignData done [16:17:03]FM_MakeSignedData done [16:17:03]CreateOFDProtocolMessage [16:17:03]wFMCommunicate request_size=4 [16:17:03]MH_SAM_APDU [16:17:03]CAPDU: 80 11 00 00 [16:17:03]Write to MH i2c: E2 08 00 4E 69 80 11 00 00 00 00 00 00 31 [16:17:03]Write i2c OK [16:17:03]MH_I2C_Read... [16:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:03]Read from MH i2c: E2 [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: E2 17 00 [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: E2 17 00 4E 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 88 [16:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:17:03]wFMCommunicate OK [16:17:03]CreateOFDProtocolMessage done [16:17:03]OFDSenderStorePacket 123263 [16:17:03]StoreOFDPacket docnum=123263 [16:17:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 BA 41 08 01 E1 A5 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 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 89 F4 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7F E1 01 00 35 04 06 00 1D C3 F6 C0 A9 8F BA 38 14 34 47 3B 6C 5D [16:17:03]CheckFolder [16:17:03]dirname=/storage/ofd_packets [16:17:03]CheckFolder done [16:17:03]ProducePacketName [16:17:03]name=ofd_packets/00123263 [16:17:03]NVStorageSaveData ofd_packets/00123263 [16:17:03]File name is /storage/ofd_packets/00123263 [16:17:03]Write 302 bytes [16:17:03]NVStorageSaveData done [16:17:03]OFDSenderStorePacket done [16:17:03]KKMCreateOFDPacket done [16:17:03]NVStorageSaveData kkm_last_timestamp [16:17:03]File name is /storage/kkm_last_timestamp [16:17:03]Write 4 bytes [16:17:03]NVStorageSaveData done [16:17:03]ExternCall_PrintAddStr [16:17:03]wPrintStart [16:17:03]Write to MH i2c: 01 00 00 4F 69 B8 [16:17:03]Write i2c OK [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: 01 [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: 01 07 00 [16:17:03]MH_I2C_Read... [16:17:03]Read from MH i2c: 01 07 00 4F 69 00 00 00 00 00 FF 0F CD [16:17:03]RasterBufferAndPrint [16:17:03]line Счет N : (1)718094 [16:17:03]line ИНН: 02508201610067 [16:17:03]line Контрольно-Кассовый Чек [16:17:03]line ПРОДАЖА [16:17:03]line ТРК (МРК, ГНК) : 6 [16:17:03]line Товар: 2710194210 [16:17:03]line ДТ(л)-К-5 [16:17:03]line 26.710 * 74.90 [16:17:03]line = 2000.58 [16:17:03]line НДС 12% НСП 1% [16:17:03]line > о реализуемом товаре [16:17:03]line ОКРУГЛЕНИЕ: -0.58 [16:17:03]line ИТОГО: 2000.00 [16:17:03]line Внесено: 2000.00 [16:17:03]line СДАЧА: 0.00 [16:17:03]line НСП 1% : 17.70 [16:17:03]line НДС 12% : 212.45 [16:17:03]line Наличными: 2000.00 [16:17:03]line Безнал.: 0.00 [16:17:03]line Место: АЗС № 64 "Партнер Нефть" [16:17:03]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:17:03]line СНО: Общий режим [16:17:03]line Чек 117 26.11.2024 16:17 [16:17:03]line Смена: 557 ФФД: 1.0 [16:17:03]line ЗНМ: 0300000033 [16:17:03]line РНМ: 0000000000092681 [16:17:03]line Версия ККМ: 001 [16:17:03]line ФМ: 0000000000874881 [16:17:03]line ФД: 123263 [16:17:03]line ФПД: 32727495649679 [16:17:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T161713&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123263&fm=32727495649679&tin=02508201610067®Number=0000000000092681&sum=200000 [16:17:03]OFD Sender: Processing packet 123263 [packets to send 7, broken 6] [16:17:03]ProducePacketName [16:17:03]name=ofd_packets/00123263 [16:17:03]OFD Sender: To server: pG, [16:17:03]CommunicateWithHost lk.salyk.kg:30040 [16:17:03]ConnectInit lk.salyk.kg [16:17:03]written 0, free lines is 4095 [16:17:03]Connected sock=10 [16:17:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 BA 41 08 01 E1 A5 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 35 FF 03 08 00 03 56 68 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 7A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 89 F4 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7F E1 01 00 35 04 06 00 1D C3 F6 C0 A9 8F BA 38 14 34 47 3B 6C 5D [16:17:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 35 96 47 00 CD 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7F E1 01 00 F4 03 04 00 4B A0 45 67 B6 04 01 00 00 86 CF FD A2 A1 5F 01 76 [16:17:03]CommunicateWithHost err = 0 [16:17:03]CheckOFDResponse [16:17:03]1017 (14) - 77093643461234 [16:17:03]1041 (16) - 0000000000874881 [16:17:03]1040 (4) - 123263 [16:17:03]1012 (4) - 26.11.2024 10:17 [16:17:03]1206 (1) - 0 [16:17:03]OFD Sender: Remove packet 123263 [16:17:03]ProducePacketName [16:17:03]name=ofd_packets/00123263 [16:17:03]NVStorageDeleteData [16:17:04]Write to MH i2c: 01 00 00 7A 69 E3 [16:17:04]Write i2c OK [16:17:04]MH_I2C_Read... [16:17:04]Read from MH i2c: 01 [16:17:04]MH_I2C_Read... [16:17:04]Read from MH i2c: 01 07 00 [16:17:04]MH_I2C_Read... [16:17:04]Read from MH i2c: 01 07 00 7A 69 00 00 00 00 00 42 0C 38 [16:17:04]RasterBufferAndPrint [16:17:04]line [16:17:04]line [16:17:04]line [16:17:04]line [16:17:04]line [16:17:04]written 0, free lines is 3144 [16:17:04]MH_Cut [16:17:04]Write to MH i2c: D1 01 00 81 69 01 BC [16:17:04]Write i2c OK [16:17:04]MH_I2C_Read... [16:17:04]Read from MH i2c: D1 [16:17:04]MH_I2C_Read... [16:17:04]Read from MH i2c: D1 01 00 [16:17:04]MH_I2C_Read... [16:17:04]Read from MH i2c: D1 01 00 81 69 00 BB [16:17:04]Write to MH i2c: 01 00 00 82 69 EB [16:17:04]Write i2c OK [16:17:04]MH_I2C_Read... [16:17:04]OFD Sender: No OFD packet to send [16:17:05]*** Cut start [16:17:05]*** Partial cut [16:17:05]*** CUTSNS_PIN = 1 [16:17:05]*** CUTSNS_PIN = 0 [16:17:05]*** Brake cut motor [16:17:05]Read from MH i2c: 01 [16:17:05]MH_I2C_Read... [16:17:06]*** Stop cut motor [16:17:06]*** Cut end [16:17:06]Read from MH i2c: 01 07 00 [16:17:06]MH_I2C_Read... [16:17:06]Read from MH i2c: 01 07 00 82 69 00 00 00 00 00 FF 0F 00 [16:17:06]process_action close_receipt done [16:17:06]requested_data is exist [16:17:06]produce_requested_data [16:17:06]requested_item fm.sn is exist - process it [16:17:06]wFMCommunicate request_size=4 [16:17:06]MH_SAM_APDU [16:17:06]CAPDU: 80 11 00 00 [16:17:06]Write to MH i2c: E2 08 00 83 69 80 11 00 00 00 00 00 00 66 [16:17:06]Write i2c OK [16:17:06]MH_I2C_Read... [16:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:06]Read from MH i2c: E2 [16:17:06]MH_I2C_Read... [16:17:06]Read from MH i2c: E2 17 00 [16:17:06]MH_I2C_Read... [16:17:06]Read from MH i2c: E2 17 00 83 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BD [16:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:17:06]wFMCommunicate OK [16:17:06]requested_item fd.num is exist - process it [16:17:06]SAM_PROTO_GetFieldsCounters [16:17:06]wFMCommunicate request_size=4 [16:17:06]MH_SAM_APDU [16:17:06]CAPDU: 80 13 00 00 [16:17:06]Write to MH i2c: E2 08 00 84 69 80 13 00 00 00 00 00 00 69 [16:17:06]Write i2c OK [16:17:06]MH_I2C_Read... [16:17:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:06]Read from MH i2c: E2 [16:17:06]MH_I2C_Read... [16:17:06]Read from MH i2c: E2 62 00 [16:17:06]MH_I2C_Read... [16:17:06]Read from MH i2c: E2 62 00 84 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7F E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [16:17:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 7F E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:06]wFMCommunicate OK [16:17:06]SAM_PROTO_GetFieldsCounters done [16:17:06]requested_item shift.num is exist - process it [16:17:06]requested_item shift.opened is exist - process it [16:17:06]req_shift_opened [16:17:06]FM_GetShiftState [16:17:06]SAM_PROTO_GetShiftState [16:17:06]wFMCommunicate request_size=4 [16:17:06]MH_SAM_APDU [16:17:06]CAPDU: 80 13 01 00 [16:17:06]Write to MH i2c: E2 08 00 85 69 80 13 01 00 00 00 00 00 6B [16:17:06]Write i2c OK [16:17:06]MH_I2C_Read... [16:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:06]Read from MH i2c: E2 [16:17:06]MH_I2C_Read... [16:17:06]Read from MH i2c: E2 0E 00 [16:17:06]MH_I2C_Read... [16:17:06]Read from MH i2c: E2 0E 00 85 69 00 09 00 01 98 11 45 67 00 00 00 00 90 00 CC [16:17:06]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:17:06]wFMCommunicate OK [16:17:06]SAM_PROTO_GetShiftState done [16:17:06]FM_GetShiftState done [16:17:06]req_shift_opened done [16:17:06]requested_item shift.open_date is exist - process it [16:17:06]req_shift_open_date [16:17:06]req_shift_open_date done [16:17:06]produce_requested_data done [16:17:06]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123263,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:17:06]process_action_free close_receipt [16:17:06]json_value_free [16:17:06]json_value_free done [16:17:06]process_json_proto returns [16:17:06]Send response to host [16:17:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123263,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:17:06]free response buf [16:17:06]execute_script done [16:17:06]execute_script returns [16:17:06]free content buf [16:17:06]Sock 9.Close socket [16:17:06]Sock 9.Thread stoped [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:51]accept exits with 7 [16:19:51]New connection [16:19:51]New thread 3066723684 created [16:19:51]Thread 3066580324 joined [16:19:51]Waiting for new connection... [16:19:51] Sock 7.Parse request [16:19:51]Sock 7.Check first char [16:19:51]Sock 7.First char is OK [16:19:51]request: POST /json_proto HTTP/1.0 [16:19:51]Method: POST [16:19:51]URL: /json_proto [16:19:51]Method is POST - this is cgi request [16:19:51]url: /json_proto [16:19:51]query_string will be loaded in cgi processing [16:19:51]execute_cgi json_proto POST (null) [16:19:51]execute_cgi path=json_proto method=POST [16:19:51]POST find Content-Length [16:19:51]Host: 172.17.37.4:8080 [16:19:51]Content-Length: 677 [16:19:51]Content-Type: application/json [16:19:51] [16:19:51]POST finish read [16:19:51]Found Content-Length = 677 [16:19:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:51]execute_script... [16:19:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:51]POST & json_proto [16:19:51]process_json_proto [16:19:51]json parsed OK: [16:19:51]protocol is kg_v1.0 [16:19:51]action value=close_receipt [16:19:51]process_action close_receipt [16:19:51]cmd_close_receipt [16:19:51]MH_GetDate [16:19:51]Write to MH i2c: F0 00 00 86 69 DE [16:19:51]Write i2c OK [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: F0 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: F0 09 00 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: F0 09 00 86 69 00 33 F5 45 67 B8 5A 43 67 77 [16:19:51]GetLastDocTimeStamp 1732637833 [16:19:51]current date 1732638003 [16:19:51]FM_GetShiftState [16:19:51]SAM_PROTO_GetShiftState [16:19:51]wFMCommunicate request_size=4 [16:19:51]MH_SAM_APDU [16:19:51]CAPDU: 80 13 01 00 [16:19:51]Write to MH i2c: E2 08 00 87 69 80 13 01 00 00 00 00 00 6D [16:19:51]Write i2c OK [16:19:51]MH_I2C_Read... [16:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:51]Read from MH i2c: E2 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 0E 00 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 0E 00 87 69 00 09 00 01 98 11 45 67 00 00 00 00 90 00 CE [16:19:51]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:19:51]wFMCommunicate OK [16:19:51]SAM_PROTO_GetShiftState done [16:19:51]FM_GetShiftState done [16:19:51]opened in 1732579736 [16:19:51]opened+sec_in_day 1732666136 [16:19:51]quantity*price = 20017 [16:19:51]sum+1 = 20019 [16:19:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 118 26.11.2024 16:20 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123264 ФПД: 93958923217791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T162003&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123264&fm=93958923217791&tin=02508201610067®Number=0000000000092681&sum=20000 [16:19:52]StoreToDocumentArchive [16:19:52]shift 557 fd 123264 [16:19:52]save to /storage/0557/doc_00123264 [16:19:52]save last doc name /storage/0557/doc_00123264 to /storage/kkm_last_doc_name [16:19:52]save OK [16:19:52]Clear old archive folders... [16:19:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:19:53]tlvbuf is 021B0E40 [16:19:53]SAM_PROTO_ClearQueue [16:19:53]wFMCommunicate request_size=4 [16:19:53]MH_SAM_APDU [16:19:53]CAPDU: 80 09 00 00 [16:19:53]Write to MH i2c: E2 08 00 94 69 80 09 00 00 00 00 00 00 6F [16:19:53]Write i2c OK [16:19:53]MH_I2C_Read... [16:19:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:53]Read from MH i2c: E2 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 03 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 03 00 94 69 00 90 00 71 [16:19:53]RAPDU: 90 00 [16:19:53]wFMCommunicate OK [16:19:53]SAM_PROTO_ClearQueue done [16:19:53]KKMCreateOFDPacket [16:19:53]OFDProtocolAddRootSTLVToBuf [16:19:53]FM_MakeSignedData [16:19:53]FM_MakeSignedData [16:19:53]SAM_PROTO_SignData [16:19:53]wFMCommunicate request_size=4 [16:19:53]MH_SAM_APDU [16:19:53]CAPDU: 80 0D 01 02 [16:19:53]Write to MH i2c: E2 08 00 95 69 80 0D 01 02 00 00 00 00 77 [16:19:53]Write i2c OK [16:19:53]MH_I2C_Read... [16:19:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:53]Read from MH i2c: E2 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 03 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 03 00 95 69 00 90 00 72 [16:19:53]RAPDU: 90 00 [16:19:53]wFMCommunicate OK [16:19:53]wFMCommunicate request_size=255 [16:19:53]MH_SAM_APDU [16:19:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 33 F5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 80 E1 01 00 35 04 06 00 55 [16:19:53]Write to MH i2c: E2 02 01 96 69 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 33 F5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 80 E1 01 00 35 04 06 00 55 00 00 2B [16:19:53]Write i2c OK [16:19:53]MH_I2C_Read... [16:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:53]Read from MH i2c: E2 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 03 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 03 00 96 69 00 90 00 73 [16:19:53]RAPDU: 90 00 [16:19:53]wFMCommunicate OK [16:19:53]wFMCommunicate request_size=10 [16:19:53]MH_SAM_APDU [16:19:53]CAPDU: 80 0D 02 02 05 74 84 3D EB 7F [16:19:53]Write to MH i2c: E2 0D 00 97 69 80 0D 02 02 05 00 74 84 3D EB 7F 00 00 23 [16:19:53]Write i2c OK [16:19:53]MH_I2C_Read... [16:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:53]Read from MH i2c: E2 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 03 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 03 00 97 69 00 90 00 74 [16:19:53]RAPDU: 90 00 [16:19:53]wFMCommunicate OK [16:19:53]wFMCommunicate request_size=4 [16:19:53]MH_SAM_APDU [16:19:53]CAPDU: 80 0D 03 02 [16:19:53]Write to MH i2c: E2 08 00 98 69 80 0D 03 02 00 00 00 00 7C [16:19:53]Write i2c OK [16:19:53]MH_I2C_Read... [16:19:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:53]Read from MH i2c: E2 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 0B 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 0B 00 98 69 00 AC 42 60 D6 08 C2 51 44 90 00 00 [16:19:53]RAPDU: AC 42 60 D6 08 C2 51 44 90 00 [16:19:53]wFMCommunicate OK [16:19:53]SAM_PROTO_SignData done [16:19:53]FM_MakeSignedData done [16:19:53]CreateOFDProtocolMessage [16:19:53]wFMCommunicate request_size=4 [16:19:53]MH_SAM_APDU [16:19:53]CAPDU: 80 11 00 00 [16:19:53]Write to MH i2c: E2 08 00 99 69 80 11 00 00 00 00 00 00 7C [16:19:53]Write i2c OK [16:19:53]MH_I2C_Read... [16:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:53]Read from MH i2c: E2 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 17 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 17 00 99 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D3 [16:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:19:53]wFMCommunicate OK [16:19:53]CreateOFDProtocolMessage done [16:19:53]OFDSenderStorePacket 123264 [16:19:53]StoreOFDPacket docnum=123264 [16:19:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 8E B4 07 01 C4 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 33 F5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 80 E1 01 00 35 04 06 00 55 74 84 3D EB 7F AC 42 60 D6 08 C2 51 44 [16:19:53]CheckFolder [16:19:53]dirname=/storage/ofd_packets [16:19:53]CheckFolder done [16:19:53]ProducePacketName [16:19:53]name=ofd_packets/00123264 [16:19:53]NVStorageSaveData ofd_packets/00123264 [16:19:53]File name is /storage/ofd_packets/00123264 [16:19:53]Write 301 bytes [16:19:53]NVStorageSaveData done [16:19:53]OFDSenderStorePacket done [16:19:53]KKMCreateOFDPacket done [16:19:53]NVStorageSaveData kkm_last_timestamp [16:19:53]File name is /storage/kkm_last_timestamp [16:19:53]Write 4 bytes [16:19:53]NVStorageSaveData done [16:19:53]ExternCall_PrintAddStr [16:19:53]wPrintStart [16:19:53]Write to MH i2c: 01 00 00 9A 69 03 [16:19:53]Write i2c OK [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: 01 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: 01 07 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: 01 07 00 9A 69 00 00 00 00 00 FF 0F 18 [16:19:53]RasterBufferAndPrint [16:19:53]line Счет N : (1)718095 [16:19:53]line ИНН: 02508201610067 [16:19:53]line Контрольно-Кассовый Чек [16:19:53]line ПРОДАЖА [16:19:53]line ТРК (МРК, ГНК) : 12 [16:19:53]line Товар: 2710124130 [16:19:53]line Аи-92-К-4 [16:19:53]line 2.970 * 67.40 [16:19:53]line = 200.18 [16:19:53]line НДС 12% НСП 1% [16:19:53]line > о реализуемом товаре [16:19:53]line ОКРУГЛЕНИЕ: -0.18 [16:19:53]line ИТОГО: 200.00 [16:19:53]line Внесено: 200.00 [16:19:53]line СДАЧА: 0.00 [16:19:53]line НСП 1% : 1.77 [16:19:53]line НДС 12% : 21.26 [16:19:53]line Наличными: 200.00 [16:19:53]line Безнал.: 0.00 [16:19:53]line Место: АЗС № 64 "Партнер Нефть" [16:19:53]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:19:53]line СНО: Общий режим [16:19:53]line Чек 118 26.11.2024 16:20 [16:19:53]line Смена: 557 ФФД: 1.0 [16:19:53]line ЗНМ: 0300000033 [16:19:53]line РНМ: 0000000000092681 [16:19:53]line Версия ККМ: 001 [16:19:53]line ФМ: 0000000000874881 [16:19:53]line ФД: 123264 [16:19:53]line ФПД: 93958923217791 [16:19:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T162003&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123264&fm=93958923217791&tin=02508201610067®Number=0000000000092681&sum=20000 [16:19:53]OFD Sender: Processing packet 123264 [packets to send 7, broken 6] [16:19:53]ProducePacketName [16:19:53]name=ofd_packets/00123264 [16:19:53]OFD Sender: To server: pG, [16:19:53]CommunicateWithHost lk.salyk.kg:30040 [16:19:53]ConnectInit lk.salyk.kg [16:19:53]written 0, free lines is 4095 [16:19:53]Connected sock=10 [16:19:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 8E B4 07 01 C4 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 33 F5 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 80 E1 01 00 35 04 06 00 55 74 84 3D EB 7F AC 42 60 D6 08 C2 51 44 [16:19:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 28 C3 47 00 43 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 80 E1 01 00 F4 03 04 00 F5 A0 45 67 B6 04 01 00 00 36 0F EA D1 2B 00 BD 2C [16:19:54]CommunicateWithHost err = 0 [16:19:54]CheckOFDResponse [16:19:54]1017 (14) - 77093643461234 [16:19:54]1041 (16) - 0000000000874881 [16:19:54]1040 (4) - 123264 [16:19:54]1012 (4) - 26.11.2024 10:20 [16:19:54]1206 (1) - 0 [16:19:54]OFD Sender: Remove packet 123264 [16:19:54]ProducePacketName [16:19:54]name=ofd_packets/00123264 [16:19:54]NVStorageDeleteData [16:19:54]Write to MH i2c: 01 00 00 C5 69 2E [16:19:54]Write i2c OK [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: 01 [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: 01 07 00 [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: 01 07 00 C5 69 00 00 00 00 00 49 0C 8A [16:19:54]RasterBufferAndPrint [16:19:54]line [16:19:54]line [16:19:54]line [16:19:54]line [16:19:54]line [16:19:54]written 0, free lines is 3148 [16:19:54]MH_Cut [16:19:54]Write to MH i2c: D1 01 00 CC 69 01 07 [16:19:54]Write i2c OK [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: D1 [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: D1 01 00 [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: D1 01 00 CC 69 00 06 [16:19:54]Write to MH i2c: 01 00 00 CD 69 36 [16:19:54]Write i2c OK [16:19:54]MH_I2C_Read... [16:19:54]OFD Sender: No OFD packet to send [16:19:55]*** Cut start [16:19:55]*** Partial cut [16:19:55]*** CUTSNS_PIN = 1 [16:19:55]*** CUTSNS_PIN = 0 [16:19:55]*** Brake cut motor [16:19:56]Read from MH i2c: 01 [16:19:56]MH_I2C_Read... [16:19:56]*** Stop cut motor [16:19:56]*** Cut end [16:19:56]Read from MH i2c: 01 07 00 [16:19:56]MH_I2C_Read... [16:19:56]Read from MH i2c: 01 07 00 CD 69 00 00 00 00 00 FF 0F 4B [16:19:56]process_action close_receipt done [16:19:56]requested_data is exist [16:19:56]produce_requested_data [16:19:56]requested_item fm.sn is exist - process it [16:19:56]wFMCommunicate request_size=4 [16:19:56]MH_SAM_APDU [16:19:56]CAPDU: 80 11 00 00 [16:19:56]Write to MH i2c: E2 08 00 CE 69 80 11 00 00 00 00 00 00 B1 [16:19:56]Write i2c OK [16:19:56]MH_I2C_Read... [16:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:56]Read from MH i2c: E2 [16:19:56]MH_I2C_Read... [16:19:56]Read from MH i2c: E2 17 00 [16:19:56]MH_I2C_Read... [16:19:56]Read from MH i2c: E2 17 00 CE 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 08 [16:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:19:56]wFMCommunicate OK [16:19:56]requested_item fd.num is exist - process it [16:19:56]SAM_PROTO_GetFieldsCounters [16:19:56]wFMCommunicate request_size=4 [16:19:56]MH_SAM_APDU [16:19:56]CAPDU: 80 13 00 00 [16:19:56]Write to MH i2c: E2 08 00 CF 69 80 13 00 00 00 00 00 00 B4 [16:19:56]Write i2c OK [16:19:56]MH_I2C_Read... [16:19:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:56]Read from MH i2c: E2 [16:19:56]MH_I2C_Read... [16:19:56]Read from MH i2c: E2 62 00 [16:19:56]MH_I2C_Read... [16:19:56]Read from MH i2c: E2 62 00 CF 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 80 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [16:19:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 80 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:19:56]wFMCommunicate OK [16:19:56]SAM_PROTO_GetFieldsCounters done [16:19:56]requested_item shift.num is exist - process it [16:19:56]requested_item shift.opened is exist - process it [16:19:56]req_shift_opened [16:19:56]FM_GetShiftState [16:19:56]SAM_PROTO_GetShiftState [16:19:56]wFMCommunicate request_size=4 [16:19:56]MH_SAM_APDU [16:19:56]CAPDU: 80 13 01 00 [16:19:56]Write to MH i2c: E2 08 00 D0 69 80 13 01 00 00 00 00 00 B6 [16:19:56]Write i2c OK [16:19:56]MH_I2C_Read... [16:19:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:56]Read from MH i2c: E2 [16:19:56]MH_I2C_Read... [16:19:56]Read from MH i2c: E2 0E 00 [16:19:56]MH_I2C_Read... [16:19:56]Read from MH i2c: E2 0E 00 D0 69 00 09 00 01 98 11 45 67 00 00 00 00 90 00 17 [16:19:56]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:19:56]wFMCommunicate OK [16:19:56]SAM_PROTO_GetShiftState done [16:19:56]FM_GetShiftState done [16:19:56]req_shift_opened done [16:19:56]requested_item shift.open_date is exist - process it [16:19:56]req_shift_open_date [16:19:56]req_shift_open_date done [16:19:56]produce_requested_data done [16:19:56]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123264,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:19:56]process_action_free close_receipt [16:19:56]json_value_free [16:19:56]json_value_free done [16:19:56]process_json_proto returns [16:19:56]Send response to host [16:19:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123264,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:19:56]free response buf [16:19:56]execute_script done [16:19:56]execute_script returns [16:19:56]free content buf [16:19:56]Sock 7.Close socket [16:19:56]Sock 7.Thread stoped [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:54]OFD Sender: No OFD packet to send [16:25:59]OFD Sender: No OFD packet to send [16:26:04]OFD Sender: No OFD packet to send [16:26:09]OFD Sender: No OFD packet to send [16:26:14]OFD Sender: No OFD packet to send [16:26:19]OFD Sender: No OFD packet to send [16:26:24]OFD Sender: No OFD packet to send [16:26:29]OFD Sender: No OFD packet to send [16:26:34]OFD Sender: No OFD packet to send [16:26:39]OFD Sender: No OFD packet to send [16:26:44]OFD Sender: No OFD packet to send [16:26:49]OFD Sender: No OFD packet to send [16:26:54]OFD Sender: No OFD packet to send [16:26:59]OFD Sender: No OFD packet to send [16:27:04]OFD Sender: No OFD packet to send [16:27:09]OFD Sender: No OFD packet to send [16:27:14]OFD Sender: No OFD packet to send [16:27:19]OFD Sender: No OFD packet to send [16:27:24]OFD Sender: No OFD packet to send [16:27:29]OFD Sender: No OFD packet to send [16:27:34]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [16:28:55]OFD Sender: No OFD packet to send [16:29:00]OFD Sender: No OFD packet to send [16:29:05]OFD Sender: No OFD packet to send [16:29:10]OFD Sender: No OFD packet to send [16:29:15]OFD Sender: No OFD packet to send [16:29:20]OFD Sender: No OFD packet to send [16:29:25]OFD Sender: No OFD packet to send [16:29:30]OFD Sender: No OFD packet to send [16:29:35]OFD Sender: No OFD packet to send [16:29:40]OFD Sender: No OFD packet to send [16:29:45]OFD Sender: No OFD packet to send [16:29:50]OFD Sender: No OFD packet to send [16:29:55]OFD Sender: No OFD packet to send [16:30:00]OFD Sender: No OFD packet to send [16:30:05]OFD Sender: No OFD packet to send [16:30:10]OFD Sender: No OFD packet to send [16:30:15]OFD Sender: No OFD packet to send [16:30:20]OFD Sender: No OFD packet to send [16:30:25]OFD Sender: No OFD packet to send [16:30:30]OFD Sender: No OFD packet to send [16:30:35]OFD Sender: No OFD packet to send [16:30:40]OFD Sender: No OFD packet to send [16:30:45]OFD Sender: No OFD packet to send [16:30:50]OFD Sender: No OFD packet to send [16:30:55]OFD Sender: No OFD packet to send [16:31:00]OFD Sender: No OFD packet to send [16:31:05]OFD Sender: No OFD packet to send [16:31:10]OFD Sender: No OFD packet to send [16:31:15]OFD Sender: No OFD packet to send [16:31:20]OFD Sender: No OFD packet to send [16:31:25]OFD Sender: No OFD packet to send [16:31:30]OFD Sender: No OFD packet to send [16:31:35]OFD Sender: No OFD packet to send [16:31:40]OFD Sender: No OFD packet to send [16:31:45]OFD Sender: No OFD packet to send [16:31:50]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:00]OFD Sender: No OFD packet to send [16:32:05]OFD Sender: No OFD packet to send [16:32:10]OFD Sender: No OFD packet to send [16:32:12]accept exits with 9 [16:32:12]New connection [16:32:12]New thread 3066580324 created [16:32:12]Thread 3066723684 joined [16:32:12]Waiting for new connection... [16:32:12] Sock 9.Parse request [16:32:12]Sock 9.Check first char [16:32:12]Sock 9.First char is OK [16:32:12]request: POST /json_proto HTTP/1.0 [16:32:12]Method: POST [16:32:12]URL: /json_proto [16:32:12]Method is POST - this is cgi request [16:32:12]url: /json_proto [16:32:12]query_string will be loaded in cgi processing [16:32:12]execute_cgi json_proto POST (null) [16:32:12]execute_cgi path=json_proto method=POST [16:32:12]POST find Content-Length [16:32:12]Host: 172.17.37.4:8080 [16:32:12]Content-Length: 796 [16:32:12]Content-Type: application/json [16:32:12] [16:32:12]POST finish read [16:32:12]Found Content-Length = 796 [16:32:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65627", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:12]execute_script... [16:32:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65627", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:12]POST & json_proto [16:32:12]process_json_proto [16:32:12]json parsed OK: [16:32:12]protocol is kg_v1.0 [16:32:12]action value=close_receipt [16:32:12]process_action close_receipt [16:32:12]cmd_close_receipt [16:32:12]MH_GetDate [16:32:12]Write to MH i2c: F0 00 00 D1 69 29 [16:32:12]Write i2c OK [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: F0 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: F0 09 00 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: F0 09 00 D1 69 00 17 F8 45 67 B8 5A 43 67 A9 [16:32:12]GetLastDocTimeStamp 1732638003 [16:32:12]current date 1732638743 [16:32:12]FM_GetShiftState [16:32:12]SAM_PROTO_GetShiftState [16:32:12]wFMCommunicate request_size=4 [16:32:12]MH_SAM_APDU [16:32:12]CAPDU: 80 13 01 00 [16:32:12]Write to MH i2c: E2 08 00 D2 69 80 13 01 00 00 00 00 00 B8 [16:32:12]Write i2c OK [16:32:12]MH_I2C_Read... [16:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:12]Read from MH i2c: E2 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 0E 00 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 0E 00 D2 69 00 09 00 01 98 11 45 67 00 00 00 00 90 00 19 [16:32:12]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:32:12]wFMCommunicate OK [16:32:12]SAM_PROTO_GetShiftState done [16:32:12]FM_GetShiftState done [16:32:12]opened in 1732579736 [16:32:12]opened+sec_in_day 1732666136 [16:32:12]quantity*price = 0 [16:32:12]sum+1 = 1 [16:32:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 119 26.11.2024 16:32 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 65627 ФМ: 0000000000874881 ФД: 123265 ФПД: 234492632221136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T163223&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123265&fm=234492632221136&tin=02508201610067®Number=0000000000092681&sum=0 [16:32:13]StoreToDocumentArchive [16:32:13]shift 557 fd 123265 [16:32:13]save to /storage/0557/doc_00123265 [16:32:13]save last doc name /storage/0557/doc_00123265 to /storage/kkm_last_doc_name [16:32:13]save OK [16:32:13]Clear old archive folders... [16:32:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:32:13]tlvbuf is 022055B0 [16:32:13]SAM_PROTO_ClearQueue [16:32:13]wFMCommunicate request_size=4 [16:32:13]MH_SAM_APDU [16:32:13]CAPDU: 80 09 00 00 [16:32:13]Write to MH i2c: E2 08 00 DF 69 80 09 00 00 00 00 00 00 BA [16:32:13]Write i2c OK [16:32:13]MH_I2C_Read... [16:32:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:13]Read from MH i2c: E2 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 03 00 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 03 00 DF 69 00 90 00 BC [16:32:13]RAPDU: 90 00 [16:32:13]wFMCommunicate OK [16:32:13]SAM_PROTO_ClearQueue done [16:32:13]KKMCreateOFDPacket [16:32:13]OFDProtocolAddRootSTLVToBuf [16:32:13]FM_MakeSignedData [16:32:13]FM_MakeSignedData [16:32:13]SAM_PROTO_SignData [16:32:13]wFMCommunicate request_size=4 [16:32:13]MH_SAM_APDU [16:32:13]CAPDU: 80 0D 01 02 [16:32:13]Write to MH i2c: E2 08 00 E0 69 80 0D 01 02 00 00 00 00 C2 [16:32:13]Write i2c OK [16:32:13]MH_I2C_Read... [16:32:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:13]Read from MH i2c: E2 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 03 00 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 03 00 E0 69 00 90 00 BD [16:32:13]RAPDU: 90 00 [16:32:13]wFMCommunicate OK [16:32:13]wFMCommunicate request_size=255 [16:32:13]MH_SAM_APDU [16:32:13]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 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 17 F8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 81 E1 01 00 35 04 06 00 [16:32:13]Write to MH i2c: E2 02 01 E1 69 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 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 17 F8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 81 E1 01 00 35 04 06 00 00 00 3E [16:32:13]Write i2c OK [16:32:13]MH_I2C_Read... [16:32:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:13]Read from MH i2c: E2 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 03 00 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 03 00 E1 69 00 90 00 BE [16:32:13]RAPDU: 90 00 [16:32:13]wFMCommunicate OK [16:32:13]wFMCommunicate request_size=11 [16:32:13]MH_SAM_APDU [16:32:13]CAPDU: 80 0D 02 02 06 D5 45 12 0B C5 D0 [16:32:13]Write to MH i2c: E2 0E 00 E2 69 80 0D 02 02 06 00 D5 45 12 0B C5 D0 00 00 9D [16:32:13]Write i2c OK [16:32:13]MH_I2C_Read... [16:32:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:13]Read from MH i2c: E2 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 03 00 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 03 00 E2 69 00 90 00 BF [16:32:13]RAPDU: 90 00 [16:32:13]wFMCommunicate OK [16:32:13]wFMCommunicate request_size=4 [16:32:13]MH_SAM_APDU [16:32:13]CAPDU: 80 0D 03 02 [16:32:13]Write to MH i2c: E2 08 00 E3 69 80 0D 03 02 00 00 00 00 C7 [16:32:13]Write i2c OK [16:32:13]MH_I2C_Read... [16:32:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:13]Read from MH i2c: E2 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 0B 00 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 0B 00 E3 69 00 98 EB CA 3F 28 57 1B 85 90 00 73 [16:32:13]RAPDU: 98 EB CA 3F 28 57 1B 85 90 00 [16:32:13]wFMCommunicate OK [16:32:13]SAM_PROTO_SignData done [16:32:13]FM_MakeSignedData done [16:32:13]CreateOFDProtocolMessage [16:32:13]wFMCommunicate request_size=4 [16:32:13]MH_SAM_APDU [16:32:13]CAPDU: 80 11 00 00 [16:32:13]Write to MH i2c: E2 08 00 E4 69 80 11 00 00 00 00 00 00 C7 [16:32:13]Write i2c OK [16:32:13]MH_I2C_Read... [16:32:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:13]Read from MH i2c: E2 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 17 00 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: E2 17 00 E4 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1E [16:32:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:32:13]wFMCommunicate OK [16:32:13]CreateOFDProtocolMessage done [16:32:13]OFDSenderStorePacket 123265 [16:32:13]StoreOFDPacket docnum=123265 [16:32:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 92 B8 08 01 8E E9 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 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 17 F8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 81 E1 01 00 35 04 06 00 D5 45 12 0B C5 D0 98 EB CA 3F 28 57 1B 85 [16:32:13]CheckFolder [16:32:13]dirname=/storage/ofd_packets [16:32:13]CheckFolder done [16:32:13]ProducePacketName [16:32:13]name=ofd_packets/00123265 [16:32:13]NVStorageSaveData ofd_packets/00123265 [16:32:13]File name is /storage/ofd_packets/00123265 [16:32:13]Write 302 bytes [16:32:13]NVStorageSaveData done [16:32:13]OFDSenderStorePacket done [16:32:13]KKMCreateOFDPacket done [16:32:13]NVStorageSaveData kkm_last_timestamp [16:32:13]File name is /storage/kkm_last_timestamp [16:32:13]Write 4 bytes [16:32:13]NVStorageSaveData done [16:32:13]ExternCall_PrintAddStr [16:32:13]wPrintStart [16:32:13]Write to MH i2c: 01 00 00 E5 69 4E [16:32:13]Write i2c OK [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: 01 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: 01 07 00 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: 01 07 00 E5 69 00 00 00 00 00 FF 0F 63 [16:32:13]RasterBufferAndPrint [16:32:13]line Счет N : (1)718096 [16:32:13]line ИНН: 02508201610067 [16:32:13]line Контрольно-Кассовый Чек [16:32:13]line ПРОДАЖА [16:32:13]line ТРК (МРК, ГНК) : 6 [16:32:13]line Товар: 2710194210 [16:32:13]line ДТ(л)-К-5 [16:32:13]line 20.000 * 0.00 [16:32:13]line = 0.00 [16:32:13]line НДС 12% НСП 1% [16:32:13]line > о реализуемом товаре [16:32:13]line ИТОГО: 0.00 [16:32:13]line НСП 1% : 0.00 [16:32:13]line НДС 12% : 0.00 [16:32:13]line Наличными: 0.00 [16:32:13]line Безнал.: 0.00 [16:32:13]line Место: АЗС № 64 "Партнер Нефть" [16:32:13]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:32:13]line СНО: Общий режим [16:32:13]line Чек 119 26.11.2024 16:32 [16:32:13]line Смена: 557 ФФД: 1.0 [16:32:13]line ЗНМ: 0300000033 [16:32:13]line РНМ: 0000000000092681 [16:32:13]line Версия ККМ: 001 [16:32:13]line Талоны: Топливная Карта [16:32:13]line 65627 [16:32:13]line ФМ: 0000000000874881 [16:32:13]line ФД: 123265 [16:32:13]line ФПД: 234492632221136 [16:32:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T163223&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123265&fm=234492632221136&tin=02508201610067®Number=0000000000092681&sum=0 [16:32:14]written 0, free lines is 4095 [16:32:14]OFD Sender: Processing packet 123265 [packets to send 7, broken 6] [16:32:14]ProducePacketName [16:32:14]name=ofd_packets/00123265 [16:32:14]OFD Sender: To server: pG, [16:32:14]CommunicateWithHost lk.salyk.kg:30040 [16:32:14]ConnectInit lk.salyk.kg [16:32:14]Connected sock=10 [16:32:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 92 B8 08 01 8E E9 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 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 17 F8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 81 E1 01 00 35 04 06 00 D5 45 12 0B C5 D0 98 EB CA 3F 28 57 1B 85 [16:32:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 8E 3A 47 00 16 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 38 37 34 38 38 31 10 04 04 00 81 E1 01 00 F4 03 04 00 D9 A3 45 67 B6 04 01 00 00 66 AF A9 C1 B8 FC 80 AA [16:32:14]CommunicateWithHost err = 0 [16:32:14]CheckOFDResponse [16:32:14]1017 (14) - 77093643461234 [16:32:14]1041 (16) - 0000000000874881 [16:32:14]1040 (4) - 123265 [16:32:14]1012 (4) - 26.11.2024 10:32 [16:32:14]1206 (1) - 0 [16:32:14]OFD Sender: Remove packet 123265 [16:32:14]ProducePacketName [16:32:14]name=ofd_packets/00123265 [16:32:14]NVStorageDeleteData [16:32:14]Write to MH i2c: 01 00 00 0F 6A 79 [16:32:14]Write i2c OK [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: 01 [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: 01 07 00 [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: 01 07 00 0F 6A 00 00 00 00 00 62 0C EE [16:32:14]RasterBufferAndPrint [16:32:14]line [16:32:14]line [16:32:14]line [16:32:14]line [16:32:14]line [16:32:14]written 0, free lines is 3174 [16:32:14]MH_Cut [16:32:14]Write to MH i2c: D1 01 00 16 6A 01 52 [16:32:14]Write i2c OK [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: D1 [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: D1 01 00 [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: D1 01 00 16 6A 00 51 [16:32:14]Write to MH i2c: 01 00 00 17 6A 81 [16:32:14]Write i2c OK [16:32:14]MH_I2C_Read... [16:32:15]OFD Sender: No OFD packet to send [16:32:16]*** Cut start [16:32:16]*** Partial cut [16:32:16]*** CUTSNS_PIN = 1 [16:32:16]*** CUTSNS_PIN = 0 [16:32:16]*** Brake cut motor [16:32:16]Read from MH i2c: 01 [16:32:16]MH_I2C_Read... [16:32:16]*** Stop cut motor [16:32:16]*** Cut end [16:32:16]Read from MH i2c: 01 07 00 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: 01 07 00 17 6A 00 00 00 00 00 FF 0F 96 [16:32:16]process_action close_receipt done [16:32:16]requested_data is exist [16:32:16]produce_requested_data [16:32:16]requested_item fm.sn is exist - process it [16:32:16]wFMCommunicate request_size=4 [16:32:16]MH_SAM_APDU [16:32:16]CAPDU: 80 11 00 00 [16:32:16]Write to MH i2c: E2 08 00 18 6A 80 11 00 00 00 00 00 00 FC [16:32:16]Write i2c OK [16:32:16]MH_I2C_Read... [16:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:16]Read from MH i2c: E2 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: E2 17 00 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: E2 17 00 18 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 53 [16:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:32:16]wFMCommunicate OK [16:32:16]requested_item fd.num is exist - process it [16:32:16]SAM_PROTO_GetFieldsCounters [16:32:16]wFMCommunicate request_size=4 [16:32:16]MH_SAM_APDU [16:32:16]CAPDU: 80 13 00 00 [16:32:16]Write to MH i2c: E2 08 00 19 6A 80 13 00 00 00 00 00 00 FF [16:32:16]Write i2c OK [16:32:16]MH_I2C_Read... [16:32:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:16]Read from MH i2c: E2 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: E2 62 00 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: E2 62 00 19 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 81 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [16:32:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 81 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:16]wFMCommunicate OK [16:32:16]SAM_PROTO_GetFieldsCounters done [16:32:16]requested_item shift.num is exist - process it [16:32:16]requested_item shift.opened is exist - process it [16:32:16]req_shift_opened [16:32:16]FM_GetShiftState [16:32:16]SAM_PROTO_GetShiftState [16:32:16]wFMCommunicate request_size=4 [16:32:16]MH_SAM_APDU [16:32:16]CAPDU: 80 13 01 00 [16:32:16]Write to MH i2c: E2 08 00 1A 6A 80 13 01 00 00 00 00 00 01 [16:32:16]Write i2c OK [16:32:16]MH_I2C_Read... [16:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:16]Read from MH i2c: E2 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: E2 0E 00 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: E2 0E 00 1A 6A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 62 [16:32:16]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:32:16]wFMCommunicate OK [16:32:16]SAM_PROTO_GetShiftState done [16:32:16]FM_GetShiftState done [16:32:16]req_shift_opened done [16:32:16]requested_item shift.open_date is exist - process it [16:32:16]req_shift_open_date [16:32:16]req_shift_open_date done [16:32:16]produce_requested_data done [16:32:16]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123265,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:32:16]process_action_free close_receipt [16:32:16]json_value_free [16:32:16]json_value_free done [16:32:16]process_json_proto returns [16:32:16]Send response to host [16:32:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123265,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:32:16]free response buf [16:32:16]execute_script done [16:32:16]execute_script returns [16:32:16]free content buf [16:32:16]Sock 9.Close socket [16:32:16]Sock 9.Thread stoped [16:32:20]OFD Sender: No OFD packet to send [16:32:25]OFD Sender: No OFD packet to send [16:32:30]OFD Sender: No OFD packet to send [16:32:35]OFD Sender: No OFD packet to send [16:32:40]OFD Sender: No OFD packet to send [16:32:45]OFD Sender: No OFD packet to send [16:32:50]OFD Sender: No OFD packet to send [16:32:55]OFD Sender: No OFD packet to send [16:33:00]OFD Sender: No OFD packet to send [16:33:05]OFD Sender: No OFD packet to send [16:33:10]OFD Sender: No OFD packet to send [16:33:15]OFD Sender: No OFD packet to send [16:33:20]OFD Sender: No OFD packet to send [16:33:25]OFD Sender: No OFD packet to send [16:33:30]OFD Sender: No OFD packet to send [16:33:35]OFD Sender: No OFD packet to send [16:33:40]OFD Sender: No OFD packet to send [16:33:45]OFD Sender: No OFD packet to send [16:33:50]OFD Sender: No OFD packet to send [16:33:55]OFD Sender: No OFD packet to send [16:34:00]OFD Sender: No OFD packet to send [16:34:05]OFD Sender: No OFD packet to send [16:34:09]accept exits with 7 [16:34:09]New connection [16:34:09]New thread 3066723684 created [16:34:09]Thread 3066580324 joined [16:34:09]Waiting for new connection... [16:34:09] Sock 7.Parse request [16:34:09]Sock 7.Check first char [16:34:09]Sock 7.First char is OK [16:34:09]request: POST /json_proto HTTP/1.0 [16:34:09]Method: POST [16:34:09]URL: /json_proto [16:34:09]Method is POST - this is cgi request [16:34:09]url: /json_proto [16:34:09]query_string will be loaded in cgi processing [16:34:09]execute_cgi json_proto POST (null) [16:34:09]execute_cgi path=json_proto method=POST [16:34:09]POST find Content-Length [16:34:09]Host: 172.17.37.4:8080 [16:34:09]Content-Length: 791 [16:34:09]Content-Type: application/json [16:34:09] [16:34:09]POST finish read [16:34:09]Found Content-Length = 791 [16:34:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 4.450, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02992", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:09]execute_script... [16:34:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 4.450, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02992", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:09]POST & json_proto [16:34:09]process_json_proto [16:34:09]json parsed OK: [16:34:09]protocol is kg_v1.0 [16:34:09]action value=close_receipt [16:34:09]process_action close_receipt [16:34:09]cmd_close_receipt [16:34:09]MH_GetDate [16:34:09]Write to MH i2c: F0 00 00 1B 6A 74 [16:34:09]Write i2c OK [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: F0 [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: F0 09 00 [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: F0 09 00 1B 6A 00 8C F8 45 67 B8 5A 43 67 69 [16:34:09]GetLastDocTimeStamp 1732638743 [16:34:09]current date 1732638860 [16:34:09]FM_GetShiftState [16:34:09]SAM_PROTO_GetShiftState [16:34:09]wFMCommunicate request_size=4 [16:34:09]MH_SAM_APDU [16:34:09]CAPDU: 80 13 01 00 [16:34:09]Write to MH i2c: E2 08 00 1C 6A 80 13 01 00 00 00 00 00 03 [16:34:09]Write i2c OK [16:34:09]MH_I2C_Read... [16:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:09]Read from MH i2c: E2 [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: E2 0E 00 [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: E2 0E 00 1C 6A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 64 [16:34:09]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:34:09]wFMCommunicate OK [16:34:09]SAM_PROTO_GetShiftState done [16:34:09]FM_GetShiftState done [16:34:09]opened in 1732579736 [16:34:09]opened+sec_in_day 1732666136 [16:34:09]quantity*price = 0 [16:34:09]sum+1 = 1 [16:34:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 120 26.11.2024 16:34 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 02992 ФМ: 0000000000874881 ФД: 123266 ФПД: 203605299808974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T163420&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123266&fm=203605299808974&tin=02508201610067®Number=0000000000092681&sum=0 [16:34:10]StoreToDocumentArchive [16:34:10]shift 557 fd 123266 [16:34:10]save to /storage/0557/doc_00123266 [16:34:10]save last doc name /storage/0557/doc_00123266 to /storage/kkm_last_doc_name [16:34:10]save OK [16:34:10]Clear old archive folders... [16:34:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:10]tlvbuf is 01F6C710 [16:34:10]SAM_PROTO_ClearQueue [16:34:10]wFMCommunicate request_size=4 [16:34:10]MH_SAM_APDU [16:34:10]CAPDU: 80 09 00 00 [16:34:10]Write to MH i2c: E2 08 00 29 6A 80 09 00 00 00 00 00 00 05 [16:34:10]Write i2c OK [16:34:10]MH_I2C_Read... [16:34:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:10]Read from MH i2c: E2 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: E2 03 00 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: E2 03 00 29 6A 00 90 00 07 [16:34:10]RAPDU: 90 00 [16:34:10]wFMCommunicate OK [16:34:10]SAM_PROTO_ClearQueue done [16:34:10]KKMCreateOFDPacket [16:34:10]OFDProtocolAddRootSTLVToBuf [16:34:10]FM_MakeSignedData [16:34:10]FM_MakeSignedData [16:34:10]SAM_PROTO_SignData [16:34:10]wFMCommunicate request_size=4 [16:34:10]MH_SAM_APDU [16:34:10]CAPDU: 80 0D 01 02 [16:34:10]Write to MH i2c: E2 08 00 2A 6A 80 0D 01 02 00 00 00 00 0D [16:34:10]Write i2c OK [16:34:10]MH_I2C_Read... [16:34:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:10]Read from MH i2c: E2 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: E2 03 00 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: E2 03 00 2A 6A 00 90 00 08 [16:34:10]RAPDU: 90 00 [16:34:10]wFMCommunicate OK [16:34:10]wFMCommunicate request_size=255 [16:34:10]MH_SAM_APDU [16:34:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 62 11 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 8C F8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 82 E1 01 00 35 04 06 00 B9 [16:34:10]Write to MH i2c: E2 02 01 2B 6A 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 34 FF 03 08 00 03 62 11 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 8C F8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 82 E1 01 00 35 04 06 00 B9 00 00 82 [16:34:10]Write i2c OK [16:34:10]MH_I2C_Read... [16:34:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:10]Read from MH i2c: E2 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: E2 03 00 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: E2 03 00 2B 6A 00 90 00 09 [16:34:10]RAPDU: 90 00 [16:34:10]wFMCommunicate OK [16:34:10]wFMCommunicate request_size=10 [16:34:10]MH_SAM_APDU [16:34:10]CAPDU: 80 0D 02 02 05 2D 8D 91 CA CE [16:34:10]Write to MH i2c: E2 0D 00 2C 6A 80 0D 02 02 05 00 2D 8D 91 CA CE 00 00 FD [16:34:10]Write i2c OK [16:34:10]MH_I2C_Read... [16:34:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:11]Read from MH i2c: E2 [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: E2 03 00 [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: E2 03 00 2C 6A 00 90 00 0A [16:34:11]RAPDU: 90 00 [16:34:11]wFMCommunicate OK [16:34:11]wFMCommunicate request_size=4 [16:34:11]MH_SAM_APDU [16:34:11]CAPDU: 80 0D 03 02 [16:34:11]Write to MH i2c: E2 08 00 2D 6A 80 0D 03 02 00 00 00 00 12 [16:34:11]Write i2c OK [16:34:11]MH_I2C_Read... [16:34:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:11]Read from MH i2c: E2 [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: E2 0B 00 [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: E2 0B 00 2D 6A 00 BC 28 87 A1 F3 6A BE 97 90 00 D1 [16:34:11]RAPDU: BC 28 87 A1 F3 6A BE 97 90 00 [16:34:11]wFMCommunicate OK [16:34:11]SAM_PROTO_SignData done [16:34:11]FM_MakeSignedData done [16:34:11]CreateOFDProtocolMessage [16:34:11]wFMCommunicate request_size=4 [16:34:11]MH_SAM_APDU [16:34:11]CAPDU: 80 11 00 00 [16:34:11]Write to MH i2c: E2 08 00 2E 6A 80 11 00 00 00 00 00 00 12 [16:34:11]Write i2c OK [16:34:11]MH_I2C_Read... [16:34:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:11]Read from MH i2c: E2 [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: E2 17 00 [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: E2 17 00 2E 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 69 [16:34:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:34:11]wFMCommunicate OK [16:34:11]CreateOFDProtocolMessage done [16:34:11]OFDSenderStorePacket 123266 [16:34:11]StoreOFDPacket docnum=123266 [16:34:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 C1 B6 07 01 82 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 62 11 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 8C F8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 82 E1 01 00 35 04 06 00 B9 2D 8D 91 CA CE BC 28 87 A1 F3 6A BE 97 [16:34:11]CheckFolder [16:34:11]dirname=/storage/ofd_packets [16:34:11]CheckFolder done [16:34:11]ProducePacketName [16:34:11]name=ofd_packets/00123266 [16:34:11]NVStorageSaveData ofd_packets/00123266 [16:34:11]File name is /storage/ofd_packets/00123266 [16:34:11]Write 301 bytes [16:34:11]NVStorageSaveData done [16:34:11]OFDSenderStorePacket done [16:34:11]KKMCreateOFDPacket done [16:34:11]NVStorageSaveData kkm_last_timestamp [16:34:11]File name is /storage/kkm_last_timestamp [16:34:11]Write 4 bytes [16:34:11]NVStorageSaveData done [16:34:11]ExternCall_PrintAddStr [16:34:11]wPrintStart [16:34:11]Write to MH i2c: 01 00 00 2F 6A 99 [16:34:11]Write i2c OK [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: 01 [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: 01 07 00 [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: 01 07 00 2F 6A 00 00 00 00 00 FF 0F AE [16:34:11]RasterBufferAndPrint [16:34:11]line Счет N : (1)718097 [16:34:11]line ИНН: 02508201610067 [16:34:11]line Контрольно-Кассовый Чек [16:34:11]line ПРОДАЖА [16:34:11]line ТРК (МРК, ГНК) : 22 [16:34:11]line Товар: 2710124130 [16:34:11]line Аи-92-К-4 [16:34:11]line 4.450 * 0.00 [16:34:11]line = 0.00 [16:34:11]line НДС 12% НСП 1% [16:34:11]line > о реализуемом товаре [16:34:11]line ИТОГО: 0.00 [16:34:11]line НСП 1% : 0.00 [16:34:11]line НДС 12% : 0.00 [16:34:11]line Наличными: 0.00 [16:34:11]line Безнал.: 0.00 [16:34:11]line Место: АЗС № 64 "Партнер Нефть" [16:34:11]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:34:11]line СНО: Общий режим [16:34:11]line Чек 120 26.11.2024 16:34 [16:34:11]line Смена: 557 ФФД: 1.0 [16:34:11]line ЗНМ: 0300000033 [16:34:11]line РНМ: 0000000000092681 [16:34:11]line Версия ККМ: 001 [16:34:11]line Талоны: Топливная Карта [16:34:11]line 02992 [16:34:11]line ФМ: 0000000000874881 [16:34:11]line ФД: 123266 [16:34:11]line ФПД: 203605299808974 [16:34:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T163420&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123266&fm=203605299808974&tin=02508201610067®Number=0000000000092681&sum=0 [16:34:11]written 0, free lines is 4095 [16:34:11]OFD Sender: Processing packet 123266 [packets to send 7, broken 6] [16:34:11]ProducePacketName [16:34:11]name=ofd_packets/00123266 [16:34:11]OFD Sender: To server: pG, [16:34:11]CommunicateWithHost lk.salyk.kg:30040 [16:34:11]ConnectInit lk.salyk.kg [16:34:11]Connected sock=10 [16:34:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 C1 B6 07 01 82 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 62 11 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 8C F8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 82 E1 01 00 35 04 06 00 B9 2D 8D 91 CA CE BC 28 87 A1 F3 6A BE 97 [16:34:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 46 CD 47 00 37 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 82 E1 01 00 F4 03 04 00 4E A4 45 67 B6 04 01 00 00 58 62 F9 CD 47 FA C8 A4 [16:34:11]CommunicateWithHost err = 0 [16:34:11]CheckOFDResponse [16:34:11]1017 (14) - 77093643461234 [16:34:11]1041 (16) - 0000000000874881 [16:34:11]1040 (4) - 123266 [16:34:11]1012 (4) - 26.11.2024 10:34 [16:34:11]1206 (1) - 0 [16:34:11]OFD Sender: Remove packet 123266 [16:34:11]ProducePacketName [16:34:11]name=ofd_packets/00123266 [16:34:11]NVStorageDeleteData [16:34:11]Write to MH i2c: 01 00 00 59 6A C3 [16:34:11]Write i2c OK [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: 01 [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: 01 07 00 [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: 01 07 00 59 6A 00 00 00 00 00 6A 0C 40 [16:34:11]RasterBufferAndPrint [16:34:11]line [16:34:11]line [16:34:11]line [16:34:11]line [16:34:11]line [16:34:11]written 0, free lines is 3182 [16:34:11]MH_Cut [16:34:11]Write to MH i2c: D1 01 00 60 6A 01 9C [16:34:11]Write i2c OK [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: D1 [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: D1 01 00 [16:34:11]MH_I2C_Read... [16:34:11]Read from MH i2c: D1 01 00 60 6A 00 9B [16:34:11]Write to MH i2c: 01 00 00 61 6A CB [16:34:11]Write i2c OK [16:34:11]MH_I2C_Read... [16:34:11]OFD Sender: No OFD packet to send [16:34:12]*** Cut start [16:34:12]*** Partial cut [16:34:12]*** CUTSNS_PIN = 1 [16:34:12]*** CUTSNS_PIN = 0 [16:34:13]*** Brake cut motor [16:34:13]Read from MH i2c: 01 [16:34:13]MH_I2C_Read... [16:34:13]*** Stop cut motor [16:34:13]*** Cut end [16:34:13]Read from MH i2c: 01 07 00 [16:34:13]MH_I2C_Read... [16:34:13]Read from MH i2c: 01 07 00 61 6A 00 00 00 00 00 FF 0F E0 [16:34:13]process_action close_receipt done [16:34:13]requested_data is exist [16:34:13]produce_requested_data [16:34:13]requested_item fm.sn is exist - process it [16:34:13]wFMCommunicate request_size=4 [16:34:13]MH_SAM_APDU [16:34:13]CAPDU: 80 11 00 00 [16:34:13]Write to MH i2c: E2 08 00 62 6A 80 11 00 00 00 00 00 00 46 [16:34:13]Write i2c OK [16:34:13]MH_I2C_Read... [16:34:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:13]Read from MH i2c: E2 [16:34:13]MH_I2C_Read... [16:34:13]Read from MH i2c: E2 17 00 [16:34:13]MH_I2C_Read... [16:34:13]Read from MH i2c: E2 17 00 62 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 9D [16:34:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:34:13]wFMCommunicate OK [16:34:13]requested_item fd.num is exist - process it [16:34:13]SAM_PROTO_GetFieldsCounters [16:34:13]wFMCommunicate request_size=4 [16:34:13]MH_SAM_APDU [16:34:13]CAPDU: 80 13 00 00 [16:34:13]Write to MH i2c: E2 08 00 63 6A 80 13 00 00 00 00 00 00 49 [16:34:13]Write i2c OK [16:34:13]MH_I2C_Read... [16:34:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:13]Read from MH i2c: E2 [16:34:13]MH_I2C_Read... [16:34:13]Read from MH i2c: E2 62 00 [16:34:13]MH_I2C_Read... [16:34:13]Read from MH i2c: E2 62 00 63 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 82 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [16:34:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 82 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:13]wFMCommunicate OK [16:34:13]SAM_PROTO_GetFieldsCounters done [16:34:13]requested_item shift.num is exist - process it [16:34:13]requested_item shift.opened is exist - process it [16:34:13]req_shift_opened [16:34:13]FM_GetShiftState [16:34:13]SAM_PROTO_GetShiftState [16:34:13]wFMCommunicate request_size=4 [16:34:13]MH_SAM_APDU [16:34:13]CAPDU: 80 13 01 00 [16:34:13]Write to MH i2c: E2 08 00 64 6A 80 13 01 00 00 00 00 00 4B [16:34:13]Write i2c OK [16:34:13]MH_I2C_Read... [16:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:13]Read from MH i2c: E2 [16:34:13]MH_I2C_Read... [16:34:13]Read from MH i2c: E2 0E 00 [16:34:13]MH_I2C_Read... [16:34:13]Read from MH i2c: E2 0E 00 64 6A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 AC [16:34:13]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:34:13]wFMCommunicate OK [16:34:13]SAM_PROTO_GetShiftState done [16:34:13]FM_GetShiftState done [16:34:13]req_shift_opened done [16:34:13]requested_item shift.open_date is exist - process it [16:34:13]req_shift_open_date [16:34:13]req_shift_open_date done [16:34:13]produce_requested_data done [16:34:13]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123266,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:34:13]process_action_free close_receipt [16:34:13]json_value_free [16:34:13]json_value_free done [16:34:13]process_json_proto returns [16:34:13]Send response to host [16:34:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123266,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:34:13]free response buf [16:34:13]execute_script done [16:34:13]execute_script returns [16:34:13]free content buf [16:34:13]Sock 7.Close socket [16:34:13]Sock 7.Thread stoped [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:42]accept exits with 9 [16:34:42]New connection [16:34:42]New thread 3066580324 created [16:34:42]Thread 3066723684 joined [16:34:42]Waiting for new connection... [16:34:42] Sock 9.Parse request [16:34:42]Sock 9.Check first char [16:34:42]Sock 9.First char is OK [16:34:42]request: POST /json_proto HTTP/1.0 [16:34:42]Method: POST [16:34:42]URL: /json_proto [16:34:42]Method is POST - this is cgi request [16:34:42]url: /json_proto [16:34:42]query_string will be loaded in cgi processing [16:34:42]execute_cgi json_proto POST (null) [16:34:42]execute_cgi path=json_proto method=POST [16:34:42]POST find Content-Length [16:34:42]Host: 172.17.37.4:8080 [16:34:42]Content-Length: 649 [16:34:42]Content-Type: application/json [16:34:42] [16:34:42]POST finish read [16:34:42]Found Content-Length = 649 [16:34:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 160.000, "sum" : 11984.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 11984.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:42]execute_script... [16:34:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 160.000, "sum" : 11984.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 11984.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:42]POST & json_proto [16:34:42]process_json_proto [16:34:42]json parsed OK: [16:34:42]protocol is kg_v1.0 [16:34:42]action value=close_receipt [16:34:42]process_action close_receipt [16:34:42]cmd_close_receipt [16:34:42]MH_GetDate [16:34:42]Write to MH i2c: F0 00 00 65 6A BE [16:34:42]Write i2c OK [16:34:42]MH_I2C_Read... [16:34:42]Read from MH i2c: F0 [16:34:42]MH_I2C_Read... [16:34:42]Read from MH i2c: F0 09 00 [16:34:42]MH_I2C_Read... [16:34:42]Read from MH i2c: F0 09 00 65 6A 00 AE F8 45 67 B8 5A 43 67 D5 [16:34:42]GetLastDocTimeStamp 1732638860 [16:34:42]current date 1732638894 [16:34:42]FM_GetShiftState [16:34:42]SAM_PROTO_GetShiftState [16:34:42]wFMCommunicate request_size=4 [16:34:42]MH_SAM_APDU [16:34:42]CAPDU: 80 13 01 00 [16:34:42]Write to MH i2c: E2 08 00 66 6A 80 13 01 00 00 00 00 00 4D [16:34:42]Write i2c OK [16:34:42]MH_I2C_Read... [16:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:43]Read from MH i2c: E2 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: E2 0E 00 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: E2 0E 00 66 6A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 AE [16:34:43]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:34:43]wFMCommunicate OK [16:34:43]SAM_PROTO_GetShiftState done [16:34:43]FM_GetShiftState done [16:34:43]opened in 1732579736 [16:34:43]opened+sec_in_day 1732666136 [16:34:43]quantity*price = 1198400 [16:34:43]sum+1 = 1198401 [16:34:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 11984.00 НСП 1% : 106.05 НДС 12% : 1272.64 Наличными: 11984.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 121 26.11.2024 16:34 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123267 ФПД: 272420088315995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T163454&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123267&fm=272420088315995&tin=02508201610067®Number=0000000000092681&sum=1198400 [16:34:44]StoreToDocumentArchive [16:34:44]shift 557 fd 123267 [16:34:44]save to /storage/0557/doc_00123267 [16:34:44]save last doc name /storage/0557/doc_00123267 to /storage/kkm_last_doc_name [16:34:44]save OK [16:34:44]Clear old archive folders... [16:34:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:34:44]tlvbuf is 021385F0 [16:34:44]SAM_PROTO_ClearQueue [16:34:44]wFMCommunicate request_size=4 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 09 00 00 [16:34:44]Write to MH i2c: E2 08 00 73 6A 80 09 00 00 00 00 00 00 4F [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 73 6A 00 90 00 51 [16:34:44]RAPDU: 90 00 [16:34:44]wFMCommunicate OK [16:34:44]SAM_PROTO_ClearQueue done [16:34:44]KKMCreateOFDPacket [16:34:44]OFDProtocolAddRootSTLVToBuf [16:34:44]FM_MakeSignedData [16:34:44]FM_MakeSignedData [16:34:44]SAM_PROTO_SignData [16:34:44]wFMCommunicate request_size=4 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 0D 01 02 [16:34:44]Write to MH i2c: E2 08 00 74 6A 80 0D 01 02 00 00 00 00 57 [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 74 6A 00 90 00 52 [16:34:44]RAPDU: 90 00 [16:34:44]wFMCommunicate OK [16:34:44]wFMCommunicate request_size=255 [16:34:44]MH_SAM_APDU [16:34:44]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 35 FF 03 08 00 03 00 71 02 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 40 49 12 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 49 12 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 29 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 F1 01 00 00 00 07 04 06 00 40 49 12 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 AE F8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 83 E1 01 00 35 04 06 00 [16:34:44]Write to MH i2c: E2 02 01 75 6A 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 35 FF 03 08 00 03 00 71 02 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 40 49 12 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 49 12 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 29 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 F1 01 00 00 00 07 04 06 00 40 49 12 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 AE F8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 83 E1 01 00 35 04 06 00 00 00 4B [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 75 6A 00 90 00 53 [16:34:44]RAPDU: 90 00 [16:34:44]wFMCommunicate OK [16:34:44]wFMCommunicate request_size=11 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 0D 02 02 06 F7 C3 BE 98 00 5B [16:34:44]Write to MH i2c: E2 0E 00 76 6A 80 0D 02 02 06 00 F7 C3 BE 98 00 5B 00 00 D1 [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 76 6A 00 90 00 54 [16:34:44]RAPDU: 90 00 [16:34:44]wFMCommunicate OK [16:34:44]wFMCommunicate request_size=4 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 0D 03 02 [16:34:44]Write to MH i2c: E2 08 00 77 6A 80 0D 03 02 00 00 00 00 5C [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 0B 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 0B 00 77 6A 00 E0 DD F4 F1 A6 90 2D 06 90 00 68 [16:34:44]RAPDU: E0 DD F4 F1 A6 90 2D 06 90 00 [16:34:44]wFMCommunicate OK [16:34:44]SAM_PROTO_SignData done [16:34:44]FM_MakeSignedData done [16:34:44]CreateOFDProtocolMessage [16:34:44]wFMCommunicate request_size=4 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 11 00 00 [16:34:44]Write to MH i2c: E2 08 00 78 6A 80 11 00 00 00 00 00 00 5C [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 17 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 17 00 78 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B3 [16:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:34:44]wFMCommunicate OK [16:34:44]CreateOFDProtocolMessage done [16:34:44]OFDSenderStorePacket 123267 [16:34:44]StoreOFDPacket docnum=123267 [16:34:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 AE 59 08 01 2A D9 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 35 FF 03 08 00 03 00 71 02 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 40 49 12 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 49 12 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 29 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 F1 01 00 00 00 07 04 06 00 40 49 12 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 AE F8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 83 E1 01 00 35 04 06 00 F7 C3 BE 98 00 5B E0 DD F4 F1 A6 90 2D 06 [16:34:44]CheckFolder [16:34:44]dirname=/storage/ofd_packets [16:34:44]CheckFolder done [16:34:44]ProducePacketName [16:34:44]name=ofd_packets/00123267 [16:34:44]NVStorageSaveData ofd_packets/00123267 [16:34:44]File name is /storage/ofd_packets/00123267 [16:34:44]Write 302 bytes [16:34:44]NVStorageSaveData done [16:34:44]OFDSenderStorePacket done [16:34:44]KKMCreateOFDPacket done [16:34:44]NVStorageSaveData kkm_last_timestamp [16:34:44]File name is /storage/kkm_last_timestamp [16:34:44]Write 4 bytes [16:34:44]NVStorageSaveData done [16:34:44]ExternCall_PrintAddStr [16:34:44]wPrintStart [16:34:44]Write to MH i2c: 01 00 00 79 6A E3 [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: 01 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: 01 07 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: 01 07 00 79 6A 00 00 00 00 00 FF 0F F8 [16:34:44]RasterBufferAndPrint [16:34:44]line Счет N : (1)718099 [16:34:44]line ИНН: 02508201610067 [16:34:44]line Контрольно-Кассовый Чек [16:34:44]line ПРОДАЖА [16:34:44]line ТРК (МРК, ГНК) : 5 [16:34:44]line Товар: 2710194210 [16:34:44]line ДТ(л)-К-5 [16:34:44]line 160.000 * 74.90 [16:34:44]line = 11984.00 [16:34:44]line НДС 12% НСП 1% [16:34:44]line > о реализуемом товаре [16:34:44]line ИТОГО: 11984.00 [16:34:44]line НСП 1% : 106.05 [16:34:44]line НДС 12% : 1272.64 [16:34:44]line Наличными: 11984.00 [16:34:44]line Безнал.: 0.00 [16:34:44]line Место: АЗС № 64 "Партнер Нефть" [16:34:44]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:34:44]line СНО: Общий режим [16:34:44]line Чек 121 26.11.2024 16:34 [16:34:44]line Смена: 557 ФФД: 1.0 [16:34:44]line ЗНМ: 0300000033 [16:34:44]line РНМ: 0000000000092681 [16:34:44]line Версия ККМ: 001 [16:34:44]line ФМ: 0000000000874881 [16:34:44]line ФД: 123267 [16:34:44]line ФПД: 272420088315995 [16:34:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T163454&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123267&fm=272420088315995&tin=02508201610067®Number=0000000000092681&sum=1198400 [16:34:44]written 0, free lines is 4095 [16:34:44]OFD Sender: Processing packet 123267 [packets to send 7, broken 6] [16:34:44]ProducePacketName [16:34:44]name=ofd_packets/00123267 [16:34:44]OFD Sender: To server: pG, [16:34:45]CommunicateWithHost lk.salyk.kg:30040 [16:34:45]ConnectInit lk.salyk.kg [16:34:45]Connected sock=10 [16:34:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 AE 59 08 01 2A D9 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 35 FF 03 08 00 03 00 71 02 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 40 49 12 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 49 12 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 29 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 F1 01 00 00 00 07 04 06 00 40 49 12 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 AE F8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 83 E1 01 00 35 04 06 00 F7 C3 BE 98 00 5B E0 DD F4 F1 A6 90 2D 06 [16:34:45]Write to MH i2c: 01 00 00 A1 6A 0B [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: 01 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: 01 07 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: 01 07 00 A1 6A 00 00 00 00 00 A1 0C BF [16:34:45]RasterBufferAndPrint [16:34:45]line [16:34:45]line [16:34:45]line [16:34:45]line [16:34:45]line [16:34:45]written 0, free lines is 3237 [16:34:45]MH_Cut [16:34:45]Write to MH i2c: D1 01 00 A8 6A 01 E4 [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: D1 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: D1 01 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: D1 01 00 A8 6A 00 E3 [16:34:45]Write to MH i2c: 01 00 00 A9 6A 13 [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 A2 54 47 00 0C BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 83 E1 01 00 F4 03 04 00 70 A4 45 67 B6 04 01 00 00 87 5D F6 44 52 0E E5 91 [16:34:45]CommunicateWithHost err = 0 [16:34:45]CheckOFDResponse [16:34:45]1017 (14) - 77093643461234 [16:34:45]1041 (16) - 0000000000874881 [16:34:45]1040 (4) - 123267 [16:34:45]1012 (4) - 26.11.2024 10:35 [16:34:45]1206 (1) - 0 [16:34:45]OFD Sender: Remove packet 123267 [16:34:45]ProducePacketName [16:34:45]name=ofd_packets/00123267 [16:34:45]NVStorageDeleteData [16:34:45]OFD Sender: No OFD packet to send [16:34:46]*** Cut start [16:34:46]*** Partial cut [16:34:46]*** CUTSNS_PIN = 1 [16:34:46]*** CUTSNS_PIN = 0 [16:34:46]*** Brake cut motor [16:34:47]Read from MH i2c: 01 [16:34:47]MH_I2C_Read... [16:34:47]*** Stop cut motor [16:34:47]*** Cut end [16:34:47]Read from MH i2c: 01 07 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: 01 07 00 A9 6A 00 00 00 00 00 FF 0F 28 [16:34:47]process_action close_receipt done [16:34:47]requested_data is exist [16:34:47]produce_requested_data [16:34:47]requested_item fm.sn is exist - process it [16:34:47]wFMCommunicate request_size=4 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 11 00 00 [16:34:47]Write to MH i2c: E2 08 00 AA 6A 80 11 00 00 00 00 00 00 8E [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 17 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 17 00 AA 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E5 [16:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:34:47]wFMCommunicate OK [16:34:47]requested_item fd.num is exist - process it [16:34:47]SAM_PROTO_GetFieldsCounters [16:34:47]wFMCommunicate request_size=4 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 13 00 00 [16:34:47]Write to MH i2c: E2 08 00 AB 6A 80 13 00 00 00 00 00 00 91 [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 62 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 62 00 AB 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 83 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [16:34:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 83 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:47]wFMCommunicate OK [16:34:47]SAM_PROTO_GetFieldsCounters done [16:34:47]requested_item shift.num is exist - process it [16:34:47]requested_item shift.opened is exist - process it [16:34:47]req_shift_opened [16:34:47]FM_GetShiftState [16:34:47]SAM_PROTO_GetShiftState [16:34:47]wFMCommunicate request_size=4 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 13 01 00 [16:34:47]Write to MH i2c: E2 08 00 AC 6A 80 13 01 00 00 00 00 00 93 [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 0E 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 0E 00 AC 6A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 F4 [16:34:47]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:34:47]wFMCommunicate OK [16:34:47]SAM_PROTO_GetShiftState done [16:34:47]FM_GetShiftState done [16:34:47]req_shift_opened done [16:34:47]requested_item shift.open_date is exist - process it [16:34:47]req_shift_open_date [16:34:47]req_shift_open_date done [16:34:47]produce_requested_data done [16:34:47]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123267,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:34:47]process_action_free close_receipt [16:34:47]json_value_free [16:34:47]json_value_free done [16:34:47]process_json_proto returns [16:34:47]Send response to host [16:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123267,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:34:47]free response buf [16:34:47]execute_script done [16:34:47]execute_script returns [16:34:47]free content buf [16:34:47]Sock 9.Close socket [16:34:47]Sock 9.Thread stoped [16:34:50]OFD Sender: No OFD packet to send [16:34:53]accept exits with 7 [16:34:53]New connection [16:34:53]New thread 3066723684 created [16:34:53]Thread 3066580324 joined [16:34:53]Waiting for new connection... [16:34:53] Sock 7.Parse request [16:34:53]Sock 7.Check first char [16:34:53]Sock 7.First char is OK [16:34:53]request: POST /json_proto HTTP/1.0 [16:34:53]Method: POST [16:34:53]URL: /json_proto [16:34:53]Method is POST - this is cgi request [16:34:53]url: /json_proto [16:34:53]query_string will be loaded in cgi processing [16:34:53]execute_cgi json_proto POST (null) [16:34:53]execute_cgi path=json_proto method=POST [16:34:53]POST find Content-Length [16:34:53]Host: 172.17.37.4:8080 [16:34:53]Content-Length: 706 [16:34:53]Content-Type: application/json [16:34:53] [16:34:53]POST finish read [16:34:53]Found Content-Length = 706 [16:34:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123267, "base_FM": "0000000000874881", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 160.000, "sum" : 11984.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 11984.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:53]execute_script... [16:34:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123267, "base_FM": "0000000000874881", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 160.000, "sum" : 11984.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 11984.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:53]POST & json_proto [16:34:53]process_json_proto [16:34:53]json parsed OK: [16:34:53]protocol is kg_v1.0 [16:34:53]action value=close_receipt [16:34:53]process_action close_receipt [16:34:53]cmd_close_receipt [16:34:53]MH_GetDate [16:34:53]Write to MH i2c: F0 00 00 AD 6A 06 [16:34:53]Write i2c OK [16:34:53]MH_I2C_Read... [16:34:53]Read from MH i2c: F0 [16:34:53]MH_I2C_Read... [16:34:53]Read from MH i2c: F0 09 00 [16:34:53]MH_I2C_Read... [16:34:53]Read from MH i2c: F0 09 00 AD 6A 00 B8 F8 45 67 B8 5A 43 67 27 [16:34:53]GetLastDocTimeStamp 1732638894 [16:34:53]current date 1732638904 [16:34:53]FM_GetShiftState [16:34:53]SAM_PROTO_GetShiftState [16:34:53]wFMCommunicate request_size=4 [16:34:53]MH_SAM_APDU [16:34:53]CAPDU: 80 13 01 00 [16:34:53]Write to MH i2c: E2 08 00 AE 6A 80 13 01 00 00 00 00 00 95 [16:34:53]Write i2c OK [16:34:53]MH_I2C_Read... [16:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:53]Read from MH i2c: E2 [16:34:53]MH_I2C_Read... [16:34:53]Read from MH i2c: E2 0E 00 [16:34:53]MH_I2C_Read... [16:34:53]Read from MH i2c: E2 0E 00 AE 6A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 F6 [16:34:53]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:34:53]wFMCommunicate OK [16:34:53]SAM_PROTO_GetShiftState done [16:34:53]FM_GetShiftState done [16:34:53]opened in 1732579736 [16:34:53]opened+sec_in_day 1732666136 [16:34:53]quantity*price = 1198400 [16:34:53]sum+1 = 1198401 [16:34:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 11984.00 НСП 1% : 106.05 НДС 12% : 1272.64 Наличными: 11984.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 122 26.11.2024 16:35 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФД осн.: 123267 ФМ осн.: 0000000000874881 ФМ: 0000000000874881 ФД: 123268 ФПД: 21543084927686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T163504&type=2&operation_type=1&fn_number=0000000000874881&fd_number=123268&fm=21543084927686&tin=02508201610067®Number=0000000000092681&sum=1198400 [16:34:54]StoreToDocumentArchive [16:34:54]shift 557 fd 123268 [16:34:54]save to /storage/0557/doc_00123268 [16:34:54]save last doc name /storage/0557/doc_00123268 to /storage/kkm_last_doc_name [16:34:54]save OK [16:34:54]Clear old archive folders... [16:34:54]ProcessDocumentItem done err = 0, tmpTLVsize=280 [16:34:54]tlvbuf is 020FE0A0 [16:34:54]SAM_PROTO_ClearQueue [16:34:54]wFMCommunicate request_size=4 [16:34:54]MH_SAM_APDU [16:34:54]CAPDU: 80 09 00 00 [16:34:54]Write to MH i2c: E2 08 00 BD 6A 80 09 00 00 00 00 00 00 99 [16:34:54]Write i2c OK [16:34:54]MH_I2C_Read... [16:34:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:54]Read from MH i2c: E2 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 03 00 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 03 00 BD 6A 00 90 00 9B [16:34:54]RAPDU: 90 00 [16:34:54]wFMCommunicate OK [16:34:54]SAM_PROTO_ClearQueue done [16:34:54]KKMCreateOFDPacket [16:34:54]OFDProtocolAddRootSTLVToBuf [16:34:54]FM_MakeSignedData [16:34:54]FM_MakeSignedData [16:34:54]SAM_PROTO_SignData [16:34:54]wFMCommunicate request_size=4 [16:34:54]MH_SAM_APDU [16:34:54]CAPDU: 80 0D 01 02 [16:34:54]Write to MH i2c: E2 08 00 BE 6A 80 0D 01 02 00 00 00 00 A1 [16:34:54]Write i2c OK [16:34:54]MH_I2C_Read... [16:34:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:54]Read from MH i2c: E2 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 03 00 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 03 00 BE 6A 00 90 00 9C [16:34:54]RAPDU: 90 00 [16:34:54]wFMCommunicate OK [16:34:54]wFMCommunicate request_size=255 [16:34:54]MH_SAM_APDU [16:34:54]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 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 35 FF 03 08 00 03 00 71 02 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 40 49 12 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 49 12 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 29 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 F1 01 00 00 00 07 04 06 00 40 49 12 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 B8 F8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 83 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 [16:34:54]Write to MH i2c: E2 02 01 BF 6A 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 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 35 FF 03 08 00 03 00 71 02 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 40 49 12 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 49 12 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 29 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 F1 01 00 00 00 07 04 06 00 40 49 12 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 B8 F8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 83 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 00 00 D2 [16:34:54]Write i2c OK [16:34:54]MH_I2C_Read... [16:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:54]Read from MH i2c: E2 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 03 00 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 03 00 BF 6A 00 90 00 9D [16:34:54]RAPDU: 90 00 [16:34:54]wFMCommunicate OK [16:34:54]wFMCommunicate request_size=39 [16:34:54]MH_SAM_APDU [16:34:54]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 84 E1 01 00 35 04 06 00 13 97 E3 EC AA C6 [16:34:54]Write to MH i2c: E2 2A 00 C0 6A 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 84 E1 01 00 35 04 06 00 13 97 E3 EC AA C6 00 00 B2 [16:34:54]Write i2c OK [16:34:54]MH_I2C_Read... [16:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:54]Read from MH i2c: E2 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 03 00 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 03 00 C0 6A 00 90 00 9E [16:34:54]RAPDU: 90 00 [16:34:54]wFMCommunicate OK [16:34:54]wFMCommunicate request_size=4 [16:34:54]MH_SAM_APDU [16:34:54]CAPDU: 80 0D 03 02 [16:34:54]Write to MH i2c: E2 08 00 C1 6A 80 0D 03 02 00 00 00 00 A6 [16:34:54]Write i2c OK [16:34:54]MH_I2C_Read... [16:34:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:54]Read from MH i2c: E2 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 0B 00 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 0B 00 C1 6A 00 AB 8C EF 82 04 6F BB FF 90 00 7C [16:34:54]RAPDU: AB 8C EF 82 04 6F BB FF 90 00 [16:34:54]wFMCommunicate OK [16:34:54]SAM_PROTO_SignData done [16:34:54]FM_MakeSignedData done [16:34:54]CreateOFDProtocolMessage [16:34:54]wFMCommunicate request_size=4 [16:34:54]MH_SAM_APDU [16:34:54]CAPDU: 80 11 00 00 [16:34:54]Write to MH i2c: E2 08 00 C2 6A 80 11 00 00 00 00 00 00 A6 [16:34:54]Write i2c OK [16:34:54]MH_I2C_Read... [16:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:54]Read from MH i2c: E2 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 17 00 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: E2 17 00 C2 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FD [16:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:34:54]wFMCommunicate OK [16:34:54]CreateOFDProtocolMessage done [16:34:54]OFDSenderStorePacket 123268 [16:34:54]StoreOFDPacket docnum=123268 [16:34:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 2C 01 00 00 94 11 24 01 FF 22 5A 03 01 00 03 00 18 01 1E 04 01 00 02 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 35 FF 03 08 00 03 00 71 02 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 40 49 12 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 49 12 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 29 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 F1 01 00 00 00 07 04 06 00 40 49 12 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 B8 F8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 83 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 84 E1 01 00 35 04 06 00 13 97 E3 EC AA C6 AB 8C EF 82 04 6F BB FF [16:34:54]CheckFolder [16:34:54]dirname=/storage/ofd_packets [16:34:54]CheckFolder done [16:34:54]ProducePacketName [16:34:54]name=ofd_packets/00123268 [16:34:54]NVStorageSaveData ofd_packets/00123268 [16:34:54]File name is /storage/ofd_packets/00123268 [16:34:54]Write 330 bytes [16:34:54]NVStorageSaveData done [16:34:54]OFDSenderStorePacket done [16:34:54]KKMCreateOFDPacket done [16:34:54]NVStorageSaveData kkm_last_timestamp [16:34:54]File name is /storage/kkm_last_timestamp [16:34:54]Write 4 bytes [16:34:54]NVStorageSaveData done [16:34:54]ExternCall_PrintAddStr [16:34:54]wPrintStart [16:34:54]Write to MH i2c: 01 00 00 C3 6A 2D [16:34:54]Write i2c OK [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: 01 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: 01 07 00 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: 01 07 00 C3 6A 00 00 00 00 00 FF 0F 42 [16:34:54]RasterBufferAndPrint [16:34:54]line Счет N : (1)718099 [16:34:54]line ИНН: 02508201610067 [16:34:54]line Контрольно-Кассовый Чек [16:34:54]line ВОЗВРАТ ПРОДАЖИ [16:34:54]line ТРК (МРК, ГНК) : 5 [16:34:54]line Товар: 2710194210 [16:34:54]line ДТ(л)-К-5 [16:34:54]line 160.000 * 74.90 [16:34:54]line = 11984.00 [16:34:54]line НДС 12% НСП 1% [16:34:54]line > о реализуемом товаре [16:34:54]line ИТОГО: 11984.00 [16:34:54]line НСП 1% : 106.05 [16:34:54]line НДС 12% : 1272.64 [16:34:54]line Наличными: 11984.00 [16:34:54]line Безнал.: 0.00 [16:34:54]line Место: АЗС № 64 "Партнер Нефть" [16:34:54]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:34:54]line СНО: Общий режим [16:34:54]line Чек 122 26.11.2024 16:35 [16:34:54]line Смена: 557 ФФД: 1.0 [16:34:54]line ЗНМ: 0300000033 [16:34:54]line РНМ: 0000000000092681 [16:34:54]line Версия ККМ: 001 [16:34:54]line ФД осн.: 123267 [16:34:54]line ФМ осн.: 0000000000874881 [16:34:54]line ФМ: 0000000000874881 [16:34:54]line ФД: 123268 [16:34:54]line ФПД: 21543084927686 [16:34:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T163504&type=2&operation_type=1&fn_number=0000000000874881&fd_number=123268&fm=21543084927686&tin=02508201610067®Number=0000000000092681&sum=1198400 [16:34:54]written 0, free lines is 4095 [16:34:54]OFD Sender: Processing packet 123268 [packets to send 7, broken 6] [16:34:54]ProducePacketName [16:34:54]name=ofd_packets/00123268 [16:34:54]OFD Sender: To server: pG, [16:34:54]CommunicateWithHost lk.salyk.kg:30040 [16:34:54]ConnectInit lk.salyk.kg [16:34:55]Connected sock=10 [16:34:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 2C 01 00 00 94 11 24 01 FF 22 5A 03 01 00 03 00 18 01 1E 04 01 00 02 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 35 FF 03 08 00 03 00 71 02 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 40 49 12 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 49 12 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 29 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 F1 01 00 00 00 07 04 06 00 40 49 12 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 B8 F8 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 27 04 04 00 83 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 84 E1 01 00 35 04 06 00 13 97 E3 EC AA C6 AB 8C EF 82 04 6F BB FF [16:34:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 93 27 47 00 1A D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 84 E1 01 00 F4 03 04 00 7A A4 45 67 B6 04 01 00 00 60 E5 77 95 17 3A AF E9 [16:34:55]CommunicateWithHost err = 0 [16:34:55]CheckOFDResponse [16:34:55]1017 (14) - 77093643461234 [16:34:55]1041 (16) - 0000000000874881 [16:34:55]1040 (4) - 123268 [16:34:55]1012 (4) - 26.11.2024 10:35 [16:34:55]1206 (1) - 0 [16:34:55]OFD Sender: Remove packet 123268 [16:34:55]ProducePacketName [16:34:55]name=ofd_packets/00123268 [16:34:55]NVStorageDeleteData [16:34:55]Write to MH i2c: 01 00 00 ED 6A 57 [16:34:55]Write i2c OK [16:34:55]MH_I2C_Read... [16:34:55]Read from MH i2c: 01 [16:34:55]MH_I2C_Read... [16:34:55]Read from MH i2c: 01 07 00 [16:34:55]MH_I2C_Read... [16:34:55]Read from MH i2c: 01 07 00 ED 6A 00 00 00 00 00 72 0C DC [16:34:55]RasterBufferAndPrint [16:34:55]line [16:34:55]line [16:34:55]line [16:34:55]line [16:34:55]line [16:34:55]written 0, free lines is 3193 [16:34:55]MH_Cut [16:34:55]Write to MH i2c: D1 01 00 F4 6A 01 30 [16:34:55]Write i2c OK [16:34:55]MH_I2C_Read... [16:34:55]Read from MH i2c: D1 [16:34:55]MH_I2C_Read... [16:34:55]Read from MH i2c: D1 01 00 [16:34:55]MH_I2C_Read... [16:34:55]Read from MH i2c: D1 01 00 F4 6A 00 2F [16:34:55]Write to MH i2c: 01 00 00 F5 6A 5F [16:34:55]Write i2c OK [16:34:55]MH_I2C_Read... [16:34:55]OFD Sender: No OFD packet to send [16:34:56]*** Cut start [16:34:56]*** Partial cut [16:34:56]*** CUTSNS_PIN = 1 [16:34:56]*** CUTSNS_PIN = 0 [16:34:57]*** Brake cut motor [16:34:57]Read from MH i2c: 01 [16:34:57]MH_I2C_Read... [16:34:57]*** Stop cut motor [16:34:57]*** Cut end [16:34:57]Read from MH i2c: 01 07 00 [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: 01 07 00 F5 6A 00 00 00 00 00 FF 0F 74 [16:34:57]process_action close_receipt done [16:34:57]requested_data is exist [16:34:57]produce_requested_data [16:34:57]requested_item fm.sn is exist - process it [16:34:57]wFMCommunicate request_size=4 [16:34:57]MH_SAM_APDU [16:34:57]CAPDU: 80 11 00 00 [16:34:57]Write to MH i2c: E2 08 00 F6 6A 80 11 00 00 00 00 00 00 DA [16:34:57]Write i2c OK [16:34:57]MH_I2C_Read... [16:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:57]Read from MH i2c: E2 [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: E2 17 00 [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: E2 17 00 F6 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 31 [16:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:34:57]wFMCommunicate OK [16:34:57]requested_item fd.num is exist - process it [16:34:57]SAM_PROTO_GetFieldsCounters [16:34:57]wFMCommunicate request_size=4 [16:34:57]MH_SAM_APDU [16:34:57]CAPDU: 80 13 00 00 [16:34:57]Write to MH i2c: E2 08 00 F7 6A 80 13 00 00 00 00 00 00 DD [16:34:57]Write i2c OK [16:34:57]MH_I2C_Read... [16:34:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:57]Read from MH i2c: E2 [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: E2 62 00 [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: E2 62 00 F7 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 84 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [16:34:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 84 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:57]wFMCommunicate OK [16:34:57]SAM_PROTO_GetFieldsCounters done [16:34:57]requested_item shift.num is exist - process it [16:34:57]requested_item shift.opened is exist - process it [16:34:57]req_shift_opened [16:34:57]FM_GetShiftState [16:34:57]SAM_PROTO_GetShiftState [16:34:57]wFMCommunicate request_size=4 [16:34:57]MH_SAM_APDU [16:34:57]CAPDU: 80 13 01 00 [16:34:57]Write to MH i2c: E2 08 00 F8 6A 80 13 01 00 00 00 00 00 DF [16:34:57]Write i2c OK [16:34:57]MH_I2C_Read... [16:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:57]Read from MH i2c: E2 [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: E2 0E 00 [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: E2 0E 00 F8 6A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 40 [16:34:57]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:34:57]wFMCommunicate OK [16:34:57]SAM_PROTO_GetShiftState done [16:34:57]FM_GetShiftState done [16:34:57]req_shift_opened done [16:34:57]requested_item shift.open_date is exist - process it [16:34:57]req_shift_open_date [16:34:57]req_shift_open_date done [16:34:57]produce_requested_data done [16:34:57]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123268,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:34:57]process_action_free close_receipt [16:34:57]json_value_free [16:34:57]json_value_free done [16:34:57]process_json_proto returns [16:34:57]Send response to host [16:34:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123268,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:34:57]free response buf [16:34:57]execute_script done [16:34:57]execute_script returns [16:34:57]free content buf [16:34:57]Sock 7.Close socket [16:34:57]Sock 7.Thread stoped [16:35:00]OFD Sender: No OFD packet to send [16:35:05]OFD Sender: No OFD packet to send [16:35:10]OFD Sender: No OFD packet to send [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:30]OFD Sender: No OFD packet to send [16:36:35]OFD Sender: No OFD packet to send [16:36:40]OFD Sender: No OFD packet to send [16:36:45]OFD Sender: No OFD packet to send [16:36:50]OFD Sender: No OFD packet to send [16:36:55]OFD Sender: No OFD packet to send [16:37:00]OFD Sender: No OFD packet to send [16:37:05]OFD Sender: No OFD packet to send [16:37:10]OFD Sender: No OFD packet to send [16:37:15]OFD Sender: No OFD packet to send [16:37:20]OFD Sender: No OFD packet to send [16:37:24]accept exits with 9 [16:37:24]New connection [16:37:24]New thread 3066580324 created [16:37:24]Thread 3066723684 joined [16:37:24]Waiting for new connection... [16:37:24] Sock 9.Parse request [16:37:24]Sock 9.Check first char [16:37:24]Sock 9.First char is OK [16:37:24]request: POST /json_proto HTTP/1.0 [16:37:24]Method: POST [16:37:24]URL: /json_proto [16:37:24]Method is POST - this is cgi request [16:37:24]url: /json_proto [16:37:24]query_string will be loaded in cgi processing [16:37:24]execute_cgi json_proto POST (null) [16:37:24]execute_cgi path=json_proto method=POST [16:37:24]POST find Content-Length [16:37:24]Host: 172.17.37.4:8080 [16:37:24]Content-Length: 824 [16:37:24]Content-Type: application/json [16:37:24] [16:37:24]POST finish read [16:37:24]Found Content-Length = 824 [16:37:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 100.000, "sum" : 7490.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 7490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:24]execute_script... [16:37:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 100.000, "sum" : 7490.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 7490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:24]POST & json_proto [16:37:24]process_json_proto [16:37:24]json parsed OK: [16:37:24]protocol is kg_v1.0 [16:37:24]action value=close_receipt [16:37:24]process_action close_receipt [16:37:24]cmd_close_receipt [16:37:24]MH_GetDate [16:37:24]Write to MH i2c: F0 00 00 F9 6A 52 [16:37:24]Write i2c OK [16:37:24]MH_I2C_Read... [16:37:24]Read from MH i2c: F0 [16:37:24]MH_I2C_Read... [16:37:24]Read from MH i2c: F0 09 00 [16:37:24]MH_I2C_Read... [16:37:24]Read from MH i2c: F0 09 00 F9 6A 00 4F F9 45 67 B8 5A 43 67 0B [16:37:24]GetLastDocTimeStamp 1732638904 [16:37:24]current date 1732639055 [16:37:24]FM_GetShiftState [16:37:24]SAM_PROTO_GetShiftState [16:37:24]wFMCommunicate request_size=4 [16:37:24]MH_SAM_APDU [16:37:24]CAPDU: 80 13 01 00 [16:37:24]Write to MH i2c: E2 08 00 FA 6A 80 13 01 00 00 00 00 00 E1 [16:37:24]Write i2c OK [16:37:24]MH_I2C_Read... [16:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:24]Read from MH i2c: E2 [16:37:24]MH_I2C_Read... [16:37:24]Read from MH i2c: E2 0E 00 [16:37:24]MH_I2C_Read... [16:37:24]Read from MH i2c: E2 0E 00 FA 6A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 42 [16:37:24]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:37:24]wFMCommunicate OK [16:37:24]SAM_PROTO_GetShiftState done [16:37:24]FM_GetShiftState done [16:37:24]opened in 1732579736 [16:37:24]opened+sec_in_day 1732666136 [16:37:24]quantity*price = 749000 [16:37:24]sum+1 = 749001 [16:37:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7490.00 НСП 1% : 66.28 НДС 12% : 795.40 Наличными: 0.00 Безнал.: 7490.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 123 26.11.2024 16:37 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123269 ФПД: 245866871791889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T163735&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123269&fm=245866871791889&tin=02508201610067®Number=0000000000092681&sum=749000 [16:37:25]StoreToDocumentArchive [16:37:25]shift 557 fd 123269 [16:37:25]save to /storage/0557/doc_00123269 [16:37:25]save last doc name /storage/0557/doc_00123269 to /storage/kkm_last_doc_name [16:37:25]save OK [16:37:25]Clear old archive folders... [16:37:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:37:25]tlvbuf is 0217EDF0 [16:37:25]SAM_PROTO_ClearQueue [16:37:25]wFMCommunicate request_size=4 [16:37:25]MH_SAM_APDU [16:37:25]CAPDU: 80 09 00 00 [16:37:25]Write to MH i2c: E2 08 00 07 6B 80 09 00 00 00 00 00 00 E4 [16:37:25]Write i2c OK [16:37:25]MH_I2C_Read... [16:37:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:25]Read from MH i2c: E2 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 03 00 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 03 00 07 6B 00 90 00 E6 [16:37:25]RAPDU: 90 00 [16:37:25]wFMCommunicate OK [16:37:25]SAM_PROTO_ClearQueue done [16:37:25]KKMCreateOFDPacket [16:37:25]OFDProtocolAddRootSTLVToBuf [16:37:25]FM_MakeSignedData [16:37:25]FM_MakeSignedData [16:37:25]SAM_PROTO_SignData [16:37:25]wFMCommunicate request_size=4 [16:37:25]MH_SAM_APDU [16:37:25]CAPDU: 80 0D 01 02 [16:37:25]Write to MH i2c: E2 08 00 08 6B 80 0D 01 02 00 00 00 00 EC [16:37:25]Write i2c OK [16:37:25]MH_I2C_Read... [16:37:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:25]Read from MH i2c: E2 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 03 00 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 03 00 08 6B 00 90 00 E7 [16:37:25]RAPDU: 90 00 [16:37:25]wFMCommunicate OK [16:37:25]wFMCommunicate request_size=255 [16:37:25]MH_SAM_APDU [16:37:25]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 C8 6D 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 6D 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 36 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 6D 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4F F9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 85 E1 01 00 35 04 06 00 [16:37:25]Write to MH i2c: E2 02 01 09 6B 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 C8 6D 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 6D 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 36 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 6D 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4F F9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 85 E1 01 00 35 04 06 00 00 00 69 [16:37:25]Write i2c OK [16:37:25]MH_I2C_Read... [16:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:25]Read from MH i2c: E2 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 03 00 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 03 00 09 6B 00 90 00 E8 [16:37:25]RAPDU: 90 00 [16:37:25]wFMCommunicate OK [16:37:25]wFMCommunicate request_size=11 [16:37:25]MH_SAM_APDU [16:37:25]CAPDU: 80 0D 02 02 06 DF 9D 57 8E 21 11 [16:37:25]Write to MH i2c: E2 0E 00 0A 6B 80 0D 02 02 06 00 DF 9D 57 8E 21 11 00 00 8E [16:37:25]Write i2c OK [16:37:25]MH_I2C_Read... [16:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:25]Read from MH i2c: E2 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 03 00 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 03 00 0A 6B 00 90 00 E9 [16:37:25]RAPDU: 90 00 [16:37:25]wFMCommunicate OK [16:37:25]wFMCommunicate request_size=4 [16:37:25]MH_SAM_APDU [16:37:25]CAPDU: 80 0D 03 02 [16:37:25]Write to MH i2c: E2 08 00 0B 6B 80 0D 03 02 00 00 00 00 F1 [16:37:25]Write i2c OK [16:37:25]MH_I2C_Read... [16:37:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:25]OFD Sender: No OFD packet to send [16:37:25]Read from MH i2c: E2 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 0B 00 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 0B 00 0B 6B 00 66 FB 81 A2 DC E4 FC 2D 90 00 5F [16:37:25]RAPDU: 66 FB 81 A2 DC E4 FC 2D 90 00 [16:37:25]wFMCommunicate OK [16:37:25]SAM_PROTO_SignData done [16:37:25]FM_MakeSignedData done [16:37:25]CreateOFDProtocolMessage [16:37:25]wFMCommunicate request_size=4 [16:37:25]MH_SAM_APDU [16:37:25]CAPDU: 80 11 00 00 [16:37:25]Write to MH i2c: E2 08 00 0C 6B 80 11 00 00 00 00 00 00 F1 [16:37:25]Write i2c OK [16:37:25]MH_I2C_Read... [16:37:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:25]Read from MH i2c: E2 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 17 00 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 17 00 0C 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 48 [16:37:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:37:25]wFMCommunicate OK [16:37:25]CreateOFDProtocolMessage done [16:37:25]OFDSenderStorePacket 123269 [16:37:25]StoreOFDPacket docnum=123269 [16:37:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 5E B2 08 01 4E 31 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 C8 6D 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 6D 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 36 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 6D 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4F F9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 85 E1 01 00 35 04 06 00 DF 9D 57 8E 21 11 66 FB 81 A2 DC E4 FC 2D [16:37:25]CheckFolder [16:37:25]dirname=/storage/ofd_packets [16:37:25]CheckFolder done [16:37:25]ProducePacketName [16:37:25]name=ofd_packets/00123269 [16:37:25]NVStorageSaveData ofd_packets/00123269 [16:37:25]File name is /storage/ofd_packets/00123269 [16:37:25]Write 302 bytes [16:37:25]NVStorageSaveData done [16:37:25]OFDSenderStorePacket done [16:37:25]KKMCreateOFDPacket done [16:37:25]NVStorageSaveData kkm_last_timestamp [16:37:25]File name is /storage/kkm_last_timestamp [16:37:25]Write 4 bytes [16:37:25]NVStorageSaveData done [16:37:25]ExternCall_PrintAddStr [16:37:25]wPrintStart [16:37:25]Write to MH i2c: 01 00 00 0D 6B 78 [16:37:25]Write i2c OK [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: 01 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: 01 07 00 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: 01 07 00 0D 6B 00 00 00 00 00 FF 0F 8D [16:37:25]RasterBufferAndPrint [16:37:25]line Счет N : (1)718098 [16:37:25]line ИНН: 02508201610067 [16:37:25]line Контрольно-Кассовый Чек [16:37:25]line ПРОДАЖА [16:37:25]line ТРК (МРК, ГНК) : 6 [16:37:25]line Товар: 2710194210 [16:37:25]line ДТ(л)-К-5 [16:37:25]line 100.000 * 74.90 [16:37:25]line = 7490.00 [16:37:25]line НДС 12% НСП 1% [16:37:25]line > о реализуемом товаре [16:37:25]line ИТОГО: 7490.00 [16:37:25]line НСП 1% : 66.28 [16:37:25]line НДС 12% : 795.40 [16:37:25]line Наличными: 0.00 [16:37:25]line Безнал.: 7490.00 [16:37:25]line Место: АЗС № 64 "Партнер Нефть" [16:37:25]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:37:25]line СНО: Общий режим [16:37:25]line Чек 123 26.11.2024 16:37 [16:37:25]line Смена: 557 ФФД: 1.0 [16:37:25]line ЗНМ: 0300000033 [16:37:25]line РНМ: 0000000000092681 [16:37:25]line Версия ККМ: 001 [16:37:25]line Платежная система: Бакай Банк [16:37:25]line ФМ: 0000000000874881 [16:37:25]line ФД: 123269 [16:37:25]line ФПД: 245866871791889 [16:37:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T163735&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123269&fm=245866871791889&tin=02508201610067®Number=0000000000092681&sum=749000 [16:37:26]OFD Sender: Processing packet 123269 [packets to send 7, broken 6] [16:37:26]ProducePacketName [16:37:26]name=ofd_packets/00123269 [16:37:26]OFD Sender: To server: pG, [16:37:26]CommunicateWithHost lk.salyk.kg:30040 [16:37:26]ConnectInit lk.salyk.kg [16:37:26]written 0, free lines is 4095 [16:37:26]Connected sock=10 [16:37:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 5E B2 08 01 4E 31 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 C8 6D 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 6D 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 36 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 6D 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4F F9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 85 E1 01 00 35 04 06 00 DF 9D 57 8E 21 11 66 FB 81 A2 DC E4 FC 2D [16:37:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 98 8F 47 00 DA 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 85 E1 01 00 F4 03 04 00 11 A5 45 67 B6 04 01 00 00 80 D1 58 97 2A 42 B5 8B [16:37:26]CommunicateWithHost err = 0 [16:37:26]CheckOFDResponse [16:37:26]1017 (14) - 77093643461234 [16:37:26]1041 (16) - 0000000000874881 [16:37:26]1040 (4) - 123269 [16:37:26]1012 (4) - 26.11.2024 10:38 [16:37:26]1206 (1) - 0 [16:37:26]OFD Sender: Remove packet 123269 [16:37:26]ProducePacketName [16:37:26]name=ofd_packets/00123269 [16:37:26]NVStorageDeleteData [16:37:26]Write to MH i2c: 01 00 00 37 6B A2 [16:37:26]Write i2c OK [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: 01 [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: 01 07 00 [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: 01 07 00 37 6B 00 00 00 00 00 67 0C 1C [16:37:26]RasterBufferAndPrint [16:37:26]line [16:37:26]line [16:37:26]line [16:37:26]line [16:37:26]line [16:37:26]written 0, free lines is 3178 [16:37:26]MH_Cut [16:37:26]Write to MH i2c: D1 01 00 3E 6B 01 7B [16:37:26]Write i2c OK [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: D1 [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: D1 01 00 [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: D1 01 00 3E 6B 00 7A [16:37:26]Write to MH i2c: 01 00 00 3F 6B AA [16:37:26]Write i2c OK [16:37:26]MH_I2C_Read... [16:37:27]OFD Sender: No OFD packet to send [16:37:28]*** Cut start [16:37:28]*** Partial cut [16:37:28]*** CUTSNS_PIN = 1 [16:37:28]*** CUTSNS_PIN = 0 [16:37:28]*** Brake cut motor [16:37:28]Read from MH i2c: 01 [16:37:28]MH_I2C_Read... [16:37:28]*** Stop cut motor [16:37:28]*** Cut end [16:37:28]Read from MH i2c: 01 07 00 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: 01 07 00 3F 6B 00 00 00 00 00 FF 0F BF [16:37:28]process_action close_receipt done [16:37:28]requested_data is exist [16:37:28]produce_requested_data [16:37:28]requested_item fm.sn is exist - process it [16:37:28]wFMCommunicate request_size=4 [16:37:28]MH_SAM_APDU [16:37:28]CAPDU: 80 11 00 00 [16:37:28]Write to MH i2c: E2 08 00 40 6B 80 11 00 00 00 00 00 00 25 [16:37:28]Write i2c OK [16:37:28]MH_I2C_Read... [16:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:28]Read from MH i2c: E2 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: E2 17 00 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: E2 17 00 40 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 7C [16:37:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:37:28]wFMCommunicate OK [16:37:28]requested_item fd.num is exist - process it [16:37:28]SAM_PROTO_GetFieldsCounters [16:37:28]wFMCommunicate request_size=4 [16:37:28]MH_SAM_APDU [16:37:28]CAPDU: 80 13 00 00 [16:37:28]Write to MH i2c: E2 08 00 41 6B 80 13 00 00 00 00 00 00 28 [16:37:28]Write i2c OK [16:37:28]MH_I2C_Read... [16:37:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:28]Read from MH i2c: E2 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: E2 62 00 [16:37:28]MH_I2C_Read... [16:37:28]Read from MH i2c: E2 62 00 41 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 85 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [16:37:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 85 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:28]wFMCommunicate OK [16:37:28]SAM_PROTO_GetFieldsCounters done [16:37:28]requested_item shift.num is exist - process it [16:37:28]requested_item shift.opened is exist - process it [16:37:28]req_shift_opened [16:37:28]FM_GetShiftState [16:37:28]SAM_PROTO_GetShiftState [16:37:28]wFMCommunicate request_size=4 [16:37:28]MH_SAM_APDU [16:37:28]CAPDU: 80 13 01 00 [16:37:28]Write to MH i2c: E2 08 00 42 6B 80 13 01 00 00 00 00 00 2A [16:37:28]Write i2c OK [16:37:28]MH_I2C_Read... [16:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:29]Read from MH i2c: E2 [16:37:29]MH_I2C_Read... [16:37:29]Read from MH i2c: E2 0E 00 [16:37:29]MH_I2C_Read... [16:37:29]Read from MH i2c: E2 0E 00 42 6B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 8B [16:37:29]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:37:29]wFMCommunicate OK [16:37:29]SAM_PROTO_GetShiftState done [16:37:29]FM_GetShiftState done [16:37:29]req_shift_opened done [16:37:29]requested_item shift.open_date is exist - process it [16:37:29]req_shift_open_date [16:37:29]req_shift_open_date done [16:37:29]produce_requested_data done [16:37:29]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123269,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:37:29]process_action_free close_receipt [16:37:29]json_value_free [16:37:29]json_value_free done [16:37:29]process_json_proto returns [16:37:29]Send response to host [16:37:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123269,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:37:29]free response buf [16:37:29]execute_script done [16:37:29]execute_script returns [16:37:29]free content buf [16:37:29]Sock 9.Close socket [16:37:29]Sock 9.Thread stoped [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:19]accept exits with 7 [16:38:19]New connection [16:38:19]New thread 3066723684 created [16:38:19]Thread 3066580324 joined [16:38:19]Waiting for new connection... [16:38:19] Sock 7.Parse request [16:38:19]Sock 7.Check first char [16:38:19]Sock 7.First char is OK [16:38:19]request: POST /json_proto HTTP/1.0 [16:38:19]Method: POST [16:38:19]URL: /json_proto [16:38:19]Method is POST - this is cgi request [16:38:19]url: /json_proto [16:38:19]query_string will be loaded in cgi processing [16:38:19]execute_cgi json_proto POST (null) [16:38:19]execute_cgi path=json_proto method=POST [16:38:19]POST find Content-Length [16:38:19]Host: 172.17.37.4:8080 [16:38:19]Content-Length: 677 [16:38:19]Content-Type: application/json [16:38:19] [16:38:19]POST finish read [16:38:19]Found Content-Length = 677 [16:38:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:19]execute_script... [16: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)718101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:19]POST & json_proto [16:38:19]process_json_proto [16:38:19]json parsed OK: [16:38:19]protocol is kg_v1.0 [16:38:19]action value=close_receipt [16:38:19]process_action close_receipt [16:38:19]cmd_close_receipt [16:38:19]MH_GetDate [16:38:19]Write to MH i2c: F0 00 00 43 6B 9D [16:38:19]Write i2c OK [16:38:19]MH_I2C_Read... [16:38:19]Read from MH i2c: F0 [16:38:19]MH_I2C_Read... [16:38:19]Read from MH i2c: F0 09 00 [16:38:19]MH_I2C_Read... [16:38:19]Read from MH i2c: F0 09 00 43 6B 00 86 F9 45 67 B8 5A 43 67 8D [16:38:19]GetLastDocTimeStamp 1732639055 [16:38:19]current date 1732639110 [16:38:19]FM_GetShiftState [16:38:19]SAM_PROTO_GetShiftState [16:38:19]wFMCommunicate request_size=4 [16:38:19]MH_SAM_APDU [16:38:19]CAPDU: 80 13 01 00 [16:38:19]Write to MH i2c: E2 08 00 44 6B 80 13 01 00 00 00 00 00 2C [16:38:19]Write i2c OK [16:38:19]MH_I2C_Read... [16:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:19]Read from MH i2c: E2 [16:38:19]MH_I2C_Read... [16:38:19]Read from MH i2c: E2 0E 00 [16:38:19]MH_I2C_Read... [16:38:19]Read from MH i2c: E2 0E 00 44 6B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 8D [16:38:19]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:38:19]wFMCommunicate OK [16:38:19]SAM_PROTO_GetShiftState done [16:38:19]FM_GetShiftState done [16:38:19]opened in 1732579736 [16:38:19]opened+sec_in_day 1732666136 [16:38:19]quantity*price = 40035 [16:38:19]sum+1 = 40037 [16:38:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 124 26.11.2024 16:38 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123270 ФПД: 143913531869778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T163830&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123270&fm=143913531869778&tin=02508201610067®Number=0000000000092681&sum=40000 [16:38:20]StoreToDocumentArchive [16:38:20]shift 557 fd 123270 [16:38:20]save to /storage/0557/doc_00123270 [16:38:20]save last doc name /storage/0557/doc_00123270 to /storage/kkm_last_doc_name [16:38:20]save OK [16:38:20]Clear old archive folders... [16:38:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:38:20]tlvbuf is 01F4DBF0 [16:38:20]SAM_PROTO_ClearQueue [16:38:20]wFMCommunicate request_size=4 [16:38:20]MH_SAM_APDU [16:38:20]CAPDU: 80 09 00 00 [16:38:20]Write to MH i2c: E2 08 00 51 6B 80 09 00 00 00 00 00 00 2E [16:38:20]Write i2c OK [16:38:20]MH_I2C_Read... [16:38:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:20]Read from MH i2c: E2 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: E2 03 00 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: E2 03 00 51 6B 00 90 00 30 [16:38:20]RAPDU: 90 00 [16:38:20]wFMCommunicate OK [16:38:20]SAM_PROTO_ClearQueue done [16:38:20]KKMCreateOFDPacket [16:38:20]OFDProtocolAddRootSTLVToBuf [16:38:20]FM_MakeSignedData [16:38:20]FM_MakeSignedData [16:38:20]SAM_PROTO_SignData [16:38:20]wFMCommunicate request_size=4 [16:38:20]MH_SAM_APDU [16:38:20]CAPDU: 80 0D 01 02 [16:38:20]Write to MH i2c: E2 08 00 52 6B 80 0D 01 02 00 00 00 00 36 [16:38:20]Write i2c OK [16:38:20]MH_I2C_Read... [16:38:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:20]Read from MH i2c: E2 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: E2 03 00 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: E2 03 00 52 6B 00 90 00 31 [16:38:20]RAPDU: 90 00 [16:38:20]wFMCommunicate OK [16:38:20]wFMCommunicate request_size=255 [16:38:20]MH_SAM_APDU [16:38:20]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 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 86 F9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 86 E1 01 00 35 04 06 00 82 [16:38:20]Write to MH i2c: E2 02 01 53 6B 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 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 86 F9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 86 E1 01 00 35 04 06 00 82 00 00 84 [16:38:20]Write i2c OK [16:38:20]MH_I2C_Read... [16:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:20]Read from MH i2c: E2 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: E2 03 00 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: E2 03 00 53 6B 00 90 00 32 [16:38:20]RAPDU: 90 00 [16:38:20]wFMCommunicate OK [16:38:20]wFMCommunicate request_size=10 [16:38:20]MH_SAM_APDU [16:38:20]CAPDU: 80 0D 02 02 05 E3 7A F2 0A 52 [16:38:20]Write to MH i2c: E2 0D 00 54 6B 80 0D 02 02 05 00 E3 7A F2 0A 52 00 00 EE [16:38:20]Write i2c OK [16:38:20]MH_I2C_Read... [16:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:20]Read from MH i2c: E2 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: E2 03 00 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: E2 03 00 54 6B 00 90 00 33 [16:38:20]RAPDU: 90 00 [16:38:20]wFMCommunicate OK [16:38:20]wFMCommunicate request_size=4 [16:38:20]MH_SAM_APDU [16:38:20]CAPDU: 80 0D 03 02 [16:38:20]Write to MH i2c: E2 08 00 55 6B 80 0D 03 02 00 00 00 00 3B [16:38:20]Write i2c OK [16:38:20]MH_I2C_Read... [16:38:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:20]Read from MH i2c: E2 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: E2 0B 00 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: E2 0B 00 55 6B 00 99 93 CB DB 37 51 F8 95 90 00 23 [16:38:20]RAPDU: 99 93 CB DB 37 51 F8 95 90 00 [16:38:20]wFMCommunicate OK [16:38:20]SAM_PROTO_SignData done [16:38:20]FM_MakeSignedData done [16:38:20]CreateOFDProtocolMessage [16:38:20]wFMCommunicate request_size=4 [16:38:20]MH_SAM_APDU [16:38:20]CAPDU: 80 11 00 00 [16:38:20]Write to MH i2c: E2 08 00 56 6B 80 11 00 00 00 00 00 00 3B [16:38:20]Write i2c OK [16:38:20]MH_I2C_Read... [16:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:20]Read from MH i2c: E2 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: E2 17 00 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: E2 17 00 56 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 92 [16:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:38:20]wFMCommunicate OK [16:38:20]CreateOFDProtocolMessage done [16:38:20]OFDSenderStorePacket 123270 [16:38:20]StoreOFDPacket docnum=123270 [16:38:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 24 99 07 01 C6 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 86 F9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 86 E1 01 00 35 04 06 00 82 E3 7A F2 0A 52 99 93 CB DB 37 51 F8 95 [16:38:20]CheckFolder [16:38:20]dirname=/storage/ofd_packets [16:38:20]CheckFolder done [16:38:20]ProducePacketName [16:38:20]name=ofd_packets/00123270 [16:38:20]NVStorageSaveData ofd_packets/00123270 [16:38:20]File name is /storage/ofd_packets/00123270 [16:38:20]Write 301 bytes [16:38:20]NVStorageSaveData done [16:38:20]OFDSenderStorePacket done [16:38:20]KKMCreateOFDPacket done [16:38:20]NVStorageSaveData kkm_last_timestamp [16:38:20]File name is /storage/kkm_last_timestamp [16:38:20]Write 4 bytes [16:38:20]NVStorageSaveData done [16:38:20]ExternCall_PrintAddStr [16:38:20]wPrintStart [16:38:20]Write to MH i2c: 01 00 00 57 6B C2 [16:38:20]Write i2c OK [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: 01 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: 01 07 00 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: 01 07 00 57 6B 00 00 00 00 00 FF 0F D7 [16:38:20]RasterBufferAndPrint [16:38:20]line Счет N : (1)718101 [16:38:20]line ИНН: 02508201610067 [16:38:20]line Контрольно-Кассовый Чек [16:38:20]line ПРОДАЖА [16:38:20]line ТРК (МРК, ГНК) : 22 [16:38:20]line Товар: 2710124130 [16:38:20]line Аи-92-К-4 [16:38:20]line 5.940 * 67.40 [16:38:20]line = 400.36 [16:38:20]line НДС 12% НСП 1% [16:38:21]line > о реализуемом товаре [16:38:21]line ОКРУГЛЕНИЕ: -0.36 [16:38:21]line ИТОГО: 400.00 [16:38:21]line Внесено: 400.00 [16:38:21]line СДАЧА: 0.00 [16:38:21]line НСП 1% : 3.54 [16:38:21]line НДС 12% : 42.52 [16:38:21]line Наличными: 400.00 [16:38:21]line Безнал.: 0.00 [16:38:21]line Место: АЗС № 64 "Партнер Нефть" [16:38:21]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:38:21]line СНО: Общий режим [16:38:21]line Чек 124 26.11.2024 16:38 [16:38:21]line Смена: 557 ФФД: 1.0 [16:38:21]line ЗНМ: 0300000033 [16:38:21]line РНМ: 0000000000092681 [16:38:21]line Версия ККМ: 001 [16:38:21]line ФМ: 0000000000874881 [16:38:21]line ФД: 123270 [16:38:21]line ФПД: 143913531869778 [16:38:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T163830&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123270&fm=143913531869778&tin=02508201610067®Number=0000000000092681&sum=40000 [16:38:21]OFD Sender: Processing packet 123270 [packets to send 7, broken 6] [16:38:21]ProducePacketName [16:38:21]name=ofd_packets/00123270 [16:38:21]OFD Sender: To server: pG, [16:38:21]CommunicateWithHost lk.salyk.kg:30040 [16:38:21]ConnectInit lk.salyk.kg [16:38:21]written 0, free lines is 4095 [16:38:21]Connected sock=10 [16:38:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 24 99 07 01 C6 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 86 F9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 86 E1 01 00 35 04 06 00 82 E3 7A F2 0A 52 99 93 CB DB 37 51 F8 95 [16:38:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 FA C0 47 00 BA 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 86 E1 01 00 F4 03 04 00 48 A5 45 67 B6 04 01 00 00 47 27 79 89 BF 3C 71 EB [16:38:21]CommunicateWithHost err = 0 [16:38:21]CheckOFDResponse [16:38:21]1017 (14) - 77093643461234 [16:38:21]1041 (16) - 0000000000874881 [16:38:21]1040 (4) - 123270 [16:38:21]1012 (4) - 26.11.2024 10:39 [16:38:21]1206 (1) - 0 [16:38:21]OFD Sender: Remove packet 123270 [16:38:21]ProducePacketName [16:38:21]name=ofd_packets/00123270 [16:38:21]NVStorageDeleteData [16:38:21]Write to MH i2c: 01 00 00 82 6B ED [16:38:21]Write i2c OK [16:38:21]MH_I2C_Read... [16:38:21]Read from MH i2c: 01 [16:38:21]MH_I2C_Read... [16:38:21]Read from MH i2c: 01 07 00 [16:38:21]MH_I2C_Read... [16:38:21]Read from MH i2c: 01 07 00 82 6B 00 00 00 00 00 54 0C 54 [16:38:21]RasterBufferAndPrint [16:38:21]line [16:38:21]line [16:38:21]line [16:38:21]line [16:38:21]line [16:38:21]written 0, free lines is 3160 [16:38:21]MH_Cut [16:38:21]Write to MH i2c: D1 01 00 89 6B 01 C6 [16:38:21]Write i2c OK [16:38:21]MH_I2C_Read... [16:38:21]Read from MH i2c: D1 [16:38:21]MH_I2C_Read... [16:38:21]Read from MH i2c: D1 01 00 [16:38:21]MH_I2C_Read... [16:38:21]Read from MH i2c: D1 01 00 89 6B 00 C5 [16:38:21]Write to MH i2c: 01 00 00 8A 6B F5 [16:38:21]Write i2c OK [16:38:21]MH_I2C_Read... [16:38:22]OFD Sender: No OFD packet to send [16:38:23]*** Cut start [16:38:23]*** Partial cut [16:38:23]*** CUTSNS_PIN = 1 [16:38:23]*** CUTSNS_PIN = 0 [16:38:23]*** Brake cut motor [16:38:23]Read from MH i2c: 01 [16:38:23]MH_I2C_Read... [16:38:23]*** Stop cut motor [16:38:23]*** Cut end [16:38:23]Read from MH i2c: 01 07 00 [16:38:23]MH_I2C_Read... [16:38:23]Read from MH i2c: 01 07 00 8A 6B 00 00 00 00 00 FF 0F 0A [16:38:23]process_action close_receipt done [16:38:23]requested_data is exist [16:38:23]produce_requested_data [16:38:23]requested_item fm.sn is exist - process it [16:38:23]wFMCommunicate request_size=4 [16:38:23]MH_SAM_APDU [16:38:23]CAPDU: 80 11 00 00 [16:38:23]Write to MH i2c: E2 08 00 8B 6B 80 11 00 00 00 00 00 00 70 [16:38:23]Write i2c OK [16:38:23]MH_I2C_Read... [16:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:23]Read from MH i2c: E2 [16:38:23]MH_I2C_Read... [16:38:23]Read from MH i2c: E2 17 00 [16:38:23]MH_I2C_Read... [16:38:23]Read from MH i2c: E2 17 00 8B 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C7 [16:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:38:23]wFMCommunicate OK [16:38:23]requested_item fd.num is exist - process it [16:38:23]SAM_PROTO_GetFieldsCounters [16:38:23]wFMCommunicate request_size=4 [16:38:23]MH_SAM_APDU [16:38:23]CAPDU: 80 13 00 00 [16:38:23]Write to MH i2c: E2 08 00 8C 6B 80 13 00 00 00 00 00 00 73 [16:38:23]Write i2c OK [16:38:23]MH_I2C_Read... [16:38:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:23]Read from MH i2c: E2 [16:38:23]MH_I2C_Read... [16:38:23]Read from MH i2c: E2 62 00 [16:38:23]MH_I2C_Read... [16:38:23]Read from MH i2c: E2 62 00 8C 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 86 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [16:38:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 86 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:23]wFMCommunicate OK [16:38:23]SAM_PROTO_GetFieldsCounters done [16:38:23]requested_item shift.num is exist - process it [16:38:23]requested_item shift.opened is exist - process it [16:38:23]req_shift_opened [16:38:23]FM_GetShiftState [16:38:23]SAM_PROTO_GetShiftState [16:38:23]wFMCommunicate request_size=4 [16:38:23]MH_SAM_APDU [16:38:23]CAPDU: 80 13 01 00 [16:38:23]Write to MH i2c: E2 08 00 8D 6B 80 13 01 00 00 00 00 00 75 [16:38:23]Write i2c OK [16:38:23]MH_I2C_Read... [16:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:24]Read from MH i2c: E2 [16:38:24]MH_I2C_Read... [16:38:24]Read from MH i2c: E2 0E 00 [16:38:24]MH_I2C_Read... [16:38:24]Read from MH i2c: E2 0E 00 8D 6B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 D6 [16:38:24]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:38:24]wFMCommunicate OK [16:38:24]SAM_PROTO_GetShiftState done [16:38:24]FM_GetShiftState done [16:38:24]req_shift_opened done [16:38:24]requested_item shift.open_date is exist - process it [16:38:24]req_shift_open_date [16:38:24]req_shift_open_date done [16:38:24]produce_requested_data done [16:38:24]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123270,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:38:24]process_action_free close_receipt [16:38:24]json_value_free [16:38:24]json_value_free done [16:38:24]process_json_proto returns [16:38:24]Send response to host [16:38:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123270,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:38:24]free response buf [16:38:24]execute_script done [16:38:24]execute_script returns [16:38:24]free content buf [16:38:24]Sock 7.Close socket [16:38:24]Sock 7.Thread stoped [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:37]OFD Sender: No OFD packet to send [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:52]OFD Sender: No OFD packet to send [16:38:57]OFD Sender: No OFD packet to send [16:39:02]OFD Sender: No OFD packet to send [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:17]OFD Sender: No OFD packet to send [16:39:22]OFD Sender: No OFD packet to send [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [16:39:52]OFD Sender: No OFD packet to send [16:39:57]OFD Sender: No OFD packet to send [16:40:02]OFD Sender: No OFD packet to send [16:40:04]accept exits with 9 [16:40:04]New connection [16:40:04]New thread 3066580324 created [16:40:04]Thread 3066723684 joined [16:40:04]Waiting for new connection... [16:40:04] Sock 9.Parse request [16:40:04]Sock 9.Check first char [16:40:04]Sock 9.First char is OK [16:40:04]request: POST /json_proto HTTP/1.0 [16:40:04]Method: POST [16:40:04]URL: /json_proto [16:40:04]Method is POST - this is cgi request [16:40:04]url: /json_proto [16:40:04]query_string will be loaded in cgi processing [16:40:04]execute_cgi json_proto POST (null) [16:40:04]execute_cgi path=json_proto method=POST [16:40:04]POST find Content-Length [16:40:04]Host: 172.17.37.4:8080 [16:40:04]Content-Length: 823 [16:40:04]Content-Type: application/json [16:40:04] [16:40:04]POST finish read [16:40:04]Found Content-Length = 823 [16:40:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 60.000, "sum" : 4494.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4494.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:04]execute_script... [16:40:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 60.000, "sum" : 4494.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4494.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:04]POST & json_proto [16:40:04]process_json_proto [16:40:04]json parsed OK: [16:40:04]protocol is kg_v1.0 [16:40:04]action value=close_receipt [16:40:04]process_action close_receipt [16:40:04]cmd_close_receipt [16:40:04]MH_GetDate [16:40:04]Write to MH i2c: F0 00 00 8E 6B E8 [16:40:04]Write i2c OK [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: F0 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: F0 09 00 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: F0 09 00 8E 6B 00 EF F9 45 67 B8 5A 43 67 41 [16:40:04]GetLastDocTimeStamp 1732639110 [16:40:04]current date 1732639215 [16:40:04]FM_GetShiftState [16:40:04]SAM_PROTO_GetShiftState [16:40:04]wFMCommunicate request_size=4 [16:40:04]MH_SAM_APDU [16:40:04]CAPDU: 80 13 01 00 [16:40:04]Write to MH i2c: E2 08 00 8F 6B 80 13 01 00 00 00 00 00 77 [16:40:04]Write i2c OK [16:40:04]MH_I2C_Read... [16:40:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:04]Read from MH i2c: E2 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: E2 0E 00 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: E2 0E 00 8F 6B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 D8 [16:40:04]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:40:04]wFMCommunicate OK [16:40:04]SAM_PROTO_GetShiftState done [16:40:04]FM_GetShiftState done [16:40:04]opened in 1732579736 [16:40:04]opened+sec_in_day 1732666136 [16:40:04]quantity*price = 449400 [16:40:04]sum+1 = 449401 [16:40:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4494.00 НСП 1% : 39.77 НДС 12% : 477.24 Наличными: 0.00 Безнал.: 4494.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 125 26.11.2024 16:40 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123271 ФПД: 201593211444140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T164015&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123271&fm=201593211444140&tin=02508201610067®Number=0000000000092681&sum=449400 [16:40:05]StoreToDocumentArchive [16:40:05]shift 557 fd 123271 [16:40:05]save to /storage/0557/doc_00123271 [16:40:05]save last doc name /storage/0557/doc_00123271 to /storage/kkm_last_doc_name [16:40:05]save OK [16:40:05]Clear old archive folders... [16:40:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:40:05]tlvbuf is B6EA2880 [16:40:05]SAM_PROTO_ClearQueue [16:40:05]wFMCommunicate request_size=4 [16:40:05]MH_SAM_APDU [16:40:05]CAPDU: 80 09 00 00 [16:40:05]Write to MH i2c: E2 08 00 9C 6B 80 09 00 00 00 00 00 00 79 [16:40:05]Write i2c OK [16:40:05]MH_I2C_Read... [16:40:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:05]Read from MH i2c: E2 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 03 00 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 03 00 9C 6B 00 90 00 7B [16:40:05]RAPDU: 90 00 [16:40:05]wFMCommunicate OK [16:40:05]SAM_PROTO_ClearQueue done [16:40:05]KKMCreateOFDPacket [16:40:05]OFDProtocolAddRootSTLVToBuf [16:40:05]FM_MakeSignedData [16:40:05]FM_MakeSignedData [16:40:05]SAM_PROTO_SignData [16:40:05]wFMCommunicate request_size=4 [16:40:05]MH_SAM_APDU [16:40:05]CAPDU: 80 0D 01 02 [16:40:05]Write to MH i2c: E2 08 00 9D 6B 80 0D 01 02 00 00 00 00 81 [16:40:05]Write i2c OK [16:40:05]MH_I2C_Read... [16:40:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:05]Read from MH i2c: E2 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 03 00 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 03 00 9D 6B 00 90 00 7C [16:40:05]RAPDU: 90 00 [16:40:05]wFMCommunicate OK [16:40:05]wFMCommunicate request_size=255 [16:40:05]MH_SAM_APDU [16:40:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 78 DB 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 DB 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 DB 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 EF F9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 87 E1 01 00 35 04 06 00 [16:40:05]Write to MH i2c: E2 02 01 9E 6B 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 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 78 DB 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 DB 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 DB 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 EF F9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 87 E1 01 00 35 04 06 00 00 00 E6 [16:40:05]Write i2c OK [16:40:05]MH_I2C_Read... [16:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:05]Read from MH i2c: E2 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 03 00 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 03 00 9E 6B 00 90 00 7D [16:40:05]RAPDU: 90 00 [16:40:05]wFMCommunicate OK [16:40:05]wFMCommunicate request_size=11 [16:40:05]MH_SAM_APDU [16:40:05]CAPDU: 80 0D 02 02 06 B7 59 13 C1 DB AC [16:40:05]Write to MH i2c: E2 0E 00 9F 6B 80 0D 02 02 06 00 B7 59 13 C1 DB AC 00 00 FB [16:40:05]Write i2c OK [16:40:05]MH_I2C_Read... [16:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:05]Read from MH i2c: E2 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 03 00 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 03 00 9F 6B 00 90 00 7E [16:40:05]RAPDU: 90 00 [16:40:05]wFMCommunicate OK [16:40:05]wFMCommunicate request_size=4 [16:40:05]MH_SAM_APDU [16:40:05]CAPDU: 80 0D 03 02 [16:40:05]Write to MH i2c: E2 08 00 A0 6B 80 0D 03 02 00 00 00 00 86 [16:40:05]Write i2c OK [16:40:05]MH_I2C_Read... [16:40:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:05]Read from MH i2c: E2 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 0B 00 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 0B 00 A0 6B 00 F4 83 04 F8 C5 97 2D D9 90 00 5C [16:40:05]RAPDU: F4 83 04 F8 C5 97 2D D9 90 00 [16:40:05]wFMCommunicate OK [16:40:05]SAM_PROTO_SignData done [16:40:05]FM_MakeSignedData done [16:40:05]CreateOFDProtocolMessage [16:40:05]wFMCommunicate request_size=4 [16:40:05]MH_SAM_APDU [16:40:05]CAPDU: 80 11 00 00 [16:40:05]Write to MH i2c: E2 08 00 A1 6B 80 11 00 00 00 00 00 00 86 [16:40:05]Write i2c OK [16:40:05]MH_I2C_Read... [16:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:05]Read from MH i2c: E2 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 17 00 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 17 00 A1 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DD [16:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:40:05]wFMCommunicate OK [16:40:05]CreateOFDProtocolMessage done [16:40:05]OFDSenderStorePacket 123271 [16:40:05]StoreOFDPacket docnum=123271 [16:40:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 58 CF 08 01 7A DA 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 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 78 DB 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 DB 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 DB 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 EF F9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 87 E1 01 00 35 04 06 00 B7 59 13 C1 DB AC F4 83 04 F8 C5 97 2D D9 [16:40:05]CheckFolder [16:40:05]dirname=/storage/ofd_packets [16:40:05]CheckFolder done [16:40:05]ProducePacketName [16:40:05]name=ofd_packets/00123271 [16:40:05]NVStorageSaveData ofd_packets/00123271 [16:40:05]File name is /storage/ofd_packets/00123271 [16:40:05]Write 302 bytes [16:40:05]NVStorageSaveData done [16:40:05]OFDSenderStorePacket done [16:40:05]KKMCreateOFDPacket done [16:40:05]NVStorageSaveData kkm_last_timestamp [16:40:05]File name is /storage/kkm_last_timestamp [16:40:05]Write 4 bytes [16:40:05]NVStorageSaveData done [16:40:05]ExternCall_PrintAddStr [16:40:05]wPrintStart [16:40:05]Write to MH i2c: 01 00 00 A2 6B 0D [16:40:05]Write i2c OK [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: 01 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: 01 07 00 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: 01 07 00 A2 6B 00 00 00 00 00 FF 0F 22 [16:40:05]RasterBufferAndPrint [16:40:05]line Счет N : (1)718100 [16:40:05]line ИНН: 02508201610067 [16:40:05]line Контрольно-Кассовый Чек [16:40:05]line ПРОДАЖА [16:40:05]line ТРК (МРК, ГНК) : 6 [16:40:05]line Товар: 2710194210 [16:40:05]line ДТ(л)-К-5 [16:40:05]line 60.000 * 74.90 [16:40:05]line = 4494.00 [16:40:05]line НДС 12% НСП 1% [16:40:05]line > о реализуемом товаре [16:40:05]line ИТОГО: 4494.00 [16:40:05]line НСП 1% : 39.77 [16:40:05]line НДС 12% : 477.24 [16:40:05]line Наличными: 0.00 [16:40:05]line Безнал.: 4494.00 [16:40:05]line Место: АЗС № 64 "Партнер Нефть" [16:40:05]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:40:05]line СНО: Общий режим [16:40:05]line Чек 125 26.11.2024 16:40 [16:40:05]line Смена: 557 ФФД: 1.0 [16:40:05]line ЗНМ: 0300000033 [16:40:05]line РНМ: 0000000000092681 [16:40:05]line Версия ККМ: 001 [16:40:05]line Платежная система: Бакай Банк [16:40:05]line ФМ: 0000000000874881 [16:40:05]line ФД: 123271 [16:40:05]line ФПД: 201593211444140 [16:40:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T164015&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123271&fm=201593211444140&tin=02508201610067®Number=0000000000092681&sum=449400 [16:40:06]written 0, free lines is 4095 [16:40:06]OFD Sender: Processing packet 123271 [packets to send 7, broken 6] [16:40:06]ProducePacketName [16:40:06]name=ofd_packets/00123271 [16:40:06]OFD Sender: To server: pG, [16:40:06]CommunicateWithHost lk.salyk.kg:30040 [16:40:06]ConnectInit lk.salyk.kg [16:40:06]Connected sock=10 [16:40:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 58 CF 08 01 7A DA 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 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 78 DB 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 DB 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 DB 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 EF F9 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 87 E1 01 00 35 04 06 00 B7 59 13 C1 DB AC F4 83 04 F8 C5 97 2D D9 [16:40:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 7C A7 47 00 FE 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 87 E1 01 00 F4 03 04 00 B1 A5 45 67 B6 04 01 00 00 C0 F6 13 F7 5D 71 64 57 [16:40:06]CommunicateWithHost err = 0 [16:40:06]CheckOFDResponse [16:40:06]1017 (14) - 77093643461234 [16:40:06]1041 (16) - 0000000000874881 [16:40:06]1040 (4) - 123271 [16:40:06]1012 (4) - 26.11.2024 10:40 [16:40:06]1206 (1) - 0 [16:40:06]OFD Sender: Remove packet 123271 [16:40:06]ProducePacketName [16:40:06]name=ofd_packets/00123271 [16:40:06]NVStorageDeleteData [16:40:06]Write to MH i2c: 01 00 00 CC 6B 37 [16:40:06]Write i2c OK [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: 01 [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: 01 07 00 [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: 01 07 00 CC 6B 00 00 00 00 00 5C 0C A6 [16:40:06]RasterBufferAndPrint [16:40:06]line [16:40:06]line [16:40:06]line [16:40:06]line [16:40:06]line [16:40:06]written 0, free lines is 3169 [16:40:06]MH_Cut [16:40:06]Write to MH i2c: D1 01 00 D3 6B 01 10 [16:40:06]Write i2c OK [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: D1 [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: D1 01 00 [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: D1 01 00 D3 6B 00 0F [16:40:06]Write to MH i2c: 01 00 00 D4 6B 3F [16:40:06]Write i2c OK [16:40:06]MH_I2C_Read... [16:40:06]OFD Sender: No OFD packet to send [16:40:07]*** Cut start [16:40:07]*** Partial cut [16:40:07]*** CUTSNS_PIN = 1 [16:40:07]*** CUTSNS_PIN = 0 [16:40:08]*** Brake cut motor [16:40:08]Read from MH i2c: 01 [16:40:08]MH_I2C_Read... [16:40:08]*** Stop cut motor [16:40:08]*** Cut end [16:40:08]Read from MH i2c: 01 07 00 [16:40:08]MH_I2C_Read... [16:40:08]Read from MH i2c: 01 07 00 D4 6B 00 00 00 00 00 FF 0F 54 [16:40:08]process_action close_receipt done [16:40:08]requested_data is exist [16:40:08]produce_requested_data [16:40:08]requested_item fm.sn is exist - process it [16:40:08]wFMCommunicate request_size=4 [16:40:08]MH_SAM_APDU [16:40:08]CAPDU: 80 11 00 00 [16:40:08]Write to MH i2c: E2 08 00 D5 6B 80 11 00 00 00 00 00 00 BA [16:40:08]Write i2c OK [16:40:08]MH_I2C_Read... [16:40:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:08]Read from MH i2c: E2 [16:40:08]MH_I2C_Read... [16:40:08]Read from MH i2c: E2 17 00 [16:40:08]MH_I2C_Read... [16:40:08]Read from MH i2c: E2 17 00 D5 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 11 [16:40:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:40:08]wFMCommunicate OK [16:40:08]requested_item fd.num is exist - process it [16:40:08]SAM_PROTO_GetFieldsCounters [16:40:08]wFMCommunicate request_size=4 [16:40:08]MH_SAM_APDU [16:40:08]CAPDU: 80 13 00 00 [16:40:08]Write to MH i2c: E2 08 00 D6 6B 80 13 00 00 00 00 00 00 BD [16:40:08]Write i2c OK [16:40:08]MH_I2C_Read... [16:40:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:08]Read from MH i2c: E2 [16:40:08]MH_I2C_Read... [16:40:08]Read from MH i2c: E2 62 00 [16:40:08]MH_I2C_Read... [16:40:08]Read from MH i2c: E2 62 00 D6 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 87 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [16:40:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 87 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:08]wFMCommunicate OK [16:40:08]SAM_PROTO_GetFieldsCounters done [16:40:08]requested_item shift.num is exist - process it [16:40:08]requested_item shift.opened is exist - process it [16:40:08]req_shift_opened [16:40:08]FM_GetShiftState [16:40:08]SAM_PROTO_GetShiftState [16:40:08]wFMCommunicate request_size=4 [16:40:08]MH_SAM_APDU [16:40:08]CAPDU: 80 13 01 00 [16:40:08]Write to MH i2c: E2 08 00 D7 6B 80 13 01 00 00 00 00 00 BF [16:40:08]Write i2c OK [16:40:08]MH_I2C_Read... [16:40:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:08]Read from MH i2c: E2 [16:40:08]MH_I2C_Read... [16:40:08]Read from MH i2c: E2 0E 00 [16:40:08]MH_I2C_Read... [16:40:08]Read from MH i2c: E2 0E 00 D7 6B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 20 [16:40:08]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:40:08]wFMCommunicate OK [16:40:08]SAM_PROTO_GetShiftState done [16:40:08]FM_GetShiftState done [16:40:08]req_shift_opened done [16:40:08]requested_item shift.open_date is exist - process it [16:40:08]req_shift_open_date [16:40:08]req_shift_open_date done [16:40:08]produce_requested_data done [16:40:08]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123271,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:40:08]process_action_free close_receipt [16:40:08]json_value_free [16:40:08]json_value_free done [16:40:08]process_json_proto returns [16:40:08]Send response to host [16:40:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123271,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:40:08]free response buf [16:40:08]execute_script done [16:40:08]execute_script returns [16:40:08]free content buf [16:40:08]Sock 9.Close socket [16:40:08]Sock 9.Thread stoped [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:53]accept exits with 7 [16:40:53]New connection [16:40:53]New thread 3066723684 created [16:40:53]Thread 3066580324 joined [16:40:53]Waiting for new connection... [16:40:53] Sock 7.Parse request [16:40:53]Sock 7.Check first char [16:40:53]Sock 7.First char is OK [16:40:53]request: POST /json_proto HTTP/1.0 [16:40:53]Method: POST [16:40:53]URL: /json_proto [16:40:53]Method is POST - this is cgi request [16:40:53]url: /json_proto [16:40:53]query_string will be loaded in cgi processing [16:40:53]execute_cgi json_proto POST (null) [16:40:53]execute_cgi path=json_proto method=POST [16:40:53]POST find Content-Length [16:40:53]Host: 172.17.37.4:8080 [16:40:53]Content-Length: 678 [16:40:53]Content-Type: application/json [16:40:53] [16:40:53]POST finish read [16:40:53]Found Content-Length = 678 [16:40:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:53]execute_script... [16:40:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:53]POST & json_proto [16:40:53]process_json_proto [16:40:53]json parsed OK: [16:40:53]protocol is kg_v1.0 [16:40:53]action value=close_receipt [16:40:53]process_action close_receipt [16:40:53]cmd_close_receipt [16:40:53]MH_GetDate [16:40:53]Write to MH i2c: F0 00 00 D8 6B 32 [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: F0 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: F0 09 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: F0 09 00 D8 6B 00 21 FA 45 67 B8 5A 43 67 BE [16:40:53]GetLastDocTimeStamp 1732639215 [16:40:53]current date 1732639265 [16:40:53]FM_GetShiftState [16:40:53]SAM_PROTO_GetShiftState [16:40:53]wFMCommunicate request_size=4 [16:40:53]MH_SAM_APDU [16:40:53]CAPDU: 80 13 01 00 [16:40:53]Write to MH i2c: E2 08 00 D9 6B 80 13 01 00 00 00 00 00 C1 [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:53]Read from MH i2c: E2 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 0E 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 0E 00 D9 6B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 22 [16:40:53]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:40:53]wFMCommunicate OK [16:40:53]SAM_PROTO_GetShiftState done [16:40:53]FM_GetShiftState done [16:40:53]opened in 1732579736 [16:40:53]opened+sec_in_day 1732666136 [16:40:53]quantity*price = 70028 [16:40:53]sum+1 = 70030 [16:40:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 126 26.11.2024 16:41 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123272 ФПД: 59995074615328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T164105&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123272&fm=59995074615328&tin=02508201610067®Number=0000000000092681&sum=70000 [16:40:54]StoreToDocumentArchive [16:40:54]shift 557 fd 123272 [16:40:54]save to /storage/0557/doc_00123272 [16:40:54]save last doc name /storage/0557/doc_00123272 to /storage/kkm_last_doc_name [16:40:54]save OK [16:40:54]Clear old archive folders... [16:40:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:54]tlvbuf is B6D70530 [16:40:54]SAM_PROTO_ClearQueue [16:40:54]wFMCommunicate request_size=4 [16:40:54]MH_SAM_APDU [16:40:54]CAPDU: 80 09 00 00 [16:40:54]Write to MH i2c: E2 08 00 E6 6B 80 09 00 00 00 00 00 00 C3 [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:54]Read from MH i2c: E2 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 E6 6B 00 90 00 C5 [16:40:54]RAPDU: 90 00 [16:40:54]wFMCommunicate OK [16:40:54]SAM_PROTO_ClearQueue done [16:40:54]KKMCreateOFDPacket [16:40:54]OFDProtocolAddRootSTLVToBuf [16:40:54]FM_MakeSignedData [16:40:54]FM_MakeSignedData [16:40:54]SAM_PROTO_SignData [16:40:54]wFMCommunicate request_size=4 [16:40:54]MH_SAM_APDU [16:40:54]CAPDU: 80 0D 01 02 [16:40:54]Write to MH i2c: E2 08 00 E7 6B 80 0D 01 02 00 00 00 00 CB [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:54]Read from MH i2c: E2 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 E7 6B 00 90 00 C6 [16:40:54]RAPDU: 90 00 [16:40:54]wFMCommunicate OK [16:40:54]wFMCommunicate request_size=255 [16:40:54]MH_SAM_APDU [16:40:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 21 FA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 88 E1 01 00 35 04 06 00 36 [16:40:54]Write to MH i2c: E2 02 01 E8 6B 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 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 21 FA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 88 E1 01 00 35 04 06 00 36 00 00 54 [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:55]Read from MH i2c: E2 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 03 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 03 00 E8 6B 00 90 00 C7 [16:40:55]RAPDU: 90 00 [16:40:55]wFMCommunicate OK [16:40:55]wFMCommunicate request_size=10 [16:40:55]MH_SAM_APDU [16:40:55]CAPDU: 80 0D 02 02 05 90 B1 1C 58 20 [16:40:55]Write to MH i2c: E2 0D 00 E9 6B 80 0D 02 02 05 00 90 B1 1C 58 20 00 00 AD [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:55]Read from MH i2c: E2 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 03 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 03 00 E9 6B 00 90 00 C8 [16:40:55]RAPDU: 90 00 [16:40:55]wFMCommunicate OK [16:40:55]wFMCommunicate request_size=4 [16:40:55]MH_SAM_APDU [16:40:55]CAPDU: 80 0D 03 02 [16:40:55]Write to MH i2c: E2 08 00 EA 6B 80 0D 03 02 00 00 00 00 D0 [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:55]Read from MH i2c: E2 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 0B 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 0B 00 EA 6B 00 55 5C 57 07 17 B8 ED 13 90 00 AF [16:40:55]RAPDU: 55 5C 57 07 17 B8 ED 13 90 00 [16:40:55]wFMCommunicate OK [16:40:55]SAM_PROTO_SignData done [16:40:55]FM_MakeSignedData done [16:40:55]CreateOFDProtocolMessage [16:40:55]wFMCommunicate request_size=4 [16:40:55]MH_SAM_APDU [16:40:55]CAPDU: 80 11 00 00 [16:40:55]Write to MH i2c: E2 08 00 EB 6B 80 11 00 00 00 00 00 00 D0 [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:55]Read from MH i2c: E2 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 17 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 17 00 EB 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 27 [16:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:40:55]wFMCommunicate OK [16:40:55]CreateOFDProtocolMessage done [16:40:55]OFDSenderStorePacket 123272 [16:40:55]StoreOFDPacket docnum=123272 [16:40:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 53 ED 07 01 2C 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 21 FA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 88 E1 01 00 35 04 06 00 36 90 B1 1C 58 20 55 5C 57 07 17 B8 ED 13 [16:40:55]CheckFolder [16:40:55]dirname=/storage/ofd_packets [16:40:55]CheckFolder done [16:40:55]ProducePacketName [16:40:55]name=ofd_packets/00123272 [16:40:55]NVStorageSaveData ofd_packets/00123272 [16:40:55]File name is /storage/ofd_packets/00123272 [16:40:55]Write 301 bytes [16:40:55]NVStorageSaveData done [16:40:55]OFDSenderStorePacket done [16:40:55]KKMCreateOFDPacket done [16:40:55]NVStorageSaveData kkm_last_timestamp [16:40:55]File name is /storage/kkm_last_timestamp [16:40:55]Write 4 bytes [16:40:55]NVStorageSaveData done [16:40:55]ExternCall_PrintAddStr [16:40:55]wPrintStart [16:40:55]Write to MH i2c: 01 00 00 EC 6B 57 [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: 01 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: 01 07 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: 01 07 00 EC 6B 00 00 00 00 00 FF 0F 6C [16:40:55]RasterBufferAndPrint [16:40:55]line Счет N : (1)718102 [16:40:55]line ИНН: 02508201610067 [16:40:55]line Контрольно-Кассовый Чек [16:40:55]line ПРОДАЖА [16:40:55]line ТРК (МРК, ГНК) : 12 [16:40:55]line Товар: 2710124130 [16:40:55]line Аи-92-К-4 [16:40:55]line 10.390 * 67.40 [16:40:55]line = 700.29 [16:40:55]line НДС 12% НСП 1% [16:40:55]line > о реализуемом товаре [16:40:55]line ОКРУГЛЕНИЕ: -0.29 [16:40:55]line ИТОГО: 700.00 [16:40:55]line Внесено: 700.00 [16:40:55]line СДАЧА: 0.00 [16:40:55]line НСП 1% : 6.20 [16:40:55]line НДС 12% : 74.37 [16:40:55]line Наличными: 700.00 [16:40:55]line Безнал.: 0.00 [16:40:55]line Место: АЗС № 64 "Партнер Нефть" [16:40:55]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:40:55]line СНО: Общий режим [16:40:55]line Чек 126 26.11.2024 16:41 [16:40:55]line Смена: 557 ФФД: 1.0 [16:40:55]line ЗНМ: 0300000033 [16:40:55]line РНМ: 0000000000092681 [16:40:55]line Версия ККМ: 001 [16:40:55]line ФМ: 0000000000874881 [16:40:55]line ФД: 123272 [16:40:55]line ФПД: 59995074615328 [16:40:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T164105&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123272&fm=59995074615328&tin=02508201610067®Number=0000000000092681&sum=70000 [16:40:55]OFD Sender: Processing packet 123272 [packets to send 7, broken 6] [16:40:55]ProducePacketName [16:40:55]name=ofd_packets/00123272 [16:40:55]OFD Sender: To server: pG, [16:40:55]CommunicateWithHost lk.salyk.kg:30040 [16:40:55]ConnectInit lk.salyk.kg [16:40:55]written 0, free lines is 4095 [16:40:55]Connected sock=11 [16:40:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 53 ED 07 01 2C 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 21 FA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 88 E1 01 00 35 04 06 00 36 90 B1 1C 58 20 55 5C 57 07 17 B8 ED 13 [16:40:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 DF 54 47 00 F2 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 88 E1 01 00 F4 03 04 00 E3 A5 45 67 B6 04 01 00 00 16 CC C8 2F 37 75 4F AB [16:40:55]CommunicateWithHost err = 0 [16:40:55]CheckOFDResponse [16:40:55]1017 (14) - 77093643461234 [16:40:55]1041 (16) - 0000000000874881 [16:40:55]1040 (4) - 123272 [16:40:55]1012 (4) - 26.11.2024 10:41 [16:40:55]1206 (1) - 0 [16:40:55]OFD Sender: Remove packet 123272 [16:40:55]ProducePacketName [16:40:55]name=ofd_packets/00123272 [16:40:55]NVStorageDeleteData [16:40:56]Write to MH i2c: 01 00 00 17 6C 83 [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: 01 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: 01 07 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: 01 07 00 17 6C 00 00 00 00 00 54 0C EA [16:40:56]RasterBufferAndPrint [16:40:56]line [16:40:56]line [16:40:56]line [16:40:56]line [16:40:56]line [16:40:56]written 0, free lines is 3159 [16:40:56]MH_Cut [16:40:56]Write to MH i2c: D1 01 00 1E 6C 01 5C [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: D1 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: D1 01 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: D1 01 00 1E 6C 00 5B [16:40:56]Write to MH i2c: 01 00 00 1F 6C 8B [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:56]OFD Sender: No OFD packet to send [16:40:57]*** Cut start [16:40:57]*** Partial cut [16:40:57]*** CUTSNS_PIN = 1 [16:40:57]*** CUTSNS_PIN = 0 [16:40:57]*** Brake cut motor [16:40:58]Read from MH i2c: 01 [16:40:58]MH_I2C_Read... [16:40:58]*** Stop cut motor [16:40:58]*** Cut end [16:40:58]Read from MH i2c: 01 07 00 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: 01 07 00 1F 6C 00 00 00 00 00 FF 0F A0 [16:40:58]process_action close_receipt done [16:40:58]requested_data is exist [16:40:58]produce_requested_data [16:40:58]requested_item fm.sn is exist - process it [16:40:58]wFMCommunicate request_size=4 [16:40:58]MH_SAM_APDU [16:40:58]CAPDU: 80 11 00 00 [16:40:58]Write to MH i2c: E2 08 00 20 6C 80 11 00 00 00 00 00 00 06 [16:40:58]Write i2c OK [16:40:58]MH_I2C_Read... [16:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:58]Read from MH i2c: E2 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 17 00 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 17 00 20 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5D [16:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:40:58]wFMCommunicate OK [16:40:58]requested_item fd.num is exist - process it [16:40:58]SAM_PROTO_GetFieldsCounters [16:40:58]wFMCommunicate request_size=4 [16:40:58]MH_SAM_APDU [16:40:58]CAPDU: 80 13 00 00 [16:40:58]Write to MH i2c: E2 08 00 21 6C 80 13 00 00 00 00 00 00 09 [16:40:58]Write i2c OK [16:40:58]MH_I2C_Read... [16:40:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:58]Read from MH i2c: E2 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 62 00 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 62 00 21 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 88 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [16:40:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 88 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:58]wFMCommunicate OK [16:40:58]SAM_PROTO_GetFieldsCounters done [16:40:58]requested_item shift.num is exist - process it [16:40:58]requested_item shift.opened is exist - process it [16:40:58]req_shift_opened [16:40:58]FM_GetShiftState [16:40:58]SAM_PROTO_GetShiftState [16:40:58]wFMCommunicate request_size=4 [16:40:58]MH_SAM_APDU [16:40:58]CAPDU: 80 13 01 00 [16:40:58]Write to MH i2c: E2 08 00 22 6C 80 13 01 00 00 00 00 00 0B [16:40:58]Write i2c OK [16:40:58]MH_I2C_Read... [16:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:58]Read from MH i2c: E2 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 0E 00 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 0E 00 22 6C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 6C [16:40:58]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:40:58]wFMCommunicate OK [16:40:58]SAM_PROTO_GetShiftState done [16:40:58]FM_GetShiftState done [16:40:58]req_shift_opened done [16:40:58]requested_item shift.open_date is exist - process it [16:40:58]req_shift_open_date [16:40:58]req_shift_open_date done [16:40:58]produce_requested_data done [16:40:58]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123272,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:40:58]process_action_free close_receipt [16:40:58]json_value_free [16:40:58]json_value_free done [16:40:58]process_json_proto returns [16:40:58]Send response to host [16:40:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123272,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:40:58]free response buf [16:40:58]execute_script done [16:40:58]execute_script returns [16:40:58]free content buf [16:40:58]Sock 7.Close socket [16:40:58]Sock 7.Thread stoped [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:01]accept exits with 9 [16:44:01]New connection [16:44:01]New thread 3066580324 created [16:44:01]Thread 3066723684 joined [16:44:01]Waiting for new connection... [16:44:01] Sock 9.Parse request [16:44:01]Sock 9.Check first char [16:44:01]Sock 9.First char is OK [16:44:01]request: POST /json_proto HTTP/1.0 [16:44:01]Method: POST [16:44:01]URL: /json_proto [16:44:01]Method is POST - this is cgi request [16:44:01]url: /json_proto [16:44:01]query_string will be loaded in cgi processing [16:44:01]execute_cgi json_proto POST (null) [16:44:01]execute_cgi path=json_proto method=POST [16:44:01]POST find Content-Length [16:44:01]Host: 172.17.37.4:8080 [16:44:01]Content-Length: 800 [16:44:01]Content-Type: application/json [16:44:01] [16:44:01]POST finish read [16:44:01]Found Content-Length = 800 [16:44:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:01]execute_script... [16:44:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:01]POST & json_proto [16:44:01]process_json_proto [16:44:01]json parsed OK: [16:44:01]protocol is kg_v1.0 [16:44:01]action value=close_receipt [16:44:01]process_action close_receipt [16:44:01]cmd_close_receipt [16:44:01]MH_GetDate [16:44:01]Write to MH i2c: F0 00 00 23 6C 7E [16:44:01]Write i2c OK [16:44:01]MH_I2C_Read... [16:44:01]Read from MH i2c: F0 [16:44:01]MH_I2C_Read... [16:44:01]Read from MH i2c: F0 09 00 [16:44:01]MH_I2C_Read... [16:44:01]Read from MH i2c: F0 09 00 23 6C 00 DD FA 45 67 B8 5A 43 67 C6 [16:44:01]GetLastDocTimeStamp 1732639265 [16:44:01]current date 1732639453 [16:44:01]FM_GetShiftState [16:44:01]SAM_PROTO_GetShiftState [16:44:01]wFMCommunicate request_size=4 [16:44:01]MH_SAM_APDU [16:44:01]CAPDU: 80 13 01 00 [16:44:01]Write to MH i2c: E2 08 00 24 6C 80 13 01 00 00 00 00 00 0D [16:44:01]Write i2c OK [16:44:01]MH_I2C_Read... [16:44:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:01]Read from MH i2c: E2 [16:44:01]MH_I2C_Read... [16:44:01]Read from MH i2c: E2 0E 00 [16:44:01]MH_I2C_Read... [16:44:01]Read from MH i2c: E2 0E 00 24 6C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 6E [16:44:01]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:44:01]wFMCommunicate OK [16:44:01]SAM_PROTO_GetShiftState done [16:44:01]FM_GetShiftState done [16:44:01]opened in 1732579736 [16:44:01]opened+sec_in_day 1732666136 [16:44:01]quantity*price = 30060 [16:44:01]sum+1 = 30061 [16:44:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.60 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.60 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 127 26.11.2024 16:44 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123273 ФПД: 78631978202373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T164413&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123273&fm=78631978202373&tin=02508201610067®Number=0000000000092681&sum=30060 [16:44:02]StoreToDocumentArchive [16:44:02]shift 557 fd 123273 [16:44:02]save to /storage/0557/doc_00123273 [16:44:02]save last doc name /storage/0557/doc_00123273 to /storage/kkm_last_doc_name [16:44:02]save OK [16:44:02]Clear old archive folders... [16:44:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:44:02]tlvbuf is 0212BA50 [16:44:02]SAM_PROTO_ClearQueue [16:44:02]wFMCommunicate request_size=4 [16:44:02]MH_SAM_APDU [16:44:02]CAPDU: 80 09 00 00 [16:44:02]Write to MH i2c: E2 08 00 31 6C 80 09 00 00 00 00 00 00 0F [16:44:02]Write i2c OK [16:44:02]MH_I2C_Read... [16:44:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:02]Read from MH i2c: E2 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: E2 03 00 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: E2 03 00 31 6C 00 90 00 11 [16:44:02]RAPDU: 90 00 [16:44:02]wFMCommunicate OK [16:44:02]SAM_PROTO_ClearQueue done [16:44:02]KKMCreateOFDPacket [16:44:02]OFDProtocolAddRootSTLVToBuf [16:44:02]FM_MakeSignedData [16:44:02]FM_MakeSignedData [16:44:02]SAM_PROTO_SignData [16:44:02]wFMCommunicate request_size=4 [16:44:02]MH_SAM_APDU [16:44:02]CAPDU: 80 0D 01 02 [16:44:02]Write to MH i2c: E2 08 00 32 6C 80 0D 01 02 00 00 00 00 17 [16:44:02]Write i2c OK [16:44:02]MH_I2C_Read... [16:44:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:02]Read from MH i2c: E2 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: E2 03 00 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: E2 03 00 32 6C 00 90 00 12 [16:44:02]RAPDU: 90 00 [16:44:02]wFMCommunicate OK [16:44:02]wFMCommunicate request_size=255 [16:44:02]MH_SAM_APDU [16:44:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 DD FA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 89 E1 01 00 35 04 06 00 47 [16:44:02]Write to MH i2c: E2 02 01 33 6C 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 DD FA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 89 E1 01 00 35 04 06 00 47 00 00 25 [16:44:02]Write i2c OK [16:44:02]MH_I2C_Read... [16:44:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:03]Read from MH i2c: E2 [16:44:03]MH_I2C_Read... [16:44:03]Read from MH i2c: E2 03 00 [16:44:03]MH_I2C_Read... [16:44:03]Read from MH i2c: E2 03 00 33 6C 00 90 00 13 [16:44:03]RAPDU: 90 00 [16:44:03]wFMCommunicate OK [16:44:03]wFMCommunicate request_size=10 [16:44:03]MH_SAM_APDU [16:44:03]CAPDU: 80 0D 02 02 05 83 EF 20 F5 05 [16:44:03]Write to MH i2c: E2 0D 00 34 6C 80 0D 02 02 05 00 83 EF 20 F5 05 00 00 B0 [16:44:03]Write i2c OK [16:44:03]MH_I2C_Read... [16:44:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:03]Read from MH i2c: E2 [16:44:03]MH_I2C_Read... [16:44:03]Read from MH i2c: E2 03 00 [16:44:03]MH_I2C_Read... [16:44:03]Read from MH i2c: E2 03 00 34 6C 00 90 00 14 [16:44:03]RAPDU: 90 00 [16:44:03]wFMCommunicate OK [16:44:03]wFMCommunicate request_size=4 [16:44:03]MH_SAM_APDU [16:44:03]CAPDU: 80 0D 03 02 [16:44:03]Write to MH i2c: E2 08 00 35 6C 80 0D 03 02 00 00 00 00 1C [16:44:03]Write i2c OK [16:44:03]MH_I2C_Read... [16:44:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:03]Read from MH i2c: E2 [16:44:03]MH_I2C_Read... [16:44:03]Read from MH i2c: E2 0B 00 [16:44:03]MH_I2C_Read... [16:44:03]Read from MH i2c: E2 0B 00 35 6C 00 93 DD B5 DF DF 8C 4C F8 90 00 D0 [16:44:03]RAPDU: 93 DD B5 DF DF 8C 4C F8 90 00 [16:44:03]wFMCommunicate OK [16:44:03]SAM_PROTO_SignData done [16:44:03]FM_MakeSignedData done [16:44:03]CreateOFDProtocolMessage [16:44:03]wFMCommunicate request_size=4 [16:44:03]MH_SAM_APDU [16:44:03]CAPDU: 80 11 00 00 [16:44:03]Write to MH i2c: E2 08 00 36 6C 80 11 00 00 00 00 00 00 1C [16:44:03]Write i2c OK [16:44:03]MH_I2C_Read... [16:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:03]Read from MH i2c: E2 [16:44:03]MH_I2C_Read... [16:44:03]Read from MH i2c: E2 17 00 [16:44:03]MH_I2C_Read... [16:44:03]Read from MH i2c: E2 17 00 36 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 73 [16:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:44:03]wFMCommunicate OK [16:44:03]CreateOFDProtocolMessage done [16:44:03]OFDSenderStorePacket 123273 [16:44:03]StoreOFDPacket docnum=123273 [16:44:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B5 6B 07 01 18 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 DD FA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 89 E1 01 00 35 04 06 00 47 83 EF 20 F5 05 93 DD B5 DF DF 8C 4C F8 [16:44:03]CheckFolder [16:44:03]dirname=/storage/ofd_packets [16:44:03]CheckFolder done [16:44:03]ProducePacketName [16:44:03]name=ofd_packets/00123273 [16:44:03]NVStorageSaveData ofd_packets/00123273 [16:44:03]File name is /storage/ofd_packets/00123273 [16:44:03]Write 301 bytes [16:44:03]NVStorageSaveData done [16:44:03]OFDSenderStorePacket done [16:44:03]KKMCreateOFDPacket done [16:44:03]NVStorageSaveData kkm_last_timestamp [16:44:03]File name is /storage/kkm_last_timestamp [16:44:03]Write 4 bytes [16:44:03]NVStorageSaveData done [16:44:03]ExternCall_PrintAddStr [16:44:03]wPrintStart [16:44:03]Write to MH i2c: 01 00 00 37 6C A3 [16:44:03]Write i2c OK [16:44:03]MH_I2C_Read... [16:44:03]Read from MH i2c: 01 [16:44:03]MH_I2C_Read... [16:44:03]Read from MH i2c: 01 07 00 [16:44:03]MH_I2C_Read... [16:44:03]Read from MH i2c: 01 07 00 37 6C 00 00 00 00 00 FF 0F B8 [16:44:03]RasterBufferAndPrint [16:44:03]line Счет N : (1)718103 [16:44:03]line ИНН: 02508201610067 [16:44:03]line Контрольно-Кассовый Чек [16:44:03]line ПРОДАЖА [16:44:03]line ТРК (МРК, ГНК) : 12 [16:44:03]line Товар: 2710124130 [16:44:03]line Аи-92-К-4 [16:44:03]line 4.460 * 67.40 [16:44:03]line = 300.60 [16:44:03]line НДС 12% НСП 1% [16:44:03]line > о реализуемом товаре [16:44:03]line ИТОГО: 300.60 [16:44:03]line НСП 1% : 2.66 [16:44:03]line НДС 12% : 31.92 [16:44:03]line Наличными: 0.00 [16:44:03]line Безнал.: 300.60 [16:44:03]line Место: АЗС № 64 "Партнер Нефть" [16:44:03]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:44:03]line СНО: Общий режим [16:44:03]line Чек 127 26.11.2024 16:44 [16:44:03]line Смена: 557 ФФД: 1.0 [16:44:03]line ЗНМ: 0300000033 [16:44:03]line РНМ: 0000000000092681 [16:44:03]line Версия ККМ: 001 [16:44:03]line Платежная система: O! деньги [16:44:03]line ФМ: 0000000000874881 [16:44:03]line ФД: 123273 [16:44:03]line ФПД: 78631978202373 [16:44:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T164413&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123273&fm=78631978202373&tin=02508201610067®Number=0000000000092681&sum=30060 [16:44:03]written 0, free lines is 4095 [16:44:03]OFD Sender: Processing packet 123273 [packets to send 7, broken 6] [16:44:03]ProducePacketName [16:44:03]name=ofd_packets/00123273 [16:44:03]OFD Sender: To server: pG, [16:44:03]CommunicateWithHost lk.salyk.kg:30040 [16:44:03]ConnectInit lk.salyk.kg [16:44:03]Connected sock=10 [16:44:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B5 6B 07 01 18 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 DD FA 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 89 E1 01 00 35 04 06 00 47 83 EF 20 F5 05 93 DD B5 DF DF 8C 4C F8 [16:44:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 AB 37 47 00 1B DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 89 E1 01 00 F4 03 04 00 9F A6 45 67 B6 04 01 00 00 A0 EE 65 63 3D 8E F9 CA [16:44:03]CommunicateWithHost err = 0 [16:44:03]CheckOFDResponse [16:44:03]1017 (14) - 77093643461234 [16:44:03]1041 (16) - 0000000000874881 [16:44:03]1040 (4) - 123273 [16:44:03]1012 (4) - 26.11.2024 10:44 [16:44:03]1206 (1) - 0 [16:44:03]OFD Sender: Remove packet 123273 [16:44:03]ProducePacketName [16:44:03]name=ofd_packets/00123273 [16:44:03]NVStorageDeleteData [16:44:04]Write to MH i2c: 01 00 00 61 6C CD [16:44:04]Write i2c OK [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: 01 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: 01 07 00 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: 01 07 00 61 6C 00 00 00 00 00 5F 0C 3F [16:44:04]RasterBufferAndPrint [16:44:04]line [16:44:04]line [16:44:04]line [16:44:04]line [16:44:04]line [16:44:04]written 0, free lines is 3173 [16:44:04]MH_Cut [16:44:04]Write to MH i2c: D1 01 00 68 6C 01 A6 [16:44:04]Write i2c OK [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: D1 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: D1 01 00 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: D1 01 00 68 6C 00 A5 [16:44:04]Write to MH i2c: 01 00 00 69 6C D5 [16:44:04]Write i2c OK [16:44:04]MH_I2C_Read... [16:44:04]OFD Sender: No OFD packet to send [16:44:05]*** Cut start [16:44:05]*** Partial cut [16:44:05]*** CUTSNS_PIN = 1 [16:44:05]*** CUTSNS_PIN = 0 [16:44:05]*** Brake cut motor [16:44:05]Read from MH i2c: 01 [16:44:06]MH_I2C_Read... [16:44:06]*** Stop cut motor [16:44:06]*** Cut end [16:44:06]Read from MH i2c: 01 07 00 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: 01 07 00 69 6C 00 00 00 00 00 FF 0F EA [16:44:06]process_action close_receipt done [16:44:06]requested_data is exist [16:44:06]produce_requested_data [16:44:06]requested_item fm.sn is exist - process it [16:44:06]wFMCommunicate request_size=4 [16:44:06]MH_SAM_APDU [16:44:06]CAPDU: 80 11 00 00 [16:44:06]Write to MH i2c: E2 08 00 6A 6C 80 11 00 00 00 00 00 00 50 [16:44:06]Write i2c OK [16:44:06]MH_I2C_Read... [16:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:06]Read from MH i2c: E2 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 17 00 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 17 00 6A 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A7 [16:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:44:06]wFMCommunicate OK [16:44:06]requested_item fd.num is exist - process it [16:44:06]SAM_PROTO_GetFieldsCounters [16:44:06]wFMCommunicate request_size=4 [16:44:06]MH_SAM_APDU [16:44:06]CAPDU: 80 13 00 00 [16:44:06]Write to MH i2c: E2 08 00 6B 6C 80 13 00 00 00 00 00 00 53 [16:44:06]Write i2c OK [16:44:06]MH_I2C_Read... [16:44:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:06]Read from MH i2c: E2 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 62 00 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 62 00 6B 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 89 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [16:44:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 89 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:06]wFMCommunicate OK [16:44:06]SAM_PROTO_GetFieldsCounters done [16:44:06]requested_item shift.num is exist - process it [16:44:06]requested_item shift.opened is exist - process it [16:44:06]req_shift_opened [16:44:06]FM_GetShiftState [16:44:06]SAM_PROTO_GetShiftState [16:44:06]wFMCommunicate request_size=4 [16:44:06]MH_SAM_APDU [16:44:06]CAPDU: 80 13 01 00 [16:44:06]Write to MH i2c: E2 08 00 6C 6C 80 13 01 00 00 00 00 00 55 [16:44:06]Write i2c OK [16:44:06]MH_I2C_Read... [16:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:06]Read from MH i2c: E2 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 0E 00 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 0E 00 6C 6C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 B6 [16:44:06]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:44:06]wFMCommunicate OK [16:44:06]SAM_PROTO_GetShiftState done [16:44:06]FM_GetShiftState done [16:44:06]req_shift_opened done [16:44:06]requested_item shift.open_date is exist - process it [16:44:06]req_shift_open_date [16:44:06]req_shift_open_date done [16:44:06]produce_requested_data done [16:44:06]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123273,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:44:06]process_action_free close_receipt [16:44:06]json_value_free [16:44:06]json_value_free done [16:44:06]process_json_proto returns [16:44:06]Send response to host [16:44:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123273,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:44:06]free response buf [16:44:06]execute_script done [16:44:06]execute_script returns [16:44:06]free content buf [16:44:06]Sock 9.Close socket [16:44:06]Sock 9.Thread stoped [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:40]accept exits with 7 [16:46:40]New connection [16:46:40]New thread 3066723684 created [16:46:40] Sock 7.Parse request [16:46:40]Thread 3066580324 joined [16:46:40]Sock 7.Check first char [16:46:40]Waiting for new connection... [16:46:40]Sock 7.First char is OK [16:46:40]request: POST /json_proto HTTP/1.0 [16:46:40]Method: POST [16:46:40]URL: /json_proto [16:46:40]Method is POST - this is cgi request [16:46:40]url: /json_proto [16:46:40]query_string will be loaded in cgi processing [16:46:40]execute_cgi json_proto POST (null) [16:46:40]execute_cgi path=json_proto method=POST [16:46:40]POST find Content-Length [16:46:40]Host: 172.17.37.4:8080 [16:46:40]Content-Length: 677 [16:46:40]Content-Type: application/json [16:46:40] [16:46:40]POST finish read [16:46:40]Found Content-Length = 677 [16:46:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:40]execute_script... [16:46:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:40]POST & json_proto [16:46:40]process_json_proto [16:46:40]json parsed OK: [16:46:40]protocol is kg_v1.0 [16:46:40]action value=close_receipt [16:46:40]process_action close_receipt [16:46:40]cmd_close_receipt [16:46:40]MH_GetDate [16:46:40]Write to MH i2c: F0 00 00 6D 6C C8 [16:46:40]Write i2c OK [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: F0 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: F0 09 00 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: F0 09 00 6D 6C 00 7C FB 45 67 B8 5A 43 67 B0 [16:46:40]GetLastDocTimeStamp 1732639453 [16:46:40]current date 1732639612 [16:46:40]FM_GetShiftState [16:46:40]SAM_PROTO_GetShiftState [16:46:40]wFMCommunicate request_size=4 [16:46:40]MH_SAM_APDU [16:46:40]CAPDU: 80 13 01 00 [16:46:40]Write to MH i2c: E2 08 00 6E 6C 80 13 01 00 00 00 00 00 57 [16:46:40]Write i2c OK [16:46:40]MH_I2C_Read... [16:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:40]Read from MH i2c: E2 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 0E 00 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 0E 00 6E 6C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 B8 [16:46:40]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:46:40]wFMCommunicate OK [16:46:40]SAM_PROTO_GetShiftState done [16:46:40]FM_GetShiftState done [16:46:40]opened in 1732579736 [16:46:40]opened+sec_in_day 1732666136 [16:46:40]quantity*price = 30060 [16:46:40]sum+1 = 30061 [16:46:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 128 26.11.2024 16:46 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123274 ФПД: 263625142359198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T164652&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123274&fm=263625142359198&tin=02508201610067®Number=0000000000092681&sum=30000 [16:46:41]StoreToDocumentArchive [16:46:41]shift 557 fd 123274 [16:46:41]save to /storage/0557/doc_00123274 [16:46:41]save last doc name /storage/0557/doc_00123274 to /storage/kkm_last_doc_name [16:46:41]save OK [16:46:41]Clear old archive folders... [16:46:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:41]tlvbuf is 01F47090 [16:46:41]SAM_PROTO_ClearQueue [16:46:41]wFMCommunicate request_size=4 [16:46:41]MH_SAM_APDU [16:46:41]CAPDU: 80 09 00 00 [16:46:41]Write to MH i2c: E2 08 00 7B 6C 80 09 00 00 00 00 00 00 59 [16:46:41]Write i2c OK [16:46:41]MH_I2C_Read... [16:46:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:41]Read from MH i2c: E2 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 7B 6C 00 90 00 5B [16:46:41]RAPDU: 90 00 [16:46:41]wFMCommunicate OK [16:46:41]SAM_PROTO_ClearQueue done [16:46:41]KKMCreateOFDPacket [16:46:41]OFDProtocolAddRootSTLVToBuf [16:46:41]FM_MakeSignedData [16:46:41]FM_MakeSignedData [16:46:41]SAM_PROTO_SignData [16:46:41]wFMCommunicate request_size=4 [16:46:41]MH_SAM_APDU [16:46:41]CAPDU: 80 0D 01 02 [16:46:41]Write to MH i2c: E2 08 00 7C 6C 80 0D 01 02 00 00 00 00 61 [16:46:41]Write i2c OK [16:46:41]MH_I2C_Read... [16:46:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:41]Read from MH i2c: E2 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 7C 6C 00 90 00 5C [16:46:41]RAPDU: 90 00 [16:46:41]wFMCommunicate OK [16:46:41]wFMCommunicate request_size=255 [16:46:41]MH_SAM_APDU [16:46:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7C FB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8A E1 01 00 35 04 06 00 EF [16:46:42]Write to MH i2c: E2 02 01 7D 6C 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7C FB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8A E1 01 00 35 04 06 00 EF 00 00 41 [16:46:42]Write i2c OK [16:46:42]MH_I2C_Read... [16:46:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:42]Read from MH i2c: E2 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 03 00 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 03 00 7D 6C 00 90 00 5D [16:46:42]RAPDU: 90 00 [16:46:42]wFMCommunicate OK [16:46:42]wFMCommunicate request_size=10 [16:46:42]MH_SAM_APDU [16:46:42]CAPDU: 80 0D 02 02 05 C4 02 F6 D4 9E [16:46:42]Write to MH i2c: E2 0D 00 7E 6C 80 0D 02 02 05 00 C4 02 F6 D4 9E 00 00 9C [16:46:42]Write i2c OK [16:46:42]MH_I2C_Read... [16:46:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:42]Read from MH i2c: E2 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 03 00 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 03 00 7E 6C 00 90 00 5E [16:46:42]RAPDU: 90 00 [16:46:42]wFMCommunicate OK [16:46:42]wFMCommunicate request_size=4 [16:46:42]MH_SAM_APDU [16:46:42]CAPDU: 80 0D 03 02 [16:46:42]Write to MH i2c: E2 08 00 7F 6C 80 0D 03 02 00 00 00 00 66 [16:46:42]Write i2c OK [16:46:42]MH_I2C_Read... [16:46:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:42]Read from MH i2c: E2 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 0B 00 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 0B 00 7F 6C 00 1C D4 9B 09 88 B4 F0 F0 90 00 17 [16:46:42]RAPDU: 1C D4 9B 09 88 B4 F0 F0 90 00 [16:46:42]wFMCommunicate OK [16:46:42]SAM_PROTO_SignData done [16:46:42]FM_MakeSignedData done [16:46:42]CreateOFDProtocolMessage [16:46:42]wFMCommunicate request_size=4 [16:46:42]MH_SAM_APDU [16:46:42]CAPDU: 80 11 00 00 [16:46:42]Write to MH i2c: E2 08 00 80 6C 80 11 00 00 00 00 00 00 66 [16:46:42]Write i2c OK [16:46:42]MH_I2C_Read... [16:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:42]Read from MH i2c: E2 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 17 00 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 17 00 80 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BD [16:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:46:42]wFMCommunicate OK [16:46:42]CreateOFDProtocolMessage done [16:46:42]OFDSenderStorePacket 123274 [16:46:42]StoreOFDPacket docnum=123274 [16:46:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 FC 8B 07 01 A6 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7C FB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8A E1 01 00 35 04 06 00 EF C4 02 F6 D4 9E 1C D4 9B 09 88 B4 F0 F0 [16:46:42]CheckFolder [16:46:42]dirname=/storage/ofd_packets [16:46:42]CheckFolder done [16:46:42]ProducePacketName [16:46:42]name=ofd_packets/00123274 [16:46:42]NVStorageSaveData ofd_packets/00123274 [16:46:42]File name is /storage/ofd_packets/00123274 [16:46:42]Write 301 bytes [16:46:42]NVStorageSaveData done [16:46:42]OFDSenderStorePacket done [16:46:42]KKMCreateOFDPacket done [16:46:42]NVStorageSaveData kkm_last_timestamp [16:46:42]File name is /storage/kkm_last_timestamp [16:46:42]Write 4 bytes [16:46:42]NVStorageSaveData done [16:46:42]ExternCall_PrintAddStr [16:46:42]wPrintStart [16:46:42]Write to MH i2c: 01 00 00 81 6C ED [16:46:42]Write i2c OK [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: 01 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: 01 07 00 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: 01 07 00 81 6C 00 00 00 00 00 FF 0F 02 [16:46:42]RasterBufferAndPrint [16:46:42]line Счет N : (1)718105 [16:46:42]line ИНН: 02508201610067 [16:46:42]line Контрольно-Кассовый Чек [16:46:42]line ПРОДАЖА [16:46:42]line ТРК (МРК, ГНК) : 32 [16:46:42]line Товар: 2710124130 [16:46:42]line Аи-92-К-4 [16:46:42]line 4.460 * 67.40 [16:46:42]line = 300.60 [16:46:42]line НДС 12% НСП 1% [16:46:42]line > о реализуемом товаре [16:46:42]line ОКРУГЛЕНИЕ: -0.60 [16:46:42]line ИТОГО: 300.00 [16:46:42]line Внесено: 300.00 [16:46:42]line СДАЧА: 0.00 [16:46:42]line НСП 1% : 2.66 [16:46:42]line НДС 12% : 31.92 [16:46:42]line Наличными: 300.00 [16:46:42]line Безнал.: 0.00 [16:46:42]line Место: АЗС № 64 "Партнер Нефть" [16:46:42]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:46:42]line СНО: Общий режим [16:46:42]line Чек 128 26.11.2024 16:46 [16:46:42]line Смена: 557 ФФД: 1.0 [16:46:42]line ЗНМ: 0300000033 [16:46:42]line РНМ: 0000000000092681 [16:46:42]line Версия ККМ: 001 [16:46:42]line ФМ: 0000000000874881 [16:46:42]line ФД: 123274 [16:46:42]line ФПД: 263625142359198 [16:46:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T164652&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123274&fm=263625142359198&tin=02508201610067®Number=0000000000092681&sum=30000 [16:46:42]OFD Sender: Processing packet 123274 [packets to send 7, broken 6] [16:46:42]ProducePacketName [16:46:42]name=ofd_packets/00123274 [16:46:42]OFD Sender: To server: pG, [16:46:42]CommunicateWithHost lk.salyk.kg:30040 [16:46:42]ConnectInit lk.salyk.kg [16:46:42]written 0, free lines is 4095 [16:46:43]Write to MH i2c: 01 00 00 AC 6C 18 [16:46:43]Write i2c OK [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: 01 [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: 01 07 00 [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: 01 07 00 AC 6C 00 00 00 00 00 50 0C 7B [16:46:43]RasterBufferAndPrint [16:46:43]line [16:46:43]line [16:46:43]line [16:46:43]line [16:46:43]line [16:46:43]written 0, free lines is 3154 [16:46:43]MH_Cut [16:46:43]Write to MH i2c: D1 01 00 B3 6C 01 F1 [16:46:43]Write i2c OK [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: D1 [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: D1 01 00 [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: D1 01 00 B3 6C 00 F0 [16:46:43]Write to MH i2c: 01 00 00 B4 6C 20 [16:46:43]Write i2c OK [16:46:43]MH_I2C_Read... [16:46:44]*** Cut start [16:46:44]*** Partial cut [16:46:44]*** CUTSNS_PIN = 1 [16:46:44]*** CUTSNS_PIN = 0 [16:46:44]*** Brake cut motor [16:46:45]Read from MH i2c: 01 [16:46:45]MH_I2C_Read... [16:46:45]*** Stop cut motor [16:46:45]*** Cut end [16:46:45]Read from MH i2c: 01 07 00 [16:46:45]MH_I2C_Read... [16:46:45]Read from MH i2c: 01 07 00 B4 6C 00 00 00 00 00 FF 0F 35 [16:46:45]process_action close_receipt done [16:46:45]requested_data is exist [16:46:45]produce_requested_data [16:46:45]requested_item fm.sn is exist - process it [16:46:45]wFMCommunicate request_size=4 [16:46:45]MH_SAM_APDU [16:46:45]CAPDU: 80 11 00 00 [16:46:45]Write to MH i2c: E2 08 00 B5 6C 80 11 00 00 00 00 00 00 9B [16:46:45]Write i2c OK [16:46:45]MH_I2C_Read... [16:46:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:45]Read from MH i2c: E2 [16:46:45]MH_I2C_Read... [16:46:45]Read from MH i2c: E2 17 00 [16:46:45]MH_I2C_Read... [16:46:45]Read from MH i2c: E2 17 00 B5 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F2 [16:46:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:46:45]wFMCommunicate OK [16:46:45]requested_item fd.num is exist - process it [16:46:45]SAM_PROTO_GetFieldsCounters [16:46:45]wFMCommunicate request_size=4 [16:46:45]MH_SAM_APDU [16:46:45]CAPDU: 80 13 00 00 [16:46:45]Write to MH i2c: E2 08 00 B6 6C 80 13 00 00 00 00 00 00 9E [16:46:45]Write i2c OK [16:46:45]MH_I2C_Read... [16:46:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:45]Read from MH i2c: E2 [16:46:45]MH_I2C_Read... [16:46:45]Read from MH i2c: E2 62 00 [16:46:45]MH_I2C_Read... [16:46:45]Read from MH i2c: E2 62 00 B6 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8A E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [16:46:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8A E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:45]wFMCommunicate OK [16:46:45]SAM_PROTO_GetFieldsCounters done [16:46:45]requested_item shift.num is exist - process it [16:46:45]requested_item shift.opened is exist - process it [16:46:45]req_shift_opened [16:46:45]FM_GetShiftState [16:46:45]SAM_PROTO_GetShiftState [16:46:45]wFMCommunicate request_size=4 [16:46:45]MH_SAM_APDU [16:46:45]CAPDU: 80 13 01 00 [16:46:45]Write to MH i2c: E2 08 00 B7 6C 80 13 01 00 00 00 00 00 A0 [16:46:45]Write i2c OK [16:46:45]MH_I2C_Read... [16:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:45]Read from MH i2c: E2 [16:46:45]MH_I2C_Read... [16:46:45]Read from MH i2c: E2 0E 00 [16:46:45]MH_I2C_Read... [16:46:45]Read from MH i2c: E2 0E 00 B7 6C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 01 [16:46:45]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:46:45]wFMCommunicate OK [16:46:45]SAM_PROTO_GetShiftState done [16:46:45]FM_GetShiftState done [16:46:45]req_shift_opened done [16:46:45]requested_item shift.open_date is exist - process it [16:46:45]req_shift_open_date [16:46:45]req_shift_open_date done [16:46:45]produce_requested_data done [16:46:45]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123274,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:46:45]process_action_free close_receipt [16:46:45]json_value_free [16:46:45]json_value_free done [16:46:45]process_json_proto returns [16:46:45]Send response to host [16:46:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123274,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:46:45]free response buf [16:46:45]execute_script done [16:46:45]execute_script returns [16:46:45]free content buf [16:46:45]Sock 7.Close socket [16:46:45]Sock 7.Thread stoped [16:48:43]accept exits with 9 [16:48:43]New connection [16:48:43]New thread 3066580324 created [16:48:43]Thread 3066723684 joined [16:48:43]Waiting for new connection... [16:48:43] Sock 9.Parse request [16:48:43]Sock 9.Check first char [16:48:43]Sock 9.First char is OK [16:48:43]request: POST /json_proto HTTP/1.0 [16:48:43]Method: POST [16:48:43]URL: /json_proto [16:48:43]Method is POST - this is cgi request [16:48:43]url: /json_proto [16:48:43]query_string will be loaded in cgi processing [16:48:43]execute_cgi json_proto POST (null) [16:48:43]execute_cgi path=json_proto method=POST [16:48:43]POST find Content-Length [16:48:43]Host: 172.17.37.4:8080 [16:48:43]Content-Length: 677 [16:48:43]Content-Type: application/json [16:48:43] [16:48:43]POST finish read [16:48:43]Found Content-Length = 677 [16:48:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:43]execute_script... [16:48:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:43]POST & json_proto [16:48:43]process_json_proto [16:48:43]json parsed OK: [16:48:43]protocol is kg_v1.0 [16:48:43]action value=close_receipt [16:48:43]process_action close_receipt [16:48:43]cmd_close_receipt [16:48:43]MH_GetDate [16:48:43]Write to MH i2c: F0 00 00 B8 6C 13 [16:48:43]Write i2c OK [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: F0 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: F0 09 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: F0 09 00 B8 6C 00 F7 FB 45 67 B8 5A 43 67 76 [16:48:43]GetLastDocTimeStamp 1732639612 [16:48:43]current date 1732639735 [16:48:43]FM_GetShiftState [16:48:43]SAM_PROTO_GetShiftState [16:48:43]wFMCommunicate request_size=4 [16:48:43]MH_SAM_APDU [16:48:43]CAPDU: 80 13 01 00 [16:48:43]Write to MH i2c: E2 08 00 B9 6C 80 13 01 00 00 00 00 00 A2 [16:48:43]Write i2c OK [16:48:43]MH_I2C_Read... [16:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:43]Read from MH i2c: E2 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 0E 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 0E 00 B9 6C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 03 [16:48:43]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:48:43]wFMCommunicate OK [16:48:43]SAM_PROTO_GetShiftState done [16:48:43]FM_GetShiftState done [16:48:43]opened in 1732579736 [16:48:43]opened+sec_in_day 1732666136 [16:48:43]quantity*price = 40035 [16:48:43]sum+1 = 40037 [16:48:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 129 26.11.2024 16:48 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123275 ФПД: 210388709153469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T164855&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123275&fm=210388709153469&tin=02508201610067®Number=0000000000092681&sum=40000 [16:48:44]StoreToDocumentArchive [16:48:44]shift 557 fd 123275 [16:48:44]save to /storage/0557/doc_00123275 [16:48:44]save last doc name /storage/0557/doc_00123275 to /storage/kkm_last_doc_name [16:48:44]save OK [16:48:44]Clear old archive folders... [16:48:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:44]tlvbuf is 021DA580 [16:48:44]SAM_PROTO_ClearQueue [16:48:44]wFMCommunicate request_size=4 [16:48:44]MH_SAM_APDU [16:48:44]CAPDU: 80 09 00 00 [16:48:44]Write to MH i2c: E2 08 00 C6 6C 80 09 00 00 00 00 00 00 A4 [16:48:44]Write i2c OK [16:48:44]MH_I2C_Read... [16:48:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:44]Read from MH i2c: E2 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: E2 03 00 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: E2 03 00 C6 6C 00 90 00 A6 [16:48:44]RAPDU: 90 00 [16:48:44]wFMCommunicate OK [16:48:44]SAM_PROTO_ClearQueue done [16:48:44]KKMCreateOFDPacket [16:48:44]OFDProtocolAddRootSTLVToBuf [16:48:44]FM_MakeSignedData [16:48:44]FM_MakeSignedData [16:48:44]SAM_PROTO_SignData [16:48:44]wFMCommunicate request_size=4 [16:48:44]MH_SAM_APDU [16:48:44]CAPDU: 80 0D 01 02 [16:48:44]Write to MH i2c: E2 08 00 C7 6C 80 0D 01 02 00 00 00 00 AC [16:48:44]Write i2c OK [16:48:44]MH_I2C_Read... [16:48:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:44]Read from MH i2c: E2 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: E2 03 00 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: E2 03 00 C7 6C 00 90 00 A7 [16:48:44]RAPDU: 90 00 [16:48:44]wFMCommunicate OK [16:48:44]wFMCommunicate request_size=255 [16:48:44]MH_SAM_APDU [16:48:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 F7 FB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8B E1 01 00 35 04 06 00 BF [16:48:44]Write to MH i2c: E2 02 01 C8 6C 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 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 F7 FB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8B E1 01 00 35 04 06 00 BF 00 00 B4 [16:48:44]Write i2c OK [16:48:44]MH_I2C_Read... [16:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:45]Read from MH i2c: E2 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 03 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 03 00 C8 6C 00 90 00 A8 [16:48:45]RAPDU: 90 00 [16:48:45]wFMCommunicate OK [16:48:45]wFMCommunicate request_size=10 [16:48:45]MH_SAM_APDU [16:48:45]CAPDU: 80 0D 02 02 05 58 F0 46 1A BD [16:48:45]Write to MH i2c: E2 0D 00 C9 6C 80 0D 02 02 05 00 58 F0 46 1A BD 00 00 1E [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:45]Read from MH i2c: E2 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 03 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 03 00 C9 6C 00 90 00 A9 [16:48:45]RAPDU: 90 00 [16:48:45]wFMCommunicate OK [16:48:45]wFMCommunicate request_size=4 [16:48:45]MH_SAM_APDU [16:48:45]CAPDU: 80 0D 03 02 [16:48:45]Write to MH i2c: E2 08 00 CA 6C 80 0D 03 02 00 00 00 00 B1 [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:45]Read from MH i2c: E2 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 0B 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 0B 00 CA 6C 00 25 B5 80 16 86 B8 E7 2D 90 00 74 [16:48:45]RAPDU: 25 B5 80 16 86 B8 E7 2D 90 00 [16:48:45]wFMCommunicate OK [16:48:45]SAM_PROTO_SignData done [16:48:45]FM_MakeSignedData done [16:48:45]CreateOFDProtocolMessage [16:48:45]wFMCommunicate request_size=4 [16:48:45]MH_SAM_APDU [16:48:45]CAPDU: 80 11 00 00 [16:48:45]Write to MH i2c: E2 08 00 CB 6C 80 11 00 00 00 00 00 00 B1 [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:45]Read from MH i2c: E2 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 17 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 17 00 CB 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 08 [16:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:48:45]wFMCommunicate OK [16:48:45]CreateOFDProtocolMessage done [16:48:45]OFDSenderStorePacket 123275 [16:48:45]StoreOFDPacket docnum=123275 [16:48:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 15 49 07 01 D1 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 F7 FB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8B E1 01 00 35 04 06 00 BF 58 F0 46 1A BD 25 B5 80 16 86 B8 E7 2D [16:48:45]CheckFolder [16:48:45]dirname=/storage/ofd_packets [16:48:45]CheckFolder done [16:48:45]ProducePacketName [16:48:45]name=ofd_packets/00123275 [16:48:45]NVStorageSaveData ofd_packets/00123275 [16:48:45]File name is /storage/ofd_packets/00123275 [16:48:45]Write 301 bytes [16:48:45]NVStorageSaveData done [16:48:45]OFDSenderStorePacket done [16:48:45]KKMCreateOFDPacket done [16:48:45]NVStorageSaveData kkm_last_timestamp [16:48:45]File name is /storage/kkm_last_timestamp [16:48:45]Write 4 bytes [16:48:45]NVStorageSaveData done [16:48:45]ExternCall_PrintAddStr [16:48:45]wPrintStart [16:48:45]Write to MH i2c: 01 00 00 CC 6C 38 [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: 01 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: 01 07 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: 01 07 00 CC 6C 00 00 00 00 00 FF 0F 4D [16:48:45]RasterBufferAndPrint [16:48:45]line Счет N : (1)718106 [16:48:45]line ИНН: 02508201610067 [16:48:45]line Контрольно-Кассовый Чек [16:48:45]line ПРОДАЖА [16:48:45]line ТРК (МРК, ГНК) : 32 [16:48:45]line Товар: 2710124130 [16:48:45]line Аи-92-К-4 [16:48:45]line 5.940 * 67.40 [16:48:45]line = 400.36 [16:48:45]line НДС 12% НСП 1% [16:48:45]line > о реализуемом товаре [16:48:45]line ОКРУГЛЕНИЕ: -0.36 [16:48:45]line ИТОГО: 400.00 [16:48:45]line Внесено: 400.00 [16:48:45]line СДАЧА: 0.00 [16:48:45]line НСП 1% : 3.54 [16:48:45]line НДС 12% : 42.52 [16:48:45]line Наличными: 400.00 [16:48:45]line Безнал.: 0.00 [16:48:45]line Место: АЗС № 64 "Партнер Нефть" [16:48:45]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:48:45]line СНО: Общий режим [16:48:45]line Чек 129 26.11.2024 16:48 [16:48:45]line Смена: 557 ФФД: 1.0 [16:48:45]line ЗНМ: 0300000033 [16:48:45]line РНМ: 0000000000092681 [16:48:45]line Версия ККМ: 001 [16:48:45]line ФМ: 0000000000874881 [16:48:45]line ФД: 123275 [16:48:45]line ФПД: 210388709153469 [16:48:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T164855&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123275&fm=210388709153469&tin=02508201610067®Number=0000000000092681&sum=40000 [16:48:45]written 0, free lines is 4095 [16:48:46]Write to MH i2c: 01 00 00 F7 6C 63 [16:48:46]Write i2c OK [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: 01 [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: 01 07 00 [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: 01 07 00 F7 6C 00 00 00 00 00 57 0C CD [16:48:46]RasterBufferAndPrint [16:48:46]line [16:48:46]line [16:48:46]line [16:48:46]line [16:48:46]line [16:48:46]written 0, free lines is 3163 [16:48:46]MH_Cut [16:48:46]Write to MH i2c: D1 01 00 FE 6C 01 3C [16:48:46]Write i2c OK [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: D1 [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: D1 01 00 [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: D1 01 00 FE 6C 00 3B [16:48:46]Write to MH i2c: 01 00 00 FF 6C 6B [16:48:46]Write i2c OK [16:48:46]MH_I2C_Read... [16:48:47]*** Cut start [16:48:47]*** Partial cut [16:48:47]*** CUTSNS_PIN = 1 [16:48:47]*** CUTSNS_PIN = 0 [16:48:47]*** Brake cut motor [16:48:48]Read from MH i2c: 01 [16:48:48]MH_I2C_Read... [16:48:48]*** Stop cut motor [16:48:48]*** Cut end [16:48:48]Read from MH i2c: 01 07 00 [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: 01 07 00 FF 6C 00 00 00 00 00 FF 0F 80 [16:48:48]process_action close_receipt done [16:48:48]requested_data is exist [16:48:48]produce_requested_data [16:48:48]requested_item fm.sn is exist - process it [16:48:48]wFMCommunicate request_size=4 [16:48:48]MH_SAM_APDU [16:48:48]CAPDU: 80 11 00 00 [16:48:48]Write to MH i2c: E2 08 00 00 6D 80 11 00 00 00 00 00 00 E7 [16:48:48]Write i2c OK [16:48:48]MH_I2C_Read... [16:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:48]Read from MH i2c: E2 [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: E2 17 00 [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: E2 17 00 00 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3E [16:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:48:48]wFMCommunicate OK [16:48:48]requested_item fd.num is exist - process it [16:48:48]SAM_PROTO_GetFieldsCounters [16:48:48]wFMCommunicate request_size=4 [16:48:48]MH_SAM_APDU [16:48:48]CAPDU: 80 13 00 00 [16:48:48]Write to MH i2c: E2 08 00 01 6D 80 13 00 00 00 00 00 00 EA [16:48:48]Write i2c OK [16:48:48]MH_I2C_Read... [16:48:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:48]Read from MH i2c: E2 [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: E2 62 00 [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: E2 62 00 01 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8B E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [16:48:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8B E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:48]wFMCommunicate OK [16:48:48]SAM_PROTO_GetFieldsCounters done [16:48:48]requested_item shift.num is exist - process it [16:48:48]requested_item shift.opened is exist - process it [16:48:48]req_shift_opened [16:48:48]FM_GetShiftState [16:48:48]SAM_PROTO_GetShiftState [16:48:48]wFMCommunicate request_size=4 [16:48:48]MH_SAM_APDU [16:48:48]CAPDU: 80 13 01 00 [16:48:48]Write to MH i2c: E2 08 00 02 6D 80 13 01 00 00 00 00 00 EC [16:48:48]Write i2c OK [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: E2 [16:48:48]MH_I2C_Read... [16:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:48]Read from MH i2c: E2 0E 00 [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: E2 0E 00 02 6D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 4D [16:48:48]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:48:48]wFMCommunicate OK [16:48:48]SAM_PROTO_GetShiftState done [16:48:48]FM_GetShiftState done [16:48:48]req_shift_opened done [16:48:48]requested_item shift.open_date is exist - process it [16:48:48]req_shift_open_date [16:48:48]req_shift_open_date done [16:48:48]produce_requested_data done [16:48:48]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123275,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:48:48]process_action_free close_receipt [16:48:48]json_value_free [16:48:48]json_value_free done [16:48:48]process_json_proto returns [16:48:48]Send response to host [16:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123275,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:48:48]free response buf [16:48:48]execute_script done [16:48:48]execute_script returns [16:48:48]free content buf [16:48:48]Sock 9.Close socket [16:48:48]Sock 9.Thread stoped [16:48:54]ConnectInit Can't connect to host [16:48:54]CommunicateWithHost connect error [16:48:54]CommunicateWithHost err = -1 [16:48:54]OFD Sender: Server communicate error [16:48:54]OFD Sender: Processing packet 123274 [packets to send 8, broken 6] [16:48:54]ProducePacketName [16:48:54]name=ofd_packets/00123274 [16:48:54]OFD Sender: To server: pG, [16:48:54]CommunicateWithHost lk.salyk.kg:30040 [16:48:54]ConnectInit lk.salyk.kg [16:48:54]Connected sock=9 [16:48:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 FC 8B 07 01 A6 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7C FB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8A E1 01 00 35 04 06 00 EF C4 02 F6 D4 9E 1C D4 9B 09 88 B4 F0 F0 [16:48:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 97 2C 47 00 73 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8A E1 01 00 F4 03 04 00 C1 A7 45 67 B6 04 01 00 00 A1 4C BE 11 F0 51 AB 90 [16:48:54]CommunicateWithHost err = 0 [16:48:54]CheckOFDResponse [16:48:54]1017 (14) - 77093643461234 [16:48:54]1041 (16) - 0000000000874881 [16:48:54]1040 (4) - 123274 [16:48:54]1012 (4) - 26.11.2024 10:49 [16:48:54]1206 (1) - 0 [16:48:54]OFD Sender: Remove packet 123274 [16:48:54]ProducePacketName [16:48:54]name=ofd_packets/00123274 [16:48:54]NVStorageDeleteData [16:48:55]OFD Sender: Processing packet 123275 [packets to send 7, broken 6] [16:48:55]ProducePacketName [16:48:55]name=ofd_packets/00123275 [16:48:55]OFD Sender: To server: pG, [16:48:55]CommunicateWithHost lk.salyk.kg:30040 [16:48:55]ConnectInit lk.salyk.kg [16:48:55]Connected sock=9 [16:48:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 15 49 07 01 D1 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 F7 FB 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8B E1 01 00 35 04 06 00 BF 58 F0 46 1A BD 25 B5 80 16 86 B8 E7 2D [16:48:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 7A 1C 47 00 5A 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8B E1 01 00 F4 03 04 00 C2 A7 45 67 B6 04 01 00 00 79 7F E7 56 AA 60 BE 1A [16:48:55]CommunicateWithHost err = 0 [16:48:55]CheckOFDResponse [16:48:55]1017 (14) - 77093643461234 [16:48:55]1041 (16) - 0000000000874881 [16:48:55]1040 (4) - 123275 [16:48:55]1012 (4) - 26.11.2024 10:49 [16:48:55]1206 (1) - 0 [16:48:55]OFD Sender: Remove packet 123275 [16:48:55]ProducePacketName [16:48:55]name=ofd_packets/00123275 [16:48:55]NVStorageDeleteData [16:48:55]OFD Sender: No OFD packet to send [16:48:56]accept exits with 7 [16:48:56]New connection [16:48:56]New thread 3066723684 created [16:48:56]Thread 3066580324 joined [16:48:56]Waiting for new connection... [16:48:56] Sock 7.Parse request [16:48:56]Sock 7.Check first char [16:48:56]Sock 7.First char is OK [16:48:56]request: POST /json_proto HTTP/1.0 [16:48:56]Method: POST [16:48:56]URL: /json_proto [16:48:56]Method is POST - this is cgi request [16:48:56]url: /json_proto [16:48:56]query_string will be loaded in cgi processing [16:48:56]execute_cgi json_proto POST (null) [16:48:56]execute_cgi path=json_proto method=POST [16:48:56]POST find Content-Length [16:48:56]Host: 172.17.37.4:8080 [16:48:56]Content-Length: 796 [16:48:56]Content-Type: application/json [16:48:56] [16:48:56]POST finish read [16:48:56]Found Content-Length = 796 [16:48:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 97.450, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53274", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:56]execute_script... [16:48:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 97.450, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53274", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:56]POST & json_proto [16:48:56]process_json_proto [16:48:56]json parsed OK: [16:48:56]protocol is kg_v1.0 [16:48:56]action value=close_receipt [16:48:56]process_action close_receipt [16:48:56]cmd_close_receipt [16:48:56]MH_GetDate [16:48:56]Write to MH i2c: F0 00 00 03 6D 5F [16:48:56]Write i2c OK [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: F0 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: F0 09 00 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: F0 09 00 03 6D 00 04 FC 45 67 B8 5A 43 67 D0 [16:48:56]GetLastDocTimeStamp 1732639735 [16:48:56]current date 1732639748 [16:48:56]FM_GetShiftState [16:48:56]SAM_PROTO_GetShiftState [16:48:56]wFMCommunicate request_size=4 [16:48:56]MH_SAM_APDU [16:48:56]CAPDU: 80 13 01 00 [16:48:56]Write to MH i2c: E2 08 00 04 6D 80 13 01 00 00 00 00 00 EE [16:48:56]Write i2c OK [16:48:56]MH_I2C_Read... [16:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:56]Read from MH i2c: E2 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: E2 0E 00 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: E2 0E 00 04 6D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 4F [16:48:56]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:48:56]wFMCommunicate OK [16:48:56]SAM_PROTO_GetShiftState done [16:48:56]FM_GetShiftState done [16:48:56]opened in 1732579736 [16:48:56]opened+sec_in_day 1732666136 [16:48:56]quantity*price = 0 [16:48:56]sum+1 = 1 [16:48:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 130 26.11.2024 16:49 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 53274 ФМ: 0000000000874881 ФД: 123276 ФПД: 93899925534113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T164908&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123276&fm=93899925534113&tin=02508201610067®Number=0000000000092681&sum=0 [16:48:57]StoreToDocumentArchive [16:48:57]shift 557 fd 123276 [16:48:57]save to /storage/0557/doc_00123276 [16:48:57]save last doc name /storage/0557/doc_00123276 to /storage/kkm_last_doc_name [16:48:57]save OK [16:48:57]Clear old archive folders... [16:48:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:48:57]tlvbuf is 01F338C0 [16:48:57]SAM_PROTO_ClearQueue [16:48:57]wFMCommunicate request_size=4 [16:48:57]MH_SAM_APDU [16:48:57]CAPDU: 80 09 00 00 [16:48:57]Write to MH i2c: E2 08 00 11 6D 80 09 00 00 00 00 00 00 F0 [16:48:57]Write i2c OK [16:48:57]MH_I2C_Read... [16:48:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:57]Read from MH i2c: E2 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 03 00 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 03 00 11 6D 00 90 00 F2 [16:48:57]RAPDU: 90 00 [16:48:57]wFMCommunicate OK [16:48:57]SAM_PROTO_ClearQueue done [16:48:57]KKMCreateOFDPacket [16:48:57]OFDProtocolAddRootSTLVToBuf [16:48:57]FM_MakeSignedData [16:48:57]FM_MakeSignedData [16:48:57]SAM_PROTO_SignData [16:48:57]wFMCommunicate request_size=4 [16:48:57]MH_SAM_APDU [16:48:57]CAPDU: 80 0D 01 02 [16:48:57]Write to MH i2c: E2 08 00 12 6D 80 0D 01 02 00 00 00 00 F8 [16:48:57]Write i2c OK [16:48:57]MH_I2C_Read... [16:48:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:57]Read from MH i2c: E2 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 03 00 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 03 00 12 6D 00 90 00 F3 [16:48:57]RAPDU: 90 00 [16:48:57]wFMCommunicate OK [16:48:57]wFMCommunicate request_size=255 [16:48:57]MH_SAM_APDU [16:48:57]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 35 FF 03 08 00 03 AA 7C 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 04 FC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8C E1 01 00 35 04 06 00 [16:48:57]Write to MH i2c: E2 02 01 13 6D 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 35 FF 03 08 00 03 AA 7C 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 04 FC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8C E1 01 00 35 04 06 00 00 00 34 [16:48:57]Write i2c OK [16:48:57]MH_I2C_Read... [16:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:58]Read from MH i2c: E2 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 03 00 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 03 00 13 6D 00 90 00 F4 [16:48:58]RAPDU: 90 00 [16:48:58]wFMCommunicate OK [16:48:58]wFMCommunicate request_size=11 [16:48:58]MH_SAM_APDU [16:48:58]CAPDU: 80 0D 02 02 06 55 66 C7 B4 B5 A1 [16:48:58]Write to MH i2c: E2 0E 00 14 6D 80 0D 02 02 06 00 55 66 C7 B4 B5 A1 00 00 93 [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:58]Read from MH i2c: E2 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 03 00 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 03 00 14 6D 00 90 00 F5 [16:48:58]RAPDU: 90 00 [16:48:58]wFMCommunicate OK [16:48:58]wFMCommunicate request_size=4 [16:48:58]MH_SAM_APDU [16:48:58]CAPDU: 80 0D 03 02 [16:48:58]Write to MH i2c: E2 08 00 15 6D 80 0D 03 02 00 00 00 00 FD [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:58]Read from MH i2c: E2 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 0B 00 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 0B 00 15 6D 00 64 C1 D2 26 E0 DA 33 D5 90 00 DD [16:48:58]RAPDU: 64 C1 D2 26 E0 DA 33 D5 90 00 [16:48:58]wFMCommunicate OK [16:48:58]SAM_PROTO_SignData done [16:48:58]FM_MakeSignedData done [16:48:58]CreateOFDProtocolMessage [16:48:58]wFMCommunicate request_size=4 [16:48:58]MH_SAM_APDU [16:48:58]CAPDU: 80 11 00 00 [16:48:58]Write to MH i2c: E2 08 00 16 6D 80 11 00 00 00 00 00 00 FD [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 [16:48:58]MH_I2C_Read... [16:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:58]Read from MH i2c: E2 17 00 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 17 00 16 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 54 [16:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:48:58]wFMCommunicate OK [16:48:58]CreateOFDProtocolMessage done [16:48:58]OFDSenderStorePacket 123276 [16:48:58]StoreOFDPacket docnum=123276 [16:48:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 35 C7 08 01 27 BC 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 35 FF 03 08 00 03 AA 7C 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 04 FC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8C E1 01 00 35 04 06 00 55 66 C7 B4 B5 A1 64 C1 D2 26 E0 DA 33 D5 [16:48:58]CheckFolder [16:48:58]dirname=/storage/ofd_packets [16:48:58]CheckFolder done [16:48:58]ProducePacketName [16:48:58]name=ofd_packets/00123276 [16:48:58]NVStorageSaveData ofd_packets/00123276 [16:48:58]File name is /storage/ofd_packets/00123276 [16:48:58]Write 302 bytes [16:48:58]NVStorageSaveData done [16:48:58]OFDSenderStorePacket done [16:48:58]KKMCreateOFDPacket done [16:48:58]NVStorageSaveData kkm_last_timestamp [16:48:58]File name is /storage/kkm_last_timestamp [16:48:58]Write 4 bytes [16:48:58]NVStorageSaveData done [16:48:58]ExternCall_PrintAddStr [16:48:58]wPrintStart [16:48:58]Write to MH i2c: 01 00 00 17 6D 84 [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: 01 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: 01 07 00 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: 01 07 00 17 6D 00 00 00 00 00 FF 0F 99 [16:48:58]RasterBufferAndPrint [16:48:58]line Счет N : (1)718104 [16:48:58]line ИНН: 02508201610067 [16:48:58]line Контрольно-Кассовый Чек [16:48:58]line ПРОДАЖА [16:48:58]line ТРК (МРК, ГНК) : 6 [16:48:58]line Товар: 2710194210 [16:48:58]line ДТ(л)-К-5 [16:48:58]line 97.450 * 0.00 [16:48:58]line = 0.00 [16:48:58]line НДС 12% НСП 1% [16:48:58]line > о реализуемом товаре [16:48:58]line ИТОГО: 0.00 [16:48:58]line НСП 1% : 0.00 [16:48:58]line НДС 12% : 0.00 [16:48:58]line Наличными: 0.00 [16:48:58]line Безнал.: 0.00 [16:48:58]line Место: АЗС № 64 "Партнер Нефть" [16:48:58]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:48:58]line СНО: Общий режим [16:48:58]line Чек 130 26.11.2024 16:49 [16:48:58]line Смена: 557 ФФД: 1.0 [16:48:58]line ЗНМ: 0300000033 [16:48:58]line РНМ: 0000000000092681 [16:48:58]line Версия ККМ: 001 [16:48:58]line Талоны: Топливная Карта [16:48:58]line 53274 [16:48:58]line ФМ: 0000000000874881 [16:48:58]line ФД: 123276 [16:48:58]line ФПД: 93899925534113 [16:48:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T164908&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123276&fm=93899925534113&tin=02508201610067®Number=0000000000092681&sum=0 [16:48:58]written 0, free lines is 4095 [16:48:58]OFD Sender: Processing packet 123276 [packets to send 7, broken 6] [16:48:58]ProducePacketName [16:48:58]name=ofd_packets/00123276 [16:48:58]OFD Sender: To server: pG, [16:48:58]CommunicateWithHost lk.salyk.kg:30040 [16:48:58]ConnectInit lk.salyk.kg [16:48:58]Connected sock=10 [16:48:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 35 C7 08 01 27 BC 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 35 FF 03 08 00 03 AA 7C 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 04 FC 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8C E1 01 00 35 04 06 00 55 66 C7 B4 B5 A1 64 C1 D2 26 E0 DA 33 D5 [16:48:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 BF 26 47 00 14 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8C E1 01 00 F4 03 04 00 C5 A7 45 67 B6 04 01 00 00 C7 84 02 55 26 2E 5F ED [16:48:58]CommunicateWithHost err = 0 [16:48:58]CheckOFDResponse [16:48:58]1017 (14) - 77093643461234 [16:48:58]1041 (16) - 0000000000874881 [16:48:58]1040 (4) - 123276 [16:48:58]1012 (4) - 26.11.2024 10:49 [16:48:58]1206 (1) - 0 [16:48:58]OFD Sender: Remove packet 123276 [16:48:58]ProducePacketName [16:48:58]name=ofd_packets/00123276 [16:48:58]NVStorageDeleteData [16:48:58]Write to MH i2c: 01 00 00 41 6D AE [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: 01 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: 01 07 00 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: 01 07 00 41 6D 00 00 00 00 00 83 0C 44 [16:48:58]RasterBufferAndPrint [16:48:58]line [16:48:58]line [16:48:58]line [16:48:58]line [16:48:58]line [16:48:58]written 0, free lines is 3210 [16:48:58]MH_Cut [16:48:58]Write to MH i2c: D1 01 00 48 6D 01 87 [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: D1 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: D1 01 00 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: D1 01 00 48 6D 00 86 [16:48:58]Write to MH i2c: 01 00 00 49 6D B6 [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:59]OFD Sender: No OFD packet to send [16:49:00]*** Cut start [16:49:00]*** Partial cut [16:49:00]*** CUTSNS_PIN = 1 [16:49:00]*** CUTSNS_PIN = 0 [16:49:00]*** Brake cut motor [16:49:00]Read from MH i2c: 01 [16:49:00]MH_I2C_Read... [16:49:00]*** Stop cut motor [16:49:00]*** Cut end [16:49:00]Read from MH i2c: 01 07 00 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: 01 07 00 49 6D 00 00 00 00 00 FF 0F CB [16:49:00]process_action close_receipt done [16:49:00]requested_data is exist [16:49:00]produce_requested_data [16:49:00]requested_item fm.sn is exist - process it [16:49:00]wFMCommunicate request_size=4 [16:49:00]MH_SAM_APDU [16:49:00]CAPDU: 80 11 00 00 [16:49:00]Write to MH i2c: E2 08 00 4A 6D 80 11 00 00 00 00 00 00 31 [16:49:00]Write i2c OK [16:49:00]MH_I2C_Read... [16:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:00]Read from MH i2c: E2 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 17 00 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 17 00 4A 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 88 [16:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:49:00]wFMCommunicate OK [16:49:00]requested_item fd.num is exist - process it [16:49:00]SAM_PROTO_GetFieldsCounters [16:49:00]wFMCommunicate request_size=4 [16:49:00]MH_SAM_APDU [16:49:00]CAPDU: 80 13 00 00 [16:49:00]Write to MH i2c: E2 08 00 4B 6D 80 13 00 00 00 00 00 00 34 [16:49:00]Write i2c OK [16:49:00]MH_I2C_Read... [16:49:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:00]Read from MH i2c: E2 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 62 00 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 62 00 4B 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8C E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [16:49:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8C E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:00]wFMCommunicate OK [16:49:00]SAM_PROTO_GetFieldsCounters done [16:49:00]requested_item shift.num is exist - process it [16:49:00]requested_item shift.opened is exist - process it [16:49:00]req_shift_opened [16:49:00]FM_GetShiftState [16:49:00]SAM_PROTO_GetShiftState [16:49:00]wFMCommunicate request_size=4 [16:49:00]MH_SAM_APDU [16:49:00]CAPDU: 80 13 01 00 [16:49:00]Write to MH i2c: E2 08 00 4C 6D 80 13 01 00 00 00 00 00 36 [16:49:00]Write i2c OK [16:49:00]MH_I2C_Read... [16:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:00]Read from MH i2c: E2 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 0E 00 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 0E 00 4C 6D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 97 [16:49:00]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:49:00]wFMCommunicate OK [16:49:00]SAM_PROTO_GetShiftState done [16:49:00]FM_GetShiftState done [16:49:00]req_shift_opened done [16:49:00]requested_item shift.open_date is exist - process it [16:49:00]req_shift_open_date [16:49:00]req_shift_open_date done [16:49:00]produce_requested_data done [16:49:00]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123276,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:49:00]process_action_free close_receipt [16:49:00]json_value_free [16:49:00]json_value_free done [16:49:00]process_json_proto returns [16:49:00]Send response to host [16:49:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123276,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:49:00]free response buf [16:49:00]execute_script done [16:49:00]execute_script returns [16:49:00]free content buf [16:49:00]Sock 7.Close socket [16:49:00]Sock 7.Thread stoped [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:32]accept exits with 9 [16:53:32]New connection [16:53:32]New thread 3066580324 created [16:53:32]Thread 3066723684 joined [16:53:32]Waiting for new connection... [16:53:32] Sock 9.Parse request [16:53:32]Sock 9.Check first char [16:53:32]Sock 9.First char is OK [16:53:32]request: POST /json_proto HTTP/1.0 [16:53:32]Method: POST [16:53:32]URL: /json_proto [16:53:32]Method is POST - this is cgi request [16:53:32]url: /json_proto [16:53:32]query_string will be loaded in cgi processing [16:53:32]execute_cgi json_proto POST (null) [16:53:32]execute_cgi path=json_proto method=POST [16:53:32]POST find Content-Length [16:53:32]Host: 172.17.37.4:8080 [16:53:32]Content-Length: 797 [16:53:32]Content-Type: application/json [16:53:32] [16:53:32]POST finish read [16:53:32]Found Content-Length = 797 [16:53:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53274", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:32]execute_script... [16:53:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53274", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:32]POST & json_proto [16:53:32]process_json_proto [16:53:32]json parsed OK: [16:53:32]protocol is kg_v1.0 [16:53:32]action value=close_receipt [16:53:32]process_action close_receipt [16:53:32]cmd_close_receipt [16:53:32]MH_GetDate [16:53:32]Write to MH i2c: F0 00 00 4D 6D A9 [16:53:32]Write i2c OK [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: F0 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: F0 09 00 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: F0 09 00 4D 6D 00 18 FD 45 67 B8 5A 43 67 2F [16:53:32]GetLastDocTimeStamp 1732639748 [16:53:32]current date 1732640024 [16:53:32]FM_GetShiftState [16:53:32]SAM_PROTO_GetShiftState [16:53:32]wFMCommunicate request_size=4 [16:53:32]MH_SAM_APDU [16:53:32]CAPDU: 80 13 01 00 [16:53:32]Write to MH i2c: E2 08 00 4E 6D 80 13 01 00 00 00 00 00 38 [16:53:32]Write i2c OK [16:53:32]MH_I2C_Read... [16:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:32]Read from MH i2c: E2 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: E2 0E 00 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: E2 0E 00 4E 6D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 99 [16:53:32]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:53:32]wFMCommunicate OK [16:53:32]SAM_PROTO_GetShiftState done [16:53:32]FM_GetShiftState done [16:53:32]opened in 1732579736 [16:53:32]opened+sec_in_day 1732666136 [16:53:32]quantity*price = 0 [16:53:32]sum+1 = 1 [16:53:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 131 26.11.2024 16:53 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 53274 ФМ: 0000000000874881 ФД: 123277 ФПД: 40122371135264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T165344&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123277&fm=40122371135264&tin=02508201610067®Number=0000000000092681&sum=0 [16:53:34]StoreToDocumentArchive [16:53:34]shift 557 fd 123277 [16:53:34]save to /storage/0557/doc_00123277 [16:53:34]save last doc name /storage/0557/doc_00123277 to /storage/kkm_last_doc_name [16:53:34]save OK [16:53:34]Clear old archive folders... [16:53:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:53:34]tlvbuf is 0216FB40 [16:53:34]SAM_PROTO_ClearQueue [16:53:34]wFMCommunicate request_size=4 [16:53:34]MH_SAM_APDU [16:53:34]CAPDU: 80 09 00 00 [16:53:34]Write to MH i2c: E2 08 00 5B 6D 80 09 00 00 00 00 00 00 3A [16:53:34]Write i2c OK [16:53:34]MH_I2C_Read... [16:53:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:34]Read from MH i2c: E2 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: E2 03 00 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: E2 03 00 5B 6D 00 90 00 3C [16:53:34]RAPDU: 90 00 [16:53:34]wFMCommunicate OK [16:53:34]SAM_PROTO_ClearQueue done [16:53:34]KKMCreateOFDPacket [16:53:34]OFDProtocolAddRootSTLVToBuf [16:53:34]FM_MakeSignedData [16:53:34]FM_MakeSignedData [16:53:34]SAM_PROTO_SignData [16:53:34]wFMCommunicate request_size=4 [16:53:34]MH_SAM_APDU [16:53:34]CAPDU: 80 0D 01 02 [16:53:34]Write to MH i2c: E2 08 00 5C 6D 80 0D 01 02 00 00 00 00 42 [16:53:34]Write i2c OK [16:53:34]MH_I2C_Read... [16:53:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:34]Read from MH i2c: E2 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: E2 03 00 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: E2 03 00 5C 6D 00 90 00 3D [16:53:34]RAPDU: 90 00 [16:53:34]wFMCommunicate OK [16:53:34]wFMCommunicate request_size=255 [16:53:34]MH_SAM_APDU [16:53:34]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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 18 FD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8D E1 01 00 35 04 06 00 [16:53:34]Write to MH i2c: E2 02 01 5D 6D 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 18 FD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8D E1 01 00 35 04 06 00 00 00 95 [16:53:34]Write i2c OK [16:53:34]MH_I2C_Read... [16:53:34]OFD Sender: No OFD packet to send [16:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:34]Read from MH i2c: E2 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: E2 03 00 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: E2 03 00 5D 6D 00 90 00 3E [16:53:34]RAPDU: 90 00 [16:53:34]wFMCommunicate OK [16:53:34]wFMCommunicate request_size=11 [16:53:34]MH_SAM_APDU [16:53:34]CAPDU: 80 0D 02 02 06 24 7D B7 AD D7 20 [16:53:34]Write to MH i2c: E2 0E 00 5E 6D 80 0D 02 02 06 00 24 7D B7 AD D7 20 00 00 4D [16:53:34]Write i2c OK [16:53:34]MH_I2C_Read... [16:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:34]Read from MH i2c: E2 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: E2 03 00 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: E2 03 00 5E 6D 00 90 00 3F [16:53:34]RAPDU: 90 00 [16:53:34]wFMCommunicate OK [16:53:34]wFMCommunicate request_size=4 [16:53:34]MH_SAM_APDU [16:53:34]CAPDU: 80 0D 03 02 [16:53:34]Write to MH i2c: E2 08 00 5F 6D 80 0D 03 02 00 00 00 00 47 [16:53:34]Write i2c OK [16:53:34]MH_I2C_Read... [16:53:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:34]Read from MH i2c: E2 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: E2 0B 00 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: E2 0B 00 5F 6D 00 D5 39 A6 28 66 D4 4E 04 90 00 B0 [16:53:34]RAPDU: D5 39 A6 28 66 D4 4E 04 90 00 [16:53:34]wFMCommunicate OK [16:53:34]SAM_PROTO_SignData done [16:53:34]FM_MakeSignedData done [16:53:34]CreateOFDProtocolMessage [16:53:34]wFMCommunicate request_size=4 [16:53:34]MH_SAM_APDU [16:53:34]CAPDU: 80 11 00 00 [16:53:34]Write to MH i2c: E2 08 00 60 6D 80 11 00 00 00 00 00 00 47 [16:53:34]Write i2c OK [16:53:34]MH_I2C_Read... [16:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:34]Read from MH i2c: E2 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: E2 17 00 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: E2 17 00 60 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 9E [16:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:53:34]wFMCommunicate OK [16:53:34]CreateOFDProtocolMessage done [16:53:34]OFDSenderStorePacket 123277 [16:53:34]StoreOFDPacket docnum=123277 [16:53:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 A6 4C 08 01 80 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 18 FD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8D E1 01 00 35 04 06 00 24 7D B7 AD D7 20 D5 39 A6 28 66 D4 4E 04 [16:53:34]CheckFolder [16:53:34]dirname=/storage/ofd_packets [16:53:34]CheckFolder done [16:53:34]ProducePacketName [16:53:34]name=ofd_packets/00123277 [16:53:34]NVStorageSaveData ofd_packets/00123277 [16:53:34]File name is /storage/ofd_packets/00123277 [16:53:34]Write 302 bytes [16:53:34]NVStorageSaveData done [16:53:34]OFDSenderStorePacket done [16:53:34]KKMCreateOFDPacket done [16:53:34]NVStorageSaveData kkm_last_timestamp [16:53:34]File name is /storage/kkm_last_timestamp [16:53:34]Write 4 bytes [16:53:34]NVStorageSaveData done [16:53:34]ExternCall_PrintAddStr [16:53:34]wPrintStart [16:53:34]Write to MH i2c: 01 00 00 61 6D CE [16:53:34]Write i2c OK [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: 01 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: 01 07 00 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: 01 07 00 61 6D 00 00 00 00 00 FF 0F E3 [16:53:34]RasterBufferAndPrint [16:53:34]line Счет N : (1)718107 [16:53:34]line ИНН: 02508201610067 [16:53:34]line Контрольно-Кассовый Чек [16:53:34]line ПРОДАЖА [16:53:34]line ТРК (МРК, ГНК) : 6 [16:53:34]line Товар: 2710194210 [16:53:34]line ДТ(л)-К-5 [16:53:34]line 100.000 * 0.00 [16:53:34]line = 0.00 [16:53:34]line НДС 12% НСП 1% [16:53:34]line > о реализуемом товаре [16:53:34]line ИТОГО: 0.00 [16:53:34]line НСП 1% : 0.00 [16:53:34]line НДС 12% : 0.00 [16:53:34]line Наличными: 0.00 [16:53:34]line Безнал.: 0.00 [16:53:34]line Место: АЗС № 64 "Партнер Нефть" [16:53:34]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:53:34]line СНО: Общий режим [16:53:34]line Чек 131 26.11.2024 16:53 [16:53:34]line Смена: 557 ФФД: 1.0 [16:53:34]line ЗНМ: 0300000033 [16:53:34]line РНМ: 0000000000092681 [16:53:34]line Версия ККМ: 001 [16:53:34]line Талоны: Топливная Карта [16:53:34]line 53274 [16:53:34]line ФМ: 0000000000874881 [16:53:34]line ФД: 123277 [16:53:34]line ФПД: 40122371135264 [16:53:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T165344&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123277&fm=40122371135264&tin=02508201610067®Number=0000000000092681&sum=0 [16:53:34]OFD Sender: Processing packet 123277 [packets to send 7, broken 6] [16:53:34]ProducePacketName [16:53:34]name=ofd_packets/00123277 [16:53:34]OFD Sender: To server: pG, [16:53:34]CommunicateWithHost lk.salyk.kg:30040 [16:53:34]ConnectInit lk.salyk.kg [16:53:34]written 0, free lines is 4095 [16:53:35]Connected sock=7 [16:53:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 A6 4C 08 01 80 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 18 FD 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8D E1 01 00 35 04 06 00 24 7D B7 AD D7 20 D5 39 A6 28 66 D4 4E 04 [16:53:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 93 0C 47 00 97 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8D E1 01 00 F4 03 04 00 DA A8 45 67 B6 04 01 00 00 E9 6E F4 26 4A 81 BE 46 [16:53:35]CommunicateWithHost err = 0 [16:53:35]CheckOFDResponse [16:53:35]1017 (14) - 77093643461234 [16:53:35]1041 (16) - 0000000000874881 [16:53:35]1040 (4) - 123277 [16:53:35]1012 (4) - 26.11.2024 10:54 [16:53:35]1206 (1) - 0 [16:53:35]OFD Sender: Remove packet 123277 [16:53:35]ProducePacketName [16:53:35]name=ofd_packets/00123277 [16:53:35]NVStorageDeleteData [16:53:35]Write to MH i2c: 01 00 00 8B 6D F8 [16:53:35]Write i2c OK [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: 01 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: 01 07 00 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: 01 07 00 8B 6D 00 00 00 00 00 6A 0C 75 [16:53:35]RasterBufferAndPrint [16:53:35]line [16:53:35]line [16:53:35]line [16:53:35]line [16:53:35]line [16:53:35]written 0, free lines is 3184 [16:53:35]MH_Cut [16:53:35]Write to MH i2c: D1 01 00 92 6D 01 D1 [16:53:35]Write i2c OK [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: D1 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: D1 01 00 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: D1 01 00 92 6D 00 D0 [16:53:35]Write to MH i2c: 01 00 00 93 6D 00 [16:53:35]Write i2c OK [16:53:35]MH_I2C_Read... [16:53:35]OFD Sender: No OFD packet to send [16:53:36]*** Cut start [16:53:36]*** Partial cut [16:53:36]*** CUTSNS_PIN = 1 [16:53:36]*** CUTSNS_PIN = 0 [16:53:37]*** Brake cut motor [16:53:37]Read from MH i2c: 01 [16:53:37]MH_I2C_Read... [16:53:37]*** Stop cut motor [16:53:37]*** Cut end [16:53:37]Read from MH i2c: 01 07 00 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: 01 07 00 93 6D 00 00 00 00 00 FF 0F 15 [16:53:37]process_action close_receipt done [16:53:37]requested_data is exist [16:53:37]produce_requested_data [16:53:37]requested_item fm.sn is exist - process it [16:53:37]wFMCommunicate request_size=4 [16:53:37]MH_SAM_APDU [16:53:37]CAPDU: 80 11 00 00 [16:53:37]Write to MH i2c: E2 08 00 94 6D 80 11 00 00 00 00 00 00 7B [16:53:37]Write i2c OK [16:53:37]MH_I2C_Read... [16:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:37]Read from MH i2c: E2 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 17 00 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 17 00 94 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D2 [16:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:53:37]wFMCommunicate OK [16:53:37]requested_item fd.num is exist - process it [16:53:37]SAM_PROTO_GetFieldsCounters [16:53:37]wFMCommunicate request_size=4 [16:53:37]MH_SAM_APDU [16:53:37]CAPDU: 80 13 00 00 [16:53:37]Write to MH i2c: E2 08 00 95 6D 80 13 00 00 00 00 00 00 7E [16:53:37]Write i2c OK [16:53:37]MH_I2C_Read... [16:53:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:37]Read from MH i2c: E2 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 62 00 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 62 00 95 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8D E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [16:53:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8D E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:37]wFMCommunicate OK [16:53:37]SAM_PROTO_GetFieldsCounters done [16:53:37]requested_item shift.num is exist - process it [16:53:37]requested_item shift.opened is exist - process it [16:53:37]req_shift_opened [16:53:37]FM_GetShiftState [16:53:37]SAM_PROTO_GetShiftState [16:53:37]wFMCommunicate request_size=4 [16:53:37]MH_SAM_APDU [16:53:37]CAPDU: 80 13 01 00 [16:53:37]Write to MH i2c: E2 08 00 96 6D 80 13 01 00 00 00 00 00 80 [16:53:37]Write i2c OK [16:53:37]MH_I2C_Read... [16:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:37]Read from MH i2c: E2 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 0E 00 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 0E 00 96 6D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 E1 [16:53:37]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:53:37]wFMCommunicate OK [16:53:37]SAM_PROTO_GetShiftState done [16:53:37]FM_GetShiftState done [16:53:37]req_shift_opened done [16:53:37]requested_item shift.open_date is exist - process it [16:53:37]req_shift_open_date [16:53:37]req_shift_open_date done [16:53:37]produce_requested_data done [16:53:37]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123277,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:53:37]process_action_free close_receipt [16:53:37]json_value_free [16:53:37]json_value_free done [16:53:37]process_json_proto returns [16:53:37]Send response to host [16:53:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123277,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:53:37]free response buf [16:53:37]execute_script done [16:53:37]execute_script returns [16:53:37]free content buf [16:53:37]Sock 9.Close socket [16:53:37]Sock 9.Thread stoped [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:01]accept exits with 10 [16:58:01]New connection [16:58:01]New thread 3066723684 created [16:58:01]Thread 3066580324 joined [16:58:01]Waiting for new connection... [16:58:01] Sock 10.Parse request [16:58:01]Sock 10.Check first char [16:58:01]Sock 10.First char is OK [16:58:01]request: POST /json_proto HTTP/1.0 [16:58:01]Method: POST [16:58:01]URL: /json_proto [16:58:01]Method is POST - this is cgi request [16:58:01]url: /json_proto [16:58:01]query_string will be loaded in cgi processing [16:58:01]execute_cgi json_proto POST (null) [16:58:01]execute_cgi path=json_proto method=POST [16:58:01]POST find Content-Length [16:58:01]Host: 172.17.37.4:8080 [16:58:01]Content-Length: 797 [16:58:01]Content-Type: application/json [16:58:01] [16:58:01]POST finish read [16:58:01]Found Content-Length = 797 [16:58:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53274", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:01]execute_script... [16:58:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53274", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:01]POST & json_proto [16:58:01]process_json_proto [16:58:01]json parsed OK: [16:58:01]protocol is kg_v1.0 [16:58:01]action value=close_receipt [16:58:01]process_action close_receipt [16:58:01]cmd_close_receipt [16:58:01]MH_GetDate [16:58:01]Write to MH i2c: F0 00 00 97 6D F3 [16:58:01]Write i2c OK [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: F0 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: F0 09 00 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: F0 09 00 97 6D 00 25 FE 45 67 B8 5A 43 67 87 [16:58:01]GetLastDocTimeStamp 1732640024 [16:58:01]current date 1732640293 [16:58:01]FM_GetShiftState [16:58:01]SAM_PROTO_GetShiftState [16:58:01]wFMCommunicate request_size=4 [16:58:01]MH_SAM_APDU [16:58:01]CAPDU: 80 13 01 00 [16:58:01]Write to MH i2c: E2 08 00 98 6D 80 13 01 00 00 00 00 00 82 [16:58:01]Write i2c OK [16:58:01]MH_I2C_Read... [16:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:01]Read from MH i2c: E2 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: E2 0E 00 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: E2 0E 00 98 6D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 E3 [16:58:01]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:58:01]wFMCommunicate OK [16:58:01]SAM_PROTO_GetShiftState done [16:58:01]FM_GetShiftState done [16:58:01]opened in 1732579736 [16:58:01]opened+sec_in_day 1732666136 [16:58:01]quantity*price = 0 [16:58:01]sum+1 = 1 [16:58:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 132 26.11.2024 16:58 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 53274 ФМ: 0000000000874881 ФД: 123278 ФПД: 90777035290422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T165813&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123278&fm=90777035290422&tin=02508201610067®Number=0000000000092681&sum=0 [16:58:03]StoreToDocumentArchive [16:58:03]shift 557 fd 123278 [16:58:03]save to /storage/0557/doc_00123278 [16:58:03]save last doc name /storage/0557/doc_00123278 to /storage/kkm_last_doc_name [16:58:03]save OK [16:58:03]Clear old archive folders... [16:58:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:58:03]tlvbuf is 021AB720 [16:58:03]SAM_PROTO_ClearQueue [16:58:03]wFMCommunicate request_size=4 [16:58:03]MH_SAM_APDU [16:58:03]CAPDU: 80 09 00 00 [16:58:03]Write to MH i2c: E2 08 00 A5 6D 80 09 00 00 00 00 00 00 84 [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:03]Read from MH i2c: E2 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 03 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 03 00 A5 6D 00 90 00 86 [16:58:03]RAPDU: 90 00 [16:58:03]wFMCommunicate OK [16:58:03]SAM_PROTO_ClearQueue done [16:58:03]KKMCreateOFDPacket [16:58:03]OFDProtocolAddRootSTLVToBuf [16:58:03]FM_MakeSignedData [16:58:03]FM_MakeSignedData [16:58:03]SAM_PROTO_SignData [16:58:03]wFMCommunicate request_size=4 [16:58:03]MH_SAM_APDU [16:58:03]CAPDU: 80 0D 01 02 [16:58:03]Write to MH i2c: E2 08 00 A6 6D 80 0D 01 02 00 00 00 00 8C [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:03]Read from MH i2c: E2 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 03 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 03 00 A6 6D 00 90 00 87 [16:58:03]RAPDU: 90 00 [16:58:03]wFMCommunicate OK [16:58:03]wFMCommunicate request_size=255 [16:58:03]MH_SAM_APDU [16:58:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 25 FE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8E E1 01 00 35 04 06 00 [16:58:03]Write to MH i2c: E2 02 01 A7 6D 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 25 FE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8E E1 01 00 35 04 06 00 00 00 EF [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:03]Read from MH i2c: E2 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 03 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 03 00 A7 6D 00 90 00 88 [16:58:03]RAPDU: 90 00 [16:58:03]wFMCommunicate OK [16:58:03]wFMCommunicate request_size=11 [16:58:03]MH_SAM_APDU [16:58:03]CAPDU: 80 0D 02 02 06 52 8F AC F1 37 36 [16:58:03]Write to MH i2c: E2 0E 00 A8 6D 80 0D 02 02 06 00 52 8F AC F1 37 36 00 00 86 [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:03]Read from MH i2c: E2 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 03 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 03 00 A8 6D 00 90 00 89 [16:58:03]RAPDU: 90 00 [16:58:03]wFMCommunicate OK [16:58:03]wFMCommunicate request_size=4 [16:58:03]MH_SAM_APDU [16:58:03]CAPDU: 80 0D 03 02 [16:58:03]Write to MH i2c: E2 08 00 A9 6D 80 0D 03 02 00 00 00 00 91 [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:03]Read from MH i2c: E2 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 0B 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 0B 00 A9 6D 00 46 FD 97 E2 FC 02 52 42 90 00 E0 [16:58:03]RAPDU: 46 FD 97 E2 FC 02 52 42 90 00 [16:58:03]wFMCommunicate OK [16:58:03]SAM_PROTO_SignData done [16:58:03]FM_MakeSignedData done [16:58:03]CreateOFDProtocolMessage [16:58:03]wFMCommunicate request_size=4 [16:58:03]MH_SAM_APDU [16:58:03]CAPDU: 80 11 00 00 [16:58:03]Write to MH i2c: E2 08 00 AA 6D 80 11 00 00 00 00 00 00 91 [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:03]Read from MH i2c: E2 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 17 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 17 00 AA 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E8 [16:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:58:03]wFMCommunicate OK [16:58:03]CreateOFDProtocolMessage done [16:58:03]OFDSenderStorePacket 123278 [16:58:03]StoreOFDPacket docnum=123278 [16:58:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 0E 30 08 01 FA 6D 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 25 FE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8E E1 01 00 35 04 06 00 52 8F AC F1 37 36 46 FD 97 E2 FC 02 52 42 [16:58:03]CheckFolder [16:58:03]dirname=/storage/ofd_packets [16:58:03]CheckFolder done [16:58:03]ProducePacketName [16:58:03]name=ofd_packets/00123278 [16:58:03]NVStorageSaveData ofd_packets/00123278 [16:58:03]File name is /storage/ofd_packets/00123278 [16:58:03]Write 302 bytes [16:58:03]NVStorageSaveData done [16:58:03]OFDSenderStorePacket done [16:58:03]KKMCreateOFDPacket done [16:58:03]NVStorageSaveData kkm_last_timestamp [16:58:03]File name is /storage/kkm_last_timestamp [16:58:03]Write 4 bytes [16:58:03]NVStorageSaveData done [16:58:03]ExternCall_PrintAddStr [16:58:03]wPrintStart [16:58:03]Write to MH i2c: 01 00 00 AB 6D 18 [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: 01 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: 01 07 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: 01 07 00 AB 6D 00 00 00 00 00 FF 0F 2D [16:58:03]RasterBufferAndPrint [16:58:03]line Счет N : (1)718108 [16:58:03]line ИНН: 02508201610067 [16:58:03]line Контрольно-Кассовый Чек [16:58:03]line ПРОДАЖА [16:58:03]line ТРК (МРК, ГНК) : 6 [16:58:03]line Товар: 2710194210 [16:58:03]line ДТ(л)-К-5 [16:58:03]line 100.000 * 0.00 [16:58:03]line = 0.00 [16:58:03]line НДС 12% НСП 1% [16:58:03]line > о реализуемом товаре [16:58:03]line ИТОГО: 0.00 [16:58:03]line НСП 1% : 0.00 [16:58:03]line НДС 12% : 0.00 [16:58:03]line Наличными: 0.00 [16:58:03]line Безнал.: 0.00 [16:58:03]line Место: АЗС № 64 "Партнер Нефть" [16:58:03]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [16:58:03]line СНО: Общий режим [16:58:03]line Чек 132 26.11.2024 16:58 [16:58:03]line Смена: 557 ФФД: 1.0 [16:58:03]line ЗНМ: 0300000033 [16:58:03]line РНМ: 0000000000092681 [16:58:03]line Версия ККМ: 001 [16:58:03]line Талоны: Топливная Карта [16:58:03]line 53274 [16:58:03]line ФМ: 0000000000874881 [16:58:03]line ФД: 123278 [16:58:03]line ФПД: 90777035290422 [16:58:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T165813&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123278&fm=90777035290422&tin=02508201610067®Number=0000000000092681&sum=0 [16:58:03]written 0, free lines is 4095 [16:58:03]OFD Sender: Processing packet 123278 [packets to send 7, broken 6] [16:58:03]ProducePacketName [16:58:03]name=ofd_packets/00123278 [16:58:03]OFD Sender: To server: pG, [16:58:03]CommunicateWithHost lk.salyk.kg:30040 [16:58:03]ConnectInit lk.salyk.kg [16:58:04]Connected sock=9 [16:58:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 0E 30 08 01 FA 6D 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 25 FE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8E E1 01 00 35 04 06 00 52 8F AC F1 37 36 46 FD 97 E2 FC 02 52 42 [16:58:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 C3 77 47 00 4D A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8E E1 01 00 F4 03 04 00 E7 A9 45 67 B6 04 01 00 00 F6 45 84 E5 BB D4 7C DC [16:58:04]CommunicateWithHost err = 0 [16:58:04]CheckOFDResponse [16:58:04]1017 (14) - 77093643461234 [16:58:04]1041 (16) - 0000000000874881 [16:58:04]1040 (4) - 123278 [16:58:04]1012 (4) - 26.11.2024 10:58 [16:58:04]1206 (1) - 0 [16:58:04]OFD Sender: Remove packet 123278 [16:58:04]ProducePacketName [16:58:04]name=ofd_packets/00123278 [16:58:04]NVStorageDeleteData [16:58:04]Write to MH i2c: 01 00 00 D5 6D 42 [16:58:04]Write i2c OK [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: 01 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: 01 07 00 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: 01 07 00 D5 6D 00 00 00 00 00 61 0C B6 [16:58:04]RasterBufferAndPrint [16:58:04]line [16:58:04]line [16:58:04]line [16:58:04]line [16:58:04]line [16:58:04]written 0, free lines is 3176 [16:58:04]MH_Cut [16:58:04]Write to MH i2c: D1 01 00 DC 6D 01 1B [16:58:04]Write i2c OK [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: D1 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: D1 01 00 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: D1 01 00 DC 6D 00 1A [16:58:04]Write to MH i2c: 01 00 00 DD 6D 4A [16:58:04]Write i2c OK [16:58:04]MH_I2C_Read... [16:58:04]OFD Sender: No OFD packet to send [16:58:05]*** Cut start [16:58:05]*** Partial cut [16:58:05]*** CUTSNS_PIN = 1 [16:58:05]*** CUTSNS_PIN = 0 [16:58:06]*** Brake cut motor [16:58:06]Read from MH i2c: 01 [16:58:06]MH_I2C_Read... [16:58:06]*** Stop cut motor [16:58:06]*** Cut end [16:58:06]Read from MH i2c: 01 07 00 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: 01 07 00 DD 6D 00 00 00 00 00 FF 0F 5F [16:58:06]process_action close_receipt done [16:58:06]requested_data is exist [16:58:06]produce_requested_data [16:58:06]requested_item fm.sn is exist - process it [16:58:06]wFMCommunicate request_size=4 [16:58:06]MH_SAM_APDU [16:58:06]CAPDU: 80 11 00 00 [16:58:06]Write to MH i2c: E2 08 00 DE 6D 80 11 00 00 00 00 00 00 C5 [16:58:06]Write i2c OK [16:58:06]MH_I2C_Read... [16:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:06]Read from MH i2c: E2 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: E2 17 00 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: E2 17 00 DE 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1C [16:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [16:58:06]wFMCommunicate OK [16:58:06]requested_item fd.num is exist - process it [16:58:06]SAM_PROTO_GetFieldsCounters [16:58:06]wFMCommunicate request_size=4 [16:58:06]MH_SAM_APDU [16:58:06]CAPDU: 80 13 00 00 [16:58:06]Write to MH i2c: E2 08 00 DF 6D 80 13 00 00 00 00 00 00 C8 [16:58:06]Write i2c OK [16:58:06]MH_I2C_Read... [16:58:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:06]Read from MH i2c: E2 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: E2 62 00 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: E2 62 00 DF 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8E E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [16:58:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8E E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:06]wFMCommunicate OK [16:58:06]SAM_PROTO_GetFieldsCounters done [16:58:06]requested_item shift.num is exist - process it [16:58:06]requested_item shift.opened is exist - process it [16:58:06]req_shift_opened [16:58:06]FM_GetShiftState [16:58:06]SAM_PROTO_GetShiftState [16:58:06]wFMCommunicate request_size=4 [16:58:06]MH_SAM_APDU [16:58:06]CAPDU: 80 13 01 00 [16:58:06]Write to MH i2c: E2 08 00 E0 6D 80 13 01 00 00 00 00 00 CA [16:58:06]Write i2c OK [16:58:06]MH_I2C_Read... [16:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:06]Read from MH i2c: E2 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: E2 0E 00 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: E2 0E 00 E0 6D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 2B [16:58:06]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [16:58:06]wFMCommunicate OK [16:58:06]SAM_PROTO_GetShiftState done [16:58:06]FM_GetShiftState done [16:58:06]req_shift_opened done [16:58:06]requested_item shift.open_date is exist - process it [16:58:06]req_shift_open_date [16:58:06]req_shift_open_date done [16:58:06]produce_requested_data done [16:58:06]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123278,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [16:58:06]process_action_free close_receipt [16:58:06]json_value_free [16:58:06]json_value_free done [16:58:06]process_json_proto returns [16:58:06]Send response to host [16:58:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123278,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [16:58:06]free response buf [16:58:06]execute_script done [16:58:06]execute_script returns [16:58:06]free content buf [16:58:06]Sock 10.Close socket [16:58:06]Sock 10.Thread stoped [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:38]accept exits with 7 [17:00:38]New connection [17:00:38]New thread 3066580324 created [17:00:38]Thread 3066723684 joined [17:00:38]Waiting for new connection... [17:00:38] Sock 7.Parse request [17:00:38]Sock 7.Check first char [17:00:38]Sock 7.First char is OK [17:00:38]request: POST /json_proto HTTP/1.0 [17:00:38]Method: POST [17:00:38]URL: /json_proto [17:00:38]Method is POST - this is cgi request [17:00:38]url: /json_proto [17:00:38]query_string will be loaded in cgi processing [17:00:38]execute_cgi json_proto POST (null) [17:00:38]execute_cgi path=json_proto method=POST [17:00:38]POST find Content-Length [17:00:38]Host: 172.17.37.4:8080 [17:00:38]Content-Length: 796 [17:00:38]Content-Type: application/json [17:00:38] [17:00:38]POST finish read [17:00:38]Found Content-Length = 796 [17:00:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53274", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:38]execute_script... [17:00:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53274", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:38]POST & json_proto [17:00:38]process_json_proto [17:00:38]json parsed OK: [17:00:38]protocol is kg_v1.0 [17:00:38]action value=close_receipt [17:00:38]process_action close_receipt [17:00:38]cmd_close_receipt [17:00:38]MH_GetDate [17:00:38]Write to MH i2c: F0 00 00 E1 6D 3D [17:00:38]Write i2c OK [17:00:38]MH_I2C_Read... [17:00:38]Read from MH i2c: F0 [17:00:38]MH_I2C_Read... [17:00:38]Read from MH i2c: F0 09 00 [17:00:38]MH_I2C_Read... [17:00:38]Read from MH i2c: F0 09 00 E1 6D 00 C2 FE 45 67 B8 5A 43 67 6E [17:00:38]GetLastDocTimeStamp 1732640293 [17:00:38]current date 1732640450 [17:00:38]FM_GetShiftState [17:00:38]SAM_PROTO_GetShiftState [17:00:38]wFMCommunicate request_size=4 [17:00:38]MH_SAM_APDU [17:00:38]CAPDU: 80 13 01 00 [17:00:38]Write to MH i2c: E2 08 00 E2 6D 80 13 01 00 00 00 00 00 CC [17:00:38]Write i2c OK [17:00:38]MH_I2C_Read... [17:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:39]Read from MH i2c: E2 [17:00:39]MH_I2C_Read... [17:00:39]Read from MH i2c: E2 0E 00 [17:00:39]MH_I2C_Read... [17:00:39]Read from MH i2c: E2 0E 00 E2 6D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 2D [17:00:39]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:00:39]wFMCommunicate OK [17:00:39]SAM_PROTO_GetShiftState done [17:00:39]FM_GetShiftState done [17:00:39]opened in 1732579736 [17:00:39]opened+sec_in_day 1732666136 [17:00:39]quantity*price = 0 [17:00:39]sum+1 = 1 [17:00:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 133 26.11.2024 17:00 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 53274 ФМ: 0000000000874881 ФД: 123279 ФПД: 189949288915701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T170050&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123279&fm=189949288915701&tin=02508201610067®Number=0000000000092681&sum=0 [17:00:40]StoreToDocumentArchive [17:00:40]shift 557 fd 123279 [17:00:40]save to /storage/0557/doc_00123279 [17:00:40]save last doc name /storage/0557/doc_00123279 to /storage/kkm_last_doc_name [17:00:40]save OK [17:00:40]Clear old archive folders... [17:00:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:00:40]tlvbuf is 02068850 [17:00:40]SAM_PROTO_ClearQueue [17:00:40]wFMCommunicate request_size=4 [17:00:40]MH_SAM_APDU [17:00:40]CAPDU: 80 09 00 00 [17:00:40]Write to MH i2c: E2 08 00 EF 6D 80 09 00 00 00 00 00 00 CE [17:00:40]Write i2c OK [17:00:40]MH_I2C_Read... [17:00:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:40]Read from MH i2c: E2 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 03 00 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 03 00 EF 6D 00 90 00 D0 [17:00:40]RAPDU: 90 00 [17:00:40]wFMCommunicate OK [17:00:40]SAM_PROTO_ClearQueue done [17:00:40]KKMCreateOFDPacket [17:00:40]OFDProtocolAddRootSTLVToBuf [17:00:40]FM_MakeSignedData [17:00:40]FM_MakeSignedData [17:00:40]SAM_PROTO_SignData [17:00:40]wFMCommunicate request_size=4 [17:00:40]MH_SAM_APDU [17:00:40]CAPDU: 80 0D 01 02 [17:00:40]Write to MH i2c: E2 08 00 F0 6D 80 0D 01 02 00 00 00 00 D6 [17:00:40]Write i2c OK [17:00:40]MH_I2C_Read... [17:00:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:40]Read from MH i2c: E2 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 03 00 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 03 00 F0 6D 00 90 00 D1 [17:00:40]RAPDU: 90 00 [17:00:40]wFMCommunicate OK [17:00:40]wFMCommunicate request_size=255 [17:00:40]MH_SAM_APDU [17:00:40]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 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 C2 FE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8F E1 01 00 35 04 06 00 [17:00:40]Write to MH i2c: E2 02 01 F1 6D 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 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 C2 FE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8F E1 01 00 35 04 06 00 00 00 C4 [17:00:40]Write i2c OK [17:00:40]MH_I2C_Read... [17:00:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:40]Read from MH i2c: E2 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 03 00 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 03 00 F1 6D 00 90 00 D2 [17:00:40]RAPDU: 90 00 [17:00:40]wFMCommunicate OK [17:00:40]wFMCommunicate request_size=11 [17:00:40]MH_SAM_APDU [17:00:40]CAPDU: 80 0D 02 02 06 AC C2 03 E4 22 F5 [17:00:40]Write to MH i2c: E2 0E 00 F2 6D 80 0D 02 02 06 00 AC C2 03 E4 22 F5 00 00 51 [17:00:40]Write i2c OK [17:00:40]MH_I2C_Read... [17:00:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:40]Read from MH i2c: E2 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 03 00 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 03 00 F2 6D 00 90 00 D3 [17:00:40]RAPDU: 90 00 [17:00:40]wFMCommunicate OK [17:00:40]wFMCommunicate request_size=4 [17:00:40]MH_SAM_APDU [17:00:40]CAPDU: 80 0D 03 02 [17:00:40]Write to MH i2c: E2 08 00 F3 6D 80 0D 03 02 00 00 00 00 DB [17:00:40]Write i2c OK [17:00:40]MH_I2C_Read... [17:00:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:40]Read from MH i2c: E2 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 0B 00 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 0B 00 F3 6D 00 4D 19 28 F5 7B 80 86 61 90 00 41 [17:00:40]RAPDU: 4D 19 28 F5 7B 80 86 61 90 00 [17:00:40]wFMCommunicate OK [17:00:40]SAM_PROTO_SignData done [17:00:40]FM_MakeSignedData done [17:00:40]CreateOFDProtocolMessage [17:00:40]wFMCommunicate request_size=4 [17:00:40]MH_SAM_APDU [17:00:40]CAPDU: 80 11 00 00 [17:00:40]Write to MH i2c: E2 08 00 F4 6D 80 11 00 00 00 00 00 00 DB [17:00:40]Write i2c OK [17:00:40]MH_I2C_Read... [17:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:40]Read from MH i2c: E2 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 17 00 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 17 00 F4 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 32 [17:00:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:00:40]wFMCommunicate OK [17:00:40]CreateOFDProtocolMessage done [17:00:40]OFDSenderStorePacket 123279 [17:00:40]StoreOFDPacket docnum=123279 [17:00:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 15 72 08 01 09 D5 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 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 C2 FE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8F E1 01 00 35 04 06 00 AC C2 03 E4 22 F5 4D 19 28 F5 7B 80 86 61 [17:00:40]CheckFolder [17:00:40]dirname=/storage/ofd_packets [17:00:40]CheckFolder done [17:00:40]ProducePacketName [17:00:40]name=ofd_packets/00123279 [17:00:40]NVStorageSaveData ofd_packets/00123279 [17:00:40]File name is /storage/ofd_packets/00123279 [17:00:40]Write 302 bytes [17:00:40]NVStorageSaveData done [17:00:40]OFDSenderStorePacket done [17:00:40]KKMCreateOFDPacket done [17:00:40]NVStorageSaveData kkm_last_timestamp [17:00:40]File name is /storage/kkm_last_timestamp [17:00:40]Write 4 bytes [17:00:40]NVStorageSaveData done [17:00:40]ExternCall_PrintAddStr [17:00:40]wPrintStart [17:00:40]Write to MH i2c: 01 00 00 F5 6D 62 [17:00:40]Write i2c OK [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: 01 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: 01 07 00 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: 01 07 00 F5 6D 00 00 00 00 00 FF 0F 77 [17:00:40]RasterBufferAndPrint [17:00:40]line Счет N : (1)718109 [17:00:40]line ИНН: 02508201610067 [17:00:40]line Контрольно-Кассовый Чек [17:00:40]line ПРОДАЖА [17:00:40]line ТРК (МРК, ГНК) : 6 [17:00:40]line Товар: 2710194210 [17:00:40]line ДТ(л)-К-5 [17:00:40]line 50.000 * 0.00 [17:00:40]line = 0.00 [17:00:40]line НДС 12% НСП 1% [17:00:40]line > о реализуемом товаре [17:00:40]line ИТОГО: 0.00 [17:00:40]line НСП 1% : 0.00 [17:00:40]line НДС 12% : 0.00 [17:00:40]line Наличными: 0.00 [17:00:40]line Безнал.: 0.00 [17:00:40]line Место: АЗС № 64 "Партнер Нефть" [17:00:40]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:00:40]line СНО: Общий режим [17:00:40]line Чек 133 26.11.2024 17:00 [17:00:40]line Смена: 557 ФФД: 1.0 [17:00:40]line ЗНМ: 0300000033 [17:00:40]line РНМ: 0000000000092681 [17:00:40]line Версия ККМ: 001 [17:00:40]line Талоны: Топливная Карта [17:00:40]line 53274 [17:00:40]line ФМ: 0000000000874881 [17:00:40]line ФД: 123279 [17:00:40]line ФПД: 189949288915701 [17:00:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T170050&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123279&fm=189949288915701&tin=02508201610067®Number=0000000000092681&sum=0 [17:00:41]OFD Sender: Processing packet 123279 [packets to send 7, broken 6] [17:00:41]ProducePacketName [17:00:41]name=ofd_packets/00123279 [17:00:41]OFD Sender: To server: pG, [17:00:41]CommunicateWithHost lk.salyk.kg:30040 [17:00:41]ConnectInit lk.salyk.kg [17:00:41]written 0, free lines is 4095 [17:00:41]Connected sock=9 [17:00:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 15 72 08 01 09 D5 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 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 C2 FE 45 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8F E1 01 00 35 04 06 00 AC C2 03 E4 22 F5 4D 19 28 F5 7B 80 86 61 [17:00:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 57 B5 47 00 6E D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8F E1 01 00 F4 03 04 00 84 AA 45 67 B6 04 01 00 00 29 D3 F6 E6 3A E7 FD FA [17:00:41]CommunicateWithHost err = 0 [17:00:41]CheckOFDResponse [17:00:41]1017 (14) - 77093643461234 [17:00:41]1041 (16) - 0000000000874881 [17:00:41]1040 (4) - 123279 [17:00:41]1012 (4) - 26.11.2024 11:01 [17:00:41]1206 (1) - 0 [17:00:41]OFD Sender: Remove packet 123279 [17:00:41]ProducePacketName [17:00:41]name=ofd_packets/00123279 [17:00:41]NVStorageDeleteData [17:00:41]Write to MH i2c: 01 00 00 1F 6E 8D [17:00:41]Write i2c OK [17:00:41]MH_I2C_Read... [17:00:41]Read from MH i2c: 01 [17:00:41]MH_I2C_Read... [17:00:41]Read from MH i2c: 01 07 00 [17:00:41]MH_I2C_Read... [17:00:41]Read from MH i2c: 01 07 00 1F 6E 00 00 00 00 00 6B 0C 0B [17:00:41]RasterBufferAndPrint [17:00:41]line [17:00:41]line [17:00:41]line [17:00:41]line [17:00:41]line [17:00:41]written 0, free lines is 3183 [17:00:41]MH_Cut [17:00:41]Write to MH i2c: D1 01 00 26 6E 01 66 [17:00:41]Write i2c OK [17:00:41]MH_I2C_Read... [17:00:41]Read from MH i2c: D1 [17:00:41]MH_I2C_Read... [17:00:41]Read from MH i2c: D1 01 00 [17:00:41]MH_I2C_Read... [17:00:41]Read from MH i2c: D1 01 00 26 6E 00 65 [17:00:41]Write to MH i2c: 01 00 00 27 6E 95 [17:00:41]Write i2c OK [17:00:41]MH_I2C_Read... [17:00:41]OFD Sender: No OFD packet to send [17:00:42]*** Cut start [17:00:42]*** Partial cut [17:00:42]*** CUTSNS_PIN = 1 [17:00:42]*** CUTSNS_PIN = 0 [17:00:43]*** Brake cut motor [17:00:43]Read from MH i2c: 01 [17:00:43]MH_I2C_Read... [17:00:43]*** Stop cut motor [17:00:43]*** Cut end [17:00:43]Read from MH i2c: 01 07 00 [17:00:43]MH_I2C_Read... [17:00:43]Read from MH i2c: 01 07 00 27 6E 00 00 00 00 00 FF 0F AA [17:00:43]process_action close_receipt done [17:00:43]requested_data is exist [17:00:43]produce_requested_data [17:00:43]requested_item fm.sn is exist - process it [17:00:43]wFMCommunicate request_size=4 [17:00:43]MH_SAM_APDU [17:00:43]CAPDU: 80 11 00 00 [17:00:43]Write to MH i2c: E2 08 00 28 6E 80 11 00 00 00 00 00 00 10 [17:00:43]Write i2c OK [17:00:43]MH_I2C_Read... [17:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:43]Read from MH i2c: E2 [17:00:43]MH_I2C_Read... [17:00:43]Read from MH i2c: E2 17 00 [17:00:43]MH_I2C_Read... [17:00:43]Read from MH i2c: E2 17 00 28 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 67 [17:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:00:43]wFMCommunicate OK [17:00:43]requested_item fd.num is exist - process it [17:00:43]SAM_PROTO_GetFieldsCounters [17:00:43]wFMCommunicate request_size=4 [17:00:43]MH_SAM_APDU [17:00:43]CAPDU: 80 13 00 00 [17:00:43]Write to MH i2c: E2 08 00 29 6E 80 13 00 00 00 00 00 00 13 [17:00:43]Write i2c OK [17:00:43]MH_I2C_Read... [17:00:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:43]Read from MH i2c: E2 [17:00:43]MH_I2C_Read... [17:00:43]Read from MH i2c: E2 62 00 [17:00:43]MH_I2C_Read... [17:00:43]Read from MH i2c: E2 62 00 29 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8F E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [17:00:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 8F E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:00:43]wFMCommunicate OK [17:00:43]SAM_PROTO_GetFieldsCounters done [17:00:43]requested_item shift.num is exist - process it [17:00:43]requested_item shift.opened is exist - process it [17:00:43]req_shift_opened [17:00:43]FM_GetShiftState [17:00:43]SAM_PROTO_GetShiftState [17:00:43]wFMCommunicate request_size=4 [17:00:43]MH_SAM_APDU [17:00:43]CAPDU: 80 13 01 00 [17:00:43]Write to MH i2c: E2 08 00 2A 6E 80 13 01 00 00 00 00 00 15 [17:00:43]Write i2c OK [17:00:43]MH_I2C_Read... [17:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:43]Read from MH i2c: E2 [17:00:43]MH_I2C_Read... [17:00:43]Read from MH i2c: E2 0E 00 [17:00:43]MH_I2C_Read... [17:00:43]Read from MH i2c: E2 0E 00 2A 6E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 76 [17:00:43]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:00:43]wFMCommunicate OK [17:00:43]SAM_PROTO_GetShiftState done [17:00:43]FM_GetShiftState done [17:00:43]req_shift_opened done [17:00:43]requested_item shift.open_date is exist - process it [17:00:43]req_shift_open_date [17:00:43]req_shift_open_date done [17:00:43]produce_requested_data done [17:00:43]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123279,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [17:00:43]process_action_free close_receipt [17:00:43]json_value_free [17:00:43]json_value_free done [17:00:43]process_json_proto returns [17:00:43]Send response to host [17:00:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123279,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [17:00:43]free response buf [17:00:43]execute_script done [17:00:43]execute_script returns [17:00:43]free content buf [17:00:43]Sock 7.Close socket [17:00:43]Sock 7.Thread stoped [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:16]OFD Sender: No OFD packet to send [17:02:21]OFD Sender: No OFD packet to send [17:02:26]OFD Sender: No OFD packet to send [17:02:31]OFD Sender: No OFD packet to send [17:02:36]OFD Sender: No OFD packet to send [17:02:41]OFD Sender: No OFD packet to send [17:02:46]OFD Sender: No OFD packet to send [17:02:51]OFD Sender: No OFD packet to send [17:02:56]OFD Sender: No OFD packet to send [17:03:01]OFD Sender: No OFD packet to send [17:03:06]OFD Sender: No OFD packet to send [17:03:11]OFD Sender: No OFD packet to send [17:03:16]OFD Sender: No OFD packet to send [17:03:21]OFD Sender: No OFD packet to send [17:03:26]OFD Sender: No OFD packet to send [17:03:31]OFD Sender: No OFD packet to send [17:03:36]OFD Sender: No OFD packet to send [17:03:41]OFD Sender: No OFD packet to send [17:03:46]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:24]accept exits with 10 [17:07:24]New connection [17:07:24]New thread 3066723684 created [17:07:24]Thread 3066580324 joined [17:07:24]Waiting for new connection... [17:07:24] Sock 10.Parse request [17:07:24]Sock 10.Check first char [17:07:24]Sock 10.First char is OK [17:07:24]request: POST /json_proto HTTP/1.0 [17:07:24]Method: POST [17:07:24]URL: /json_proto [17:07:24]Method is POST - this is cgi request [17:07:24]url: /json_proto [17:07:24]query_string will be loaded in cgi processing [17:07:24]execute_cgi json_proto POST (null) [17:07:24]execute_cgi path=json_proto method=POST [17:07:24]POST find Content-Length [17:07:24]Host: 172.17.37.4:8080 [17:07:24]Content-Length: 677 [17:07:24]Content-Type: application/json [17:07:24] [17:07:24]POST finish read [17:07:24]Found Content-Length = 677 [17:07:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.050, "sum" : 340.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:24]execute_script... [17:07:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.050, "sum" : 340.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:24]POST & json_proto [17:07:24]process_json_proto [17:07:24]json parsed OK: [17:07:24]protocol is kg_v1.0 [17:07:24]action value=close_receipt [17:07:24]process_action close_receipt [17:07:24]cmd_close_receipt [17:07:24]MH_GetDate [17:07:24]Write to MH i2c: F0 00 00 2B 6E 88 [17:07:24]Write i2c OK [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: F0 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: F0 09 00 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: F0 09 00 2B 6E 00 58 00 46 67 B8 5A 43 67 52 [17:07:24]GetLastDocTimeStamp 1732640450 [17:07:24]current date 1732640856 [17:07:24]FM_GetShiftState [17:07:24]SAM_PROTO_GetShiftState [17:07:24]wFMCommunicate request_size=4 [17:07:24]MH_SAM_APDU [17:07:24]CAPDU: 80 13 01 00 [17:07:24]Write to MH i2c: E2 08 00 2C 6E 80 13 01 00 00 00 00 00 17 [17:07:24]Write i2c OK [17:07:24]MH_I2C_Read... [17:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:24]Read from MH i2c: E2 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 0E 00 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 0E 00 2C 6E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 78 [17:07:24]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:07:24]wFMCommunicate OK [17:07:24]SAM_PROTO_GetShiftState done [17:07:24]FM_GetShiftState done [17:07:24]opened in 1732579736 [17:07:24]opened+sec_in_day 1732666136 [17:07:24]quantity*price = 34037 [17:07:24]sum+1 = 34038 [17:07:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.14 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 134 26.11.2024 17:07 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123280 ФПД: 212903205574061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T170736&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123280&fm=212903205574061&tin=02508201610067®Number=0000000000092681&sum=34000 [17:07:25]StoreToDocumentArchive [17:07:25]shift 557 fd 123280 [17:07:25]save to /storage/0557/doc_00123280 [17:07:25]save last doc name /storage/0557/doc_00123280 to /storage/kkm_last_doc_name [17:07:25]save OK [17:07:25]Clear old archive folders... [17:07:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:25]tlvbuf is 021C94C0 [17:07:25]SAM_PROTO_ClearQueue [17:07:25]wFMCommunicate request_size=4 [17:07:25]MH_SAM_APDU [17:07:25]CAPDU: 80 09 00 00 [17:07:25]Write to MH i2c: E2 08 00 39 6E 80 09 00 00 00 00 00 00 19 [17:07:25]Write i2c OK [17:07:25]MH_I2C_Read... [17:07:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:25]Read from MH i2c: E2 [17:07:25]MH_I2C_Read... [17:07:25]Read from MH i2c: E2 03 00 [17:07:25]MH_I2C_Read... [17:07:25]Read from MH i2c: E2 03 00 39 6E 00 90 00 1B [17:07:25]RAPDU: 90 00 [17:07:25]wFMCommunicate OK [17:07:25]SAM_PROTO_ClearQueue done [17:07:25]KKMCreateOFDPacket [17:07:25]OFDProtocolAddRootSTLVToBuf [17:07:25]FM_MakeSignedData [17:07:25]FM_MakeSignedData [17:07:25]SAM_PROTO_SignData [17:07:25]wFMCommunicate request_size=4 [17:07:25]MH_SAM_APDU [17:07:25]CAPDU: 80 0D 01 02 [17:07:25]Write to MH i2c: E2 08 00 3A 6E 80 0D 01 02 00 00 00 00 21 [17:07:25]Write i2c OK [17:07:25]MH_I2C_Read... [17:07:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:25]Read from MH i2c: E2 [17:07:25]MH_I2C_Read... [17:07:25]Read from MH i2c: E2 03 00 [17:07:25]MH_I2C_Read... [17:07:25]Read from MH i2c: E2 03 00 3A 6E 00 90 00 1C [17:07:25]RAPDU: 90 00 [17:07:25]wFMCommunicate OK [17:07:25]wFMCommunicate request_size=255 [17:07:25]MH_SAM_APDU [17:07:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BA 13 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 F5 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 58 00 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 90 E1 01 00 35 04 06 00 C1 [17:07:25]Write to MH i2c: E2 02 01 3B 6E 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 34 FF 03 08 00 03 BA 13 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 F5 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 58 00 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 90 E1 01 00 35 04 06 00 C1 00 00 D2 [17:07:25]Write i2c OK [17:07:25]MH_I2C_Read... [17:07:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:26]Read from MH i2c: E2 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 03 00 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 03 00 3B 6E 00 90 00 1D [17:07:26]RAPDU: 90 00 [17:07:26]wFMCommunicate OK [17:07:26]wFMCommunicate request_size=10 [17:07:26]MH_SAM_APDU [17:07:26]CAPDU: 80 0D 02 02 05 A2 63 F0 95 AD [17:07:26]Write to MH i2c: E2 0D 00 3C 6E 80 0D 02 02 05 00 A2 63 F0 95 AD 00 00 65 [17:07:26]Write i2c OK [17:07:26]MH_I2C_Read... [17:07:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:26]Read from MH i2c: E2 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 03 00 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 03 00 3C 6E 00 90 00 1E [17:07:26]RAPDU: 90 00 [17:07:26]wFMCommunicate OK [17:07:26]wFMCommunicate request_size=4 [17:07:26]MH_SAM_APDU [17:07:26]CAPDU: 80 0D 03 02 [17:07:26]Write to MH i2c: E2 08 00 3D 6E 80 0D 03 02 00 00 00 00 26 [17:07:26]Write i2c OK [17:07:26]MH_I2C_Read... [17:07:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:26]Read from MH i2c: E2 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 0B 00 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 0B 00 3D 6E 00 04 6E D1 83 CA 1C BE 89 90 00 1A [17:07:26]RAPDU: 04 6E D1 83 CA 1C BE 89 90 00 [17:07:26]wFMCommunicate OK [17:07:26]SAM_PROTO_SignData done [17:07:26]FM_MakeSignedData done [17:07:26]CreateOFDProtocolMessage [17:07:26]wFMCommunicate request_size=4 [17:07:26]MH_SAM_APDU [17:07:26]CAPDU: 80 11 00 00 [17:07:26]Write to MH i2c: E2 08 00 3E 6E 80 11 00 00 00 00 00 00 26 [17:07:26]Write i2c OK [17:07:26]MH_I2C_Read... [17:07:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:26]Read from MH i2c: E2 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 17 00 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 17 00 3E 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 7D [17:07:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:07:26]wFMCommunicate OK [17:07:26]CreateOFDProtocolMessage done [17:07:26]OFDSenderStorePacket 123280 [17:07:26]StoreOFDPacket docnum=123280 [17:07:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 86 DC 07 01 3A 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BA 13 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 F5 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 58 00 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 90 E1 01 00 35 04 06 00 C1 A2 63 F0 95 AD 04 6E D1 83 CA 1C BE 89 [17:07:26]CheckFolder [17:07:26]dirname=/storage/ofd_packets [17:07:26]CheckFolder done [17:07:26]ProducePacketName [17:07:26]name=ofd_packets/00123280 [17:07:26]NVStorageSaveData ofd_packets/00123280 [17:07:26]File name is /storage/ofd_packets/00123280 [17:07:26]Write 301 bytes [17:07:26]NVStorageSaveData done [17:07:26]OFDSenderStorePacket done [17:07:26]KKMCreateOFDPacket done [17:07:26]NVStorageSaveData kkm_last_timestamp [17:07:26]File name is /storage/kkm_last_timestamp [17:07:26]Write 4 bytes [17:07:26]NVStorageSaveData done [17:07:26]ExternCall_PrintAddStr [17:07:26]wPrintStart [17:07:26]Write to MH i2c: 01 00 00 3F 6E AD [17:07:26]Write i2c OK [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: 01 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: 01 07 00 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: 01 07 00 3F 6E 00 00 00 00 00 FF 0F C2 [17:07:26]RasterBufferAndPrint [17:07:26]line Счет N : (1)718110 [17:07:26]line ИНН: 02508201610067 [17:07:26]line Контрольно-Кассовый Чек [17:07:26]line ПРОДАЖА [17:07:26]line ТРК (МРК, ГНК) : 12 [17:07:26]line Товар: 2710124130 [17:07:26]line Аи-92-К-4 [17:07:26]line 5.050 * 67.40 [17:07:26]line = 340.37 [17:07:26]line НДС 12% НСП 1% [17:07:26]line > о реализуемом товаре [17:07:26]line ОКРУГЛЕНИЕ: -0.37 [17:07:26]line ИТОГО: 340.00 [17:07:26]line Внесено: 340.00 [17:07:26]line СДАЧА: 0.00 [17:07:26]line НСП 1% : 3.01 [17:07:26]line НДС 12% : 36.14 [17:07:26]line Наличными: 340.00 [17:07:26]line Безнал.: 0.00 [17:07:26]line Место: АЗС № 64 "Партнер Нефть" [17:07:26]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:07:26]line СНО: Общий режим [17:07:26]line Чек 134 26.11.2024 17:07 [17:07:26]line Смена: 557 ФФД: 1.0 [17:07:26]line ЗНМ: 0300000033 [17:07:26]line РНМ: 0000000000092681 [17:07:26]line Версия ККМ: 001 [17:07:26]line ФМ: 0000000000874881 [17:07:26]line ФД: 123280 [17:07:26]line ФПД: 212903205574061 [17:07:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T170736&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123280&fm=212903205574061&tin=02508201610067®Number=0000000000092681&sum=34000 [17:07:26]OFD Sender: Processing packet 123280 [packets to send 7, broken 6] [17:07:26]ProducePacketName [17:07:26]name=ofd_packets/00123280 [17:07:26]OFD Sender: To server: pG, [17:07:26]CommunicateWithHost lk.salyk.kg:30040 [17:07:26]ConnectInit lk.salyk.kg [17:07:26]written 0, free lines is 4095 [17:07:26]Connected sock=9 [17:07:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 86 DC 07 01 3A 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BA 13 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 F5 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 58 00 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 90 E1 01 00 35 04 06 00 C1 A2 63 F0 95 AD 04 6E D1 83 CA 1C BE 89 [17:07:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 54 B9 47 00 D1 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 90 E1 01 00 F4 03 04 00 1A AC 45 67 B6 04 01 00 00 47 07 33 D3 3B 33 B3 05 [17:07:27]CommunicateWithHost err = 0 [17:07:27]CheckOFDResponse [17:07:27]1017 (14) - 77093643461234 [17:07:27]1041 (16) - 0000000000874881 [17:07:27]1040 (4) - 123280 [17:07:27]1012 (4) - 26.11.2024 11:08 [17:07:27]1206 (1) - 0 [17:07:27]OFD Sender: Remove packet 123280 [17:07:27]ProducePacketName [17:07:27]name=ofd_packets/00123280 [17:07:27]NVStorageDeleteData [17:07:27]Write to MH i2c: 01 00 00 6A 6E D8 [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: 01 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: 01 07 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: 01 07 00 6A 6E 00 00 00 00 00 4E 0C 39 [17:07:27]RasterBufferAndPrint [17:07:27]line [17:07:27]line [17:07:27]line [17:07:27]line [17:07:27]line [17:07:27]written 0, free lines is 3153 [17:07:27]MH_Cut [17:07:27]Write to MH i2c: D1 01 00 71 6E 01 B1 [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: D1 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: D1 01 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: D1 01 00 71 6E 00 B0 [17:07:27]Write to MH i2c: 01 00 00 72 6E E0 [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]OFD Sender: No OFD packet to send [17:07:28]*** Cut start [17:07:28]*** Partial cut [17:07:28]*** CUTSNS_PIN = 1 [17:07:28]*** CUTSNS_PIN = 0 [17:07:28]*** Brake cut motor [17:07:29]Read from MH i2c: 01 [17:07:29]MH_I2C_Read... [17:07:29]*** Stop cut motor [17:07:29]*** Cut end [17:07:29]Read from MH i2c: 01 07 00 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: 01 07 00 72 6E 00 00 00 00 00 FF 0F F5 [17:07:29]process_action close_receipt done [17:07:29]requested_data is exist [17:07:29]produce_requested_data [17:07:29]requested_item fm.sn is exist - process it [17:07:29]wFMCommunicate request_size=4 [17:07:29]MH_SAM_APDU [17:07:29]CAPDU: 80 11 00 00 [17:07:29]Write to MH i2c: E2 08 00 73 6E 80 11 00 00 00 00 00 00 5B [17:07:29]Write i2c OK [17:07:29]MH_I2C_Read... [17:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:29]Read from MH i2c: E2 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: E2 17 00 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: E2 17 00 73 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B2 [17:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:07:29]wFMCommunicate OK [17:07:29]requested_item fd.num is exist - process it [17:07:29]SAM_PROTO_GetFieldsCounters [17:07:29]wFMCommunicate request_size=4 [17:07:29]MH_SAM_APDU [17:07:29]CAPDU: 80 13 00 00 [17:07:29]Write to MH i2c: E2 08 00 74 6E 80 13 00 00 00 00 00 00 5E [17:07:29]Write i2c OK [17:07:29]MH_I2C_Read... [17:07:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:29]Read from MH i2c: E2 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: E2 62 00 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: E2 62 00 74 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 90 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [17:07:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 90 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:29]wFMCommunicate OK [17:07:29]SAM_PROTO_GetFieldsCounters done [17:07:29]requested_item shift.num is exist - process it [17:07:29]requested_item shift.opened is exist - process it [17:07:29]req_shift_opened [17:07:29]FM_GetShiftState [17:07:29]SAM_PROTO_GetShiftState [17:07:29]wFMCommunicate request_size=4 [17:07:29]MH_SAM_APDU [17:07:29]CAPDU: 80 13 01 00 [17:07:29]Write to MH i2c: E2 08 00 75 6E 80 13 01 00 00 00 00 00 60 [17:07:29]Write i2c OK [17:07:29]MH_I2C_Read... [17:07:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:29]Read from MH i2c: E2 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: E2 0E 00 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: E2 0E 00 75 6E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 C1 [17:07:29]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:07:29]wFMCommunicate OK [17:07:29]SAM_PROTO_GetShiftState done [17:07:29]FM_GetShiftState done [17:07:29]req_shift_opened done [17:07:29]requested_item shift.open_date is exist - process it [17:07:29]req_shift_open_date [17:07:29]req_shift_open_date done [17:07:29]produce_requested_data done [17:07:29]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123280,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [17:07:29]process_action_free close_receipt [17:07:29]json_value_free [17:07:29]json_value_free done [17:07:29]process_json_proto returns [17:07:29]Send response to host [17:07:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123280,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [17:07:29]free response buf [17:07:29]execute_script done [17:07:29]execute_script returns [17:07:29]free content buf [17:07:29]Sock 10.Close socket [17:07:29]Sock 10.Thread stoped [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:54]accept exits with 7 [17:07:54]New connection [17:07:54]New thread 3066580324 created [17:07:54]Thread 3066723684 joined [17:07:54]Waiting for new connection... [17:07:54] Sock 7.Parse request [17:07:54]Sock 7.Check first char [17:07:54]Sock 7.First char is OK [17:07:54]request: POST /json_proto HTTP/1.0 [17:07:54]Method: POST [17:07:54]URL: /json_proto [17:07:54]Method is POST - this is cgi request [17:07:54]url: /json_proto [17:07:54]query_string will be loaded in cgi processing [17:07:54]execute_cgi json_proto POST (null) [17:07:54]execute_cgi path=json_proto method=POST [17:07:54]POST find Content-Length [17:07:54]Host: 172.17.37.4:8080 [17:07:54]Content-Length: 677 [17:07:54]Content-Type: application/json [17:07:54] [17:07:54]POST finish read [17:07:54]Found Content-Length = 677 [17:07:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.200, "sum" : 350.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:54]execute_script... [17:07:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.200, "sum" : 350.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:54]POST & json_proto [17:07:54]process_json_proto [17:07:54]json parsed OK: [17:07:54]protocol is kg_v1.0 [17:07:54]action value=close_receipt [17:07:54]process_action close_receipt [17:07:54]cmd_close_receipt [17:07:54]MH_GetDate [17:07:54]Write to MH i2c: F0 00 00 76 6E D3 [17:07:54]Write i2c OK [17:07:54]MH_I2C_Read... [17:07:54]Read from MH i2c: F0 [17:07:54]MH_I2C_Read... [17:07:54]Read from MH i2c: F0 09 00 [17:07:54]MH_I2C_Read... [17:07:54]Read from MH i2c: F0 09 00 76 6E 00 75 00 46 67 B8 5A 43 67 BA [17:07:54]GetLastDocTimeStamp 1732640856 [17:07:54]current date 1732640885 [17:07:54]FM_GetShiftState [17:07:54]SAM_PROTO_GetShiftState [17:07:54]wFMCommunicate request_size=4 [17:07:54]MH_SAM_APDU [17:07:54]CAPDU: 80 13 01 00 [17:07:54]Write to MH i2c: E2 08 00 77 6E 80 13 01 00 00 00 00 00 62 [17:07:54]Write i2c OK [17:07:54]MH_I2C_Read... [17:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:54]Read from MH i2c: E2 [17:07:54]MH_I2C_Read... [17:07:54]Read from MH i2c: E2 0E 00 [17:07:54]MH_I2C_Read... [17:07:54]Read from MH i2c: E2 0E 00 77 6E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 C3 [17:07:54]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:07:54]wFMCommunicate OK [17:07:54]SAM_PROTO_GetShiftState done [17:07:54]FM_GetShiftState done [17:07:54]opened in 1732579736 [17:07:54]opened+sec_in_day 1732666136 [17:07:54]quantity*price = 35048 [17:07:54]sum+1 = 35049 [17:07:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 135 26.11.2024 17:08 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123281 ФПД: 760750785744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T170805&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123281&fm=760750785744&tin=02508201610067®Number=0000000000092681&sum=35000 [17:07:55]StoreToDocumentArchive [17:07:55]shift 557 fd 123281 [17:07:55]save to /storage/0557/doc_00123281 [17:07:55]save last doc name /storage/0557/doc_00123281 to /storage/kkm_last_doc_name [17:07:55]save OK [17:07:55]Clear old archive folders... [17:07:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:55]tlvbuf is 02166D90 [17:07:55]SAM_PROTO_ClearQueue [17:07:55]wFMCommunicate request_size=4 [17:07:55]MH_SAM_APDU [17:07:55]CAPDU: 80 09 00 00 [17:07:55]Write to MH i2c: E2 08 00 84 6E 80 09 00 00 00 00 00 00 64 [17:07:55]Write i2c OK [17:07:55]MH_I2C_Read... [17:07:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:55]Read from MH i2c: E2 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 03 00 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 03 00 84 6E 00 90 00 66 [17:07:55]RAPDU: 90 00 [17:07:55]wFMCommunicate OK [17:07:55]SAM_PROTO_ClearQueue done [17:07:55]KKMCreateOFDPacket [17:07:55]OFDProtocolAddRootSTLVToBuf [17:07:55]FM_MakeSignedData [17:07:55]FM_MakeSignedData [17:07:55]SAM_PROTO_SignData [17:07:55]wFMCommunicate request_size=4 [17:07:55]MH_SAM_APDU [17:07:55]CAPDU: 80 0D 01 02 [17:07:55]Write to MH i2c: E2 08 00 85 6E 80 0D 01 02 00 00 00 00 6C [17:07:55]Write i2c OK [17:07:55]MH_I2C_Read... [17:07:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:55]Read from MH i2c: E2 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 03 00 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 03 00 85 6E 00 90 00 67 [17:07:55]RAPDU: 90 00 [17:07:55]wFMCommunicate OK [17:07:55]wFMCommunicate request_size=255 [17:07:55]MH_SAM_APDU [17:07:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 14 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 E8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 75 00 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 91 E1 01 00 35 04 06 00 00 [17:07:55]Write to MH i2c: E2 02 01 86 6E 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 34 FF 03 08 00 03 50 14 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 E8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 75 00 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 91 E1 01 00 35 04 06 00 00 00 00 56 [17:07:55]Write i2c OK [17:07:55]MH_I2C_Read... [17:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:55]Read from MH i2c: E2 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 03 00 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 03 00 86 6E 00 90 00 68 [17:07:55]RAPDU: 90 00 [17:07:55]wFMCommunicate OK [17:07:55]wFMCommunicate request_size=10 [17:07:55]MH_SAM_APDU [17:07:55]CAPDU: 80 0D 02 02 05 B1 20 47 C4 D0 [17:07:55]Write to MH i2c: E2 0D 00 87 6E 80 0D 02 02 05 00 B1 20 47 C4 D0 00 00 25 [17:07:55]Write i2c OK [17:07:55]MH_I2C_Read... [17:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:55]Read from MH i2c: E2 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 03 00 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 03 00 87 6E 00 90 00 69 [17:07:55]RAPDU: 90 00 [17:07:55]wFMCommunicate OK [17:07:55]wFMCommunicate request_size=4 [17:07:55]MH_SAM_APDU [17:07:55]CAPDU: 80 0D 03 02 [17:07:55]Write to MH i2c: E2 08 00 88 6E 80 0D 03 02 00 00 00 00 71 [17:07:55]Write i2c OK [17:07:55]MH_I2C_Read... [17:07:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:55]Read from MH i2c: E2 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 0B 00 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 0B 00 88 6E 00 4C DF B8 67 86 D9 30 45 90 00 90 [17:07:55]RAPDU: 4C DF B8 67 86 D9 30 45 90 00 [17:07:55]wFMCommunicate OK [17:07:55]SAM_PROTO_SignData done [17:07:55]FM_MakeSignedData done [17:07:55]CreateOFDProtocolMessage [17:07:55]wFMCommunicate request_size=4 [17:07:55]MH_SAM_APDU [17:07:55]CAPDU: 80 11 00 00 [17:07:55]Write to MH i2c: E2 08 00 89 6E 80 11 00 00 00 00 00 00 71 [17:07:55]Write i2c OK [17:07:55]MH_I2C_Read... [17:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:55]Read from MH i2c: E2 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 17 00 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 17 00 89 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C8 [17:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:07:55]wFMCommunicate OK [17:07:55]CreateOFDProtocolMessage done [17:07:55]OFDSenderStorePacket 123281 [17:07:55]StoreOFDPacket docnum=123281 [17:07:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3B 26 07 01 9F 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 14 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 E8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 75 00 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 91 E1 01 00 35 04 06 00 00 B1 20 47 C4 D0 4C DF B8 67 86 D9 30 45 [17:07:55]CheckFolder [17:07:55]dirname=/storage/ofd_packets [17:07:55]CheckFolder done [17:07:55]ProducePacketName [17:07:55]name=ofd_packets/00123281 [17:07:55]NVStorageSaveData ofd_packets/00123281 [17:07:55]File name is /storage/ofd_packets/00123281 [17:07:55]Write 301 bytes [17:07:55]NVStorageSaveData done [17:07:55]OFDSenderStorePacket done [17:07:55]KKMCreateOFDPacket done [17:07:55]NVStorageSaveData kkm_last_timestamp [17:07:55]File name is /storage/kkm_last_timestamp [17:07:55]Write 4 bytes [17:07:55]NVStorageSaveData done [17:07:55]ExternCall_PrintAddStr [17:07:55]wPrintStart [17:07:55]Write to MH i2c: 01 00 00 8A 6E F8 [17:07:55]Write i2c OK [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: 01 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: 01 07 00 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: 01 07 00 8A 6E 00 00 00 00 00 FF 0F 0D [17:07:55]RasterBufferAndPrint [17:07:55]line Счет N : (1)718111 [17:07:55]line ИНН: 02508201610067 [17:07:55]line Контрольно-Кассовый Чек [17:07:55]line ПРОДАЖА [17:07:55]line ТРК (МРК, ГНК) : 32 [17:07:55]line Товар: 2710124130 [17:07:55]line Аи-92-К-4 [17:07:55]line 5.200 * 67.40 [17:07:55]line = 350.48 [17:07:55]line НДС 12% НСП 1% [17:07:55]line > о реализуемом товаре [17:07:55]line ОКРУГЛЕНИЕ: -0.48 [17:07:55]line ИТОГО: 350.00 [17:07:55]line Внесено: 350.00 [17:07:55]line СДАЧА: 0.00 [17:07:55]line НСП 1% : 3.10 [17:07:55]line НДС 12% : 37.22 [17:07:55]line Наличными: 350.00 [17:07:55]line Безнал.: 0.00 [17:07:55]line Место: АЗС № 64 "Партнер Нефть" [17:07:55]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:07:55]line СНО: Общий режим [17:07:55]line Чек 135 26.11.2024 17:08 [17:07:55]line Смена: 557 ФФД: 1.0 [17:07:55]line ЗНМ: 0300000033 [17:07:55]line РНМ: 0000000000092681 [17:07:55]line Версия ККМ: 001 [17:07:55]line ФМ: 0000000000874881 [17:07:55]line ФД: 123281 [17:07:55]line ФПД: 760750785744 [17:07:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T170805&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123281&fm=760750785744&tin=02508201610067®Number=0000000000092681&sum=35000 [17:07:56]OFD Sender: Processing packet 123281 [packets to send 7, broken 6] [17:07:56]ProducePacketName [17:07:56]name=ofd_packets/00123281 [17:07:56]OFD Sender: To server: pG, [17:07:56]CommunicateWithHost lk.salyk.kg:30040 [17:07:56]ConnectInit lk.salyk.kg [17:07:56]written 0, free lines is 4095 [17:07:56]Connected sock=10 [17:07:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3B 26 07 01 9F 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 14 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 E8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 75 00 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 91 E1 01 00 35 04 06 00 00 B1 20 47 C4 D0 4C DF B8 67 86 D9 30 45 [17:07:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 1D F3 47 00 9D FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 91 E1 01 00 F4 03 04 00 37 AC 45 67 B6 04 01 00 00 6F 1B 4E 91 B2 A2 43 BF [17:07:56]CommunicateWithHost err = 0 [17:07:56]CheckOFDResponse [17:07:56]1017 (14) - 77093643461234 [17:07:56]1041 (16) - 0000000000874881 [17:07:56]1040 (4) - 123281 [17:07:56]1012 (4) - 26.11.2024 11:08 [17:07:56]1206 (1) - 0 [17:07:56]OFD Sender: Remove packet 123281 [17:07:56]ProducePacketName [17:07:56]name=ofd_packets/00123281 [17:07:56]NVStorageDeleteData [17:07:56]Write to MH i2c: 01 00 00 B5 6E 23 [17:07:56]Write i2c OK [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: 01 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: 01 07 00 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: 01 07 00 B5 6E 00 00 00 00 00 54 0C 8A [17:07:56]RasterBufferAndPrint [17:07:56]line [17:07:56]line [17:07:56]line [17:07:56]line [17:07:56]line [17:07:56]written 0, free lines is 3159 [17:07:56]MH_Cut [17:07:56]Write to MH i2c: D1 01 00 BC 6E 01 FC [17:07:56]Write i2c OK [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: D1 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: D1 01 00 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: D1 01 00 BC 6E 00 FB [17:07:56]Write to MH i2c: 01 00 00 BD 6E 2B [17:07:56]Write i2c OK [17:07:56]MH_I2C_Read... [17:07:57]OFD Sender: No OFD packet to send [17:07:58]*** Cut start [17:07:58]*** Partial cut [17:07:58]*** CUTSNS_PIN = 1 [17:07:58]*** CUTSNS_PIN = 0 [17:07:58]*** Brake cut motor [17:07:58]Read from MH i2c: 01 [17:07:58]MH_I2C_Read... [17:07:58]*** Stop cut motor [17:07:58]*** Cut end [17:07:58]Read from MH i2c: 01 07 00 [17:07:58]MH_I2C_Read... [17:07:58]Read from MH i2c: 01 07 00 BD 6E 00 00 00 00 00 FF 0F 40 [17:07:58]process_action close_receipt done [17:07:58]requested_data is exist [17:07:58]produce_requested_data [17:07:58]requested_item fm.sn is exist - process it [17:07:58]wFMCommunicate request_size=4 [17:07:58]MH_SAM_APDU [17:07:58]CAPDU: 80 11 00 00 [17:07:58]Write to MH i2c: E2 08 00 BE 6E 80 11 00 00 00 00 00 00 A6 [17:07:58]Write i2c OK [17:07:58]MH_I2C_Read... [17:07:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:58]Read from MH i2c: E2 [17:07:58]MH_I2C_Read... [17:07:58]Read from MH i2c: E2 17 00 [17:07:58]MH_I2C_Read... [17:07:58]Read from MH i2c: E2 17 00 BE 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FD [17:07:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:07:58]wFMCommunicate OK [17:07:58]requested_item fd.num is exist - process it [17:07:58]SAM_PROTO_GetFieldsCounters [17:07:58]wFMCommunicate request_size=4 [17:07:58]MH_SAM_APDU [17:07:58]CAPDU: 80 13 00 00 [17:07:58]Write to MH i2c: E2 08 00 BF 6E 80 13 00 00 00 00 00 00 A9 [17:07:58]Write i2c OK [17:07:58]MH_I2C_Read... [17:07:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:58]Read from MH i2c: E2 [17:07:58]MH_I2C_Read... [17:07:58]Read from MH i2c: E2 62 00 [17:07:58]MH_I2C_Read... [17:07:58]Read from MH i2c: E2 62 00 BF 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 91 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [17:07:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 91 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:58]wFMCommunicate OK [17:07:58]SAM_PROTO_GetFieldsCounters done [17:07:58]requested_item shift.num is exist - process it [17:07:58]requested_item shift.opened is exist - process it [17:07:58]req_shift_opened [17:07:58]FM_GetShiftState [17:07:58]SAM_PROTO_GetShiftState [17:07:58]wFMCommunicate request_size=4 [17:07:58]MH_SAM_APDU [17:07:58]CAPDU: 80 13 01 00 [17:07:58]Write to MH i2c: E2 08 00 C0 6E 80 13 01 00 00 00 00 00 AB [17:07:58]Write i2c OK [17:07:58]MH_I2C_Read... [17:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:58]Read from MH i2c: E2 [17:07:58]MH_I2C_Read... [17:07:58]Read from MH i2c: E2 0E 00 [17:07:58]MH_I2C_Read... [17:07:58]Read from MH i2c: E2 0E 00 C0 6E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 0C [17:07:58]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:07:58]wFMCommunicate OK [17:07:58]SAM_PROTO_GetShiftState done [17:07:58]FM_GetShiftState done [17:07:58]req_shift_opened done [17:07:58]requested_item shift.open_date is exist - process it [17:07:58]req_shift_open_date [17:07:58]req_shift_open_date done [17:07:58]produce_requested_data done [17:07:58]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123281,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [17:07:58]process_action_free close_receipt [17:07:58]json_value_free [17:07:58]json_value_free done [17:07:58]process_json_proto returns [17:07:58]Send response to host [17:07:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123281,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [17:07:58]free response buf [17:07:58]execute_script done [17:07:58]execute_script returns [17:07:58]free content buf [17:07:58]Sock 7.Close socket [17:07:58]Sock 7.Thread stoped [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:25]accept exits with 9 [17:08:25]New connection [17:08:25]New thread 3066723684 created [17:08:25]Thread 3066580324 joined [17:08:25]Waiting for new connection... [17:08:25] Sock 9.Parse request [17:08:25]Sock 9.Check first char [17:08:25]Sock 9.First char is OK [17:08:25]request: POST /json_proto HTTP/1.0 [17:08:25]Method: POST [17:08:25]URL: /json_proto [17:08:25]Method is POST - this is cgi request [17:08:25]url: /json_proto [17:08:25]query_string will be loaded in cgi processing [17:08:25]execute_cgi json_proto POST (null) [17:08:25]execute_cgi path=json_proto method=POST [17:08:25]POST find Content-Length [17:08:25]Host: 172.17.37.4:8080 [17:08:25]Content-Length: 677 [17:08:25]Content-Type: application/json [17:08:25] [17:08:25]POST finish read [17:08:25]Found Content-Length = 677 [17:08:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:25]execute_script... [17:08:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:25]POST & json_proto [17:08:25]process_json_proto [17:08:25]json parsed OK: [17:08:25]protocol is kg_v1.0 [17:08:25]action value=close_receipt [17:08:25]process_action close_receipt [17:08:25]cmd_close_receipt [17:08:25]MH_GetDate [17:08:25]Write to MH i2c: F0 00 00 C1 6E 1E [17:08:25]Write i2c OK [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: F0 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: F0 09 00 [17:08:25]MH_I2C_Read... [17:08:25]Read from MH i2c: F0 09 00 C1 6E 00 95 00 46 67 B8 5A 43 67 25 [17:08:25]GetLastDocTimeStamp 1732640885 [17:08:25]current date 1732640917 [17:08:25]FM_GetShiftState [17:08:25]SAM_PROTO_GetShiftState [17:08:25]wFMCommunicate request_size=4 [17:08:25]MH_SAM_APDU [17:08:25]CAPDU: 80 13 01 00 [17:08:25]Write to MH i2c: E2 08 00 C2 6E 80 13 01 00 00 00 00 00 AD [17:08:25]Write i2c OK [17:08:25]MH_I2C_Read... [17:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:26]Read from MH i2c: E2 [17:08:26]MH_I2C_Read... [17:08:26]Read from MH i2c: E2 0E 00 [17:08:26]MH_I2C_Read... [17:08:26]Read from MH i2c: E2 0E 00 C2 6E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 0E [17:08:26]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:08:26]wFMCommunicate OK [17:08:26]SAM_PROTO_GetShiftState done [17:08:26]FM_GetShiftState done [17:08:26]opened in 1732579736 [17:08:26]opened+sec_in_day 1732666136 [17:08:26]quantity*price = 40035 [17:08:26]sum+1 = 40037 [17:08:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 136 26.11.2024 17:08 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123282 ФПД: 249371057240649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T170837&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123282&fm=249371057240649&tin=02508201610067®Number=0000000000092681&sum=40000 [17:08:27]StoreToDocumentArchive [17:08:27]shift 557 fd 123282 [17:08:27]save to /storage/0557/doc_00123282 [17:08:27]save last doc name /storage/0557/doc_00123282 to /storage/kkm_last_doc_name [17:08:27]save OK [17:08:27]Clear old archive folders... [17:08:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:27]tlvbuf is 020D3AE0 [17:08:27]SAM_PROTO_ClearQueue [17:08:27]wFMCommunicate request_size=4 [17:08:27]MH_SAM_APDU [17:08:27]CAPDU: 80 09 00 00 [17:08:27]Write to MH i2c: E2 08 00 CF 6E 80 09 00 00 00 00 00 00 AF [17:08:27]Write i2c OK [17:08:27]MH_I2C_Read... [17:08:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:27]Read from MH i2c: E2 [17:08:27]MH_I2C_Read... [17:08:27]Read from MH i2c: E2 03 00 [17:08:27]MH_I2C_Read... [17:08:27]Read from MH i2c: E2 03 00 CF 6E 00 90 00 B1 [17:08:27]RAPDU: 90 00 [17:08:27]wFMCommunicate OK [17:08:27]SAM_PROTO_ClearQueue done [17:08:27]KKMCreateOFDPacket [17:08:27]OFDProtocolAddRootSTLVToBuf [17:08:27]FM_MakeSignedData [17:08:27]FM_MakeSignedData [17:08:27]SAM_PROTO_SignData [17:08:27]wFMCommunicate request_size=4 [17:08:27]MH_SAM_APDU [17:08:27]CAPDU: 80 0D 01 02 [17:08:27]Write to MH i2c: E2 08 00 D0 6E 80 0D 01 02 00 00 00 00 B7 [17:08:27]Write i2c OK [17:08:27]MH_I2C_Read... [17:08:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:27]Read from MH i2c: E2 [17:08:27]MH_I2C_Read... [17:08:27]Read from MH i2c: E2 03 00 [17:08:27]MH_I2C_Read... [17:08:27]Read from MH i2c: E2 03 00 D0 6E 00 90 00 B2 [17:08:27]RAPDU: 90 00 [17:08:27]wFMCommunicate OK [17:08:27]wFMCommunicate request_size=255 [17:08:27]MH_SAM_APDU [17:08:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 95 00 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 92 E1 01 00 35 04 06 00 E2 [17:08:27]Write to MH i2c: E2 02 01 D1 6E 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 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 95 00 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 92 E1 01 00 35 04 06 00 E2 00 00 94 [17:08:27]Write i2c OK [17:08:27]MH_I2C_Read... [17:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:27]Read from MH i2c: E2 [17:08:27]MH_I2C_Read... [17:08:27]Read from MH i2c: E2 03 00 [17:08:27]MH_I2C_Read... [17:08:27]Read from MH i2c: E2 03 00 D1 6E 00 90 00 B3 [17:08:27]RAPDU: 90 00 [17:08:27]wFMCommunicate OK [17:08:27]wFMCommunicate request_size=10 [17:08:27]MH_SAM_APDU [17:08:27]CAPDU: 80 0D 02 02 05 CD 39 48 BA 49 [17:08:27]Write to MH i2c: E2 0D 00 D2 6E 80 0D 02 02 05 00 CD 39 48 BA 49 00 00 15 [17:08:27]Write i2c OK [17:08:27]MH_I2C_Read... [17:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:27]Read from MH i2c: E2 [17:08:27]MH_I2C_Read... [17:08:27]Read from MH i2c: E2 03 00 [17:08:27]MH_I2C_Read... [17:08:27]Read from MH i2c: E2 03 00 D2 6E 00 90 00 B4 [17:08:27]RAPDU: 90 00 [17:08:27]wFMCommunicate OK [17:08:27]wFMCommunicate request_size=4 [17:08:27]MH_SAM_APDU [17:08:27]CAPDU: 80 0D 03 02 [17:08:27]Write to MH i2c: E2 08 00 D3 6E 80 0D 03 02 00 00 00 00 BC [17:08:27]Write i2c OK [17:08:27]MH_I2C_Read... [17:08:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:27]Read from MH i2c: E2 [17:08:27]MH_I2C_Read... [17:08:27]Read from MH i2c: E2 0B 00 [17:08:27]MH_I2C_Read... [17:08:27]Read from MH i2c: E2 0B 00 D3 6E 00 13 F1 2E 3B EE C4 23 6C 90 00 6B [17:08:27]RAPDU: 13 F1 2E 3B EE C4 23 6C 90 00 [17:08:27]wFMCommunicate OK [17:08:27]SAM_PROTO_SignData done [17:08:27]FM_MakeSignedData done [17:08:27]CreateOFDProtocolMessage [17:08:27]wFMCommunicate request_size=4 [17:08:27]MH_SAM_APDU [17:08:27]CAPDU: 80 11 00 00 [17:08:27]Write to MH i2c: E2 08 00 D4 6E 80 11 00 00 00 00 00 00 BC [17:08:27]Write i2c OK [17:08:27]MH_I2C_Read... [17:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:27]Read from MH i2c: E2 [17:08:27]MH_I2C_Read... [17:08:27]Read from MH i2c: E2 17 00 [17:08:27]MH_I2C_Read... [17:08:27]Read from MH i2c: E2 17 00 D4 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 13 [17:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:08:27]wFMCommunicate OK [17:08:27]CreateOFDProtocolMessage done [17:08:27]OFDSenderStorePacket 123282 [17:08:27]StoreOFDPacket docnum=123282 [17:08:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3B 9D 07 01 D4 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 95 00 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 92 E1 01 00 35 04 06 00 E2 CD 39 48 BA 49 13 F1 2E 3B EE C4 23 6C [17:08:27]CheckFolder [17:08:27]dirname=/storage/ofd_packets [17:08:27]CheckFolder done [17:08:27]ProducePacketName [17:08:27]name=ofd_packets/00123282 [17:08:27]NVStorageSaveData ofd_packets/00123282 [17:08:27]File name is /storage/ofd_packets/00123282 [17:08:27]Write 301 bytes [17:08:27]NVStorageSaveData done [17:08:27]OFDSenderStorePacket done [17:08:27]KKMCreateOFDPacket done [17:08:27]NVStorageSaveData kkm_last_timestamp [17:08:27]File name is /storage/kkm_last_timestamp [17:08:27]Write 4 bytes [17:08:27]NVStorageSaveData done [17:08:27]ExternCall_PrintAddStr [17:08:27]wPrintStart [17:08:27]Write to MH i2c: 01 00 00 D5 6E 43 [17:08:27]Write i2c OK [17:08:27]MH_I2C_Read... [17:08:27]Read from MH i2c: 01 [17:08:27]MH_I2C_Read... [17:08:27]Read from MH i2c: 01 07 00 [17:08:27]MH_I2C_Read... [17:08:27]Read from MH i2c: 01 07 00 D5 6E 00 00 00 00 00 FF 0F 58 [17:08:27]RasterBufferAndPrint [17:08:27]line Счет N : (1)718112 [17:08:27]line ИНН: 02508201610067 [17:08:27]line Контрольно-Кассовый Чек [17:08:27]line ПРОДАЖА [17:08:27]line ТРК (МРК, ГНК) : 22 [17:08:27]line Товар: 2710124130 [17:08:27]line Аи-92-К-4 [17:08:27]line 5.940 * 67.40 [17:08:27]line = 400.36 [17:08:27]line НДС 12% НСП 1% [17:08:27]line > о реализуемом товаре [17:08:27]line ОКРУГЛЕНИЕ: -0.36 [17:08:27]line ИТОГО: 400.00 [17:08:27]line Внесено: 400.00 [17:08:27]line СДАЧА: 0.00 [17:08:27]line НСП 1% : 3.54 [17:08:27]line НДС 12% : 42.52 [17:08:27]line Наличными: 400.00 [17:08:27]line Безнал.: 0.00 [17:08:27]line Место: АЗС № 64 "Партнер Нефть" [17:08:27]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:08:27]line СНО: Общий режим [17:08:27]line Чек 136 26.11.2024 17:08 [17:08:27]line Смена: 557 ФФД: 1.0 [17:08:27]line ЗНМ: 0300000033 [17:08:27]line РНМ: 0000000000092681 [17:08:27]line Версия ККМ: 001 [17:08:27]line ФМ: 0000000000874881 [17:08:27]line ФД: 123282 [17:08:27]line ФПД: 249371057240649 [17:08:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T170837&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123282&fm=249371057240649&tin=02508201610067®Number=0000000000092681&sum=40000 [17:08:28]OFD Sender: Processing packet 123282 [packets to send 7, broken 6] [17:08:28]ProducePacketName [17:08:28]name=ofd_packets/00123282 [17:08:28]OFD Sender: To server: pG, [17:08:28]CommunicateWithHost lk.salyk.kg:30040 [17:08:28]ConnectInit lk.salyk.kg [17:08:28]written 0, free lines is 4095 [17:08:28]Connected sock=10 [17:08:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3B 9D 07 01 D4 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 95 00 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 92 E1 01 00 35 04 06 00 E2 CD 39 48 BA 49 13 F1 2E 3B EE C4 23 6C [17:08:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 09 00 47 00 EE 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 92 E1 01 00 F4 03 04 00 57 AC 45 67 B6 04 01 00 00 0D DA 28 07 2C 23 99 02 [17:08:28]CommunicateWithHost err = 0 [17:08:28]CheckOFDResponse [17:08:28]1017 (14) - 77093643461234 [17:08:28]1041 (16) - 0000000000874881 [17:08:28]1040 (4) - 123282 [17:08:28]1012 (4) - 26.11.2024 11:09 [17:08:28]1206 (1) - 0 [17:08:28]OFD Sender: Remove packet 123282 [17:08:28]ProducePacketName [17:08:28]name=ofd_packets/00123282 [17:08:28]NVStorageDeleteData [17:08:28]Write to MH i2c: 01 00 00 00 6F 6F [17:08:28]Write i2c OK [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: 01 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: 01 07 00 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: 01 07 00 00 6F 00 00 00 00 00 5F 0C E1 [17:08:28]RasterBufferAndPrint [17:08:28]line [17:08:28]line [17:08:28]line [17:08:28]line [17:08:28]line [17:08:28]written 0, free lines is 3170 [17:08:28]MH_Cut [17:08:28]Write to MH i2c: D1 01 00 07 6F 01 48 [17:08:28]Write i2c OK [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: D1 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: D1 01 00 [17:08:28]MH_I2C_Read... [17:08:28]Read from MH i2c: D1 01 00 07 6F 00 47 [17:08:28]Write to MH i2c: 01 00 00 08 6F 77 [17:08:28]Write i2c OK [17:08:28]MH_I2C_Read... [17:08:28]OFD Sender: No OFD packet to send [17:08:29]*** Cut start [17:08:29]*** Partial cut [17:08:29]*** CUTSNS_PIN = 1 [17:08:29]*** CUTSNS_PIN = 0 [17:08:30]*** Brake cut motor [17:08:30]Read from MH i2c: 01 [17:08:30]MH_I2C_Read... [17:08:30]*** Stop cut motor [17:08:30]*** Cut end [17:08:30]Read from MH i2c: 01 07 00 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: 01 07 00 08 6F 00 00 00 00 00 FF 0F 8C [17:08:30]process_action close_receipt done [17:08:30]requested_data is exist [17:08:30]produce_requested_data [17:08:30]requested_item fm.sn is exist - process it [17:08:30]wFMCommunicate request_size=4 [17:08:30]MH_SAM_APDU [17:08:30]CAPDU: 80 11 00 00 [17:08:30]Write to MH i2c: E2 08 00 09 6F 80 11 00 00 00 00 00 00 F2 [17:08:30]Write i2c OK [17:08:30]MH_I2C_Read... [17:08:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:30]Read from MH i2c: E2 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: E2 17 00 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: E2 17 00 09 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 49 [17:08:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:08:30]wFMCommunicate OK [17:08:30]requested_item fd.num is exist - process it [17:08:30]SAM_PROTO_GetFieldsCounters [17:08:30]wFMCommunicate request_size=4 [17:08:30]MH_SAM_APDU [17:08:30]CAPDU: 80 13 00 00 [17:08:30]Write to MH i2c: E2 08 00 0A 6F 80 13 00 00 00 00 00 00 F5 [17:08:30]Write i2c OK [17:08:30]MH_I2C_Read... [17:08:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:30]Read from MH i2c: E2 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: E2 62 00 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: E2 62 00 0A 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 92 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [17:08:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 92 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:30]wFMCommunicate OK [17:08:30]SAM_PROTO_GetFieldsCounters done [17:08:30]requested_item shift.num is exist - process it [17:08:30]requested_item shift.opened is exist - process it [17:08:30]req_shift_opened [17:08:30]FM_GetShiftState [17:08:30]SAM_PROTO_GetShiftState [17:08:30]wFMCommunicate request_size=4 [17:08:30]MH_SAM_APDU [17:08:30]CAPDU: 80 13 01 00 [17:08:30]Write to MH i2c: E2 08 00 0B 6F 80 13 01 00 00 00 00 00 F7 [17:08:30]Write i2c OK [17:08:30]MH_I2C_Read... [17:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:30]Read from MH i2c: E2 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: E2 0E 00 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: E2 0E 00 0B 6F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 58 [17:08:30]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:08:30]wFMCommunicate OK [17:08:30]SAM_PROTO_GetShiftState done [17:08:30]FM_GetShiftState done [17:08:30]req_shift_opened done [17:08:30]requested_item shift.open_date is exist - process it [17:08:30]req_shift_open_date [17:08:30]req_shift_open_date done [17:08:30]produce_requested_data done [17:08:30]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123282,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [17:08:30]process_action_free close_receipt [17:08:30]json_value_free [17:08:30]json_value_free done [17:08:30]process_json_proto returns [17:08:30]Send response to host [17:08:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123282,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [17:08:30]free response buf [17:08:30]execute_script done [17:08:30]execute_script returns [17:08:30]free content buf [17:08:30]Sock 9.Close socket [17:08:30]Sock 9.Thread stoped [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:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:44]OFD Sender: No OFD packet to send [17:12:49]OFD Sender: No OFD packet to send [17:12:54]OFD Sender: No OFD packet to send [17:12:59]OFD Sender: No OFD packet to send [17:13:04]OFD Sender: No OFD packet to send [17:13:09]OFD Sender: No OFD packet to send [17:13:14]OFD Sender: No OFD packet to send [17:13:19]OFD Sender: No OFD packet to send [17:13:24]OFD Sender: No OFD packet to send [17:13:29]OFD Sender: No OFD packet to send [17:13:34]OFD Sender: No OFD packet to send [17:13:39]OFD Sender: No OFD packet to send [17:13:44]OFD Sender: No OFD packet to send [17:13:49]OFD Sender: No OFD packet to send [17:13:54]OFD Sender: No OFD packet to send [17:13:59]OFD Sender: No OFD packet to send [17:14:04]OFD Sender: No OFD packet to send [17:14:09]OFD Sender: No OFD packet to send [17:14:14]OFD Sender: No OFD packet to send [17:14:19]OFD Sender: No OFD packet to send [17:14:24]OFD Sender: No OFD packet to send [17:14:29]OFD Sender: No OFD packet to send [17:14:34]OFD Sender: No OFD packet to send [17:14:39]OFD Sender: No OFD packet to send [17:14:44]OFD Sender: No OFD packet to send [17:14:49]OFD Sender: No OFD packet to send [17:14:54]OFD Sender: No OFD packet to send [17:14:59]OFD Sender: No OFD packet to send [17:15:04]OFD Sender: No OFD packet to send [17:15:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]OFD Sender: No OFD packet to send [17:16:54]OFD Sender: No OFD packet to send [17:16:59]OFD Sender: No OFD packet to send [17:17:04]OFD Sender: No OFD packet to send [17:17:09]OFD Sender: No OFD packet to send [17:17:14]OFD Sender: No OFD packet to send [17:17:19]OFD Sender: No OFD packet to send [17:17:24]OFD Sender: No OFD packet to send [17:17:29]OFD Sender: No OFD packet to send [17:17:34]OFD Sender: No OFD packet to send [17:17:39]OFD Sender: No OFD packet to send [17:17:44]OFD Sender: No OFD packet to send [17:17:49]OFD Sender: No OFD packet to send [17:17:54]OFD Sender: No OFD packet to send [17:17:59]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [17:18:24]OFD Sender: No OFD packet to send [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:02]accept exits with 7 [17:20:02]New connection [17:20:02]New thread 3066580324 created [17:20:02]Thread 3066723684 joined [17:20:02]Waiting for new connection... [17:20:02] Sock 7.Parse request [17:20:02]Sock 7.Check first char [17:20:02]Sock 7.First char is OK [17:20:02]request: POST /json_proto HTTP/1.0 [17:20:02]Method: POST [17:20:02]URL: /json_proto [17:20:02]Method is POST - this is cgi request [17:20:02]url: /json_proto [17:20:02]query_string will be loaded in cgi processing [17:20:02]execute_cgi json_proto POST (null) [17:20:02]execute_cgi path=json_proto method=POST [17:20:02]POST find Content-Length [17:20:02]Host: 172.17.37.4:8080 [17:20:02]Content-Length: 678 [17:20:02]Content-Type: application/json [17:20:02] [17:20:02]POST finish read [17:20:02]Found Content-Length = 678 [17:20:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.400, "sum" : 970.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 970.00, "total" : 970.00, "payments": [ { "type": 0, "sum" : 970.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:02]execute_script... [17:20:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.400, "sum" : 970.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 970.00, "total" : 970.00, "payments": [ { "type": 0, "sum" : 970.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:02]POST & json_proto [17:20:02]process_json_proto [17:20:02]json parsed OK: [17:20:02]protocol is kg_v1.0 [17:20:02]action value=close_receipt [17:20:02]process_action close_receipt [17:20:02]cmd_close_receipt [17:20:02]MH_GetDate [17:20:02]Write to MH i2c: F0 00 00 0C 6F 6A [17:20:02]Write i2c OK [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: F0 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: F0 09 00 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: F0 09 00 0C 6F 00 4D 03 46 67 B8 5A 43 67 2C [17:20:02]GetLastDocTimeStamp 1732640917 [17:20:02]current date 1732641613 [17:20:02]FM_GetShiftState [17:20:02]SAM_PROTO_GetShiftState [17:20:02]wFMCommunicate request_size=4 [17:20:02]MH_SAM_APDU [17:20:02]CAPDU: 80 13 01 00 [17:20:02]Write to MH i2c: E2 08 00 0D 6F 80 13 01 00 00 00 00 00 F9 [17:20:02]Write i2c OK [17:20:02]MH_I2C_Read... [17:20:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:02]Read from MH i2c: E2 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 0E 00 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 0E 00 0D 6F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 5A [17:20:02]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:20:02]wFMCommunicate OK [17:20:02]SAM_PROTO_GetShiftState done [17:20:02]FM_GetShiftState done [17:20:02]opened in 1732579736 [17:20:02]opened+sec_in_day 1732666136 [17:20:02]quantity*price = 97056 [17:20:02]sum+1 = 97057 [17:20:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 970.00 Внесено: 970.00 СДАЧА: 0.00 НСП 1% : 8.59 НДС 12% : 103.07 Наличными: 970.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 137 26.11.2024 17:20 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123283 ФПД: 8356332022167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T172013&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123283&fm=8356332022167&tin=02508201610067®Number=0000000000092681&sum=97000 [17:20:03]StoreToDocumentArchive [17:20:03]shift 557 fd 123283 [17:20:03]save to /storage/0557/doc_00123283 [17:20:03]save last doc name /storage/0557/doc_00123283 to /storage/kkm_last_doc_name [17:20:03]save OK [17:20:03]Clear old archive folders... [17:20:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:03]tlvbuf is 0215A6B0 [17:20:03]SAM_PROTO_ClearQueue [17:20:03]wFMCommunicate request_size=4 [17:20:03]MH_SAM_APDU [17:20:03]CAPDU: 80 09 00 00 [17:20:03]Write to MH i2c: E2 08 00 1A 6F 80 09 00 00 00 00 00 00 FB [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 1A 6F 00 90 00 FD [17:20:03]RAPDU: 90 00 [17:20:03]wFMCommunicate OK [17:20:03]SAM_PROTO_ClearQueue done [17:20:03]KKMCreateOFDPacket [17:20:03]OFDProtocolAddRootSTLVToBuf [17:20:03]FM_MakeSignedData [17:20:03]FM_MakeSignedData [17:20:03]SAM_PROTO_SignData [17:20:03]wFMCommunicate request_size=4 [17:20:03]MH_SAM_APDU [17:20:03]CAPDU: 80 0D 01 02 [17:20:03]Write to MH i2c: E2 08 00 1B 6F 80 0D 01 02 00 00 00 00 03 [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 1B 6F 00 90 00 FE [17:20:03]RAPDU: 90 00 [17:20:03]wFMCommunicate OK [17:20:03]wFMCommunicate request_size=255 [17:20:03]MH_SAM_APDU [17:20:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 38 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 20 7B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 28 00 00 00 00 07 04 06 00 E8 7A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 4D 03 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 93 E1 01 00 35 04 06 00 07 [17:20:03]Write to MH i2c: E2 02 01 1C 6F 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 34 FF 03 08 00 03 40 38 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 20 7B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 28 00 00 00 00 07 04 06 00 E8 7A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 4D 03 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 93 E1 01 00 35 04 06 00 07 00 00 53 [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 1C 6F 00 90 00 FF [17:20:03]RAPDU: 90 00 [17:20:03]wFMCommunicate OK [17:20:03]wFMCommunicate request_size=10 [17:20:03]MH_SAM_APDU [17:20:03]CAPDU: 80 0D 02 02 05 99 9C 33 A9 97 [17:20:03]Write to MH i2c: E2 0D 00 1D 6F 80 0D 02 02 05 00 99 9C 33 A9 97 00 00 B8 [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 03 00 1D 6F 00 90 00 00 [17:20:03]RAPDU: 90 00 [17:20:03]wFMCommunicate OK [17:20:03]wFMCommunicate request_size=4 [17:20:03]MH_SAM_APDU [17:20:03]CAPDU: 80 0D 03 02 [17:20:03]Write to MH i2c: E2 08 00 1E 6F 80 0D 03 02 00 00 00 00 08 [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 0B 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 0B 00 1E 6F 00 B5 29 F5 3A 9F 56 07 22 90 00 34 [17:20:03]RAPDU: B5 29 F5 3A 9F 56 07 22 90 00 [17:20:03]wFMCommunicate OK [17:20:03]SAM_PROTO_SignData done [17:20:03]FM_MakeSignedData done [17:20:03]CreateOFDProtocolMessage [17:20:03]wFMCommunicate request_size=4 [17:20:03]MH_SAM_APDU [17:20:03]CAPDU: 80 11 00 00 [17:20:03]Write to MH i2c: E2 08 00 1F 6F 80 11 00 00 00 00 00 00 08 [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 17 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 17 00 1F 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5F [17:20:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:20:03]wFMCommunicate OK [17:20:03]CreateOFDProtocolMessage done [17:20:03]OFDSenderStorePacket 123283 [17:20:03]StoreOFDPacket docnum=123283 [17:20:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 22 39 07 01 44 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 38 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 20 7B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 28 00 00 00 00 07 04 06 00 E8 7A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 4D 03 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 93 E1 01 00 35 04 06 00 07 99 9C 33 A9 97 B5 29 F5 3A 9F 56 07 22 [17:20:03]CheckFolder [17:20:03]dirname=/storage/ofd_packets [17:20:03]CheckFolder done [17:20:03]ProducePacketName [17:20:03]name=ofd_packets/00123283 [17:20:03]NVStorageSaveData ofd_packets/00123283 [17:20:03]File name is /storage/ofd_packets/00123283 [17:20:03]Write 301 bytes [17:20:03]NVStorageSaveData done [17:20:03]OFDSenderStorePacket done [17:20:03]KKMCreateOFDPacket done [17:20:03]NVStorageSaveData kkm_last_timestamp [17:20:03]File name is /storage/kkm_last_timestamp [17:20:03]Write 4 bytes [17:20:03]NVStorageSaveData done [17:20:03]ExternCall_PrintAddStr [17:20:03]wPrintStart [17:20:03]Write to MH i2c: 01 00 00 20 6F 8F [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 07 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 07 00 20 6F 00 00 00 00 00 FF 0F A4 [17:20:03]RasterBufferAndPrint [17:20:03]line Счет N : (1)718113 [17:20:03]line ИНН: 02508201610067 [17:20:03]line Контрольно-Кассовый Чек [17:20:03]line ПРОДАЖА [17:20:03]line ТРК (МРК, ГНК) : 22 [17:20:03]line Товар: 2710124130 [17:20:03]line Аи-92-К-4 [17:20:03]line 14.400 * 67.40 [17:20:03]line = 970.56 [17:20:03]line НДС 12% НСП 1% [17:20:03]line > о реализуемом товаре [17:20:03]line ОКРУГЛЕНИЕ: -0.56 [17:20:03]line ИТОГО: 970.00 [17:20:03]line Внесено: 970.00 [17:20:03]line СДАЧА: 0.00 [17:20:03]line НСП 1% : 8.59 [17:20:03]line НДС 12% : 103.07 [17:20:03]line Наличными: 970.00 [17:20:03]line Безнал.: 0.00 [17:20:03]line Место: АЗС № 64 "Партнер Нефть" [17:20:03]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:20:03]line СНО: Общий режим [17:20:03]line Чек 137 26.11.2024 17:20 [17:20:03]line Смена: 557 ФФД: 1.0 [17:20:03]line ЗНМ: 0300000033 [17:20:03]line РНМ: 0000000000092681 [17:20:03]line Версия ККМ: 001 [17:20:03]line ФМ: 0000000000874881 [17:20:03]line ФД: 123283 [17:20:03]line ФПД: 8356332022167 [17:20:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T172013&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123283&fm=8356332022167&tin=02508201610067®Number=0000000000092681&sum=97000 [17:20:04]OFD Sender: Processing packet 123283 [packets to send 7, broken 6] [17:20:04]ProducePacketName [17:20:04]name=ofd_packets/00123283 [17:20:04]OFD Sender: To server: pG, [17:20:04]CommunicateWithHost lk.salyk.kg:30040 [17:20:04]ConnectInit lk.salyk.kg [17:20:04]written 0, free lines is 4095 [17:20:04]Connected sock=10 [17:20:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 22 39 07 01 44 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 38 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 20 7B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 28 00 00 00 00 07 04 06 00 E8 7A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 4D 03 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 93 E1 01 00 35 04 06 00 07 99 9C 33 A9 97 B5 29 F5 3A 9F 56 07 22 [17:20:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 85 1C 47 00 69 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 93 E1 01 00 F4 03 04 00 0F AF 45 67 B6 04 01 00 00 60 E1 7A 81 D1 D1 92 72 [17:20:04]CommunicateWithHost err = 0 [17:20:04]CheckOFDResponse [17:20:04]1017 (14) - 77093643461234 [17:20:04]1041 (16) - 0000000000874881 [17:20:04]1040 (4) - 123283 [17:20:04]1012 (4) - 26.11.2024 11:20 [17:20:04]1206 (1) - 0 [17:20:04]OFD Sender: Remove packet 123283 [17:20:04]ProducePacketName [17:20:04]name=ofd_packets/00123283 [17:20:04]NVStorageDeleteData [17:20:04]Write to MH i2c: 01 00 00 4B 6F BA [17:20:04]Write i2c OK [17:20:04]MH_I2C_Read... [17:20:04]Read from MH i2c: 01 [17:20:04]MH_I2C_Read... [17:20:04]Read from MH i2c: 01 07 00 [17:20:04]MH_I2C_Read... [17:20:04]Read from MH i2c: 01 07 00 4B 6F 00 00 00 00 00 50 0C 1D [17:20:04]RasterBufferAndPrint [17:20:04]line [17:20:04]line [17:20:04]line [17:20:04]line [17:20:04]line [17:20:04]written 0, free lines is 3157 [17:20:04]MH_Cut [17:20:04]Write to MH i2c: D1 01 00 52 6F 01 93 [17:20:04]Write i2c OK [17:20:04]MH_I2C_Read... [17:20:04]Read from MH i2c: D1 [17:20:04]MH_I2C_Read... [17:20:04]Read from MH i2c: D1 01 00 [17:20:04]MH_I2C_Read... [17:20:04]Read from MH i2c: D1 01 00 52 6F 00 92 [17:20:04]Write to MH i2c: 01 00 00 53 6F C2 [17:20:04]Write i2c OK [17:20:04]MH_I2C_Read... [17:20:04]OFD Sender: No OFD packet to send [17:20:05]*** Cut start [17:20:05]*** Partial cut [17:20:05]*** CUTSNS_PIN = 1 [17:20:06]*** CUTSNS_PIN = 0 [17:20:06]*** Brake cut motor [17:20:06]Read from MH i2c: 01 [17:20:06]MH_I2C_Read... [17:20:06]*** Stop cut motor [17:20:06]*** Cut end [17:20:06]Read from MH i2c: 01 07 00 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: 01 07 00 53 6F 00 00 00 00 00 FF 0F D7 [17:20:06]process_action close_receipt done [17:20:06]requested_data is exist [17:20:06]produce_requested_data [17:20:06]requested_item fm.sn is exist - process it [17:20:06]wFMCommunicate request_size=4 [17:20:06]MH_SAM_APDU [17:20:06]CAPDU: 80 11 00 00 [17:20:06]Write to MH i2c: E2 08 00 54 6F 80 11 00 00 00 00 00 00 3D [17:20:06]Write i2c OK [17:20:06]MH_I2C_Read... [17:20:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:06]Read from MH i2c: E2 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 17 00 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 17 00 54 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 94 [17:20:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:20:06]wFMCommunicate OK [17:20:06]requested_item fd.num is exist - process it [17:20:06]SAM_PROTO_GetFieldsCounters [17:20:06]wFMCommunicate request_size=4 [17:20:06]MH_SAM_APDU [17:20:06]CAPDU: 80 13 00 00 [17:20:06]Write to MH i2c: E2 08 00 55 6F 80 13 00 00 00 00 00 00 40 [17:20:06]Write i2c OK [17:20:06]MH_I2C_Read... [17:20:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:06]Read from MH i2c: E2 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 62 00 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 62 00 55 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 93 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [17:20:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 93 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:06]wFMCommunicate OK [17:20:06]SAM_PROTO_GetFieldsCounters done [17:20:06]requested_item shift.num is exist - process it [17:20:06]requested_item shift.opened is exist - process it [17:20:06]req_shift_opened [17:20:06]FM_GetShiftState [17:20:06]SAM_PROTO_GetShiftState [17:20:06]wFMCommunicate request_size=4 [17:20:06]MH_SAM_APDU [17:20:06]CAPDU: 80 13 01 00 [17:20:06]Write to MH i2c: E2 08 00 56 6F 80 13 01 00 00 00 00 00 42 [17:20:06]Write i2c OK [17:20:06]MH_I2C_Read... [17:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:06]Read from MH i2c: E2 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 0E 00 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 0E 00 56 6F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 A3 [17:20:06]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:20:06]wFMCommunicate OK [17:20:06]SAM_PROTO_GetShiftState done [17:20:06]FM_GetShiftState done [17:20:06]req_shift_opened done [17:20:06]requested_item shift.open_date is exist - process it [17:20:06]req_shift_open_date [17:20:06]req_shift_open_date done [17:20:06]produce_requested_data done [17:20:06]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123283,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [17:20:06]process_action_free close_receipt [17:20:06]json_value_free [17:20:06]json_value_free done [17:20:06]process_json_proto returns [17:20:06]Send response to host [17:20:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123283,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [17:20:06]free response buf [17:20:06]execute_script done [17:20:06]execute_script returns [17:20:06]free content buf [17:20:06]Sock 7.Close socket [17:20:06]Sock 7.Thread stoped [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:25]OFD Sender: No OFD packet to send [17:21:30]OFD Sender: No OFD packet to send [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:45]OFD Sender: No OFD packet to send [17:27:50]OFD Sender: No OFD packet to send [17:27:55]OFD Sender: No OFD packet to send [17:28:00]OFD Sender: No OFD packet to send [17:28:05]OFD Sender: No OFD packet to send [17:28:10]OFD Sender: No OFD packet to send [17:28:15]OFD Sender: No OFD packet to send [17:28:20]OFD Sender: No OFD packet to send [17:28:25]OFD Sender: No OFD packet to send [17:28:30]OFD Sender: No OFD packet to send [17:28:35]OFD Sender: No OFD packet to send [17:28:40]OFD Sender: No OFD packet to send [17:28:45]OFD Sender: No OFD packet to send [17:28:50]OFD Sender: No OFD packet to send [17:28:55]OFD Sender: No OFD packet to send [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send [17:29:20]OFD Sender: No OFD packet to send [17:29:25]OFD Sender: No OFD packet to send [17:29:30]OFD Sender: No OFD packet to send [17:29:35]OFD Sender: No OFD packet to send [17:29:40]OFD Sender: No OFD packet to send [17:29:45]OFD Sender: No OFD packet to send [17:29:50]OFD Sender: No OFD packet to send [17:29:55]OFD Sender: No OFD packet to send [17:30:00]OFD Sender: No OFD packet to send [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:31:00]OFD Sender: No OFD packet to send [17:31:05]OFD Sender: No OFD packet to send [17:31:10]OFD Sender: No OFD packet to send [17:31:15]OFD Sender: No OFD packet to send [17:31:20]OFD Sender: No OFD packet to send [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:35]OFD Sender: No OFD packet to send [17:31:40]OFD Sender: No OFD packet to send [17:31:45]OFD Sender: No OFD packet to send [17:31:50]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]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:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [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:09]accept exits with 9 [17:46:09]New connection [17:46:09]New thread 3066723684 created [17:46:09]Thread 3066580324 joined [17:46:09]Waiting for new connection... [17:46:09] Sock 9.Parse request [17:46:09]Sock 9.Check first char [17:46:09]Sock 9.First char is OK [17:46:09]request: POST /json_proto HTTP/1.0 [17:46:09]Method: POST [17:46:09]URL: /json_proto [17:46:09]Method is POST - this is cgi request [17:46:09]url: /json_proto [17:46:09]query_string will be loaded in cgi processing [17:46:09]execute_cgi json_proto POST (null) [17:46:09]execute_cgi path=json_proto method=POST [17:46:09]POST find Content-Length [17:46:09]Host: 172.17.37.4:8080 [17:46:09]Content-Length: 677 [17:46:09]Content-Type: application/json [17:46:09] [17:46:09]POST finish read [17:46:09]Found Content-Length = 677 [17:46:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.710, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:09]execute_script... [17:46:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.710, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:09]POST & json_proto [17:46:09]process_json_proto [17:46:09]json parsed OK: [17:46:09]protocol is kg_v1.0 [17:46:09]action value=close_receipt [17:46:09]process_action close_receipt [17:46:09]cmd_close_receipt [17:46:09]MH_GetDate [17:46:09]Write to MH i2c: F0 00 00 57 6F B5 [17:46:09]Write i2c OK [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: F0 [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: F0 09 00 [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: F0 09 00 57 6F 00 6C 09 46 67 B8 5A 43 67 9C [17:46:09]GetLastDocTimeStamp 1732641613 [17:46:09]current date 1732643180 [17:46:09]FM_GetShiftState [17:46:09]SAM_PROTO_GetShiftState [17:46:09]wFMCommunicate request_size=4 [17:46:09]MH_SAM_APDU [17:46:09]CAPDU: 80 13 01 00 [17:46:09]Write to MH i2c: E2 08 00 58 6F 80 13 01 00 00 00 00 00 44 [17:46:09]Write i2c OK [17:46:09]MH_I2C_Read... [17:46:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:09]Read from MH i2c: E2 [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: E2 0E 00 [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: E2 0E 00 58 6F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 A5 [17:46:09]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:46:09]wFMCommunicate OK [17:46:09]SAM_PROTO_GetShiftState done [17:46:09]FM_GetShiftState done [17:46:09]opened in 1732579736 [17:46:09]opened+sec_in_day 1732666136 [17:46:09]quantity*price = 25005 [17:46:09]sum+1 = 25006 [17:46:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 138 26.11.2024 17:46 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123284 ФПД: 274108596426258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T174621&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123284&fm=274108596426258&tin=02508201610067®Number=0000000000092681&sum=25000 [17:46:10]StoreToDocumentArchive [17:46:10]shift 557 fd 123284 [17:46:10]save to /storage/0557/doc_00123284 [17:46:10]save last doc name /storage/0557/doc_00123284 to /storage/kkm_last_doc_name [17:46:10]save OK [17:46:10]Clear old archive folders... [17:46:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:10]tlvbuf is 01F33510 [17:46:10]SAM_PROTO_ClearQueue [17:46:10]wFMCommunicate request_size=4 [17:46:10]MH_SAM_APDU [17:46:10]CAPDU: 80 09 00 00 [17:46:10]Write to MH i2c: E2 08 00 65 6F 80 09 00 00 00 00 00 00 46 [17:46:10]Write i2c OK [17:46:10]MH_I2C_Read... [17:46:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:10]Read from MH i2c: E2 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 65 6F 00 90 00 48 [17:46:10]RAPDU: 90 00 [17:46:10]wFMCommunicate OK [17:46:10]SAM_PROTO_ClearQueue done [17:46:10]KKMCreateOFDPacket [17:46:10]OFDProtocolAddRootSTLVToBuf [17:46:10]FM_MakeSignedData [17:46:10]FM_MakeSignedData [17:46:10]SAM_PROTO_SignData [17:46:10]wFMCommunicate request_size=4 [17:46:10]MH_SAM_APDU [17:46:10]CAPDU: 80 0D 01 02 [17:46:10]Write to MH i2c: E2 08 00 66 6F 80 0D 01 02 00 00 00 00 4E [17:46:10]Write i2c OK [17:46:10]MH_I2C_Read... [17:46:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:10]Read from MH i2c: E2 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 66 6F 00 90 00 49 [17:46:10]RAPDU: 90 00 [17:46:10]wFMCommunicate OK [17:46:10]wFMCommunicate request_size=255 [17:46:10]MH_SAM_APDU [17:46:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 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 8A 00 00 00 F4 03 04 00 6D 09 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 94 E1 01 00 35 04 06 00 F9 [17:46:10]Write to MH i2c: E2 02 01 67 6F 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 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 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 8A 00 00 00 F4 03 04 00 6D 09 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 94 E1 01 00 35 04 06 00 F9 00 00 07 [17:46:10]Write i2c OK [17:46:10]MH_I2C_Read... [17:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:10]Read from MH i2c: E2 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 67 6F 00 90 00 4A [17:46:10]RAPDU: 90 00 [17:46:10]wFMCommunicate OK [17:46:10]wFMCommunicate request_size=10 [17:46:10]MH_SAM_APDU [17:46:10]CAPDU: 80 0D 02 02 05 4C E1 85 16 12 [17:46:10]Write to MH i2c: E2 0D 00 68 6F 80 0D 02 02 05 00 4C E1 85 16 12 00 00 35 [17:46:10]Write i2c OK [17:46:10]MH_I2C_Read... [17:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:10]Read from MH i2c: E2 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 68 6F 00 90 00 4B [17:46:10]RAPDU: 90 00 [17:46:10]wFMCommunicate OK [17:46:10]wFMCommunicate request_size=4 [17:46:10]MH_SAM_APDU [17:46:10]CAPDU: 80 0D 03 02 [17:46:10]Write to MH i2c: E2 08 00 69 6F 80 0D 03 02 00 00 00 00 53 [17:46:10]Write i2c OK [17:46:10]MH_I2C_Read... [17:46:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:10]Read from MH i2c: E2 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 0B 00 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 0B 00 69 6F 00 34 16 C4 7B 24 3D C8 2A 90 00 30 [17:46:10]RAPDU: 34 16 C4 7B 24 3D C8 2A 90 00 [17:46:10]wFMCommunicate OK [17:46:10]SAM_PROTO_SignData done [17:46:10]FM_MakeSignedData done [17:46:10]CreateOFDProtocolMessage [17:46:10]wFMCommunicate request_size=4 [17:46:10]MH_SAM_APDU [17:46:10]CAPDU: 80 11 00 00 [17:46:10]Write to MH i2c: E2 08 00 6A 6F 80 11 00 00 00 00 00 00 53 [17:46:10]Write i2c OK [17:46:10]MH_I2C_Read... [17:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:10]Read from MH i2c: E2 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 17 00 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 17 00 6A 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AA [17:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:46:10]wFMCommunicate OK [17:46:10]CreateOFDProtocolMessage done [17:46:10]OFDSenderStorePacket 123284 [17:46:10]StoreOFDPacket docnum=123284 [17:46:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DA CB 07 01 C9 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 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 8A 00 00 00 F4 03 04 00 6D 09 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 94 E1 01 00 35 04 06 00 F9 4C E1 85 16 12 34 16 C4 7B 24 3D C8 2A [17:46:10]CheckFolder [17:46:10]dirname=/storage/ofd_packets [17:46:10]CheckFolder done [17:46:10]ProducePacketName [17:46:10]name=ofd_packets/00123284 [17:46:10]NVStorageSaveData ofd_packets/00123284 [17:46:10]File name is /storage/ofd_packets/00123284 [17:46:10]Write 301 bytes [17:46:10]NVStorageSaveData done [17:46:10]OFDSenderStorePacket done [17:46:10]KKMCreateOFDPacket done [17:46:10]NVStorageSaveData kkm_last_timestamp [17:46:10]File name is /storage/kkm_last_timestamp [17:46:10]Write 4 bytes [17:46:10]NVStorageSaveData done [17:46:10]ExternCall_PrintAddStr [17:46:10]wPrintStart [17:46:10]Write to MH i2c: 01 00 00 6B 6F DA [17:46:10]Write i2c OK [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: 01 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: 01 07 00 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: 01 07 00 6B 6F 00 00 00 00 00 FF 0F EF [17:46:10]RasterBufferAndPrint [17:46:10]line Счет N : (1)718114 [17:46:10]line ИНН: 02508201610067 [17:46:10]line Контрольно-Кассовый Чек [17:46:10]line ПРОДАЖА [17:46:10]line ТРК (МРК, ГНК) : 12 [17:46:10]line Товар: 2710124130 [17:46:10]line Аи-92-К-4 [17:46:10]line 3.710 * 67.40 [17:46:10]line = 250.05 [17:46:10]line НДС 12% НСП 1% [17:46:10]line > о реализуемом товаре [17:46:10]line ОКРУГЛЕНИЕ: -0.05 [17:46:10]line ИТОГО: 250.00 [17:46:10]line Внесено: 250.00 [17:46:10]line СДАЧА: 0.00 [17:46:10]line НСП 1% : 2.21 [17:46:10]line НДС 12% : 26.55 [17:46:10]line Наличными: 250.00 [17:46:10]line Безнал.: 0.00 [17:46:10]line Место: АЗС № 64 "Партнер Нефть" [17:46:10]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:46:10]line СНО: Общий режим [17:46:10]line Чек 138 26.11.2024 17:46 [17:46:10]line Смена: 557 ФФД: 1.0 [17:46:10]line ЗНМ: 0300000033 [17:46:10]line РНМ: 0000000000092681 [17:46:10]line Версия ККМ: 001 [17:46:10]line ФМ: 0000000000874881 [17:46:10]line ФД: 123284 [17:46:10]line ФПД: 274108596426258 [17:46:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T174621&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123284&fm=274108596426258&tin=02508201610067®Number=0000000000092681&sum=25000 [17:46:11]OFD Sender: Processing packet 123284 [packets to send 7, broken 6] [17:46:11]ProducePacketName [17:46:11]name=ofd_packets/00123284 [17:46:11]OFD Sender: To server: pG, [17:46:11]CommunicateWithHost lk.salyk.kg:30040 [17:46:11]ConnectInit lk.salyk.kg [17:46:11]written 0, free lines is 4095 [17:46:11]Connected sock=10 [17:46:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DA CB 07 01 C9 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 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 8A 00 00 00 F4 03 04 00 6D 09 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 94 E1 01 00 35 04 06 00 F9 4C E1 85 16 12 34 16 C4 7B 24 3D C8 2A [17:46:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 66 8E 47 00 9F D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 94 E1 01 00 F4 03 04 00 2E B5 45 67 B6 04 01 00 00 42 8A C6 C8 5F C7 25 FC [17:46:11]CommunicateWithHost err = 0 [17:46:11]CheckOFDResponse [17:46:11]1017 (14) - 77093643461234 [17:46:11]1041 (16) - 0000000000874881 [17:46:11]1040 (4) - 123284 [17:46:11]1012 (4) - 26.11.2024 11:46 [17:46:11]1206 (1) - 0 [17:46:11]OFD Sender: Remove packet 123284 [17:46:11]ProducePacketName [17:46:11]name=ofd_packets/00123284 [17:46:11]NVStorageDeleteData [17:46:11]Write to MH i2c: 01 00 00 96 6F 05 [17:46:11]Write i2c OK [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: 01 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: 01 07 00 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: 01 07 00 96 6F 00 00 00 00 00 54 0C 6C [17:46:11]RasterBufferAndPrint [17:46:11]line [17:46:11]line [17:46:11]line [17:46:11]line [17:46:11]line [17:46:11]written 0, free lines is 3160 [17:46:11]MH_Cut [17:46:11]Write to MH i2c: D1 01 00 9D 6F 01 DE [17:46:11]Write i2c OK [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: D1 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: D1 01 00 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: D1 01 00 9D 6F 00 DD [17:46:11]Write to MH i2c: 01 00 00 9E 6F 0D [17:46:11]Write i2c OK [17:46:11]MH_I2C_Read... [17:46:12]OFD Sender: No OFD packet to send [17:46:13]*** Cut start [17:46:13]*** Partial cut [17:46:13]*** CUTSNS_PIN = 1 [17:46:13]*** CUTSNS_PIN = 0 [17:46:13]*** Brake cut motor [17:46:13]Read from MH i2c: 01 [17:46:13]MH_I2C_Read... [17:46:13]*** Stop cut motor [17:46:13]*** Cut end [17:46:13]Read from MH i2c: 01 07 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: 01 07 00 9E 6F 00 00 00 00 00 FF 0F 22 [17:46:13]process_action close_receipt done [17:46:13]requested_data is exist [17:46:13]produce_requested_data [17:46:13]requested_item fm.sn is exist - process it [17:46:13]wFMCommunicate request_size=4 [17:46:13]MH_SAM_APDU [17:46:13]CAPDU: 80 11 00 00 [17:46:13]Write to MH i2c: E2 08 00 9F 6F 80 11 00 00 00 00 00 00 88 [17:46:13]Write i2c OK [17:46:13]MH_I2C_Read... [17:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:13]Read from MH i2c: E2 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 17 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 17 00 9F 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DF [17:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:46:13]wFMCommunicate OK [17:46:13]requested_item fd.num is exist - process it [17:46:13]SAM_PROTO_GetFieldsCounters [17:46:13]wFMCommunicate request_size=4 [17:46:13]MH_SAM_APDU [17:46:13]CAPDU: 80 13 00 00 [17:46:13]Write to MH i2c: E2 08 00 A0 6F 80 13 00 00 00 00 00 00 8B [17:46:13]Write i2c OK [17:46:13]MH_I2C_Read... [17:46:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:13]Read from MH i2c: E2 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 62 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 62 00 A0 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 94 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [17:46:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 94 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:13]wFMCommunicate OK [17:46:13]SAM_PROTO_GetFieldsCounters done [17:46:13]requested_item shift.num is exist - process it [17:46:13]requested_item shift.opened is exist - process it [17:46:13]req_shift_opened [17:46:13]FM_GetShiftState [17:46:13]SAM_PROTO_GetShiftState [17:46:13]wFMCommunicate request_size=4 [17:46:13]MH_SAM_APDU [17:46:13]CAPDU: 80 13 01 00 [17:46:13]Write to MH i2c: E2 08 00 A1 6F 80 13 01 00 00 00 00 00 8D [17:46:13]Write i2c OK [17:46:13]MH_I2C_Read... [17:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:13]Read from MH i2c: E2 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 0E 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 0E 00 A1 6F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 EE [17:46:13]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:46:13]wFMCommunicate OK [17:46:13]SAM_PROTO_GetShiftState done [17:46:13]FM_GetShiftState done [17:46:13]req_shift_opened done [17:46:13]requested_item shift.open_date is exist - process it [17:46:13]req_shift_open_date [17:46:13]req_shift_open_date done [17:46:13]produce_requested_data done [17:46:13]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123284,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [17:46:13]process_action_free close_receipt [17:46:13]json_value_free [17:46:13]json_value_free done [17:46:13]process_json_proto returns [17:46:13]Send response to host [17:46:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123284,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [17:46:13]free response buf [17:46:13]execute_script done [17:46:13]execute_script returns [17:46:13]free content buf [17:46:13]Sock 9.Close socket [17:46:13]Sock 9.Thread stoped [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:12]OFD Sender: No OFD packet to send [17:48:16]accept exits with 7 [17:48:16]New connection [17:48:16]New thread 3066580324 created [17:48:16]Thread 3066723684 joined [17:48:16]Waiting for new connection... [17:48:16] Sock 7.Parse request [17:48:16]Sock 7.Check first char [17:48:16]Sock 7.First char is OK [17:48:16]request: POST /json_proto HTTP/1.0 [17:48:16]Method: POST [17:48:16]URL: /json_proto [17:48:16]Method is POST - this is cgi request [17:48:16]url: /json_proto [17:48:16]query_string will be loaded in cgi processing [17:48:16]execute_cgi json_proto POST (null) [17:48:16]execute_cgi path=json_proto method=POST [17:48:16]POST find Content-Length [17:48:16]Host: 172.17.37.4:8080 [17:48:16]Content-Length: 682 [17:48:16]Content-Type: application/json [17:48:16] [17:48:16]POST finish read [17:48:16]Found Content-Length = 682 [17:48:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:16]execute_script... [17:48:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:16]POST & json_proto [17:48:16]process_json_proto [17:48:16]json parsed OK: [17:48:16]protocol is kg_v1.0 [17:48:16]action value=close_receipt [17:48:16]process_action close_receipt [17:48:16]cmd_close_receipt [17:48:16]MH_GetDate [17:48:16]Write to MH i2c: F0 00 00 A2 6F 00 [17:48:16]Write i2c OK [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: F0 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: F0 09 00 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: F0 09 00 A2 6F 00 EC 09 46 67 B8 5A 43 67 67 [17:48:16]GetLastDocTimeStamp 1732643181 [17:48:16]current date 1732643308 [17:48:16]FM_GetShiftState [17:48:16]SAM_PROTO_GetShiftState [17:48:16]wFMCommunicate request_size=4 [17:48:16]MH_SAM_APDU [17:48:16]CAPDU: 80 13 01 00 [17:48:16]Write to MH i2c: E2 08 00 A3 6F 80 13 01 00 00 00 00 00 8F [17:48:16]Write i2c OK [17:48:16]MH_I2C_Read... [17:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:16]Read from MH i2c: E2 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 0E 00 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 0E 00 A3 6F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 F0 [17:48:16]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:48:16]wFMCommunicate OK [17:48:16]SAM_PROTO_GetShiftState done [17:48:16]FM_GetShiftState done [17:48:16]opened in 1732579736 [17:48:16]opened+sec_in_day 1732666136 [17:48:16]quantity*price = 100021 [17:48:16]sum+1 = 100023 [17:48:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 139 26.11.2024 17:48 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123285 ФПД: 176430635113836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T174828&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123285&fm=176430635113836&tin=02508201610067®Number=0000000000092681&sum=100000 [17:48:17]StoreToDocumentArchive [17:48:17]shift 557 fd 123285 [17:48:17]save to /storage/0557/doc_00123285 [17:48:17]save last doc name /storage/0557/doc_00123285 to /storage/kkm_last_doc_name [17:48:17]save OK [17:48:17]Clear old archive folders... [17:48:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:17]tlvbuf is 021387B0 [17:48:17]SAM_PROTO_ClearQueue [17:48:17]wFMCommunicate request_size=4 [17:48:17]MH_SAM_APDU [17:48:17]CAPDU: 80 09 00 00 [17:48:17]Write to MH i2c: E2 08 00 B0 6F 80 09 00 00 00 00 00 00 91 [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:17]Read from MH i2c: E2 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 03 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 03 00 B0 6F 00 90 00 93 [17:48:17]RAPDU: 90 00 [17:48:17]wFMCommunicate OK [17:48:17]SAM_PROTO_ClearQueue done [17:48:17]KKMCreateOFDPacket [17:48:17]OFDProtocolAddRootSTLVToBuf [17:48:17]FM_MakeSignedData [17:48:17]FM_MakeSignedData [17:48:17]SAM_PROTO_SignData [17:48:17]wFMCommunicate request_size=4 [17:48:17]MH_SAM_APDU [17:48:17]CAPDU: 80 0D 01 02 [17:48:17]Write to MH i2c: E2 08 00 B1 6F 80 0D 01 02 00 00 00 00 99 [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:17]Read from MH i2c: E2 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 03 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 03 00 B1 6F 00 90 00 94 [17:48:17]RAPDU: 90 00 [17:48:17]wFMCommunicate OK [17:48:17]wFMCommunicate request_size=255 [17:48:17]MH_SAM_APDU [17:48:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 EC 09 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 95 E1 01 00 35 04 06 00 A0 [17:48:17]Write to MH i2c: E2 02 01 B2 6F 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 EC 09 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 95 E1 01 00 35 04 06 00 A0 00 00 63 [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:17]Read from MH i2c: E2 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 03 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 03 00 B2 6F 00 90 00 95 [17:48:17]RAPDU: 90 00 [17:48:17]wFMCommunicate OK [17:48:17]wFMCommunicate request_size=10 [17:48:17]MH_SAM_APDU [17:48:17]CAPDU: 80 0D 02 02 05 76 75 55 5D 6C [17:48:17]Write to MH i2c: E2 0D 00 B3 6F 80 0D 02 02 05 00 76 75 55 5D 6C 00 00 AF [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:17]Read from MH i2c: E2 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 03 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 03 00 B3 6F 00 90 00 96 [17:48:17]RAPDU: 90 00 [17:48:17]wFMCommunicate OK [17:48:17]wFMCommunicate request_size=4 [17:48:17]MH_SAM_APDU [17:48:17]CAPDU: 80 0D 03 02 [17:48:17]Write to MH i2c: E2 08 00 B4 6F 80 0D 03 02 00 00 00 00 9E [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:17]Read from MH i2c: E2 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 0B 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 0B 00 B4 6F 00 17 15 B6 CF 9D DF 2D 50 90 00 49 [17:48:17]RAPDU: 17 15 B6 CF 9D DF 2D 50 90 00 [17:48:17]wFMCommunicate OK [17:48:17]SAM_PROTO_SignData done [17:48:17]FM_MakeSignedData done [17:48:17]CreateOFDProtocolMessage [17:48:17]wFMCommunicate request_size=4 [17:48:17]MH_SAM_APDU [17:48:17]CAPDU: 80 11 00 00 [17:48:17]Write to MH i2c: E2 08 00 B5 6F 80 11 00 00 00 00 00 00 9E [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:17]Read from MH i2c: E2 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 B5 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F5 [17:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:48:17]wFMCommunicate OK [17:48:17]CreateOFDProtocolMessage done [17:48:17]OFDSenderStorePacket 123285 [17:48:17]StoreOFDPacket docnum=123285 [17:48:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 F3 24 07 01 14 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 EC 09 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 95 E1 01 00 35 04 06 00 A0 76 75 55 5D 6C 17 15 B6 CF 9D DF 2D 50 [17:48:17]CheckFolder [17:48:17]dirname=/storage/ofd_packets [17:48:17]CheckFolder done [17:48:17]ProducePacketName [17:48:17]name=ofd_packets/00123285 [17:48:17]NVStorageSaveData ofd_packets/00123285 [17:48:17]File name is /storage/ofd_packets/00123285 [17:48:17]Write 301 bytes [17:48:17]NVStorageSaveData done [17:48:17]OFDSenderStorePacket done [17:48:17]KKMCreateOFDPacket done [17:48:17]NVStorageSaveData kkm_last_timestamp [17:48:17]File name is /storage/kkm_last_timestamp [17:48:17]Write 4 bytes [17:48:17]NVStorageSaveData done [17:48:17]ExternCall_PrintAddStr [17:48:17]wPrintStart [17:48:17]Write to MH i2c: 01 00 00 B6 6F 25 [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: 01 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: 01 07 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: 01 07 00 B6 6F 00 00 00 00 00 FF 0F 3A [17:48:17]RasterBufferAndPrint [17:48:17]line Счет N : (1)718115 [17:48:17]line ИНН: 02508201610067 [17:48:17]line Контрольно-Кассовый Чек [17:48:17]line ПРОДАЖА [17:48:17]line ТРК (МРК, ГНК) : 12 [17:48:17]line Товар: 2710124130 [17:48:17]line Аи-92-К-4 [17:48:17]line 14.840 * 67.40 [17:48:17]line = 1000.22 [17:48:17]line НДС 12% НСП 1% [17:48:17]line > о реализуемом товаре [17:48:17]line ОКРУГЛЕНИЕ: -0.22 [17:48:17]line ИТОГО: 1000.00 [17:48:17]line Внесено: 1000.00 [17:48:17]line СДАЧА: 0.00 [17:48:17]line НСП 1% : 8.85 [17:48:17]line НДС 12% : 106.22 [17:48:17]line Наличными: 1000.00 [17:48:17]line Безнал.: 0.00 [17:48:17]line Место: АЗС № 64 "Партнер Нефть" [17:48:17]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:48:17]line СНО: Общий режим [17:48:17]line Чек 139 26.11.2024 17:48 [17:48:17]line Смена: 557 ФФД: 1.0 [17:48:17]line ЗНМ: 0300000033 [17:48:17]line РНМ: 0000000000092681 [17:48:17]line Версия ККМ: 001 [17:48:17]line ФМ: 0000000000874881 [17:48:17]line ФД: 123285 [17:48:17]line ФПД: 176430635113836 [17:48:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T174828&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123285&fm=176430635113836&tin=02508201610067®Number=0000000000092681&sum=100000 [17:48:18]OFD Sender: Processing packet 123285 [packets to send 7, broken 6] [17:48:18]ProducePacketName [17:48:18]name=ofd_packets/00123285 [17:48:18]OFD Sender: To server: pG, [17:48:18]CommunicateWithHost lk.salyk.kg:30040 [17:48:18]ConnectInit lk.salyk.kg [17:48:18]written 0, free lines is 4095 [17:48:18]Connected sock=10 [17:48:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 F3 24 07 01 14 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 EC 09 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 95 E1 01 00 35 04 06 00 A0 76 75 55 5D 6C 17 15 B6 CF 9D DF 2D 50 [17:48:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 AA E7 47 00 AA 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 95 E1 01 00 F4 03 04 00 AD B5 45 67 B6 04 01 00 00 F6 9A 1D B3 95 2E DA 4C [17:48:18]CommunicateWithHost err = 0 [17:48:18]CheckOFDResponse [17:48:18]1017 (14) - 77093643461234 [17:48:18]1041 (16) - 0000000000874881 [17:48:18]1040 (4) - 123285 [17:48:18]1012 (4) - 26.11.2024 11:49 [17:48:18]1206 (1) - 0 [17:48:18]OFD Sender: Remove packet 123285 [17:48:18]ProducePacketName [17:48:18]name=ofd_packets/00123285 [17:48:18]NVStorageDeleteData [17:48:18]Write to MH i2c: 01 00 00 E1 6F 50 [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: 01 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: 01 07 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: 01 07 00 E1 6F 00 00 00 00 00 43 0C A6 [17:48:18]RasterBufferAndPrint [17:48:18]line [17:48:18]line [17:48:18]line [17:48:18]line [17:48:18]line [17:48:18]written 0, free lines is 3145 [17:48:18]MH_Cut [17:48:18]Write to MH i2c: D1 01 00 E8 6F 01 29 [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: D1 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: D1 01 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: D1 01 00 E8 6F 00 28 [17:48:18]Write to MH i2c: 01 00 00 E9 6F 58 [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:19]OFD Sender: No OFD packet to send [17:48:20]*** Cut start [17:48:20]*** Partial cut [17:48:20]*** CUTSNS_PIN = 1 [17:48:20]*** CUTSNS_PIN = 0 [17:48:20]*** Brake cut motor [17:48:20]Read from MH i2c: 01 [17:48:20]MH_I2C_Read... [17:48:20]*** Stop cut motor [17:48:20]*** Cut end [17:48:20]Read from MH i2c: 01 07 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: 01 07 00 E9 6F 00 00 00 00 00 FF 0F 6D [17:48:20]process_action close_receipt done [17:48:20]requested_data is exist [17:48:20]produce_requested_data [17:48:20]requested_item fm.sn is exist - process it [17:48:20]wFMCommunicate request_size=4 [17:48:20]MH_SAM_APDU [17:48:20]CAPDU: 80 11 00 00 [17:48:20]Write to MH i2c: E2 08 00 EA 6F 80 11 00 00 00 00 00 00 D3 [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:20]Read from MH i2c: E2 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 EA 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2A [17:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:48:20]wFMCommunicate OK [17:48:20]requested_item fd.num is exist - process it [17:48:20]SAM_PROTO_GetFieldsCounters [17:48:20]wFMCommunicate request_size=4 [17:48:20]MH_SAM_APDU [17:48:20]CAPDU: 80 13 00 00 [17:48:20]Write to MH i2c: E2 08 00 EB 6F 80 13 00 00 00 00 00 00 D6 [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:20]Read from MH i2c: E2 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 62 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 62 00 EB 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 95 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [17:48:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 95 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:20]wFMCommunicate OK [17:48:20]SAM_PROTO_GetFieldsCounters done [17:48:20]requested_item shift.num is exist - process it [17:48:20]requested_item shift.opened is exist - process it [17:48:20]req_shift_opened [17:48:20]FM_GetShiftState [17:48:20]SAM_PROTO_GetShiftState [17:48:20]wFMCommunicate request_size=4 [17:48:20]MH_SAM_APDU [17:48:20]CAPDU: 80 13 01 00 [17:48:20]Write to MH i2c: E2 08 00 EC 6F 80 13 01 00 00 00 00 00 D8 [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:21]Read from MH i2c: E2 [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: E2 0E 00 [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: E2 0E 00 EC 6F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 39 [17:48:21]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:48:21]wFMCommunicate OK [17:48:21]SAM_PROTO_GetShiftState done [17:48:21]FM_GetShiftState done [17:48:21]req_shift_opened done [17:48:21]requested_item shift.open_date is exist - process it [17:48:21]req_shift_open_date [17:48:21]req_shift_open_date done [17:48:21]produce_requested_data done [17:48:21]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123285,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [17:48:21]process_action_free close_receipt [17:48:21]json_value_free [17:48:21]json_value_free done [17:48:21]process_json_proto returns [17:48:21]Send response to host [17:48:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123285,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [17:48:21]free response buf [17:48:21]execute_script done [17:48:21]execute_script returns [17:48:21]free content buf [17:48:21]Sock 7.Close socket [17:48:21]Sock 7.Thread stoped [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49: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]accept exits with 9 [17:50:49]New connection [17:50:49]New thread 3066723684 created [17:50:49]Thread 3066580324 joined [17:50:49]Waiting for new connection... [17:50:49] Sock 9.Parse request [17:50:49]Sock 9.Check first char [17:50:49]Sock 9.First char is OK [17:50:49]request: POST /json_proto HTTP/1.0 [17:50:49]Method: POST [17:50:49]URL: /json_proto [17:50:49]Method is POST - this is cgi request [17:50:49]url: /json_proto [17:50:49]query_string will be loaded in cgi processing [17:50:49]execute_cgi json_proto POST (null) [17:50:49]execute_cgi path=json_proto method=POST [17:50:49]POST find Content-Length [17:50:49]Host: 172.17.37.4:8080 [17:50:49]Content-Length: 677 [17:50:49]Content-Type: application/json [17:50:49] [17:50:49]POST finish read [17:50:49]Found Content-Length = 677 [17:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:49]execute_script... [17:50:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:49]POST & json_proto [17:50:49]process_json_proto [17:50:49]json parsed OK: [17:50:49]protocol is kg_v1.0 [17:50:49]action value=close_receipt [17:50:49]process_action close_receipt [17:50:49]cmd_close_receipt [17:50:49]MH_GetDate [17:50:49]Write to MH i2c: F0 00 00 ED 6F 4B [17:50:49]Write i2c OK [17:50:49]MH_I2C_Read... [17:50:49]Read from MH i2c: F0 [17:50:49]MH_I2C_Read... [17:50:49]Read from MH i2c: F0 09 00 [17:50:49]MH_I2C_Read... [17:50:49]Read from MH i2c: F0 09 00 ED 6F 00 84 0A 46 67 B8 5A 43 67 4B [17:50:49]GetLastDocTimeStamp 1732643308 [17:50:49]current date 1732643460 [17:50:49]FM_GetShiftState [17:50:49]SAM_PROTO_GetShiftState [17:50:49]wFMCommunicate request_size=4 [17:50:49]MH_SAM_APDU [17:50:49]CAPDU: 80 13 01 00 [17:50:49]Write to MH i2c: E2 08 00 EE 6F 80 13 01 00 00 00 00 00 DA [17:50:49]Write i2c OK [17:50:49]MH_I2C_Read... [17:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:49]Read from MH i2c: E2 [17:50:49]MH_I2C_Read... [17:50:49]Read from MH i2c: E2 0E 00 [17:50:49]MH_I2C_Read... [17:50:49]Read from MH i2c: E2 0E 00 EE 6F 00 09 00 01 98 11 45 67 00 00 00 00 90 00 3B [17:50:49]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:50:49]wFMCommunicate OK [17:50:49]SAM_PROTO_GetShiftState done [17:50:49]FM_GetShiftState done [17:50:49]opened in 1732579736 [17:50:49]opened+sec_in_day 1732666136 [17:50:49]quantity*price = 30060 [17:50:49]sum+1 = 30061 [17:50:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 140 26.11.2024 17:51 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123286 ФПД: 225781676264232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T175100&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123286&fm=225781676264232&tin=02508201610067®Number=0000000000092681&sum=30000 [17:50:50]StoreToDocumentArchive [17:50:50]shift 557 fd 123286 [17:50:50]save to /storage/0557/doc_00123286 [17:50:50]save last doc name /storage/0557/doc_00123286 to /storage/kkm_last_doc_name [17:50:50]save OK [17:50:50]Clear old archive folders... [17:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:50]tlvbuf is 021A5870 [17:50:50]SAM_PROTO_ClearQueue [17:50:50]wFMCommunicate request_size=4 [17:50:50]MH_SAM_APDU [17:50:50]CAPDU: 80 09 00 00 [17:50:50]Write to MH i2c: E2 08 00 FB 6F 80 09 00 00 00 00 00 00 DC [17:50:50]Write i2c OK [17:50:50]MH_I2C_Read... [17:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:50]Read from MH i2c: E2 [17:50:50]MH_I2C_Read... [17:50:50]Read from MH i2c: E2 03 00 [17:50:50]MH_I2C_Read... [17:50:50]Read from MH i2c: E2 03 00 FB 6F 00 90 00 DE [17:50:50]RAPDU: 90 00 [17:50:50]wFMCommunicate OK [17:50:50]SAM_PROTO_ClearQueue done [17:50:50]KKMCreateOFDPacket [17:50:50]OFDProtocolAddRootSTLVToBuf [17:50:50]FM_MakeSignedData [17:50:50]FM_MakeSignedData [17:50:50]SAM_PROTO_SignData [17:50:50]wFMCommunicate request_size=4 [17:50:50]MH_SAM_APDU [17:50:50]CAPDU: 80 0D 01 02 [17:50:50]Write to MH i2c: E2 08 00 FC 6F 80 0D 01 02 00 00 00 00 E4 [17:50:50]Write i2c OK [17:50:50]MH_I2C_Read... [17:50:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:50]Read from MH i2c: E2 [17:50:50]MH_I2C_Read... [17:50:50]Read from MH i2c: E2 03 00 [17:50:50]MH_I2C_Read... [17:50:50]Read from MH i2c: E2 03 00 FC 6F 00 90 00 DF [17:50:50]RAPDU: 90 00 [17:50:50]wFMCommunicate OK [17:50:50]wFMCommunicate request_size=255 [17:50:50]MH_SAM_APDU [17:50:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 84 0A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 96 E1 01 00 35 04 06 00 CD [17:50:50]Write to MH i2c: E2 02 01 FD 6F 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 84 0A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 96 E1 01 00 35 04 06 00 CD 00 00 D2 [17:50:50]Write i2c OK [17:50:50]MH_I2C_Read... [17:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:50]Read from MH i2c: E2 [17:50:50]MH_I2C_Read... [17:50:50]Read from MH i2c: E2 03 00 [17:50:50]MH_I2C_Read... [17:50:50]Read from MH i2c: E2 03 00 FD 6F 00 90 00 E0 [17:50:50]RAPDU: 90 00 [17:50:50]wFMCommunicate OK [17:50:50]wFMCommunicate request_size=10 [17:50:50]MH_SAM_APDU [17:50:50]CAPDU: 80 0D 02 02 05 58 E4 9C 4B 28 [17:50:50]Write to MH i2c: E2 0D 00 FE 6F 80 0D 02 02 05 00 58 E4 9C 4B 28 00 00 3C [17:50:50]Write i2c OK [17:50:50]MH_I2C_Read... [17:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:50]Read from MH i2c: E2 [17:50:50]MH_I2C_Read... [17:50:50]Read from MH i2c: E2 03 00 [17:50:50]MH_I2C_Read... [17:50:50]Read from MH i2c: E2 03 00 FE 6F 00 90 00 E1 [17:50:50]RAPDU: 90 00 [17:50:50]wFMCommunicate OK [17:50:50]wFMCommunicate request_size=4 [17:50:50]MH_SAM_APDU [17:50:50]CAPDU: 80 0D 03 02 [17:50:50]Write to MH i2c: E2 08 00 FF 6F 80 0D 03 02 00 00 00 00 E9 [17:50:50]Write i2c OK [17:50:50]MH_I2C_Read... [17:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:50]Read from MH i2c: E2 [17:50:50]MH_I2C_Read... [17:50:50]Read from MH i2c: E2 0B 00 [17:50:50]MH_I2C_Read... [17:50:50]Read from MH i2c: E2 0B 00 FF 6F 00 20 A7 5B 0B 2B 19 1C 7C 90 00 F3 [17:50:50]RAPDU: 20 A7 5B 0B 2B 19 1C 7C 90 00 [17:50:50]wFMCommunicate OK [17:50:50]SAM_PROTO_SignData done [17:50:50]FM_MakeSignedData done [17:50:50]CreateOFDProtocolMessage [17:50:50]wFMCommunicate request_size=4 [17:50:50]MH_SAM_APDU [17:50:50]CAPDU: 80 11 00 00 [17:50:50]Write to MH i2c: E2 08 00 00 70 80 11 00 00 00 00 00 00 EA [17:50:50]Write i2c OK [17:50:50]MH_I2C_Read... [17:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:50]Read from MH i2c: E2 [17:50:50]MH_I2C_Read... [17:50:50]Read from MH i2c: E2 17 00 [17:50:50]MH_I2C_Read... [17:50:50]Read from MH i2c: E2 17 00 00 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 41 [17:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:50:50]wFMCommunicate OK [17:50:50]CreateOFDProtocolMessage done [17:50:50]OFDSenderStorePacket 123286 [17:50:50]StoreOFDPacket docnum=123286 [17:50:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 63 33 07 01 CC 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 84 0A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 96 E1 01 00 35 04 06 00 CD 58 E4 9C 4B 28 20 A7 5B 0B 2B 19 1C 7C [17:50:50]CheckFolder [17:50:50]dirname=/storage/ofd_packets [17:50:50]CheckFolder done [17:50:50]ProducePacketName [17:50:50]name=ofd_packets/00123286 [17:50:50]NVStorageSaveData ofd_packets/00123286 [17:50:50]File name is /storage/ofd_packets/00123286 [17:50:50]Write 301 bytes [17:50:50]NVStorageSaveData done [17:50:50]OFDSenderStorePacket done [17:50:50]KKMCreateOFDPacket done [17:50:50]NVStorageSaveData kkm_last_timestamp [17:50:50]File name is /storage/kkm_last_timestamp [17:50:50]Write 4 bytes [17:50:50]NVStorageSaveData done [17:50:50]ExternCall_PrintAddStr [17:50:50]wPrintStart [17:50:50]Write to MH i2c: 01 00 00 01 70 71 [17:50:50]Write i2c OK [17:50:50]MH_I2C_Read... [17:50:50]Read from MH i2c: 01 [17:50:50]MH_I2C_Read... [17:50:50]Read from MH i2c: 01 07 00 [17:50:50]MH_I2C_Read... [17:50:50]Read from MH i2c: 01 07 00 01 70 00 00 00 00 00 FF 0F 86 [17:50:50]RasterBufferAndPrint [17:50:50]line Счет N : (1)718116 [17:50:50]line ИНН: 02508201610067 [17:50:50]line Контрольно-Кассовый Чек [17:50:50]line ПРОДАЖА [17:50:50]line ТРК (МРК, ГНК) : 12 [17:50:50]line Товар: 2710124130 [17:50:50]line Аи-92-К-4 [17:50:50]line 4.460 * 67.40 [17:50:50]line = 300.60 [17:50:50]line НДС 12% НСП 1% [17:50:50]line > о реализуемом товаре [17:50:50]line ОКРУГЛЕНИЕ: -0.60 [17:50:50]line ИТОГО: 300.00 [17:50:50]line Внесено: 300.00 [17:50:50]line СДАЧА: 0.00 [17:50:50]line НСП 1% : 2.66 [17:50:50]line НДС 12% : 31.92 [17:50:50]line Наличными: 300.00 [17:50:50]line Безнал.: 0.00 [17:50:50]line Место: АЗС № 64 "Партнер Нефть" [17:50:50]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:50:50]line СНО: Общий режим [17:50:50]line Чек 140 26.11.2024 17:51 [17:50:50]line Смена: 557 ФФД: 1.0 [17:50:50]line ЗНМ: 0300000033 [17:50:50]line РНМ: 0000000000092681 [17:50:50]line Версия ККМ: 001 [17:50:50]line ФМ: 0000000000874881 [17:50:50]line ФД: 123286 [17:50:50]line ФПД: 225781676264232 [17:50:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T175100&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123286&fm=225781676264232&tin=02508201610067®Number=0000000000092681&sum=30000 [17:50:51]OFD Sender: Processing packet 123286 [packets to send 7, broken 6] [17:50:51]ProducePacketName [17:50:51]name=ofd_packets/00123286 [17:50:51]OFD Sender: To server: pG, [17:50:51]CommunicateWithHost lk.salyk.kg:30040 [17:50:51]ConnectInit lk.salyk.kg [17:50:51]written 0, free lines is 4095 [17:50:51]Connected sock=10 [17:50:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 63 33 07 01 CC 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 84 0A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 96 E1 01 00 35 04 06 00 CD 58 E4 9C 4B 28 20 A7 5B 0B 2B 19 1C 7C [17:50:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 C7 64 47 00 12 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 96 E1 01 00 F4 03 04 00 46 B6 45 67 B6 04 01 00 00 9A 7A 14 28 01 F6 85 F7 [17:50:51]CommunicateWithHost err = 0 [17:50:51]CheckOFDResponse [17:50:51]1017 (14) - 77093643461234 [17:50:51]1041 (16) - 0000000000874881 [17:50:51]1040 (4) - 123286 [17:50:51]1012 (4) - 26.11.2024 11:51 [17:50:51]1206 (1) - 0 [17:50:51]OFD Sender: Remove packet 123286 [17:50:51]ProducePacketName [17:50:51]name=ofd_packets/00123286 [17:50:51]NVStorageDeleteData [17:50:51]Write to MH i2c: 01 00 00 2C 70 9C [17:50:51]Write i2c OK [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: 01 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: 01 07 00 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: 01 07 00 2C 70 00 00 00 00 00 45 0C F4 [17:50:51]RasterBufferAndPrint [17:50:51]line [17:50:51]line [17:50:51]line [17:50:51]line [17:50:51]line [17:50:51]written 0, free lines is 3147 [17:50:51]MH_Cut [17:50:51]Write to MH i2c: D1 01 00 33 70 01 75 [17:50:51]Write i2c OK [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: D1 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: D1 01 00 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: D1 01 00 33 70 00 74 [17:50:51]Write to MH i2c: 01 00 00 34 70 A4 [17:50:51]Write i2c OK [17:50:51]MH_I2C_Read... [17:50:51]OFD Sender: No OFD packet to send [17:50:52]*** Cut start [17:50:52]*** Partial cut [17:50:52]*** CUTSNS_PIN = 1 [17:50:53]*** CUTSNS_PIN = 0 [17:50:53]*** Brake cut motor [17:50:53]Read from MH i2c: 01 [17:50:53]MH_I2C_Read... [17:50:53]*** Stop cut motor [17:50:53]*** Cut end [17:50:53]Read from MH i2c: 01 07 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: 01 07 00 34 70 00 00 00 00 00 FF 0F B9 [17:50:53]process_action close_receipt done [17:50:53]requested_data is exist [17:50:53]produce_requested_data [17:50:53]requested_item fm.sn is exist - process it [17:50:53]wFMCommunicate request_size=4 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 11 00 00 [17:50:53]Write to MH i2c: E2 08 00 35 70 80 11 00 00 00 00 00 00 1F [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 17 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 17 00 35 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 76 [17:50:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:50:53]wFMCommunicate OK [17:50:53]requested_item fd.num is exist - process it [17:50:53]SAM_PROTO_GetFieldsCounters [17:50:53]wFMCommunicate request_size=4 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 13 00 00 [17:50:53]Write to MH i2c: E2 08 00 36 70 80 13 00 00 00 00 00 00 22 [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 62 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 62 00 36 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 96 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [17:50:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 96 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:53]wFMCommunicate OK [17:50:53]SAM_PROTO_GetFieldsCounters done [17:50:53]requested_item shift.num is exist - process it [17:50:53]requested_item shift.opened is exist - process it [17:50:53]req_shift_opened [17:50:53]FM_GetShiftState [17:50:53]SAM_PROTO_GetShiftState [17:50:53]wFMCommunicate request_size=4 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 13 01 00 [17:50:53]Write to MH i2c: E2 08 00 37 70 80 13 01 00 00 00 00 00 24 [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 0E 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 0E 00 37 70 00 09 00 01 98 11 45 67 00 00 00 00 90 00 85 [17:50:53]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:50:53]wFMCommunicate OK [17:50:53]SAM_PROTO_GetShiftState done [17:50:53]FM_GetShiftState done [17:50:53]req_shift_opened done [17:50:53]requested_item shift.open_date is exist - process it [17:50:53]req_shift_open_date [17:50:53]req_shift_open_date done [17:50:53]produce_requested_data done [17:50:53]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123286,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [17:50:53]process_action_free close_receipt [17:50:53]json_value_free [17:50:53]json_value_free done [17:50:53]process_json_proto returns [17:50:53]Send response to host [17:50:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123286,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [17:50:53]free response buf [17:50:53]execute_script done [17:50:53]execute_script returns [17:50:53]free content buf [17:50:53]Sock 9.Close socket [17:50:53]Sock 9.Thread stoped [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:17]accept exits with 7 [17:53:17]New connection [17:53:17]New thread 3066580324 created [17:53:17]Thread 3066723684 joined [17:53:17]Waiting for new connection... [17:53:17] Sock 7.Parse request [17:53:17]Sock 7.Check first char [17:53:17]Sock 7.First char is OK [17:53:17]request: POST /json_proto HTTP/1.0 [17:53:17]Method: POST [17:53:17]URL: /json_proto [17:53:17]Method is POST - this is cgi request [17:53:17]url: /json_proto [17:53:17]query_string will be loaded in cgi processing [17:53:17]execute_cgi json_proto POST (null) [17:53:17]execute_cgi path=json_proto method=POST [17:53:17]POST find Content-Length [17:53:17]Host: 172.17.37.4:8080 [17:53:17]Content-Length: 677 [17:53:17]Content-Type: application/json [17:53:17] [17:53:17]POST finish read [17:53:17]Found Content-Length = 677 [17:53:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:17]execute_script... [17:53:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:17]POST & json_proto [17:53:17]process_json_proto [17:53:17]json parsed OK: [17:53:17]protocol is kg_v1.0 [17:53:17]action value=close_receipt [17:53:17]process_action close_receipt [17:53:17]cmd_close_receipt [17:53:17]MH_GetDate [17:53:17]Write to MH i2c: F0 00 00 38 70 97 [17:53:17]Write i2c OK [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: F0 [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: F0 09 00 [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: F0 09 00 38 70 00 19 0B 46 67 B8 5A 43 67 2D [17:53:17]GetLastDocTimeStamp 1732643460 [17:53:17]current date 1732643609 [17:53:17]FM_GetShiftState [17:53:17]SAM_PROTO_GetShiftState [17:53:17]wFMCommunicate request_size=4 [17:53:17]MH_SAM_APDU [17:53:17]CAPDU: 80 13 01 00 [17:53:17]Write to MH i2c: E2 08 00 39 70 80 13 01 00 00 00 00 00 26 [17:53:17]Write i2c OK [17:53:17]MH_I2C_Read... [17:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:17]Read from MH i2c: E2 [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: E2 0E 00 [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: E2 0E 00 39 70 00 09 00 01 98 11 45 67 00 00 00 00 90 00 87 [17:53:17]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:53:17]wFMCommunicate OK [17:53:17]SAM_PROTO_GetShiftState done [17:53:17]FM_GetShiftState done [17:53:17]opened in 1732579736 [17:53:17]opened+sec_in_day 1732666136 [17:53:17]quantity*price = 30060 [17:53:17]sum+1 = 30061 [17:53:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 141 26.11.2024 17:53 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123287 ФПД: 35221147780863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T175329&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123287&fm=35221147780863&tin=02508201610067®Number=0000000000092681&sum=30000 [17:53:18]StoreToDocumentArchive [17:53:18]shift 557 fd 123287 [17:53:18]save to /storage/0557/doc_00123287 [17:53:18]save last doc name /storage/0557/doc_00123287 to /storage/kkm_last_doc_name [17:53:18]save OK [17:53:18]Clear old archive folders... [17:53:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:18]tlvbuf is 020A9510 [17:53:18]SAM_PROTO_ClearQueue [17:53:18]wFMCommunicate request_size=4 [17:53:18]MH_SAM_APDU [17:53:18]CAPDU: 80 09 00 00 [17:53:18]Write to MH i2c: E2 08 00 46 70 80 09 00 00 00 00 00 00 28 [17:53:18]Write i2c OK [17:53:18]MH_I2C_Read... [17:53:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:18]Read from MH i2c: E2 [17:53:18]MH_I2C_Read... [17:53:18]Read from MH i2c: E2 03 00 [17:53:18]MH_I2C_Read... [17:53:18]Read from MH i2c: E2 03 00 46 70 00 90 00 2A [17:53:18]RAPDU: 90 00 [17:53:18]wFMCommunicate OK [17:53:18]SAM_PROTO_ClearQueue done [17:53:18]KKMCreateOFDPacket [17:53:18]OFDProtocolAddRootSTLVToBuf [17:53:18]FM_MakeSignedData [17:53:18]FM_MakeSignedData [17:53:18]SAM_PROTO_SignData [17:53:18]wFMCommunicate request_size=4 [17:53:18]MH_SAM_APDU [17:53:18]CAPDU: 80 0D 01 02 [17:53:18]Write to MH i2c: E2 08 00 47 70 80 0D 01 02 00 00 00 00 30 [17:53:18]Write i2c OK [17:53:18]MH_I2C_Read... [17:53:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:19]Read from MH i2c: E2 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 47 70 00 90 00 2B [17:53:19]RAPDU: 90 00 [17:53:19]wFMCommunicate OK [17:53:19]wFMCommunicate request_size=255 [17:53:19]MH_SAM_APDU [17:53:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 19 0B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 97 E1 01 00 35 04 06 00 20 [17:53:19]Write to MH i2c: E2 02 01 48 70 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 19 0B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 97 E1 01 00 35 04 06 00 20 00 00 09 [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:19]Read from MH i2c: E2 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 48 70 00 90 00 2C [17:53:19]RAPDU: 90 00 [17:53:19]wFMCommunicate OK [17:53:19]wFMCommunicate request_size=10 [17:53:19]MH_SAM_APDU [17:53:19]CAPDU: 80 0D 02 02 05 08 90 00 86 FF [17:53:19]Write to MH i2c: E2 0D 00 49 70 80 0D 02 02 05 00 08 90 00 86 FF 00 00 5A [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:19]Read from MH i2c: E2 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 49 70 00 90 00 2D [17:53:19]RAPDU: 90 00 [17:53:19]wFMCommunicate OK [17:53:19]wFMCommunicate request_size=4 [17:53:19]MH_SAM_APDU [17:53:19]CAPDU: 80 0D 03 02 [17:53:19]Write to MH i2c: E2 08 00 4A 70 80 0D 03 02 00 00 00 00 35 [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:19]Read from MH i2c: E2 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 0B 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 0B 00 4A 70 00 14 E2 23 34 50 18 23 53 90 00 61 [17:53:19]RAPDU: 14 E2 23 34 50 18 23 53 90 00 [17:53:19]wFMCommunicate OK [17:53:19]SAM_PROTO_SignData done [17:53:19]FM_MakeSignedData done [17:53:19]CreateOFDProtocolMessage [17:53:19]wFMCommunicate request_size=4 [17:53:19]MH_SAM_APDU [17:53:19]CAPDU: 80 11 00 00 [17:53:19]Write to MH i2c: E2 08 00 4B 70 80 11 00 00 00 00 00 00 35 [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:19]Read from MH i2c: E2 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 17 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 17 00 4B 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8C [17:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:53:19]wFMCommunicate OK [17:53:19]CreateOFDProtocolMessage done [17:53:19]OFDSenderStorePacket 123287 [17:53:19]StoreOFDPacket docnum=123287 [17:53:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 A6 42 07 01 8B 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 19 0B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 97 E1 01 00 35 04 06 00 20 08 90 00 86 FF 14 E2 23 34 50 18 23 53 [17:53:19]CheckFolder [17:53:19]dirname=/storage/ofd_packets [17:53:19]CheckFolder done [17:53:19]ProducePacketName [17:53:19]name=ofd_packets/00123287 [17:53:19]NVStorageSaveData ofd_packets/00123287 [17:53:19]File name is /storage/ofd_packets/00123287 [17:53:19]Write 301 bytes [17:53:19]NVStorageSaveData done [17:53:19]OFDSenderStorePacket done [17:53:19]KKMCreateOFDPacket done [17:53:19]NVStorageSaveData kkm_last_timestamp [17:53:19]File name is /storage/kkm_last_timestamp [17:53:19]Write 4 bytes [17:53:19]NVStorageSaveData done [17:53:19]ExternCall_PrintAddStr [17:53:19]wPrintStart [17:53:19]Write to MH i2c: 01 00 00 4C 70 BC [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: 01 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: 01 07 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: 01 07 00 4C 70 00 00 00 00 00 FF 0F D1 [17:53:19]RasterBufferAndPrint [17:53:19]line Счет N : (1)718117 [17:53:19]line ИНН: 02508201610067 [17:53:19]line Контрольно-Кассовый Чек [17:53:19]line ПРОДАЖА [17:53:19]line ТРК (МРК, ГНК) : 12 [17:53:19]line Товар: 2710124130 [17:53:19]line Аи-92-К-4 [17:53:19]line 4.460 * 67.40 [17:53:19]line = 300.60 [17:53:19]line НДС 12% НСП 1% [17:53:19]line > о реализуемом товаре [17:53:19]line ОКРУГЛЕНИЕ: -0.60 [17:53:19]line ИТОГО: 300.00 [17:53:19]line Внесено: 300.00 [17:53:19]line СДАЧА: 0.00 [17:53:19]line НСП 1% : 2.66 [17:53:19]line НДС 12% : 31.92 [17:53:19]line Наличными: 300.00 [17:53:19]line Безнал.: 0.00 [17:53:19]line Место: АЗС № 64 "Партнер Нефть" [17:53:19]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:53:19]line СНО: Общий режим [17:53:19]line Чек 141 26.11.2024 17:53 [17:53:19]line Смена: 557 ФФД: 1.0 [17:53:19]line ЗНМ: 0300000033 [17:53:19]line РНМ: 0000000000092681 [17:53:19]line Версия ККМ: 001 [17:53:19]line ФМ: 0000000000874881 [17:53:19]line ФД: 123287 [17:53:19]line ФПД: 35221147780863 [17:53:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T175329&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123287&fm=35221147780863&tin=02508201610067®Number=0000000000092681&sum=30000 [17:53:19]written 0, free lines is 4095 [17:53:19]OFD Sender: Processing packet 123287 [packets to send 7, broken 6] [17:53:19]ProducePacketName [17:53:19]name=ofd_packets/00123287 [17:53:19]OFD Sender: To server: pG, [17:53:19]CommunicateWithHost lk.salyk.kg:30040 [17:53:19]ConnectInit lk.salyk.kg [17:53:19]Connected sock=10 [17:53:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 A6 42 07 01 8B 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 19 0B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 97 E1 01 00 35 04 06 00 20 08 90 00 86 FF 14 E2 23 34 50 18 23 53 [17:53:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 31 9E 47 00 35 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 97 E1 01 00 F4 03 04 00 DB B6 45 67 B6 04 01 00 00 EC 25 1D 77 0C 02 A5 39 [17:53:19]CommunicateWithHost err = 0 [17:53:19]CheckOFDResponse [17:53:19]1017 (14) - 77093643461234 [17:53:19]1041 (16) - 0000000000874881 [17:53:19]1040 (4) - 123287 [17:53:19]1012 (4) - 26.11.2024 11:54 [17:53:19]1206 (1) - 0 [17:53:19]OFD Sender: Remove packet 123287 [17:53:19]ProducePacketName [17:53:19]name=ofd_packets/00123287 [17:53:19]NVStorageDeleteData [17:53:19]Write to MH i2c: 01 00 00 77 70 E7 [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: 01 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: 01 07 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: 01 07 00 77 70 00 00 00 00 00 44 0C 3E [17:53:19]RasterBufferAndPrint [17:53:19]line [17:53:19]line [17:53:19]line [17:53:19]line [17:53:19]line [17:53:19]written 0, free lines is 3146 [17:53:19]MH_Cut [17:53:19]Write to MH i2c: D1 01 00 7E 70 01 C0 [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: D1 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: D1 01 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: D1 01 00 7E 70 00 BF [17:53:19]Write to MH i2c: 01 00 00 7F 70 EF [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:20]OFD Sender: No OFD packet to send [17:53:21]*** Cut start [17:53:21]*** Partial cut [17:53:21]*** CUTSNS_PIN = 1 [17:53:21]*** CUTSNS_PIN = 0 [17:53:21]*** Brake cut motor [17:53:21]Read from MH i2c: 01 [17:53:21]MH_I2C_Read... [17:53:21]*** Stop cut motor [17:53:21]*** Cut end [17:53:21]Read from MH i2c: 01 07 00 [17:53:21]MH_I2C_Read... [17:53:21]Read from MH i2c: 01 07 00 7F 70 00 00 00 00 00 FF 0F 04 [17:53:21]process_action close_receipt done [17:53:21]requested_data is exist [17:53:21]produce_requested_data [17:53:21]requested_item fm.sn is exist - process it [17:53:21]wFMCommunicate request_size=4 [17:53:21]MH_SAM_APDU [17:53:21]CAPDU: 80 11 00 00 [17:53:21]Write to MH i2c: E2 08 00 80 70 80 11 00 00 00 00 00 00 6A [17:53:21]Write i2c OK [17:53:21]MH_I2C_Read... [17:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:21]Read from MH i2c: E2 [17:53:21]MH_I2C_Read... [17:53:21]Read from MH i2c: E2 17 00 [17:53:21]MH_I2C_Read... [17:53:21]Read from MH i2c: E2 17 00 80 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C1 [17:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:53:21]wFMCommunicate OK [17:53:21]requested_item fd.num is exist - process it [17:53:21]SAM_PROTO_GetFieldsCounters [17:53:21]wFMCommunicate request_size=4 [17:53:21]MH_SAM_APDU [17:53:21]CAPDU: 80 13 00 00 [17:53:21]Write to MH i2c: E2 08 00 81 70 80 13 00 00 00 00 00 00 6D [17:53:21]Write i2c OK [17:53:21]MH_I2C_Read... [17:53:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:22]Read from MH i2c: E2 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: E2 62 00 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: E2 62 00 81 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 97 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [17:53:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 97 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:22]wFMCommunicate OK [17:53:22]SAM_PROTO_GetFieldsCounters done [17:53:22]requested_item shift.num is exist - process it [17:53:22]requested_item shift.opened is exist - process it [17:53:22]req_shift_opened [17:53:22]FM_GetShiftState [17:53:22]SAM_PROTO_GetShiftState [17:53:22]wFMCommunicate request_size=4 [17:53:22]MH_SAM_APDU [17:53:22]CAPDU: 80 13 01 00 [17:53:22]Write to MH i2c: E2 08 00 82 70 80 13 01 00 00 00 00 00 6F [17:53:22]Write i2c OK [17:53:22]MH_I2C_Read... [17:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:22]Read from MH i2c: E2 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: E2 0E 00 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: E2 0E 00 82 70 00 09 00 01 98 11 45 67 00 00 00 00 90 00 D0 [17:53:22]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:53:22]wFMCommunicate OK [17:53:22]SAM_PROTO_GetShiftState done [17:53:22]FM_GetShiftState done [17:53:22]req_shift_opened done [17:53:22]requested_item shift.open_date is exist - process it [17:53:22]req_shift_open_date [17:53:22]req_shift_open_date done [17:53:22]produce_requested_data done [17:53:22]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123287,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [17:53:22]process_action_free close_receipt [17:53:22]json_value_free [17:53:22]json_value_free done [17:53:22]process_json_proto returns [17:53:22]Send response to host [17:53:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123287,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [17:53:22]free response buf [17:53:22]execute_script done [17:53:22]execute_script returns [17:53:22]free content buf [17:53:22]Sock 7.Close socket [17:53:22]Sock 7.Thread stoped [17:53:25]OFD Sender: No OFD packet to send [17:53:30]OFD Sender: No OFD packet to send [17:53:35]OFD Sender: No OFD packet to send [17:53:40]OFD Sender: No OFD packet to send [17:53:45]OFD Sender: No OFD packet to send [17:53:50]OFD Sender: No OFD packet to send [17:53:55]OFD Sender: No OFD packet to send [17:54:00]OFD Sender: No OFD packet to send [17:54:05]OFD Sender: No OFD packet to send [17:54:10]OFD Sender: No OFD packet to send [17:54:15]OFD Sender: No OFD packet to send [17:54:20]OFD Sender: No OFD packet to send [17:54:25]OFD Sender: No OFD packet to send [17:54:30]OFD Sender: No OFD packet to send [17:54:35]OFD Sender: No OFD packet to send [17:54:40]OFD Sender: No OFD packet to send [17:54:45]OFD Sender: No OFD packet to send [17:54:50]OFD Sender: No OFD packet to send [17:54:55]OFD Sender: No OFD packet to send [17:55:00]OFD Sender: No OFD packet to send [17:55:05]OFD Sender: No OFD packet to send [17:55:10]OFD Sender: No OFD packet to send [17:55:14]accept exits with 9 [17:55:14]New connection [17:55:14]New thread 3066723684 created [17:55:14]Thread 3066580324 joined [17:55:14]Waiting for new connection... [17:55:14] Sock 9.Parse request [17:55:14]Sock 9.Check first char [17:55:14]Sock 9.First char is OK [17:55:14]request: POST /json_proto HTTP/1.0 [17:55:14]Method: POST [17:55:14]URL: /json_proto [17:55:14]Method is POST - this is cgi request [17:55:14]url: /json_proto [17:55:14]query_string will be loaded in cgi processing [17:55:14]execute_cgi json_proto POST (null) [17:55:14]execute_cgi path=json_proto method=POST [17:55:14]POST find Content-Length [17:55:14]Host: 172.17.37.4:8080 [17:55:14]Content-Length: 682 [17:55:14]Content-Type: application/json [17:55:14] [17:55:14]POST finish read [17:55:14]Found Content-Length = 682 [17:55:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:14]execute_script... [17: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 : (1)718119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:14]POST & json_proto [17:55:14]process_json_proto [17:55:14]json parsed OK: [17:55:14]protocol is kg_v1.0 [17:55:14]action value=close_receipt [17:55:14]process_action close_receipt [17:55:14]cmd_close_receipt [17:55:14]MH_GetDate [17:55:14]Write to MH i2c: F0 00 00 83 70 E2 [17:55:14]Write i2c OK [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: F0 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: F0 09 00 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: F0 09 00 83 70 00 8E 0B 46 67 B8 5A 43 67 ED [17:55:14]GetLastDocTimeStamp 1732643609 [17:55:14]current date 1732643726 [17:55:14]FM_GetShiftState [17:55:14]SAM_PROTO_GetShiftState [17:55:14]wFMCommunicate request_size=4 [17:55:14]MH_SAM_APDU [17:55:14]CAPDU: 80 13 01 00 [17:55:14]Write to MH i2c: E2 08 00 84 70 80 13 01 00 00 00 00 00 71 [17:55:14]Write i2c OK [17:55:14]MH_I2C_Read... [17:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:14]Read from MH i2c: E2 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 0E 00 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 0E 00 84 70 00 09 00 01 98 11 45 67 00 00 00 00 90 00 D2 [17:55:14]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:55:14]wFMCommunicate OK [17:55:14]SAM_PROTO_GetShiftState done [17:55:14]FM_GetShiftState done [17:55:14]opened in 1732579736 [17:55:14]opened+sec_in_day 1732666136 [17:55:14]quantity*price = 100021 [17:55:14]sum+1 = 100023 [17:55:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 142 26.11.2024 17:55 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123288 ФПД: 14418939561970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T175526&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123288&fm=14418939561970&tin=02508201610067®Number=0000000000092681&sum=100000 [17:55:16]StoreToDocumentArchive [17:55:16]shift 557 fd 123288 [17:55:16]save to /storage/0557/doc_00123288 [17:55:16]save last doc name /storage/0557/doc_00123288 to /storage/kkm_last_doc_name [17:55:16]save OK [17:55:16]Clear old archive folders... [17:55:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:55:16]tlvbuf is 01F3EB50 [17:55:16]SAM_PROTO_ClearQueue [17:55:16]wFMCommunicate request_size=4 [17:55:16]MH_SAM_APDU [17:55:16]CAPDU: 80 09 00 00 [17:55:16]Write to MH i2c: E2 08 00 91 70 80 09 00 00 00 00 00 00 73 [17:55:16]Write i2c OK [17:55:16]MH_I2C_Read... [17:55:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:16]Read from MH i2c: E2 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 03 00 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 03 00 91 70 00 90 00 75 [17:55:16]RAPDU: 90 00 [17:55:16]wFMCommunicate OK [17:55:16]SAM_PROTO_ClearQueue done [17:55:16]KKMCreateOFDPacket [17:55:16]OFDProtocolAddRootSTLVToBuf [17:55:16]FM_MakeSignedData [17:55:16]FM_MakeSignedData [17:55:16]SAM_PROTO_SignData [17:55:16]wFMCommunicate request_size=4 [17:55:16]MH_SAM_APDU [17:55:16]CAPDU: 80 0D 01 02 [17:55:16]Write to MH i2c: E2 08 00 92 70 80 0D 01 02 00 00 00 00 7B [17:55:16]Write i2c OK [17:55:16]MH_I2C_Read... [17:55:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:16]Read from MH i2c: E2 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 03 00 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 03 00 92 70 00 90 00 76 [17:55:16]RAPDU: 90 00 [17:55:16]wFMCommunicate OK [17:55:16]wFMCommunicate request_size=255 [17:55:16]MH_SAM_APDU [17:55:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 8E 0B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 98 E1 01 00 35 04 06 00 0D [17:55:16]Write to MH i2c: E2 02 01 93 70 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 8E 0B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 98 E1 01 00 35 04 06 00 0D 00 00 5C [17:55:16]Write i2c OK [17:55:16]MH_I2C_Read... [17:55:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:16]Read from MH i2c: E2 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 03 00 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 03 00 93 70 00 90 00 77 [17:55:16]RAPDU: 90 00 [17:55:16]wFMCommunicate OK [17:55:16]wFMCommunicate request_size=10 [17:55:16]MH_SAM_APDU [17:55:16]CAPDU: 80 0D 02 02 05 1D 2B C5 47 F2 [17:55:16]Write to MH i2c: E2 0D 00 94 70 80 0D 02 02 05 00 1D 2B C5 47 F2 00 00 CE [17:55:16]Write i2c OK [17:55:16]MH_I2C_Read... [17:55:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:16]Read from MH i2c: E2 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 03 00 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 03 00 94 70 00 90 00 78 [17:55:16]RAPDU: 90 00 [17:55:16]wFMCommunicate OK [17:55:16]wFMCommunicate request_size=4 [17:55:16]MH_SAM_APDU [17:55:16]CAPDU: 80 0D 03 02 [17:55:16]Write to MH i2c: E2 08 00 95 70 80 0D 03 02 00 00 00 00 80 [17:55:16]Write i2c OK [17:55:16]MH_I2C_Read... [17:55:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:16]Read from MH i2c: E2 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 0B 00 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 0B 00 95 70 00 EB 97 06 7C 6E B1 94 3A 90 00 72 [17:55:16]RAPDU: EB 97 06 7C 6E B1 94 3A 90 00 [17:55:16]wFMCommunicate OK [17:55:16]SAM_PROTO_SignData done [17:55:16]FM_MakeSignedData done [17:55:16]CreateOFDProtocolMessage [17:55:16]wFMCommunicate request_size=4 [17:55:16]MH_SAM_APDU [17:55:16]CAPDU: 80 11 00 00 [17:55:16]Write to MH i2c: E2 08 00 96 70 80 11 00 00 00 00 00 00 80 [17:55:16]Write i2c OK [17:55:16]MH_I2C_Read... [17:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:16]Read from MH i2c: E2 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 17 00 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 17 00 96 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D7 [17:55:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:55:16]wFMCommunicate OK [17:55:16]CreateOFDProtocolMessage done [17:55:16]OFDSenderStorePacket 123288 [17:55:16]StoreOFDPacket docnum=123288 [17:55:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B9 C7 07 01 4F 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 8E 0B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 98 E1 01 00 35 04 06 00 0D 1D 2B C5 47 F2 EB 97 06 7C 6E B1 94 3A [17:55:16]CheckFolder [17:55:16]dirname=/storage/ofd_packets [17:55:16]CheckFolder done [17:55:16]ProducePacketName [17:55:16]name=ofd_packets/00123288 [17:55:16]NVStorageSaveData ofd_packets/00123288 [17:55:16]File name is /storage/ofd_packets/00123288 [17:55:16]Write 301 bytes [17:55:16]NVStorageSaveData done [17:55:16]OFDSenderStorePacket done [17:55:16]KKMCreateOFDPacket done [17:55:16]NVStorageSaveData kkm_last_timestamp [17:55:16]File name is /storage/kkm_last_timestamp [17:55:16]Write 4 bytes [17:55:16]NVStorageSaveData done [17:55:16]ExternCall_PrintAddStr [17:55:16]wPrintStart [17:55:16]Write to MH i2c: 01 00 00 97 70 07 [17:55:16]Write i2c OK [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: 01 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: 01 07 00 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: 01 07 00 97 70 00 00 00 00 00 FF 0F 1C [17:55:16]RasterBufferAndPrint [17:55:16]line Счет N : (1)718119 [17:55:16]line ИНН: 02508201610067 [17:55:16]line Контрольно-Кассовый Чек [17:55:16]line ПРОДАЖА [17:55:16]line ТРК (МРК, ГНК) : 42 [17:55:16]line Товар: 2710124130 [17:55:16]line Аи-92-К-4 [17:55:16]line 14.840 * 67.40 [17:55:16]line = 1000.22 [17:55:16]line НДС 12% НСП 1% [17:55:16]line > о реализуемом товаре [17:55:16]line ОКРУГЛЕНИЕ: -0.22 [17:55:16]line ИТОГО: 1000.00 [17:55:16]line Внесено: 1000.00 [17:55:16]line СДАЧА: 0.00 [17:55:16]line НСП 1% : 8.85 [17:55:16]line НДС 12% : 106.22 [17:55:16]line Наличными: 1000.00 [17:55:16]line Безнал.: 0.00 [17:55:16]line Место: АЗС № 64 "Партнер Нефть" [17:55:16]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:55:16]line СНО: Общий режим [17:55:16]line Чек 142 26.11.2024 17:55 [17:55:16]line Смена: 557 ФФД: 1.0 [17:55:16]line ЗНМ: 0300000033 [17:55:16]line РНМ: 0000000000092681 [17:55:16]line Версия ККМ: 001 [17:55:16]line ФМ: 0000000000874881 [17:55:16]line ФД: 123288 [17:55:16]line ФПД: 14418939561970 [17:55:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T175526&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123288&fm=14418939561970&tin=02508201610067®Number=0000000000092681&sum=100000 [17:55:16]OFD Sender: Processing packet 123288 [packets to send 7, broken 6] [17:55:16]ProducePacketName [17:55:16]name=ofd_packets/00123288 [17:55:16]OFD Sender: To server: pG, [17:55:16]CommunicateWithHost lk.salyk.kg:30040 [17:55:16]ConnectInit lk.salyk.kg [17:55:16]written 0, free lines is 4095 [17:55:17]Connected sock=10 [17:55:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B9 C7 07 01 4F 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 8E 0B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 98 E1 01 00 35 04 06 00 0D 1D 2B C5 47 F2 EB 97 06 7C 6E B1 94 3A [17:55:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 22 56 47 00 E7 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 98 E1 01 00 F4 03 04 00 50 B7 45 67 B6 04 01 00 00 B6 DB 70 1D 53 BC A8 4F [17:55:17]CommunicateWithHost err = 0 [17:55:17]CheckOFDResponse [17:55:17]1017 (14) - 77093643461234 [17:55:17]1041 (16) - 0000000000874881 [17:55:17]1040 (4) - 123288 [17:55:17]1012 (4) - 26.11.2024 11:56 [17:55:17]1206 (1) - 0 [17:55:17]OFD Sender: Remove packet 123288 [17:55:17]ProducePacketName [17:55:17]name=ofd_packets/00123288 [17:55:17]NVStorageDeleteData [17:55:17]Write to MH i2c: 01 00 00 C2 70 32 [17:55:17]Write i2c OK [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: 01 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: 01 07 00 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: 01 07 00 C2 70 00 00 00 00 00 47 0C 8C [17:55:17]RasterBufferAndPrint [17:55:17]line [17:55:17]line [17:55:17]line [17:55:17]line [17:55:17]line [17:55:17]written 0, free lines is 3147 [17:55:17]MH_Cut [17:55:17]Write to MH i2c: D1 01 00 C9 70 01 0B [17:55:17]Write i2c OK [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: D1 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: D1 01 00 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: D1 01 00 C9 70 00 0A [17:55:17]Write to MH i2c: 01 00 00 CA 70 3A [17:55:17]Write i2c OK [17:55:17]MH_I2C_Read... [17:55:17]OFD Sender: No OFD packet to send [17:55:18]*** Cut start [17:55:18]*** Partial cut [17:55:18]*** CUTSNS_PIN = 1 [17:55:18]*** CUTSNS_PIN = 0 [17:55:19]*** Brake cut motor [17:55:19]Read from MH i2c: 01 [17:55:19]MH_I2C_Read... [17:55:19]*** Stop cut motor [17:55:19]Read from MH i2c: 01 *** Cut end [17:55:19]07 00 [17:55:19]MH_I2C_Read... [17:55:19]Read from MH i2c: 01 07 00 CA 70 00 00 00 00 00 FF 0F 4F [17:55:19]process_action close_receipt done [17:55:19]requested_data is exist [17:55:19]produce_requested_data [17:55:19]requested_item fm.sn is exist - process it [17:55:19]wFMCommunicate request_size=4 [17:55:19]MH_SAM_APDU [17:55:19]CAPDU: 80 11 00 00 [17:55:19]Write to MH i2c: E2 08 00 CB 70 80 11 00 00 00 00 00 00 B5 [17:55:19]Write i2c OK [17:55:19]MH_I2C_Read... [17:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:19]Read from MH i2c: E2 [17:55:19]MH_I2C_Read... [17:55:19]Read from MH i2c: E2 17 00 [17:55:19]MH_I2C_Read... [17:55:19]Read from MH i2c: E2 17 00 CB 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0C [17:55:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:55:19]wFMCommunicate OK [17:55:19]requested_item fd.num is exist - process it [17:55:19]SAM_PROTO_GetFieldsCounters [17:55:19]wFMCommunicate request_size=4 [17:55:19]MH_SAM_APDU [17:55:19]CAPDU: 80 13 00 00 [17:55:19]Write to MH i2c: E2 08 00 CC 70 80 13 00 00 00 00 00 00 B8 [17:55:19]Write i2c OK [17:55:19]MH_I2C_Read... [17:55:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:19]Read from MH i2c: E2 [17:55:19]MH_I2C_Read... [17:55:19]Read from MH i2c: E2 62 00 [17:55:19]MH_I2C_Read... [17:55:19]Read from MH i2c: E2 62 00 CC 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 98 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [17:55:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 98 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:55:19]wFMCommunicate OK [17:55:19]SAM_PROTO_GetFieldsCounters done [17:55:19]requested_item shift.num is exist - process it [17:55:19]requested_item shift.opened is exist - process it [17:55:19]req_shift_opened [17:55:19]FM_GetShiftState [17:55:19]SAM_PROTO_GetShiftState [17:55:19]wFMCommunicate request_size=4 [17:55:19]MH_SAM_APDU [17:55:19]CAPDU: 80 13 01 00 [17:55:19]Write to MH i2c: E2 08 00 CD 70 80 13 01 00 00 00 00 00 BA [17:55:19]Write i2c OK [17:55:19]MH_I2C_Read... [17:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:19]Read from MH i2c: E2 [17:55:19]MH_I2C_Read... [17:55:19]Read from MH i2c: E2 0E 00 [17:55:19]MH_I2C_Read... [17:55:19]Read from MH i2c: E2 0E 00 CD 70 00 09 00 01 98 11 45 67 00 00 00 00 90 00 1B [17:55:19]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:55:19]wFMCommunicate OK [17:55:19]SAM_PROTO_GetShiftState done [17:55:19]FM_GetShiftState done [17:55:19]req_shift_opened done [17:55:19]requested_item shift.open_date is exist - process it [17:55:19]req_shift_open_date [17:55:19]req_shift_open_date done [17:55:19]produce_requested_data done [17:55:19]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123288,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [17:55:19]process_action_free close_receipt [17:55:19]json_value_free [17:55:19]json_value_free done [17:55:19]process_json_proto returns [17:55:19]Send response to host [17:55:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123288,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [17:55:19]free response buf [17:55:19]execute_script done [17:55:19]execute_script returns [17:55:19]free content buf [17:55:19]Sock 9.Close socket [17:55:19]Sock 9.Thread stoped [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]accept exits with 7 [17:55:42]New connection [17:55:42]New thread 3066580324 created [17:55:42]Thread 3066723684 joined [17:55:42]Waiting for new connection... [17:55:42] Sock 7.Parse request [17:55:42]Sock 7.Check first char [17:55:42]Sock 7.First char is OK [17:55:42]request: POST /json_proto HTTP/1.0 [17:55:42]Method: POST [17:55:42]URL: /json_proto [17:55:42]Method is POST - this is cgi request [17:55:42]url: /json_proto [17:55:42]query_string will be loaded in cgi processing [17:55:42]execute_cgi json_proto POST (null) [17:55:42]execute_cgi path=json_proto method=POST [17:55:42]POST find Content-Length [17:55:42]Host: 172.17.37.4:8080 [17:55:42]Content-Length: 800 [17:55:42]Content-Type: application/json [17:55:42] [17:55:42]POST finish read [17:55:42]Found Content-Length = 800 [17:55:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:42]execute_script... [17:55:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:42]POST & json_proto [17:55:42]process_json_proto [17:55:42]json parsed OK: [17:55:42]protocol is kg_v1.0 [17:55:42]action value=close_receipt [17:55:42]process_action close_receipt [17:55:42]cmd_close_receipt [17:55:42]MH_GetDate [17:55:42]Write to MH i2c: F0 00 00 CE 70 2D [17:55:42]Write i2c OK [17:55:42]MH_I2C_Read... [17:55:42]Read from MH i2c: F0 [17:55:42]MH_I2C_Read... [17:55:42]Read from MH i2c: F0 09 00 [17:55:42]MH_I2C_Read... [17:55:42]Read from MH i2c: F0 09 00 CE 70 00 AA 0B 46 67 B8 5A 43 67 54 [17:55:42]GetLastDocTimeStamp 1732643726 [17:55:42]current date 1732643754 [17:55:42]FM_GetShiftState [17:55:42]SAM_PROTO_GetShiftState [17:55:42]wFMCommunicate request_size=4 [17:55:42]MH_SAM_APDU [17:55:42]CAPDU: 80 13 01 00 [17:55:42]Write to MH i2c: E2 08 00 CF 70 80 13 01 00 00 00 00 00 BC [17:55:42]Write i2c OK [17:55:42]MH_I2C_Read... [17:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:42]Read from MH i2c: E2 [17:55:42]MH_I2C_Read... [17:55:42]Read from MH i2c: E2 0E 00 [17:55:42]MH_I2C_Read... [17:55:42]Read from MH i2c: E2 0E 00 CF 70 00 09 00 01 98 11 45 67 00 00 00 00 90 00 1D [17:55:42]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:55:42]wFMCommunicate OK [17:55:42]SAM_PROTO_GetShiftState done [17:55:42]FM_GetShiftState done [17:55:42]opened in 1732579736 [17:55:42]opened+sec_in_day 1732666136 [17:55:42]quantity*price = 30060 [17:55:42]sum+1 = 30061 [17:55:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.60 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.60 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 143 26.11.2024 17:55 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123289 ФПД: 62106712408275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T175554&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123289&fm=62106712408275&tin=02508201610067®Number=0000000000092681&sum=30060 [17:55:43]StoreToDocumentArchive [17:55:43]shift 557 fd 123289 [17:55:43]save to /storage/0557/doc_00123289 [17:55:43]save last doc name /storage/0557/doc_00123289 to /storage/kkm_last_doc_name [17:55:43]save OK [17:55:43]Clear old archive folders... [17:55:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:55:43]tlvbuf is 01F5E9A0 [17:55:43]SAM_PROTO_ClearQueue [17:55:43]wFMCommunicate request_size=4 [17:55:43]MH_SAM_APDU [17:55:43]CAPDU: 80 09 00 00 [17:55:43]Write to MH i2c: E2 08 00 DC 70 80 09 00 00 00 00 00 00 BE [17:55:43]Write i2c OK [17:55:43]MH_I2C_Read... [17:55:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:43]Read from MH i2c: E2 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 03 00 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 03 00 DC 70 00 90 00 C0 [17:55:43]RAPDU: 90 00 [17:55:43]wFMCommunicate OK [17:55:43]SAM_PROTO_ClearQueue done [17:55:43]KKMCreateOFDPacket [17:55:43]OFDProtocolAddRootSTLVToBuf [17:55:43]FM_MakeSignedData [17:55:43]FM_MakeSignedData [17:55:43]SAM_PROTO_SignData [17:55:43]wFMCommunicate request_size=4 [17:55:43]MH_SAM_APDU [17:55:43]CAPDU: 80 0D 01 02 [17:55:43]Write to MH i2c: E2 08 00 DD 70 80 0D 01 02 00 00 00 00 C6 [17:55:43]Write i2c OK [17:55:43]MH_I2C_Read... [17:55:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:43]Read from MH i2c: E2 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 03 00 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 03 00 DD 70 00 90 00 C1 [17:55:43]RAPDU: 90 00 [17:55:43]wFMCommunicate OK [17:55:43]wFMCommunicate request_size=255 [17:55:43]MH_SAM_APDU [17:55:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 AA 0B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 99 E1 01 00 35 04 06 00 38 [17:55:43]Write to MH i2c: E2 02 01 DE 70 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 AA 0B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 99 E1 01 00 35 04 06 00 38 00 00 C4 [17:55:43]Write i2c OK [17:55:43]MH_I2C_Read... [17:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:44]Read from MH i2c: E2 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 03 00 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 03 00 DE 70 00 90 00 C2 [17:55:44]RAPDU: 90 00 [17:55:44]wFMCommunicate OK [17:55:44]wFMCommunicate request_size=10 [17:55:44]MH_SAM_APDU [17:55:44]CAPDU: 80 0D 02 02 05 7C 58 88 00 D3 [17:55:44]Write to MH i2c: E2 0D 00 DF 70 80 0D 02 02 05 00 7C 58 88 00 D3 00 00 02 [17:55:44]Write i2c OK [17:55:44]MH_I2C_Read... [17:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:44]Read from MH i2c: E2 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 03 00 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 03 00 DF 70 00 90 00 C3 [17:55:44]RAPDU: 90 00 [17:55:44]wFMCommunicate OK [17:55:44]wFMCommunicate request_size=4 [17:55:44]MH_SAM_APDU [17:55:44]CAPDU: 80 0D 03 02 [17:55:44]Write to MH i2c: E2 08 00 E0 70 80 0D 03 02 00 00 00 00 CB [17:55:44]Write i2c OK [17:55:44]MH_I2C_Read... [17:55:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:44]Read from MH i2c: E2 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 0B 00 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 0B 00 E0 70 00 AA B6 DD C9 15 EF 64 E9 90 00 23 [17:55:44]RAPDU: AA B6 DD C9 15 EF 64 E9 90 00 [17:55:44]wFMCommunicate OK [17:55:44]SAM_PROTO_SignData done [17:55:44]FM_MakeSignedData done [17:55:44]CreateOFDProtocolMessage [17:55:44]wFMCommunicate request_size=4 [17:55:44]MH_SAM_APDU [17:55:44]CAPDU: 80 11 00 00 [17:55:44]Write to MH i2c: E2 08 00 E1 70 80 11 00 00 00 00 00 00 CB [17:55:44]Write i2c OK [17:55:44]MH_I2C_Read... [17:55:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:44]Read from MH i2c: E2 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 17 00 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 17 00 E1 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 22 [17:55:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:55:44]wFMCommunicate OK [17:55:44]CreateOFDProtocolMessage done [17:55:44]OFDSenderStorePacket 123289 [17:55:44]StoreOFDPacket docnum=123289 [17:55:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 00 9F 07 01 B7 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 AA 0B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 99 E1 01 00 35 04 06 00 38 7C 58 88 00 D3 AA B6 DD C9 15 EF 64 E9 [17:55:44]CheckFolder [17:55:44]dirname=/storage/ofd_packets [17:55:44]CheckFolder done [17:55:44]ProducePacketName [17:55:44]name=ofd_packets/00123289 [17:55:44]NVStorageSaveData ofd_packets/00123289 [17:55:44]File name is /storage/ofd_packets/00123289 [17:55:44]Write 301 bytes [17:55:44]NVStorageSaveData done [17:55:44]OFDSenderStorePacket done [17:55:44]KKMCreateOFDPacket done [17:55:44]NVStorageSaveData kkm_last_timestamp [17:55:44]File name is /storage/kkm_last_timestamp [17:55:44]Write 4 bytes [17:55:44]NVStorageSaveData done [17:55:44]ExternCall_PrintAddStr [17:55:44]wPrintStart [17:55:44]Write to MH i2c: 01 00 00 E2 70 52 [17:55:44]Write i2c OK [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: 01 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: 01 07 00 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: 01 07 00 E2 70 00 00 00 00 00 FF 0F 67 [17:55:44]RasterBufferAndPrint [17:55:44]line Счет N : (1)718118 [17:55:44]line ИНН: 02508201610067 [17:55:44]line Контрольно-Кассовый Чек [17:55:44]line ПРОДАЖА [17:55:44]line ТРК (МРК, ГНК) : 32 [17:55:44]line Товар: 2710124130 [17:55:44]line Аи-92-К-4 [17:55:44]line 4.460 * 67.40 [17:55:44]line = 300.60 [17:55:44]line НДС 12% НСП 1% [17:55:44]line > о реализуемом товаре [17:55:44]line ИТОГО: 300.60 [17:55:44]line НСП 1% : 2.66 [17:55:44]line НДС 12% : 31.92 [17:55:44]line Наличными: 0.00 [17:55:44]line Безнал.: 300.60 [17:55:44]line Место: АЗС № 64 "Партнер Нефть" [17:55:44]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:55:44]line СНО: Общий режим [17:55:44]line Чек 143 26.11.2024 17:55 [17:55:44]line Смена: 557 ФФД: 1.0 [17:55:44]line ЗНМ: 0300000033 [17:55:44]line РНМ: 0000000000092681 [17:55:44]line Версия ККМ: 001 [17:55:44]line Платежная система: O! деньги [17:55:44]line ФМ: 0000000000874881 [17:55:44]line ФД: 123289 [17:55:44]line ФПД: 62106712408275 [17:55:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T175554&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123289&fm=62106712408275&tin=02508201610067®Number=0000000000092681&sum=30060 [17:55:44]written 0, free lines is 4095 [17:55:44]OFD Sender: Processing packet 123289 [packets to send 7, broken 6] [17:55:44]ProducePacketName [17:55:44]name=ofd_packets/00123289 [17:55:44]OFD Sender: To server: pG, [17:55:44]CommunicateWithHost lk.salyk.kg:30040 [17:55:44]ConnectInit lk.salyk.kg [17:55:44]Connected sock=10 [17:55:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 00 9F 07 01 B7 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 AA 0B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 99 E1 01 00 35 04 06 00 38 7C 58 88 00 D3 AA B6 DD C9 15 EF 64 E9 [17:55:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 C9 96 47 00 3F CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 99 E1 01 00 F4 03 04 00 6C B7 45 67 B6 04 01 00 00 84 82 FA E5 29 13 30 36 [17:55:44]CommunicateWithHost err = 0 [17:55:44]CheckOFDResponse [17:55:44]1017 (14) - 77093643461234 [17:55:44]1041 (16) - 0000000000874881 [17:55:44]1040 (4) - 123289 [17:55:44]1012 (4) - 26.11.2024 11:56 [17:55:44]1206 (1) - 0 [17:55:44]OFD Sender: Remove packet 123289 [17:55:44]ProducePacketName [17:55:44]name=ofd_packets/00123289 [17:55:44]NVStorageDeleteData [17:55:45]Write to MH i2c: 01 00 00 0C 71 7D [17:55:45]Write i2c OK [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: 01 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: 01 07 00 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: 01 07 00 0C 71 00 00 00 00 00 61 0C F1 [17:55:45]RasterBufferAndPrint [17:55:45]line [17:55:45]line [17:55:45]line [17:55:45]line [17:55:45]line [17:55:45]written 0, free lines is 3175 [17:55:45]MH_Cut [17:55:45]Write to MH i2c: D1 01 00 13 71 01 56 [17:55:45]Write i2c OK [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: D1 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: D1 01 00 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: D1 01 00 13 71 00 55 [17:55:45]Write to MH i2c: 01 00 00 14 71 85 [17:55:45]Write i2c OK [17:55:45]MH_I2C_Read... [17:55:45]OFD Sender: No OFD packet to send [17:55:46]*** Cut start [17:55:46]*** Partial cut [17:55:46]*** CUTSNS_PIN = 1 [17:55:46]*** CUTSNS_PIN = 0 [17:55:46]*** Brake cut motor [17:55:47]Read from MH i2c: 01 [17:55:47]MH_I2C_Read... [17:55:47]*** Stop cut motor [17:55:47]*** Cut end [17:55:47]Read from MH i2c: 01 07 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: 01 07 00 14 71 00 00 00 00 00 FF 0F 9A [17:55:47]process_action close_receipt done [17:55:47]requested_data is exist [17:55:47]produce_requested_data [17:55:47]requested_item fm.sn is exist - process it [17:55:47]wFMCommunicate request_size=4 [17:55:47]MH_SAM_APDU [17:55:47]CAPDU: 80 11 00 00 [17:55:47]Write to MH i2c: E2 08 00 15 71 80 11 00 00 00 00 00 00 00 [17:55:47]Write i2c OK [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 [17:55:47]MH_I2C_Read... [17:55:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:47]Read from MH i2c: E2 17 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 17 00 15 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 57 [17:55:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:55:47]wFMCommunicate OK [17:55:47]requested_item fd.num is exist - process it [17:55:47]SAM_PROTO_GetFieldsCounters [17:55:47]wFMCommunicate request_size=4 [17:55:47]MH_SAM_APDU [17:55:47]CAPDU: 80 13 00 00 [17:55:47]Write to MH i2c: E2 08 00 16 71 80 13 00 00 00 00 00 00 03 [17:55:47]Write i2c OK [17:55:47]MH_I2C_Read... [17:55:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:47]Read from MH i2c: E2 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 62 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 62 00 16 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 99 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [17:55:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 99 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:55:47]wFMCommunicate OK [17:55:47]SAM_PROTO_GetFieldsCounters done [17:55:47]requested_item shift.num is exist - process it [17:55:47]requested_item shift.opened is exist - process it [17:55:47]req_shift_opened [17:55:47]FM_GetShiftState [17:55:47]SAM_PROTO_GetShiftState [17:55:47]wFMCommunicate request_size=4 [17:55:47]MH_SAM_APDU [17:55:47]CAPDU: 80 13 01 00 [17:55:47]Write to MH i2c: E2 08 00 17 71 80 13 01 00 00 00 00 00 05 [17:55:47]Write i2c OK [17:55:47]MH_I2C_Read... [17:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:47]Read from MH i2c: E2 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 0E 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 0E 00 17 71 00 09 00 01 98 11 45 67 00 00 00 00 90 00 66 [17:55:47]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:55:47]wFMCommunicate OK [17:55:47]SAM_PROTO_GetShiftState done [17:55:47]FM_GetShiftState done [17:55:47]req_shift_opened done [17:55:47]requested_item shift.open_date is exist - process it [17:55:47]req_shift_open_date [17:55:47]req_shift_open_date done [17:55:47]produce_requested_data done [17:55:47]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123289,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [17:55:47]process_action_free close_receipt [17:55:47]json_value_free [17:55:47]json_value_free done [17:55:47]process_json_proto returns [17:55:47]Send response to host [17:55:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123289,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [17:55:47]free response buf [17:55:47]execute_script done [17:55:47]execute_script returns [17:55:47]free content buf [17:55:47]Sock 7.Close socket [17:55:47]Sock 7.Thread stoped [17:55:50]OFD Sender: No OFD packet to send [17:55:55]OFD Sender: No OFD packet to send [17:55:58]accept exits with 9 [17:55:58]New connection [17:55:58]New thread 3066723684 created [17:55:58]Thread 3066580324 joined [17:55:58]Waiting for new connection... [17:55:58] Sock 9.Parse request [17:55:58]Sock 9.Check first char [17:55:58]Sock 9.First char is OK [17:55:58]request: POST /json_proto HTTP/1.0 [17:55:58]Method: POST [17:55:58]URL: /json_proto [17:55:58]Method is POST - this is cgi request [17:55:58]url: /json_proto [17:55:58]query_string will be loaded in cgi processing [17:55:58]execute_cgi json_proto POST (null) [17:55:58]execute_cgi path=json_proto method=POST [17:55:58]POST find Content-Length [17:55:58]Host: 172.17.37.4:8080 [17:55:58]Content-Length: 677 [17:55:58]Content-Type: application/json [17:55:58] [17:55:58]POST finish read [17:55:58]Found Content-Length = 677 [17:55:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:58]execute_script... [17:55:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:58]POST & json_proto [17:55:58]process_json_proto [17:55:58]json parsed OK: [17:55:58]protocol is kg_v1.0 [17:55:58]action value=close_receipt [17:55:58]process_action close_receipt [17:55:58]cmd_close_receipt [17:55:58]MH_GetDate [17:55:58]Write to MH i2c: F0 00 00 18 71 78 [17:55:58]Write i2c OK [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: F0 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: F0 09 00 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: F0 09 00 18 71 00 BA 0B 46 67 B8 5A 43 67 AF [17:55:58]GetLastDocTimeStamp 1732643754 [17:55:58]current date 1732643770 [17:55:58]FM_GetShiftState [17:55:58]SAM_PROTO_GetShiftState [17:55:58]wFMCommunicate request_size=4 [17:55:58]MH_SAM_APDU [17:55:58]CAPDU: 80 13 01 00 [17:55:58]Write to MH i2c: E2 08 00 19 71 80 13 01 00 00 00 00 00 07 [17:55:58]Write i2c OK [17:55:58]MH_I2C_Read... [17:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:58]Read from MH i2c: E2 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: E2 0E 00 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: E2 0E 00 19 71 00 09 00 01 98 11 45 67 00 00 00 00 90 00 68 [17:55:58]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:55:58]wFMCommunicate OK [17:55:58]SAM_PROTO_GetShiftState done [17:55:58]FM_GetShiftState done [17:55:58]opened in 1732579736 [17:55:58]opened+sec_in_day 1732666136 [17:55:58]quantity*price = 50010 [17:55:58]sum+1 = 50012 [17:55:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 144 26.11.2024 17:56 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123290 ФПД: 266157942834102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T175610&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123290&fm=266157942834102&tin=02508201610067®Number=0000000000092681&sum=50000 [17:55:59]StoreToDocumentArchive [17:55:59]shift 557 fd 123290 [17:55:59]save to /storage/0557/doc_00123290 [17:55:59]save last doc name /storage/0557/doc_00123290 to /storage/kkm_last_doc_name [17:55:59]save OK [17:55:59]Clear old archive folders... [17:55:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:55:59]tlvbuf is B6F1D610 [17:55:59]SAM_PROTO_ClearQueue [17:55:59]wFMCommunicate request_size=4 [17:55:59]MH_SAM_APDU [17:55:59]CAPDU: 80 09 00 00 [17:55:59]Write to MH i2c: E2 08 00 26 71 80 09 00 00 00 00 00 00 09 [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:59]Read from MH i2c: E2 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 03 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 03 00 26 71 00 90 00 0B [17:55:59]RAPDU: 90 00 [17:55:59]wFMCommunicate OK [17:55:59]SAM_PROTO_ClearQueue done [17:55:59]KKMCreateOFDPacket [17:55:59]OFDProtocolAddRootSTLVToBuf [17:55:59]FM_MakeSignedData [17:55:59]FM_MakeSignedData [17:55:59]SAM_PROTO_SignData [17:55:59]wFMCommunicate request_size=4 [17:55:59]MH_SAM_APDU [17:55:59]CAPDU: 80 0D 01 02 [17:55:59]Write to MH i2c: E2 08 00 27 71 80 0D 01 02 00 00 00 00 11 [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:59]Read from MH i2c: E2 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 03 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 03 00 27 71 00 90 00 0C [17:55:59]RAPDU: 90 00 [17:55:59]wFMCommunicate OK [17:55:59]wFMCommunicate request_size=255 [17:55:59]MH_SAM_APDU [17:55:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 BA 0B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9A E1 01 00 35 04 06 00 F2 [17:55:59]Write to MH i2c: E2 02 01 28 71 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 BA 0B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9A E1 01 00 35 04 06 00 F2 00 00 17 [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:59]Read from MH i2c: E2 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 03 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 03 00 28 71 00 90 00 0D [17:55:59]RAPDU: 90 00 [17:55:59]wFMCommunicate OK [17:55:59]wFMCommunicate request_size=10 [17:55:59]MH_SAM_APDU [17:55:59]CAPDU: 80 0D 02 02 05 11 B9 A3 03 B6 [17:55:59]Write to MH i2c: E2 0D 00 29 71 80 0D 02 02 05 00 11 B9 A3 03 B6 00 00 44 [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:59]Read from MH i2c: E2 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 03 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 03 00 29 71 00 90 00 0E [17:55:59]RAPDU: 90 00 [17:55:59]wFMCommunicate OK [17:55:59]wFMCommunicate request_size=4 [17:55:59]MH_SAM_APDU [17:55:59]CAPDU: 80 0D 03 02 [17:55:59]Write to MH i2c: E2 08 00 2A 71 80 0D 03 02 00 00 00 00 16 [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:59]Read from MH i2c: E2 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 0B 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 0B 00 2A 71 00 1D EA 80 08 30 46 92 C1 90 00 6F [17:55:59]RAPDU: 1D EA 80 08 30 46 92 C1 90 00 [17:55:59]wFMCommunicate OK [17:55:59]SAM_PROTO_SignData done [17:55:59]FM_MakeSignedData done [17:55:59]CreateOFDProtocolMessage [17:55:59]wFMCommunicate request_size=4 [17:55:59]MH_SAM_APDU [17:55:59]CAPDU: 80 11 00 00 [17:55:59]Write to MH i2c: E2 08 00 2B 71 80 11 00 00 00 00 00 00 16 [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:59]Read from MH i2c: E2 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 17 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 17 00 2B 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6D [17:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:55:59]wFMCommunicate OK [17:55:59]CreateOFDProtocolMessage done [17:55:59]OFDSenderStorePacket 123290 [17:55:59]StoreOFDPacket docnum=123290 [17:55:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DC 10 07 01 35 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 BA 0B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9A E1 01 00 35 04 06 00 F2 11 B9 A3 03 B6 1D EA 80 08 30 46 92 C1 [17:55:59]CheckFolder [17:55:59]dirname=/storage/ofd_packets [17:55:59]CheckFolder done [17:55:59]ProducePacketName [17:55:59]name=ofd_packets/00123290 [17:55:59]NVStorageSaveData ofd_packets/00123290 [17:55:59]File name is /storage/ofd_packets/00123290 [17:55:59]Write 301 bytes [17:55:59]NVStorageSaveData done [17:55:59]OFDSenderStorePacket done [17:55:59]KKMCreateOFDPacket done [17:55:59]NVStorageSaveData kkm_last_timestamp [17:55:59]File name is /storage/kkm_last_timestamp [17:55:59]Write 4 bytes [17:55:59]NVStorageSaveData done [17:55:59]ExternCall_PrintAddStr [17:55:59]wPrintStart [17:55:59]Write to MH i2c: 01 00 00 2C 71 9D [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: 01 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: 01 07 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: 01 07 00 2C 71 00 00 00 00 00 FF 0F B2 [17:55:59]RasterBufferAndPrint [17:55:59]line Счет N : (1)718120 [17:55:59]line ИНН: 02508201610067 [17:55:59]line Контрольно-Кассовый Чек [17:55:59]line ПРОДАЖА [17:55:59]line ТРК (МРК, ГНК) : 22 [17:55:59]line Товар: 2710124130 [17:55:59]line Аи-92-К-4 [17:55:59]line 7.420 * 67.40 [17:55:59]line = 500.11 [17:55:59]line НДС 12% НСП 1% [17:55:59]line > о реализуемом товаре [17:55:59]line ОКРУГЛЕНИЕ: -0.11 [17:55:59]line ИТОГО: 500.00 [17:55:59]line Внесено: 500.00 [17:55:59]line СДАЧА: 0.00 [17:55:59]line НСП 1% : 4.43 [17:55:59]line НДС 12% : 53.11 [17:55:59]line Наличными: 500.00 [17:55:59]line Безнал.: 0.00 [17:55:59]line Место: АЗС № 64 "Партнер Нефть" [17:55:59]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:55:59]line СНО: Общий режим [17:55:59]line Чек 144 26.11.2024 17:56 [17:55:59]line Смена: 557 ФФД: 1.0 [17:55:59]line ЗНМ: 0300000033 [17:55:59]line РНМ: 0000000000092681 [17:55:59]line Версия ККМ: 001 [17:55:59]line ФМ: 0000000000874881 [17:55:59]line ФД: 123290 [17:55:59]line ФПД: 266157942834102 [17:55:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T175610&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123290&fm=266157942834102&tin=02508201610067®Number=0000000000092681&sum=50000 [17:56:00]OFD Sender: Processing packet 123290 [packets to send 7, broken 6] [17:56:00]ProducePacketName [17:56:00]name=ofd_packets/00123290 [17:56:00]OFD Sender: To server: pG, [17:56:00]CommunicateWithHost lk.salyk.kg:30040 [17:56:00]ConnectInit lk.salyk.kg [17:56:00]written 0, free lines is 4095 [17:56:00]Connected sock=7 [17:56:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DC 10 07 01 35 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 BA 0B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9A E1 01 00 35 04 06 00 F2 11 B9 A3 03 B6 1D EA 80 08 30 46 92 C1 [17:56:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 FC 7B 47 00 58 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9A E1 01 00 F4 03 04 00 7B B7 45 67 B6 04 01 00 00 AB 0B B2 C7 2C 8F AD FE [17:56:00]CommunicateWithHost err = 0 [17:56:00]CheckOFDResponse [17:56:00]1017 (14) - 77093643461234 [17:56:00]1041 (16) - 0000000000874881 [17:56:00]1040 (4) - 123290 [17:56:00]1012 (4) - 26.11.2024 11:56 [17:56:00]1206 (1) - 0 [17:56:00]OFD Sender: Remove packet 123290 [17:56:00]ProducePacketName [17:56:00]name=ofd_packets/00123290 [17:56:00]NVStorageDeleteData [17:56:00]Write to MH i2c: 01 00 00 57 71 C8 [17:56:00]Write i2c OK [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: 01 [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: 01 07 00 [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: 01 07 00 57 71 00 00 00 00 00 4D 0C 28 [17:56:00]RasterBufferAndPrint [17:56:00]line [17:56:00]line [17:56:00]line [17:56:00]line [17:56:00]line [17:56:00]written 0, free lines is 3153 [17:56:00]MH_Cut [17:56:00]Write to MH i2c: D1 01 00 5E 71 01 A1 [17:56:00]Write i2c OK [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: D1 [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: D1 01 00 [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: D1 01 00 5E 71 00 A0 [17:56:00]Write to MH i2c: 01 00 00 5F 71 D0 [17:56:00]Write i2c OK [17:56:00]MH_I2C_Read... [17:56:01]OFD Sender: No OFD packet to send [17:56:02]*** Cut start [17:56:02]*** Partial cut [17:56:02]*** CUTSNS_PIN = 1 [17:56:02]*** CUTSNS_PIN = 0 [17:56:02]*** Brake cut motor [17:56:02]Read from MH i2c: 01 [17:56:02]MH_I2C_Read... [17:56:02]*** Stop cut motor [17:56:02]*** Cut end [17:56:02]Read from MH i2c: 01 07 00 [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: 01 07 00 5F 71 00 00 00 00 00 FF 0F E5 [17:56:02]process_action close_receipt done [17:56:02]requested_data is exist [17:56:02]produce_requested_data [17:56:02]requested_item fm.sn is exist - process it [17:56:02]wFMCommunicate request_size=4 [17:56:02]MH_SAM_APDU [17:56:02]CAPDU: 80 11 00 00 [17:56:02]Write to MH i2c: E2 08 00 60 71 80 11 00 00 00 00 00 00 4B [17:56:02]Write i2c OK [17:56:02]MH_I2C_Read... [17:56:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:02]Read from MH i2c: E2 [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: E2 17 00 [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: E2 17 00 60 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A2 [17:56:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:56:02]wFMCommunicate OK [17:56:02]requested_item fd.num is exist - process it [17:56:02]SAM_PROTO_GetFieldsCounters [17:56:02]wFMCommunicate request_size=4 [17:56:02]MH_SAM_APDU [17:56:02]CAPDU: 80 13 00 00 [17:56:02]Write to MH i2c: E2 08 00 61 71 80 13 00 00 00 00 00 00 4E [17:56:02]Write i2c OK [17:56:02]MH_I2C_Read... [17:56:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:02]Read from MH i2c: E2 [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: E2 62 00 [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: E2 62 00 61 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9A E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [17:56:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9A E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:02]wFMCommunicate OK [17:56:02]SAM_PROTO_GetFieldsCounters done [17:56:02]requested_item shift.num is exist - process it [17:56:02]requested_item shift.opened is exist - process it [17:56:02]req_shift_opened [17:56:02]FM_GetShiftState [17:56:02]SAM_PROTO_GetShiftState [17:56:02]wFMCommunicate request_size=4 [17:56:02]MH_SAM_APDU [17:56:02]CAPDU: 80 13 01 00 [17:56:02]Write to MH i2c: E2 08 00 62 71 80 13 01 00 00 00 00 00 50 [17:56:02]Write i2c OK [17:56:02]MH_I2C_Read... [17:56:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:02]Read from MH i2c: E2 [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: E2 0E 00 [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: E2 0E 00 62 71 00 09 00 01 98 11 45 67 00 00 00 00 90 00 B1 [17:56:02]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:56:02]wFMCommunicate OK [17:56:02]SAM_PROTO_GetShiftState done [17:56:02]FM_GetShiftState done [17:56:02]req_shift_opened done [17:56:02]requested_item shift.open_date is exist - process it [17:56:02]req_shift_open_date [17:56:02]req_shift_open_date done [17:56:02]produce_requested_data done [17:56:02]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123290,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [17:56:02]process_action_free close_receipt [17:56:02]json_value_free [17:56:02]json_value_free done [17:56:02]process_json_proto returns [17:56:02]Send response to host [17:56:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123290,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [17:56:02]free response buf [17:56:02]execute_script done [17:56:02]execute_script returns [17:56:02]free content buf [17:56:02]Sock 9.Close socket [17:56:02]Sock 9.Thread stoped [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:50]recv_with_timeout no data received [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:31]accept exits with 10 [17:58:31]New connection [17:58:31]New thread 3066580324 created [17:58:31]Thread 3066723684 joined [17:58:31]Waiting for new connection... [17:58:31] Sock 10.Parse request [17:58:31]Sock 10.Check first char [17:58:31]Sock 10.First char is OK [17:58:31]request: POST /json_proto HTTP/1.0 [17:58:31]Method: POST [17:58:31]URL: /json_proto [17:58:31]Method is POST - this is cgi request [17:58:31]url: /json_proto [17:58:31]query_string will be loaded in cgi processing [17:58:31]execute_cgi json_proto POST (null) [17:58:31]execute_cgi path=json_proto method=POST [17:58:31]POST find Content-Length [17:58:31]Host: 172.17.37.4:8080 [17:58:31]Content-Length: 678 [17:58:31]Content-Type: application/json [17:58:31] [17:58:31]POST finish read [17:58:31]Found Content-Length = 678 [17:58:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:31]execute_script... [17:58:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:31]POST & json_proto [17:58:31]process_json_proto [17:58:31]json parsed OK: [17:58:31]protocol is kg_v1.0 [17:58:31]action value=close_receipt [17:58:31]process_action close_receipt [17:58:31]cmd_close_receipt [17:58:31]MH_GetDate [17:58:31]Write to MH i2c: F0 00 00 63 71 C3 [17:58:31]Write i2c OK [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: F0 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: F0 09 00 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: F0 09 00 63 71 00 53 0C 46 67 B8 5A 43 67 94 [17:58:31]GetLastDocTimeStamp 1732643770 [17:58:31]current date 1732643923 [17:58:31]FM_GetShiftState [17:58:31]SAM_PROTO_GetShiftState [17:58:31]wFMCommunicate request_size=4 [17:58:31]MH_SAM_APDU [17:58:31]CAPDU: 80 13 01 00 [17:58:31]Write to MH i2c: E2 08 00 64 71 80 13 01 00 00 00 00 00 52 [17:58:31]Write i2c OK [17:58:31]MH_I2C_Read... [17:58:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:31]Read from MH i2c: E2 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: E2 0E 00 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: E2 0E 00 64 71 00 09 00 01 98 11 45 67 00 00 00 00 90 00 B3 [17:58:31]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:58:31]wFMCommunicate OK [17:58:31]SAM_PROTO_GetShiftState done [17:58:31]FM_GetShiftState done [17:58:31]opened in 1732579736 [17:58:31]opened+sec_in_day 1732666136 [17:58:31]quantity*price = 70028 [17:58:31]sum+1 = 70030 [17:58:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 145 26.11.2024 17:58 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123291 ФПД: 227086877481883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T175843&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123291&fm=227086877481883&tin=02508201610067®Number=0000000000092681&sum=70000 [17:58:32]StoreToDocumentArchive [17:58:32]shift 557 fd 123291 [17:58:32]save to /storage/0557/doc_00123291 [17:58:32]save last doc name /storage/0557/doc_00123291 to /storage/kkm_last_doc_name [17:58:32]save OK [17:58:32]Clear old archive folders... [17:58:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:32]tlvbuf is 0212B5B0 [17:58:32]SAM_PROTO_ClearQueue [17:58:32]wFMCommunicate request_size=4 [17:58:32]MH_SAM_APDU [17:58:32]CAPDU: 80 09 00 00 [17:58:32]Write to MH i2c: E2 08 00 71 71 80 09 00 00 00 00 00 00 54 [17:58:32]Write i2c OK [17:58:32]MH_I2C_Read... [17:58:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:32]Read from MH i2c: E2 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 03 00 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 03 00 71 71 00 90 00 56 [17:58:32]RAPDU: 90 00 [17:58:32]wFMCommunicate OK [17:58:32]SAM_PROTO_ClearQueue done [17:58:32]KKMCreateOFDPacket [17:58:32]OFDProtocolAddRootSTLVToBuf [17:58:32]FM_MakeSignedData [17:58:32]FM_MakeSignedData [17:58:32]SAM_PROTO_SignData [17:58:32]wFMCommunicate request_size=4 [17:58:32]MH_SAM_APDU [17:58:32]CAPDU: 80 0D 01 02 [17:58:32]Write to MH i2c: E2 08 00 72 71 80 0D 01 02 00 00 00 00 5C [17:58:32]Write i2c OK [17:58:32]MH_I2C_Read... [17:58:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:32]Read from MH i2c: E2 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 03 00 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 03 00 72 71 00 90 00 57 [17:58:32]RAPDU: 90 00 [17:58:32]wFMCommunicate OK [17:58:32]wFMCommunicate request_size=255 [17:58:32]MH_SAM_APDU [17:58:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 53 0C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9B E1 01 00 35 04 06 00 CE [17:58:32]Write to MH i2c: E2 02 01 73 71 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 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 53 0C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9B E1 01 00 35 04 06 00 CE 00 00 E8 [17:58:32]Write i2c OK [17:58:32]MH_I2C_Read... [17:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:33]Read from MH i2c: E2 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: E2 03 00 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: E2 03 00 73 71 00 90 00 58 [17:58:33]RAPDU: 90 00 [17:58:33]wFMCommunicate OK [17:58:33]wFMCommunicate request_size=10 [17:58:33]MH_SAM_APDU [17:58:33]CAPDU: 80 0D 02 02 05 88 C8 AA 5B 9B [17:58:33]Write to MH i2c: E2 0D 00 74 71 80 0D 02 02 05 00 88 C8 AA 5B 9B 00 00 59 [17:58:33]Write i2c OK [17:58:33]MH_I2C_Read... [17:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:33]Read from MH i2c: E2 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: E2 03 00 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: E2 03 00 74 71 00 90 00 59 [17:58:33]RAPDU: 90 00 [17:58:33]wFMCommunicate OK [17:58:33]wFMCommunicate request_size=4 [17:58:33]MH_SAM_APDU [17:58:33]CAPDU: 80 0D 03 02 [17:58:33]Write to MH i2c: E2 08 00 75 71 80 0D 03 02 00 00 00 00 61 [17:58:33]Write i2c OK [17:58:33]MH_I2C_Read... [17:58:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:33]Read from MH i2c: E2 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: E2 0B 00 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: E2 0B 00 75 71 00 5D 9E 8D 87 57 DC 6F D2 90 00 E5 [17:58:33]RAPDU: 5D 9E 8D 87 57 DC 6F D2 90 00 [17:58:33]wFMCommunicate OK [17:58:33]SAM_PROTO_SignData done [17:58:33]FM_MakeSignedData done [17:58:33]CreateOFDProtocolMessage [17:58:33]wFMCommunicate request_size=4 [17:58:33]MH_SAM_APDU [17:58:33]CAPDU: 80 11 00 00 [17:58:33]Write to MH i2c: E2 08 00 76 71 80 11 00 00 00 00 00 00 61 [17:58:33]Write i2c OK [17:58:33]MH_I2C_Read... [17:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:33]Read from MH i2c: E2 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: E2 17 00 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: E2 17 00 76 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B8 [17:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:58:33]wFMCommunicate OK [17:58:33]CreateOFDProtocolMessage done [17:58:33]OFDSenderStorePacket 123291 [17:58:33]StoreOFDPacket docnum=123291 [17:58:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 FF CA 07 01 BE D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 53 0C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9B E1 01 00 35 04 06 00 CE 88 C8 AA 5B 9B 5D 9E 8D 87 57 DC 6F D2 [17:58:33]CheckFolder [17:58:33]dirname=/storage/ofd_packets [17:58:33]CheckFolder done [17:58:33]ProducePacketName [17:58:33]name=ofd_packets/00123291 [17:58:33]NVStorageSaveData ofd_packets/00123291 [17:58:33]File name is /storage/ofd_packets/00123291 [17:58:33]Write 301 bytes [17:58:33]NVStorageSaveData done [17:58:33]OFDSenderStorePacket done [17:58:33]KKMCreateOFDPacket done [17:58:33]NVStorageSaveData kkm_last_timestamp [17:58:33]File name is /storage/kkm_last_timestamp [17:58:33]Write 4 bytes [17:58:33]NVStorageSaveData done [17:58:33]ExternCall_PrintAddStr [17:58:33]wPrintStart [17:58:33]Write to MH i2c: 01 00 00 77 71 E8 [17:58:33]Write i2c OK [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: 01 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: 01 07 00 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: 01 07 00 77 71 00 00 00 00 00 FF 0F FD [17:58:33]RasterBufferAndPrint [17:58:33]line Счет N : (1)718121 [17:58:33]line ИНН: 02508201610067 [17:58:33]line Контрольно-Кассовый Чек [17:58:33]line ПРОДАЖА [17:58:33]line ТРК (МРК, ГНК) : 42 [17:58:33]line Товар: 2710124130 [17:58:33]line Аи-92-К-4 [17:58:33]line 10.390 * 67.40 [17:58:33]line = 700.29 [17:58:33]line НДС 12% НСП 1% [17:58:33]line > о реализуемом товаре [17:58:33]line ОКРУГЛЕНИЕ: -0.29 [17:58:33]line ИТОГО: 700.00 [17:58:33]line Внесено: 700.00 [17:58:33]line СДАЧА: 0.00 [17:58:33]line НСП 1% : 6.20 [17:58:33]line НДС 12% : 74.37 [17:58:33]line Наличными: 700.00 [17:58:33]line Безнал.: 0.00 [17:58:33]line Место: АЗС № 64 "Партнер Нефть" [17:58:33]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [17:58:33]line СНО: Общий режим [17:58:33]line Чек 145 26.11.2024 17:58 [17:58:33]line Смена: 557 ФФД: 1.0 [17:58:33]line ЗНМ: 0300000033 [17:58:33]line РНМ: 0000000000092681 [17:58:33]line Версия ККМ: 001 [17:58:33]line ФМ: 0000000000874881 [17:58:33]line ФД: 123291 [17:58:33]line ФПД: 227086877481883 [17:58:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T175843&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123291&fm=227086877481883&tin=02508201610067®Number=0000000000092681&sum=70000 [17:58:33]OFD Sender: Processing packet 123291 [packets to send 7, broken 6] [17:58:33]ProducePacketName [17:58:33]name=ofd_packets/00123291 [17:58:33]OFD Sender: To server: pG, [17:58:33]CommunicateWithHost lk.salyk.kg:30040 [17:58:33]ConnectInit lk.salyk.kg [17:58:33]written 0, free lines is 4095 [17:58:33]Connected sock=9 [17:58:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 FF CA 07 01 BE D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 53 0C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9B E1 01 00 35 04 06 00 CE 88 C8 AA 5B 9B 5D 9E 8D 87 57 DC 6F D2 [17:58:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 44 65 47 00 CC 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9B E1 01 00 F4 03 04 00 15 B8 45 67 B6 04 01 00 00 38 2A AF EB D7 BD BA E3 [17:58:33]CommunicateWithHost err = 0 [17:58:33]CheckOFDResponse [17:58:33]1017 (14) - 77093643461234 [17:58:33]1041 (16) - 0000000000874881 [17:58:33]1040 (4) - 123291 [17:58:33]1012 (4) - 26.11.2024 11:59 [17:58:33]1206 (1) - 0 [17:58:33]OFD Sender: Remove packet 123291 [17:58:33]ProducePacketName [17:58:33]name=ofd_packets/00123291 [17:58:33]NVStorageDeleteData [17:58:33]Write to MH i2c: 01 00 00 A2 71 13 [17:58:33]Write i2c OK [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: 01 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: 01 07 00 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: 01 07 00 A2 71 00 00 00 00 00 48 0C 6E [17:58:33]RasterBufferAndPrint [17:58:33]line [17:58:33]line [17:58:33]line [17:58:33]line [17:58:33]line [17:58:33]written 0, free lines is 3149 [17:58:33]MH_Cut [17:58:33]Write to MH i2c: D1 01 00 A9 71 01 EC [17:58:33]Write i2c OK [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: D1 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: D1 01 00 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: D1 01 00 A9 71 00 EB [17:58:33]Write to MH i2c: 01 00 00 AA 71 1B [17:58:33]Write i2c OK [17:58:33]MH_I2C_Read... [17:58:34]OFD Sender: No OFD packet to send [17:58:35]*** Cut start [17:58:35]*** Partial cut [17:58:35]*** CUTSNS_PIN = 1 [17:58:35]*** CUTSNS_PIN = 0 [17:58:35]*** Brake cut motor [17:58:35]Read from MH i2c: 01 [17:58:35]MH_I2C_Read... [17:58:35]*** Stop cut motor [17:58:35]*** Cut end [17:58:35]Read from MH i2c: 01 07 00 [17:58:35]MH_I2C_Read... [17:58:35]Read from MH i2c: 01 07 00 AA 71 00 00 00 00 00 FF 0F 30 [17:58:35]process_action close_receipt done [17:58:35]requested_data is exist [17:58:35]produce_requested_data [17:58:35]requested_item fm.sn is exist - process it [17:58:35]wFMCommunicate request_size=4 [17:58:35]MH_SAM_APDU [17:58:35]CAPDU: 80 11 00 00 [17:58:35]Write to MH i2c: E2 08 00 AB 71 80 11 00 00 00 00 00 00 96 [17:58:35]Write i2c OK [17:58:35]MH_I2C_Read... [17:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:36]Read from MH i2c: E2 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 17 00 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 17 00 AB 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 ED [17:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [17:58:36]wFMCommunicate OK [17:58:36]requested_item fd.num is exist - process it [17:58:36]SAM_PROTO_GetFieldsCounters [17:58:36]wFMCommunicate request_size=4 [17:58:36]MH_SAM_APDU [17:58:36]CAPDU: 80 13 00 00 [17:58:36]Write to MH i2c: E2 08 00 AC 71 80 13 00 00 00 00 00 00 99 [17:58:36]Write i2c OK [17:58:36]MH_I2C_Read... [17:58:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:36]Read from MH i2c: E2 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 62 00 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 62 00 AC 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9B E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [17:58:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9B E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:36]wFMCommunicate OK [17:58:36]SAM_PROTO_GetFieldsCounters done [17:58:36]requested_item shift.num is exist - process it [17:58:36]requested_item shift.opened is exist - process it [17:58:36]req_shift_opened [17:58:36]FM_GetShiftState [17:58:36]SAM_PROTO_GetShiftState [17:58:36]wFMCommunicate request_size=4 [17:58:36]MH_SAM_APDU [17:58:36]CAPDU: 80 13 01 00 [17:58:36]Write to MH i2c: E2 08 00 AD 71 80 13 01 00 00 00 00 00 9B [17:58:36]Write i2c OK [17:58:36]MH_I2C_Read... [17:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:36]Read from MH i2c: E2 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 0E 00 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 0E 00 AD 71 00 09 00 01 98 11 45 67 00 00 00 00 90 00 FC [17:58:36]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [17:58:36]wFMCommunicate OK [17:58:36]SAM_PROTO_GetShiftState done [17:58:36]FM_GetShiftState done [17:58:36]req_shift_opened done [17:58:36]requested_item shift.open_date is exist - process it [17:58:36]req_shift_open_date [17:58:36]req_shift_open_date done [17:58:36]produce_requested_data done [17:58:36]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123291,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [17:58:36]process_action_free close_receipt [17:58:36]json_value_free [17:58:36]json_value_free done [17:58:36]process_json_proto returns [17:58:36]Send response to host [17:58:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123291,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [17:58:36]free response buf [17:58:36]execute_script done [17:58:36]execute_script returns [17:58:36]free content buf [17:58:36]Sock 10.Close socket [17:58:36]Sock 10.Thread stoped [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:58]accept exits with 7 [18:08:58]New connection [18:08:58]New thread 3066723684 created [18:08:58]Thread 3066580324 joined [18:08:58]Waiting for new connection... [18:08:58] Sock 7.Parse request [18:08:58]Sock 7.Check first char [18:08:58]Sock 7.First char is OK [18:08:58]request: POST /json_proto HTTP/1.0 [18:08:58]Method: POST [18:08:58]URL: /json_proto [18:08:58]Method is POST - this is cgi request [18:08:58]url: /json_proto [18:08:58]query_string will be loaded in cgi processing [18:08:58]execute_cgi json_proto POST (null) [18:08:58]execute_cgi path=json_proto method=POST [18:08:58]POST find Content-Length [18:08:58]Host: 172.17.37.4:8080 [18:08:58]Content-Length: 677 [18:08:58]Content-Type: application/json [18:08:58] [18:08:58]POST finish read [18:08:58]Found Content-Length = 677 [18:08:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:58]execute_script... [18:08:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:58]POST & json_proto [18:08:58]process_json_proto [18:08:58]json parsed OK: [18:08:58]protocol is kg_v1.0 [18:08:58]action value=close_receipt [18:08:58]process_action close_receipt [18:08:58]cmd_close_receipt [18:08:58]MH_GetDate [18:08:58]Write to MH i2c: F0 00 00 AE 71 0E [18:08:58]Write i2c OK [18:08:58]MH_I2C_Read... [18:08:58]Read from MH i2c: F0 [18:08:58]MH_I2C_Read... [18:08:58]Read from MH i2c: F0 09 00 [18:08:58]MH_I2C_Read... [18:08:58]Read from MH i2c: F0 09 00 AE 71 00 C6 0E 46 67 B8 5A 43 67 54 [18:08:58]GetLastDocTimeStamp 1732643923 [18:08:58]current date 1732644550 [18:08:58]FM_GetShiftState [18:08:58]SAM_PROTO_GetShiftState [18:08:58]wFMCommunicate request_size=4 [18:08:58]MH_SAM_APDU [18:08:58]CAPDU: 80 13 01 00 [18:08:58]Write to MH i2c: E2 08 00 AF 71 80 13 01 00 00 00 00 00 9D [18:08:58]Write i2c OK [18:08:58]MH_I2C_Read... [18:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:58]Read from MH i2c: E2 [18:08:58]MH_I2C_Read... [18:08:58]Read from MH i2c: E2 0E 00 [18:08:58]MH_I2C_Read... [18:08:58]Read from MH i2c: E2 0E 00 AF 71 00 09 00 01 98 11 45 67 00 00 00 00 90 00 FE [18:08:58]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:08:58]wFMCommunicate OK [18:08:58]SAM_PROTO_GetShiftState done [18:08:58]FM_GetShiftState done [18:08:58]opened in 1732579736 [18:08:58]opened+sec_in_day 1732666136 [18:08:58]quantity*price = 20017 [18:08:58]sum+1 = 20019 [18:08:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 146 26.11.2024 18:09 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123292 ФПД: 2306113111337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T180910&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123292&fm=2306113111337&tin=02508201610067®Number=0000000000092681&sum=20000 [18:08:59]StoreToDocumentArchive [18:08:59]shift 557 fd 123292 [18:08:59]save to /storage/0557/doc_00123292 [18:08:59]save last doc name /storage/0557/doc_00123292 to /storage/kkm_last_doc_name [18:08:59]save OK [18:08:59]Clear old archive folders... [18:08:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:08:59]tlvbuf is 01F93D90 [18:08:59]SAM_PROTO_ClearQueue [18:08:59]wFMCommunicate request_size=4 [18:08:59]MH_SAM_APDU [18:08:59]CAPDU: 80 09 00 00 [18:08:59]Write to MH i2c: E2 08 00 BC 71 80 09 00 00 00 00 00 00 9F [18:08:59]Write i2c OK [18:08:59]MH_I2C_Read... [18:08:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:59]Read from MH i2c: E2 [18:08:59]MH_I2C_Read... [18:08:59]Read from MH i2c: E2 03 00 [18:08:59]MH_I2C_Read... [18:08:59]Read from MH i2c: E2 03 00 BC 71 00 90 00 A1 [18:08:59]RAPDU: 90 00 [18:08:59]wFMCommunicate OK [18:08:59]SAM_PROTO_ClearQueue done [18:08:59]KKMCreateOFDPacket [18:08:59]OFDProtocolAddRootSTLVToBuf [18:08:59]FM_MakeSignedData [18:08:59]FM_MakeSignedData [18:08:59]SAM_PROTO_SignData [18:08:59]wFMCommunicate request_size=4 [18:08:59]MH_SAM_APDU [18:08:59]CAPDU: 80 0D 01 02 [18:08:59]Write to MH i2c: E2 08 00 BD 71 80 0D 01 02 00 00 00 00 A7 [18:08:59]Write i2c OK [18:08:59]MH_I2C_Read... [18:08:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:59]Read from MH i2c: E2 [18:08:59]MH_I2C_Read... [18:08:59]Read from MH i2c: E2 03 00 [18:08:59]MH_I2C_Read... [18:08:59]Read from MH i2c: E2 03 00 BD 71 00 90 00 A2 [18:08:59]RAPDU: 90 00 [18:08:59]wFMCommunicate OK [18:08:59]wFMCommunicate request_size=255 [18:08:59]MH_SAM_APDU [18:08:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 C6 0E 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9C E1 01 00 35 04 06 00 02 [18:08:59]Write to MH i2c: E2 02 01 BE 71 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 C6 0E 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9C E1 01 00 35 04 06 00 02 00 00 ED [18:08:59]Write i2c OK [18:08:59]MH_I2C_Read... [18:09:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:00]Read from MH i2c: E2 [18:09:00]MH_I2C_Read... [18:09:00]Read from MH i2c: E2 03 00 [18:09:00]MH_I2C_Read... [18:09:00]Read from MH i2c: E2 03 00 BE 71 00 90 00 A3 [18:09:00]RAPDU: 90 00 [18:09:00]wFMCommunicate OK [18:09:00]wFMCommunicate request_size=10 [18:09:00]MH_SAM_APDU [18:09:00]CAPDU: 80 0D 02 02 05 18 EF 0D 85 29 [18:09:00]Write to MH i2c: E2 0D 00 BF 71 80 0D 02 02 05 00 18 EF 0D 85 29 00 00 76 [18:09:00]Write i2c OK [18:09:00]MH_I2C_Read... [18:09:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:00]Read from MH i2c: E2 [18:09:00]MH_I2C_Read... [18:09:00]Read from MH i2c: E2 03 00 [18:09:00]MH_I2C_Read... [18:09:00]Read from MH i2c: E2 03 00 BF 71 00 90 00 A4 [18:09:00]RAPDU: 90 00 [18:09:00]wFMCommunicate OK [18:09:00]wFMCommunicate request_size=4 [18:09:00]MH_SAM_APDU [18:09:00]CAPDU: 80 0D 03 02 [18:09:00]Write to MH i2c: E2 08 00 C0 71 80 0D 03 02 00 00 00 00 AC [18:09:00]Write i2c OK [18:09:00]MH_I2C_Read... [18:09:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:00]Read from MH i2c: E2 [18:09:00]MH_I2C_Read... [18:09:00]Read from MH i2c: E2 0B 00 [18:09:00]MH_I2C_Read... [18:09:00]Read from MH i2c: E2 0B 00 C0 71 00 BA D0 46 B5 3C B0 9E 29 90 00 E5 [18:09:00]RAPDU: BA D0 46 B5 3C B0 9E 29 90 00 [18:09:00]wFMCommunicate OK [18:09:00]SAM_PROTO_SignData done [18:09:00]FM_MakeSignedData done [18:09:00]CreateOFDProtocolMessage [18:09:00]wFMCommunicate request_size=4 [18:09:00]MH_SAM_APDU [18:09:00]CAPDU: 80 11 00 00 [18:09:00]Write to MH i2c: E2 08 00 C1 71 80 11 00 00 00 00 00 00 AC [18:09:00]Write i2c OK [18:09:00]MH_I2C_Read... [18:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:00]Read from MH i2c: E2 [18:09:00]MH_I2C_Read... [18:09:00]Read from MH i2c: E2 17 00 [18:09:00]MH_I2C_Read... [18:09:00]Read from MH i2c: E2 17 00 C1 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 03 [18:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:09:00]wFMCommunicate OK [18:09:00]CreateOFDProtocolMessage done [18:09:00]OFDSenderStorePacket 123292 [18:09:00]StoreOFDPacket docnum=123292 [18:09:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 FC 39 07 01 9B A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 C6 0E 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9C E1 01 00 35 04 06 00 02 18 EF 0D 85 29 BA D0 46 B5 3C B0 9E 29 [18:09:00]CheckFolder [18:09:00]dirname=/storage/ofd_packets [18:09:00]CheckFolder done [18:09:00]ProducePacketName [18:09:00]name=ofd_packets/00123292 [18:09:00]NVStorageSaveData ofd_packets/00123292 [18:09:00]File name is /storage/ofd_packets/00123292 [18:09:00]Write 301 bytes [18:09:00]NVStorageSaveData done [18:09:00]OFDSenderStorePacket done [18:09:00]KKMCreateOFDPacket done [18:09:00]NVStorageSaveData kkm_last_timestamp [18:09:00]File name is /storage/kkm_last_timestamp [18:09:00]Write 4 bytes [18:09:00]NVStorageSaveData done [18:09:00]ExternCall_PrintAddStr [18:09:00]wPrintStart [18:09:00]Write to MH i2c: 01 00 00 C2 71 33 [18:09:00]Write i2c OK [18:09:00]MH_I2C_Read... [18:09:00]Read from MH i2c: 01 [18:09:00]MH_I2C_Read... [18:09:00]Read from MH i2c: 01 07 00 [18:09:00]MH_I2C_Read... [18:09:00]Read from MH i2c: 01 07 00 C2 71 00 00 00 00 00 FF 0F 48 [18:09:00]RasterBufferAndPrint [18:09:00]line Счет N : (1)718122 [18:09:00]line ИНН: 02508201610067 [18:09:00]line Контрольно-Кассовый Чек [18:09:00]line ПРОДАЖА [18:09:00]line ТРК (МРК, ГНК) : 12 [18:09:00]line Товар: 2710124130 [18:09:00]line Аи-92-К-4 [18:09:00]line 2.970 * 67.40 [18:09:00]line = 200.18 [18:09:00]line НДС 12% НСП 1% [18:09:00]line > о реализуемом товаре [18:09:00]line ОКРУГЛЕНИЕ: -0.18 [18:09:00]line ИТОГО: 200.00 [18:09:00]line Внесено: 200.00 [18:09:00]line СДАЧА: 0.00 [18:09:00]line НСП 1% : 1.77 [18:09:00]line НДС 12% : 21.26 [18:09:00]line Наличными: 200.00 [18:09:00]line Безнал.: 0.00 [18:09:00]line Место: АЗС № 64 "Партнер Нефть" [18:09:00]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:09:00]line СНО: Общий режим [18:09:00]line Чек 146 26.11.2024 18:09 [18:09:00]line Смена: 557 ФФД: 1.0 [18:09:00]line ЗНМ: 0300000033 [18:09:00]line РНМ: 0000000000092681 [18:09:00]line Версия ККМ: 001 [18:09:00]line ФМ: 0000000000874881 [18:09:00]line ФД: 123292 [18:09:00]line ФПД: 2306113111337 [18:09:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T180910&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123292&fm=2306113111337&tin=02508201610067®Number=0000000000092681&sum=20000 [18:09:00]written 0, free lines is 4095 [18:09:00]OFD Sender: Processing packet 123292 [packets to send 7, broken 6] [18:09:00]ProducePacketName [18:09:00]name=ofd_packets/00123292 [18:09:00]OFD Sender: To server: pG, [18:09:00]CommunicateWithHost lk.salyk.kg:30040 [18:09:00]ConnectInit lk.salyk.kg [18:09:00]Connected sock=10 [18:09:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 FC 39 07 01 9B A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 C6 0E 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9C E1 01 00 35 04 06 00 02 18 EF 0D 85 29 BA D0 46 B5 3C B0 9E 29 [18:09:00]Write to MH i2c: 01 00 00 ED 71 5E [18:09:00]Write i2c OK [18:09:00]MH_I2C_Read... [18:09:00]Read from MH i2c: 01 [18:09:00]MH_I2C_Read... [18:09:00]Read from MH i2c: 01 07 00 [18:09:00]MH_I2C_Read... [18:09:00]Read from MH i2c: 01 07 00 ED 71 00 00 00 00 00 4D 0C BE [18:09:00]RasterBufferAndPrint [18:09:00]line [18:09:00]line [18:09:00]line [18:09:00]line [18:09:00]line [18:09:00]written 0, free lines is 3152 [18:09:00]MH_Cut [18:09:00]Write to MH i2c: D1 01 00 F4 71 01 37 [18:09:00]Write i2c OK [18:09:00]MH_I2C_Read... [18:09:00]Read from MH i2c: D1 [18:09:00]MH_I2C_Read... [18:09:00]Read from MH i2c: D1 01 00 [18:09:00]MH_I2C_Read... [18:09:00]Read from MH i2c: D1 01 00 F4 71 00 36 [18:09:00]Write to MH i2c: 01 00 00 F5 71 66 [18:09:00]Write i2c OK [18:09:00]MH_I2C_Read... [18:09:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 5C B8 47 00 F9 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9C E1 01 00 F4 03 04 00 88 BA 45 67 B6 04 01 00 00 A2 DD 88 1C 85 5C 7E B8 [18:09:01]CommunicateWithHost err = 0 [18:09:01]CheckOFDResponse [18:09:01]1017 (14) - 77093643461234 [18:09:01]1041 (16) - 0000000000874881 [18:09:01]1040 (4) - 123292 [18:09:01]1012 (4) - 26.11.2024 12:09 [18:09:01]1206 (1) - 0 [18:09:01]OFD Sender: Remove packet 123292 [18:09:01]ProducePacketName [18:09:01]name=ofd_packets/00123292 [18:09:01]NVStorageDeleteData [18:09:01]OFD Sender: No OFD packet to send [18:09:02]*** Cut start [18:09:02]*** Partial cut [18:09:02]*** CUTSNS_PIN = 1 [18:09:02]*** CUTSNS_PIN = 0 [18:09:02]*** Brake cut motor [18:09:02]Read from MH i2c: 01 [18:09:02]MH_I2C_Read... [18:09:02]*** Stop cut motor [18:09:02]*** Cut end [18:09:02]Read from MH i2c: 01 07 00 [18:09:02]MH_I2C_Read... [18:09:02]Read from MH i2c: 01 07 00 F5 71 00 00 00 00 00 FF 0F 7B [18:09:02]process_action close_receipt done [18:09:02]requested_data is exist [18:09:02]produce_requested_data [18:09:02]requested_item fm.sn is exist - process it [18:09:02]wFMCommunicate request_size=4 [18:09:02]MH_SAM_APDU [18:09:02]CAPDU: 80 11 00 00 [18:09:02]Write to MH i2c: E2 08 00 F6 71 80 11 00 00 00 00 00 00 E1 [18:09:02]Write i2c OK [18:09:02]MH_I2C_Read... [18:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:02]Read from MH i2c: E2 [18:09:02]MH_I2C_Read... [18:09:02]Read from MH i2c: E2 17 00 [18:09:02]MH_I2C_Read... [18:09:02]Read from MH i2c: E2 17 00 F6 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 38 [18:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:09:02]wFMCommunicate OK [18:09:02]requested_item fd.num is exist - process it [18:09:02]SAM_PROTO_GetFieldsCounters [18:09:02]wFMCommunicate request_size=4 [18:09:02]MH_SAM_APDU [18:09:02]CAPDU: 80 13 00 00 [18:09:02]Write to MH i2c: E2 08 00 F7 71 80 13 00 00 00 00 00 00 E4 [18:09:02]Write i2c OK [18:09:02]MH_I2C_Read... [18:09:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:03]Read from MH i2c: E2 [18:09:03]MH_I2C_Read... [18:09:03]Read from MH i2c: E2 62 00 [18:09:03]MH_I2C_Read... [18:09:03]Read from MH i2c: E2 62 00 F7 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9C E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [18:09:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9C E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:09:03]wFMCommunicate OK [18:09:03]SAM_PROTO_GetFieldsCounters done [18:09:03]requested_item shift.num is exist - process it [18:09:03]requested_item shift.opened is exist - process it [18:09:03]req_shift_opened [18:09:03]FM_GetShiftState [18:09:03]SAM_PROTO_GetShiftState [18:09:03]wFMCommunicate request_size=4 [18:09:03]MH_SAM_APDU [18:09:03]CAPDU: 80 13 01 00 [18:09:03]Write to MH i2c: E2 08 00 F8 71 80 13 01 00 00 00 00 00 E6 [18:09:03]Write i2c OK [18:09:03]MH_I2C_Read... [18:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:03]Read from MH i2c: E2 [18:09:03]MH_I2C_Read... [18:09:03]Read from MH i2c: E2 0E 00 [18:09:03]MH_I2C_Read... [18:09:03]Read from MH i2c: E2 0E 00 F8 71 00 09 00 01 98 11 45 67 00 00 00 00 90 00 47 [18:09:03]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:09:03]wFMCommunicate OK [18:09:03]SAM_PROTO_GetShiftState done [18:09:03]FM_GetShiftState done [18:09:03]req_shift_opened done [18:09:03]requested_item shift.open_date is exist - process it [18:09:03]req_shift_open_date [18:09:03]req_shift_open_date done [18:09:03]produce_requested_data done [18:09:03]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123292,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [18:09:03]process_action_free close_receipt [18:09:03]json_value_free [18:09:03]json_value_free done [18:09:03]process_json_proto returns [18:09:03]Send response to host [18:09:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123292,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [18:09:03]free response buf [18:09:03]execute_script done [18:09:03]execute_script returns [18:09:03]free content buf [18:09:03]Sock 7.Close socket [18:09:03]Sock 7.Thread stoped [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:11]OFD Sender: No OFD packet to send [18:10:16]OFD Sender: No OFD packet to send [18:10:21]OFD Sender: No OFD packet to send [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:26]OFD Sender: No OFD packet to send [18:12:31]OFD Sender: No OFD packet to send [18:12:36]OFD Sender: No OFD packet to send [18:12:41]OFD Sender: No OFD packet to send [18:12:46]OFD Sender: No OFD packet to send [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:13:01]OFD Sender: No OFD packet to send [18:13:06]OFD Sender: No OFD packet to send [18:13:11]OFD Sender: No OFD packet to send [18:13:16]OFD Sender: No OFD packet to send [18:13:21]OFD Sender: No OFD packet to send [18:13:26]OFD Sender: No OFD packet to send [18:13:31]OFD Sender: No OFD packet to send [18:13:36]OFD Sender: No OFD packet to send [18:13:41]OFD Sender: No OFD packet to send [18:13:46]OFD Sender: No OFD packet to send [18:13:51]OFD Sender: No OFD packet to send [18:13:56]OFD Sender: No OFD packet to send [18:13:59]accept exits with 9 [18:13:59]New connection [18:13:59]New thread 3066580324 created [18:13:59]Thread 3066723684 joined [18:13:59]Waiting for new connection... [18:13:59] Sock 9.Parse request [18:13:59]Sock 9.Check first char [18:13:59]Sock 9.First char is OK [18:13:59]request: POST /json_proto HTTP/1.0 [18:13:59]Method: POST [18:13:59]URL: /json_proto [18:13:59]Method is POST - this is cgi request [18:13:59]url: /json_proto [18:13:59]query_string will be loaded in cgi processing [18:13:59]execute_cgi json_proto POST (null) [18:13:59]execute_cgi path=json_proto method=POST [18:13:59]POST find Content-Length [18:13:59]Host: 172.17.37.4:8080 [18:13:59]Content-Length: 800 [18:13:59]Content-Type: application/json [18:13:59] [18:13:59]POST finish read [18:13:59]Found Content-Length = 800 [18:13:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "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" : 200.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:59]execute_script... [18:13:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "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" : 200.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:59]POST & json_proto [18:13:59]process_json_proto [18:13:59]json parsed OK: [18:13:59]protocol is kg_v1.0 [18:13:59]action value=close_receipt [18:13:59]process_action close_receipt [18:13:59]cmd_close_receipt [18:13:59]MH_GetDate [18:13:59]Write to MH i2c: F0 00 00 F9 71 59 [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: F0 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: F0 09 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: F0 09 00 F9 71 00 F3 0F 46 67 B8 5A 43 67 CD [18:13:59]GetLastDocTimeStamp 1732644550 [18:13:59]current date 1732644851 [18:13:59]FM_GetShiftState [18:13:59]SAM_PROTO_GetShiftState [18:13:59]wFMCommunicate request_size=4 [18:13:59]MH_SAM_APDU [18:13:59]CAPDU: 80 13 01 00 [18:13:59]Write to MH i2c: E2 08 00 FA 71 80 13 01 00 00 00 00 00 E8 [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:59]Read from MH i2c: E2 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 0E 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 0E 00 FA 71 00 09 00 01 98 11 45 67 00 00 00 00 90 00 49 [18:13:59]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:13:59]wFMCommunicate OK [18:13:59]SAM_PROTO_GetShiftState done [18:13:59]FM_GetShiftState done [18:13:59]opened in 1732579736 [18:13:59]opened+sec_in_day 1732666136 [18:13:59]quantity*price = 20017 [18:13:59]sum+1 = 20019 [18:13:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.18 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 0.00 Безнал.: 200.18 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 147 26.11.2024 18:14 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123293 ФПД: 69163165048499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T181411&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123293&fm=69163165048499&tin=02508201610067®Number=0000000000092681&sum=20018 [18:14:00]StoreToDocumentArchive [18:14:00]shift 557 fd 123293 [18:14:00]save to /storage/0557/doc_00123293 [18:14:00]save last doc name /storage/0557/doc_00123293 to /storage/kkm_last_doc_name [18:14:00]save OK [18:14:00]Clear old archive folders... [18:14:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:00]tlvbuf is 01FBE6A0 [18:14:00]SAM_PROTO_ClearQueue [18:14:00]wFMCommunicate request_size=4 [18:14:00]MH_SAM_APDU [18:14:00]CAPDU: 80 09 00 00 [18:14:00]Write to MH i2c: E2 08 00 07 72 80 09 00 00 00 00 00 00 EB [18:14:00]Write i2c OK [18:14:00]MH_I2C_Read... [18:14:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:00]Read from MH i2c: E2 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 03 00 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 03 00 07 72 00 90 00 ED [18:14:00]RAPDU: 90 00 [18:14:00]wFMCommunicate OK [18:14:00]SAM_PROTO_ClearQueue done [18:14:00]KKMCreateOFDPacket [18:14:00]OFDProtocolAddRootSTLVToBuf [18:14:00]FM_MakeSignedData [18:14:00]FM_MakeSignedData [18:14:00]SAM_PROTO_SignData [18:14:00]wFMCommunicate request_size=4 [18:14:00]MH_SAM_APDU [18:14:00]CAPDU: 80 0D 01 02 [18:14:00]Write to MH i2c: E2 08 00 08 72 80 0D 01 02 00 00 00 00 F3 [18:14:00]Write i2c OK [18:14:00]MH_I2C_Read... [18:14:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:00]Read from MH i2c: E2 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 03 00 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 03 00 08 72 00 90 00 EE [18:14:00]RAPDU: 90 00 [18:14:00]wFMCommunicate OK [18:14:00]wFMCommunicate request_size=255 [18:14:00]MH_SAM_APDU [18:14:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 F3 0F 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9D E1 01 00 35 04 06 00 3E [18:14:00]Write to MH i2c: E2 02 01 09 72 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 F3 0F 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9D E1 01 00 35 04 06 00 3E 00 00 C9 [18:14:00]Write i2c OK [18:14:00]MH_I2C_Read... [18:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:00]Read from MH i2c: E2 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 03 00 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 03 00 09 72 00 90 00 EF [18:14:00]RAPDU: 90 00 [18:14:00]wFMCommunicate OK [18:14:00]wFMCommunicate request_size=10 [18:14:00]MH_SAM_APDU [18:14:00]CAPDU: 80 0D 02 02 05 E7 4D E2 5E B3 [18:14:00]Write to MH i2c: E2 0D 00 0A 72 80 0D 02 02 05 00 E7 4D E2 5E B3 00 00 27 [18:14:00]Write i2c OK [18:14:00]MH_I2C_Read... [18:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:00]Read from MH i2c: E2 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 03 00 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 03 00 0A 72 00 90 00 F0 [18:14:00]RAPDU: 90 00 [18:14:00]wFMCommunicate OK [18:14:00]wFMCommunicate request_size=4 [18:14:00]MH_SAM_APDU [18:14:00]CAPDU: 80 0D 03 02 [18:14:00]Write to MH i2c: E2 08 00 0B 72 80 0D 03 02 00 00 00 00 F8 [18:14:00]Write i2c OK [18:14:00]MH_I2C_Read... [18:14:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:00]Read from MH i2c: E2 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 0B 00 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 0B 00 0B 72 00 64 CC CC C0 66 54 4D AD 90 00 69 [18:14:00]RAPDU: 64 CC CC C0 66 54 4D AD 90 00 [18:14:00]wFMCommunicate OK [18:14:00]SAM_PROTO_SignData done [18:14:00]FM_MakeSignedData done [18:14:00]CreateOFDProtocolMessage [18:14:00]wFMCommunicate request_size=4 [18:14:00]MH_SAM_APDU [18:14:00]CAPDU: 80 11 00 00 [18:14:00]Write to MH i2c: E2 08 00 0C 72 80 11 00 00 00 00 00 00 F8 [18:14:00]Write i2c OK [18:14:00]MH_I2C_Read... [18:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:00]Read from MH i2c: E2 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 17 00 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 17 00 0C 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 4F [18:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:14:00]wFMCommunicate OK [18:14:00]CreateOFDProtocolMessage done [18:14:00]OFDSenderStorePacket 123293 [18:14:00]StoreOFDPacket docnum=123293 [18:14:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 94 B0 07 01 D5 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 F3 0F 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9D E1 01 00 35 04 06 00 3E E7 4D E2 5E B3 64 CC CC C0 66 54 4D AD [18:14:00]CheckFolder [18:14:00]dirname=/storage/ofd_packets [18:14:00]CheckFolder done [18:14:00]ProducePacketName [18:14:00]name=ofd_packets/00123293 [18:14:00]NVStorageSaveData ofd_packets/00123293 [18:14:00]File name is /storage/ofd_packets/00123293 [18:14:00]Write 301 bytes [18:14:00]NVStorageSaveData done [18:14:00]OFDSenderStorePacket done [18:14:00]KKMCreateOFDPacket done [18:14:00]NVStorageSaveData kkm_last_timestamp [18:14:00]File name is /storage/kkm_last_timestamp [18:14:00]Write 4 bytes [18:14:00]NVStorageSaveData done [18:14:00]ExternCall_PrintAddStr [18:14:00]wPrintStart [18:14:00]Write to MH i2c: 01 00 00 0D 72 7F [18:14:00]Write i2c OK [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: 01 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: 01 07 00 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: 01 07 00 0D 72 00 00 00 00 00 FF 0F 94 [18:14:00]RasterBufferAndPrint [18:14:00]line Счет N : (1)718123 [18:14:00]line ИНН: 02508201610067 [18:14:00]line Контрольно-Кассовый Чек [18:14:00]line ПРОДАЖА [18:14:00]line ТРК (МРК, ГНК) : 12 [18:14:00]line Товар: 2710124130 [18:14:00]line Аи-92-К-4 [18:14:00]line 2.970 * 67.40 [18:14:00]line = 200.18 [18:14:00]line НДС 12% НСП 1% [18:14:00]line > о реализуемом товаре [18:14:00]line ИТОГО: 200.18 [18:14:00]line НСП 1% : 1.77 [18:14:00]line НДС 12% : 21.26 [18:14:00]line Наличными: 0.00 [18:14:00]line Безнал.: 200.18 [18:14:00]line Место: АЗС № 64 "Партнер Нефть" [18:14:00]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:14:00]line СНО: Общий режим [18:14:00]line Чек 147 26.11.2024 18:14 [18:14:00]line Смена: 557 ФФД: 1.0 [18:14:00]line ЗНМ: 0300000033 [18:14:00]line РНМ: 0000000000092681 [18:14:00]line Версия ККМ: 001 [18:14:00]line Платежная система: O! деньги [18:14:00]line ФМ: 0000000000874881 [18:14:00]line ФД: 123293 [18:14:00]line ФПД: 69163165048499 [18:14:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T181411&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123293&fm=69163165048499&tin=02508201610067®Number=0000000000092681&sum=20018 [18:14:01]written 0, free lines is 4095 [18:14:01]OFD Sender: Processing packet 123293 [packets to send 7, broken 6] [18:14:01]ProducePacketName [18:14:01]name=ofd_packets/00123293 [18:14:01]OFD Sender: To server: pG, [18:14:01]CommunicateWithHost lk.salyk.kg:30040 [18:14:01]ConnectInit lk.salyk.kg [18:14:01]Connected sock=11 [18:14:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 94 B0 07 01 D5 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 F3 0F 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9D E1 01 00 35 04 06 00 3E E7 4D E2 5E B3 64 CC CC C0 66 54 4D AD [18:14:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 58 F7 47 00 09 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9D E1 01 00 F4 03 04 00 B4 BB 45 67 B6 04 01 00 00 7B BC D9 CD 91 14 8F DF [18:14:01]CommunicateWithHost err = 0 [18:14:01]CheckOFDResponse [18:14:01]1017 (14) - 77093643461234 [18:14:01]1041 (16) - 0000000000874881 [18:14:01]1040 (4) - 123293 [18:14:01]1012 (4) - 26.11.2024 12:14 [18:14:01]1206 (1) - 0 [18:14:01]OFD Sender: Remove packet 123293 [18:14:01]ProducePacketName [18:14:01]name=ofd_packets/00123293 [18:14:01]NVStorageDeleteData [18:14:01]Write to MH i2c: 01 00 00 37 72 A9 [18:14:01]Write i2c OK [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: 01 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: 01 07 00 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: 01 07 00 37 72 00 00 00 00 00 5C 0C 18 [18:14:01]RasterBufferAndPrint [18:14:01]line [18:14:01]line [18:14:01]line [18:14:01]line [18:14:01]line [18:14:01]written 0, free lines is 3168 [18:14:01]MH_Cut [18:14:01]Write to MH i2c: D1 01 00 3E 72 01 82 [18:14:01]Write i2c OK [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: D1 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: D1 01 00 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: D1 01 00 3E 72 00 81 [18:14:01]Write to MH i2c: 01 00 00 3F 72 B1 [18:14:01]Write i2c OK [18:14:01]MH_I2C_Read... [18:14:02]OFD Sender: No OFD packet to send [18:14:03]*** Cut start [18:14:03]*** Partial cut [18:14:03]*** CUTSNS_PIN = 1 [18:14:03]*** CUTSNS_PIN = 0 [18:14:03]*** Brake cut motor [18:14:03]Read from MH i2c: 01 [18:14:03]MH_I2C_Read... [18:14:03]*** Stop cut motor [18:14:03]*** Cut end [18:14:03]Read from MH i2c: 01 07 00 [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: 01 07 00 3F 72 00 00 00 00 00 FF 0F C6 [18:14:03]process_action close_receipt done [18:14:03]requested_data is exist [18:14:03]produce_requested_data [18:14:03]requested_item fm.sn is exist - process it [18:14:03]wFMCommunicate request_size=4 [18:14:03]MH_SAM_APDU [18:14:03]CAPDU: 80 11 00 00 [18:14:03]Write to MH i2c: E2 08 00 40 72 80 11 00 00 00 00 00 00 2C [18:14:03]Write i2c OK [18:14:03]MH_I2C_Read... [18:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:03]Read from MH i2c: E2 [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: E2 17 00 [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: E2 17 00 40 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 83 [18:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:14:03]wFMCommunicate OK [18:14:03]requested_item fd.num is exist - process it [18:14:03]SAM_PROTO_GetFieldsCounters [18:14:03]wFMCommunicate request_size=4 [18:14:03]MH_SAM_APDU [18:14:03]CAPDU: 80 13 00 00 [18:14:03]Write to MH i2c: E2 08 00 41 72 80 13 00 00 00 00 00 00 2F [18:14:03]Write i2c OK [18:14:03]MH_I2C_Read... [18:14:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:03]Read from MH i2c: E2 [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: E2 62 00 [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: E2 62 00 41 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9D E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [18:14:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9D E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:14:03]wFMCommunicate OK [18:14:03]SAM_PROTO_GetFieldsCounters done [18:14:03]requested_item shift.num is exist - process it [18:14:03]requested_item shift.opened is exist - process it [18:14:03]req_shift_opened [18:14:03]FM_GetShiftState [18:14:03]SAM_PROTO_GetShiftState [18:14:03]wFMCommunicate request_size=4 [18:14:03]MH_SAM_APDU [18:14:03]CAPDU: 80 13 01 00 [18:14:03]Write to MH i2c: E2 08 00 42 72 80 13 01 00 00 00 00 00 31 [18:14:03]Write i2c OK [18:14:03]MH_I2C_Read... [18:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:03]Read from MH i2c: E2 [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: E2 0E 00 [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: E2 0E 00 42 72 00 09 00 01 98 11 45 67 00 00 00 00 90 00 92 [18:14:03]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:14:03]wFMCommunicate OK [18:14:03]SAM_PROTO_GetShiftState done [18:14:03]FM_GetShiftState done [18:14:03]req_shift_opened done [18:14:03]requested_item shift.open_date is exist - process it [18:14:03]req_shift_open_date [18:14:03]req_shift_open_date done [18:14:03]produce_requested_data done [18:14:03]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123293,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [18:14:03]process_action_free close_receipt [18:14:03]json_value_free [18:14:03]json_value_free done [18:14:03]process_json_proto returns [18:14:03]Send response to host [18:14:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123293,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [18:14:03]free response buf [18:14:03]execute_script done [18:14:03]execute_script returns [18:14:03]free content buf [18:14:03]Sock 9.Close socket [18:14:03]Sock 9.Thread stoped [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:22]OFD Sender: No OFD packet to send [18:15:27]OFD Sender: No OFD packet to send [18:15:32]OFD Sender: No OFD packet to send [18:15:37]OFD Sender: No OFD packet to send [18:15:42]OFD Sender: No OFD packet to send [18:15:47]OFD Sender: No OFD packet to send [18:15:52]OFD Sender: No OFD packet to send [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:22]OFD Sender: No OFD packet to send [18:16:27]OFD Sender: No OFD packet to send [18:16:32]OFD Sender: No OFD packet to send [18:16:37]OFD Sender: No OFD packet to send [18:16:42]OFD Sender: No OFD packet to send [18:16:47]OFD Sender: No OFD packet to send [18:16:52]OFD Sender: No OFD packet to send [18:16:57]OFD Sender: No OFD packet to send [18:17:02]OFD Sender: No OFD packet to send [18:17:07]OFD Sender: No OFD packet to send [18:17:12]OFD Sender: No OFD packet to send [18:17:17]OFD Sender: No OFD packet to send [18:17:22]OFD Sender: No OFD packet to send [18:17:27]OFD Sender: No OFD packet to send [18:17:32]OFD Sender: No OFD packet to send [18:17:37]OFD Sender: No OFD packet to send [18:17:42]OFD Sender: No OFD packet to send [18:17:47]OFD Sender: No OFD packet to send [18:17:52]OFD Sender: No OFD packet to send [18:17:57]OFD Sender: No OFD packet to send [18:18:02]OFD Sender: No OFD packet to send [18:18:07]OFD Sender: No OFD packet to send [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:32]OFD Sender: No OFD packet to send [18:18:37]OFD Sender: No OFD packet to send [18:18:42]OFD Sender: No OFD packet to send [18:18:47]OFD Sender: No OFD packet to send [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:18:57]accept exits with 7 [18:18:57]New connection [18:18:57]New thread 3066723684 created [18:18:57]Thread 3066580324 joined [18:18:57]Waiting for new connection... [18:18:57] Sock 7.Parse request [18:18:57]Sock 7.Check first char [18:18:57]Sock 7.First char is OK [18:18:57]request: POST /json_proto HTTP/1.0 [18:18:57]Method: POST [18:18:57]URL: /json_proto [18:18:57]Method is POST - this is cgi request [18:18:57]url: /json_proto [18:18:57]query_string will be loaded in cgi processing [18:18:57]execute_cgi json_proto POST (null) [18:18:57]execute_cgi path=json_proto method=POST [18:18:57]POST find Content-Length [18:18:57]Host: 172.17.37.4:8080 [18:18:57]Content-Length: 677 [18:18:57]Content-Type: application/json [18:18:57] [18:18:57]POST finish read [18:18:57]Found Content-Length = 677 [18:18:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:57]execute_script... [18:18:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:57]POST & json_proto [18:18:57]process_json_proto [18:18:57]json parsed OK: [18:18:57]protocol is kg_v1.0 [18:18:57]action value=close_receipt [18:18:57]process_action close_receipt [18:18:57]cmd_close_receipt [18:18:57]MH_GetDate [18:18:57]Write to MH i2c: F0 00 00 43 72 A4 [18:18:57]Write i2c OK [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: F0 [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: F0 09 00 [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: F0 09 00 43 72 00 1D 11 46 67 B8 5A 43 67 44 [18:18:57]GetLastDocTimeStamp 1732644851 [18:18:57]current date 1732645149 [18:18:57]FM_GetShiftState [18:18:57]SAM_PROTO_GetShiftState [18:18:57]wFMCommunicate request_size=4 [18:18:57]MH_SAM_APDU [18:18:57]CAPDU: 80 13 01 00 [18:18:57]Write to MH i2c: E2 08 00 44 72 80 13 01 00 00 00 00 00 33 [18:18:57]Write i2c OK [18:18:57]MH_I2C_Read... [18:18:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:57]Read from MH i2c: E2 [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: E2 0E 00 [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: E2 0E 00 44 72 00 09 00 01 98 11 45 67 00 00 00 00 90 00 94 [18:18:57]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:18:57]wFMCommunicate OK [18:18:57]SAM_PROTO_GetShiftState done [18:18:57]FM_GetShiftState done [18:18:57]opened in 1732579736 [18:18:57]opened+sec_in_day 1732666136 [18:18:57]quantity*price = 50010 [18:18:57]sum+1 = 50012 [18:18:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 148 26.11.2024 18:19 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123294 ФПД: 248427343902553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T181909&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123294&fm=248427343902553&tin=02508201610067®Number=0000000000092681&sum=50000 [18:18:58]StoreToDocumentArchive [18:18:58]shift 557 fd 123294 [18:18:58]save to /storage/0557/doc_00123294 [18:18:58]save last doc name /storage/0557/doc_00123294 to /storage/kkm_last_doc_name [18:18:58]save OK [18:18:58]Clear old archive folders... [18:18:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:58]tlvbuf is B6EA2C30 [18:18:58]SAM_PROTO_ClearQueue [18:18:58]wFMCommunicate request_size=4 [18:18:58]MH_SAM_APDU [18:18:58]CAPDU: 80 09 00 00 [18:18:58]Write to MH i2c: E2 08 00 51 72 80 09 00 00 00 00 00 00 35 [18:18:58]Write i2c OK [18:18:58]MH_I2C_Read... [18:18:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:58]Read from MH i2c: E2 [18:18:58]MH_I2C_Read... [18:18:58]Read from MH i2c: E2 03 00 [18:18:58]MH_I2C_Read... [18:18:58]Read from MH i2c: E2 03 00 51 72 00 90 00 37 [18:18:58]RAPDU: 90 00 [18:18:58]wFMCommunicate OK [18:18:58]SAM_PROTO_ClearQueue done [18:18:58]KKMCreateOFDPacket [18:18:58]OFDProtocolAddRootSTLVToBuf [18:18:58]FM_MakeSignedData [18:18:58]FM_MakeSignedData [18:18:58]SAM_PROTO_SignData [18:18:58]wFMCommunicate request_size=4 [18:18:58]MH_SAM_APDU [18:18:58]CAPDU: 80 0D 01 02 [18:18:58]Write to MH i2c: E2 08 00 52 72 80 0D 01 02 00 00 00 00 3D [18:18:58]Write i2c OK [18:18:58]MH_I2C_Read... [18:18:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:58]Read from MH i2c: E2 [18:18:58]MH_I2C_Read... [18:18:58]Read from MH i2c: E2 03 00 [18:18:58]MH_I2C_Read... [18:18:58]Read from MH i2c: E2 03 00 52 72 00 90 00 38 [18:18:58]RAPDU: 90 00 [18:18:58]wFMCommunicate OK [18:18:58]wFMCommunicate request_size=255 [18:18:58]MH_SAM_APDU [18:18:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 1D 11 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9E E1 01 00 35 04 06 00 E1 [18:18:58]Write to MH i2c: E2 02 01 53 72 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 1D 11 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9E E1 01 00 35 04 06 00 E1 00 00 A3 [18:18:58]Write i2c OK [18:18:58]MH_I2C_Read... [18:18:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:59]Read from MH i2c: E2 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 03 00 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 03 00 53 72 00 90 00 39 [18:18:59]RAPDU: 90 00 [18:18:59]wFMCommunicate OK [18:18:59]wFMCommunicate request_size=10 [18:18:59]MH_SAM_APDU [18:18:59]CAPDU: 80 0D 02 02 05 F1 7F 95 F7 59 [18:18:59]Write to MH i2c: E2 0D 00 54 72 80 0D 02 02 05 00 F1 7F 95 F7 59 00 00 9F [18:18:59]Write i2c OK [18:18:59]MH_I2C_Read... [18:18:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:59]Read from MH i2c: E2 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 03 00 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 03 00 54 72 00 90 00 3A [18:18:59]RAPDU: 90 00 [18:18:59]wFMCommunicate OK [18:18:59]wFMCommunicate request_size=4 [18:18:59]MH_SAM_APDU [18:18:59]CAPDU: 80 0D 03 02 [18:18:59]Write to MH i2c: E2 08 00 55 72 80 0D 03 02 00 00 00 00 42 [18:18:59]Write i2c OK [18:18:59]MH_I2C_Read... [18:18:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:59]Read from MH i2c: E2 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 0B 00 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 0B 00 55 72 00 F0 9D FF 69 F8 3D BC 3C 90 00 65 [18:18:59]RAPDU: F0 9D FF 69 F8 3D BC 3C 90 00 [18:18:59]wFMCommunicate OK [18:18:59]SAM_PROTO_SignData done [18:18:59]FM_MakeSignedData done [18:18:59]CreateOFDProtocolMessage [18:18:59]wFMCommunicate request_size=4 [18:18:59]MH_SAM_APDU [18:18:59]CAPDU: 80 11 00 00 [18:18:59]Write to MH i2c: E2 08 00 56 72 80 11 00 00 00 00 00 00 42 [18:18:59]Write i2c OK [18:18:59]MH_I2C_Read... [18:18:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:59]Read from MH i2c: E2 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 17 00 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 17 00 56 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 99 [18:18:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:18:59]wFMCommunicate OK [18:18:59]CreateOFDProtocolMessage done [18:18:59]OFDSenderStorePacket 123294 [18:18:59]StoreOFDPacket docnum=123294 [18:18:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 0F FA 07 01 58 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 1D 11 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9E E1 01 00 35 04 06 00 E1 F1 7F 95 F7 59 F0 9D FF 69 F8 3D BC 3C [18:18:59]CheckFolder [18:18:59]dirname=/storage/ofd_packets [18:18:59]CheckFolder done [18:18:59]ProducePacketName [18:18:59]name=ofd_packets/00123294 [18:18:59]NVStorageSaveData ofd_packets/00123294 [18:18:59]File name is /storage/ofd_packets/00123294 [18:18:59]Write 301 bytes [18:18:59]NVStorageSaveData done [18:18:59]OFDSenderStorePacket done [18:18:59]KKMCreateOFDPacket done [18:18:59]NVStorageSaveData kkm_last_timestamp [18:18:59]File name is /storage/kkm_last_timestamp [18:18:59]Write 4 bytes [18:18:59]NVStorageSaveData done [18:18:59]ExternCall_PrintAddStr [18:18:59]wPrintStart [18:18:59]Write to MH i2c: 01 00 00 57 72 C9 [18:18:59]Write i2c OK [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: 01 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: 01 07 00 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: 01 07 00 57 72 00 00 00 00 00 FF 0F DE [18:18:59]RasterBufferAndPrint [18:18:59]line Счет N : (1)718124 [18:18:59]line ИНН: 02508201610067 [18:18:59]line Контрольно-Кассовый Чек [18:18:59]line ПРОДАЖА [18:18:59]line ТРК (МРК, ГНК) : 12 [18:18:59]line Товар: 2710124130 [18:18:59]line Аи-92-К-4 [18:18:59]line 7.420 * 67.40 [18:18:59]line = 500.11 [18:18:59]line НДС 12% НСП 1% [18:18:59]line > о реализуемом товаре [18:18:59]line ОКРУГЛЕНИЕ: -0.11 [18:18:59]line ИТОГО: 500.00 [18:18:59]line Внесено: 500.00 [18:18:59]line СДАЧА: 0.00 [18:18:59]line НСП 1% : 4.43 [18:18:59]line НДС 12% : 53.11 [18:18:59]line Наличными: 500.00 [18:18:59]line Безнал.: 0.00 [18:18:59]line Место: АЗС № 64 "Партнер Нефть" [18:18:59]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:18:59]line СНО: Общий режим [18:18:59]line Чек 148 26.11.2024 18:19 [18:18:59]line Смена: 557 ФФД: 1.0 [18:18:59]line ЗНМ: 0300000033 [18:18:59]line РНМ: 0000000000092681 [18:18:59]line Версия ККМ: 001 [18:18:59]line ФМ: 0000000000874881 [18:18:59]line ФД: 123294 [18:18:59]line ФПД: 248427343902553 [18:18:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T181909&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123294&fm=248427343902553&tin=02508201610067®Number=0000000000092681&sum=50000 [18:18:59]OFD Sender: Processing packet 123294 [packets to send 7, broken 6] [18:18:59]ProducePacketName [18:18:59]name=ofd_packets/00123294 [18:18:59]OFD Sender: To server: pG, [18:18:59]CommunicateWithHost lk.salyk.kg:30040 [18:18:59]ConnectInit lk.salyk.kg [18:18:59]written 0, free lines is 4095 [18:18:59]Connected sock=10 [18:18:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 0F FA 07 01 58 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 1D 11 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9E E1 01 00 35 04 06 00 E1 F1 7F 95 F7 59 F0 9D FF 69 F8 3D BC 3C [18:18:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 97 67 47 00 26 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9E E1 01 00 F4 03 04 00 DF BC 45 67 B6 04 01 00 00 0D E7 F6 41 69 F5 DC 64 [18:18:59]CommunicateWithHost err = 0 [18:18:59]CheckOFDResponse [18:18:59]1017 (14) - 77093643461234 [18:18:59]1041 (16) - 0000000000874881 [18:18:59]1040 (4) - 123294 [18:18:59]1012 (4) - 26.11.2024 12:19 [18:18:59]1206 (1) - 0 [18:18:59]OFD Sender: Remove packet 123294 [18:18:59]ProducePacketName [18:18:59]name=ofd_packets/00123294 [18:18:59]NVStorageDeleteData [18:19:00]Write to MH i2c: 01 00 00 82 72 F4 [18:19:00]Write i2c OK [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: 01 [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: 01 07 00 [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: 01 07 00 82 72 00 00 00 00 00 41 0C 48 [18:19:00]RasterBufferAndPrint [18:19:00]line [18:19:00]line [18:19:00]line [18:19:00]line [18:19:00]line [18:19:00]written 0, free lines is 3143 [18:19:00]MH_Cut [18:19:00]Write to MH i2c: D1 01 00 89 72 01 CD [18:19:00]Write i2c OK [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: D1 [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: D1 01 00 [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: D1 01 00 89 72 00 CC [18:19:00]Write to MH i2c: 01 00 00 8A 72 FC [18:19:00]Write i2c OK [18:19:00]MH_I2C_Read... [18:19:00]OFD Sender: No OFD packet to send [18:19:01]*** Cut start [18:19:01]*** Partial cut [18:19:01]*** CUTSNS_PIN = 1 [18:19:01]*** CUTSNS_PIN = 0 [18:19:01]*** Brake cut motor [18:19:02]Read from MH i2c: 01 [18:19:02]MH_I2C_Read... [18:19:02]*** Stop cut motor [18:19:02]*** Cut end [18:19:02]Read from MH i2c: 01 07 00 [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: 01 07 00 8A 72 00 00 00 00 00 FF 0F 11 [18:19:02]process_action close_receipt done [18:19:02]requested_data is exist [18:19:02]produce_requested_data [18:19:02]requested_item fm.sn is exist - process it [18:19:02]wFMCommunicate request_size=4 [18:19:02]MH_SAM_APDU [18:19:02]CAPDU: 80 11 00 00 [18:19:02]Write to MH i2c: E2 08 00 8B 72 80 11 00 00 00 00 00 00 77 [18:19:02]Write i2c OK [18:19:02]MH_I2C_Read... [18:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:02]Read from MH i2c: E2 [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: E2 17 00 [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: E2 17 00 8B 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CE [18:19:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:19:02]wFMCommunicate OK [18:19:02]requested_item fd.num is exist - process it [18:19:02]SAM_PROTO_GetFieldsCounters [18:19:02]wFMCommunicate request_size=4 [18:19:02]MH_SAM_APDU [18:19:02]CAPDU: 80 13 00 00 [18:19:02]Write to MH i2c: E2 08 00 8C 72 80 13 00 00 00 00 00 00 7A [18:19:02]Write i2c OK [18:19:02]MH_I2C_Read... [18:19:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:02]Read from MH i2c: E2 [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: E2 62 00 [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: E2 62 00 8C 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9E E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [18:19:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9E E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:19:02]wFMCommunicate OK [18:19:02]SAM_PROTO_GetFieldsCounters done [18:19:02]requested_item shift.num is exist - process it [18:19:02]requested_item shift.opened is exist - process it [18:19:02]req_shift_opened [18:19:02]FM_GetShiftState [18:19:02]SAM_PROTO_GetShiftState [18:19:02]wFMCommunicate request_size=4 [18:19:02]MH_SAM_APDU [18:19:02]CAPDU: 80 13 01 00 [18:19:02]Write to MH i2c: E2 08 00 8D 72 80 13 01 00 00 00 00 00 7C [18:19:02]Write i2c OK [18:19:02]MH_I2C_Read... [18:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:02]Read from MH i2c: E2 [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: E2 0E 00 [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: E2 0E 00 8D 72 00 09 00 01 98 11 45 67 00 00 00 00 90 00 DD [18:19:02]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:19:02]wFMCommunicate OK [18:19:02]SAM_PROTO_GetShiftState done [18:19:02]FM_GetShiftState done [18:19:02]req_shift_opened done [18:19:02]requested_item shift.open_date is exist - process it [18:19:02]req_shift_open_date [18:19:02]req_shift_open_date done [18:19:02]produce_requested_data done [18:19:02]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123294,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [18:19:02]process_action_free close_receipt [18:19:02]json_value_free [18:19:02]json_value_free done [18:19:02]process_json_proto returns [18:19:02]Send response to host [18:19:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123294,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [18:19:02]free response buf [18:19:02]execute_script done [18:19:02]execute_script returns [18:19:02]free content buf [18:19:02]Sock 7.Close socket [18:19:02]Sock 7.Thread stoped [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:15]OFD Sender: No OFD packet to send [18:19:20]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:40]OFD Sender: No OFD packet to send [18:21:45]OFD Sender: No OFD packet to send [18:21:50]OFD Sender: No OFD packet to send [18:21:55]OFD Sender: No OFD packet to send [18:22:00]OFD Sender: No OFD packet to send [18:22:05]OFD Sender: No OFD packet to send [18:22:10]OFD Sender: No OFD packet to send [18:22:15]OFD Sender: No OFD packet to send [18:22:20]OFD Sender: No OFD packet to send [18:22:25]OFD Sender: No OFD packet to send [18:22:30]OFD Sender: No OFD packet to send [18:22:35]OFD Sender: No OFD packet to send [18:22:40]OFD Sender: No OFD packet to send [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:55]OFD Sender: No OFD packet to send [18:23:00]OFD Sender: No OFD packet to send [18:23:05]OFD Sender: No OFD packet to send [18:23:10]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:25]OFD Sender: No OFD packet to send [18:23:30]OFD Sender: No OFD packet to send [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:10]OFD Sender: No OFD packet to send [18:24:15]OFD Sender: No OFD packet to send [18:24:20]OFD Sender: No OFD packet to send [18:24:25]OFD Sender: No OFD packet to send [18:24:30]OFD Sender: No OFD packet to send [18:24:35]OFD Sender: No OFD packet to send [18:24:40]OFD Sender: No OFD packet to send [18:24:45]OFD Sender: No OFD packet to send [18:24:50]OFD Sender: No OFD packet to send [18:24:55]OFD Sender: No OFD packet to send [18:25:00]OFD Sender: No OFD packet to send [18:25:05]OFD Sender: No OFD packet to send [18:25:10]OFD Sender: No OFD packet to send [18:25:15]OFD Sender: No OFD packet to send [18:25:20]OFD Sender: No OFD packet to send [18:25:25]OFD Sender: No OFD packet to send [18:25:30]OFD Sender: No OFD packet to send [18:25:35]OFD Sender: No OFD packet to send [18:25:40]OFD Sender: No OFD packet to send [18:25:45]OFD Sender: No OFD packet to send [18:25:50]OFD Sender: No OFD packet to send [18:25:55]OFD Sender: No OFD packet to send [18:26:00]OFD Sender: No OFD packet to send [18:26:05]OFD Sender: No OFD packet to send [18:26:10]OFD Sender: No OFD packet to send [18:26:15]OFD Sender: No OFD packet to send [18:26:20]OFD Sender: No OFD packet to send [18:26:25]OFD Sender: No OFD packet to send [18:26:30]OFD Sender: No OFD packet to send [18:26:35]OFD Sender: No OFD packet to send [18:26:40]OFD Sender: No OFD packet to send [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [18:29:25]accept exits with 9 [18:29:25]New connection [18:29:25]New thread 3066580324 created [18:29:25]Thread 3066723684 joined [18:29:25]Waiting for new connection... [18:29:25] Sock 9.Parse request [18:29:25]Sock 9.Check first char [18:29:25]Sock 9.First char is OK [18:29:25]request: POST /json_proto HTTP/1.0 [18:29:25]Method: POST [18:29:25]URL: /json_proto [18:29:25]Method is POST - this is cgi request [18:29:25]url: /json_proto [18:29:25]query_string will be loaded in cgi processing [18:29:25]execute_cgi json_proto POST (null) [18:29:25]execute_cgi path=json_proto method=POST [18:29:25]POST find Content-Length [18:29:25]Host: 172.17.37.4:8080 [18:29:25]Content-Length: 677 [18:29:25]Content-Type: application/json [18:29:25] [18:29:25]POST finish read [18:29:25]Found Content-Length = 677 [18:29:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 2.660, "sum" : 200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:25]execute_script... [18:29:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 2.660, "sum" : 200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:25]POST & json_proto [18:29:25]process_json_proto [18:29:25]json parsed OK: [18:29:25]protocol is kg_v1.0 [18:29:25]action value=close_receipt [18:29:25]process_action close_receipt [18:29:25]cmd_close_receipt [18:29:25]MH_GetDate [18:29:25]Write to MH i2c: F0 00 00 8E 72 EF [18:29:25]Write i2c OK [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: F0 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: F0 09 00 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: F0 09 00 8E 72 00 91 13 46 67 B8 5A 43 67 05 [18:29:25]GetLastDocTimeStamp 1732645149 [18:29:25]current date 1732645777 [18:29:25]FM_GetShiftState [18:29:25]SAM_PROTO_GetShiftState [18:29:25]wFMCommunicate request_size=4 [18:29:25]MH_SAM_APDU [18:29:25]CAPDU: 80 13 01 00 [18:29:25]Write to MH i2c: E2 08 00 8F 72 80 13 01 00 00 00 00 00 7E [18:29:25]Write i2c OK [18:29:25]MH_I2C_Read... [18:29:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:25]Read from MH i2c: E2 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: E2 0E 00 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: E2 0E 00 8F 72 00 09 00 01 98 11 45 67 00 00 00 00 90 00 DF [18:29:25]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:29:25]wFMCommunicate OK [18:29:25]SAM_PROTO_GetShiftState done [18:29:25]FM_GetShiftState done [18:29:25]opened in 1732579736 [18:29:25]opened+sec_in_day 1732666136 [18:29:25]quantity*price = 20056 [18:29:25]sum+1 = 20057 [18:29:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 149 26.11.2024 18:29 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123295 ФПД: 235545402727314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T182937&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123295&fm=235545402727314&tin=02508201610067®Number=0000000000092681&sum=20000 [18:29:26]StoreToDocumentArchive [18:29:26]shift 557 fd 123295 [18:29:26]save to /storage/0557/doc_00123295 [18:29:26]save last doc name /storage/0557/doc_00123295 to /storage/kkm_last_doc_name [18:29:26]save OK [18:29:26]Clear old archive folders... [18:29:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:26]tlvbuf is 01FC8390 [18:29:26]SAM_PROTO_ClearQueue [18:29:26]wFMCommunicate request_size=4 [18:29:26]MH_SAM_APDU [18:29:26]CAPDU: 80 09 00 00 [18:29:26]Write to MH i2c: E2 08 00 9C 72 80 09 00 00 00 00 00 00 80 [18:29:26]Write i2c OK [18:29:26]MH_I2C_Read... [18:29:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:26]Read from MH i2c: E2 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: E2 03 00 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: E2 03 00 9C 72 00 90 00 82 [18:29:26]RAPDU: 90 00 [18:29:26]wFMCommunicate OK [18:29:26]SAM_PROTO_ClearQueue done [18:29:26]KKMCreateOFDPacket [18:29:26]OFDProtocolAddRootSTLVToBuf [18:29:26]FM_MakeSignedData [18:29:26]FM_MakeSignedData [18:29:26]SAM_PROTO_SignData [18:29:26]wFMCommunicate request_size=4 [18:29:26]MH_SAM_APDU [18:29:26]CAPDU: 80 0D 01 02 [18:29:26]Write to MH i2c: E2 08 00 9D 72 80 0D 01 02 00 00 00 00 88 [18:29:26]Write i2c OK [18:29:26]MH_I2C_Read... [18:29:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:26]Read from MH i2c: E2 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: E2 03 00 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: E2 03 00 9D 72 00 90 00 83 [18:29:26]RAPDU: 90 00 [18:29:26]wFMCommunicate OK [18:29:26]wFMCommunicate request_size=255 [18:29:26]MH_SAM_APDU [18:29:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 64 0A 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 58 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 91 13 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9F E1 01 00 35 04 06 00 D6 [18:29:26]Write to MH i2c: E2 02 01 9E 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 64 0A 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 58 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 91 13 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9F E1 01 00 35 04 06 00 D6 00 00 93 [18:29:26]Write i2c OK [18:29:26]MH_I2C_Read... [18:29:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:27]Read from MH i2c: E2 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: E2 03 00 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: E2 03 00 9E 72 00 90 00 84 [18:29:27]RAPDU: 90 00 [18:29:27]wFMCommunicate OK [18:29:27]wFMCommunicate request_size=10 [18:29:27]MH_SAM_APDU [18:29:27]CAPDU: 80 0D 02 02 05 3A 30 0E DB 92 [18:29:27]Write to MH i2c: E2 0D 00 9F 72 80 0D 02 02 05 00 3A 30 0E DB 92 00 00 7A [18:29:27]Write i2c OK [18:29:27]MH_I2C_Read... [18:29:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:27]Read from MH i2c: E2 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: E2 03 00 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: E2 03 00 9F 72 00 90 00 85 [18:29:27]RAPDU: 90 00 [18:29:27]wFMCommunicate OK [18:29:27]wFMCommunicate request_size=4 [18:29:27]MH_SAM_APDU [18:29:27]CAPDU: 80 0D 03 02 [18:29:27]Write to MH i2c: E2 08 00 A0 72 80 0D 03 02 00 00 00 00 8D [18:29:27]Write i2c OK [18:29:27]MH_I2C_Read... [18:29:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:27]Read from MH i2c: E2 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: E2 0B 00 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: E2 0B 00 A0 72 00 E2 AF 37 ED 6B 53 B4 D7 90 00 8C [18:29:27]RAPDU: E2 AF 37 ED 6B 53 B4 D7 90 00 [18:29:27]wFMCommunicate OK [18:29:27]SAM_PROTO_SignData done [18:29:27]FM_MakeSignedData done [18:29:27]CreateOFDProtocolMessage [18:29:27]wFMCommunicate request_size=4 [18:29:27]MH_SAM_APDU [18:29:27]CAPDU: 80 11 00 00 [18:29:27]Write to MH i2c: E2 08 00 A1 72 80 11 00 00 00 00 00 00 8D [18:29:27]Write i2c OK [18:29:27]MH_I2C_Read... [18:29:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:27]Read from MH i2c: E2 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: E2 17 00 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: E2 17 00 A1 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E4 [18:29:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:29:27]wFMCommunicate OK [18:29:27]CreateOFDProtocolMessage done [18:29:27]OFDSenderStorePacket 123295 [18:29:27]StoreOFDPacket docnum=123295 [18:29:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 30 E7 07 01 11 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 64 0A 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 58 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 91 13 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9F E1 01 00 35 04 06 00 D6 3A 30 0E DB 92 E2 AF 37 ED 6B 53 B4 D7 [18:29:27]CheckFolder [18:29:27]dirname=/storage/ofd_packets [18:29:27]CheckFolder done [18:29:27]ProducePacketName [18:29:27]name=ofd_packets/00123295 [18:29:27]NVStorageSaveData ofd_packets/00123295 [18:29:27]File name is /storage/ofd_packets/00123295 [18:29:27]Write 301 bytes [18:29:27]NVStorageSaveData done [18:29:27]OFDSenderStorePacket done [18:29:27]KKMCreateOFDPacket done [18:29:27]NVStorageSaveData kkm_last_timestamp [18:29:27]File name is /storage/kkm_last_timestamp [18:29:27]Write 4 bytes [18:29:27]NVStorageSaveData done [18:29:27]ExternCall_PrintAddStr [18:29:27]wPrintStart [18:29:27]Write to MH i2c: 01 00 00 A2 72 14 [18:29:27]Write i2c OK [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: 01 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: 01 07 00 [18:29:27]MH_I2C_Read... [18:29:27]Read from MH i2c: 01 07 00 A2 72 00 00 00 00 00 FF 0F 29 [18:29:27]RasterBufferAndPrint [18:29:27]line Счет N : (1)718126 [18:29:27]line ИНН: 02508201610067 [18:29:27]line Контрольно-Кассовый Чек [18:29:27]line ПРОДАЖА [18:29:27]line ТРК (МРК, ГНК) : 11 [18:29:27]line Товар: 2710124500 [18:29:27]line Аи-95-К-5 [18:29:27]line 2.660 * 75.40 [18:29:27]line = 200.56 [18:29:27]line НДС 12% НСП 1% [18:29:27]line > о реализуемом товаре [18:29:27]line ОКРУГЛЕНИЕ: -0.56 [18:29:27]line ИТОГО: 200.00 [18:29:27]line Внесено: 200.00 [18:29:27]line СДАЧА: 0.00 [18:29:27]line НСП 1% : 1.77 [18:29:27]line НДС 12% : 21.30 [18:29:27]line Наличными: 200.00 [18:29:27]line Безнал.: 0.00 [18:29:27]line Место: АЗС № 64 "Партнер Нефть" [18:29:27]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:29:27]line СНО: Общий режим [18:29:27]line Чек 149 26.11.2024 18:29 [18:29:27]line Смена: 557 ФФД: 1.0 [18:29:27]line ЗНМ: 0300000033 [18:29:27]line РНМ: 0000000000092681 [18:29:27]line Версия ККМ: 001 [18:29:27]line ФМ: 0000000000874881 [18:29:27]line ФД: 123295 [18:29:27]line ФПД: 235545402727314 [18:29:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T182937&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123295&fm=235545402727314&tin=02508201610067®Number=0000000000092681&sum=20000 [18:29:27]OFD Sender: Processing packet 123295 [packets to send 7, broken 6] [18:29:27]ProducePacketName [18:29:27]name=ofd_packets/00123295 [18:29:27]OFD Sender: To server: pG, [18:29:27]CommunicateWithHost lk.salyk.kg:30040 [18:29:27]ConnectInit lk.salyk.kg [18:29:27]written 0, free lines is 4095 [18:29:27]Connected sock=10 [18:29:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 30 E7 07 01 11 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 64 0A 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 58 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 91 13 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9F E1 01 00 35 04 06 00 D6 3A 30 0E DB 92 E2 AF 37 ED 6B 53 B4 D7 [18:29:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 C2 0E 47 00 F6 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9F E1 01 00 F4 03 04 00 53 BF 45 67 B6 04 01 00 00 1F 56 A1 80 0B CA E0 BD [18:29:27]CommunicateWithHost err = 0 [18:29:27]CheckOFDResponse [18:29:27]1017 (14) - 77093643461234 [18:29:27]1041 (16) - 0000000000874881 [18:29:27]1040 (4) - 123295 [18:29:27]1012 (4) - 26.11.2024 12:30 [18:29:27]1206 (1) - 0 [18:29:27]OFD Sender: Remove packet 123295 [18:29:27]ProducePacketName [18:29:27]name=ofd_packets/00123295 [18:29:27]NVStorageDeleteData [18:29:28]Write to MH i2c: 01 00 00 CD 72 3F [18:29:28]Write i2c OK [18:29:28]MH_I2C_Read... [18:29:28]Read from MH i2c: 01 [18:29:28]MH_I2C_Read... [18:29:28]Read from MH i2c: 01 07 00 [18:29:28]MH_I2C_Read... [18:29:28]Read from MH i2c: 01 07 00 CD 72 00 00 00 00 00 42 0C 94 [18:29:28]RasterBufferAndPrint [18:29:28]line [18:29:28]line [18:29:28]line [18:29:28]line [18:29:28]line [18:29:28]written 0, free lines is 3142 [18:29:28]MH_Cut [18:29:28]Write to MH i2c: D1 01 00 D4 72 01 18 [18:29:28]Write i2c OK [18:29:28]MH_I2C_Read... [18:29:28]Read from MH i2c: D1 [18:29:28]MH_I2C_Read... [18:29:28]Read from MH i2c: D1 01 00 [18:29:28]MH_I2C_Read... [18:29:28]Read from MH i2c: D1 01 00 D4 72 00 17 [18:29:28]Write to MH i2c: 01 00 00 D5 72 47 [18:29:28]Write i2c OK [18:29:28]MH_I2C_Read... [18:29:28]OFD Sender: No OFD packet to send [18:29:29]*** Cut start [18:29:29]*** Partial cut [18:29:29]*** CUTSNS_PIN = 1 [18:29:29]*** CUTSNS_PIN = 0 [18:29:29]*** Brake cut motor [18:29:30]Read from MH i2c: 01 [18:29:30]MH_I2C_Read... [18:29:30]*** Stop cut motor [18:29:30]*** Cut end [18:29:30]Read from MH i2c: 01 07 00 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: 01 07 00 D5 72 00 00 00 00 00 FF 0F 5C [18:29:30]process_action close_receipt done [18:29:30]requested_data is exist [18:29:30]produce_requested_data [18:29:30]requested_item fm.sn is exist - process it [18:29:30]wFMCommunicate request_size=4 [18:29:30]MH_SAM_APDU [18:29:30]CAPDU: 80 11 00 00 [18:29:30]Write to MH i2c: E2 08 00 D6 72 80 11 00 00 00 00 00 00 C2 [18:29:30]Write i2c OK [18:29:30]MH_I2C_Read... [18:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:30]Read from MH i2c: E2 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: E2 17 00 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: E2 17 00 D6 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 19 [18:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:29:30]wFMCommunicate OK [18:29:30]requested_item fd.num is exist - process it [18:29:30]SAM_PROTO_GetFieldsCounters [18:29:30]wFMCommunicate request_size=4 [18:29:30]MH_SAM_APDU [18:29:30]CAPDU: 80 13 00 00 [18:29:30]Write to MH i2c: E2 08 00 D7 72 80 13 00 00 00 00 00 00 C5 [18:29:30]Write i2c OK [18:29:30]MH_I2C_Read... [18:29:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:30]Read from MH i2c: E2 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: E2 62 00 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: E2 62 00 D7 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9F E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [18:29:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 9F E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:30]wFMCommunicate OK [18:29:30]SAM_PROTO_GetFieldsCounters done [18:29:30]requested_item shift.num is exist - process it [18:29:30]requested_item shift.opened is exist - process it [18:29:30]req_shift_opened [18:29:30]FM_GetShiftState [18:29:30]SAM_PROTO_GetShiftState [18:29:30]wFMCommunicate request_size=4 [18:29:30]MH_SAM_APDU [18:29:30]CAPDU: 80 13 01 00 [18:29:30]Write to MH i2c: E2 08 00 D8 72 80 13 01 00 00 00 00 00 C7 [18:29:30]Write i2c OK [18:29:30]MH_I2C_Read... [18:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:30]Read from MH i2c: E2 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: E2 0E 00 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: E2 0E 00 D8 72 00 09 00 01 98 11 45 67 00 00 00 00 90 00 28 [18:29:30]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:29:30]wFMCommunicate OK [18:29:30]SAM_PROTO_GetShiftState done [18:29:30]FM_GetShiftState done [18:29:30]req_shift_opened done [18:29:30]requested_item shift.open_date is exist - process it [18:29:30]req_shift_open_date [18:29:30]req_shift_open_date done [18:29:30]produce_requested_data done [18:29:30]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123295,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [18:29:30]process_action_free close_receipt [18:29:30]json_value_free [18:29:30]json_value_free done [18:29:30]process_json_proto returns [18:29:30]Send response to host [18:29:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123295,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [18:29:30]free response buf [18:29:30]execute_script done [18:29:30]execute_script returns [18:29:30]free content buf [18:29:30]Sock 9.Close socket [18:29:30]Sock 9.Thread stoped [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:13]OFD Sender: No OFD packet to send [18:30:18]OFD Sender: No OFD packet to send [18:30:23]OFD Sender: No OFD packet to send [18:30:28]OFD Sender: No OFD packet to send [18:30:33]OFD Sender: No OFD packet to send [18:30:38]OFD Sender: No OFD packet to send [18:30:39]accept exits with 7 [18:30:39]New connection [18:30:39]New thread 3066723684 created [18:30:39]Thread 3066580324 joined [18:30:39]Waiting for new connection... [18:30:39] Sock 7.Parse request [18:30:39]Sock 7.Check first char [18:30:39]Sock 7.First char is OK [18:30:39]request: POST /json_proto HTTP/1.0 [18:30:39]Method: POST [18:30:39]URL: /json_proto [18:30:39]Method is POST - this is cgi request [18:30:39]url: /json_proto [18:30:39]query_string will be loaded in cgi processing [18:30:39]execute_cgi json_proto POST (null) [18:30:39]execute_cgi path=json_proto method=POST [18:30:39]POST find Content-Length [18:30:39]Host: 172.17.37.4:8080 [18:30:39]Content-Length: 796 [18:30:39]Content-Type: application/json [18:30:39] [18:30:39]POST finish read [18:30:39]Found Content-Length = 796 [18:30:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 46.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43439", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:39]execute_script... [18:30:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 46.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43439", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:39]POST & json_proto [18:30:39]process_json_proto [18:30:39]json parsed OK: [18:30:39]protocol is kg_v1.0 [18:30:39]action value=close_receipt [18:30:39]process_action close_receipt [18:30:39]cmd_close_receipt [18:30:39]MH_GetDate [18:30:39]Write to MH i2c: F0 00 00 D9 72 3A [18:30:39]Write i2c OK [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: F0 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: F0 09 00 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: F0 09 00 D9 72 00 DB 13 46 67 B8 5A 43 67 9A [18:30:39]GetLastDocTimeStamp 1732645777 [18:30:39]current date 1732645851 [18:30:39]FM_GetShiftState [18:30:39]SAM_PROTO_GetShiftState [18:30:39]wFMCommunicate request_size=4 [18:30:39]MH_SAM_APDU [18:30:39]CAPDU: 80 13 01 00 [18:30:39]Write to MH i2c: E2 08 00 DA 72 80 13 01 00 00 00 00 00 C9 [18:30:39]Write i2c OK [18:30:39]MH_I2C_Read... [18:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:39]Read from MH i2c: E2 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 0E 00 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 0E 00 DA 72 00 09 00 01 98 11 45 67 00 00 00 00 90 00 2A [18:30:39]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:30:39]wFMCommunicate OK [18:30:39]SAM_PROTO_GetShiftState done [18:30:39]FM_GetShiftState done [18:30:39]opened in 1732579736 [18:30:39]opened+sec_in_day 1732666136 [18:30:39]quantity*price = 0 [18:30:39]sum+1 = 1 [18:30:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 150 26.11.2024 18:30 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 43439 ФМ: 0000000000874881 ФД: 123296 ФПД: 131587273450210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T183051&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123296&fm=131587273450210&tin=02508201610067®Number=0000000000092681&sum=0 [18:30:40]StoreToDocumentArchive [18:30:40]shift 557 fd 123296 [18:30:40]save to /storage/0557/doc_00123296 [18:30:40]save last doc name /storage/0557/doc_00123296 to /storage/kkm_last_doc_name [18:30:40]save OK [18:30:40]Clear old archive folders... [18:30:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:30:40]tlvbuf is 02097080 [18:30:40]SAM_PROTO_ClearQueue [18:30:40]wFMCommunicate request_size=4 [18:30:40]MH_SAM_APDU [18:30:40]CAPDU: 80 09 00 00 [18:30:40]Write to MH i2c: E2 08 00 E7 72 80 09 00 00 00 00 00 00 CB [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:40]Read from MH i2c: E2 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 E7 72 00 90 00 CD [18:30:40]RAPDU: 90 00 [18:30:40]wFMCommunicate OK [18:30:40]SAM_PROTO_ClearQueue done [18:30:40]KKMCreateOFDPacket [18:30:40]OFDProtocolAddRootSTLVToBuf [18:30:40]FM_MakeSignedData [18:30:40]FM_MakeSignedData [18:30:40]SAM_PROTO_SignData [18:30:40]wFMCommunicate request_size=4 [18:30:40]MH_SAM_APDU [18:30:40]CAPDU: 80 0D 01 02 [18:30:40]Write to MH i2c: E2 08 00 E8 72 80 0D 01 02 00 00 00 00 D3 [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:40]Read from MH i2c: E2 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 E8 72 00 90 00 CE [18:30:40]RAPDU: 90 00 [18:30:40]wFMCommunicate OK [18:30:40]wFMCommunicate request_size=255 [18:30:40]MH_SAM_APDU [18:30:40]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 35 FF 03 08 00 03 B0 B3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 DB 13 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A0 E1 01 00 35 04 06 00 [18:30:40]Write to MH i2c: E2 02 01 E9 72 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 35 FF 03 08 00 03 B0 B3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 DB 13 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A0 E1 01 00 35 04 06 00 00 00 62 [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:40]Read from MH i2c: E2 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 E9 72 00 90 00 CF [18:30:40]RAPDU: 90 00 [18:30:40]wFMCommunicate OK [18:30:40]wFMCommunicate request_size=11 [18:30:40]MH_SAM_APDU [18:30:40]CAPDU: 80 0D 02 02 06 77 AD 8C B0 E2 E2 [18:30:40]Write to MH i2c: E2 0E 00 EA 72 80 0D 02 02 06 00 77 AD 8C B0 E2 E2 00 00 06 [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:40]Read from MH i2c: E2 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 EA 72 00 90 00 D0 [18:30:40]RAPDU: 90 00 [18:30:40]wFMCommunicate OK [18:30:40]wFMCommunicate request_size=4 [18:30:40]MH_SAM_APDU [18:30:40]CAPDU: 80 0D 03 02 [18:30:40]Write to MH i2c: E2 08 00 EB 72 80 0D 03 02 00 00 00 00 D8 [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:40]Read from MH i2c: E2 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 0B 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 0B 00 EB 72 00 04 4B AD 27 C9 D1 AC 3C 90 00 7E [18:30:40]RAPDU: 04 4B AD 27 C9 D1 AC 3C 90 00 [18:30:40]wFMCommunicate OK [18:30:40]SAM_PROTO_SignData done [18:30:40]FM_MakeSignedData done [18:30:40]CreateOFDProtocolMessage [18:30:40]wFMCommunicate request_size=4 [18:30:40]MH_SAM_APDU [18:30:40]CAPDU: 80 11 00 00 [18:30:40]Write to MH i2c: E2 08 00 EC 72 80 11 00 00 00 00 00 00 D8 [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:40]Read from MH i2c: E2 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 17 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 17 00 EC 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2F [18:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:30:40]wFMCommunicate OK [18:30:40]CreateOFDProtocolMessage done [18:30:40]OFDSenderStorePacket 123296 [18:30:40]StoreOFDPacket docnum=123296 [18:30:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 1C A6 08 01 43 08 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 35 FF 03 08 00 03 B0 B3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 DB 13 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A0 E1 01 00 35 04 06 00 77 AD 8C B0 E2 E2 04 4B AD 27 C9 D1 AC 3C [18:30:40]CheckFolder [18:30:40]dirname=/storage/ofd_packets [18:30:40]CheckFolder done [18:30:40]ProducePacketName [18:30:40]name=ofd_packets/00123296 [18:30:40]NVStorageSaveData ofd_packets/00123296 [18:30:40]File name is /storage/ofd_packets/00123296 [18:30:40]Write 302 bytes [18:30:40]NVStorageSaveData done [18:30:40]OFDSenderStorePacket done [18:30:40]KKMCreateOFDPacket done [18:30:40]NVStorageSaveData kkm_last_timestamp [18:30:40]File name is /storage/kkm_last_timestamp [18:30:40]Write 4 bytes [18:30:40]NVStorageSaveData done [18:30:40]ExternCall_PrintAddStr [18:30:40]wPrintStart [18:30:40]Write to MH i2c: 01 00 00 ED 72 5F [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: 01 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: 01 07 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: 01 07 00 ED 72 00 00 00 00 00 FF 0F 74 [18:30:40]RasterBufferAndPrint [18:30:40]line Счет N : (1)718125 [18:30:40]line ИНН: 02508201610067 [18:30:40]line Контрольно-Кассовый Чек [18:30:40]line ПРОДАЖА [18:30:40]line ТРК (МРК, ГНК) : 5 [18:30:40]line Товар: 2710194210 [18:30:40]line ДТ(л)-К-5 [18:30:40]line 46.000 * 0.00 [18:30:40]line = 0.00 [18:30:40]line НДС 12% НСП 1% [18:30:40]line > о реализуемом товаре [18:30:40]line ИТОГО: 0.00 [18:30:40]line НСП 1% : 0.00 [18:30:40]line НДС 12% : 0.00 [18:30:40]line Наличными: 0.00 [18:30:40]line Безнал.: 0.00 [18:30:40]line Место: АЗС № 64 "Партнер Нефть" [18:30:40]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:30:40]line СНО: Общий режим [18:30:40]line Чек 150 26.11.2024 18:30 [18:30:40]line Смена: 557 ФФД: 1.0 [18:30:40]line ЗНМ: 0300000033 [18:30:40]line РНМ: 0000000000092681 [18:30:40]line Версия ККМ: 001 [18:30:40]line Талоны: Топливная Карта [18:30:40]line 43439 [18:30:40]line ФМ: 0000000000874881 [18:30:40]line ФД: 123296 [18:30:40]line ФПД: 131587273450210 [18:30:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T183051&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123296&fm=131587273450210&tin=02508201610067®Number=0000000000092681&sum=0 [18:30:41]OFD Sender: Processing packet 123296 [packets to send 7, broken 6] [18:30:41]ProducePacketName [18:30:41]name=ofd_packets/00123296 [18:30:41]OFD Sender: To server: pG, [18:30:41]CommunicateWithHost lk.salyk.kg:30040 [18:30:41]ConnectInit lk.salyk.kg [18:30:41]written 0, free lines is 4095 [18:30:41]Connected sock=10 [18:30:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 1C A6 08 01 43 08 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 35 FF 03 08 00 03 B0 B3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 DB 13 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A0 E1 01 00 35 04 06 00 77 AD 8C B0 E2 E2 04 4B AD 27 C9 D1 AC 3C [18:30:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 7D CA 47 00 68 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A0 E1 01 00 F4 03 04 00 9C BF 45 67 B6 04 01 00 00 E8 9E 0C 80 9D 93 FA B5 [18:30:41]CommunicateWithHost err = 0 [18:30:41]CheckOFDResponse [18:30:41]1017 (14) - 77093643461234 [18:30:41]1041 (16) - 0000000000874881 [18:30:41]1040 (4) - 123296 [18:30:41]1012 (4) - 26.11.2024 12:31 [18:30:41]1206 (1) - 0 [18:30:41]OFD Sender: Remove packet 123296 [18:30:41]ProducePacketName [18:30:41]name=ofd_packets/00123296 [18:30:41]NVStorageDeleteData [18:30:41]Write to MH i2c: 01 00 00 17 73 8A [18:30:41]Write i2c OK [18:30:41]MH_I2C_Read... [18:30:41]Read from MH i2c: 01 [18:30:41]MH_I2C_Read... [18:30:41]Read from MH i2c: 01 07 00 [18:30:41]MH_I2C_Read... [18:30:41]Read from MH i2c: 01 07 00 17 73 00 00 00 00 00 68 0C 05 [18:30:41]RasterBufferAndPrint [18:30:41]line [18:30:41]line [18:30:41]line [18:30:41]line [18:30:41]line [18:30:41]written 0, free lines is 3180 [18:30:41]MH_Cut [18:30:41]Write to MH i2c: D1 01 00 1E 73 01 63 [18:30:41]Write i2c OK [18:30:41]MH_I2C_Read... [18:30:41]Read from MH i2c: D1 [18:30:41]MH_I2C_Read... [18:30:41]Read from MH i2c: D1 01 00 [18:30:41]MH_I2C_Read... [18:30:41]Read from MH i2c: D1 01 00 1E 73 00 62 [18:30:41]Write to MH i2c: 01 00 00 1F 73 92 [18:30:41]Write i2c OK [18:30:41]MH_I2C_Read... [18:30:41]OFD Sender: No OFD packet to send [18:30:42]*** Cut start [18:30:42]*** Partial cut [18:30:42]*** CUTSNS_PIN = 1 [18:30:42]*** CUTSNS_PIN = 0 [18:30:43]*** Brake cut motor [18:30:43]Read from MH i2c: 01 [18:30:43]MH_I2C_Read... [18:30:43]*** Stop cut motor [18:30:43]*** Cut end [18:30:43]Read from MH i2c: 01 07 00 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: 01 07 00 1F 73 00 00 00 00 00 FF 0F A7 [18:30:43]process_action close_receipt done [18:30:43]requested_data is exist [18:30:43]produce_requested_data [18:30:43]requested_item fm.sn is exist - process it [18:30:43]wFMCommunicate request_size=4 [18:30:43]MH_SAM_APDU [18:30:43]CAPDU: 80 11 00 00 [18:30:43]Write to MH i2c: E2 08 00 20 73 80 11 00 00 00 00 00 00 0D [18:30:43]Write i2c OK [18:30:43]MH_I2C_Read... [18:30:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:43]Read from MH i2c: E2 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 17 00 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 17 00 20 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 64 [18:30:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:30:43]wFMCommunicate OK [18:30:43]requested_item fd.num is exist - process it [18:30:43]SAM_PROTO_GetFieldsCounters [18:30:43]wFMCommunicate request_size=4 [18:30:43]MH_SAM_APDU [18:30:43]CAPDU: 80 13 00 00 [18:30:43]Write to MH i2c: E2 08 00 21 73 80 13 00 00 00 00 00 00 10 [18:30:43]Write i2c OK [18:30:43]MH_I2C_Read... [18:30:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:43]Read from MH i2c: E2 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 62 00 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 62 00 21 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A0 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [18:30:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A0 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:43]wFMCommunicate OK [18:30:43]SAM_PROTO_GetFieldsCounters done [18:30:43]requested_item shift.num is exist - process it [18:30:43]requested_item shift.opened is exist - process it [18:30:43]req_shift_opened [18:30:43]FM_GetShiftState [18:30:43]SAM_PROTO_GetShiftState [18:30:43]wFMCommunicate request_size=4 [18:30:43]MH_SAM_APDU [18:30:43]CAPDU: 80 13 01 00 [18:30:43]Write to MH i2c: E2 08 00 22 73 80 13 01 00 00 00 00 00 12 [18:30:43]Write i2c OK [18:30:43]MH_I2C_Read... [18:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:43]Read from MH i2c: E2 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 0E 00 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 0E 00 22 73 00 09 00 01 98 11 45 67 00 00 00 00 90 00 73 [18:30:43]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:30:43]wFMCommunicate OK [18:30:43]SAM_PROTO_GetShiftState done [18:30:43]FM_GetShiftState done [18:30:43]req_shift_opened done [18:30:43]requested_item shift.open_date is exist - process it [18:30:43]req_shift_open_date [18:30:43]req_shift_open_date done [18:30:43]produce_requested_data done [18:30:43]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123296,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [18:30:43]process_action_free close_receipt [18:30:43]json_value_free [18:30:43]json_value_free done [18:30:43]process_json_proto returns [18:30:43]Send response to host [18:30:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123296,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [18:30:43]free response buf [18:30:43]execute_script done [18:30:43]execute_script returns [18:30:43]free content buf [18:30:43]Sock 7.Close socket [18:30:43]Sock 7.Thread stoped [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:47]OFD Sender: No OFD packet to send [18:31:52]OFD Sender: No OFD packet to send [18:31:57]OFD Sender: No OFD packet to send [18:32:02]OFD Sender: No OFD packet to send [18:32:07]OFD Sender: No OFD packet to send [18:32:12]OFD Sender: No OFD packet to send [18:32:17]OFD Sender: No OFD packet to send [18:32:22]OFD Sender: No OFD packet to send [18:32:27]OFD Sender: No OFD packet to send [18:32:32]OFD Sender: No OFD packet to send [18:32:37]OFD Sender: No OFD packet to send [18:32:42]OFD Sender: No OFD packet to send [18:32:47]OFD Sender: No OFD packet to send [18:32:52]OFD Sender: No OFD packet to send [18:32:57]OFD Sender: No OFD packet to send [18:33:02]OFD Sender: No OFD packet to send [18:33:07]OFD Sender: No OFD packet to send [18:33:12]OFD Sender: No OFD packet to send [18:33:17]OFD Sender: No OFD packet to send [18:33:22]OFD Sender: No OFD packet to send [18:33:27]OFD Sender: No OFD packet to send [18:33:32]OFD Sender: No OFD packet to send [18:33:37]OFD Sender: No OFD packet to send [18:33:42]OFD Sender: No OFD packet to send [18:33:47]OFD Sender: No OFD packet to send [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:13]accept exits with 9 [18:34:13]New connection [18:34:13]New thread 3066580324 created [18:34:13]Thread 3066723684 joined [18:34:13]Waiting for new connection... [18:34:13] Sock 9.Parse request [18:34:13]Sock 9.Check first char [18:34:13]Sock 9.First char is OK [18:34:13]request: POST /json_proto HTTP/1.0 [18:34:13]Method: POST [18:34:13]URL: /json_proto [18:34:13]Method is POST - this is cgi request [18:34:13]url: /json_proto [18:34:13]query_string will be loaded in cgi processing [18:34:13]execute_cgi json_proto POST (null) [18:34:13]execute_cgi path=json_proto method=POST [18:34:13]POST find Content-Length [18:34:13]Host: 172.17.37.4:8080 [18:34:13]Content-Length: 792 [18:34:13]Content-Type: application/json [18:34:13] [18:34:13]POST finish read [18:34:13]Found Content-Length = 792 [18:34:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53217", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:13]execute_script... [18:34:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53217", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:13]POST & json_proto [18:34:13]process_json_proto [18:34:13]json parsed OK: [18:34:13]protocol is kg_v1.0 [18:34:13]action value=close_receipt [18:34:13]process_action close_receipt [18:34:13]cmd_close_receipt [18:34:13]MH_GetDate [18:34:13]Write to MH i2c: F0 00 00 23 73 85 [18:34:13]Write i2c OK [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: F0 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: F0 09 00 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: F0 09 00 23 73 00 B1 14 46 67 B8 5A 43 67 BC [18:34:13]GetLastDocTimeStamp 1732645851 [18:34:13]current date 1732646065 [18:34:13]FM_GetShiftState [18:34:13]SAM_PROTO_GetShiftState [18:34:13]wFMCommunicate request_size=4 [18:34:13]MH_SAM_APDU [18:34:13]CAPDU: 80 13 01 00 [18:34:13]Write to MH i2c: E2 08 00 24 73 80 13 01 00 00 00 00 00 14 [18:34:13]Write i2c OK [18:34:13]MH_I2C_Read... [18:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:13]Read from MH i2c: E2 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 0E 00 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 0E 00 24 73 00 09 00 01 98 11 45 67 00 00 00 00 90 00 75 [18:34:13]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:34:13]wFMCommunicate OK [18:34:13]SAM_PROTO_GetShiftState done [18:34:13]FM_GetShiftState done [18:34:13]opened in 1732579736 [18:34:13]opened+sec_in_day 1732666136 [18:34:13]quantity*price = 0 [18:34:13]sum+1 = 1 [18:34:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 151 26.11.2024 18:34 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 53217 ФМ: 0000000000874881 ФД: 123297 ФПД: 59631598315490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T183425&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123297&fm=59631598315490&tin=02508201610067®Number=0000000000092681&sum=0 [18:34:14]StoreToDocumentArchive [18:34:14]shift 557 fd 123297 [18:34:14]save to /storage/0557/doc_00123297 [18:34:14]save last doc name /storage/0557/doc_00123297 to /storage/kkm_last_doc_name [18:34:14]save OK [18:34:14]Clear old archive folders... [18:34:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:34:14]tlvbuf is 021BCA70 [18:34:14]SAM_PROTO_ClearQueue [18:34:14]wFMCommunicate request_size=4 [18:34:14]MH_SAM_APDU [18:34:14]CAPDU: 80 09 00 00 [18:34:14]Write to MH i2c: E2 08 00 31 73 80 09 00 00 00 00 00 00 16 [18:34:14]Write i2c OK [18:34:14]MH_I2C_Read... [18:34:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:14]Read from MH i2c: E2 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: E2 03 00 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: E2 03 00 31 73 00 90 00 18 [18:34:14]RAPDU: 90 00 [18:34:14]wFMCommunicate OK [18:34:14]SAM_PROTO_ClearQueue done [18:34:14]KKMCreateOFDPacket [18:34:14]OFDProtocolAddRootSTLVToBuf [18:34:14]FM_MakeSignedData [18:34:14]FM_MakeSignedData [18:34:14]SAM_PROTO_SignData [18:34:14]wFMCommunicate request_size=4 [18:34:14]MH_SAM_APDU [18:34:14]CAPDU: 80 0D 01 02 [18:34:14]Write to MH i2c: E2 08 00 32 73 80 0D 01 02 00 00 00 00 1E [18:34:14]Write i2c OK [18:34:14]MH_I2C_Read... [18:34:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:14]Read from MH i2c: E2 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: E2 03 00 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: E2 03 00 32 73 00 90 00 19 [18:34:14]RAPDU: 90 00 [18:34:14]wFMCommunicate OK [18:34:14]wFMCommunicate request_size=255 [18:34:14]MH_SAM_APDU [18:34:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 B1 14 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A1 E1 01 00 35 04 06 00 36 [18:34:14]Write to MH i2c: E2 02 01 33 73 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 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 B1 14 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A1 E1 01 00 35 04 06 00 36 00 00 EF [18:34:14]Write i2c OK [18:34:14]MH_I2C_Read... [18:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:14]Read from MH i2c: E2 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: E2 03 00 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: E2 03 00 33 73 00 90 00 1A [18:34:14]RAPDU: 90 00 [18:34:14]wFMCommunicate OK [18:34:14]wFMCommunicate request_size=10 [18:34:14]MH_SAM_APDU [18:34:14]CAPDU: 80 0D 02 02 05 3C 10 3C 27 E2 [18:34:14]Write to MH i2c: E2 0D 00 34 73 80 0D 02 02 05 00 3C 10 3C 27 E2 00 00 BC [18:34:14]Write i2c OK [18:34:14]MH_I2C_Read... [18:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:14]Read from MH i2c: E2 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: E2 03 00 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: E2 03 00 34 73 00 90 00 1B [18:34:14]RAPDU: 90 00 [18:34:14]wFMCommunicate OK [18:34:14]wFMCommunicate request_size=4 [18:34:14]MH_SAM_APDU [18:34:14]CAPDU: 80 0D 03 02 [18:34:14]Write to MH i2c: E2 08 00 35 73 80 0D 03 02 00 00 00 00 23 [18:34:14]Write i2c OK [18:34:14]MH_I2C_Read... [18:34:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:14]Read from MH i2c: E2 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: E2 0B 00 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: E2 0B 00 35 73 00 15 6D D1 22 D1 4E 78 23 90 00 53 [18:34:14]RAPDU: 15 6D D1 22 D1 4E 78 23 90 00 [18:34:14]wFMCommunicate OK [18:34:14]SAM_PROTO_SignData done [18:34:14]FM_MakeSignedData done [18:34:14]CreateOFDProtocolMessage [18:34:14]wFMCommunicate request_size=4 [18:34:14]MH_SAM_APDU [18:34:14]CAPDU: 80 11 00 00 [18:34:14]Write to MH i2c: E2 08 00 36 73 80 11 00 00 00 00 00 00 23 [18:34:14]Write i2c OK [18:34:14]MH_I2C_Read... [18:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:14]Read from MH i2c: E2 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: E2 17 00 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: E2 17 00 36 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 7A [18:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:34:14]wFMCommunicate OK [18:34:14]CreateOFDProtocolMessage done [18:34:14]OFDSenderStorePacket 123297 [18:34:14]StoreOFDPacket docnum=123297 [18:34:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B3 2A 07 01 03 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 B1 14 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A1 E1 01 00 35 04 06 00 36 3C 10 3C 27 E2 15 6D D1 22 D1 4E 78 23 [18:34:14]CheckFolder [18:34:14]dirname=/storage/ofd_packets [18:34:14]CheckFolder done [18:34:14]ProducePacketName [18:34:14]name=ofd_packets/00123297 [18:34:14]NVStorageSaveData ofd_packets/00123297 [18:34:14]File name is /storage/ofd_packets/00123297 [18:34:14]Write 301 bytes [18:34:14]NVStorageSaveData done [18:34:14]OFDSenderStorePacket done [18:34:14]KKMCreateOFDPacket done [18:34:14]NVStorageSaveData kkm_last_timestamp [18:34:14]File name is /storage/kkm_last_timestamp [18:34:14]Write 4 bytes [18:34:14]NVStorageSaveData done [18:34:14]ExternCall_PrintAddStr [18:34:14]wPrintStart [18:34:14]Write to MH i2c: 01 00 00 37 73 AA [18:34:14]Write i2c OK [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: 01 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: 01 07 00 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: 01 07 00 37 73 00 00 00 00 00 FF 0F BF [18:34:14]RasterBufferAndPrint [18:34:14]line Счет N : (1)718127 [18:34:14]line ИНН: 02508201610067 [18:34:14]line Контрольно-Кассовый Чек [18:34:14]line ПРОДАЖА [18:34:14]line ТРК (МРК, ГНК) : 12 [18:34:14]line Товар: 2710124130 [18:34:14]line Аи-92-К-4 [18:34:14]line 15.000 * 0.00 [18:34:14]line = 0.00 [18:34:14]line НДС 12% НСП 1% [18:34:14]line > о реализуемом товаре [18:34:14]line ИТОГО: 0.00 [18:34:14]line НСП 1% : 0.00 [18:34:14]line НДС 12% : 0.00 [18:34:14]line Наличными: 0.00 [18:34:14]line Безнал.: 0.00 [18:34:14]line Место: АЗС № 64 "Партнер Нефть" [18:34:14]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:34:14]line СНО: Общий режим [18:34:14]line Чек 151 26.11.2024 18:34 [18:34:14]line Смена: 557 ФФД: 1.0 [18:34:14]line ЗНМ: 0300000033 [18:34:14]line РНМ: 0000000000092681 [18:34:14]line Версия ККМ: 001 [18:34:14]line Талоны: Топливная Карта [18:34:14]line 53217 [18:34:14]line ФМ: 0000000000874881 [18:34:14]line ФД: 123297 [18:34:14]line ФПД: 59631598315490 [18:34:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T183425&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123297&fm=59631598315490&tin=02508201610067®Number=0000000000092681&sum=0 [18:34:15]written 0, free lines is 4095 [18:34:15]OFD Sender: Processing packet 123297 [packets to send 7, broken 6] [18:34:15]ProducePacketName [18:34:15]name=ofd_packets/00123297 [18:34:15]OFD Sender: To server: pG, [18:34:15]CommunicateWithHost lk.salyk.kg:30040 [18:34:15]ConnectInit lk.salyk.kg [18:34:15]Connected sock=10 [18:34:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B3 2A 07 01 03 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 B1 14 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A1 E1 01 00 35 04 06 00 36 3C 10 3C 27 E2 15 6D D1 22 D1 4E 78 23 [18:34:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 8B 24 47 00 24 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A1 E1 01 00 F4 03 04 00 72 C0 45 67 B6 04 01 00 00 1B 43 55 7C F1 26 31 E0 [18:34:15]CommunicateWithHost err = 0 [18:34:15]CheckOFDResponse [18:34:15]1017 (14) - 77093643461234 [18:34:15]1041 (16) - 0000000000874881 [18:34:15]1040 (4) - 123297 [18:34:15]1012 (4) - 26.11.2024 12:34 [18:34:15]1206 (1) - 0 [18:34:15]OFD Sender: Remove packet 123297 [18:34:15]ProducePacketName [18:34:15]name=ofd_packets/00123297 [18:34:15]NVStorageDeleteData [18:34:15]Write to MH i2c: 01 00 00 61 73 D4 [18:34:15]Write i2c OK [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: 01 [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: 01 07 00 [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: 01 07 00 61 73 00 00 00 00 00 60 0C 47 [18:34:15]RasterBufferAndPrint [18:34:15]line [18:34:15]line [18:34:15]line [18:34:15]line [18:34:15]line [18:34:15]written 0, free lines is 3173 [18:34:15]MH_Cut [18:34:15]Write to MH i2c: D1 01 00 68 73 01 AD [18:34:15]Write i2c OK [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: D1 [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: D1 01 00 [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: D1 01 00 68 73 00 AC [18:34:15]Write to MH i2c: 01 00 00 69 73 DC [18:34:15]Write i2c OK [18:34:15]MH_I2C_Read... [18:34:15]OFD Sender: No OFD packet to send [18:34:16]*** Cut start [18:34:16]*** Partial cut [18:34:16]*** CUTSNS_PIN = 1 [18:34:16]*** CUTSNS_PIN = 0 [18:34:17]*** Brake cut motor [18:34:17]Read from MH i2c: 01 [18:34:17]MH_I2C_Read... [18:34:17]*** Stop cut motor [18:34:17]*** Cut end [18:34:17]Read from MH i2c: 01 07 00 [18:34:17]MH_I2C_Read... [18:34:17]Read from MH i2c: 01 07 00 69 73 00 00 00 00 00 FF 0F F1 [18:34:17]process_action close_receipt done [18:34:17]requested_data is exist [18:34:17]produce_requested_data [18:34:17]requested_item fm.sn is exist - process it [18:34:17]wFMCommunicate request_size=4 [18:34:17]MH_SAM_APDU [18:34:17]CAPDU: 80 11 00 00 [18:34:17]Write to MH i2c: E2 08 00 6A 73 80 11 00 00 00 00 00 00 57 [18:34:17]Write i2c OK [18:34:17]MH_I2C_Read... [18:34:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:17]Read from MH i2c: E2 [18:34:17]MH_I2C_Read... [18:34:17]Read from MH i2c: E2 17 00 [18:34:17]MH_I2C_Read... [18:34:17]Read from MH i2c: E2 17 00 6A 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AE [18:34:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:34:17]wFMCommunicate OK [18:34:17]requested_item fd.num is exist - process it [18:34:17]SAM_PROTO_GetFieldsCounters [18:34:17]wFMCommunicate request_size=4 [18:34:17]MH_SAM_APDU [18:34:17]CAPDU: 80 13 00 00 [18:34:17]Write to MH i2c: E2 08 00 6B 73 80 13 00 00 00 00 00 00 5A [18:34:17]Write i2c OK [18:34:17]MH_I2C_Read... [18:34:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:17]Read from MH i2c: E2 [18:34:17]MH_I2C_Read... [18:34:17]Read from MH i2c: E2 62 00 [18:34:17]MH_I2C_Read... [18:34:17]Read from MH i2c: E2 62 00 6B 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A1 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [18:34:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A1 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:17]wFMCommunicate OK [18:34:17]SAM_PROTO_GetFieldsCounters done [18:34:17]requested_item shift.num is exist - process it [18:34:17]requested_item shift.opened is exist - process it [18:34:17]req_shift_opened [18:34:17]FM_GetShiftState [18:34:17]SAM_PROTO_GetShiftState [18:34:17]wFMCommunicate request_size=4 [18:34:17]MH_SAM_APDU [18:34:17]CAPDU: 80 13 01 00 [18:34:17]Write to MH i2c: E2 08 00 6C 73 80 13 01 00 00 00 00 00 5C [18:34:17]Write i2c OK [18:34:17]MH_I2C_Read... [18:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:17]Read from MH i2c: E2 [18:34:17]MH_I2C_Read... [18:34:17]Read from MH i2c: E2 0E 00 [18:34:17]MH_I2C_Read... [18:34:17]Read from MH i2c: E2 0E 00 6C 73 00 09 00 01 98 11 45 67 00 00 00 00 90 00 BD [18:34:17]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:34:17]wFMCommunicate OK [18:34:17]SAM_PROTO_GetShiftState done [18:34:17]FM_GetShiftState done [18:34:17]req_shift_opened done [18:34:17]requested_item shift.open_date is exist - process it [18:34:17]req_shift_open_date [18:34:17]req_shift_open_date done [18:34:17]produce_requested_data done [18:34:17]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123297,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [18:34:17]process_action_free close_receipt [18:34:17]json_value_free [18:34:17]json_value_free done [18:34:17]process_json_proto returns [18:34:17]Send response to host [18:34:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123297,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [18:34:17]free response buf [18:34:17]execute_script done [18:34:17]execute_script returns [18:34:17]free content buf [18:34:17]Sock 9.Close socket [18:34:17]Sock 9.Thread stoped [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:56]OFD Sender: No OFD packet to send [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:56]OFD Sender: No OFD packet to send [18:39:01]OFD Sender: No OFD packet to send [18:39:06]OFD Sender: No OFD packet to send [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:39]accept exits with 7 [18:41:39]New connection [18:41:39]New thread 3066723684 created [18:41:39]Thread 3066580324 joined [18:41:39]Waiting for new connection... [18:41:39] Sock 7.Parse request [18:41:39]Sock 7.Check first char [18:41:39]Sock 7.First char is OK [18:41:39]request: POST /json_proto HTTP/1.0 [18:41:39]Method: POST [18:41:39]URL: /json_proto [18:41:39]Method is POST - this is cgi request [18:41:39]url: /json_proto [18:41:39]query_string will be loaded in cgi processing [18:41:39]execute_cgi json_proto POST (null) [18:41:39]execute_cgi path=json_proto method=POST [18:41:39]POST find Content-Length [18:41:39]Host: 172.17.37.4:8080 [18:41:39]Content-Length: 678 [18:41:39]Content-Type: application/json [18:41:39] [18:41:39]POST finish read [18:41:39]Found Content-Length = 678 [18:41:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:39]execute_script... [18:41:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:39]POST & json_proto [18:41:39]process_json_proto [18:41:39]json parsed OK: [18:41:39]protocol is kg_v1.0 [18:41:39]action value=close_receipt [18:41:39]process_action close_receipt [18:41:39]cmd_close_receipt [18:41:39]MH_GetDate [18:41:39]Write to MH i2c: F0 00 00 6D 73 CF [18:41:39]Write i2c OK [18:41:39]MH_I2C_Read... [18:41:39]Read from MH i2c: F0 [18:41:39]MH_I2C_Read... [18:41:39]Read from MH i2c: F0 09 00 [18:41:39]MH_I2C_Read... [18:41:39]Read from MH i2c: F0 09 00 6D 73 00 6F 16 46 67 B8 5A 43 67 C6 [18:41:39]GetLastDocTimeStamp 1732646065 [18:41:39]current date 1732646511 [18:41:39]FM_GetShiftState [18:41:39]SAM_PROTO_GetShiftState [18:41:39]wFMCommunicate request_size=4 [18:41:39]MH_SAM_APDU [18:41:39]CAPDU: 80 13 01 00 [18:41:39]Write to MH i2c: E2 08 00 6E 73 80 13 01 00 00 00 00 00 5E [18:41:39]Write i2c OK [18:41:39]MH_I2C_Read... [18:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:39]Read from MH i2c: E2 [18:41:39]MH_I2C_Read... [18:41:39]Read from MH i2c: E2 0E 00 [18:41:39]MH_I2C_Read... [18:41:39]Read from MH i2c: E2 0E 00 6E 73 00 09 00 01 98 11 45 67 00 00 00 00 90 00 BF [18:41:39]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:41:39]wFMCommunicate OK [18:41:39]SAM_PROTO_GetShiftState done [18:41:39]FM_GetShiftState done [18:41:39]opened in 1732579736 [18:41:39]opened+sec_in_day 1732666136 [18:41:39]quantity*price = 70028 [18:41:39]sum+1 = 70030 [18:41:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 152 26.11.2024 18:41 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123298 ФПД: 257518560188101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T184151&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123298&fm=257518560188101&tin=02508201610067®Number=0000000000092681&sum=70000 [18:41:41]StoreToDocumentArchive [18:41:41]shift 557 fd 123298 [18:41:41]save to /storage/0557/doc_00123298 [18:41:41]save last doc name /storage/0557/doc_00123298 to /storage/kkm_last_doc_name [18:41:41]save OK [18:41:41]Clear old archive folders... [18:41:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:41:41]tlvbuf is 01FBE3F0 [18:41:41]SAM_PROTO_ClearQueue [18:41:41]wFMCommunicate request_size=4 [18:41:41]MH_SAM_APDU [18:41:41]CAPDU: 80 09 00 00 [18:41:41]Write to MH i2c: E2 08 00 7B 73 80 09 00 00 00 00 00 00 60 [18:41:41]Write i2c OK [18:41:41]MH_I2C_Read... [18:41:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:41]Read from MH i2c: E2 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: E2 03 00 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: E2 03 00 7B 73 00 90 00 62 [18:41:41]RAPDU: 90 00 [18:41:41]wFMCommunicate OK [18:41:41]SAM_PROTO_ClearQueue done [18:41:41]KKMCreateOFDPacket [18:41:41]OFDProtocolAddRootSTLVToBuf [18:41:41]FM_MakeSignedData [18:41:41]FM_MakeSignedData [18:41:41]SAM_PROTO_SignData [18:41:41]wFMCommunicate request_size=4 [18:41:41]MH_SAM_APDU [18:41:41]CAPDU: 80 0D 01 02 [18:41:41]Write to MH i2c: E2 08 00 7C 73 80 0D 01 02 00 00 00 00 68 [18:41:41]Write i2c OK [18:41:41]MH_I2C_Read... [18:41:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:41]Read from MH i2c: E2 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: E2 03 00 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: E2 03 00 7C 73 00 90 00 63 [18:41:41]RAPDU: 90 00 [18:41:41]wFMCommunicate OK [18:41:41]wFMCommunicate request_size=255 [18:41:41]MH_SAM_APDU [18:41:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 6F 16 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A2 E1 01 00 35 04 06 00 EA [18:41:41]Write to MH i2c: E2 02 01 7D 73 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 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 6F 16 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A2 E1 01 00 35 04 06 00 EA 00 00 44 [18:41:41]Write i2c OK [18:41:41]MH_I2C_Read... [18:41:41]OFD Sender: No OFD packet to send [18:41:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:41]Read from MH i2c: E2 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: E2 03 00 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: E2 03 00 7D 73 00 90 00 64 [18:41:41]RAPDU: 90 00 [18:41:41]wFMCommunicate OK [18:41:41]wFMCommunicate request_size=10 [18:41:41]MH_SAM_APDU [18:41:41]CAPDU: 80 0D 02 02 05 36 36 4D 96 C5 [18:41:41]Write to MH i2c: E2 0D 00 7E 73 80 0D 02 02 05 00 36 36 4D 96 C5 00 00 89 [18:41:41]Write i2c OK [18:41:41]MH_I2C_Read... [18:41:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:41]Read from MH i2c: E2 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: E2 03 00 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: E2 03 00 7E 73 00 90 00 65 [18:41:41]RAPDU: 90 00 [18:41:41]wFMCommunicate OK [18:41:41]wFMCommunicate request_size=4 [18:41:41]MH_SAM_APDU [18:41:41]CAPDU: 80 0D 03 02 [18:41:41]Write to MH i2c: E2 08 00 7F 73 80 0D 03 02 00 00 00 00 6D [18:41:41]Write i2c OK [18:41:41]MH_I2C_Read... [18:41:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:41]Read from MH i2c: E2 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: E2 0B 00 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: E2 0B 00 7F 73 00 B7 8A 33 66 84 65 A8 E4 90 00 BD [18:41:41]RAPDU: B7 8A 33 66 84 65 A8 E4 90 00 [18:41:41]wFMCommunicate OK [18:41:41]SAM_PROTO_SignData done [18:41:41]FM_MakeSignedData done [18:41:41]CreateOFDProtocolMessage [18:41:41]wFMCommunicate request_size=4 [18:41:41]MH_SAM_APDU [18:41:41]CAPDU: 80 11 00 00 [18:41:41]Write to MH i2c: E2 08 00 80 73 80 11 00 00 00 00 00 00 6D [18:41:41]Write i2c OK [18:41:41]MH_I2C_Read... [18:41:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:41]Read from MH i2c: E2 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: E2 17 00 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: E2 17 00 80 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C4 [18:41:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:41:41]wFMCommunicate OK [18:41:41]CreateOFDProtocolMessage done [18:41:41]OFDSenderStorePacket 123298 [18:41:41]StoreOFDPacket docnum=123298 [18:41:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1D 8B 07 01 BA 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 6F 16 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A2 E1 01 00 35 04 06 00 EA 36 36 4D 96 C5 B7 8A 33 66 84 65 A8 E4 [18:41:41]CheckFolder [18:41:41]dirname=/storage/ofd_packets [18:41:41]CheckFolder done [18:41:41]ProducePacketName [18:41:41]name=ofd_packets/00123298 [18:41:41]NVStorageSaveData ofd_packets/00123298 [18:41:41]File name is /storage/ofd_packets/00123298 [18:41:41]Write 301 bytes [18:41:41]NVStorageSaveData done [18:41:41]OFDSenderStorePacket done [18:41:41]KKMCreateOFDPacket done [18:41:41]NVStorageSaveData kkm_last_timestamp [18:41:41]File name is /storage/kkm_last_timestamp [18:41:41]Write 4 bytes [18:41:41]NVStorageSaveData done [18:41:41]ExternCall_PrintAddStr [18:41:41]wPrintStart [18:41:41]Write to MH i2c: 01 00 00 81 73 F4 [18:41:41]Write i2c OK [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: 01 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: 01 07 00 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: 01 07 00 81 73 00 00 00 00 00 FF 0F 09 [18:41:41]RasterBufferAndPrint [18:41:41]line Счет N : (1)718128 [18:41:41]line ИНН: 02508201610067 [18:41:41]line Контрольно-Кассовый Чек [18:41:41]line ПРОДАЖА [18:41:41]line ТРК (МРК, ГНК) : 12 [18:41:41]line Товар: 2710124130 [18:41:41]line Аи-92-К-4 [18:41:41]line 10.390 * 67.40 [18:41:41]line = 700.29 [18:41:41]line НДС 12% НСП 1% [18:41:41]line > о реализуемом товаре [18:41:41]line ОКРУГЛЕНИЕ: -0.29 [18:41:41]line ИТОГО: 700.00 [18:41:41]line Внесено: 700.00 [18:41:41]line СДАЧА: 0.00 [18:41:41]line НСП 1% : 6.20 [18:41:41]line НДС 12% : 74.37 [18:41:41]line Наличными: 700.00 [18:41:41]line Безнал.: 0.00 [18:41:41]line Место: АЗС № 64 "Партнер Нефть" [18:41:41]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:41:41]line СНО: Общий режим [18:41:41]line Чек 152 26.11.2024 18:41 [18:41:41]line Смена: 557 ФФД: 1.0 [18:41:41]line ЗНМ: 0300000033 [18:41:41]line РНМ: 0000000000092681 [18:41:41]line Версия ККМ: 001 [18:41:41]line ФМ: 0000000000874881 [18:41:41]line ФД: 123298 [18:41:41]line ФПД: 257518560188101 [18:41:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T184151&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123298&fm=257518560188101&tin=02508201610067®Number=0000000000092681&sum=70000 [18:41:41]OFD Sender: Processing packet 123298 [packets to send 7, broken 6] [18:41:41]ProducePacketName [18:41:41]name=ofd_packets/00123298 [18:41:41]OFD Sender: To server: pG, [18:41:41]CommunicateWithHost lk.salyk.kg:30040 [18:41:41]ConnectInit lk.salyk.kg [18:41:41]written 0, free lines is 4095 [18:41:42]Connected sock=10 [18:41:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1D 8B 07 01 BA 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 6F 16 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A2 E1 01 00 35 04 06 00 EA 36 36 4D 96 C5 B7 8A 33 66 84 65 A8 E4 [18:41:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 B7 14 47 00 A4 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A2 E1 01 00 F4 03 04 00 31 C2 45 67 B6 04 01 00 00 96 C9 EA C8 0B 66 CD 7C [18:41:42]CommunicateWithHost err = 0 [18:41:42]CheckOFDResponse [18:41:42]1017 (14) - 77093643461234 [18:41:42]1041 (16) - 0000000000874881 [18:41:42]1040 (4) - 123298 [18:41:42]1012 (4) - 26.11.2024 12:42 [18:41:42]1206 (1) - 0 [18:41:42]OFD Sender: Remove packet 123298 [18:41:42]ProducePacketName [18:41:42]name=ofd_packets/00123298 [18:41:42]NVStorageDeleteData [18:41:42]Write to MH i2c: 01 00 00 AC 73 1F [18:41:42]Write i2c OK [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: 01 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: 01 07 00 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: 01 07 00 AC 73 00 00 00 00 00 4B 0C 7D [18:41:42]RasterBufferAndPrint [18:41:42]line [18:41:42]line [18:41:42]line [18:41:42]line [18:41:42]line [18:41:42]written 0, free lines is 3152 [18:41:42]MH_Cut [18:41:42]Write to MH i2c: D1 01 00 B3 73 01 F8 [18:41:42]Write i2c OK [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: D1 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: D1 01 00 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: D1 01 00 B3 73 00 F7 [18:41:42]Write to MH i2c: 01 00 00 B4 73 27 [18:41:42]Write i2c OK [18:41:42]MH_I2C_Read... [18:41:42]OFD Sender: No OFD packet to send [18:41:43]*** Cut start [18:41:43]*** Partial cut [18:41:43]*** CUTSNS_PIN = 1 [18:41:43]*** CUTSNS_PIN = 0 [18:41:44]*** Brake cut motor [18:41:44]Read from MH i2c: 01 [18:41:44]MH_I2C_Read... [18:41:44]*** Stop cut motor [18:41:44]*** Cut end [18:41:44]Read from MH i2c: 01 07 00 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: 01 07 00 B4 73 00 00 00 00 00 FF 0F 3C [18:41:44]process_action close_receipt done [18:41:44]requested_data is exist [18:41:44]produce_requested_data [18:41:44]requested_item fm.sn is exist - process it [18:41:44]wFMCommunicate request_size=4 [18:41:44]MH_SAM_APDU [18:41:44]CAPDU: 80 11 00 00 [18:41:44]Write to MH i2c: E2 08 00 B5 73 80 11 00 00 00 00 00 00 A2 [18:41:44]Write i2c OK [18:41:44]MH_I2C_Read... [18:41:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:44]Read from MH i2c: E2 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: E2 17 00 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: E2 17 00 B5 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F9 [18:41:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:41:44]wFMCommunicate OK [18:41:44]requested_item fd.num is exist - process it [18:41:44]SAM_PROTO_GetFieldsCounters [18:41:44]wFMCommunicate request_size=4 [18:41:44]MH_SAM_APDU [18:41:44]CAPDU: 80 13 00 00 [18:41:44]Write to MH i2c: E2 08 00 B6 73 80 13 00 00 00 00 00 00 A5 [18:41:44]Write i2c OK [18:41:44]MH_I2C_Read... [18:41:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:44]Read from MH i2c: E2 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: E2 62 00 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: E2 62 00 B6 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A2 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [18:41:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A2 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:44]wFMCommunicate OK [18:41:44]SAM_PROTO_GetFieldsCounters done [18:41:44]requested_item shift.num is exist - process it [18:41:44]requested_item shift.opened is exist - process it [18:41:44]req_shift_opened [18:41:44]FM_GetShiftState [18:41:44]SAM_PROTO_GetShiftState [18:41:44]wFMCommunicate request_size=4 [18:41:44]MH_SAM_APDU [18:41:44]CAPDU: 80 13 01 00 [18:41:44]Write to MH i2c: E2 08 00 B7 73 80 13 01 00 00 00 00 00 A7 [18:41:44]Write i2c OK [18:41:44]MH_I2C_Read... [18:41:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:44]Read from MH i2c: E2 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: E2 0E 00 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: E2 0E 00 B7 73 00 09 00 01 98 11 45 67 00 00 00 00 90 00 08 [18:41:44]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:41:44]wFMCommunicate OK [18:41:44]SAM_PROTO_GetShiftState done [18:41:44]FM_GetShiftState done [18:41:44]req_shift_opened done [18:41:44]requested_item shift.open_date is exist - process it [18:41:44]req_shift_open_date [18:41:44]req_shift_open_date done [18:41:44]produce_requested_data done [18:41:44]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123298,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [18:41:44]process_action_free close_receipt [18:41:44]json_value_free [18:41:44]json_value_free done [18:41:44]process_json_proto returns [18:41:44]Send response to host [18:41:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123298,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [18:41:44]free response buf [18:41:44]execute_script done [18:41:44]execute_script returns [18:41:44]free content buf [18:41:44]Sock 7.Close socket [18:41:44]Sock 7.Thread stoped [18:41:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:02]OFD Sender: No OFD packet to send [18:42:07]OFD Sender: No OFD packet to send [18:42:12]OFD Sender: No OFD packet to send [18:42:17]OFD Sender: No OFD packet to send [18:42:22]OFD Sender: No OFD packet to send [18:42:27]OFD Sender: No OFD packet to send [18:42:32]OFD Sender: No OFD packet to send [18:42:37]OFD Sender: No OFD packet to send [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:03]OFD Sender: No OFD packet to send [18:46:08]OFD Sender: No OFD packet to send [18:46:13]OFD Sender: No OFD packet to send [18:46:18]OFD Sender: No OFD packet to send [18:46:23]OFD Sender: No OFD packet to send [18:46:28]OFD Sender: No OFD packet to send [18:46:33]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:32]accept exits with 9 [18:47:32]New connection [18:47:32]New thread 3066580324 created [18:47:32]Thread 3066723684 joined [18:47:32]Waiting for new connection... [18:47:32] Sock 9.Parse request [18:47:32]Sock 9.Check first char [18:47:32]Sock 9.First char is OK [18:47:32]request: POST /json_proto HTTP/1.0 [18:47:32]Method: POST [18:47:32]URL: /json_proto [18:47:32]Method is POST - this is cgi request [18:47:32]url: /json_proto [18:47:32]query_string will be loaded in cgi processing [18:47:32]execute_cgi json_proto POST (null) [18:47:32]execute_cgi path=json_proto method=POST [18:47:32]POST find Content-Length [18:47:32]Host: 172.17.37.4:8080 [18:47:32]Content-Length: 682 [18:47:32]Content-Type: application/json [18:47:32] [18:47:32]POST finish read [18:47:32]Found Content-Length = 682 [18:47:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:32]execute_script... [18:47:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:32]POST & json_proto [18:47:32]process_json_proto [18:47:32]json parsed OK: [18:47:32]protocol is kg_v1.0 [18:47:32]action value=close_receipt [18:47:32]process_action close_receipt [18:47:32]cmd_close_receipt [18:47:32]MH_GetDate [18:47:32]Write to MH i2c: F0 00 00 B8 73 1A [18:47:32]Write i2c OK [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: F0 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: F0 09 00 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: F0 09 00 B8 73 00 D0 17 46 67 B8 5A 43 67 73 [18:47:32]GetLastDocTimeStamp 1732646511 [18:47:32]current date 1732646864 [18:47:32]FM_GetShiftState [18:47:32]SAM_PROTO_GetShiftState [18:47:32]wFMCommunicate request_size=4 [18:47:32]MH_SAM_APDU [18:47:32]CAPDU: 80 13 01 00 [18:47:32]Write to MH i2c: E2 08 00 B9 73 80 13 01 00 00 00 00 00 A9 [18:47:32]Write i2c OK [18:47:32]MH_I2C_Read... [18:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:32]Read from MH i2c: E2 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 0E 00 [18:47:32]MH_I2C_Read... [18:47:32]Read from MH i2c: E2 0E 00 B9 73 00 09 00 01 98 11 45 67 00 00 00 00 90 00 0A [18:47:32]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:47:32]wFMCommunicate OK [18:47:32]SAM_PROTO_GetShiftState done [18:47:32]FM_GetShiftState done [18:47:32]opened in 1732579736 [18:47:32]opened+sec_in_day 1732666136 [18:47:32]quantity*price = 100021 [18:47:32]sum+1 = 100023 [18:47:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 153 26.11.2024 18:47 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123299 ФПД: 121228818488182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T184744&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123299&fm=121228818488182&tin=02508201610067®Number=0000000000092681&sum=100000 [18:47:33]StoreToDocumentArchive [18:47:33]shift 557 fd 123299 [18:47:33]save to /storage/0557/doc_00123299 [18:47:33]save last doc name /storage/0557/doc_00123299 to /storage/kkm_last_doc_name [18:47:33]save OK [18:47:33]Clear old archive folders... [18:47:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:47:33]tlvbuf is 0212BC20 [18:47:33]SAM_PROTO_ClearQueue [18:47:33]wFMCommunicate request_size=4 [18:47:33]MH_SAM_APDU [18:47:33]CAPDU: 80 09 00 00 [18:47:33]Write to MH i2c: E2 08 00 C6 73 80 09 00 00 00 00 00 00 AB [18:47:33]Write i2c OK [18:47:33]MH_I2C_Read... [18:47:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:33]Read from MH i2c: E2 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 03 00 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 03 00 C6 73 00 90 00 AD [18:47:33]RAPDU: 90 00 [18:47:33]wFMCommunicate OK [18:47:33]SAM_PROTO_ClearQueue done [18:47:33]KKMCreateOFDPacket [18:47:33]OFDProtocolAddRootSTLVToBuf [18:47:33]FM_MakeSignedData [18:47:33]FM_MakeSignedData [18:47:33]SAM_PROTO_SignData [18:47:33]wFMCommunicate request_size=4 [18:47:33]MH_SAM_APDU [18:47:33]CAPDU: 80 0D 01 02 [18:47:33]Write to MH i2c: E2 08 00 C7 73 80 0D 01 02 00 00 00 00 B3 [18:47:33]Write i2c OK [18:47:33]MH_I2C_Read... [18:47:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:33]Read from MH i2c: E2 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 03 00 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 03 00 C7 73 00 90 00 AE [18:47:33]RAPDU: 90 00 [18:47:33]wFMCommunicate OK [18:47:33]wFMCommunicate request_size=255 [18:47:33]MH_SAM_APDU [18:47:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 D0 17 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A3 E1 01 00 35 04 06 00 6E [18:47:33]Write to MH i2c: E2 02 01 C8 73 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 D0 17 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A3 E1 01 00 35 04 06 00 6E 00 00 59 [18:47:33]Write i2c OK [18:47:33]MH_I2C_Read... [18:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:33]Read from MH i2c: E2 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 03 00 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 03 00 C8 73 00 90 00 AF [18:47:33]RAPDU: 90 00 [18:47:33]wFMCommunicate OK [18:47:33]wFMCommunicate request_size=10 [18:47:33]MH_SAM_APDU [18:47:33]CAPDU: 80 0D 02 02 05 41 C8 A9 9B 76 [18:47:33]Write to MH i2c: E2 0D 00 C9 73 80 0D 02 02 05 00 41 C8 A9 9B 76 00 00 83 [18:47:33]Write i2c OK [18:47:33]MH_I2C_Read... [18:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:33]Read from MH i2c: E2 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 03 00 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 03 00 C9 73 00 90 00 B0 [18:47:33]RAPDU: 90 00 [18:47:33]wFMCommunicate OK [18:47:33]wFMCommunicate request_size=4 [18:47:33]MH_SAM_APDU [18:47:33]CAPDU: 80 0D 03 02 [18:47:33]Write to MH i2c: E2 08 00 CA 73 80 0D 03 02 00 00 00 00 B8 [18:47:33]Write i2c OK [18:47:33]MH_I2C_Read... [18:47:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:33]Read from MH i2c: E2 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 0B 00 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 0B 00 CA 73 00 9C 77 65 76 08 7F 9B 6D 90 00 36 [18:47:33]RAPDU: 9C 77 65 76 08 7F 9B 6D 90 00 [18:47:33]wFMCommunicate OK [18:47:33]SAM_PROTO_SignData done [18:47:33]FM_MakeSignedData done [18:47:33]CreateOFDProtocolMessage [18:47:33]wFMCommunicate request_size=4 [18:47:33]MH_SAM_APDU [18:47:33]CAPDU: 80 11 00 00 [18:47:33]Write to MH i2c: E2 08 00 CB 73 80 11 00 00 00 00 00 00 B8 [18:47:33]Write i2c OK [18:47:33]MH_I2C_Read... [18:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:33]Read from MH i2c: E2 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 17 00 [18:47:33]MH_I2C_Read... [18:47:33]Read from MH i2c: E2 17 00 CB 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0F [18:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:47:33]wFMCommunicate OK [18:47:33]CreateOFDProtocolMessage done [18:47:33]OFDSenderStorePacket 123299 [18:47:33]StoreOFDPacket docnum=123299 [18:47:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 9B C8 07 01 37 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 D0 17 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A3 E1 01 00 35 04 06 00 6E 41 C8 A9 9B 76 9C 77 65 76 08 7F 9B 6D [18:47:33]CheckFolder [18:47:33]dirname=/storage/ofd_packets [18:47:33]CheckFolder done [18:47:33]ProducePacketName [18:47:33]name=ofd_packets/00123299 [18:47:33]NVStorageSaveData ofd_packets/00123299 [18:47:33]File name is /storage/ofd_packets/00123299 [18:47:33]Write 301 bytes [18:47:33]NVStorageSaveData done [18:47:33]OFDSenderStorePacket done [18:47:33]KKMCreateOFDPacket done [18:47:33]NVStorageSaveData kkm_last_timestamp [18:47:33]File name is /storage/kkm_last_timestamp [18:47:33]Write 4 bytes [18:47:33]NVStorageSaveData done [18:47:34]ExternCall_PrintAddStr [18:47:34]wPrintStart [18:47:34]Write to MH i2c: 01 00 00 CC 73 3F [18:47:34]Write i2c OK [18:47:34]MH_I2C_Read... [18:47:34]Read from MH i2c: 01 [18:47:34]MH_I2C_Read... [18:47:34]Read from MH i2c: 01 07 00 [18:47:34]MH_I2C_Read... [18:47:34]Read from MH i2c: 01 07 00 CC 73 00 00 00 00 00 FF 0F 54 [18:47:34]RasterBufferAndPrint [18:47:34]line Счет N : (1)718129 [18:47:34]line ИНН: 02508201610067 [18:47:34]line Контрольно-Кассовый Чек [18:47:34]line ПРОДАЖА [18:47:34]line ТРК (МРК, ГНК) : 32 [18:47:34]line Товар: 2710124130 [18:47:34]line Аи-92-К-4 [18:47:34]line 14.840 * 67.40 [18:47:34]line = 1000.22 [18:47:34]line НДС 12% НСП 1% [18:47:34]line > о реализуемом товаре [18:47:34]line ОКРУГЛЕНИЕ: -0.22 [18:47:34]line ИТОГО: 1000.00 [18:47:34]line Внесено: 1000.00 [18:47:34]line СДАЧА: 0.00 [18:47:34]line НСП 1% : 8.85 [18:47:34]line НДС 12% : 106.22 [18:47:34]line Наличными: 1000.00 [18:47:34]line Безнал.: 0.00 [18:47:34]line Место: АЗС № 64 "Партнер Нефть" [18:47:34]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:47:34]line СНО: Общий режим [18:47:34]line Чек 153 26.11.2024 18:47 [18:47:34]line Смена: 557 ФФД: 1.0 [18:47:34]line ЗНМ: 0300000033 [18:47:34]line РНМ: 0000000000092681 [18:47:34]line Версия ККМ: 001 [18:47:34]line ФМ: 0000000000874881 [18:47:34]line ФД: 123299 [18:47:34]line ФПД: 121228818488182 [18:47:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T184744&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123299&fm=121228818488182&tin=02508201610067®Number=0000000000092681&sum=100000 [18:47:34]OFD Sender: Processing packet 123299 [packets to send 7, broken 6] [18:47:34]ProducePacketName [18:47:34]name=ofd_packets/00123299 [18:47:34]OFD Sender: To server: pG, [18:47:34]CommunicateWithHost lk.salyk.kg:30040 [18:47:34]ConnectInit lk.salyk.kg [18:47:34]written 0, free lines is 4095 [18:47:34]Connected sock=10 [18:47:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 9B C8 07 01 37 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 D0 17 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A3 E1 01 00 35 04 06 00 6E 41 C8 A9 9B 76 9C 77 65 76 08 7F 9B 6D [18:47:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 49 52 47 00 CA 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A3 E1 01 00 F4 03 04 00 92 C3 45 67 B6 04 01 00 00 16 35 27 CE DB 7C 10 70 [18:47:34]CommunicateWithHost err = 0 [18:47:34]CheckOFDResponse [18:47:34]1017 (14) - 77093643461234 [18:47:34]1041 (16) - 0000000000874881 [18:47:34]1040 (4) - 123299 [18:47:34]1012 (4) - 26.11.2024 12:48 [18:47:34]1206 (1) - 0 [18:47:34]OFD Sender: Remove packet 123299 [18:47:34]ProducePacketName [18:47:34]name=ofd_packets/00123299 [18:47:34]NVStorageDeleteData [18:47:34]Write to MH i2c: 01 00 00 F7 73 6A [18:47:34]Write i2c OK [18:47:34]MH_I2C_Read... [18:47:34]Read from MH i2c: 01 [18:47:34]MH_I2C_Read... [18:47:34]Read from MH i2c: 01 07 00 [18:47:34]MH_I2C_Read... [18:47:34]Read from MH i2c: 01 07 00 F7 73 00 00 00 00 00 50 0C CD [18:47:34]RasterBufferAndPrint [18:47:34]line [18:47:34]line [18:47:34]line [18:47:34]line [18:47:34]line [18:47:34]written 0, free lines is 3157 [18:47:34]MH_Cut [18:47:34]Write to MH i2c: D1 01 00 FE 73 01 43 [18:47:34]Write i2c OK [18:47:34]MH_I2C_Read... [18:47:34]Read from MH i2c: D1 [18:47:34]MH_I2C_Read... [18:47:34]Read from MH i2c: D1 01 00 [18:47:34]MH_I2C_Read... [18:47:34]Read from MH i2c: D1 01 00 FE 73 00 42 [18:47:34]Write to MH i2c: 01 00 00 FF 73 72 [18:47:34]Write i2c OK [18:47:34]MH_I2C_Read... [18:47:35]OFD Sender: No OFD packet to send [18:47:36]*** Cut start [18:47:36]*** Partial cut [18:47:36]*** CUTSNS_PIN = 1 [18:47:36]*** CUTSNS_PIN = 0 [18:47:36]*** Brake cut motor [18:47:36]Read from MH i2c: 01 [18:47:36]MH_I2C_Read... [18:47:36]*** Stop cut motor [18:47:36]*** Cut end [18:47:36]Read from MH i2c: 01 07 00 [18:47:36]MH_I2C_Read... [18:47:36]Read from MH i2c: 01 07 00 FF 73 00 00 00 00 00 FF 0F 87 [18:47:36]process_action close_receipt done [18:47:36]requested_data is exist [18:47:36]produce_requested_data [18:47:36]requested_item fm.sn is exist - process it [18:47:36]wFMCommunicate request_size=4 [18:47:36]MH_SAM_APDU [18:47:36]CAPDU: 80 11 00 00 [18:47:36]Write to MH i2c: E2 08 00 00 74 80 11 00 00 00 00 00 00 EE [18:47:36]Write i2c OK [18:47:36]MH_I2C_Read... [18:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:36]Read from MH i2c: E2 [18:47:36]MH_I2C_Read... [18:47:36]Read from MH i2c: E2 17 00 [18:47:36]MH_I2C_Read... [18:47:36]Read from MH i2c: E2 17 00 00 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 45 [18:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:47:36]wFMCommunicate OK [18:47:36]requested_item fd.num is exist - process it [18:47:36]SAM_PROTO_GetFieldsCounters [18:47:36]wFMCommunicate request_size=4 [18:47:36]MH_SAM_APDU [18:47:36]CAPDU: 80 13 00 00 [18:47:36]Write to MH i2c: E2 08 00 01 74 80 13 00 00 00 00 00 00 F1 [18:47:36]Write i2c OK [18:47:36]MH_I2C_Read... [18:47:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:37]Read from MH i2c: E2 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: E2 62 00 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: E2 62 00 01 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A3 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [18:47:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A3 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:37]wFMCommunicate OK [18:47:37]SAM_PROTO_GetFieldsCounters done [18:47:37]requested_item shift.num is exist - process it [18:47:37]requested_item shift.opened is exist - process it [18:47:37]req_shift_opened [18:47:37]FM_GetShiftState [18:47:37]SAM_PROTO_GetShiftState [18:47:37]wFMCommunicate request_size=4 [18:47:37]MH_SAM_APDU [18:47:37]CAPDU: 80 13 01 00 [18:47:37]Write to MH i2c: E2 08 00 02 74 80 13 01 00 00 00 00 00 F3 [18:47:37]Write i2c OK [18:47:37]MH_I2C_Read... [18:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:37]Read from MH i2c: E2 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: E2 0E 00 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: E2 0E 00 02 74 00 09 00 01 98 11 45 67 00 00 00 00 90 00 54 [18:47:37]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:47:37]wFMCommunicate OK [18:47:37]SAM_PROTO_GetShiftState done [18:47:37]FM_GetShiftState done [18:47:37]req_shift_opened done [18:47:37]requested_item shift.open_date is exist - process it [18:47:37]req_shift_open_date [18:47:37]req_shift_open_date done [18:47:37]produce_requested_data done [18:47:37]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123299,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [18:47:37]process_action_free close_receipt [18:47:37]json_value_free [18:47:37]json_value_free done [18:47:37]process_json_proto returns [18:47:37]Send response to host [18:47:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123299,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [18:47:37]free response buf [18:47:37]execute_script done [18:47:37]execute_script returns [18:47:37]free content buf [18:47:37]Sock 9.Close socket [18:47:37]Sock 9.Thread stoped [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:07]accept exits with 7 [18:48:07]New connection [18:48:07]New thread 3066723684 created [18:48:07]Thread 3066580324 joined [18:48:07]Waiting for new connection... [18:48:07] Sock 7.Parse request [18:48:07]Sock 7.Check first char [18:48:07]Sock 7.First char is OK [18:48:07]request: POST /json_proto HTTP/1.0 [18:48:07]Method: POST [18:48:07]URL: /json_proto [18:48:07]Method is POST - this is cgi request [18:48:07]url: /json_proto [18:48:07]query_string will be loaded in cgi processing [18:48:07]execute_cgi json_proto POST (null) [18:48:07]execute_cgi path=json_proto method=POST [18:48:07]POST find Content-Length [18:48:07]Host: 172.17.37.4:8080 [18:48:07]Content-Length: 681 [18:48:07]Content-Type: application/json [18:48:07] [18:48:07]POST finish read [18:48:07]Found Content-Length = 681 [18:48:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 8.020, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:07]execute_script... [18:48:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 8.020, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:07]POST & json_proto [18:48:07]process_json_proto [18:48:07]json parsed OK: [18:48:07]protocol is kg_v1.0 [18:48:07]action value=close_receipt [18:48:07]process_action close_receipt [18:48:07]cmd_close_receipt [18:48:07]MH_GetDate [18:48:07]Write to MH i2c: F0 00 00 03 74 66 [18:48:07]Write i2c OK [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: F0 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: F0 09 00 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: F0 09 00 03 74 00 F3 17 46 67 B8 5A 43 67 E2 [18:48:07]GetLastDocTimeStamp 1732646864 [18:48:07]current date 1732646899 [18:48:07]FM_GetShiftState [18:48:07]SAM_PROTO_GetShiftState [18:48:07]wFMCommunicate request_size=4 [18:48:07]MH_SAM_APDU [18:48:07]CAPDU: 80 13 01 00 [18:48:07]Write to MH i2c: E2 08 00 04 74 80 13 01 00 00 00 00 00 F5 [18:48:07]Write i2c OK [18:48:07]MH_I2C_Read... [18:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:07]Read from MH i2c: E2 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: E2 0E 00 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: E2 0E 00 04 74 00 09 00 01 98 11 45 67 00 00 00 00 90 00 56 [18:48:07]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:48:07]wFMCommunicate OK [18:48:07]SAM_PROTO_GetShiftState done [18:48:07]FM_GetShiftState done [18:48:07]opened in 1732579736 [18:48:07]opened+sec_in_day 1732666136 [18:48:07]quantity*price = 60069 [18:48:07]sum+1 = 60071 [18:48:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 154 26.11.2024 18:48 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123300 ФПД: 42610768042687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T184819&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123300&fm=42610768042687&tin=02508201610067®Number=0000000000092681&sum=60000 [18:48:08]StoreToDocumentArchive [18:48:08]shift 557 fd 123300 [18:48:08]save to /storage/0557/doc_00123300 [18:48:08]save last doc name /storage/0557/doc_00123300 to /storage/kkm_last_doc_name [18:48:08]save OK [18:48:08]Clear old archive folders... [18:48:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:48:08]tlvbuf is 020714A0 [18:48:08]SAM_PROTO_ClearQueue [18:48:08]wFMCommunicate request_size=4 [18:48:08]MH_SAM_APDU [18:48:08]CAPDU: 80 09 00 00 [18:48:08]Write to MH i2c: E2 08 00 11 74 80 09 00 00 00 00 00 00 F7 [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:08]Read from MH i2c: E2 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 03 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 03 00 11 74 00 90 00 F9 [18:48:08]RAPDU: 90 00 [18:48:08]wFMCommunicate OK [18:48:08]SAM_PROTO_ClearQueue done [18:48:08]KKMCreateOFDPacket [18:48:08]OFDProtocolAddRootSTLVToBuf [18:48:08]FM_MakeSignedData [18:48:08]FM_MakeSignedData [18:48:08]SAM_PROTO_SignData [18:48:08]wFMCommunicate request_size=4 [18:48:08]MH_SAM_APDU [18:48:08]CAPDU: 80 0D 01 02 [18:48:08]Write to MH i2c: E2 08 00 12 74 80 0D 01 02 00 00 00 00 FF [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:08]Read from MH i2c: E2 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 03 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 03 00 12 74 00 90 00 FA [18:48:08]RAPDU: 90 00 [18:48:08]wFMCommunicate OK [18:48:08]wFMCommunicate request_size=255 [18:48:08]MH_SAM_APDU [18:48:08]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 35 FF 03 08 00 03 54 1F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 F3 17 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A4 E1 01 00 35 04 06 00 [18:48:08]Write to MH i2c: E2 02 01 13 74 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 35 FF 03 08 00 03 54 1F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 F3 17 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A4 E1 01 00 35 04 06 00 00 00 5E [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:08]Read from MH i2c: E2 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 03 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 03 00 13 74 00 90 00 FB [18:48:08]RAPDU: 90 00 [18:48:08]wFMCommunicate OK [18:48:08]wFMCommunicate request_size=11 [18:48:08]MH_SAM_APDU [18:48:08]CAPDU: 80 0D 02 02 06 26 C1 17 B1 5A BF [18:48:08]Write to MH i2c: E2 0E 00 14 74 80 0D 02 02 06 00 26 C1 17 B1 5A BF 00 00 D6 [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:08]Read from MH i2c: E2 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 03 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 03 00 14 74 00 90 00 FC [18:48:08]RAPDU: 90 00 [18:48:08]wFMCommunicate OK [18:48:08]wFMCommunicate request_size=4 [18:48:08]MH_SAM_APDU [18:48:08]CAPDU: 80 0D 03 02 [18:48:08]Write to MH i2c: E2 08 00 15 74 80 0D 03 02 00 00 00 00 04 [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:08]Read from MH i2c: E2 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 0B 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 0B 00 15 74 00 05 D0 51 CD 22 3A 40 73 90 00 07 [18:48:08]RAPDU: 05 D0 51 CD 22 3A 40 73 90 00 [18:48:08]wFMCommunicate OK [18:48:08]SAM_PROTO_SignData done [18:48:08]FM_MakeSignedData done [18:48:08]CreateOFDProtocolMessage [18:48:08]wFMCommunicate request_size=4 [18:48:08]MH_SAM_APDU [18:48:08]CAPDU: 80 11 00 00 [18:48:08]Write to MH i2c: E2 08 00 16 74 80 11 00 00 00 00 00 00 04 [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:08]Read from MH i2c: E2 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 17 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 17 00 16 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5B [18:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:48:08]wFMCommunicate OK [18:48:08]CreateOFDProtocolMessage done [18:48:08]OFDSenderStorePacket 123300 [18:48:08]StoreOFDPacket docnum=123300 [18:48:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 80 FC 08 01 20 35 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 35 FF 03 08 00 03 54 1F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 F3 17 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A4 E1 01 00 35 04 06 00 26 C1 17 B1 5A BF 05 D0 51 CD 22 3A 40 73 [18:48:08]CheckFolder [18:48:08]dirname=/storage/ofd_packets [18:48:08]CheckFolder done [18:48:08]ProducePacketName [18:48:08]name=ofd_packets/00123300 [18:48:08]NVStorageSaveData ofd_packets/00123300 [18:48:08]File name is /storage/ofd_packets/00123300 [18:48:08]Write 302 bytes [18:48:08]NVStorageSaveData done [18:48:08]OFDSenderStorePacket done [18:48:08]KKMCreateOFDPacket done [18:48:08]NVStorageSaveData kkm_last_timestamp [18:48:08]File name is /storage/kkm_last_timestamp [18:48:08]Write 4 bytes [18:48:08]NVStorageSaveData done [18:48:08]ExternCall_PrintAddStr [18:48:08]wPrintStart [18:48:08]Write to MH i2c: 01 00 00 17 74 8B [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: 01 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: 01 07 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: 01 07 00 17 74 00 00 00 00 00 FF 0F A0 [18:48:08]RasterBufferAndPrint [18:48:08]line Счет N : (1)718130 [18:48:08]line ИНН: 02508201610067 [18:48:08]line Контрольно-Кассовый Чек [18:48:08]line ПРОДАЖА [18:48:08]line ТРК (МРК, ГНК) : 5 [18:48:08]line Товар: 2710194210 [18:48:08]line ДТ(л)-К-5 [18:48:08]line 8.020 * 74.90 [18:48:08]line = 600.70 [18:48:08]line НДС 12% НСП 1% [18:48:08]line > о реализуемом товаре [18:48:08]line ОКРУГЛЕНИЕ: -0.70 [18:48:08]line ИТОГО: 600.00 [18:48:08]line Внесено: 600.00 [18:48:08]line СДАЧА: 0.00 [18:48:08]line НСП 1% : 5.32 [18:48:08]line НДС 12% : 63.79 [18:48:08]line Наличными: 600.00 [18:48:08]line Безнал.: 0.00 [18:48:08]line Место: АЗС № 64 "Партнер Нефть" [18:48:08]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:48:08]line СНО: Общий режим [18:48:08]line Чек 154 26.11.2024 18:48 [18:48:08]line Смена: 557 ФФД: 1.0 [18:48:08]line ЗНМ: 0300000033 [18:48:08]line РНМ: 0000000000092681 [18:48:08]line Версия ККМ: 001 [18:48:08]line ФМ: 0000000000874881 [18:48:08]line ФД: 123300 [18:48:08]line ФПД: 42610768042687 [18:48:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T184819&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123300&fm=42610768042687&tin=02508201610067®Number=0000000000092681&sum=60000 [18:48:09]OFD Sender: Processing packet 123300 [packets to send 7, broken 6] [18:48:09]ProducePacketName [18:48:09]name=ofd_packets/00123300 [18:48:09]OFD Sender: To server: pG, [18:48:09]CommunicateWithHost lk.salyk.kg:30040 [18:48:09]ConnectInit lk.salyk.kg [18:48:09]written 0, free lines is 4095 [18:48:09]Connected sock=9 [18:48:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 80 FC 08 01 20 35 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 35 FF 03 08 00 03 54 1F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 F3 17 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A4 E1 01 00 35 04 06 00 26 C1 17 B1 5A BF 05 D0 51 CD 22 3A 40 73 [18:48:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 32 13 47 00 F9 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A4 E1 01 00 F4 03 04 00 B4 C3 45 67 B6 04 01 00 00 5D A9 F3 26 A6 71 20 13 [18:48:09]CommunicateWithHost err = 0 [18:48:09]CheckOFDResponse [18:48:09]1017 (14) - 77093643461234 [18:48:09]1041 (16) - 0000000000874881 [18:48:09]1040 (4) - 123300 [18:48:09]1012 (4) - 26.11.2024 12:48 [18:48:09]1206 (1) - 0 [18:48:09]OFD Sender: Remove packet 123300 [18:48:09]ProducePacketName [18:48:09]name=ofd_packets/00123300 [18:48:09]NVStorageDeleteData [18:48:09]Write to MH i2c: 01 00 00 42 74 B6 [18:48:09]Write i2c OK [18:48:09]MH_I2C_Read... [18:48:09]Read from MH i2c: 01 [18:48:09]MH_I2C_Read... [18:48:09]Read from MH i2c: 01 07 00 [18:48:09]MH_I2C_Read... [18:48:09]Read from MH i2c: 01 07 00 42 74 00 00 00 00 00 50 0C 19 [18:48:09]RasterBufferAndPrint [18:48:09]line [18:48:09]line [18:48:09]line [18:48:09]line [18:48:09]line [18:48:09]written 0, free lines is 3156 [18:48:09]MH_Cut [18:48:09]Write to MH i2c: D1 01 00 49 74 01 8F [18:48:09]Write i2c OK [18:48:09]MH_I2C_Read... [18:48:09]Read from MH i2c: D1 [18:48:09]MH_I2C_Read... [18:48:09]Read from MH i2c: D1 01 00 [18:48:09]MH_I2C_Read... [18:48:09]Read from MH i2c: D1 01 00 49 74 00 8E [18:48:09]Write to MH i2c: 01 00 00 4A 74 BE [18:48:09]Write i2c OK [18:48:09]MH_I2C_Read... [18:48:09]OFD Sender: No OFD packet to send [18:48:10]*** Cut start [18:48:10]*** Partial cut [18:48:10]*** CUTSNS_PIN = 1 [18:48:11]*** CUTSNS_PIN = 0 [18:48:11]*** Brake cut motor [18:48:11]Read from MH i2c: 01 [18:48:11]MH_I2C_Read... [18:48:11]*** Stop cut motor [18:48:11]*** Cut end [18:48:11]Read from MH i2c: 01 07 00 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: 01 07 00 4A 74 00 00 00 00 00 FF 0F D3 [18:48:11]process_action close_receipt done [18:48:11]requested_data is exist [18:48:11]produce_requested_data [18:48:11]requested_item fm.sn is exist - process it [18:48:11]wFMCommunicate request_size=4 [18:48:11]MH_SAM_APDU [18:48:11]CAPDU: 80 11 00 00 [18:48:11]Write to MH i2c: E2 08 00 4B 74 80 11 00 00 00 00 00 00 39 [18:48:11]Write i2c OK [18:48:11]MH_I2C_Read... [18:48:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:11]Read from MH i2c: E2 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: E2 17 00 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: E2 17 00 4B 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 90 [18:48:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:48:11]wFMCommunicate OK [18:48:11]requested_item fd.num is exist - process it [18:48:11]SAM_PROTO_GetFieldsCounters [18:48:11]wFMCommunicate request_size=4 [18:48:11]MH_SAM_APDU [18:48:11]CAPDU: 80 13 00 00 [18:48:11]Write to MH i2c: E2 08 00 4C 74 80 13 00 00 00 00 00 00 3C [18:48:11]Write i2c OK [18:48:11]MH_I2C_Read... [18:48:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:11]Read from MH i2c: E2 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: E2 62 00 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: E2 62 00 4C 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A4 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [18:48:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A4 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:11]wFMCommunicate OK [18:48:11]SAM_PROTO_GetFieldsCounters done [18:48:11]requested_item shift.num is exist - process it [18:48:11]requested_item shift.opened is exist - process it [18:48:11]req_shift_opened [18:48:11]FM_GetShiftState [18:48:11]SAM_PROTO_GetShiftState [18:48:11]wFMCommunicate request_size=4 [18:48:11]MH_SAM_APDU [18:48:11]CAPDU: 80 13 01 00 [18:48:11]Write to MH i2c: E2 08 00 4D 74 80 13 01 00 00 00 00 00 3E [18:48:11]Write i2c OK [18:48:11]MH_I2C_Read... [18:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:11]Read from MH i2c: E2 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: E2 0E 00 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: E2 0E 00 4D 74 00 09 00 01 98 11 45 67 00 00 00 00 90 00 9F [18:48:11]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:48:11]wFMCommunicate OK [18:48:11]SAM_PROTO_GetShiftState done [18:48:11]FM_GetShiftState done [18:48:11]req_shift_opened done [18:48:11]requested_item shift.open_date is exist - process it [18:48:11]req_shift_open_date [18:48:11]req_shift_open_date done [18:48:11]produce_requested_data done [18:48:11]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123300,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [18:48:11]process_action_free close_receipt [18:48:11]json_value_free [18:48:11]json_value_free done [18:48:11]process_json_proto returns [18:48:11]Send response to host [18:48:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123300,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [18:48:11]free response buf [18:48:11]execute_script done [18:48:11]execute_script returns [18:48:11]free content buf [18:48:11]Sock 7.Close socket [18:48:11]Sock 7.Thread stoped [18:48:14]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:42]accept exits with 10 [18:54:42]New connection [18:54:42]New thread 3066580324 created [18:54:42]Thread 3066723684 joined [18:54:42]Waiting for new connection... [18:54:42] Sock 10.Parse request [18:54:42]Sock 10.Check first char [18:54:42]Sock 10.First char is OK [18:54:42]request: POST /json_proto HTTP/1.0 [18:54:42]Method: POST [18:54:42]URL: /json_proto [18:54:42]Method is POST - this is cgi request [18:54:42]url: /json_proto [18:54:42]query_string will be loaded in cgi processing [18:54:42]execute_cgi json_proto POST (null) [18:54:42]execute_cgi path=json_proto method=POST [18:54:42]POST find Content-Length [18:54:42]Host: 172.17.37.4:8080 [18:54:42]Content-Length: 797 [18:54:42]Content-Type: application/json [18:54:42] [18:54:42]POST finish read [18:54:42]Found Content-Length = 797 [18:54:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53274", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:42]execute_script... [18:54:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53274", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:42]POST & json_proto [18:54:42]process_json_proto [18:54:42]json parsed OK: [18:54:42]protocol is kg_v1.0 [18:54:42]action value=close_receipt [18:54:42]process_action close_receipt [18:54:42]cmd_close_receipt [18:54:42]MH_GetDate [18:54:42]Write to MH i2c: F0 00 00 4E 74 B1 [18:54:42]Write i2c OK [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: F0 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: F0 09 00 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: F0 09 00 4E 74 00 7E 19 46 67 B8 5A 43 67 BA [18:54:42]GetLastDocTimeStamp 1732646899 [18:54:42]current date 1732647294 [18:54:42]FM_GetShiftState [18:54:42]SAM_PROTO_GetShiftState [18:54:42]wFMCommunicate request_size=4 [18:54:42]MH_SAM_APDU [18:54:42]CAPDU: 80 13 01 00 [18:54:42]Write to MH i2c: E2 08 00 4F 74 80 13 01 00 00 00 00 00 40 [18:54:42]Write i2c OK [18:54:42]MH_I2C_Read... [18:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:42]Read from MH i2c: E2 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 0E 00 [18:54:42]MH_I2C_Read... [18:54:42]Read from MH i2c: E2 0E 00 4F 74 00 09 00 01 98 11 45 67 00 00 00 00 90 00 A1 [18:54:42]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:54:42]wFMCommunicate OK [18:54:42]SAM_PROTO_GetShiftState done [18:54:42]FM_GetShiftState done [18:54:42]opened in 1732579736 [18:54:42]opened+sec_in_day 1732666136 [18:54:42]quantity*price = 0 [18:54:42]sum+1 = 1 [18:54:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 155 26.11.2024 18:54 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 53274 ФМ: 0000000000874881 ФД: 123301 ФПД: 168672946411244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T185454&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123301&fm=168672946411244&tin=02508201610067®Number=0000000000092681&sum=0 [18:54:43]StoreToDocumentArchive [18:54:43]shift 557 fd 123301 [18:54:43]save to /storage/0557/doc_00123301 [18:54:43]save last doc name /storage/0557/doc_00123301 to /storage/kkm_last_doc_name [18:54:43]save OK [18:54:43]Clear old archive folders... [18:54:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:54:43]tlvbuf is 020714A0 [18:54:43]SAM_PROTO_ClearQueue [18:54:43]wFMCommunicate request_size=4 [18:54:43]MH_SAM_APDU [18:54:43]CAPDU: 80 09 00 00 [18:54:43]Write to MH i2c: E2 08 00 5C 74 80 09 00 00 00 00 00 00 42 [18:54:43]Write i2c OK [18:54:43]MH_I2C_Read... [18:54:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:43]Read from MH i2c: E2 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 03 00 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 03 00 5C 74 00 90 00 44 [18:54:43]RAPDU: 90 00 [18:54:43]wFMCommunicate OK [18:54:43]SAM_PROTO_ClearQueue done [18:54:43]KKMCreateOFDPacket [18:54:43]OFDProtocolAddRootSTLVToBuf [18:54:43]FM_MakeSignedData [18:54:43]FM_MakeSignedData [18:54:43]SAM_PROTO_SignData [18:54:43]wFMCommunicate request_size=4 [18:54:43]MH_SAM_APDU [18:54:43]CAPDU: 80 0D 01 02 [18:54:43]Write to MH i2c: E2 08 00 5D 74 80 0D 01 02 00 00 00 00 4A [18:54:43]Write i2c OK [18:54:43]MH_I2C_Read... [18:54:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:43]Read from MH i2c: E2 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 03 00 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 03 00 5D 74 00 90 00 45 [18:54:43]RAPDU: 90 00 [18:54:43]wFMCommunicate OK [18:54:43]wFMCommunicate request_size=255 [18:54:43]MH_SAM_APDU [18:54:43]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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 7E 19 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A5 E1 01 00 35 04 06 00 [18:54:43]Write to MH i2c: E2 02 01 5E 74 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 7E 19 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A5 E1 01 00 35 04 06 00 00 00 50 [18:54:43]Write i2c OK [18:54:43]MH_I2C_Read... [18:54:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:43]Read from MH i2c: E2 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 03 00 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 03 00 5E 74 00 90 00 46 [18:54:43]RAPDU: 90 00 [18:54:43]wFMCommunicate OK [18:54:43]wFMCommunicate request_size=11 [18:54:43]MH_SAM_APDU [18:54:43]CAPDU: 80 0D 02 02 06 99 68 3B 0D D6 EC [18:54:43]Write to MH i2c: E2 0E 00 5F 74 80 0D 02 02 06 00 99 68 3B 0D D6 EC 00 00 64 [18:54:43]Write i2c OK [18:54:43]MH_I2C_Read... [18:54:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:43]Read from MH i2c: E2 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 03 00 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 03 00 5F 74 00 90 00 47 [18:54:43]RAPDU: 90 00 [18:54:43]wFMCommunicate OK [18:54:43]wFMCommunicate request_size=4 [18:54:43]MH_SAM_APDU [18:54:43]CAPDU: 80 0D 03 02 [18:54:43]Write to MH i2c: E2 08 00 60 74 80 0D 03 02 00 00 00 00 4F [18:54:43]Write i2c OK [18:54:43]MH_I2C_Read... [18:54:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:43]Read from MH i2c: E2 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 0B 00 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 0B 00 60 74 00 60 3F D9 F1 18 56 82 B0 90 00 59 [18:54:43]RAPDU: 60 3F D9 F1 18 56 82 B0 90 00 [18:54:43]wFMCommunicate OK [18:54:43]SAM_PROTO_SignData done [18:54:43]FM_MakeSignedData done [18:54:43]CreateOFDProtocolMessage [18:54:43]wFMCommunicate request_size=4 [18:54:43]MH_SAM_APDU [18:54:43]CAPDU: 80 11 00 00 [18:54:43]Write to MH i2c: E2 08 00 61 74 80 11 00 00 00 00 00 00 4F [18:54:43]Write i2c OK [18:54:43]MH_I2C_Read... [18:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:43]Read from MH i2c: E2 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 17 00 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: E2 17 00 61 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A6 [18:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:54:43]wFMCommunicate OK [18:54:43]CreateOFDProtocolMessage done [18:54:43]OFDSenderStorePacket 123301 [18:54:43]StoreOFDPacket docnum=123301 [18:54:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 46 09 08 01 69 C3 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 7E 19 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A5 E1 01 00 35 04 06 00 99 68 3B 0D D6 EC 60 3F D9 F1 18 56 82 B0 [18:54:43]CheckFolder [18:54:43]dirname=/storage/ofd_packets [18:54:43]CheckFolder done [18:54:43]ProducePacketName [18:54:43]name=ofd_packets/00123301 [18:54:43]NVStorageSaveData ofd_packets/00123301 [18:54:43]File name is /storage/ofd_packets/00123301 [18:54:43]Write 302 bytes [18:54:43]NVStorageSaveData done [18:54:43]OFDSenderStorePacket done [18:54:43]KKMCreateOFDPacket done [18:54:43]NVStorageSaveData kkm_last_timestamp [18:54:43]File name is /storage/kkm_last_timestamp [18:54:43]Write 4 bytes [18:54:43]NVStorageSaveData done [18:54:43]ExternCall_PrintAddStr [18:54:43]wPrintStart [18:54:43]Write to MH i2c: 01 00 00 62 74 D6 [18:54:43]Write i2c OK [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: 01 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: 01 07 00 [18:54:43]MH_I2C_Read... [18:54:43]Read from MH i2c: 01 07 00 62 74 00 00 00 00 00 FF 0F EB [18:54:43]RasterBufferAndPrint [18:54:43]line Счет N : (1)718131 [18:54:43]line ИНН: 02508201610067 [18:54:43]line Контрольно-Кассовый Чек [18:54:43]line ПРОДАЖА [18:54:43]line ТРК (МРК, ГНК) : 6 [18:54:43]line Товар: 2710194210 [18:54:43]line ДТ(л)-К-5 [18:54:43]line 100.000 * 0.00 [18:54:43]line = 0.00 [18:54:43]line НДС 12% НСП 1% [18:54:43]line > о реализуемом товаре [18:54:43]line ИТОГО: 0.00 [18:54:43]line НСП 1% : 0.00 [18:54:43]line НДС 12% : 0.00 [18:54:43]line Наличными: 0.00 [18:54:43]line Безнал.: 0.00 [18:54:43]line Место: АЗС № 64 "Партнер Нефть" [18:54:43]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:54:43]line СНО: Общий режим [18:54:43]line Чек 155 26.11.2024 18:54 [18:54:43]line Смена: 557 ФФД: 1.0 [18:54:43]line ЗНМ: 0300000033 [18:54:43]line РНМ: 0000000000092681 [18:54:43]line Версия ККМ: 001 [18:54:43]line Талоны: Топливная Карта [18:54:43]line 53274 [18:54:43]line ФМ: 0000000000874881 [18:54:43]line ФД: 123301 [18:54:43]line ФПД: 168672946411244 [18:54:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T185454&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123301&fm=168672946411244&tin=02508201610067®Number=0000000000092681&sum=0 [18:54:44]written 0, free lines is 4095 [18:54:44]OFD Sender: Processing packet 123301 [packets to send 7, broken 6] [18:54:44]ProducePacketName [18:54:44]name=ofd_packets/00123301 [18:54:44]OFD Sender: To server: pG, [18:54:44]CommunicateWithHost lk.salyk.kg:30040 [18:54:44]ConnectInit lk.salyk.kg [18:54:44]Connected sock=9 [18:54:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 46 09 08 01 69 C3 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 7E 19 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A5 E1 01 00 35 04 06 00 99 68 3B 0D D6 EC 60 3F D9 F1 18 56 82 B0 [18:54:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 C8 A4 47 00 D1 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A5 E1 01 00 F4 03 04 00 3F C5 45 67 B6 04 01 00 00 24 E4 C8 B5 51 3C 36 70 [18:54:44]CommunicateWithHost err = 0 [18:54:44]CheckOFDResponse [18:54:44]1017 (14) - 77093643461234 [18:54:44]1041 (16) - 0000000000874881 [18:54:44]1040 (4) - 123301 [18:54:44]1012 (4) - 26.11.2024 12:55 [18:54:44]1206 (1) - 0 [18:54:44]OFD Sender: Remove packet 123301 [18:54:44]ProducePacketName [18:54:44]name=ofd_packets/00123301 [18:54:44]NVStorageDeleteData [18:54:44]Write to MH i2c: 01 00 00 8C 74 00 [18:54:44]Write i2c OK [18:54:44]MH_I2C_Read... [18:54:44]Read from MH i2c: 01 [18:54:44]MH_I2C_Read... [18:54:44]Read from MH i2c: 01 07 00 [18:54:44]MH_I2C_Read... [18:54:44]Read from MH i2c: 01 07 00 8C 74 00 00 00 00 00 74 0C 87 [18:54:44]RasterBufferAndPrint [18:54:44]line [18:54:44]line [18:54:44]line [18:54:44]line [18:54:44]line [18:54:44]written 0, free lines is 3194 [18:54:44]MH_Cut [18:54:44]Write to MH i2c: D1 01 00 93 74 01 D9 [18:54:44]Write i2c OK [18:54:44]MH_I2C_Read... [18:54:44]Read from MH i2c: D1 [18:54:44]MH_I2C_Read... [18:54:44]Read from MH i2c: D1 01 00 [18:54:44]MH_I2C_Read... [18:54:44]Read from MH i2c: D1 01 00 93 74 00 D8 [18:54:44]Write to MH i2c: 01 00 00 94 74 08 [18:54:44]Write i2c OK [18:54:44]MH_I2C_Read... [18:54:44]OFD Sender: No OFD packet to send [18:54:45]*** Cut start [18:54:45]*** Partial cut [18:54:45]*** CUTSNS_PIN = 1 [18:54:45]*** CUTSNS_PIN = 0 [18:54:46]*** Brake cut motor [18:54:46]Read from MH i2c: 01 [18:54:46]MH_I2C_Read... [18:54:46]*** Stop cut motor [18:54:46]*** Cut end [18:54:46]Read from MH i2c: 01 07 00 [18:54:46]MH_I2C_Read... [18:54:46]Read from MH i2c: 01 07 00 94 74 00 00 00 00 00 FF 0F 1D [18:54:46]process_action close_receipt done [18:54:46]requested_data is exist [18:54:46]produce_requested_data [18:54:46]requested_item fm.sn is exist - process it [18:54:46]wFMCommunicate request_size=4 [18:54:46]MH_SAM_APDU [18:54:46]CAPDU: 80 11 00 00 [18:54:46]Write to MH i2c: E2 08 00 95 74 80 11 00 00 00 00 00 00 83 [18:54:46]Write i2c OK [18:54:46]MH_I2C_Read... [18:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:46]Read from MH i2c: E2 [18:54:46]MH_I2C_Read... [18:54:46]Read from MH i2c: E2 17 00 [18:54:46]MH_I2C_Read... [18:54:46]Read from MH i2c: E2 17 00 95 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DA [18:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:54:46]wFMCommunicate OK [18:54:46]requested_item fd.num is exist - process it [18:54:46]SAM_PROTO_GetFieldsCounters [18:54:46]wFMCommunicate request_size=4 [18:54:46]MH_SAM_APDU [18:54:46]CAPDU: 80 13 00 00 [18:54:46]Write to MH i2c: E2 08 00 96 74 80 13 00 00 00 00 00 00 86 [18:54:46]Write i2c OK [18:54:46]MH_I2C_Read... [18:54:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:46]Read from MH i2c: E2 [18:54:46]MH_I2C_Read... [18:54:46]Read from MH i2c: E2 62 00 [18:54:46]MH_I2C_Read... [18:54:46]Read from MH i2c: E2 62 00 96 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A5 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [18:54:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A5 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:46]wFMCommunicate OK [18:54:46]SAM_PROTO_GetFieldsCounters done [18:54:46]requested_item shift.num is exist - process it [18:54:46]requested_item shift.opened is exist - process it [18:54:46]req_shift_opened [18:54:46]FM_GetShiftState [18:54:46]SAM_PROTO_GetShiftState [18:54:46]wFMCommunicate request_size=4 [18:54:46]MH_SAM_APDU [18:54:46]CAPDU: 80 13 01 00 [18:54:46]Write to MH i2c: E2 08 00 97 74 80 13 01 00 00 00 00 00 88 [18:54:46]Write i2c OK [18:54:46]MH_I2C_Read... [18:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:46]Read from MH i2c: E2 [18:54:46]MH_I2C_Read... [18:54:46]Read from MH i2c: E2 0E 00 [18:54:46]MH_I2C_Read... [18:54:46]Read from MH i2c: E2 0E 00 97 74 00 09 00 01 98 11 45 67 00 00 00 00 90 00 E9 [18:54:46]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:54:46]wFMCommunicate OK [18:54:46]SAM_PROTO_GetShiftState done [18:54:46]FM_GetShiftState done [18:54:46]req_shift_opened done [18:54:46]requested_item shift.open_date is exist - process it [18:54:46]req_shift_open_date [18:54:46]req_shift_open_date done [18:54:46]produce_requested_data done [18:54:46]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123301,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [18:54:46]process_action_free close_receipt [18:54:46]json_value_free [18:54:46]json_value_free done [18:54:46]process_json_proto returns [18:54:46]Send response to host [18:54:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123301,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [18:54:46]free response buf [18:54:46]execute_script done [18:54:46]execute_script returns [18:54:46]free content buf [18:54:46]Sock 10.Close socket [18:54:46]Sock 10.Thread stoped [18:54:49]OFD Sender: No OFD packet to send [18:54:54]OFD Sender: No OFD packet to send [18:54:59]OFD Sender: No OFD packet to send [18:55:04]OFD Sender: No OFD packet to send [18:55:09]OFD Sender: No OFD packet to send [18:55:14]OFD Sender: No OFD packet to send [18:55:16]accept exits with 7 [18:55:16]New connection [18:55:16]New thread 3066723684 created [18:55:16]Thread 3066580324 joined [18:55:16]Waiting for new connection... [18:55:16] Sock 7.Parse request [18:55:16]Sock 7.Check first char [18:55:16]Sock 7.First char is OK [18:55:16]request: POST /json_proto HTTP/1.0 [18:55:16]Method: POST [18:55:16]URL: /json_proto [18:55:16]Method is POST - this is cgi request [18:55:16]url: /json_proto [18:55:16]query_string will be loaded in cgi processing [18:55:16]execute_cgi json_proto POST (null) [18:55:16]execute_cgi path=json_proto method=POST [18:55:16]POST find Content-Length [18:55:16]Host: 172.17.37.4:8080 [18:55:16]Content-Length: 677 [18:55:16]Content-Type: application/json [18:55:16] [18:55:16]POST finish read [18:55:16]Found Content-Length = 677 [18:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:16]execute_script... [18:55:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:16]POST & json_proto [18:55:16]process_json_proto [18:55:16]json parsed OK: [18:55:16]protocol is kg_v1.0 [18:55:16]action value=close_receipt [18:55:16]process_action close_receipt [18:55:16]cmd_close_receipt [18:55:16]MH_GetDate [18:55:16]Write to MH i2c: F0 00 00 98 74 FB [18:55:16]Write i2c OK [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: F0 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: F0 09 00 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: F0 09 00 98 74 00 A0 19 46 67 B8 5A 43 67 26 [18:55:16]GetLastDocTimeStamp 1732647294 [18:55:16]current date 1732647328 [18:55:16]FM_GetShiftState [18:55:16]SAM_PROTO_GetShiftState [18:55:16]wFMCommunicate request_size=4 [18:55:16]MH_SAM_APDU [18:55:16]CAPDU: 80 13 01 00 [18:55:16]Write to MH i2c: E2 08 00 99 74 80 13 01 00 00 00 00 00 8A [18:55:16]Write i2c OK [18:55:16]MH_I2C_Read... [18:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:16]Read from MH i2c: E2 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: E2 0E 00 [18:55:16]MH_I2C_Read... [18:55:16]Read from MH i2c: E2 0E 00 99 74 00 09 00 01 98 11 45 67 00 00 00 00 90 00 EB [18:55:16]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:55:16]wFMCommunicate OK [18:55:16]SAM_PROTO_GetShiftState done [18:55:16]FM_GetShiftState done [18:55:16]opened in 1732579736 [18:55:16]opened+sec_in_day 1732666136 [18:55:16]quantity*price = 50010 [18:55:16]sum+1 = 50012 [18:55:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 156 26.11.2024 18:55 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123302 ФПД: 109077434212100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T185528&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123302&fm=109077434212100&tin=02508201610067®Number=0000000000092681&sum=50000 [18:55:17]StoreToDocumentArchive [18:55:17]shift 557 fd 123302 [18:55:17]save to /storage/0557/doc_00123302 [18:55:17]save last doc name /storage/0557/doc_00123302 to /storage/kkm_last_doc_name [18:55:17]save OK [18:55:17]Clear old archive folders... [18:55:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:55:17]tlvbuf is 020714A0 [18:55:17]SAM_PROTO_ClearQueue [18:55:17]wFMCommunicate request_size=4 [18:55:17]MH_SAM_APDU [18:55:17]CAPDU: 80 09 00 00 [18:55:17]Write to MH i2c: E2 08 00 A6 74 80 09 00 00 00 00 00 00 8C [18:55:17]Write i2c OK [18:55:17]MH_I2C_Read... [18:55:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:17]Read from MH i2c: E2 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 03 00 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 03 00 A6 74 00 90 00 8E [18:55:17]RAPDU: 90 00 [18:55:17]wFMCommunicate OK [18:55:17]SAM_PROTO_ClearQueue done [18:55:17]KKMCreateOFDPacket [18:55:18]OFDProtocolAddRootSTLVToBuf [18:55:18]FM_MakeSignedData [18:55:18]FM_MakeSignedData [18:55:18]SAM_PROTO_SignData [18:55:18]wFMCommunicate request_size=4 [18:55:18]MH_SAM_APDU [18:55:18]CAPDU: 80 0D 01 02 [18:55:18]Write to MH i2c: E2 08 00 A7 74 80 0D 01 02 00 00 00 00 94 [18:55:18]Write i2c OK [18:55:18]MH_I2C_Read... [18:55:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:18]Read from MH i2c: E2 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 03 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 03 00 A7 74 00 90 00 8F [18:55:18]RAPDU: 90 00 [18:55:18]wFMCommunicate OK [18:55:18]wFMCommunicate request_size=255 [18:55:18]MH_SAM_APDU [18:55:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 A0 19 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A6 E1 01 00 35 04 06 00 63 [18:55:18]Write to MH i2c: E2 02 01 A8 74 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 A0 19 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A6 E1 01 00 35 04 06 00 63 00 00 17 [18:55:18]Write i2c OK [18:55:18]MH_I2C_Read... [18:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:18]Read from MH i2c: E2 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 03 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 03 00 A8 74 00 90 00 90 [18:55:18]RAPDU: 90 00 [18:55:18]wFMCommunicate OK [18:55:18]wFMCommunicate request_size=10 [18:55:18]MH_SAM_APDU [18:55:18]CAPDU: 80 0D 02 02 05 34 91 B8 1F 04 [18:55:18]Write to MH i2c: E2 0D 00 A9 74 80 0D 02 02 05 00 34 91 B8 1F 04 00 00 41 [18:55:18]Write i2c OK [18:55:18]MH_I2C_Read... [18:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:18]Read from MH i2c: E2 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 03 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 03 00 A9 74 00 90 00 91 [18:55:18]RAPDU: 90 00 [18:55:18]wFMCommunicate OK [18:55:18]wFMCommunicate request_size=4 [18:55:18]MH_SAM_APDU [18:55:18]CAPDU: 80 0D 03 02 [18:55:18]Write to MH i2c: E2 08 00 AA 74 80 0D 03 02 00 00 00 00 99 [18:55:18]Write i2c OK [18:55:18]MH_I2C_Read... [18:55:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:18]Read from MH i2c: E2 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 0B 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 0B 00 AA 74 00 4D 62 6E D4 E6 46 EB E4 90 00 86 [18:55:18]RAPDU: 4D 62 6E D4 E6 46 EB E4 90 00 [18:55:18]wFMCommunicate OK [18:55:18]SAM_PROTO_SignData done [18:55:18]FM_MakeSignedData done [18:55:18]CreateOFDProtocolMessage [18:55:18]wFMCommunicate request_size=4 [18:55:18]MH_SAM_APDU [18:55:18]CAPDU: 80 11 00 00 [18:55:18]Write to MH i2c: E2 08 00 AB 74 80 11 00 00 00 00 00 00 99 [18:55:18]Write i2c OK [18:55:18]MH_I2C_Read... [18:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:18]Read from MH i2c: E2 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 17 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: E2 17 00 AB 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F0 [18:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:55:18]wFMCommunicate OK [18:55:18]CreateOFDProtocolMessage done [18:55:18]OFDSenderStorePacket 123302 [18:55:18]StoreOFDPacket docnum=123302 [18:55:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 38 EC 07 01 BE AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 A0 19 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A6 E1 01 00 35 04 06 00 63 34 91 B8 1F 04 4D 62 6E D4 E6 46 EB E4 [18:55:18]CheckFolder [18:55:18]dirname=/storage/ofd_packets [18:55:18]CheckFolder done [18:55:18]ProducePacketName [18:55:18]name=ofd_packets/00123302 [18:55:18]NVStorageSaveData ofd_packets/00123302 [18:55:18]File name is /storage/ofd_packets/00123302 [18:55:18]Write 301 bytes [18:55:18]NVStorageSaveData done [18:55:18]OFDSenderStorePacket done [18:55:18]KKMCreateOFDPacket done [18:55:18]NVStorageSaveData kkm_last_timestamp [18:55:18]File name is /storage/kkm_last_timestamp [18:55:18]Write 4 bytes [18:55:18]NVStorageSaveData done [18:55:18]ExternCall_PrintAddStr [18:55:18]wPrintStart [18:55:18]Write to MH i2c: 01 00 00 AC 74 20 [18:55:18]Write i2c OK [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: 01 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: 01 07 00 [18:55:18]MH_I2C_Read... [18:55:18]Read from MH i2c: 01 07 00 AC 74 00 00 00 00 00 FF 0F 35 [18:55:18]RasterBufferAndPrint [18:55:18]line Счет N : (1)718133 [18:55:18]line ИНН: 02508201610067 [18:55:18]line Контрольно-Кассовый Чек [18:55:18]line ПРОДАЖА [18:55:18]line ТРК (МРК, ГНК) : 12 [18:55:18]line Товар: 2710124130 [18:55:18]line Аи-92-К-4 [18:55:18]line 7.420 * 67.40 [18:55:18]line = 500.11 [18:55:18]line НДС 12% НСП 1% [18:55:18]line > о реализуемом товаре [18:55:18]line ОКРУГЛЕНИЕ: -0.11 [18:55:18]line ИТОГО: 500.00 [18:55:18]line Внесено: 500.00 [18:55:18]line СДАЧА: 0.00 [18:55:18]line НСП 1% : 4.43 [18:55:18]line НДС 12% : 53.11 [18:55:18]line Наличными: 500.00 [18:55:18]line Безнал.: 0.00 [18:55:18]line Место: АЗС № 64 "Партнер Нефть" [18:55:18]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:55:18]line СНО: Общий режим [18:55:18]line Чек 156 26.11.2024 18:55 [18:55:18]line Смена: 557 ФФД: 1.0 [18:55:18]line ЗНМ: 0300000033 [18:55:18]line РНМ: 0000000000092681 [18:55:18]line Версия ККМ: 001 [18:55:18]line ФМ: 0000000000874881 [18:55:18]line ФД: 123302 [18:55:18]line ФПД: 109077434212100 [18:55:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T185528&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123302&fm=109077434212100&tin=02508201610067®Number=0000000000092681&sum=50000 [18:55:18]OFD Sender: Processing packet 123302 [packets to send 7, broken 6] [18:55:18]ProducePacketName [18:55:18]name=ofd_packets/00123302 [18:55:18]OFD Sender: To server: pG, [18:55:18]CommunicateWithHost lk.salyk.kg:30040 [18:55:18]ConnectInit lk.salyk.kg [18:55:18]written 0, free lines is 4095 [18:55:18]Connected sock=10 [18:55:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 38 EC 07 01 BE AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 A0 19 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A6 E1 01 00 35 04 06 00 63 34 91 B8 1F 04 4D 62 6E D4 E6 46 EB E4 [18:55:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 C9 B1 47 00 CC E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A6 E1 01 00 F4 03 04 00 62 C5 45 67 B6 04 01 00 00 A6 13 27 22 EE 59 4A CB [18:55:19]CommunicateWithHost err = 0 [18:55:19]CheckOFDResponse [18:55:19]1017 (14) - 77093643461234 [18:55:19]1041 (16) - 0000000000874881 [18:55:19]1040 (4) - 123302 [18:55:19]1012 (4) - 26.11.2024 12:56 [18:55:19]1206 (1) - 0 [18:55:19]OFD Sender: Remove packet 123302 [18:55:19]ProducePacketName [18:55:19]name=ofd_packets/00123302 [18:55:19]NVStorageDeleteData [18:55:19]Write to MH i2c: 01 00 00 D7 74 4B [18:55:19]Write i2c OK [18:55:19]MH_I2C_Read... [18:55:19]Read from MH i2c: 01 [18:55:19]MH_I2C_Read... [18:55:19]Read from MH i2c: 01 07 00 [18:55:19]MH_I2C_Read... [18:55:19]Read from MH i2c: 01 07 00 D7 74 00 00 00 00 00 52 0C B0 [18:55:19]RasterBufferAndPrint [18:55:19]line [18:55:19]line [18:55:19]line [18:55:19]line [18:55:19]line [18:55:19]written 0, free lines is 3158 [18:55:19]MH_Cut [18:55:19]Write to MH i2c: D1 01 00 DE 74 01 24 [18:55:19]Write i2c OK [18:55:19]MH_I2C_Read... [18:55:19]Read from MH i2c: D1 [18:55:19]MH_I2C_Read... [18:55:19]Read from MH i2c: D1 01 00 [18:55:19]MH_I2C_Read... [18:55:19]Read from MH i2c: D1 01 00 DE 74 00 23 [18:55:19]Write to MH i2c: 01 00 00 DF 74 53 [18:55:19]Write i2c OK [18:55:19]MH_I2C_Read... [18:55:19]OFD Sender: No OFD packet to send [18:55:20]*** Cut start [18:55:20]*** Partial cut [18:55:20]*** CUTSNS_PIN = 1 [18:55:20]*** CUTSNS_PIN = 0 [18:55:20]*** Brake cut motor [18:55:21]Read from MH i2c: 01 [18:55:21]MH_I2C_Read... [18:55:21]*** Stop cut motor [18:55:21]*** Cut end [18:55:21]Read from MH i2c: 01 07 00 [18:55:21]MH_I2C_Read... [18:55:21]Read from MH i2c: 01 07 00 DF 74 00 00 00 00 00 FF 0F 68 [18:55:21]process_action close_receipt done [18:55:21]requested_data is exist [18:55:21]produce_requested_data [18:55:21]requested_item fm.sn is exist - process it [18:55:21]wFMCommunicate request_size=4 [18:55:21]MH_SAM_APDU [18:55:21]CAPDU: 80 11 00 00 [18:55:21]Write to MH i2c: E2 08 00 E0 74 80 11 00 00 00 00 00 00 CE [18:55:21]Write i2c OK [18:55:21]MH_I2C_Read... [18:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:21]Read from MH i2c: E2 [18:55:21]MH_I2C_Read... [18:55:21]Read from MH i2c: E2 17 00 [18:55:21]MH_I2C_Read... [18:55:21]Read from MH i2c: E2 17 00 E0 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 25 [18:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:55:21]wFMCommunicate OK [18:55:21]requested_item fd.num is exist - process it [18:55:21]SAM_PROTO_GetFieldsCounters [18:55:21]wFMCommunicate request_size=4 [18:55:21]MH_SAM_APDU [18:55:21]CAPDU: 80 13 00 00 [18:55:21]Write to MH i2c: E2 08 00 E1 74 80 13 00 00 00 00 00 00 D1 [18:55:21]Write i2c OK [18:55:21]MH_I2C_Read... [18:55:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:21]Read from MH i2c: E2 [18:55:21]MH_I2C_Read... [18:55:21]Read from MH i2c: E2 62 00 [18:55:21]MH_I2C_Read... [18:55:21]Read from MH i2c: E2 62 00 E1 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A6 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [18:55:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A6 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:21]wFMCommunicate OK [18:55:21]SAM_PROTO_GetFieldsCounters done [18:55:21]requested_item shift.num is exist - process it [18:55:21]requested_item shift.opened is exist - process it [18:55:21]req_shift_opened [18:55:21]FM_GetShiftState [18:55:21]SAM_PROTO_GetShiftState [18:55:21]wFMCommunicate request_size=4 [18:55:21]MH_SAM_APDU [18:55:21]CAPDU: 80 13 01 00 [18:55:21]Write to MH i2c: E2 08 00 E2 74 80 13 01 00 00 00 00 00 D3 [18:55:21]Write i2c OK [18:55:21]MH_I2C_Read... [18:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:21]Read from MH i2c: E2 [18:55:21]MH_I2C_Read... [18:55:21]Read from MH i2c: E2 0E 00 [18:55:21]MH_I2C_Read... [18:55:21]Read from MH i2c: E2 0E 00 E2 74 00 09 00 01 98 11 45 67 00 00 00 00 90 00 34 [18:55:21]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:55:21]wFMCommunicate OK [18:55:21]SAM_PROTO_GetShiftState done [18:55:21]FM_GetShiftState done [18:55:21]req_shift_opened done [18:55:21]requested_item shift.open_date is exist - process it [18:55:21]req_shift_open_date [18:55:21]req_shift_open_date done [18:55:21]produce_requested_data done [18:55:21]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123302,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [18:55:21]process_action_free close_receipt [18:55:21]json_value_free [18:55:21]json_value_free done [18:55:21]process_json_proto returns [18:55:21]Send response to host [18:55:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123302,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [18:55:21]free response buf [18:55:21]execute_script done [18:55:21]execute_script returns [18:55:21]free content buf [18:55:21]Sock 7.Close socket [18:55:21]Sock 7.Thread stoped [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:39]OFD Sender: No OFD packet to send [18:55:44]OFD Sender: No OFD packet to send [18:55:49]OFD Sender: No OFD packet to send [18:55:54]OFD Sender: No OFD packet to send [18:55:59]OFD Sender: No OFD packet to send [18:56:04]OFD Sender: No OFD packet to send [18:56:06]accept exits with 9 [18:56:06]New connection [18:56:06]New thread 3066580324 created [18:56:06]Thread 3066723684 joined [18:56:06]Waiting for new connection... [18:56:06] Sock 9.Parse request [18:56:06]Sock 9.Check first char [18:56:06]Sock 9.First char is OK [18:56:06]request: POST /json_proto HTTP/1.0 [18:56:06]Method: POST [18:56:06]URL: /json_proto [18:56:06]Method is POST - this is cgi request [18:56:06]url: /json_proto [18:56:06]query_string will be loaded in cgi processing [18:56:06]execute_cgi json_proto POST (null) [18:56:06]execute_cgi path=json_proto method=POST [18:56:06]POST find Content-Length [18:56:06]Host: 172.17.37.4:8080 [18:56:06]Content-Length: 677 [18:56:06]Content-Type: application/json [18:56:06] [18:56:06]POST finish read [18:56:06]Found Content-Length = 677 [18:56:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:06]execute_script... [18:56:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:06]POST & json_proto [18:56:06]process_json_proto [18:56:06]json parsed OK: [18:56:06]protocol is kg_v1.0 [18:56:06]action value=close_receipt [18:56:06]process_action close_receipt [18:56:06]cmd_close_receipt [18:56:06]MH_GetDate [18:56:06]Write to MH i2c: F0 00 00 E3 74 46 [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: F0 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: F0 09 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: F0 09 00 E3 74 00 D2 19 46 67 B8 5A 43 67 A3 [18:56:06]GetLastDocTimeStamp 1732647328 [18:56:06]current date 1732647378 [18:56:06]FM_GetShiftState [18:56:06]SAM_PROTO_GetShiftState [18:56:06]wFMCommunicate request_size=4 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 13 01 00 [18:56:06]Write to MH i2c: E2 08 00 E4 74 80 13 01 00 00 00 00 00 D5 [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 0E 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 0E 00 E4 74 00 09 00 01 98 11 45 67 00 00 00 00 90 00 36 [18:56:06]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:56:06]wFMCommunicate OK [18:56:06]SAM_PROTO_GetShiftState done [18:56:06]FM_GetShiftState done [18:56:06]opened in 1732579736 [18:56:06]opened+sec_in_day 1732666136 [18:56:06]quantity*price = 50010 [18:56:06]sum+1 = 50012 [18:56:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 157 26.11.2024 18:56 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123303 ФПД: 154763492411278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T185618&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123303&fm=154763492411278&tin=02508201610067®Number=0000000000092681&sum=50000 [18:56:07]StoreToDocumentArchive [18:56:07]shift 557 fd 123303 [18:56:07]save to /storage/0557/doc_00123303 [18:56:07]save last doc name /storage/0557/doc_00123303 to /storage/kkm_last_doc_name [18:56:07]save OK [18:56:07]Clear old archive folders... [18:56:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:56:07]tlvbuf is 01FBE460 [18:56:07]SAM_PROTO_ClearQueue [18:56:07]wFMCommunicate request_size=4 [18:56:07]MH_SAM_APDU [18:56:07]CAPDU: 80 09 00 00 [18:56:07]Write to MH i2c: E2 08 00 F1 74 80 09 00 00 00 00 00 00 D7 [18:56:07]Write i2c OK [18:56:07]MH_I2C_Read... [18:56:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:07]Read from MH i2c: E2 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 03 00 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 03 00 F1 74 00 90 00 D9 [18:56:07]RAPDU: 90 00 [18:56:07]wFMCommunicate OK [18:56:07]SAM_PROTO_ClearQueue done [18:56:07]KKMCreateOFDPacket [18:56:07]OFDProtocolAddRootSTLVToBuf [18:56:07]FM_MakeSignedData [18:56:07]FM_MakeSignedData [18:56:07]SAM_PROTO_SignData [18:56:07]wFMCommunicate request_size=4 [18:56:07]MH_SAM_APDU [18:56:07]CAPDU: 80 0D 01 02 [18:56:07]Write to MH i2c: E2 08 00 F2 74 80 0D 01 02 00 00 00 00 DF [18:56:07]Write i2c OK [18:56:07]MH_I2C_Read... [18:56:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:07]Read from MH i2c: E2 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 03 00 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 03 00 F2 74 00 90 00 DA [18:56:07]RAPDU: 90 00 [18:56:07]wFMCommunicate OK [18:56:07]wFMCommunicate request_size=255 [18:56:07]MH_SAM_APDU [18:56:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 D2 19 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A7 E1 01 00 35 04 06 00 8C [18:56:07]Write to MH i2c: E2 02 01 F3 74 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 D2 19 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A7 E1 01 00 35 04 06 00 8C 00 00 BF [18:56:07]Write i2c OK [18:56:07]MH_I2C_Read... [18:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:08]Read from MH i2c: E2 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: E2 03 00 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: E2 03 00 F3 74 00 90 00 DB [18:56:08]RAPDU: 90 00 [18:56:08]wFMCommunicate OK [18:56:08]wFMCommunicate request_size=10 [18:56:08]MH_SAM_APDU [18:56:08]CAPDU: 80 0D 02 02 05 C1 AE FD 47 8E [18:56:08]Write to MH i2c: E2 0D 00 F4 74 80 0D 02 02 05 00 C1 AE FD 47 8E 00 00 2D [18:56:08]Write i2c OK [18:56:08]MH_I2C_Read... [18:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:08]Read from MH i2c: E2 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: E2 03 00 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: E2 03 00 F4 74 00 90 00 DC [18:56:08]RAPDU: 90 00 [18:56:08]wFMCommunicate OK [18:56:08]wFMCommunicate request_size=4 [18:56:08]MH_SAM_APDU [18:56:08]CAPDU: 80 0D 03 02 [18:56:08]Write to MH i2c: E2 08 00 F5 74 80 0D 03 02 00 00 00 00 E4 [18:56:08]Write i2c OK [18:56:08]MH_I2C_Read... [18:56:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:08]Read from MH i2c: E2 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: E2 0B 00 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: E2 0B 00 F5 74 00 4A D8 7D F7 A5 4D D3 B3 90 00 F3 [18:56:08]RAPDU: 4A D8 7D F7 A5 4D D3 B3 90 00 [18:56:08]wFMCommunicate OK [18:56:08]SAM_PROTO_SignData done [18:56:08]FM_MakeSignedData done [18:56:08]CreateOFDProtocolMessage [18:56:08]wFMCommunicate request_size=4 [18:56:08]MH_SAM_APDU [18:56:08]CAPDU: 80 11 00 00 [18:56:08]Write to MH i2c: E2 08 00 F6 74 80 11 00 00 00 00 00 00 E4 [18:56:08]Write i2c OK [18:56:08]MH_I2C_Read... [18:56:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:08]Read from MH i2c: E2 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: E2 17 00 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: E2 17 00 F6 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3B [18:56:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:56:08]wFMCommunicate OK [18:56:08]CreateOFDProtocolMessage done [18:56:08]OFDSenderStorePacket 123303 [18:56:08]StoreOFDPacket docnum=123303 [18:56:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3B D5 07 01 C6 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 D2 19 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A7 E1 01 00 35 04 06 00 8C C1 AE FD 47 8E 4A D8 7D F7 A5 4D D3 B3 [18:56:08]CheckFolder [18:56:08]dirname=/storage/ofd_packets [18:56:08]CheckFolder done [18:56:08]ProducePacketName [18:56:08]name=ofd_packets/00123303 [18:56:08]NVStorageSaveData ofd_packets/00123303 [18:56:08]File name is /storage/ofd_packets/00123303 [18:56:08]Write 301 bytes [18:56:08]NVStorageSaveData done [18:56:08]OFDSenderStorePacket done [18:56:08]KKMCreateOFDPacket done [18:56:08]NVStorageSaveData kkm_last_timestamp [18:56:08]File name is /storage/kkm_last_timestamp [18:56:08]Write 4 bytes [18:56:08]NVStorageSaveData done [18:56:08]ExternCall_PrintAddStr [18:56:08]wPrintStart [18:56:08]Write to MH i2c: 01 00 00 F7 74 6B [18:56:08]Write i2c OK [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: 01 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: 01 07 00 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: 01 07 00 F7 74 00 00 00 00 00 FF 0F 80 [18:56:08]RasterBufferAndPrint [18:56:08]line Счет N : (1)718134 [18:56:08]line ИНН: 02508201610067 [18:56:08]line Контрольно-Кассовый Чек [18:56:08]line ПРОДАЖА [18:56:08]line ТРК (МРК, ГНК) : 42 [18:56:08]line Товар: 2710124130 [18:56:08]line Аи-92-К-4 [18:56:08]line 7.420 * 67.40 [18:56:08]line = 500.11 [18:56:08]line НДС 12% НСП 1% [18:56:08]line > о реализуемом товаре [18:56:08]line ОКРУГЛЕНИЕ: -0.11 [18:56:08]line ИТОГО: 500.00 [18:56:08]line Внесено: 500.00 [18:56:08]line СДАЧА: 0.00 [18:56:08]line НСП 1% : 4.43 [18:56:08]line НДС 12% : 53.11 [18:56:08]line Наличными: 500.00 [18:56:08]line Безнал.: 0.00 [18:56:08]line Место: АЗС № 64 "Партнер Нефть" [18:56:08]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:56:08]line СНО: Общий режим [18:56:08]line Чек 157 26.11.2024 18:56 [18:56:08]line Смена: 557 ФФД: 1.0 [18:56:08]line ЗНМ: 0300000033 [18:56:08]line РНМ: 0000000000092681 [18:56:08]line Версия ККМ: 001 [18:56:08]line ФМ: 0000000000874881 [18:56:08]line ФД: 123303 [18:56:08]line ФПД: 154763492411278 [18:56:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T185618&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123303&fm=154763492411278&tin=02508201610067®Number=0000000000092681&sum=50000 [18:56:08]OFD Sender: Processing packet 123303 [packets to send 7, broken 6] [18:56:08]ProducePacketName [18:56:08]name=ofd_packets/00123303 [18:56:08]OFD Sender: To server: pG, [18:56:08]CommunicateWithHost lk.salyk.kg:30040 [18:56:08]ConnectInit lk.salyk.kg [18:56:08]written 0, free lines is 4095 [18:56:08]Connected sock=10 [18:56:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3B D5 07 01 C6 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 D2 19 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A7 E1 01 00 35 04 06 00 8C C1 AE FD 47 8E 4A D8 7D F7 A5 4D D3 B3 [18:56:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 13 A7 47 00 30 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A7 E1 01 00 F4 03 04 00 94 C5 45 67 B6 04 01 00 00 78 41 E1 3D 58 36 0A 00 [18:56:08]CommunicateWithHost err = 0 [18:56:08]CheckOFDResponse [18:56:08]1017 (14) - 77093643461234 [18:56:08]1041 (16) - 0000000000874881 [18:56:08]1040 (4) - 123303 [18:56:08]1012 (4) - 26.11.2024 12:56 [18:56:08]1206 (1) - 0 [18:56:08]OFD Sender: Remove packet 123303 [18:56:08]ProducePacketName [18:56:08]name=ofd_packets/00123303 [18:56:08]NVStorageDeleteData [18:56:09]Write to MH i2c: 01 00 00 22 75 97 [18:56:09]Write i2c OK [18:56:09]MH_I2C_Read... [18:56:09]Read from MH i2c: 01 [18:56:09]MH_I2C_Read... [18:56:09]Read from MH i2c: 01 07 00 [18:56:09]MH_I2C_Read... [18:56:09]Read from MH i2c: 01 07 00 22 75 00 00 00 00 00 4F 0C F9 [18:56:09]RasterBufferAndPrint [18:56:09]line [18:56:09]line [18:56:09]line [18:56:09]line [18:56:09]line [18:56:09]written 0, free lines is 3156 [18:56:09]MH_Cut [18:56:09]Write to MH i2c: D1 01 00 29 75 01 70 [18:56:09]Write i2c OK [18:56:09]MH_I2C_Read... [18:56:09]Read from MH i2c: D1 [18:56:09]MH_I2C_Read... [18:56:09]Read from MH i2c: D1 01 00 [18:56:09]MH_I2C_Read... [18:56:09]Read from MH i2c: D1 01 00 29 75 00 6F [18:56:09]Write to MH i2c: 01 00 00 2A 75 9F [18:56:09]Write i2c OK [18:56:09]MH_I2C_Read... [18:56:09]OFD Sender: No OFD packet to send [18:56:10]*** Cut start [18:56:10]*** Partial cut [18:56:10]*** CUTSNS_PIN = 1 [18:56:10]*** CUTSNS_PIN = 0 [18:56:10]*** Brake cut motor [18:56:11]Read from MH i2c: 01 [18:56:11]MH_I2C_Read... [18:56:11]*** Stop cut motor [18:56:11]*** Cut end [18:56:11]Read from MH i2c: 01 07 00 [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: 01 07 00 2A 75 00 00 00 00 00 FF 0F B4 [18:56:11]process_action close_receipt done [18:56:11]requested_data is exist [18:56:11]produce_requested_data [18:56:11]requested_item fm.sn is exist - process it [18:56:11]wFMCommunicate request_size=4 [18:56:11]MH_SAM_APDU [18:56:11]CAPDU: 80 11 00 00 [18:56:11]Write to MH i2c: E2 08 00 2B 75 80 11 00 00 00 00 00 00 1A [18:56:11]Write i2c OK [18:56:11]MH_I2C_Read... [18:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:11]Read from MH i2c: E2 [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: E2 17 00 [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: E2 17 00 2B 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 71 [18:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:56:11]wFMCommunicate OK [18:56:11]requested_item fd.num is exist - process it [18:56:11]SAM_PROTO_GetFieldsCounters [18:56:11]wFMCommunicate request_size=4 [18:56:11]MH_SAM_APDU [18:56:11]CAPDU: 80 13 00 00 [18:56:11]Write to MH i2c: E2 08 00 2C 75 80 13 00 00 00 00 00 00 1D [18:56:11]Write i2c OK [18:56:11]MH_I2C_Read... [18:56:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:11]Read from MH i2c: E2 [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: E2 62 00 [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: E2 62 00 2C 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A7 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [18:56:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A7 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:11]wFMCommunicate OK [18:56:11]SAM_PROTO_GetFieldsCounters done [18:56:11]requested_item shift.num is exist - process it [18:56:11]requested_item shift.opened is exist - process it [18:56:11]req_shift_opened [18:56:11]FM_GetShiftState [18:56:11]SAM_PROTO_GetShiftState [18:56:11]wFMCommunicate request_size=4 [18:56:11]MH_SAM_APDU [18:56:11]CAPDU: 80 13 01 00 [18:56:11]Write to MH i2c: E2 08 00 2D 75 80 13 01 00 00 00 00 00 1F [18:56:11]Write i2c OK [18:56:11]MH_I2C_Read... [18:56:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:11]Read from MH i2c: E2 [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: E2 0E 00 [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: E2 0E 00 2D 75 00 09 00 01 98 11 45 67 00 00 00 00 90 00 80 [18:56:11]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:56:11]wFMCommunicate OK [18:56:11]SAM_PROTO_GetShiftState done [18:56:11]FM_GetShiftState done [18:56:11]req_shift_opened done [18:56:11]requested_item shift.open_date is exist - process it [18:56:11]req_shift_open_date [18:56:11]req_shift_open_date done [18:56:11]produce_requested_data done [18:56:11]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123303,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [18:56:11]process_action_free close_receipt [18:56:11]json_value_free [18:56:11]json_value_free done [18:56:11]process_json_proto returns [18:56:11]Send response to host [18:56:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123303,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [18:56:11]free response buf [18:56:11]execute_script done [18:56:11]execute_script returns [18:56:11]free content buf [18:56:11]Sock 9.Close socket [18:56:11]Sock 9.Thread stoped [18:56:14]OFD Sender: No OFD packet to send [18:56:19]OFD Sender: No OFD packet to send [18:56:24]OFD Sender: No OFD packet to send [18:56:29]OFD Sender: No OFD packet to send [18:56:34]OFD Sender: No OFD packet to send [18:56:39]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [18:57:24]OFD Sender: No OFD packet to send [18:57:29]OFD Sender: No OFD packet to send [18:57:34]OFD Sender: No OFD packet to send [18:57:39]OFD Sender: No OFD packet to send [18:57:44]OFD Sender: No OFD packet to send [18:57:49]OFD Sender: No OFD packet to send [18:57:54]OFD Sender: No OFD packet to send [18:57:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:07]accept exits with 7 [18:58:07]New connection [18:58:07]New thread 3066723684 created [18:58:07]Thread 3066580324 joined [18:58:07]Waiting for new connection... [18:58:07] Sock 7.Parse request [18:58:07]Sock 7.Check first char [18:58:07]Sock 7.First char is OK [18:58:07]request: POST /json_proto HTTP/1.0 [18:58:07]Method: POST [18:58:07]URL: /json_proto [18:58:07]Method is POST - this is cgi request [18:58:07]url: /json_proto [18:58:07]query_string will be loaded in cgi processing [18:58:07]execute_cgi json_proto POST (null) [18:58:07]execute_cgi path=json_proto method=POST [18:58:07]POST find Content-Length [18:58:07]Host: 172.17.37.4:8080 [18:58:07]Content-Length: 797 [18:58:07]Content-Type: application/json [18:58:07] [18:58:07]POST finish read [18:58:07]Found Content-Length = 797 [18:58:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53274", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:07]execute_script... [18:58:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53274", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:07]POST & json_proto [18:58:07]process_json_proto [18:58:07]json parsed OK: [18:58:07]protocol is kg_v1.0 [18:58:07]action value=close_receipt [18:58:07]process_action close_receipt [18:58:07]cmd_close_receipt [18:58:07]MH_GetDate [18:58:07]Write to MH i2c: F0 00 00 2E 75 92 [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: F0 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: F0 09 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: F0 09 00 2E 75 00 4B 1A 46 67 B8 5A 43 67 69 [18:58:07]GetLastDocTimeStamp 1732647378 [18:58:07]current date 1732647499 [18:58:07]FM_GetShiftState [18:58:07]SAM_PROTO_GetShiftState [18:58:07]wFMCommunicate request_size=4 [18:58:07]MH_SAM_APDU [18:58:07]CAPDU: 80 13 01 00 [18:58:07]Write to MH i2c: E2 08 00 2F 75 80 13 01 00 00 00 00 00 21 [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:07]Read from MH i2c: E2 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 0E 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 0E 00 2F 75 00 09 00 01 98 11 45 67 00 00 00 00 90 00 82 [18:58:07]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:58:07]wFMCommunicate OK [18:58:07]SAM_PROTO_GetShiftState done [18:58:07]FM_GetShiftState done [18:58:07]opened in 1732579736 [18:58:07]opened+sec_in_day 1732666136 [18:58:07]quantity*price = 0 [18:58:07]sum+1 = 1 [18:58:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 158 26.11.2024 18:58 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 53274 ФМ: 0000000000874881 ФД: 123304 ФПД: 81578568260858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T185819&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123304&fm=81578568260858&tin=02508201610067®Number=0000000000092681&sum=0 [18:58:08]StoreToDocumentArchive [18:58:08]shift 557 fd 123304 [18:58:08]save to /storage/0557/doc_00123304 [18:58:08]save last doc name /storage/0557/doc_00123304 to /storage/kkm_last_doc_name [18:58:08]save OK [18:58:08]Clear old archive folders... [18:58:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:58:08]tlvbuf is 01F33800 [18:58:08]SAM_PROTO_ClearQueue [18:58:08]wFMCommunicate request_size=4 [18:58:08]MH_SAM_APDU [18:58:08]CAPDU: 80 09 00 00 [18:58:08]Write to MH i2c: E2 08 00 3C 75 80 09 00 00 00 00 00 00 23 [18:58:08]Write i2c OK [18:58:08]MH_I2C_Read... [18:58:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:08]Read from MH i2c: E2 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 03 00 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 03 00 3C 75 00 90 00 25 [18:58:08]RAPDU: 90 00 [18:58:08]wFMCommunicate OK [18:58:08]SAM_PROTO_ClearQueue done [18:58:08]KKMCreateOFDPacket [18:58:08]OFDProtocolAddRootSTLVToBuf [18:58:08]FM_MakeSignedData [18:58:08]FM_MakeSignedData [18:58:08]SAM_PROTO_SignData [18:58:08]wFMCommunicate request_size=4 [18:58:08]MH_SAM_APDU [18:58:08]CAPDU: 80 0D 01 02 [18:58:08]Write to MH i2c: E2 08 00 3D 75 80 0D 01 02 00 00 00 00 2B [18:58:08]Write i2c OK [18:58:08]MH_I2C_Read... [18:58:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:08]Read from MH i2c: E2 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 03 00 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 03 00 3D 75 00 90 00 26 [18:58:08]RAPDU: 90 00 [18:58:08]wFMCommunicate OK [18:58:08]wFMCommunicate request_size=255 [18:58:08]MH_SAM_APDU [18:58:08]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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 4B 1A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A8 E1 01 00 35 04 06 00 [18:58:08]Write to MH i2c: E2 02 01 3E 75 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 4B 1A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A8 E1 01 00 35 04 06 00 00 00 05 [18:58:08]Write i2c OK [18:58:08]MH_I2C_Read... [18:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:08]Read from MH i2c: E2 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 03 00 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 03 00 3E 75 00 90 00 27 [18:58:08]RAPDU: 90 00 [18:58:08]wFMCommunicate OK [18:58:08]wFMCommunicate request_size=11 [18:58:08]MH_SAM_APDU [18:58:08]CAPDU: 80 0D 02 02 06 4A 31 FD 95 1C FA [18:58:08]Write to MH i2c: E2 0E 00 3F 75 80 0D 02 02 06 00 4A 31 FD 95 1C FA 00 00 5D [18:58:08]Write i2c OK [18:58:08]MH_I2C_Read... [18:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:08]Read from MH i2c: E2 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 03 00 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 03 00 3F 75 00 90 00 28 [18:58:08]RAPDU: 90 00 [18:58:08]wFMCommunicate OK [18:58:08]wFMCommunicate request_size=4 [18:58:08]MH_SAM_APDU [18:58:08]CAPDU: 80 0D 03 02 [18:58:08]Write to MH i2c: E2 08 00 40 75 80 0D 03 02 00 00 00 00 30 [18:58:08]Write i2c OK [18:58:08]MH_I2C_Read... [18:58:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:08]Read from MH i2c: E2 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 0B 00 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 0B 00 40 75 00 C9 47 04 1C 19 37 64 7C 90 00 91 [18:58:08]RAPDU: C9 47 04 1C 19 37 64 7C 90 00 [18:58:08]wFMCommunicate OK [18:58:08]SAM_PROTO_SignData done [18:58:08]FM_MakeSignedData done [18:58:08]CreateOFDProtocolMessage [18:58:08]wFMCommunicate request_size=4 [18:58:08]MH_SAM_APDU [18:58:08]CAPDU: 80 11 00 00 [18:58:08]Write to MH i2c: E2 08 00 41 75 80 11 00 00 00 00 00 00 30 [18:58:08]Write i2c OK [18:58:08]MH_I2C_Read... [18:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:08]Read from MH i2c: E2 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 17 00 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 17 00 41 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 87 [18:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:58:08]wFMCommunicate OK [18:58:08]CreateOFDProtocolMessage done [18:58:08]OFDSenderStorePacket 123304 [18:58:08]StoreOFDPacket docnum=123304 [18:58:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 43 C9 08 01 17 31 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 4B 1A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A8 E1 01 00 35 04 06 00 4A 31 FD 95 1C FA C9 47 04 1C 19 37 64 7C [18:58:08]CheckFolder [18:58:08]dirname=/storage/ofd_packets [18:58:08]CheckFolder done [18:58:08]ProducePacketName [18:58:08]name=ofd_packets/00123304 [18:58:08]NVStorageSaveData ofd_packets/00123304 [18:58:08]File name is /storage/ofd_packets/00123304 [18:58:08]Write 302 bytes [18:58:08]NVStorageSaveData done [18:58:08]OFDSenderStorePacket done [18:58:08]KKMCreateOFDPacket done [18:58:08]NVStorageSaveData kkm_last_timestamp [18:58:08]File name is /storage/kkm_last_timestamp [18:58:08]Write 4 bytes [18:58:08]NVStorageSaveData done [18:58:08]ExternCall_PrintAddStr [18:58:08]wPrintStart [18:58:08]Write to MH i2c: 01 00 00 42 75 B7 [18:58:08]Write i2c OK [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: 01 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: 01 07 00 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: 01 07 00 42 75 00 00 00 00 00 FF 0F CC [18:58:08]RasterBufferAndPrint [18:58:08]line Счет N : (1)718132 [18:58:08]line ИНН: 02508201610067 [18:58:08]line Контрольно-Кассовый Чек [18:58:08]line ПРОДАЖА [18:58:08]line ТРК (МРК, ГНК) : 6 [18:58:08]line Товар: 2710194210 [18:58:08]line ДТ(л)-К-5 [18:58:08]line 100.000 * 0.00 [18:58:08]line = 0.00 [18:58:08]line НДС 12% НСП 1% [18:58:08]line > о реализуемом товаре [18:58:08]line ИТОГО: 0.00 [18:58:08]line НСП 1% : 0.00 [18:58:08]line НДС 12% : 0.00 [18:58:08]line Наличными: 0.00 [18:58:08]line Безнал.: 0.00 [18:58:08]line Место: АЗС № 64 "Партнер Нефть" [18:58:08]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [18:58:08]line СНО: Общий режим [18:58:08]line Чек 158 26.11.2024 18:58 [18:58:08]line Смена: 557 ФФД: 1.0 [18:58:08]line ЗНМ: 0300000033 [18:58:08]line РНМ: 0000000000092681 [18:58:08]line Версия ККМ: 001 [18:58:08]line Талоны: Топливная Карта [18:58:08]line 53274 [18:58:08]line ФМ: 0000000000874881 [18:58:08]line ФД: 123304 [18:58:08]line ФПД: 81578568260858 [18:58:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T185819&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123304&fm=81578568260858&tin=02508201610067®Number=0000000000092681&sum=0 [18:58:09]written 0, free lines is 4095 [18:58:09]OFD Sender: Processing packet 123304 [packets to send 7, broken 6] [18:58:09]ProducePacketName [18:58:09]name=ofd_packets/00123304 [18:58:09]OFD Sender: To server: pG, [18:58:09]CommunicateWithHost lk.salyk.kg:30040 [18:58:09]ConnectInit lk.salyk.kg [18:58:09]Connected sock=10 [18:58:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 43 C9 08 01 17 31 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 4B 1A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A8 E1 01 00 35 04 06 00 4A 31 FD 95 1C FA C9 47 04 1C 19 37 64 7C [18:58:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 08 5E 47 00 E0 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A8 E1 01 00 F4 03 04 00 0D C6 45 67 B6 04 01 00 00 CE EC 34 91 94 C5 72 26 [18:58:09]CommunicateWithHost err = 0 [18:58:09]CheckOFDResponse [18:58:09]1017 (14) - 77093643461234 [18:58:09]1041 (16) - 0000000000874881 [18:58:09]1040 (4) - 123304 [18:58:09]1012 (4) - 26.11.2024 12:58 [18:58:09]1206 (1) - 0 [18:58:09]OFD Sender: Remove packet 123304 [18:58:09]ProducePacketName [18:58:09]name=ofd_packets/00123304 [18:58:09]NVStorageDeleteData [18:58:09]Write to MH i2c: 01 00 00 6C 75 E1 [18:58:09]Write i2c OK [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: 01 [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: 01 07 00 [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: 01 07 00 6C 75 00 00 00 00 00 68 0C 5C [18:58:09]RasterBufferAndPrint [18:58:09]line [18:58:09]line [18:58:09]line [18:58:09]line [18:58:09]line [18:58:09]written 0, free lines is 3181 [18:58:09]MH_Cut [18:58:09]Write to MH i2c: D1 01 00 73 75 01 BA [18:58:09]Write i2c OK [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: D1 [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: D1 01 00 [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: D1 01 00 73 75 00 B9 [18:58:09]Write to MH i2c: 01 00 00 74 75 E9 [18:58:09]Write i2c OK [18:58:09]MH_I2C_Read... [18:58:10]OFD Sender: No OFD packet to send [18:58:11]*** Cut start [18:58:11]*** Partial cut [18:58:11]*** CUTSNS_PIN = 1 [18:58:11]*** CUTSNS_PIN = 0 [18:58:11]*** Brake cut motor [18:58:11]Read from MH i2c: 01 [18:58:11]MH_I2C_Read... [18:58:11]*** Stop cut motor [18:58:11]*** Cut end [18:58:11]Read from MH i2c: 01 07 00 [18:58:11]MH_I2C_Read... [18:58:11]Read from MH i2c: 01 07 00 74 75 00 00 00 00 00 FF 0F FE [18:58:11]process_action close_receipt done [18:58:11]requested_data is exist [18:58:11]produce_requested_data [18:58:11]requested_item fm.sn is exist - process it [18:58:11]wFMCommunicate request_size=4 [18:58:11]MH_SAM_APDU [18:58:11]CAPDU: 80 11 00 00 [18:58:11]Write to MH i2c: E2 08 00 75 75 80 11 00 00 00 00 00 00 64 [18:58:11]Write i2c OK [18:58:11]MH_I2C_Read... [18:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:11]Read from MH i2c: E2 [18:58:11]MH_I2C_Read... [18:58:11]Read from MH i2c: E2 17 00 [18:58:11]MH_I2C_Read... [18:58:11]Read from MH i2c: E2 17 00 75 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BB [18:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [18:58:11]wFMCommunicate OK [18:58:11]requested_item fd.num is exist - process it [18:58:11]SAM_PROTO_GetFieldsCounters [18:58:11]wFMCommunicate request_size=4 [18:58:11]MH_SAM_APDU [18:58:11]CAPDU: 80 13 00 00 [18:58:11]Write to MH i2c: E2 08 00 76 75 80 13 00 00 00 00 00 00 67 [18:58:11]Write i2c OK [18:58:11]MH_I2C_Read... [18:58:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:11]Read from MH i2c: E2 [18:58:11]MH_I2C_Read... [18:58:11]Read from MH i2c: E2 62 00 [18:58:11]MH_I2C_Read... [18:58:11]Read from MH i2c: E2 62 00 76 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A8 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [18:58:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A8 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:11]wFMCommunicate OK [18:58:11]SAM_PROTO_GetFieldsCounters done [18:58:11]requested_item shift.num is exist - process it [18:58:11]requested_item shift.opened is exist - process it [18:58:11]req_shift_opened [18:58:11]FM_GetShiftState [18:58:11]SAM_PROTO_GetShiftState [18:58:11]wFMCommunicate request_size=4 [18:58:11]MH_SAM_APDU [18:58:11]CAPDU: 80 13 01 00 [18:58:11]Write to MH i2c: E2 08 00 77 75 80 13 01 00 00 00 00 00 69 [18:58:11]Write i2c OK [18:58:11]MH_I2C_Read... [18:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:11]Read from MH i2c: E2 [18:58:11]MH_I2C_Read... [18:58:11]Read from MH i2c: E2 0E 00 [18:58:11]MH_I2C_Read... [18:58:11]Read from MH i2c: E2 0E 00 77 75 00 09 00 01 98 11 45 67 00 00 00 00 90 00 CA [18:58:11]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [18:58:11]wFMCommunicate OK [18:58:11]SAM_PROTO_GetShiftState done [18:58:11]FM_GetShiftState done [18:58:11]req_shift_opened done [18:58:11]requested_item shift.open_date is exist - process it [18:58:11]req_shift_open_date [18:58:11]req_shift_open_date done [18:58:11]produce_requested_data done [18:58:11]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123304,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [18:58:11]process_action_free close_receipt [18:58:11]json_value_free [18:58:11]json_value_free done [18:58:11]process_json_proto returns [18:58:11]Send response to host [18:58:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123304,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [18:58:11]free response buf [18:58:11]execute_script done [18:58:11]execute_script returns [18:58:11]free content buf [18:58:11]Sock 7.Close socket [18:58:11]Sock 7.Thread stoped [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:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:45]OFD Sender: No OFD packet to send [18:59:50]OFD Sender: No OFD packet to send [18:59:55]OFD Sender: No OFD packet to send [19:00:00]OFD Sender: No OFD packet to send [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:35]OFD Sender: No OFD packet to send [19:01:40]OFD Sender: No OFD packet to send [19:01:45]OFD Sender: No OFD packet to send [19:01:50]OFD Sender: No OFD packet to send [19:01:55]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:30]OFD Sender: No OFD packet to send [19:02:35]OFD Sender: No OFD packet to send [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:50]accept exits with 9 [19:03:50]New connection [19:03:50]New thread 3066580324 created [19:03:50]Thread 3066723684 joined [19:03:50]Waiting for new connection... [19:03:50] Sock 9.Parse request [19:03:50]Sock 9.Check first char [19:03:50]Sock 9.First char is OK [19:03:50]request: POST /json_proto HTTP/1.0 [19:03:50]Method: POST [19:03:50]URL: /json_proto [19:03:50]Method is POST - this is cgi request [19:03:50]url: /json_proto [19:03:50]query_string will be loaded in cgi processing [19:03:50]execute_cgi json_proto POST (null) [19:03:50]execute_cgi path=json_proto method=POST [19:03:50]POST find Content-Length [19:03:50]Host: 172.17.37.4:8080 [19:03:50]Content-Length: 797 [19:03:50]Content-Type: application/json [19:03:50] [19:03:50]POST finish read [19:03:50]Found Content-Length = 797 [19:03:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53274", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:50]execute_script... [19:03: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)718135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53274", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:50]POST & json_proto [19:03:50]process_json_proto [19:03:50]json parsed OK: [19:03:50]protocol is kg_v1.0 [19:03:50]action value=close_receipt [19:03:50]process_action close_receipt [19:03:50]cmd_close_receipt [19:03:50]MH_GetDate [19:03:50]Write to MH i2c: F0 00 00 78 75 DC [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: F0 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: F0 09 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: F0 09 00 78 75 00 A2 1B 46 67 B8 5A 43 67 0B [19:03:50]GetLastDocTimeStamp 1732647499 [19:03:50]current date 1732647842 [19:03:50]FM_GetShiftState [19:03:50]SAM_PROTO_GetShiftState [19:03:50]wFMCommunicate request_size=4 [19:03:50]MH_SAM_APDU [19:03:50]CAPDU: 80 13 01 00 [19:03:50]Write to MH i2c: E2 08 00 79 75 80 13 01 00 00 00 00 00 6B [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:50]Read from MH i2c: E2 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 0E 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 0E 00 79 75 00 09 00 01 98 11 45 67 00 00 00 00 90 00 CC [19:03:50]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:03:50]wFMCommunicate OK [19:03:50]SAM_PROTO_GetShiftState done [19:03:50]FM_GetShiftState done [19:03:50]opened in 1732579736 [19:03:50]opened+sec_in_day 1732666136 [19:03:50]quantity*price = 0 [19:03:50]sum+1 = 1 [19:03:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 159 26.11.2024 19:04 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 53274 ФМ: 0000000000874881 ФД: 123305 ФПД: 58114553141950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T190402&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123305&fm=58114553141950&tin=02508201610067®Number=0000000000092681&sum=0 [19:03:51]StoreToDocumentArchive [19:03:51]shift 557 fd 123305 [19:03:51]save to /storage/0557/doc_00123305 [19:03:51]save last doc name /storage/0557/doc_00123305 to /storage/kkm_last_doc_name [19:03:51]save OK [19:03:51]Clear old archive folders... [19:03:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:03:51]tlvbuf is 020B0370 [19:03:51]SAM_PROTO_ClearQueue [19:03:51]wFMCommunicate request_size=4 [19:03:51]MH_SAM_APDU [19:03:51]CAPDU: 80 09 00 00 [19:03:51]Write to MH i2c: E2 08 00 86 75 80 09 00 00 00 00 00 00 6D [19:03:51]Write i2c OK [19:03:51]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:52]Read from MH i2c: E2 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 86 75 00 90 00 6F [19:03:52]RAPDU: 90 00 [19:03:52]wFMCommunicate OK [19:03:52]SAM_PROTO_ClearQueue done [19:03:52]KKMCreateOFDPacket [19:03:52]OFDProtocolAddRootSTLVToBuf [19:03:52]FM_MakeSignedData [19:03:52]FM_MakeSignedData [19:03:52]SAM_PROTO_SignData [19:03:52]wFMCommunicate request_size=4 [19:03:52]MH_SAM_APDU [19:03:52]CAPDU: 80 0D 01 02 [19:03:52]Write to MH i2c: E2 08 00 87 75 80 0D 01 02 00 00 00 00 75 [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:52]Read from MH i2c: E2 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 87 75 00 90 00 70 [19:03:52]RAPDU: 90 00 [19:03:52]wFMCommunicate OK [19:03:52]wFMCommunicate request_size=255 [19:03:52]MH_SAM_APDU [19:03:52]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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 A2 1B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A9 E1 01 00 35 04 06 00 [19:03:52]Write to MH i2c: E2 02 01 88 75 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 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 A2 1B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A9 E1 01 00 35 04 06 00 00 00 A9 [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:52]Read from MH i2c: E2 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 88 75 00 90 00 71 [19:03:52]RAPDU: 90 00 [19:03:52]wFMCommunicate OK [19:03:52]wFMCommunicate request_size=11 [19:03:52]MH_SAM_APDU [19:03:52]CAPDU: 80 0D 02 02 06 34 DA D9 4B DA BE [19:03:52]Write to MH i2c: E2 0E 00 89 75 80 0D 02 02 06 00 34 DA D9 4B DA BE 00 00 4E [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:52]Read from MH i2c: E2 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 89 75 00 90 00 72 [19:03:52]RAPDU: 90 00 [19:03:52]wFMCommunicate OK [19:03:52]wFMCommunicate request_size=4 [19:03:52]MH_SAM_APDU [19:03:52]CAPDU: 80 0D 03 02 [19:03:52]Write to MH i2c: E2 08 00 8A 75 80 0D 03 02 00 00 00 00 7A [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:52]Read from MH i2c: E2 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 0B 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 0B 00 8A 75 00 ED 16 3F 9A ED AA 2A CF 90 00 E7 [19:03:52]RAPDU: ED 16 3F 9A ED AA 2A CF 90 00 [19:03:52]wFMCommunicate OK [19:03:52]SAM_PROTO_SignData done [19:03:52]FM_MakeSignedData done [19:03:52]CreateOFDProtocolMessage [19:03:52]wFMCommunicate request_size=4 [19:03:52]MH_SAM_APDU [19:03:52]CAPDU: 80 11 00 00 [19:03:52]Write to MH i2c: E2 08 00 8B 75 80 11 00 00 00 00 00 00 7A [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:52]Read from MH i2c: E2 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 17 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 17 00 8B 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D1 [19:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:03:52]wFMCommunicate OK [19:03:52]CreateOFDProtocolMessage done [19:03:52]OFDSenderStorePacket 123305 [19:03:52]StoreOFDPacket docnum=123305 [19:03:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 01 2D 08 01 A6 79 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 A2 1B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A9 E1 01 00 35 04 06 00 34 DA D9 4B DA BE ED 16 3F 9A ED AA 2A CF [19:03:52]CheckFolder [19:03:52]dirname=/storage/ofd_packets [19:03:52]CheckFolder done [19:03:52]ProducePacketName [19:03:52]name=ofd_packets/00123305 [19:03:52]NVStorageSaveData ofd_packets/00123305 [19:03:52]File name is /storage/ofd_packets/00123305 [19:03:52]Write 302 bytes [19:03:52]NVStorageSaveData done [19:03:52]OFDSenderStorePacket done [19:03:52]KKMCreateOFDPacket done [19:03:52]NVStorageSaveData kkm_last_timestamp [19:03:52]File name is /storage/kkm_last_timestamp [19:03:52]Write 4 bytes [19:03:52]NVStorageSaveData done [19:03:52]ExternCall_PrintAddStr [19:03:52]wPrintStart [19:03:52]Write to MH i2c: 01 00 00 8C 75 01 [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: 01 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: 01 07 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: 01 07 00 8C 75 00 00 00 00 00 FF 0F 16 [19:03:52]RasterBufferAndPrint [19:03:52]line Счет N : (1)718135 [19:03:52]line ИНН: 02508201610067 [19:03:52]line Контрольно-Кассовый Чек [19:03:52]line ПРОДАЖА [19:03:52]line ТРК (МРК, ГНК) : 6 [19:03:52]line Товар: 2710194210 [19:03:52]line ДТ(л)-К-5 [19:03:52]line 100.000 * 0.00 [19:03:52]line = 0.00 [19:03:52]line НДС 12% НСП 1% [19:03:52]line > о реализуемом товаре [19:03:52]line ИТОГО: 0.00 [19:03:52]line НСП 1% : 0.00 [19:03:52]line НДС 12% : 0.00 [19:03:52]line Наличными: 0.00 [19:03:52]line Безнал.: 0.00 [19:03:52]line Место: АЗС № 64 "Партнер Нефть" [19:03:52]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:03:52]line СНО: Общий режим [19:03:52]line Чек 159 26.11.2024 19:04 [19:03:52]line Смена: 557 ФФД: 1.0 [19:03:52]line ЗНМ: 0300000033 [19:03:52]line РНМ: 0000000000092681 [19:03:52]line Версия ККМ: 001 [19:03:52]line Талоны: Топливная Карта [19:03:52]line 53274 [19:03:52]line ФМ: 0000000000874881 [19:03:52]line ФД: 123305 [19:03:52]line ФПД: 58114553141950 [19:03:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T190402&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123305&fm=58114553141950&tin=02508201610067®Number=0000000000092681&sum=0 [19:03:52]written 0, free lines is 4095 [19:03:52]OFD Sender: Processing packet 123305 [packets to send 7, broken 6] [19:03:52]ProducePacketName [19:03:52]name=ofd_packets/00123305 [19:03:52]OFD Sender: To server: pG, [19:03:52]CommunicateWithHost lk.salyk.kg:30040 [19:03:52]ConnectInit lk.salyk.kg [19:03:52]Connected sock=10 [19:03:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 01 2D 08 01 A6 79 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 A2 1B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A9 E1 01 00 35 04 06 00 34 DA D9 4B DA BE ED 16 3F 9A ED AA 2A CF [19:03:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 03 BD 47 00 33 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A9 E1 01 00 F4 03 04 00 64 C7 45 67 B6 04 01 00 00 CF EC EA 5C 01 89 BB 2D [19:03:53]CommunicateWithHost err = 0 [19:03:53]CheckOFDResponse [19:03:53]1017 (14) - 77093643461234 [19:03:53]1041 (16) - 0000000000874881 [19:03:53]1040 (4) - 123305 [19:03:53]1012 (4) - 26.11.2024 13:04 [19:03:53]1206 (1) - 0 [19:03:53]OFD Sender: Remove packet 123305 [19:03:53]ProducePacketName [19:03:53]name=ofd_packets/00123305 [19:03:53]NVStorageDeleteData [19:03:53]Write to MH i2c: 01 00 00 B6 75 2B [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: 01 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: 01 07 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: 01 07 00 B6 75 00 00 00 00 00 5C 0C 9A [19:03:53]RasterBufferAndPrint [19:03:53]line [19:03:53]line [19:03:53]line [19:03:53]line [19:03:53]line [19:03:53]written 0, free lines is 3169 [19:03:53]MH_Cut [19:03:53]Write to MH i2c: D1 01 00 BD 75 01 04 [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: D1 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: D1 01 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: D1 01 00 BD 75 00 03 [19:03:53]Write to MH i2c: 01 00 00 BE 75 33 [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]OFD Sender: No OFD packet to send [19:03:54]*** Cut start [19:03:54]*** Partial cut [19:03:54]*** CUTSNS_PIN = 1 [19:03:54]*** CUTSNS_PIN = 0 [19:03:54]*** Brake cut motor [19:03:55]Read from MH i2c: 01 [19:03:55]MH_I2C_Read... [19:03:55]*** Stop cut motor [19:03:55]*** Cut end [19:03:55]Read from MH i2c: 01 07 00 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: 01 07 00 BE 75 00 00 00 00 00 FF 0F 48 [19:03:55]process_action close_receipt done [19:03:55]requested_data is exist [19:03:55]produce_requested_data [19:03:55]requested_item fm.sn is exist - process it [19:03:55]wFMCommunicate request_size=4 [19:03:55]MH_SAM_APDU [19:03:55]CAPDU: 80 11 00 00 [19:03:55]Write to MH i2c: E2 08 00 BF 75 80 11 00 00 00 00 00 00 AE [19:03:55]Write i2c OK [19:03:55]MH_I2C_Read... [19:03:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:55]Read from MH i2c: E2 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 17 00 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 17 00 BF 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 05 [19:03:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:03:55]wFMCommunicate OK [19:03:55]requested_item fd.num is exist - process it [19:03:55]SAM_PROTO_GetFieldsCounters [19:03:55]wFMCommunicate request_size=4 [19:03:55]MH_SAM_APDU [19:03:55]CAPDU: 80 13 00 00 [19:03:55]Write to MH i2c: E2 08 00 C0 75 80 13 00 00 00 00 00 00 B1 [19:03:55]Write i2c OK [19:03:55]MH_I2C_Read... [19:03:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:55]Read from MH i2c: E2 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 62 00 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 62 00 C0 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A9 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [19:03:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 A9 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:55]wFMCommunicate OK [19:03:55]SAM_PROTO_GetFieldsCounters done [19:03:55]requested_item shift.num is exist - process it [19:03:55]requested_item shift.opened is exist - process it [19:03:55]req_shift_opened [19:03:55]FM_GetShiftState [19:03:55]SAM_PROTO_GetShiftState [19:03:55]wFMCommunicate request_size=4 [19:03:55]MH_SAM_APDU [19:03:55]CAPDU: 80 13 01 00 [19:03:55]Write to MH i2c: E2 08 00 C1 75 80 13 01 00 00 00 00 00 B3 [19:03:55]Write i2c OK [19:03:55]MH_I2C_Read... [19:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:55]Read from MH i2c: E2 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 0E 00 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 0E 00 C1 75 00 09 00 01 98 11 45 67 00 00 00 00 90 00 14 [19:03:55]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:03:55]wFMCommunicate OK [19:03:55]SAM_PROTO_GetShiftState done [19:03:55]FM_GetShiftState done [19:03:55]req_shift_opened done [19:03:55]requested_item shift.open_date is exist - process it [19:03:55]req_shift_open_date [19:03:55]req_shift_open_date done [19:03:55]produce_requested_data done [19:03:55]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123305,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [19:03:55]process_action_free close_receipt [19:03:55]json_value_free [19:03:55]json_value_free done [19:03:55]process_json_proto returns [19:03:55]Send response to host [19:03:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123305,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [19:03:55]free response buf [19:03:55]execute_script done [19:03:55]execute_script returns [19:03:55]free content buf [19:03:55]Sock 9.Close socket [19:03:55]Sock 9.Thread stoped [19:03:58]OFD Sender: No OFD packet to send [19:04:03]OFD Sender: No OFD packet to send [19:04:08]OFD Sender: No OFD packet to send [19:04:13]OFD Sender: No OFD packet to send [19:04:18]OFD Sender: No OFD packet to send [19:04:23]OFD Sender: No OFD packet to send [19:04:28]OFD Sender: No OFD packet to send [19:04:33]OFD Sender: No OFD packet to send [19:04:38]OFD Sender: No OFD packet to send [19:04:43]OFD Sender: No OFD packet to send [19:04:48]OFD Sender: No OFD packet to send [19:04:53]OFD Sender: No OFD packet to send [19:04:58]OFD Sender: No OFD packet to send [19:05:03]OFD Sender: No OFD packet to send [19:05:08]OFD Sender: No OFD packet to send [19:05:13]OFD Sender: No OFD packet to send [19:05:18]OFD Sender: No OFD packet to send [19:05:23]OFD Sender: No OFD packet to send [19:05:28]OFD Sender: No OFD packet to send [19:05:33]OFD Sender: No OFD packet to send [19:05:38]OFD Sender: No OFD packet to send [19:05:43]OFD Sender: No OFD packet to send [19:05:48]OFD Sender: No OFD packet to send [19:05:49]accept exits with 7 [19:05:49]New connection [19:05:49]New thread 3066723684 created [19:05:49]Thread 3066580324 joined [19:05:49]Waiting for new connection... [19:05:49] Sock 7.Parse request [19:05:49]Sock 7.Check first char [19:05:49]Sock 7.First char is OK [19:05:49]request: POST /json_proto HTTP/1.0 [19:05:49]Method: POST [19:05:49]URL: /json_proto [19:05:49]Method is POST - this is cgi request [19:05:49]url: /json_proto [19:05:49]query_string will be loaded in cgi processing [19:05:49]execute_cgi json_proto POST (null) [19:05:49]execute_cgi path=json_proto method=POST [19:05:49]POST find Content-Length [19:05:49]Host: 172.17.37.4:8080 [19:05:49]Content-Length: 686 [19:05:49]Content-Type: application/json [19:05:49] [19:05:49]POST finish read [19:05:49]Found Content-Length = 686 [19:05:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 24.040, "sum" : 1800.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:49]execute_script... [19: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 : (1)718137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 24.040, "sum" : 1800.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:49]POST & json_proto [19:05:49]process_json_proto [19:05:49]json parsed OK: [19:05:49]protocol is kg_v1.0 [19:05:49]action value=close_receipt [19:05:49]process_action close_receipt [19:05:49]cmd_close_receipt [19:05:49]MH_GetDate [19:05:49]Write to MH i2c: F0 00 00 C2 75 26 [19:05:49]Write i2c OK [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: F0 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: F0 09 00 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: F0 09 00 C2 75 00 19 1C 46 67 B8 5A 43 67 CD [19:05:49]GetLastDocTimeStamp 1732647842 [19:05:49]current date 1732647961 [19:05:49]FM_GetShiftState [19:05:49]SAM_PROTO_GetShiftState [19:05:49]wFMCommunicate request_size=4 [19:05:49]MH_SAM_APDU [19:05:49]CAPDU: 80 13 01 00 [19:05:49]Write to MH i2c: E2 08 00 C3 75 80 13 01 00 00 00 00 00 B5 [19:05:49]Write i2c OK [19:05:49]MH_I2C_Read... [19:05:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:49]Read from MH i2c: E2 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: E2 0E 00 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: E2 0E 00 C3 75 00 09 00 01 98 11 45 67 00 00 00 00 90 00 16 [19:05:49]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:05:49]wFMCommunicate OK [19:05:49]SAM_PROTO_GetShiftState done [19:05:49]FM_GetShiftState done [19:05:49]opened in 1732579736 [19:05:49]opened+sec_in_day 1732666136 [19:05:49]quantity*price = 180059 [19:05:49]sum+1 = 180061 [19:05:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.21 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 160 26.11.2024 19:06 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123306 ФПД: 53057712164700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T190601&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123306&fm=53057712164700&tin=02508201610067®Number=0000000000092681&sum=180000 [19:05:50]StoreToDocumentArchive [19:05:50]shift 557 fd 123306 [19:05:50]save to /storage/0557/doc_00123306 [19:05:50]save last doc name /storage/0557/doc_00123306 to /storage/kkm_last_doc_name [19:05:50]save OK [19:05:50]Clear old archive folders... [19:05:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:05:50]tlvbuf is 0210A030 [19:05:50]SAM_PROTO_ClearQueue [19:05:50]wFMCommunicate request_size=4 [19:05:50]MH_SAM_APDU [19:05:50]CAPDU: 80 09 00 00 [19:05:50]Write to MH i2c: E2 08 00 D0 75 80 09 00 00 00 00 00 00 B7 [19:05:50]Write i2c OK [19:05:50]MH_I2C_Read... [19:05:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:50]Read from MH i2c: E2 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 D0 75 00 90 00 B9 [19:05:50]RAPDU: 90 00 [19:05:50]wFMCommunicate OK [19:05:50]SAM_PROTO_ClearQueue done [19:05:50]KKMCreateOFDPacket [19:05:50]OFDProtocolAddRootSTLVToBuf [19:05:50]FM_MakeSignedData [19:05:50]FM_MakeSignedData [19:05:50]SAM_PROTO_SignData [19:05:50]wFMCommunicate request_size=4 [19:05:50]MH_SAM_APDU [19:05:50]CAPDU: 80 0D 01 02 [19:05:50]Write to MH i2c: E2 08 00 D1 75 80 0D 01 02 00 00 00 00 BF [19:05:50]Write i2c OK [19:05:50]MH_I2C_Read... [19:05:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:50]Read from MH i2c: E2 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 D1 75 00 90 00 BA [19:05:50]RAPDU: 90 00 [19:05:50]wFMCommunicate OK [19:05:50]wFMCommunicate request_size=255 [19:05:50]MH_SAM_APDU [19:05:50]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 35 FF 03 08 00 03 E8 5D 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 5C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 19 1C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AA E1 01 00 35 04 06 00 [19:05:50]Write to MH i2c: E2 02 01 D2 75 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 35 FF 03 08 00 03 E8 5D 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 5C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 19 1C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AA E1 01 00 35 04 06 00 00 00 03 [19:05:50]Write i2c OK [19:05:50]MH_I2C_Read... [19:05:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:50]Read from MH i2c: E2 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 D2 75 00 90 00 BB [19:05:50]RAPDU: 90 00 [19:05:50]wFMCommunicate OK [19:05:50]wFMCommunicate request_size=11 [19:05:50]MH_SAM_APDU [19:05:50]CAPDU: 80 0D 02 02 06 30 41 76 16 0F 5C [19:05:50]Write to MH i2c: E2 0E 00 D3 75 80 0D 02 02 06 00 30 41 76 16 0F 5C 00 00 36 [19:05:50]Write i2c OK [19:05:50]MH_I2C_Read... [19:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:51]Read from MH i2c: E2 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 03 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 03 00 D3 75 00 90 00 BC [19:05:51]RAPDU: 90 00 [19:05:51]wFMCommunicate OK [19:05:51]wFMCommunicate request_size=4 [19:05:51]MH_SAM_APDU [19:05:51]CAPDU: 80 0D 03 02 [19:05:51]Write to MH i2c: E2 08 00 D4 75 80 0D 03 02 00 00 00 00 C4 [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:51]Read from MH i2c: E2 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 0B 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 0B 00 D4 75 00 66 AC A1 A3 8E 6F 9A B4 90 00 66 [19:05:51]RAPDU: 66 AC A1 A3 8E 6F 9A B4 90 00 [19:05:51]wFMCommunicate OK [19:05:51]SAM_PROTO_SignData done [19:05:51]FM_MakeSignedData done [19:05:51]CreateOFDProtocolMessage [19:05:51]wFMCommunicate request_size=4 [19:05:51]MH_SAM_APDU [19:05:51]CAPDU: 80 11 00 00 [19:05:51]Write to MH i2c: E2 08 00 D5 75 80 11 00 00 00 00 00 00 C4 [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:51]Read from MH i2c: E2 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 17 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 17 00 D5 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1B [19:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:05:51]wFMCommunicate OK [19:05:51]CreateOFDProtocolMessage done [19:05:51]OFDSenderStorePacket 123306 [19:05:51]StoreOFDPacket docnum=123306 [19:05:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 1B EA 08 01 2B F8 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 35 FF 03 08 00 03 E8 5D 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 5C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 19 1C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AA E1 01 00 35 04 06 00 30 41 76 16 0F 5C 66 AC A1 A3 8E 6F 9A B4 [19:05:51]CheckFolder [19:05:51]dirname=/storage/ofd_packets [19:05:51]CheckFolder done [19:05:51]ProducePacketName [19:05:51]name=ofd_packets/00123306 [19:05:51]NVStorageSaveData ofd_packets/00123306 [19:05:51]File name is /storage/ofd_packets/00123306 [19:05:51]Write 302 bytes [19:05:51]NVStorageSaveData done [19:05:51]OFDSenderStorePacket done [19:05:51]KKMCreateOFDPacket done [19:05:51]NVStorageSaveData kkm_last_timestamp [19:05:51]File name is /storage/kkm_last_timestamp [19:05:51]Write 4 bytes [19:05:51]NVStorageSaveData done [19:05:51]ExternCall_PrintAddStr [19:05:51]wPrintStart [19:05:51]Write to MH i2c: 01 00 00 D6 75 4B [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 07 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 07 00 D6 75 00 00 00 00 00 FF 0F 60 [19:05:51]RasterBufferAndPrint [19:05:51]line Счет N : (1)718137 [19:05:51]line ИНН: 02508201610067 [19:05:51]line Контрольно-Кассовый Чек [19:05:51]line ПРОДАЖА [19:05:51]line ТРК (МРК, ГНК) : 5 [19:05:51]line Товар: 2710194210 [19:05:51]line ДТ(л)-К-5 [19:05:51]line 24.040 * 74.90 [19:05:51]line = 1800.60 [19:05:51]line НДС 12% НСП 1% [19:05:51]line > о реализуемом товаре [19:05:51]line ОКРУГЛЕНИЕ: -0.60 [19:05:51]line ИТОГО: 1800.00 [19:05:51]line Внесено: 1800.00 [19:05:51]line СДАЧА: 0.00 [19:05:51]line НСП 1% : 15.93 [19:05:51]line НДС 12% : 191.21 [19:05:51]line Наличными: 1800.00 [19:05:51]line Безнал.: 0.00 [19:05:51]line Место: АЗС № 64 "Партнер Нефть" [19:05:51]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:05:51]line СНО: Общий режим [19:05:51]line Чек 160 26.11.2024 19:06 [19:05:51]line Смена: 557 ФФД: 1.0 [19:05:51]line ЗНМ: 0300000033 [19:05:51]line РНМ: 0000000000092681 [19:05:51]line Версия ККМ: 001 [19:05:51]line ФМ: 0000000000874881 [19:05:51]line ФД: 123306 [19:05:51]line ФПД: 53057712164700 [19:05:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T190601&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123306&fm=53057712164700&tin=02508201610067®Number=0000000000092681&sum=180000 [19:05:51]OFD Sender: Processing packet 123306 [packets to send 7, broken 6] [19:05:51]ProducePacketName [19:05:51]name=ofd_packets/00123306 [19:05:51]OFD Sender: To server: pG, [19:05:51]CommunicateWithHost lk.salyk.kg:30040 [19:05:51]ConnectInit lk.salyk.kg [19:05:51]written 0, free lines is 4095 [19:05:51]Connected sock=10 [19:05:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 1B EA 08 01 2B F8 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 35 FF 03 08 00 03 E8 5D 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 5C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 19 1C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AA E1 01 00 35 04 06 00 30 41 76 16 0F 5C 66 AC A1 A3 8E 6F 9A B4 [19:05:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 AC C5 47 00 0D BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AA E1 01 00 F4 03 04 00 DB C7 45 67 B6 04 01 00 00 71 AB FF 77 72 FC 1B 3E [19:05:51]CommunicateWithHost err = 0 [19:05:51]CheckOFDResponse [19:05:51]1017 (14) - 77093643461234 [19:05:51]1041 (16) - 0000000000874881 [19:05:51]1040 (4) - 123306 [19:05:51]1012 (4) - 26.11.2024 13:06 [19:05:51]1206 (1) - 0 [19:05:51]OFD Sender: Remove packet 123306 [19:05:51]ProducePacketName [19:05:51]name=ofd_packets/00123306 [19:05:51]NVStorageDeleteData [19:05:51]Write to MH i2c: 01 00 00 01 76 77 [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 07 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 07 00 01 76 00 00 00 00 00 59 0C E3 [19:05:51]RasterBufferAndPrint [19:05:51]line [19:05:51]line [19:05:51]line [19:05:51]line [19:05:51]line [19:05:51]written 0, free lines is 3166 [19:05:51]MH_Cut [19:05:51]Write to MH i2c: D1 01 00 08 76 01 50 [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: D1 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: D1 01 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: D1 01 00 08 76 00 4F [19:05:51]Write to MH i2c: 01 00 00 09 76 7F [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:52]OFD Sender: No OFD packet to send [19:05:53]*** Cut start [19:05:53]*** Partial cut [19:05:53]*** CUTSNS_PIN = 1 [19:05:53]*** CUTSNS_PIN = 0 [19:05:53]*** Brake cut motor [19:05:53]Read from MH i2c: 01 [19:05:53]MH_I2C_Read... [19:05:53]*** Stop cut motor [19:05:53]*** Cut end [19:05:53]Read from MH i2c: 01 07 00 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: 01 07 00 09 76 00 00 00 00 00 FF 0F 94 [19:05:53]process_action close_receipt done [19:05:53]requested_data is exist [19:05:53]produce_requested_data [19:05:53]requested_item fm.sn is exist - process it [19:05:53]wFMCommunicate request_size=4 [19:05:53]MH_SAM_APDU [19:05:53]CAPDU: 80 11 00 00 [19:05:53]Write to MH i2c: E2 08 00 0A 76 80 11 00 00 00 00 00 00 FA [19:05:53]Write i2c OK [19:05:53]MH_I2C_Read... [19:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:54]Read from MH i2c: E2 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 17 00 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 17 00 0A 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 51 [19:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:05:54]wFMCommunicate OK [19:05:54]requested_item fd.num is exist - process it [19:05:54]SAM_PROTO_GetFieldsCounters [19:05:54]wFMCommunicate request_size=4 [19:05:54]MH_SAM_APDU [19:05:54]CAPDU: 80 13 00 00 [19:05:54]Write to MH i2c: E2 08 00 0B 76 80 13 00 00 00 00 00 00 FD [19:05:54]Write i2c OK [19:05:54]MH_I2C_Read... [19:05:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:54]Read from MH i2c: E2 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 62 00 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 62 00 0B 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AA E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [19:05:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AA E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:54]wFMCommunicate OK [19:05:54]SAM_PROTO_GetFieldsCounters done [19:05:54]requested_item shift.num is exist - process it [19:05:54]requested_item shift.opened is exist - process it [19:05:54]req_shift_opened [19:05:54]FM_GetShiftState [19:05:54]SAM_PROTO_GetShiftState [19:05:54]wFMCommunicate request_size=4 [19:05:54]MH_SAM_APDU [19:05:54]CAPDU: 80 13 01 00 [19:05:54]Write to MH i2c: E2 08 00 0C 76 80 13 01 00 00 00 00 00 FF [19:05:54]Write i2c OK [19:05:54]MH_I2C_Read... [19:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:54]Read from MH i2c: E2 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 0E 00 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 0E 00 0C 76 00 09 00 01 98 11 45 67 00 00 00 00 90 00 60 [19:05:54]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:05:54]wFMCommunicate OK [19:05:54]SAM_PROTO_GetShiftState done [19:05:54]FM_GetShiftState done [19:05:54]req_shift_opened done [19:05:54]requested_item shift.open_date is exist - process it [19:05:54]req_shift_open_date [19:05:54]req_shift_open_date done [19:05:54]produce_requested_data done [19:05:54]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123306,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [19:05:54]process_action_free close_receipt [19:05:54]json_value_free [19:05:54]json_value_free done [19:05:54]process_json_proto returns [19:05:54]Send response to host [19:05:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123306,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [19:05:54]free response buf [19:05:54]execute_script done [19:05:54]execute_script returns [19:05:54]free content buf [19:05:54]Sock 7.Close socket [19:05:54]Sock 7.Thread stoped [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:07]accept exits with 9 [19:07:07]New connection [19:07:07]New thread 3066580324 created [19:07:07]Thread 3066723684 joined [19:07:07]Waiting for new connection... [19:07:07] Sock 9.Parse request [19:07:07]Sock 9.Check first char [19:07:07]Sock 9.First char is OK [19:07:07]request: POST /json_proto HTTP/1.0 [19:07:07]Method: POST [19:07:07]URL: /json_proto [19:07:07]Method is POST - this is cgi request [19:07:07]url: /json_proto [19:07:07]query_string will be loaded in cgi processing [19:07:07]execute_cgi json_proto POST (null) [19:07:07]execute_cgi path=json_proto method=POST [19:07:07]POST find Content-Length [19:07:07]Host: 172.17.37.4:8080 [19:07:07]Content-Length: 804 [19:07:07]Content-Type: application/json [19:07:07] [19:07:07]POST finish read [19:07:07]Found Content-Length = 804 [19:07:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 6.680, "sum" : 500.33, "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" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:07]execute_script... [19:07:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 6.680, "sum" : 500.33, "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" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:07]POST & json_proto [19:07:07]process_json_proto [19:07:07]json parsed OK: [19:07:07]protocol is kg_v1.0 [19:07:07]action value=close_receipt [19:07:07]process_action close_receipt [19:07:07]cmd_close_receipt [19:07:07]MH_GetDate [19:07:07]Write to MH i2c: F0 00 00 0D 76 72 [19:07:07]Write i2c OK [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: F0 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: F0 09 00 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: F0 09 00 0D 76 00 67 1C 46 67 B8 5A 43 67 67 [19:07:07]GetLastDocTimeStamp 1732647961 [19:07:07]current date 1732648039 [19:07:07]FM_GetShiftState [19:07:07]SAM_PROTO_GetShiftState [19:07:07]wFMCommunicate request_size=4 [19:07:07]MH_SAM_APDU [19:07:07]CAPDU: 80 13 01 00 [19:07:07]Write to MH i2c: E2 08 00 0E 76 80 13 01 00 00 00 00 00 01 [19:07:07]Write i2c OK [19:07:07]MH_I2C_Read... [19:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:07]Read from MH i2c: E2 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: E2 0E 00 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: E2 0E 00 0E 76 00 09 00 01 98 11 45 67 00 00 00 00 90 00 62 [19:07:07]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:07:07]wFMCommunicate OK [19:07:07]SAM_PROTO_GetShiftState done [19:07:07]FM_GetShiftState done [19:07:07]opened in 1732579736 [19:07:07]opened+sec_in_day 1732666136 [19:07:07]quantity*price = 50033 [19:07:07]sum+1 = 50034 [19:07:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 161 26.11.2024 19:07 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123307 ФПД: 207138154330251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T190719&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123307&fm=207138154330251&tin=02508201610067®Number=0000000000092681&sum=50033 [19:07:08]StoreToDocumentArchive [19:07:08]shift 557 fd 123307 [19:07:08]save to /storage/0557/doc_00123307 [19:07:08]save last doc name /storage/0557/doc_00123307 to /storage/kkm_last_doc_name [19:07:08]save OK [19:07:08]Clear old archive folders... [19:07:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:07:08]tlvbuf is 01FC8640 [19:07:08]SAM_PROTO_ClearQueue [19:07:08]wFMCommunicate request_size=4 [19:07:08]MH_SAM_APDU [19:07:08]CAPDU: 80 09 00 00 [19:07:08]Write to MH i2c: E2 08 00 1B 76 80 09 00 00 00 00 00 00 03 [19:07:08]Write i2c OK [19:07:08]MH_I2C_Read... [19:07:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:07:08]Read from MH i2c: E2 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 03 00 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 03 00 1B 76 00 90 00 05 [19:07:08]RAPDU: 90 00 [19:07:08]wFMCommunicate OK [19:07:08]SAM_PROTO_ClearQueue done [19:07:08]KKMCreateOFDPacket [19:07:08]OFDProtocolAddRootSTLVToBuf [19:07:08]FM_MakeSignedData [19:07:08]FM_MakeSignedData [19:07:08]SAM_PROTO_SignData [19:07:08]wFMCommunicate request_size=4 [19:07:08]MH_SAM_APDU [19:07:08]CAPDU: 80 0D 01 02 [19:07:08]Write to MH i2c: E2 08 00 1C 76 80 0D 01 02 00 00 00 00 0B [19:07:08]Write i2c OK [19:07:08]MH_I2C_Read... [19:07:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:07:08]Read from MH i2c: E2 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 03 00 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 03 00 1C 76 00 90 00 06 [19:07:08]RAPDU: 90 00 [19:07:08]wFMCommunicate OK [19:07:08]wFMCommunicate request_size=255 [19:07:08]MH_SAM_APDU [19:07:08]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 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 67 1C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AB E1 01 00 35 04 06 00 [19:07:08]Write to MH i2c: E2 02 01 1D 76 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 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 67 1C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AB E1 01 00 35 04 06 00 00 00 A0 [19:07:08]Write i2c OK [19:07:08]MH_I2C_Read... [19:07:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:08]Read from MH i2c: E2 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 03 00 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 03 00 1D 76 00 90 00 07 [19:07:08]RAPDU: 90 00 [19:07:08]wFMCommunicate OK [19:07:08]wFMCommunicate request_size=11 [19:07:08]MH_SAM_APDU [19:07:08]CAPDU: 80 0D 02 02 06 BC 64 1C 1B B8 8B [19:07:08]Write to MH i2c: E2 0E 00 1E 76 80 0D 02 02 06 00 BC 64 1C 1B B8 8B 00 00 B4 [19:07:08]Write i2c OK [19:07:08]MH_I2C_Read... [19:07:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:08]Read from MH i2c: E2 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 03 00 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 03 00 1E 76 00 90 00 08 [19:07:08]RAPDU: 90 00 [19:07:08]wFMCommunicate OK [19:07:08]wFMCommunicate request_size=4 [19:07:08]MH_SAM_APDU [19:07:08]CAPDU: 80 0D 03 02 [19:07:08]Write to MH i2c: E2 08 00 1F 76 80 0D 03 02 00 00 00 00 10 [19:07:08]Write i2c OK [19:07:08]MH_I2C_Read... [19:07:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:07:09]Read from MH i2c: E2 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: E2 0B 00 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: E2 0B 00 1F 76 00 B6 86 A9 EB 3B F5 C2 75 90 00 48 [19:07:09]RAPDU: B6 86 A9 EB 3B F5 C2 75 90 00 [19:07:09]wFMCommunicate OK [19:07:09]SAM_PROTO_SignData done [19:07:09]FM_MakeSignedData done [19:07:09]CreateOFDProtocolMessage [19:07:09]wFMCommunicate request_size=4 [19:07:09]MH_SAM_APDU [19:07:09]CAPDU: 80 11 00 00 [19:07:09]Write to MH i2c: E2 08 00 20 76 80 11 00 00 00 00 00 00 10 [19:07:09]Write i2c OK [19:07:09]MH_I2C_Read... [19:07:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:09]Read from MH i2c: E2 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: E2 17 00 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: E2 17 00 20 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 67 [19:07:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:07:09]wFMCommunicate OK [19:07:09]CreateOFDProtocolMessage done [19:07:09]OFDSenderStorePacket 123307 [19:07:09]StoreOFDPacket docnum=123307 [19:07:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 63 EA 08 01 2D B5 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 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 67 1C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AB E1 01 00 35 04 06 00 BC 64 1C 1B B8 8B B6 86 A9 EB 3B F5 C2 75 [19:07:09]CheckFolder [19:07:09]dirname=/storage/ofd_packets [19:07:09]CheckFolder done [19:07:09]ProducePacketName [19:07:09]name=ofd_packets/00123307 [19:07:09]NVStorageSaveData ofd_packets/00123307 [19:07:09]File name is /storage/ofd_packets/00123307 [19:07:09]Write 302 bytes [19:07:09]NVStorageSaveData done [19:07:09]OFDSenderStorePacket done [19:07:09]KKMCreateOFDPacket done [19:07:09]NVStorageSaveData kkm_last_timestamp [19:07:09]File name is /storage/kkm_last_timestamp [19:07:09]Write 4 bytes [19:07:09]NVStorageSaveData done [19:07:09]ExternCall_PrintAddStr [19:07:09]wPrintStart [19:07:09]Write to MH i2c: 01 00 00 21 76 97 [19:07:09]Write i2c OK [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: 01 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: 01 07 00 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: 01 07 00 21 76 00 00 00 00 00 FF 0F AC [19:07:09]RasterBufferAndPrint [19:07:09]line Счет N : (1)718138 [19:07:09]line ИНН: 02508201610067 [19:07:09]line Контрольно-Кассовый Чек [19:07:09]line ПРОДАЖА [19:07:09]line ТРК (МРК, ГНК) : 6 [19:07:09]line Товар: 2710194210 [19:07:09]line ДТ(л)-К-5 [19:07:09]line 6.680 * 74.90 [19:07:09]line = 500.33 [19:07:09]line НДС 12% НСП 1% [19:07:09]line > о реализуемом товаре [19:07:09]line ИТОГО: 500.33 [19:07:09]line НСП 1% : 4.43 [19:07:09]line НДС 12% : 53.13 [19:07:09]line Наличными: 0.00 [19:07:09]line Безнал.: 500.33 [19:07:09]line Место: АЗС № 64 "Партнер Нефть" [19:07:09]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:07:09]line СНО: Общий режим [19:07:09]line Чек 161 26.11.2024 19:07 [19:07:09]line Смена: 557 ФФД: 1.0 [19:07:09]line ЗНМ: 0300000033 [19:07:09]line РНМ: 0000000000092681 [19:07:09]line Версия ККМ: 001 [19:07:09]line Платежная система: O! деньги [19:07:09]line ФМ: 0000000000874881 [19:07:09]line ФД: 123307 [19:07:09]line ФПД: 207138154330251 [19:07:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T190719&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123307&fm=207138154330251&tin=02508201610067®Number=0000000000092681&sum=50033 [19:07:09]written 0, free lines is 4095 [19:07:09]OFD Sender: Processing packet 123307 [packets to send 7, broken 6] [19:07:09]ProducePacketName [19:07:09]name=ofd_packets/00123307 [19:07:09]OFD Sender: To server: pG, [19:07:09]CommunicateWithHost lk.salyk.kg:30040 [19:07:09]ConnectInit lk.salyk.kg [19:07:09]Connected sock=10 [19:07:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 63 EA 08 01 2D B5 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 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 67 1C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AB E1 01 00 35 04 06 00 BC 64 1C 1B B8 8B B6 86 A9 EB 3B F5 C2 75 [19:07:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 B9 F1 47 00 16 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AB E1 01 00 F4 03 04 00 29 C8 45 67 B6 04 01 00 00 25 9C DA 29 54 9D C7 BD [19:07:09]CommunicateWithHost err = 0 [19:07:09]CheckOFDResponse [19:07:09]1017 (14) - 77093643461234 [19:07:09]1041 (16) - 0000000000874881 [19:07:09]1040 (4) - 123307 [19:07:09]1012 (4) - 26.11.2024 13:07 [19:07:09]1206 (1) - 0 [19:07:09]OFD Sender: Remove packet 123307 [19:07:09]ProducePacketName [19:07:09]name=ofd_packets/00123307 [19:07:09]NVStorageDeleteData [19:07:09]Write to MH i2c: 01 00 00 4B 76 C1 [19:07:09]Write i2c OK [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: 01 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: 01 07 00 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: 01 07 00 4B 76 00 00 00 00 00 65 0C 39 [19:07:09]RasterBufferAndPrint [19:07:09]line [19:07:09]line [19:07:09]line [19:07:09]line [19:07:09]line [19:07:09]written 0, free lines is 3177 [19:07:09]MH_Cut [19:07:09]Write to MH i2c: D1 01 00 52 76 01 9A [19:07:09]Write i2c OK [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: D1 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: D1 01 00 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: D1 01 00 52 76 00 99 [19:07:09]Write to MH i2c: 01 00 00 53 76 C9 [19:07:09]Write i2c OK [19:07:09]MH_I2C_Read... [19:07:10]OFD Sender: No OFD packet to send [19:07:11]*** Cut start [19:07:11]*** Partial cut [19:07:11]*** CUTSNS_PIN = 1 [19:07:11]*** CUTSNS_PIN = 0 [19:07:11]*** Brake cut motor [19:07:11]Read from MH i2c: 01 [19:07:11]MH_I2C_Read... [19:07:11]*** Stop cut motor [19:07:11]*** Cut end [19:07:11]Read from MH i2c: 01 07 00 [19:07:11]MH_I2C_Read... [19:07:11]Read from MH i2c: 01 07 00 53 76 00 00 00 00 00 FF 0F DE [19:07:11]process_action close_receipt done [19:07:11]requested_data is exist [19:07:11]produce_requested_data [19:07:11]requested_item fm.sn is exist - process it [19:07:11]wFMCommunicate request_size=4 [19:07:11]MH_SAM_APDU [19:07:11]CAPDU: 80 11 00 00 [19:07:11]Write to MH i2c: E2 08 00 54 76 80 11 00 00 00 00 00 00 44 [19:07:11]Write i2c OK [19:07:11]MH_I2C_Read... [19:07:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:11]Read from MH i2c: E2 [19:07:11]MH_I2C_Read... [19:07:11]Read from MH i2c: E2 17 00 [19:07:11]MH_I2C_Read... [19:07:11]Read from MH i2c: E2 17 00 54 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 9B [19:07:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:07:11]wFMCommunicate OK [19:07:11]requested_item fd.num is exist - process it [19:07:11]SAM_PROTO_GetFieldsCounters [19:07:11]wFMCommunicate request_size=4 [19:07:11]MH_SAM_APDU [19:07:11]CAPDU: 80 13 00 00 [19:07:11]Write to MH i2c: E2 08 00 55 76 80 13 00 00 00 00 00 00 47 [19:07:11]Write i2c OK [19:07:11]MH_I2C_Read... [19:07:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:07:12]Read from MH i2c: E2 [19:07:12]MH_I2C_Read... [19:07:12]Read from MH i2c: E2 62 00 [19:07:12]MH_I2C_Read... [19:07:12]Read from MH i2c: E2 62 00 55 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AB E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [19:07:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AB E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:07:12]wFMCommunicate OK [19:07:12]SAM_PROTO_GetFieldsCounters done [19:07:12]requested_item shift.num is exist - process it [19:07:12]requested_item shift.opened is exist - process it [19:07:12]req_shift_opened [19:07:12]FM_GetShiftState [19:07:12]SAM_PROTO_GetShiftState [19:07:12]wFMCommunicate request_size=4 [19:07:12]MH_SAM_APDU [19:07:12]CAPDU: 80 13 01 00 [19:07:12]Write to MH i2c: E2 08 00 56 76 80 13 01 00 00 00 00 00 49 [19:07:12]Write i2c OK [19:07:12]MH_I2C_Read... [19:07:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:12]Read from MH i2c: E2 [19:07:12]MH_I2C_Read... [19:07:12]Read from MH i2c: E2 0E 00 [19:07:12]MH_I2C_Read... [19:07:12]Read from MH i2c: E2 0E 00 56 76 00 09 00 01 98 11 45 67 00 00 00 00 90 00 AA [19:07:12]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:07:12]wFMCommunicate OK [19:07:12]SAM_PROTO_GetShiftState done [19:07:12]FM_GetShiftState done [19:07:12]req_shift_opened done [19:07:12]requested_item shift.open_date is exist - process it [19:07:12]req_shift_open_date [19:07:12]req_shift_open_date done [19:07:12]produce_requested_data done [19:07:12]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123307,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [19:07:12]process_action_free close_receipt [19:07:12]json_value_free [19:07:12]json_value_free done [19:07:12]process_json_proto returns [19:07:12]Send response to host [19:07:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123307,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [19:07:12]free response buf [19:07:12]execute_script done [19:07:12]execute_script returns [19:07:12]free content buf [19:07:12]Sock 9.Close socket [19:07:12]Sock 9.Thread stoped [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:09]accept exits with 7 [19:08:09]New connection [19:08:09]New thread 3066723684 created [19:08:09]Thread 3066580324 joined [19:08:09]Waiting for new connection... [19:08:09] Sock 7.Parse request [19:08:09]Sock 7.Check first char [19:08:09]Sock 7.First char is OK [19:08:09]request: POST /json_proto HTTP/1.0 [19:08:09]Method: POST [19:08:09]URL: /json_proto [19:08:09]Method is POST - this is cgi request [19:08:09]url: /json_proto [19:08:09]query_string will be loaded in cgi processing [19:08:09]execute_cgi json_proto POST (null) [19:08:09]execute_cgi path=json_proto method=POST [19:08:09]POST find Content-Length [19:08:09]Host: 172.17.37.4:8080 [19:08:09]Content-Length: 806 [19:08:09]Content-Type: application/json [19:08:09] [19:08:09]POST finish read [19:08:09]Found Content-Length = 806 [19:08:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 38.230, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4556949;4556948;4556947;4556946", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:09]execute_script... [19:08:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 38.230, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4556949;4556948;4556947;4556946", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:09]POST & json_proto [19:08:09]process_json_proto [19:08:09]json parsed OK: [19:08:09]protocol is kg_v1.0 [19:08:09]action value=close_receipt [19:08:09]process_action close_receipt [19:08:09]cmd_close_receipt [19:08:09]MH_GetDate [19:08:09]Write to MH i2c: F0 00 00 57 76 BC [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: F0 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: F0 09 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: F0 09 00 57 76 00 A6 1C 46 67 B8 5A 43 67 F0 [19:08:09]GetLastDocTimeStamp 1732648039 [19:08:09]current date 1732648102 [19:08:09]FM_GetShiftState [19:08:09]SAM_PROTO_GetShiftState [19:08:09]wFMCommunicate request_size=4 [19:08:09]MH_SAM_APDU [19:08:09]CAPDU: 80 13 01 00 [19:08:09]Write to MH i2c: E2 08 00 58 76 80 13 01 00 00 00 00 00 4B [19:08:09]Write i2c OK [19:08:09]MH_I2C_Read... [19:08:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:09]Read from MH i2c: E2 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 0E 00 [19:08:09]MH_I2C_Read... [19:08:09]Read from MH i2c: E2 0E 00 58 76 00 09 00 01 98 11 45 67 00 00 00 00 90 00 AC [19:08:09]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:08:09]wFMCommunicate OK [19:08:09]SAM_PROTO_GetShiftState done [19:08:09]FM_GetShiftState done [19:08:09]opened in 1732579736 [19:08:09]opened+sec_in_day 1732666136 [19:08:09]quantity*price = 0 [19:08:09]sum+1 = 1 [19:08:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 162 26.11.2024 19:08 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Партнер нефть 4556949;4556948;4556947;4556946 ФМ: 0000000000874881 ФД: 123308 ФПД: 165325823547485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T190822&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123308&fm=165325823547485&tin=02508201610067®Number=0000000000092681&sum=0 [19:08:11]StoreToDocumentArchive [19:08:11]shift 557 fd 123308 [19:08:11]save to /storage/0557/doc_00123308 [19:08:11]save last doc name /storage/0557/doc_00123308 to /storage/kkm_last_doc_name [19:08:11]save OK [19:08:11]Clear old archive folders... [19:08:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:11]tlvbuf is 021CF2E0 [19:08:11]SAM_PROTO_ClearQueue [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 09 00 00 [19:08:11]Write to MH i2c: E2 08 00 65 76 80 09 00 00 00 00 00 00 4D [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 65 76 00 90 00 4F [19:08:11]RAPDU: 90 00 [19:08:11]wFMCommunicate OK [19:08:11]SAM_PROTO_ClearQueue done [19:08:11]KKMCreateOFDPacket [19:08:11]OFDProtocolAddRootSTLVToBuf [19:08:11]FM_MakeSignedData [19:08:11]FM_MakeSignedData [19:08:11]SAM_PROTO_SignData [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 0D 01 02 [19:08:11]Write to MH i2c: E2 08 00 66 76 80 0D 01 02 00 00 00 00 55 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 66 76 00 90 00 50 [19:08:11]RAPDU: 90 00 [19:08:11]wFMCommunicate OK [19:08:11]wFMCommunicate request_size=255 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 56 95 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A6 1C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AC E1 01 00 35 04 06 00 96 [19:08:11]Write to MH i2c: E2 02 01 67 76 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 34 FF 03 08 00 03 56 95 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A6 1C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AC E1 01 00 35 04 06 00 96 00 00 B2 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 67 76 00 90 00 51 [19:08:11]RAPDU: 90 00 [19:08:11]wFMCommunicate OK [19:08:11]wFMCommunicate request_size=10 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 0D 02 02 05 5C EA FC 18 5D [19:08:11]Write to MH i2c: E2 0D 00 68 76 80 0D 02 02 05 00 5C EA FC 18 5D 00 00 19 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 03 00 68 76 00 90 00 52 [19:08:11]RAPDU: 90 00 [19:08:11]wFMCommunicate OK [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 0D 03 02 [19:08:11]Write to MH i2c: E2 08 00 69 76 80 0D 03 02 00 00 00 00 5A [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 0B 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 0B 00 69 76 00 E3 4A 19 F5 39 82 7C 34 90 00 01 [19:08:11]RAPDU: E3 4A 19 F5 39 82 7C 34 90 00 [19:08:11]wFMCommunicate OK [19:08:11]SAM_PROTO_SignData done [19:08:11]FM_MakeSignedData done [19:08:11]CreateOFDProtocolMessage [19:08:11]wFMCommunicate request_size=4 [19:08:11]MH_SAM_APDU [19:08:11]CAPDU: 80 11 00 00 [19:08:11]Write to MH i2c: E2 08 00 6A 76 80 11 00 00 00 00 00 00 5A [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:11]Read from MH i2c: E2 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 17 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: E2 17 00 6A 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B1 [19:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:08:11]wFMCommunicate OK [19:08:11]CreateOFDProtocolMessage done [19:08:11]OFDSenderStorePacket 123308 [19:08:11]StoreOFDPacket docnum=123308 [19:08:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 7B B8 07 01 07 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 56 95 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A6 1C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AC E1 01 00 35 04 06 00 96 5C EA FC 18 5D E3 4A 19 F5 39 82 7C 34 [19:08:11]CheckFolder [19:08:11]dirname=/storage/ofd_packets [19:08:11]CheckFolder done [19:08:11]ProducePacketName [19:08:11]name=ofd_packets/00123308 [19:08:11]NVStorageSaveData ofd_packets/00123308 [19:08:11]File name is /storage/ofd_packets/00123308 [19:08:11]Write 301 bytes [19:08:11]NVStorageSaveData done [19:08:11]OFDSenderStorePacket done [19:08:11]KKMCreateOFDPacket done [19:08:11]NVStorageSaveData kkm_last_timestamp [19:08:11]File name is /storage/kkm_last_timestamp [19:08:11]Write 4 bytes [19:08:11]NVStorageSaveData done [19:08:11]ExternCall_PrintAddStr [19:08:11]wPrintStart [19:08:11]Write to MH i2c: 01 00 00 6B 76 E1 [19:08:11]Write i2c OK [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: 01 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: 01 07 00 [19:08:11]MH_I2C_Read... [19:08:11]Read from MH i2c: 01 07 00 6B 76 00 00 00 00 00 FF 0F F6 [19:08:11]RasterBufferAndPrint [19:08:11]line Счет N : (1)718136 [19:08:11]line ИНН: 02508201610067 [19:08:11]line Контрольно-Кассовый Чек [19:08:11]line ПРОДАЖА [19:08:11]line ТРК (МРК, ГНК) : 32 [19:08:11]line Товар: 2710124130 [19:08:11]line Аи-92-К-4 [19:08:11]line 38.230 * 0.00 [19:08:11]line = 0.00 [19:08:11]line НДС 12% НСП 1% [19:08:11]line > о реализуемом товаре [19:08:11]line ИТОГО: 0.00 [19:08:11]line НСП 1% : 0.00 [19:08:11]line НДС 12% : 0.00 [19:08:11]line Наличными: 0.00 [19:08:11]line Безнал.: 0.00 [19:08:11]line Место: АЗС № 64 "Партнер Нефть" [19:08:11]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:08:11]line СНО: Общий режим [19:08:11]line Чек 162 26.11.2024 19:08 [19:08:11]line Смена: 557 ФФД: 1.0 [19:08:11]line ЗНМ: 0300000033 [19:08:11]line РНМ: 0000000000092681 [19:08:11]line Версия ККМ: 001 [19:08:11]line Талоны: Партнер нефть [19:08:11]line 4556949;4556948;4556947;4556946 [19:08:11]line ФМ: 0000000000874881 [19:08:11]line ФД: 123308 [19:08:11]line ФПД: 165325823547485 [19:08:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T190822&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123308&fm=165325823547485&tin=02508201610067®Number=0000000000092681&sum=0 [19:08:11]written 0, free lines is 4095 [19:08:11]OFD Sender: Processing packet 123308 [packets to send 7, broken 6] [19:08:11]ProducePacketName [19:08:11]name=ofd_packets/00123308 [19:08:11]OFD Sender: To server: pG, [19:08:11]CommunicateWithHost lk.salyk.kg:30040 [19:08:11]ConnectInit lk.salyk.kg [19:08:12]Connected sock=10 [19:08:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 7B B8 07 01 07 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 56 95 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A6 1C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AC E1 01 00 35 04 06 00 96 5C EA FC 18 5D E3 4A 19 F5 39 82 7C 34 [19:08:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 CC 5A 47 00 3E EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AC E1 01 00 F4 03 04 00 67 C8 45 67 B6 04 01 00 00 17 39 7F 5A B0 6E 84 46 [19:08:12]CommunicateWithHost err = 0 [19:08:12]CheckOFDResponse [19:08:12]1017 (14) - 77093643461234 [19:08:12]1041 (16) - 0000000000874881 [19:08:12]1040 (4) - 123308 [19:08:12]1012 (4) - 26.11.2024 13:08 [19:08:12]1206 (1) - 0 [19:08:12]OFD Sender: Remove packet 123308 [19:08:12]ProducePacketName [19:08:12]name=ofd_packets/00123308 [19:08:12]NVStorageDeleteData [19:08:12]Write to MH i2c: 01 00 00 96 76 0C [19:08:12]Write i2c OK [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: 01 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: 01 07 00 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: 01 07 00 96 76 00 00 00 00 00 60 0C 7F [19:08:12]RasterBufferAndPrint [19:08:12]line [19:08:12]line [19:08:12]line [19:08:12]line [19:08:12]line [19:08:12]written 0, free lines is 3172 [19:08:12]MH_Cut [19:08:12]Write to MH i2c: D1 01 00 9D 76 01 E5 [19:08:12]Write i2c OK [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: D1 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: D1 01 00 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: D1 01 00 9D 76 00 E4 [19:08:12]Write to MH i2c: 01 00 00 9E 76 14 [19:08:12]Write i2c OK [19:08:12]MH_I2C_Read... [19:08:12]OFD Sender: No OFD packet to send [19:08:13]*** Cut start [19:08:13]*** Partial cut [19:08:13]*** CUTSNS_PIN = 1 [19:08:13]*** CUTSNS_PIN = 0 [19:08:14]*** Brake cut motor [19:08:14]Read from MH i2c: 01 [19:08:14]MH_I2C_Read... [19:08:14]*** Stop cut motor [19:08:14]*** Cut end [19:08:14]Read from MH i2c: 01 07 00 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: 01 07 00 9E 76 00 00 00 00 00 FF 0F 29 [19:08:14]process_action close_receipt done [19:08:14]requested_data is exist [19:08:14]produce_requested_data [19:08:14]requested_item fm.sn is exist - process it [19:08:14]wFMCommunicate request_size=4 [19:08:14]MH_SAM_APDU [19:08:14]CAPDU: 80 11 00 00 [19:08:14]Write to MH i2c: E2 08 00 9F 76 80 11 00 00 00 00 00 00 8F [19:08:14]Write i2c OK [19:08:14]MH_I2C_Read... [19:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:14]Read from MH i2c: E2 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 17 00 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 17 00 9F 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E6 [19:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:08:14]wFMCommunicate OK [19:08:14]requested_item fd.num is exist - process it [19:08:14]SAM_PROTO_GetFieldsCounters [19:08:14]wFMCommunicate request_size=4 [19:08:14]MH_SAM_APDU [19:08:14]CAPDU: 80 13 00 00 [19:08:14]Write to MH i2c: E2 08 00 A0 76 80 13 00 00 00 00 00 00 92 [19:08:14]Write i2c OK [19:08:14]MH_I2C_Read... [19:08:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:14]Read from MH i2c: E2 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 62 00 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 62 00 A0 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AC E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [19:08:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AC E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:14]wFMCommunicate OK [19:08:14]SAM_PROTO_GetFieldsCounters done [19:08:14]requested_item shift.num is exist - process it [19:08:14]requested_item shift.opened is exist - process it [19:08:14]req_shift_opened [19:08:14]FM_GetShiftState [19:08:14]SAM_PROTO_GetShiftState [19:08:14]wFMCommunicate request_size=4 [19:08:14]MH_SAM_APDU [19:08:14]CAPDU: 80 13 01 00 [19:08:14]Write to MH i2c: E2 08 00 A1 76 80 13 01 00 00 00 00 00 94 [19:08:14]Write i2c OK [19:08:14]MH_I2C_Read... [19:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:14]Read from MH i2c: E2 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 0E 00 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 0E 00 A1 76 00 09 00 01 98 11 45 67 00 00 00 00 90 00 F5 [19:08:14]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:08:14]wFMCommunicate OK [19:08:14]SAM_PROTO_GetShiftState done [19:08:14]FM_GetShiftState done [19:08:14]req_shift_opened done [19:08:14]requested_item shift.open_date is exist - process it [19:08:14]req_shift_open_date [19:08:14]req_shift_open_date done [19:08:14]produce_requested_data done [19:08:14]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123308,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [19:08:14]process_action_free close_receipt [19:08:14]json_value_free [19:08:14]json_value_free done [19:08:14]process_json_proto returns [19:08:14]Send response to host [19:08:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123308,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [19:08:14]free response buf [19:08:14]execute_script done [19:08:14]execute_script returns [19:08:14]free content buf [19:08:14]Sock 7.Close socket [19:08:14]Sock 7.Thread stoped [19:08:17]OFD Sender: No OFD packet to send [19:08:22]OFD Sender: No OFD packet to send [19:08:27]OFD Sender: No OFD packet to send [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:20]accept exits with 9 [19:10:20]New connection [19:10:20]New thread 3066580324 created [19:10:20]Thread 3066723684 joined [19:10:20]Waiting for new connection... [19:10:20] Sock 9.Parse request [19:10:20]Sock 9.Check first char [19:10:20]Sock 9.First char is OK [19:10:20]request: POST /json_proto HTTP/1.0 [19:10:20]Method: POST [19:10:20]URL: /json_proto [19:10:20]Method is POST - this is cgi request [19:10:20]url: /json_proto [19:10:20]query_string will be loaded in cgi processing [19:10:20]execute_cgi json_proto POST (null) [19:10:20]execute_cgi path=json_proto method=POST [19:10:20]POST find Content-Length [19:10:20]Host: 172.17.37.4:8080 [19:10:20]Content-Length: 800 [19:10:20]Content-Type: application/json [19:10:20] [19:10:20]POST finish read [19:10:20]Found Content-Length = 800 [19:10:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.000, "sum" : 337.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" : 337.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:20]execute_script... [19:10:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.000, "sum" : 337.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" : 337.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:20]POST & json_proto [19:10:20]process_json_proto [19:10:20]json parsed OK: [19:10:20]protocol is kg_v1.0 [19:10:20]action value=close_receipt [19:10:20]process_action close_receipt [19:10:20]cmd_close_receipt [19:10:20]MH_GetDate [19:10:20]Write to MH i2c: F0 00 00 A2 76 07 [19:10:20]Write i2c OK [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: F0 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: F0 09 00 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: F0 09 00 A2 76 00 28 1D 46 67 B8 5A 43 67 BE [19:10:20]GetLastDocTimeStamp 1732648102 [19:10:20]current date 1732648232 [19:10:20]FM_GetShiftState [19:10:20]SAM_PROTO_GetShiftState [19:10:20]wFMCommunicate request_size=4 [19:10:20]MH_SAM_APDU [19:10:20]CAPDU: 80 13 01 00 [19:10:20]Write to MH i2c: E2 08 00 A3 76 80 13 01 00 00 00 00 00 96 [19:10:20]Write i2c OK [19:10:20]MH_I2C_Read... [19:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:20]Read from MH i2c: E2 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: E2 0E 00 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: E2 0E 00 A3 76 00 09 00 01 98 11 45 67 00 00 00 00 90 00 F7 [19:10:20]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:10:20]wFMCommunicate OK [19:10:20]SAM_PROTO_GetShiftState done [19:10:20]FM_GetShiftState done [19:10:20]opened in 1732579736 [19:10:20]opened+sec_in_day 1732666136 [19:10:20]quantity*price = 33700 [19:10:20]sum+1 = 33701 [19:10:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 337.00 НСП 1% : 2.98 НДС 12% : 35.79 Наличными: 0.00 Безнал.: 337.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 163 26.11.2024 19:10 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123309 ФПД: 39961364280935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T191032&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123309&fm=39961364280935&tin=02508201610067®Number=0000000000092681&sum=33700 [19:10:21]StoreToDocumentArchive [19:10:21]shift 557 fd 123309 [19:10:21]save to /storage/0557/doc_00123309 [19:10:21]save last doc name /storage/0557/doc_00123309 to /storage/kkm_last_doc_name [19:10:21]save OK [19:10:21]Clear old archive folders... [19:10:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:21]tlvbuf is 021CEBF0 [19:10:21]SAM_PROTO_ClearQueue [19:10:21]wFMCommunicate request_size=4 [19:10:21]MH_SAM_APDU [19:10:21]CAPDU: 80 09 00 00 [19:10:21]Write to MH i2c: E2 08 00 B0 76 80 09 00 00 00 00 00 00 98 [19:10:21]Write i2c OK [19:10:21]MH_I2C_Read... [19:10:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:21]Read from MH i2c: E2 [19:10:21]MH_I2C_Read... [19:10:21]Read from MH i2c: E2 03 00 [19:10:21]MH_I2C_Read... [19:10:21]Read from MH i2c: E2 03 00 B0 76 00 90 00 9A [19:10:21]RAPDU: 90 00 [19:10:21]wFMCommunicate OK [19:10:21]SAM_PROTO_ClearQueue done [19:10:21]KKMCreateOFDPacket [19:10:21]OFDProtocolAddRootSTLVToBuf [19:10:21]FM_MakeSignedData [19:10:21]FM_MakeSignedData [19:10:21]SAM_PROTO_SignData [19:10:21]wFMCommunicate request_size=4 [19:10:21]MH_SAM_APDU [19:10:21]CAPDU: 80 0D 01 02 [19:10:21]Write to MH i2c: E2 08 00 B1 76 80 0D 01 02 00 00 00 00 A0 [19:10:21]Write i2c OK [19:10:21]MH_I2C_Read... [19:10:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:21]Read from MH i2c: E2 [19:10:21]MH_I2C_Read... [19:10:21]Read from MH i2c: E2 03 00 [19:10:21]MH_I2C_Read... [19:10:21]Read from MH i2c: E2 03 00 B1 76 00 90 00 9B [19:10:21]RAPDU: 90 00 [19:10:21]wFMCommunicate OK [19:10:21]wFMCommunicate request_size=255 [19:10:21]MH_SAM_APDU [19:10:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A4 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 83 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 28 1D 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AD E1 01 00 35 04 06 00 24 [19:10:21]Write to MH i2c: E2 02 01 B2 76 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 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A4 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 83 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 28 1D 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AD E1 01 00 35 04 06 00 24 00 00 D6 [19:10:21]Write i2c OK [19:10:21]MH_I2C_Read... [19:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:22]Read from MH i2c: E2 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 03 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 03 00 B2 76 00 90 00 9C [19:10:22]RAPDU: 90 00 [19:10:22]wFMCommunicate OK [19:10:22]wFMCommunicate request_size=10 [19:10:22]MH_SAM_APDU [19:10:22]CAPDU: 80 0D 02 02 05 58 3A EC 36 67 [19:10:22]Write to MH i2c: E2 0D 00 B3 76 80 0D 02 02 05 00 58 3A EC 36 67 00 00 C8 [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:22]Read from MH i2c: E2 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 03 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 03 00 B3 76 00 90 00 9D [19:10:22]RAPDU: 90 00 [19:10:22]wFMCommunicate OK [19:10:22]wFMCommunicate request_size=4 [19:10:22]MH_SAM_APDU [19:10:22]CAPDU: 80 0D 03 02 [19:10:22]Write to MH i2c: E2 08 00 B4 76 80 0D 03 02 00 00 00 00 A5 [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:22]Read from MH i2c: E2 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 0B 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 0B 00 B4 76 00 96 86 38 79 EC 58 9A AB 90 00 FC [19:10:22]RAPDU: 96 86 38 79 EC 58 9A AB 90 00 [19:10:22]wFMCommunicate OK [19:10:22]SAM_PROTO_SignData done [19:10:22]FM_MakeSignedData done [19:10:22]CreateOFDProtocolMessage [19:10:22]wFMCommunicate request_size=4 [19:10:22]MH_SAM_APDU [19:10:22]CAPDU: 80 11 00 00 [19:10:22]Write to MH i2c: E2 08 00 B5 76 80 11 00 00 00 00 00 00 A5 [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:22]Read from MH i2c: E2 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 17 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 17 00 B5 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FC [19:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:10:22]wFMCommunicate OK [19:10:22]CreateOFDProtocolMessage done [19:10:22]OFDSenderStorePacket 123309 [19:10:22]StoreOFDPacket docnum=123309 [19:10:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 50 36 07 01 54 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A4 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 83 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 28 1D 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AD E1 01 00 35 04 06 00 24 58 3A EC 36 67 96 86 38 79 EC 58 9A AB [19:10:22]CheckFolder [19:10:22]dirname=/storage/ofd_packets [19:10:22]CheckFolder done [19:10:22]ProducePacketName [19:10:22]name=ofd_packets/00123309 [19:10:22]NVStorageSaveData ofd_packets/00123309 [19:10:22]File name is /storage/ofd_packets/00123309 [19:10:22]Write 301 bytes [19:10:22]NVStorageSaveData done [19:10:22]OFDSenderStorePacket done [19:10:22]KKMCreateOFDPacket done [19:10:22]NVStorageSaveData kkm_last_timestamp [19:10:22]File name is /storage/kkm_last_timestamp [19:10:22]Write 4 bytes [19:10:22]NVStorageSaveData done [19:10:22]ExternCall_PrintAddStr [19:10:22]wPrintStart [19:10:22]Write to MH i2c: 01 00 00 B6 76 2C [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: 01 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: 01 07 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: 01 07 00 B6 76 00 00 00 00 00 FF 0F 41 [19:10:22]RasterBufferAndPrint [19:10:22]line Счет N : (1)718139 [19:10:22]line ИНН: 02508201610067 [19:10:22]line Контрольно-Кассовый Чек [19:10:22]line ПРОДАЖА [19:10:22]line ТРК (МРК, ГНК) : 22 [19:10:22]line Товар: 2710124130 [19:10:22]line Аи-92-К-4 [19:10:22]line 5.000 * 67.40 [19:10:22]line = 337.00 [19:10:22]line НДС 12% НСП 1% [19:10:22]line > о реализуемом товаре [19:10:22]line ИТОГО: 337.00 [19:10:22]line НСП 1% : 2.98 [19:10:22]line НДС 12% : 35.79 [19:10:22]line Наличными: 0.00 [19:10:22]line Безнал.: 337.00 [19:10:22]line Место: АЗС № 64 "Партнер Нефть" [19:10:22]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:10:22]line СНО: Общий режим [19:10:22]line Чек 163 26.11.2024 19:10 [19:10:22]line Смена: 557 ФФД: 1.0 [19:10:22]line ЗНМ: 0300000033 [19:10:22]line РНМ: 0000000000092681 [19:10:22]line Версия ККМ: 001 [19:10:22]line Платежная система: O! деньги [19:10:22]line ФМ: 0000000000874881 [19:10:22]line ФД: 123309 [19:10:22]line ФПД: 39961364280935 [19:10:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T191032&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123309&fm=39961364280935&tin=02508201610067®Number=0000000000092681&sum=33700 [19:10:22]written 0, free lines is 4095 [19:10:22]OFD Sender: Processing packet 123309 [packets to send 7, broken 6] [19:10:22]ProducePacketName [19:10:22]name=ofd_packets/00123309 [19:10:22]OFD Sender: To server: pG, [19:10:22]CommunicateWithHost lk.salyk.kg:30040 [19:10:22]ConnectInit lk.salyk.kg [19:10:22]Connected sock=10 [19:10:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 50 36 07 01 54 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A4 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 83 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 28 1D 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AD E1 01 00 35 04 06 00 24 58 3A EC 36 67 96 86 38 79 EC 58 9A AB [19:10:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 D9 C8 47 00 86 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AD E1 01 00 F4 03 04 00 EA C8 45 67 B6 04 01 00 00 0D 14 1D ED F2 3A 5B 3A [19:10:22]CommunicateWithHost err = 0 [19:10:22]CheckOFDResponse [19:10:22]1017 (14) - 77093643461234 [19:10:22]1041 (16) - 0000000000874881 [19:10:22]1040 (4) - 123309 [19:10:22]1012 (4) - 26.11.2024 13:11 [19:10:22]1206 (1) - 0 [19:10:22]OFD Sender: Remove packet 123309 [19:10:22]ProducePacketName [19:10:22]name=ofd_packets/00123309 [19:10:22]NVStorageDeleteData [19:10:23]Write to MH i2c: 01 00 00 E0 76 56 [19:10:23]Write i2c OK [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: 01 [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: 01 07 00 [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: 01 07 00 E0 76 00 00 00 00 00 6D 0C D6 [19:10:23]RasterBufferAndPrint [19:10:23]line [19:10:23]line [19:10:23]line [19:10:23]line [19:10:23]line [19:10:23]written 0, free lines is 3186 [19:10:23]MH_Cut [19:10:23]Write to MH i2c: D1 01 00 E7 76 01 2F [19:10:23]Write i2c OK [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: D1 [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: D1 01 00 [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: D1 01 00 E7 76 00 2E [19:10:23]Write to MH i2c: 01 00 00 E8 76 5E [19:10:23]Write i2c OK [19:10:23]MH_I2C_Read... [19:10:23]OFD Sender: No OFD packet to send [19:10:24]*** Cut start [19:10:24]*** Partial cut [19:10:24]*** CUTSNS_PIN = 1 [19:10:24]*** CUTSNS_PIN = 0 [19:10:24]*** Brake cut motor [19:10:25]Read from MH i2c: 01 [19:10:25]MH_I2C_Read... [19:10:25]*** Stop cut motor [19:10:25]*** Cut end [19:10:25]Read from MH i2c: 01 07 00 [19:10:25]MH_I2C_Read... [19:10:25]Read from MH i2c: 01 07 00 E8 76 00 00 00 00 00 FF 0F 73 [19:10:25]process_action close_receipt done [19:10:25]requested_data is exist [19:10:25]produce_requested_data [19:10:25]requested_item fm.sn is exist - process it [19:10:25]wFMCommunicate request_size=4 [19:10:25]MH_SAM_APDU [19:10:25]CAPDU: 80 11 00 00 [19:10:25]Write to MH i2c: E2 08 00 E9 76 80 11 00 00 00 00 00 00 D9 [19:10:25]Write i2c OK [19:10:25]MH_I2C_Read... [19:10:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:25]Read from MH i2c: E2 [19:10:25]MH_I2C_Read... [19:10:25]Read from MH i2c: E2 17 00 [19:10:25]MH_I2C_Read... [19:10:25]Read from MH i2c: E2 17 00 E9 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 30 [19:10:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:10:25]wFMCommunicate OK [19:10:25]requested_item fd.num is exist - process it [19:10:25]SAM_PROTO_GetFieldsCounters [19:10:25]wFMCommunicate request_size=4 [19:10:25]MH_SAM_APDU [19:10:25]CAPDU: 80 13 00 00 [19:10:25]Write to MH i2c: E2 08 00 EA 76 80 13 00 00 00 00 00 00 DC [19:10:25]Write i2c OK [19:10:25]MH_I2C_Read... [19:10:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:25]Read from MH i2c: E2 [19:10:25]MH_I2C_Read... [19:10:25]Read from MH i2c: E2 62 00 [19:10:25]MH_I2C_Read... [19:10:25]Read from MH i2c: E2 62 00 EA 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AD E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [19:10:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AD E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:25]wFMCommunicate OK [19:10:25]SAM_PROTO_GetFieldsCounters done [19:10:25]requested_item shift.num is exist - process it [19:10:25]requested_item shift.opened is exist - process it [19:10:25]req_shift_opened [19:10:25]FM_GetShiftState [19:10:25]SAM_PROTO_GetShiftState [19:10:25]wFMCommunicate request_size=4 [19:10:25]MH_SAM_APDU [19:10:25]CAPDU: 80 13 01 00 [19:10:25]Write to MH i2c: E2 08 00 EB 76 80 13 01 00 00 00 00 00 DE [19:10:25]Write i2c OK [19:10:25]MH_I2C_Read... [19:10:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:25]Read from MH i2c: E2 [19:10:25]MH_I2C_Read... [19:10:25]Read from MH i2c: E2 0E 00 [19:10:25]MH_I2C_Read... [19:10:25]Read from MH i2c: E2 0E 00 EB 76 00 09 00 01 98 11 45 67 00 00 00 00 90 00 3F [19:10:25]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:10:25]wFMCommunicate OK [19:10:25]SAM_PROTO_GetShiftState done [19:10:25]FM_GetShiftState done [19:10:25]req_shift_opened done [19:10:25]requested_item shift.open_date is exist - process it [19:10:25]req_shift_open_date [19:10:25]req_shift_open_date done [19:10:25]produce_requested_data done [19:10:25]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123309,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [19:10:25]process_action_free close_receipt [19:10:25]json_value_free [19:10:25]json_value_free done [19:10:25]process_json_proto returns [19:10:25]Send response to host [19:10:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123309,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [19:10:25]free response buf [19:10:25]execute_script done [19:10:25]execute_script returns [19:10:25]free content buf [19:10:25]Sock 9.Close socket [19:10:25]Sock 9.Thread stoped [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [19:11:28]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:08]OFD Sender: No OFD packet to send [19:12:13]OFD Sender: No OFD packet to send [19:12:18]OFD Sender: No OFD packet to send [19:12:23]OFD Sender: No OFD packet to send [19:12:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:23]OFD Sender: No OFD packet to send [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:38]OFD Sender: No OFD packet to send [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:53]OFD Sender: No OFD packet to send [19:14:58]OFD Sender: No OFD packet to send [19:15:03]OFD Sender: No OFD packet to send [19:15:08]OFD Sender: No OFD packet to send [19:15:13]OFD Sender: No OFD packet to send [19:15:18]OFD Sender: No OFD packet to send [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:32]accept exits with 7 [19:16:32]New connection [19:16:32]New thread 3066723684 created [19:16:32]Thread 3066580324 joined [19:16:32]Waiting for new connection... [19:16:32] Sock 7.Parse request [19:16:32]Sock 7.Check first char [19:16:32]Sock 7.First char is OK [19:16:32]request: POST /json_proto HTTP/1.0 [19:16:32]Method: POST [19:16:32]URL: /json_proto [19:16:32]Method is POST - this is cgi request [19:16:32]url: /json_proto [19:16:32]query_string will be loaded in cgi processing [19:16:32]execute_cgi json_proto POST (null) [19:16:32]execute_cgi path=json_proto method=POST [19:16:32]POST find Content-Length [19:16:32]Host: 172.17.37.4:8080 [19:16:32]Content-Length: 800 [19:16:32]Content-Type: application/json [19:16:32] [19:16:32]POST finish read [19:16:32]Found Content-Length = 800 [19:16:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "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" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:32]execute_script... [19:16:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "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" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:32]POST & json_proto [19:16:32]process_json_proto [19:16:32]json parsed OK: [19:16:32]protocol is kg_v1.0 [19:16:32]action value=close_receipt [19:16:32]process_action close_receipt [19:16:32]cmd_close_receipt [19:16:32]MH_GetDate [19:16:32]Write to MH i2c: F0 00 00 EC 76 51 [19:16:32]Write i2c OK [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: F0 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: F0 09 00 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: F0 09 00 EC 76 00 9C 1E 46 67 B8 5A 43 67 7D [19:16:32]GetLastDocTimeStamp 1732648232 [19:16:32]current date 1732648604 [19:16:32]FM_GetShiftState [19:16:32]SAM_PROTO_GetShiftState [19:16:32]wFMCommunicate request_size=4 [19:16:32]MH_SAM_APDU [19:16:32]CAPDU: 80 13 01 00 [19:16:32]Write to MH i2c: E2 08 00 ED 76 80 13 01 00 00 00 00 00 E0 [19:16:32]Write i2c OK [19:16:32]MH_I2C_Read... [19:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:32]Read from MH i2c: E2 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 0E 00 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 0E 00 ED 76 00 09 00 01 98 11 45 67 00 00 00 00 90 00 41 [19:16:32]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:16:32]wFMCommunicate OK [19:16:32]SAM_PROTO_GetShiftState done [19:16:32]FM_GetShiftState done [19:16:32]opened in 1732579736 [19:16:32]opened+sec_in_day 1732666136 [19:16:32]quantity*price = 50010 [19:16:32]sum+1 = 50012 [19:16:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 164 26.11.2024 19:16 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123310 ФПД: 241003092729436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T191644&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123310&fm=241003092729436&tin=02508201610067®Number=0000000000092681&sum=50011 [19:16:33]StoreToDocumentArchive [19:16:33]shift 557 fd 123310 [19:16:33]save to /storage/0557/doc_00123310 [19:16:33]save last doc name /storage/0557/doc_00123310 to /storage/kkm_last_doc_name [19:16:33]save OK [19:16:33]Clear old archive folders... [19:16:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:16:33]tlvbuf is 020D2FF0 [19:16:33]SAM_PROTO_ClearQueue [19:16:33]wFMCommunicate request_size=4 [19:16:33]MH_SAM_APDU [19:16:33]CAPDU: 80 09 00 00 [19:16:33]Write to MH i2c: E2 08 00 FA 76 80 09 00 00 00 00 00 00 E2 [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:33]Read from MH i2c: E2 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 03 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 03 00 FA 76 00 90 00 E4 [19:16:33]RAPDU: 90 00 [19:16:33]wFMCommunicate OK [19:16:33]SAM_PROTO_ClearQueue done [19:16:33]KKMCreateOFDPacket [19:16:33]OFDProtocolAddRootSTLVToBuf [19:16:33]FM_MakeSignedData [19:16:33]FM_MakeSignedData [19:16:33]SAM_PROTO_SignData [19:16:33]wFMCommunicate request_size=4 [19:16:33]MH_SAM_APDU [19:16:33]CAPDU: 80 0D 01 02 [19:16:33]Write to MH i2c: E2 08 00 FB 76 80 0D 01 02 00 00 00 00 EA [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:33]Read from MH i2c: E2 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 03 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 03 00 FB 76 00 90 00 E5 [19:16:33]RAPDU: 90 00 [19:16:33]wFMCommunicate OK [19:16:33]wFMCommunicate request_size=255 [19:16:33]MH_SAM_APDU [19:16:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 9C 1E 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AE E1 01 00 35 04 06 00 DB [19:16:33]Write to MH i2c: E2 02 01 FC 76 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 9C 1E 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AE E1 01 00 35 04 06 00 DB 00 00 0C [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]OFD Sender: No OFD packet to send [19:16:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:33]Read from MH i2c: E2 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 03 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 03 00 FC 76 00 90 00 E6 [19:16:33]RAPDU: 90 00 [19:16:33]wFMCommunicate OK [19:16:33]wFMCommunicate request_size=10 [19:16:33]MH_SAM_APDU [19:16:33]CAPDU: 80 0D 02 02 05 30 E7 BB 5E 5C [19:16:33]Write to MH i2c: E2 0D 00 FD 76 80 0D 02 02 05 00 30 E7 BB 5E 5C 00 00 83 [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:34]Read from MH i2c: E2 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: E2 03 00 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: E2 03 00 FD 76 00 90 00 E7 [19:16:34]RAPDU: 90 00 [19:16:34]wFMCommunicate OK [19:16:34]wFMCommunicate request_size=4 [19:16:34]MH_SAM_APDU [19:16:34]CAPDU: 80 0D 03 02 [19:16:34]Write to MH i2c: E2 08 00 FE 76 80 0D 03 02 00 00 00 00 EF [19:16:34]Write i2c OK [19:16:34]MH_I2C_Read... [19:16:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:34]Read from MH i2c: E2 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: E2 0B 00 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: E2 0B 00 FE 76 00 7B 8D 20 AB A6 94 D0 D2 90 00 9F [19:16:34]RAPDU: 7B 8D 20 AB A6 94 D0 D2 90 00 [19:16:34]wFMCommunicate OK [19:16:34]SAM_PROTO_SignData done [19:16:34]FM_MakeSignedData done [19:16:34]CreateOFDProtocolMessage [19:16:34]wFMCommunicate request_size=4 [19:16:34]MH_SAM_APDU [19:16:34]CAPDU: 80 11 00 00 [19:16:34]Write to MH i2c: E2 08 00 FF 76 80 11 00 00 00 00 00 00 EF [19:16:34]Write i2c OK [19:16:34]MH_I2C_Read... [19:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:34]Read from MH i2c: E2 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: E2 17 00 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: E2 17 00 FF 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 46 [19:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:16:34]wFMCommunicate OK [19:16:34]CreateOFDProtocolMessage done [19:16:34]OFDSenderStorePacket 123310 [19:16:34]StoreOFDPacket docnum=123310 [19:16:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 C2 80 07 01 B0 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 9C 1E 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AE E1 01 00 35 04 06 00 DB 30 E7 BB 5E 5C 7B 8D 20 AB A6 94 D0 D2 [19:16:34]CheckFolder [19:16:34]dirname=/storage/ofd_packets [19:16:34]CheckFolder done [19:16:34]ProducePacketName [19:16:34]name=ofd_packets/00123310 [19:16:34]NVStorageSaveData ofd_packets/00123310 [19:16:34]File name is /storage/ofd_packets/00123310 [19:16:34]Write 301 bytes [19:16:34]NVStorageSaveData done [19:16:34]OFDSenderStorePacket done [19:16:34]KKMCreateOFDPacket done [19:16:34]NVStorageSaveData kkm_last_timestamp [19:16:34]File name is /storage/kkm_last_timestamp [19:16:34]Write 4 bytes [19:16:34]NVStorageSaveData done [19:16:34]ExternCall_PrintAddStr [19:16:34]wPrintStart [19:16:34]Write to MH i2c: 01 00 00 00 77 77 [19:16:34]Write i2c OK [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: 01 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: 01 07 00 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: 01 07 00 00 77 00 00 00 00 00 FF 0F 8C [19:16:34]RasterBufferAndPrint [19:16:34]line Счет N : (1)718140 [19:16:34]line ИНН: 02508201610067 [19:16:34]line Контрольно-Кассовый Чек [19:16:34]line ПРОДАЖА [19:16:34]line ТРК (МРК, ГНК) : 42 [19:16:34]line Товар: 2710124130 [19:16:34]line Аи-92-К-4 [19:16:34]line 7.420 * 67.40 [19:16:34]line = 500.11 [19:16:34]line НДС 12% НСП 1% [19:16:34]line > о реализуемом товаре [19:16:34]line ИТОГО: 500.11 [19:16:34]line НСП 1% : 4.43 [19:16:34]line НДС 12% : 53.11 [19:16:34]line Наличными: 0.00 [19:16:34]line Безнал.: 500.11 [19:16:34]line Место: АЗС № 64 "Партнер Нефть" [19:16:34]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:16:34]line СНО: Общий режим [19:16:34]line Чек 164 26.11.2024 19:16 [19:16:34]line Смена: 557 ФФД: 1.0 [19:16:34]line ЗНМ: 0300000033 [19:16:34]line РНМ: 0000000000092681 [19:16:34]line Версия ККМ: 001 [19:16:34]line Платежная система: O! деньги [19:16:34]line ФМ: 0000000000874881 [19:16:34]line ФД: 123310 [19:16:34]line ФПД: 241003092729436 [19:16:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T191644&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123310&fm=241003092729436&tin=02508201610067®Number=0000000000092681&sum=50011 [19:16:34]OFD Sender: Processing packet 123310 [packets to send 7, broken 6] [19:16:34]ProducePacketName [19:16:34]name=ofd_packets/00123310 [19:16:34]OFD Sender: To server: pG, [19:16:34]CommunicateWithHost lk.salyk.kg:30040 [19:16:34]ConnectInit lk.salyk.kg [19:16:34]written 0, free lines is 4095 [19:16:34]Connected sock=10 [19:16:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 C2 80 07 01 B0 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 9C 1E 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AE E1 01 00 35 04 06 00 DB 30 E7 BB 5E 5C 7B 8D 20 AB A6 94 D0 D2 [19:16:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 5D AE 47 00 56 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 38 37 34 38 38 31 10 04 04 00 AE E1 01 00 F4 03 04 00 5E CA 45 67 B6 04 01 00 00 77 99 C2 1F FA 13 24 49 [19:16:34]CommunicateWithHost err = 0 [19:16:34]CheckOFDResponse [19:16:34]1017 (14) - 77093643461234 [19:16:34]1041 (16) - 0000000000874881 [19:16:34]1040 (4) - 123310 [19:16:34]1012 (4) - 26.11.2024 13:17 [19:16:34]1206 (1) - 0 [19:16:34]OFD Sender: Remove packet 123310 [19:16:34]ProducePacketName [19:16:34]name=ofd_packets/00123310 [19:16:34]NVStorageDeleteData [19:16:34]Write to MH i2c: 01 00 00 2A 77 A1 [19:16:34]Write i2c OK [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: 01 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: 01 07 00 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: 01 07 00 2A 77 00 00 00 00 00 6A 0C 1E [19:16:34]RasterBufferAndPrint [19:16:34]line [19:16:34]line [19:16:34]line [19:16:34]line [19:16:34]line [19:16:34]written 0, free lines is 3182 [19:16:34]MH_Cut [19:16:34]Write to MH i2c: D1 01 00 31 77 01 7A [19:16:34]Write i2c OK [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: D1 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: D1 01 00 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: D1 01 00 31 77 00 79 [19:16:34]Write to MH i2c: 01 00 00 32 77 A9 [19:16:34]Write i2c OK [19:16:34]MH_I2C_Read... [19:16:35]OFD Sender: No OFD packet to send [19:16:36]*** Cut start [19:16:36]*** Partial cut [19:16:36]*** CUTSNS_PIN = 1 [19:16:36]*** CUTSNS_PIN = 0 [19:16:36]*** Brake cut motor [19:16:36]Read from MH i2c: 01 [19:16:36]MH_I2C_Read... [19:16:36]*** Stop cut motor [19:16:36]*** Cut end [19:16:36]Read from MH i2c: 01 07 00 [19:16:36]MH_I2C_Read... [19:16:36]Read from MH i2c: 01 07 00 32 77 00 00 00 00 00 FF 0F BE [19:16:36]process_action close_receipt done [19:16:36]requested_data is exist [19:16:36]produce_requested_data [19:16:36]requested_item fm.sn is exist - process it [19:16:36]wFMCommunicate request_size=4 [19:16:36]MH_SAM_APDU [19:16:36]CAPDU: 80 11 00 00 [19:16:36]Write to MH i2c: E2 08 00 33 77 80 11 00 00 00 00 00 00 24 [19:16:36]Write i2c OK [19:16:36]MH_I2C_Read... [19:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:36]Read from MH i2c: E2 [19:16:36]MH_I2C_Read... [19:16:36]Read from MH i2c: E2 17 00 [19:16:36]MH_I2C_Read... [19:16:36]Read from MH i2c: E2 17 00 33 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 7B [19:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:16:36]wFMCommunicate OK [19:16:36]requested_item fd.num is exist - process it [19:16:36]SAM_PROTO_GetFieldsCounters [19:16:36]wFMCommunicate request_size=4 [19:16:36]MH_SAM_APDU [19:16:36]CAPDU: 80 13 00 00 [19:16:36]Write to MH i2c: E2 08 00 34 77 80 13 00 00 00 00 00 00 27 [19:16:36]Write i2c OK [19:16:36]MH_I2C_Read... [19:16:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:37]Read from MH i2c: E2 [19:16:37]MH_I2C_Read... [19:16:37]Read from MH i2c: E2 62 00 [19:16:37]MH_I2C_Read... [19:16:37]Read from MH i2c: E2 62 00 34 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AE E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [19:16:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AE E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:37]wFMCommunicate OK [19:16:37]SAM_PROTO_GetFieldsCounters done [19:16:37]requested_item shift.num is exist - process it [19:16:37]requested_item shift.opened is exist - process it [19:16:37]req_shift_opened [19:16:37]FM_GetShiftState [19:16:37]SAM_PROTO_GetShiftState [19:16:37]wFMCommunicate request_size=4 [19:16:37]MH_SAM_APDU [19:16:37]CAPDU: 80 13 01 00 [19:16:37]Write to MH i2c: E2 08 00 35 77 80 13 01 00 00 00 00 00 29 [19:16:37]Write i2c OK [19:16:37]MH_I2C_Read... [19:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:37]Read from MH i2c: E2 [19:16:37]MH_I2C_Read... [19:16:37]Read from MH i2c: E2 0E 00 [19:16:37]MH_I2C_Read... [19:16:37]Read from MH i2c: E2 0E 00 35 77 00 09 00 01 98 11 45 67 00 00 00 00 90 00 8A [19:16:37]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:16:37]wFMCommunicate OK [19:16:37]SAM_PROTO_GetShiftState done [19:16:37]FM_GetShiftState done [19:16:37]req_shift_opened done [19:16:37]requested_item shift.open_date is exist - process it [19:16:37]req_shift_open_date [19:16:37]req_shift_open_date done [19:16:37]produce_requested_data done [19:16:37]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123310,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [19:16:37]process_action_free close_receipt [19:16:37]json_value_free [19:16:37]json_value_free done [19:16:37]process_json_proto returns [19:16:37]Send response to host [19:16:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123310,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [19:16:37]free response buf [19:16:37]execute_script done [19:16:37]execute_script returns [19:16:37]free content buf [19:16:37]Sock 7.Close socket [19:16:37]Sock 7.Thread stoped [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:52]accept exits with 9 [19:22:52]New connection [19:22:52]New thread 3066580324 created [19:22:52]Thread 3066723684 joined [19:22:52]Waiting for new connection... [19:22:52] Sock 9.Parse request [19:22:52]Sock 9.Check first char [19:22:52]Sock 9.First char is OK [19:22:52]request: POST /json_proto HTTP/1.0 [19:22:52]Method: POST [19:22:52]URL: /json_proto [19:22:52]Method is POST - this is cgi request [19:22:52]url: /json_proto [19:22:52]query_string will be loaded in cgi processing [19:22:52]execute_cgi json_proto POST (null) [19:22:52]execute_cgi path=json_proto method=POST [19:22:52]POST find Content-Length [19:22:52]Host: 172.17.37.4:8080 [19:22:52]Content-Length: 754 [19:22:52]Content-Type: application/json [19:22:52] [19:22:52]POST finish read [19:22:52]Found Content-Length = 754 [19:22:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30020194", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:52]execute_script... [19:22:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30020194", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:52]POST & json_proto [19:22:52]process_json_proto [19:22:52]json parsed OK: [19:22:52]protocol is kg_v1.0 [19:22:52]action value=close_receipt [19:22:52]process_action close_receipt [19:22:52]cmd_close_receipt [19:22:52]MH_GetDate [19:22:52]Write to MH i2c: F0 00 00 36 77 9C [19:22:52]Write i2c OK [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: F0 [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: F0 09 00 [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: F0 09 00 36 77 00 18 20 46 67 B8 5A 43 67 46 [19:22:52]GetLastDocTimeStamp 1732648604 [19:22:52]current date 1732648984 [19:22:52]FM_GetShiftState [19:22:52]SAM_PROTO_GetShiftState [19:22:52]wFMCommunicate request_size=4 [19:22:52]MH_SAM_APDU [19:22:52]CAPDU: 80 13 01 00 [19:22:52]Write to MH i2c: E2 08 00 37 77 80 13 01 00 00 00 00 00 2B [19:22:52]Write i2c OK [19:22:52]MH_I2C_Read... [19:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:52]Read from MH i2c: E2 [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: E2 0E 00 [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: E2 0E 00 37 77 00 09 00 01 98 11 45 67 00 00 00 00 90 00 8C [19:22:52]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:22:52]wFMCommunicate OK [19:22:52]SAM_PROTO_GetShiftState done [19:22:52]FM_GetShiftState done [19:22:52]opened in 1732579736 [19:22:52]opened+sec_in_day 1732666136 [19:22:52]quantity*price = 0 [19:22:52]sum+1 = 1 [19:22:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 165 26.11.2024 19:23 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: ТК ГПНА Online 30020194 ФМ: 0000000000874881 ФД: 123311 ФПД: 279498430112357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T192304&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123311&fm=279498430112357&tin=02508201610067®Number=0000000000092681&sum=0 [19:22:53]StoreToDocumentArchive [19:22:53]shift 557 fd 123311 [19:22:53]save to /storage/0557/doc_00123311 [19:22:53]save last doc name /storage/0557/doc_00123311 to /storage/kkm_last_doc_name [19:22:53]save OK [19:22:53]Clear old archive folders... [19:22:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:53]tlvbuf is 01F425D0 [19:22:53]SAM_PROTO_ClearQueue [19:22:53]wFMCommunicate request_size=4 [19:22:53]MH_SAM_APDU [19:22:53]CAPDU: 80 09 00 00 [19:22:53]Write to MH i2c: E2 08 00 44 77 80 09 00 00 00 00 00 00 2D [19:22:53]Write i2c OK [19:22:53]MH_I2C_Read... [19:22:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:53]Read from MH i2c: E2 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 03 00 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 03 00 44 77 00 90 00 2F [19:22:53]RAPDU: 90 00 [19:22:53]wFMCommunicate OK [19:22:53]SAM_PROTO_ClearQueue done [19:22:53]KKMCreateOFDPacket [19:22:53]OFDProtocolAddRootSTLVToBuf [19:22:53]FM_MakeSignedData [19:22:53]FM_MakeSignedData [19:22:53]SAM_PROTO_SignData [19:22:53]wFMCommunicate request_size=4 [19:22:53]MH_SAM_APDU [19:22:53]CAPDU: 80 0D 01 02 [19:22:53]Write to MH i2c: E2 08 00 45 77 80 0D 01 02 00 00 00 00 35 [19:22:53]Write i2c OK [19:22:53]MH_I2C_Read... [19:22:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:53]Read from MH i2c: E2 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 03 00 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 03 00 45 77 00 90 00 30 [19:22:53]RAPDU: 90 00 [19:22:53]wFMCommunicate OK [19:22:53]wFMCommunicate request_size=255 [19:22:53]MH_SAM_APDU [19:22:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 18 20 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AF E1 01 00 35 04 06 00 FE [19:22:53]Write to MH i2c: E2 02 01 46 77 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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 18 20 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AF E1 01 00 35 04 06 00 FE 00 00 30 [19:22:53]Write i2c OK [19:22:53]MH_I2C_Read... [19:22:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:54]Read from MH i2c: E2 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: E2 03 00 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: E2 03 00 46 77 00 90 00 31 [19:22:54]RAPDU: 90 00 [19:22:54]wFMCommunicate OK [19:22:54]wFMCommunicate request_size=10 [19:22:54]MH_SAM_APDU [19:22:54]CAPDU: 80 0D 02 02 05 33 CC A4 62 65 [19:22:54]Write to MH i2c: E2 0D 00 47 77 80 0D 02 02 05 00 33 CC A4 62 65 00 00 AC [19:22:54]Write i2c OK [19:22:54]MH_I2C_Read... [19:22:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:54]Read from MH i2c: E2 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: E2 03 00 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: E2 03 00 47 77 00 90 00 32 [19:22:54]RAPDU: 90 00 [19:22:54]wFMCommunicate OK [19:22:54]wFMCommunicate request_size=4 [19:22:54]MH_SAM_APDU [19:22:54]CAPDU: 80 0D 03 02 [19:22:54]Write to MH i2c: E2 08 00 48 77 80 0D 03 02 00 00 00 00 3A [19:22:54]Write i2c OK [19:22:54]MH_I2C_Read... [19:22:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:54]Read from MH i2c: E2 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: E2 0B 00 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: E2 0B 00 48 77 00 FA D2 28 C8 03 A4 27 0D 90 00 D2 [19:22:54]RAPDU: FA D2 28 C8 03 A4 27 0D 90 00 [19:22:54]wFMCommunicate OK [19:22:54]SAM_PROTO_SignData done [19:22:54]FM_MakeSignedData done [19:22:54]CreateOFDProtocolMessage [19:22:54]wFMCommunicate request_size=4 [19:22:54]MH_SAM_APDU [19:22:54]CAPDU: 80 11 00 00 [19:22:54]Write to MH i2c: E2 08 00 49 77 80 11 00 00 00 00 00 00 3A [19:22:54]Write i2c OK [19:22:54]MH_I2C_Read... [19:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:54]Read from MH i2c: E2 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: E2 17 00 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: E2 17 00 49 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 91 [19:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:22:54]wFMCommunicate OK [19:22:54]CreateOFDProtocolMessage done [19:22:54]OFDSenderStorePacket 123311 [19:22:54]StoreOFDPacket docnum=123311 [19:22:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 20 F8 07 01 B0 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 18 20 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AF E1 01 00 35 04 06 00 FE 33 CC A4 62 65 FA D2 28 C8 03 A4 27 0D [19:22:54]CheckFolder [19:22:54]dirname=/storage/ofd_packets [19:22:54]CheckFolder done [19:22:54]ProducePacketName [19:22:54]name=ofd_packets/00123311 [19:22:54]NVStorageSaveData ofd_packets/00123311 [19:22:54]File name is /storage/ofd_packets/00123311 [19:22:54]Write 301 bytes [19:22:54]NVStorageSaveData done [19:22:54]OFDSenderStorePacket done [19:22:54]KKMCreateOFDPacket done [19:22:54]NVStorageSaveData kkm_last_timestamp [19:22:54]File name is /storage/kkm_last_timestamp [19:22:54]Write 4 bytes [19:22:54]NVStorageSaveData done [19:22:54]ExternCall_PrintAddStr [19:22:54]wPrintStart [19:22:54]Write to MH i2c: 01 00 00 4A 77 C1 [19:22:54]Write i2c OK [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: 01 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: 01 07 00 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: 01 07 00 4A 77 00 00 00 00 00 FF 0F D6 [19:22:54]RasterBufferAndPrint [19:22:54]line Счет N : (1)718141 [19:22:54]line ИНН: 02508201610067 [19:22:54]line Контрольно-Кассовый Чек [19:22:54]line ПРОДАЖА [19:22:54]line ТРК (МРК, ГНК) : 12 [19:22:54]line Товар: 2710124130 [19:22:54]line Аи-92-К-4 [19:22:54]line 30.000 * 0.00 [19:22:54]line = 0.00 [19:22:54]line НДС 12% НСП 1% [19:22:54]line > о реализуемом товаре [19:22:54]line ИТОГО: 0.00 [19:22:54]line НСП 1% : 0.00 [19:22:54]line НДС 12% : 0.00 [19:22:54]line Наличными: 0.00 [19:22:54]line Безнал.: 0.00 [19:22:54]line Место: АЗС № 64 "Партнер Нефть" [19:22:54]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:22:54]line СНО: Общий режим [19:22:54]line Чек 165 26.11.2024 19:23 [19:22:54]line Смена: 557 ФФД: 1.0 [19:22:54]line ЗНМ: 0300000033 [19:22:54]line РНМ: 0000000000092681 [19:22:54]line Версия ККМ: 001 [19:22:54]line Талоны: ТК ГПНА Online [19:22:54]line 30020194 [19:22:54]line ФМ: 0000000000874881 [19:22:54]line ФД: 123311 [19:22:54]line ФПД: 279498430112357 [19:22:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T192304&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123311&fm=279498430112357&tin=02508201610067®Number=0000000000092681&sum=0 [19:22:54]written 0, free lines is 4095 [19:22:54]OFD Sender: Processing packet 123311 [packets to send 7, broken 6] [19:22:54]ProducePacketName [19:22:54]name=ofd_packets/00123311 [19:22:54]OFD Sender: To server: pG, [19:22:54]CommunicateWithHost lk.salyk.kg:30040 [19:22:54]ConnectInit lk.salyk.kg [19:22:54]Connected sock=10 [19:22:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 20 F8 07 01 B0 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 18 20 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AF E1 01 00 35 04 06 00 FE 33 CC A4 62 65 FA D2 28 C8 03 A4 27 0D [19:22:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 B4 7B 47 00 37 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AF E1 01 00 F4 03 04 00 DA CB 45 67 B6 04 01 00 00 A4 35 26 0C D9 1A 5C C6 [19:22:54]CommunicateWithHost err = 0 [19:22:54]CheckOFDResponse [19:22:54]1017 (14) - 77093643461234 [19:22:54]1041 (16) - 0000000000874881 [19:22:54]1040 (4) - 123311 [19:22:54]1012 (4) - 26.11.2024 13:23 [19:22:54]1206 (1) - 0 [19:22:54]OFD Sender: Remove packet 123311 [19:22:54]ProducePacketName [19:22:54]name=ofd_packets/00123311 [19:22:54]NVStorageDeleteData [19:22:54]Write to MH i2c: 01 00 00 74 77 EB [19:22:54]Write i2c OK [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: 01 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: 01 07 00 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: 01 07 00 74 77 00 00 00 00 00 6B 0C 69 [19:22:54]RasterBufferAndPrint [19:22:54]line [19:22:54]line [19:22:54]line [19:22:54]line [19:22:54]line [19:22:54]written 0, free lines is 3185 [19:22:54]MH_Cut [19:22:54]Write to MH i2c: D1 01 00 7B 77 01 C4 [19:22:54]Write i2c OK [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: D1 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: D1 01 00 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: D1 01 00 7B 77 00 C3 [19:22:54]Write to MH i2c: 01 00 00 7C 77 F3 [19:22:54]Write i2c OK [19:22:54]MH_I2C_Read... [19:22:55]OFD Sender: No OFD packet to send [19:22:55]*** Cut start [19:22:55]*** Partial cut [19:22:55]*** CUTSNS_PIN = 1 [19:22:56]*** CUTSNS_PIN = 0 [19:22:56]*** Brake cut motor [19:22:56]Read from MH i2c: 01 [19:22:56]MH_I2C_Read... [19:22:56]*** Stop cut motor [19:22:56]*** Cut end [19:22:56]Read from MH i2c: 01 07 00 [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: 01 07 00 7C 77 00 00 00 00 00 FF 0F 08 [19:22:56]process_action close_receipt done [19:22:56]requested_data is exist [19:22:56]produce_requested_data [19:22:56]requested_item fm.sn is exist - process it [19:22:56]wFMCommunicate request_size=4 [19:22:56]MH_SAM_APDU [19:22:56]CAPDU: 80 11 00 00 [19:22:56]Write to MH i2c: E2 08 00 7D 77 80 11 00 00 00 00 00 00 6E [19:22:56]Write i2c OK [19:22:56]MH_I2C_Read... [19:22:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:56]Read from MH i2c: E2 [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: E2 17 00 [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: E2 17 00 7D 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C5 [19:22:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:22:56]wFMCommunicate OK [19:22:56]requested_item fd.num is exist - process it [19:22:56]SAM_PROTO_GetFieldsCounters [19:22:56]wFMCommunicate request_size=4 [19:22:56]MH_SAM_APDU [19:22:56]CAPDU: 80 13 00 00 [19:22:56]Write to MH i2c: E2 08 00 7E 77 80 13 00 00 00 00 00 00 71 [19:22:56]Write i2c OK [19:22:56]MH_I2C_Read... [19:22:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:56]Read from MH i2c: E2 [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: E2 62 00 [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: E2 62 00 7E 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AF E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [19:22:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 AF E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:22:56]wFMCommunicate OK [19:22:56]SAM_PROTO_GetFieldsCounters done [19:22:56]requested_item shift.num is exist - process it [19:22:56]requested_item shift.opened is exist - process it [19:22:56]req_shift_opened [19:22:56]FM_GetShiftState [19:22:56]SAM_PROTO_GetShiftState [19:22:56]wFMCommunicate request_size=4 [19:22:56]MH_SAM_APDU [19:22:56]CAPDU: 80 13 01 00 [19:22:56]Write to MH i2c: E2 08 00 7F 77 80 13 01 00 00 00 00 00 73 [19:22:56]Write i2c OK [19:22:56]MH_I2C_Read... [19:22:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:56]Read from MH i2c: E2 [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: E2 0E 00 [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: E2 0E 00 7F 77 00 09 00 01 98 11 45 67 00 00 00 00 90 00 D4 [19:22:56]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:22:56]wFMCommunicate OK [19:22:56]SAM_PROTO_GetShiftState done [19:22:56]FM_GetShiftState done [19:22:56]req_shift_opened done [19:22:56]requested_item shift.open_date is exist - process it [19:22:56]req_shift_open_date [19:22:56]req_shift_open_date done [19:22:56]produce_requested_data done [19:22:56]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123311,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [19:22:56]process_action_free close_receipt [19:22:56]json_value_free [19:22:56]json_value_free done [19:22:56]process_json_proto returns [19:22:56]Send response to host [19:22:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123311,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [19:22:56]free response buf [19:22:56]execute_script done [19:22:56]execute_script returns [19:22:56]free content buf [19:22:56]Sock 9.Close socket [19:22:56]Sock 9.Thread stoped [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:07]accept exits with 7 [19:24:07]New connection [19:24:07]New thread 3066723684 created [19:24:07]Thread 3066580324 joined [19:24:07]Waiting for new connection... [19:24:07] Sock 7.Parse request [19:24:07]Sock 7.Check first char [19:24:07]Sock 7.First char is OK [19:24:07]request: POST /json_proto HTTP/1.0 [19:24:07]Method: POST [19:24:07]URL: /json_proto [19:24:07]Method is POST - this is cgi request [19:24:07]url: /json_proto [19:24:07]query_string will be loaded in cgi processing [19:24:07]execute_cgi json_proto POST (null) [19:24:07]execute_cgi path=json_proto method=POST [19:24:07]POST find Content-Length [19:24:07]Host: 172.17.37.4:8080 [19:24:07]Content-Length: 677 [19:24:07]Content-Type: application/json [19:24:07] [19:24:07]POST finish read [19:24:07]Found Content-Length = 677 [19:24:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.010, "sum" : 270.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:07]execute_script... [19:24:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.010, "sum" : 270.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:07]POST & json_proto [19:24:07]process_json_proto [19:24:07]json parsed OK: [19:24:07]protocol is kg_v1.0 [19:24:07]action value=close_receipt [19:24:07]process_action close_receipt [19:24:07]cmd_close_receipt [19:24:07]MH_GetDate [19:24:07]Write to MH i2c: F0 00 00 80 77 E6 [19:24:07]Write i2c OK [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: F0 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: F0 09 00 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: F0 09 00 80 77 00 63 20 46 67 B8 5A 43 67 DB [19:24:07]GetLastDocTimeStamp 1732648984 [19:24:07]current date 1732649059 [19:24:07]FM_GetShiftState [19:24:07]SAM_PROTO_GetShiftState [19:24:07]wFMCommunicate request_size=4 [19:24:07]MH_SAM_APDU [19:24:07]CAPDU: 80 13 01 00 [19:24:07]Write to MH i2c: E2 08 00 81 77 80 13 01 00 00 00 00 00 75 [19:24:07]Write i2c OK [19:24:07]MH_I2C_Read... [19:24:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:07]Read from MH i2c: E2 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: E2 0E 00 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: E2 0E 00 81 77 00 09 00 01 98 11 45 67 00 00 00 00 90 00 D6 [19:24:07]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:24:07]wFMCommunicate OK [19:24:07]SAM_PROTO_GetShiftState done [19:24:07]FM_GetShiftState done [19:24:07]opened in 1732579736 [19:24:07]opened+sec_in_day 1732666136 [19:24:07]quantity*price = 27027 [19:24:07]sum+1 = 27028 [19:24:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.70 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 166 26.11.2024 19:24 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123312 ФПД: 12722212799927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T192419&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123312&fm=12722212799927&tin=02508201610067®Number=0000000000092681&sum=27000 [19:24:08]StoreToDocumentArchive [19:24:08]shift 557 fd 123312 [19:24:08]save to /storage/0557/doc_00123312 [19:24:08]save last doc name /storage/0557/doc_00123312 to /storage/kkm_last_doc_name [19:24:08]save OK [19:24:08]Clear old archive folders... [19:24:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:08]tlvbuf is 01FBEC00 [19:24:08]SAM_PROTO_ClearQueue [19:24:08]wFMCommunicate request_size=4 [19:24:08]MH_SAM_APDU [19:24:08]CAPDU: 80 09 00 00 [19:24:08]Write to MH i2c: E2 08 00 8E 77 80 09 00 00 00 00 00 00 77 [19:24:08]Write i2c OK [19:24:08]MH_I2C_Read... [19:24:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:08]Read from MH i2c: E2 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 03 00 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 03 00 8E 77 00 90 00 79 [19:24:08]RAPDU: 90 00 [19:24:08]wFMCommunicate OK [19:24:08]SAM_PROTO_ClearQueue done [19:24:08]KKMCreateOFDPacket [19:24:08]OFDProtocolAddRootSTLVToBuf [19:24:08]FM_MakeSignedData [19:24:08]FM_MakeSignedData [19:24:08]SAM_PROTO_SignData [19:24:08]wFMCommunicate request_size=4 [19:24:08]MH_SAM_APDU [19:24:08]CAPDU: 80 0D 01 02 [19:24:08]Write to MH i2c: E2 08 00 8F 77 80 0D 01 02 00 00 00 00 7F [19:24:08]Write i2c OK [19:24:08]MH_I2C_Read... [19:24:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:08]Read from MH i2c: E2 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 03 00 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 03 00 8F 77 00 90 00 7A [19:24:08]RAPDU: 90 00 [19:24:08]wFMCommunicate OK [19:24:08]wFMCommunicate request_size=255 [19:24:08]MH_SAM_APDU [19:24:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 93 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 63 20 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B0 E1 01 00 35 04 06 00 0B [19:24:08]Write to MH i2c: E2 02 01 90 77 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 34 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 93 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 63 20 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B0 E1 01 00 35 04 06 00 0B 00 00 44 [19:24:08]Write i2c OK [19:24:08]MH_I2C_Read... [19:24:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:09]Read from MH i2c: E2 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: E2 03 00 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: E2 03 00 90 77 00 90 00 7B [19:24:09]RAPDU: 90 00 [19:24:09]wFMCommunicate OK [19:24:09]wFMCommunicate request_size=10 [19:24:09]MH_SAM_APDU [19:24:09]CAPDU: 80 0D 02 02 05 92 1E F9 85 B7 [19:24:09]Write to MH i2c: E2 0D 00 91 77 80 0D 02 02 05 00 92 1E F9 85 B7 00 00 71 [19:24:09]Write i2c OK [19:24:09]MH_I2C_Read... [19:24:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:09]Read from MH i2c: E2 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: E2 03 00 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: E2 03 00 91 77 00 90 00 7C [19:24:09]RAPDU: 90 00 [19:24:09]wFMCommunicate OK [19:24:09]wFMCommunicate request_size=4 [19:24:09]MH_SAM_APDU [19:24:09]CAPDU: 80 0D 03 02 [19:24:09]Write to MH i2c: E2 08 00 92 77 80 0D 03 02 00 00 00 00 84 [19:24:09]Write i2c OK [19:24:09]MH_I2C_Read... [19:24:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:09]Read from MH i2c: E2 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: E2 0B 00 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: E2 0B 00 92 77 00 A2 96 01 33 C9 45 01 CD 90 00 CD [19:24:09]RAPDU: A2 96 01 33 C9 45 01 CD 90 00 [19:24:09]wFMCommunicate OK [19:24:09]SAM_PROTO_SignData done [19:24:09]FM_MakeSignedData done [19:24:09]CreateOFDProtocolMessage [19:24:09]wFMCommunicate request_size=4 [19:24:09]MH_SAM_APDU [19:24:09]CAPDU: 80 11 00 00 [19:24:09]Write to MH i2c: E2 08 00 93 77 80 11 00 00 00 00 00 00 84 [19:24:09]Write i2c OK [19:24:09]MH_I2C_Read... [19:24:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:09]Read from MH i2c: E2 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: E2 17 00 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: E2 17 00 93 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DB [19:24:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:24:09]wFMCommunicate OK [19:24:09]CreateOFDProtocolMessage done [19:24:09]OFDSenderStorePacket 123312 [19:24:09]StoreOFDPacket docnum=123312 [19:24:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 C1 0B 07 01 F5 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 93 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 63 20 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B0 E1 01 00 35 04 06 00 0B 92 1E F9 85 B7 A2 96 01 33 C9 45 01 CD [19:24:09]CheckFolder [19:24:09]dirname=/storage/ofd_packets [19:24:09]CheckFolder done [19:24:09]ProducePacketName [19:24:09]name=ofd_packets/00123312 [19:24:09]NVStorageSaveData ofd_packets/00123312 [19:24:09]File name is /storage/ofd_packets/00123312 [19:24:09]Write 301 bytes [19:24:09]NVStorageSaveData done [19:24:09]OFDSenderStorePacket done [19:24:09]KKMCreateOFDPacket done [19:24:09]NVStorageSaveData kkm_last_timestamp [19:24:09]File name is /storage/kkm_last_timestamp [19:24:09]Write 4 bytes [19:24:09]NVStorageSaveData done [19:24:09]ExternCall_PrintAddStr [19:24:09]wPrintStart [19:24:09]Write to MH i2c: 01 00 00 94 77 0B [19:24:09]Write i2c OK [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: 01 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: 01 07 00 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: 01 07 00 94 77 00 00 00 00 00 FF 0F 20 [19:24:09]RasterBufferAndPrint [19:24:09]line Счет N : (1)718142 [19:24:09]line ИНН: 02508201610067 [19:24:09]line Контрольно-Кассовый Чек [19:24:09]line ПРОДАЖА [19:24:09]line ТРК (МРК, ГНК) : 32 [19:24:09]line Товар: 2710124130 [19:24:09]line Аи-92-К-4 [19:24:09]line 4.010 * 67.40 [19:24:09]line = 270.27 [19:24:09]line НДС 12% НСП 1% [19:24:09]line > о реализуемом товаре [19:24:09]line ОКРУГЛЕНИЕ: -0.27 [19:24:09]line ИТОГО: 270.00 [19:24:09]line Внесено: 270.00 [19:24:09]line СДАЧА: 0.00 [19:24:09]line НСП 1% : 2.39 [19:24:09]line НДС 12% : 28.70 [19:24:09]line Наличными: 270.00 [19:24:09]line Безнал.: 0.00 [19:24:09]line Место: АЗС № 64 "Партнер Нефть" [19:24:09]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:24:09]line СНО: Общий режим [19:24:09]line Чек 166 26.11.2024 19:24 [19:24:09]line Смена: 557 ФФД: 1.0 [19:24:09]line ЗНМ: 0300000033 [19:24:09]line РНМ: 0000000000092681 [19:24:09]line Версия ККМ: 001 [19:24:09]line ФМ: 0000000000874881 [19:24:09]line ФД: 123312 [19:24:09]line ФПД: 12722212799927 [19:24:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T192419&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123312&fm=12722212799927&tin=02508201610067®Number=0000000000092681&sum=27000 [19:24:09]OFD Sender: Processing packet 123312 [packets to send 7, broken 6] [19:24:09]ProducePacketName [19:24:09]name=ofd_packets/00123312 [19:24:09]OFD Sender: To server: pG, [19:24:09]CommunicateWithHost lk.salyk.kg:30040 [19:24:09]ConnectInit lk.salyk.kg [19:24:09]written 0, free lines is 4095 [19:24:09]Connected sock=10 [19:24:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 C1 0B 07 01 F5 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 93 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 63 20 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B0 E1 01 00 35 04 06 00 0B 92 1E F9 85 B7 A2 96 01 33 C9 45 01 CD [19:24:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 FB 23 47 00 D5 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B0 E1 01 00 F4 03 04 00 25 CC 45 67 B6 04 01 00 00 38 7E 43 D7 0D 6E B6 29 [19:24:09]CommunicateWithHost err = 0 [19:24:09]CheckOFDResponse [19:24:09]1017 (14) - 77093643461234 [19:24:09]1041 (16) - 0000000000874881 [19:24:09]1040 (4) - 123312 [19:24:09]1012 (4) - 26.11.2024 13:24 [19:24:09]1206 (1) - 0 [19:24:09]OFD Sender: Remove packet 123312 [19:24:09]ProducePacketName [19:24:09]name=ofd_packets/00123312 [19:24:09]NVStorageDeleteData [19:24:10]Write to MH i2c: 01 00 00 BF 77 36 [19:24:10]Write i2c OK [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: 01 [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: 01 07 00 [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: 01 07 00 BF 77 00 00 00 00 00 54 0C 9D [19:24:10]RasterBufferAndPrint [19:24:10]line [19:24:10]line [19:24:10]line [19:24:10]line [19:24:10]line [19:24:10]written 0, free lines is 3158 [19:24:10]MH_Cut [19:24:10]Write to MH i2c: D1 01 00 C6 77 01 0F [19:24:10]Write i2c OK [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: D1 [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: D1 01 00 [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: D1 01 00 C6 77 00 0E [19:24:10]Write to MH i2c: 01 00 00 C7 77 3E [19:24:10]Write i2c OK [19:24:10]MH_I2C_Read... [19:24:10]OFD Sender: No OFD packet to send [19:24:11]*** Cut start [19:24:11]*** Partial cut [19:24:11]*** CUTSNS_PIN = 1 [19:24:11]*** CUTSNS_PIN = 0 [19:24:11]*** Brake cut motor [19:24:12]Read from MH i2c: 01 [19:24:12]MH_I2C_Read... [19:24:12]*** Stop cut motor [19:24:12]*** Cut end [19:24:12]Read from MH i2c: 01 07 00 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: 01 07 00 C7 77 00 00 00 00 00 FF 0F 53 [19:24:12]process_action close_receipt done [19:24:12]requested_data is exist [19:24:12]produce_requested_data [19:24:12]requested_item fm.sn is exist - process it [19:24:12]wFMCommunicate request_size=4 [19:24:12]MH_SAM_APDU [19:24:12]CAPDU: 80 11 00 00 [19:24:12]Write to MH i2c: E2 08 00 C8 77 80 11 00 00 00 00 00 00 B9 [19:24:12]Write i2c OK [19:24:12]MH_I2C_Read... [19:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:12]Read from MH i2c: E2 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 17 00 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 17 00 C8 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 10 [19:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:24:12]wFMCommunicate OK [19:24:12]requested_item fd.num is exist - process it [19:24:12]SAM_PROTO_GetFieldsCounters [19:24:12]wFMCommunicate request_size=4 [19:24:12]MH_SAM_APDU [19:24:12]CAPDU: 80 13 00 00 [19:24:12]Write to MH i2c: E2 08 00 C9 77 80 13 00 00 00 00 00 00 BC [19:24:12]Write i2c OK [19:24:12]MH_I2C_Read... [19:24:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:12]Read from MH i2c: E2 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 62 00 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 62 00 C9 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B0 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [19:24:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B0 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:12]wFMCommunicate OK [19:24:12]SAM_PROTO_GetFieldsCounters done [19:24:12]requested_item shift.num is exist - process it [19:24:12]requested_item shift.opened is exist - process it [19:24:12]req_shift_opened [19:24:12]FM_GetShiftState [19:24:12]SAM_PROTO_GetShiftState [19:24:12]wFMCommunicate request_size=4 [19:24:12]MH_SAM_APDU [19:24:12]CAPDU: 80 13 01 00 [19:24:12]Write to MH i2c: E2 08 00 CA 77 80 13 01 00 00 00 00 00 BE [19:24:12]Write i2c OK [19:24:12]MH_I2C_Read... [19:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:12]Read from MH i2c: E2 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 0E 00 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 0E 00 CA 77 00 09 00 01 98 11 45 67 00 00 00 00 90 00 1F [19:24:12]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:24:12]wFMCommunicate OK [19:24:12]SAM_PROTO_GetShiftState done [19:24:12]FM_GetShiftState done [19:24:12]req_shift_opened done [19:24:12]requested_item shift.open_date is exist - process it [19:24:12]req_shift_open_date [19:24:12]req_shift_open_date done [19:24:12]produce_requested_data done [19:24:12]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123312,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [19:24:12]process_action_free close_receipt [19:24:12]json_value_free [19:24:12]json_value_free done [19:24:12]process_json_proto returns [19:24:12]Send response to host [19:24:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123312,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [19:24:12]free response buf [19:24:12]execute_script done [19:24:12]execute_script returns [19:24:12]free content buf [19:24:12]Sock 7.Close socket [19:24:12]Sock 7.Thread stoped [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:34]accept exits with 9 [19:26:34]New connection [19:26:34]New thread 3066580324 created [19:26:34]Thread 3066723684 joined [19:26:34]Waiting for new connection... [19:26:34] Sock 9.Parse request [19:26:34]Sock 9.Check first char [19:26:34]Sock 9.First char is OK [19:26:34]request: POST /json_proto HTTP/1.0 [19:26:34]Method: POST [19:26:34]URL: /json_proto [19:26:34]Method is POST - this is cgi request [19:26:34]url: /json_proto [19:26:34]query_string will be loaded in cgi processing [19:26:34]execute_cgi json_proto POST (null) [19:26:34]execute_cgi path=json_proto method=POST [19:26:34]POST find Content-Length [19:26:34]Host: 172.17.37.4:8080 [19:26:34]Content-Length: 677 [19:26:34]Content-Type: application/json [19:26:34] [19:26:34]POST finish read [19:26:34]Found Content-Length = 677 [19:26:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:34]execute_script... [19:26:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:34]POST & json_proto [19:26:34]process_json_proto [19:26:34]json parsed OK: [19:26:34]protocol is kg_v1.0 [19:26:34]action value=close_receipt [19:26:34]process_action close_receipt [19:26:34]cmd_close_receipt [19:26:34]MH_GetDate [19:26:34]Write to MH i2c: F0 00 00 CB 77 31 [19:26:34]Write i2c OK [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: F0 [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: F0 09 00 [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: F0 09 00 CB 77 00 F6 20 46 67 B8 5A 43 67 B9 [19:26:34]GetLastDocTimeStamp 1732649059 [19:26:34]current date 1732649206 [19:26:34]FM_GetShiftState [19:26:34]SAM_PROTO_GetShiftState [19:26:34]wFMCommunicate request_size=4 [19:26:34]MH_SAM_APDU [19:26:34]CAPDU: 80 13 01 00 [19:26:34]Write to MH i2c: E2 08 00 CC 77 80 13 01 00 00 00 00 00 C0 [19:26:34]Write i2c OK [19:26:34]MH_I2C_Read... [19:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:34]Read from MH i2c: E2 [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: E2 0E 00 [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: E2 0E 00 CC 77 00 09 00 01 98 11 45 67 00 00 00 00 90 00 21 [19:26:34]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:26:34]wFMCommunicate OK [19:26:34]SAM_PROTO_GetShiftState done [19:26:34]FM_GetShiftState done [19:26:34]opened in 1732579736 [19:26:34]opened+sec_in_day 1732666136 [19:26:34]quantity*price = 50010 [19:26:34]sum+1 = 50012 [19:26:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 167 26.11.2024 19:26 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123313 ФПД: 126141382289585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T192646&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123313&fm=126141382289585&tin=02508201610067®Number=0000000000092681&sum=50000 [19:26:35]StoreToDocumentArchive [19:26:35]shift 557 fd 123313 [19:26:35]save to /storage/0557/doc_00123313 [19:26:35]save last doc name /storage/0557/doc_00123313 to /storage/kkm_last_doc_name [19:26:35]save OK [19:26:35]Clear old archive folders... [19:26:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:35]tlvbuf is 021A5AD0 [19:26:35]SAM_PROTO_ClearQueue [19:26:35]wFMCommunicate request_size=4 [19:26:35]MH_SAM_APDU [19:26:35]CAPDU: 80 09 00 00 [19:26:35]Write to MH i2c: E2 08 00 D9 77 80 09 00 00 00 00 00 00 C2 [19:26:35]Write i2c OK [19:26:35]MH_I2C_Read... [19:26:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:35]Read from MH i2c: E2 [19:26:35]MH_I2C_Read... [19:26:35]Read from MH i2c: E2 03 00 [19:26:35]MH_I2C_Read... [19:26:35]Read from MH i2c: E2 03 00 D9 77 00 90 00 C4 [19:26:35]RAPDU: 90 00 [19:26:35]wFMCommunicate OK [19:26:35]SAM_PROTO_ClearQueue done [19:26:35]KKMCreateOFDPacket [19:26:35]OFDProtocolAddRootSTLVToBuf [19:26:35]FM_MakeSignedData [19:26:35]FM_MakeSignedData [19:26:35]SAM_PROTO_SignData [19:26:35]wFMCommunicate request_size=4 [19:26:35]MH_SAM_APDU [19:26:35]CAPDU: 80 0D 01 02 [19:26:35]Write to MH i2c: E2 08 00 DA 77 80 0D 01 02 00 00 00 00 CA [19:26:35]Write i2c OK [19:26:35]MH_I2C_Read... [19:26:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:35]Read from MH i2c: E2 [19:26:35]MH_I2C_Read... [19:26:35]Read from MH i2c: E2 03 00 [19:26:35]MH_I2C_Read... [19:26:35]Read from MH i2c: E2 03 00 DA 77 00 90 00 C5 [19:26:35]RAPDU: 90 00 [19:26:35]wFMCommunicate OK [19:26:35]wFMCommunicate request_size=255 [19:26:35]MH_SAM_APDU [19:26:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 F6 20 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B1 E1 01 00 35 04 06 00 72 [19:26:35]Write to MH i2c: E2 02 01 DB 77 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 F6 20 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B1 E1 01 00 35 04 06 00 72 00 00 CF [19:26:35]Write i2c OK [19:26:35]MH_I2C_Read... [19:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:36]Read from MH i2c: E2 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 03 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 03 00 DB 77 00 90 00 C6 [19:26:36]RAPDU: 90 00 [19:26:36]wFMCommunicate OK [19:26:36]wFMCommunicate request_size=10 [19:26:36]MH_SAM_APDU [19:26:36]CAPDU: 80 0D 02 02 05 B9 94 48 68 B1 [19:26:36]Write to MH i2c: E2 0D 00 DC 77 80 0D 02 02 05 00 B9 94 48 68 B1 00 00 85 [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:36]Read from MH i2c: E2 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 03 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 03 00 DC 77 00 90 00 C7 [19:26:36]RAPDU: 90 00 [19:26:36]wFMCommunicate OK [19:26:36]wFMCommunicate request_size=4 [19:26:36]MH_SAM_APDU [19:26:36]CAPDU: 80 0D 03 02 [19:26:36]Write to MH i2c: E2 08 00 DD 77 80 0D 03 02 00 00 00 00 CF [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:36]Read from MH i2c: E2 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 0B 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 0B 00 DD 77 00 65 A4 5E 76 50 5A 45 17 90 00 B3 [19:26:36]RAPDU: 65 A4 5E 76 50 5A 45 17 90 00 [19:26:36]wFMCommunicate OK [19:26:36]SAM_PROTO_SignData done [19:26:36]FM_MakeSignedData done [19:26:36]CreateOFDProtocolMessage [19:26:36]wFMCommunicate request_size=4 [19:26:36]MH_SAM_APDU [19:26:36]CAPDU: 80 11 00 00 [19:26:36]Write to MH i2c: E2 08 00 DE 77 80 11 00 00 00 00 00 00 CF [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:36]Read from MH i2c: E2 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 17 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 17 00 DE 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 26 [19:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:26:36]wFMCommunicate OK [19:26:36]CreateOFDProtocolMessage done [19:26:36]OFDSenderStorePacket 123313 [19:26:36]StoreOFDPacket docnum=123313 [19:26:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D4 6C 07 01 B0 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 F6 20 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B1 E1 01 00 35 04 06 00 72 B9 94 48 68 B1 65 A4 5E 76 50 5A 45 17 [19:26:36]CheckFolder [19:26:36]dirname=/storage/ofd_packets [19:26:36]CheckFolder done [19:26:36]ProducePacketName [19:26:36]name=ofd_packets/00123313 [19:26:36]NVStorageSaveData ofd_packets/00123313 [19:26:36]File name is /storage/ofd_packets/00123313 [19:26:36]Write 301 bytes [19:26:36]NVStorageSaveData done [19:26:36]OFDSenderStorePacket done [19:26:36]KKMCreateOFDPacket done [19:26:36]NVStorageSaveData kkm_last_timestamp [19:26:36]File name is /storage/kkm_last_timestamp [19:26:36]Write 4 bytes [19:26:36]NVStorageSaveData done [19:26:36]ExternCall_PrintAddStr [19:26:36]wPrintStart [19:26:36]Write to MH i2c: 01 00 00 DF 77 56 [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: 01 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: 01 07 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: 01 07 00 DF 77 00 00 00 00 00 FF 0F 6B [19:26:36]RasterBufferAndPrint [19:26:36]line Счет N : (1)718143 [19:26:36]line ИНН: 02508201610067 [19:26:36]line Контрольно-Кассовый Чек [19:26:36]line ПРОДАЖА [19:26:36]line ТРК (МРК, ГНК) : 12 [19:26:36]line Товар: 2710124130 [19:26:36]line Аи-92-К-4 [19:26:36]line 7.420 * 67.40 [19:26:36]line = 500.11 [19:26:36]line НДС 12% НСП 1% [19:26:36]line > о реализуемом товаре [19:26:36]line ОКРУГЛЕНИЕ: -0.11 [19:26:36]line ИТОГО: 500.00 [19:26:36]line Внесено: 500.00 [19:26:36]line СДАЧА: 0.00 [19:26:36]line НСП 1% : 4.43 [19:26:36]line НДС 12% : 53.11 [19:26:36]line Наличными: 500.00 [19:26:36]line Безнал.: 0.00 [19:26:36]line Место: АЗС № 64 "Партнер Нефть" [19:26:36]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:26:36]line СНО: Общий режим [19:26:36]line Чек 167 26.11.2024 19:26 [19:26:36]line Смена: 557 ФФД: 1.0 [19:26:36]line ЗНМ: 0300000033 [19:26:36]line РНМ: 0000000000092681 [19:26:36]line Версия ККМ: 001 [19:26:36]line ФМ: 0000000000874881 [19:26:36]line ФД: 123313 [19:26:36]line ФПД: 126141382289585 [19:26:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T192646&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123313&fm=126141382289585&tin=02508201610067®Number=0000000000092681&sum=50000 [19:26:36]OFD Sender: Processing packet 123313 [packets to send 7, broken 6] [19:26:36]ProducePacketName [19:26:36]name=ofd_packets/00123313 [19:26:36]OFD Sender: To server: pG, [19:26:36]CommunicateWithHost lk.salyk.kg:30040 [19:26:36]ConnectInit lk.salyk.kg [19:26:36]written 0, free lines is 4095 [19:26:36]Connected sock=10 [19:26:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D4 6C 07 01 B0 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 F6 20 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B1 E1 01 00 35 04 06 00 72 B9 94 48 68 B1 65 A4 5E 76 50 5A 45 17 [19:26:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 94 5B 47 00 D6 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B1 E1 01 00 F4 03 04 00 B8 CC 45 67 B6 04 01 00 00 17 C4 9D 92 09 17 67 6F [19:26:36]CommunicateWithHost err = 0 [19:26:36]CheckOFDResponse [19:26:36]1017 (14) - 77093643461234 [19:26:36]1041 (16) - 0000000000874881 [19:26:36]1040 (4) - 123313 [19:26:36]1012 (4) - 26.11.2024 13:27 [19:26:36]1206 (1) - 0 [19:26:36]OFD Sender: Remove packet 123313 [19:26:36]ProducePacketName [19:26:36]name=ofd_packets/00123313 [19:26:36]NVStorageDeleteData [19:26:37]Write to MH i2c: 01 00 00 0A 78 82 [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: 01 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: 01 07 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: 01 07 00 0A 78 00 00 00 00 00 4B 0C E0 [19:26:37]RasterBufferAndPrint [19:26:37]line [19:26:37]line [19:26:37]line [19:26:37]line [19:26:37]line [19:26:37]written 0, free lines is 3151 [19:26:37]MH_Cut [19:26:37]Write to MH i2c: D1 01 00 11 78 01 5B [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: D1 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: D1 01 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: D1 01 00 11 78 00 5A [19:26:37]Write to MH i2c: 01 00 00 12 78 8A [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]OFD Sender: No OFD packet to send [19:26:38]*** Cut start [19:26:38]*** Partial cut [19:26:38]*** CUTSNS_PIN = 1 [19:26:38]*** CUTSNS_PIN = 0 [19:26:38]*** Brake cut motor [19:26:39]Read from MH i2c: 01 [19:26:39]MH_I2C_Read... [19:26:39]*** Stop cut motor [19:26:39]*** Cut end [19:26:39]Read from MH i2c: 01 07 00 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: 01 07 00 12 78 00 00 00 00 00 FF 0F 9F [19:26:39]process_action close_receipt done [19:26:39]requested_data is exist [19:26:39]produce_requested_data [19:26:39]requested_item fm.sn is exist - process it [19:26:39]wFMCommunicate request_size=4 [19:26:39]MH_SAM_APDU [19:26:39]CAPDU: 80 11 00 00 [19:26:39]Write to MH i2c: E2 08 00 13 78 80 11 00 00 00 00 00 00 05 [19:26:39]Write i2c OK [19:26:39]MH_I2C_Read... [19:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:39]Read from MH i2c: E2 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 17 00 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 17 00 13 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5C [19:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:26:39]wFMCommunicate OK [19:26:39]requested_item fd.num is exist - process it [19:26:39]SAM_PROTO_GetFieldsCounters [19:26:39]wFMCommunicate request_size=4 [19:26:39]MH_SAM_APDU [19:26:39]CAPDU: 80 13 00 00 [19:26:39]Write to MH i2c: E2 08 00 14 78 80 13 00 00 00 00 00 00 08 [19:26:39]Write i2c OK [19:26:39]MH_I2C_Read... [19:26:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:39]Read from MH i2c: E2 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 62 00 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 62 00 14 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B1 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [19:26:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B1 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:39]wFMCommunicate OK [19:26:39]SAM_PROTO_GetFieldsCounters done [19:26:39]requested_item shift.num is exist - process it [19:26:39]requested_item shift.opened is exist - process it [19:26:39]req_shift_opened [19:26:39]FM_GetShiftState [19:26:39]SAM_PROTO_GetShiftState [19:26:39]wFMCommunicate request_size=4 [19:26:39]MH_SAM_APDU [19:26:39]CAPDU: 80 13 01 00 [19:26:39]Write to MH i2c: E2 08 00 15 78 80 13 01 00 00 00 00 00 0A [19:26:39]Write i2c OK [19:26:39]MH_I2C_Read... [19:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:39]Read from MH i2c: E2 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 0E 00 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 0E 00 15 78 00 09 00 01 98 11 45 67 00 00 00 00 90 00 6B [19:26:39]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:26:39]wFMCommunicate OK [19:26:39]SAM_PROTO_GetShiftState done [19:26:39]FM_GetShiftState done [19:26:39]req_shift_opened done [19:26:39]requested_item shift.open_date is exist - process it [19:26:39]req_shift_open_date [19:26:39]req_shift_open_date done [19:26:39]produce_requested_data done [19:26:39]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123313,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [19:26:39]process_action_free close_receipt [19:26:39]json_value_free [19:26:39]json_value_free done [19:26:39]process_json_proto returns [19:26:39]Send response to host [19:26:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123313,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [19:26:39]free response buf [19:26:39]execute_script done [19:26:39]execute_script returns [19:26:39]free content buf [19:26:39]Sock 9.Close socket [19:26:39]Sock 9.Thread stoped [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:22]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:22]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:57]OFD Sender: No OFD packet to send [19:33:02]OFD Sender: No OFD packet to send [19:33:04]accept exits with 7 [19:33:04]New connection [19:33:04]New thread 3066723684 created [19:33:04]Thread 3066580324 joined [19:33:04]Waiting for new connection... [19:33:04] Sock 7.Parse request [19:33:04]Sock 7.Check first char [19:33:04]Sock 7.First char is OK [19:33:04]request: POST /json_proto HTTP/1.0 [19:33:04]Method: POST [19:33:04]URL: /json_proto [19:33:04]Method is POST - this is cgi request [19:33:04]url: /json_proto [19:33:04]query_string will be loaded in cgi processing [19:33:04]execute_cgi json_proto POST (null) [19:33:04]execute_cgi path=json_proto method=POST [19:33:04]POST find Content-Length [19:33:04]Host: 172.17.37.4:8080 [19:33:04]Content-Length: 677 [19:33:04]Content-Type: application/json [19:33:04] [19:33:04]POST finish read [19:33:04]Found Content-Length = 677 [19:33:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:04]execute_script... [19:33:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:04]POST & json_proto [19:33:04]process_json_proto [19:33:04]json parsed OK: [19:33:04]protocol is kg_v1.0 [19:33:04]action value=close_receipt [19:33:04]process_action close_receipt [19:33:04]cmd_close_receipt [19:33:04]MH_GetDate [19:33:04]Write to MH i2c: F0 00 00 16 78 7D [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: F0 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: F0 09 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: F0 09 00 16 78 00 7C 22 46 67 B8 5A 43 67 8D [19:33:04]GetLastDocTimeStamp 1732649206 [19:33:04]current date 1732649596 [19:33:04]FM_GetShiftState [19:33:04]SAM_PROTO_GetShiftState [19:33:04]wFMCommunicate request_size=4 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 13 01 00 [19:33:04]Write to MH i2c: E2 08 00 17 78 80 13 01 00 00 00 00 00 0C [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 0E 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 0E 00 17 78 00 09 00 01 98 11 45 67 00 00 00 00 90 00 6D [19:33:04]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:33:04]wFMCommunicate OK [19:33:04]SAM_PROTO_GetShiftState done [19:33:04]FM_GetShiftState done [19:33:04]opened in 1732579736 [19:33:04]opened+sec_in_day 1732666136 [19:33:04]quantity*price = 20017 [19:33:04]sum+1 = 20019 [19:33:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 168 26.11.2024 19:33 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123314 ФПД: 250533603790636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T193316&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123314&fm=250533603790636&tin=02508201610067®Number=0000000000092681&sum=20000 [19:33:05]StoreToDocumentArchive [19:33:05]shift 557 fd 123314 [19:33:05]save to /storage/0557/doc_00123314 [19:33:05]save last doc name /storage/0557/doc_00123314 to /storage/kkm_last_doc_name [19:33:05]save OK [19:33:05]Clear old archive folders... [19:33:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:05]tlvbuf is 02166A10 [19:33:05]SAM_PROTO_ClearQueue [19:33:05]wFMCommunicate request_size=4 [19:33:05]MH_SAM_APDU [19:33:05]CAPDU: 80 09 00 00 [19:33:05]Write to MH i2c: E2 08 00 24 78 80 09 00 00 00 00 00 00 0E [19:33:05]Write i2c OK [19:33:05]MH_I2C_Read... [19:33:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:05]Read from MH i2c: E2 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: E2 03 00 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: E2 03 00 24 78 00 90 00 10 [19:33:05]RAPDU: 90 00 [19:33:05]wFMCommunicate OK [19:33:05]SAM_PROTO_ClearQueue done [19:33:05]KKMCreateOFDPacket [19:33:05]OFDProtocolAddRootSTLVToBuf [19:33:05]FM_MakeSignedData [19:33:05]FM_MakeSignedData [19:33:05]SAM_PROTO_SignData [19:33:05]wFMCommunicate request_size=4 [19:33:05]MH_SAM_APDU [19:33:05]CAPDU: 80 0D 01 02 [19:33:05]Write to MH i2c: E2 08 00 25 78 80 0D 01 02 00 00 00 00 16 [19:33:05]Write i2c OK [19:33:05]MH_I2C_Read... [19:33:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:05]Read from MH i2c: E2 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: E2 03 00 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: E2 03 00 25 78 00 90 00 11 [19:33:05]RAPDU: 90 00 [19:33:05]wFMCommunicate OK [19:33:05]wFMCommunicate request_size=255 [19:33:05]MH_SAM_APDU [19:33:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 7C 22 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B2 E1 01 00 35 04 06 00 E3 [19:33:05]Write to MH i2c: E2 02 01 26 78 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 7C 22 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B2 E1 01 00 35 04 06 00 E3 00 00 33 [19:33:05]Write i2c OK [19:33:05]MH_I2C_Read... [19:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:05]Read from MH i2c: E2 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: E2 03 00 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: E2 03 00 26 78 00 90 00 12 [19:33:05]RAPDU: 90 00 [19:33:05]wFMCommunicate OK [19:33:05]wFMCommunicate request_size=10 [19:33:05]MH_SAM_APDU [19:33:05]CAPDU: 80 0D 02 02 05 DB E6 75 4F 2C [19:33:05]Write to MH i2c: E2 0D 00 27 78 80 0D 02 02 05 00 DB E6 75 4F 2C 00 00 D4 [19:33:05]Write i2c OK [19:33:05]MH_I2C_Read... [19:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:05]Read from MH i2c: E2 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: E2 03 00 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: E2 03 00 27 78 00 90 00 13 [19:33:05]RAPDU: 90 00 [19:33:05]wFMCommunicate OK [19:33:05]wFMCommunicate request_size=4 [19:33:05]MH_SAM_APDU [19:33:05]CAPDU: 80 0D 03 02 [19:33:05]Write to MH i2c: E2 08 00 28 78 80 0D 03 02 00 00 00 00 1B [19:33:05]Write i2c OK [19:33:05]MH_I2C_Read... [19:33:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:06]Read from MH i2c: E2 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: E2 0B 00 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: E2 0B 00 28 78 00 68 39 49 70 C3 8D BF 0E 90 00 93 [19:33:06]RAPDU: 68 39 49 70 C3 8D BF 0E 90 00 [19:33:06]wFMCommunicate OK [19:33:06]SAM_PROTO_SignData done [19:33:06]FM_MakeSignedData done [19:33:06]CreateOFDProtocolMessage [19:33:06]wFMCommunicate request_size=4 [19:33:06]MH_SAM_APDU [19:33:06]CAPDU: 80 11 00 00 [19:33:06]Write to MH i2c: E2 08 00 29 78 80 11 00 00 00 00 00 00 1B [19:33:06]Write i2c OK [19:33:06]MH_I2C_Read... [19:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:06]Read from MH i2c: E2 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: E2 17 00 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: E2 17 00 29 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 72 [19:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:33:06]wFMCommunicate OK [19:33:06]CreateOFDProtocolMessage done [19:33:06]OFDSenderStorePacket 123314 [19:33:06]StoreOFDPacket docnum=123314 [19:33:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 72 A6 07 01 E9 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 7C 22 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B2 E1 01 00 35 04 06 00 E3 DB E6 75 4F 2C 68 39 49 70 C3 8D BF 0E [19:33:06]CheckFolder [19:33:06]dirname=/storage/ofd_packets [19:33:06]CheckFolder done [19:33:06]ProducePacketName [19:33:06]name=ofd_packets/00123314 [19:33:06]NVStorageSaveData ofd_packets/00123314 [19:33:06]File name is /storage/ofd_packets/00123314 [19:33:06]Write 301 bytes [19:33:06]NVStorageSaveData done [19:33:06]OFDSenderStorePacket done [19:33:06]KKMCreateOFDPacket done [19:33:06]NVStorageSaveData kkm_last_timestamp [19:33:06]File name is /storage/kkm_last_timestamp [19:33:06]Write 4 bytes [19:33:06]NVStorageSaveData done [19:33:06]ExternCall_PrintAddStr [19:33:06]wPrintStart [19:33:06]Write to MH i2c: 01 00 00 2A 78 A2 [19:33:06]Write i2c OK [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: 01 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: 01 07 00 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: 01 07 00 2A 78 00 00 00 00 00 FF 0F B7 [19:33:06]RasterBufferAndPrint [19:33:06]line Счет N : (1)718144 [19:33:06]line ИНН: 02508201610067 [19:33:06]line Контрольно-Кассовый Чек [19:33:06]line ПРОДАЖА [19:33:06]line ТРК (МРК, ГНК) : 22 [19:33:06]line Товар: 2710124130 [19:33:06]line Аи-92-К-4 [19:33:06]line 2.970 * 67.40 [19:33:06]line = 200.18 [19:33:06]line НДС 12% НСП 1% [19:33:06]line > о реализуемом товаре [19:33:06]line ОКРУГЛЕНИЕ: -0.18 [19:33:06]line ИТОГО: 200.00 [19:33:06]line Внесено: 200.00 [19:33:06]line СДАЧА: 0.00 [19:33:06]line НСП 1% : 1.77 [19:33:06]line НДС 12% : 21.26 [19:33:06]line Наличными: 200.00 [19:33:06]line Безнал.: 0.00 [19:33:06]line Место: АЗС № 64 "Партнер Нефть" [19:33:06]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:33:06]line СНО: Общий режим [19:33:06]line Чек 168 26.11.2024 19:33 [19:33:06]line Смена: 557 ФФД: 1.0 [19:33:06]line ЗНМ: 0300000033 [19:33:06]line РНМ: 0000000000092681 [19:33:06]line Версия ККМ: 001 [19:33:06]line ФМ: 0000000000874881 [19:33:06]line ФД: 123314 [19:33:06]line ФПД: 250533603790636 [19:33:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T193316&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123314&fm=250533603790636&tin=02508201610067®Number=0000000000092681&sum=20000 [19:33:06]OFD Sender: Processing packet 123314 [packets to send 7, broken 6] [19:33:06]ProducePacketName [19:33:06]name=ofd_packets/00123314 [19:33:06]OFD Sender: To server: pG, [19:33:06]CommunicateWithHost lk.salyk.kg:30040 [19:33:06]ConnectInit lk.salyk.kg [19:33:06]written 0, free lines is 4095 [19:33:06]Connected sock=10 [19:33:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 72 A6 07 01 E9 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 7C 22 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B2 E1 01 00 35 04 06 00 E3 DB E6 75 4F 2C 68 39 49 70 C3 8D BF 0E [19:33:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 58 9B 47 00 8C BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B2 E1 01 00 F4 03 04 00 3E CE 45 67 B6 04 01 00 00 02 C9 5B 0F A9 9C 32 D9 [19:33:06]CommunicateWithHost err = 0 [19:33:06]CheckOFDResponse [19:33:06]1017 (14) - 77093643461234 [19:33:06]1041 (16) - 0000000000874881 [19:33:06]1040 (4) - 123314 [19:33:06]1012 (4) - 26.11.2024 13:33 [19:33:06]1206 (1) - 0 [19:33:06]OFD Sender: Remove packet 123314 [19:33:06]ProducePacketName [19:33:06]name=ofd_packets/00123314 [19:33:06]NVStorageDeleteData [19:33:06]Write to MH i2c: 01 00 00 55 78 CD [19:33:06]Write i2c OK [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: 01 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: 01 07 00 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: 01 07 00 55 78 00 00 00 00 00 4B 0C 2B [19:33:06]RasterBufferAndPrint [19:33:06]line [19:33:06]line [19:33:06]line [19:33:06]line [19:33:06]line [19:33:06]written 0, free lines is 3151 [19:33:06]MH_Cut [19:33:06]Write to MH i2c: D1 01 00 5C 78 01 A6 [19:33:06]Write i2c OK [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: D1 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: D1 01 00 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: D1 01 00 5C 78 00 A5 [19:33:06]Write to MH i2c: 01 00 00 5D 78 D5 [19:33:06]Write i2c OK [19:33:06]MH_I2C_Read... [19:33:07]OFD Sender: No OFD packet to send [19:33:08]*** Cut start [19:33:08]*** Partial cut [19:33:08]*** CUTSNS_PIN = 1 [19:33:08]*** CUTSNS_PIN = 0 [19:33:08]*** Brake cut motor [19:33:08]Read from MH i2c: 01 [19:33:08]MH_I2C_Read... [19:33:08]*** Stop cut motor [19:33:08]*** Cut end [19:33:08]Read from MH i2c: 01 07 00 [19:33:08]MH_I2C_Read... [19:33:08]Read from MH i2c: 01 07 00 5D 78 00 00 00 00 00 FF 0F EA [19:33:08]process_action close_receipt done [19:33:08]requested_data is exist [19:33:08]produce_requested_data [19:33:08]requested_item fm.sn is exist - process it [19:33:08]wFMCommunicate request_size=4 [19:33:08]MH_SAM_APDU [19:33:08]CAPDU: 80 11 00 00 [19:33:08]Write to MH i2c: E2 08 00 5E 78 80 11 00 00 00 00 00 00 50 [19:33:08]Write i2c OK [19:33:08]MH_I2C_Read... [19:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:08]Read from MH i2c: E2 [19:33:08]MH_I2C_Read... [19:33:08]Read from MH i2c: E2 17 00 [19:33:08]MH_I2C_Read... [19:33:08]Read from MH i2c: E2 17 00 5E 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A7 [19:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:33:08]wFMCommunicate OK [19:33:08]requested_item fd.num is exist - process it [19:33:08]SAM_PROTO_GetFieldsCounters [19:33:08]wFMCommunicate request_size=4 [19:33:08]MH_SAM_APDU [19:33:08]CAPDU: 80 13 00 00 [19:33:08]Write to MH i2c: E2 08 00 5F 78 80 13 00 00 00 00 00 00 53 [19:33:08]Write i2c OK [19:33:08]MH_I2C_Read... [19:33:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:09]Read from MH i2c: E2 [19:33:09]MH_I2C_Read... [19:33:09]Read from MH i2c: E2 62 00 [19:33:09]MH_I2C_Read... [19:33:09]Read from MH i2c: E2 62 00 5F 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B2 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [19:33:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B2 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:09]wFMCommunicate OK [19:33:09]SAM_PROTO_GetFieldsCounters done [19:33:09]requested_item shift.num is exist - process it [19:33:09]requested_item shift.opened is exist - process it [19:33:09]req_shift_opened [19:33:09]FM_GetShiftState [19:33:09]SAM_PROTO_GetShiftState [19:33:09]wFMCommunicate request_size=4 [19:33:09]MH_SAM_APDU [19:33:09]CAPDU: 80 13 01 00 [19:33:09]Write to MH i2c: E2 08 00 60 78 80 13 01 00 00 00 00 00 55 [19:33:09]Write i2c OK [19:33:09]MH_I2C_Read... [19:33:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:09]Read from MH i2c: E2 [19:33:09]MH_I2C_Read... [19:33:09]Read from MH i2c: E2 0E 00 [19:33:09]MH_I2C_Read... [19:33:09]Read from MH i2c: E2 0E 00 60 78 00 09 00 01 98 11 45 67 00 00 00 00 90 00 B6 [19:33:09]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:33:09]wFMCommunicate OK [19:33:09]SAM_PROTO_GetShiftState done [19:33:09]FM_GetShiftState done [19:33:09]req_shift_opened done [19:33:09]requested_item shift.open_date is exist - process it [19:33:09]req_shift_open_date [19:33:09]req_shift_open_date done [19:33:09]produce_requested_data done [19:33:09]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123314,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [19:33:09]process_action_free close_receipt [19:33:09]json_value_free [19:33:09]json_value_free done [19:33:09]process_json_proto returns [19:33:09]Send response to host [19:33:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123314,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [19:33:09]free response buf [19:33:09]execute_script done [19:33:09]execute_script returns [19:33:09]free content buf [19:33:09]Sock 7.Close socket [19:33:09]Sock 7.Thread stoped [19:33:12]OFD Sender: No OFD packet to send [19:33:17]OFD Sender: No OFD packet to send [19:33:22]OFD Sender: No OFD packet to send [19:33:27]OFD Sender: No OFD packet to send [19:33:32]OFD Sender: No OFD packet to send [19:33:37]OFD Sender: No OFD packet to send [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:52]OFD Sender: No OFD packet to send [19:33:57]OFD Sender: No OFD packet to send [19:34:02]OFD Sender: No OFD packet to send [19:34:07]OFD Sender: No OFD packet to send [19:34:12]OFD Sender: No OFD packet to send [19:34:17]OFD Sender: No OFD packet to send [19:34:22]OFD Sender: No OFD packet to send [19:34:27]OFD Sender: No OFD packet to send [19:34:32]OFD Sender: No OFD packet to send [19:34:37]OFD Sender: No OFD packet to send [19:34:42]OFD Sender: No OFD packet to send [19:34:47]OFD Sender: No OFD packet to send [19:34:48]accept exits with 9 [19:34:48]New connection [19:34:48]New thread 3066580324 created [19:34:48]Thread 3066723684 joined [19:34:48]Waiting for new connection... [19:34:48] Sock 9.Parse request [19:34:48]Sock 9.Check first char [19:34:48]Sock 9.First char is OK [19:34:48]request: POST /json_proto HTTP/1.0 [19:34:48]Method: POST [19:34:48]URL: /json_proto [19:34:48]Method is POST - this is cgi request [19:34:48]url: /json_proto [19:34:48]query_string will be loaded in cgi processing [19:34:48]execute_cgi json_proto POST (null) [19:34:48]execute_cgi path=json_proto method=POST [19:34:48]POST find Content-Length [19:34:48]Host: 172.17.37.4:8080 [19:34:48]Content-Length: 677 [19:34:48]Content-Type: application/json [19:34:48] [19:34:48]POST finish read [19:34:48]Found Content-Length = 677 [19:34:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:48]execute_script... [19:34:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 5.940, "sum" : 400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:48]POST & json_proto [19:34:48]process_json_proto [19:34:48]json parsed OK: [19:34:48]protocol is kg_v1.0 [19:34:48]action value=close_receipt [19:34:48]process_action close_receipt [19:34:48]cmd_close_receipt [19:34:48]MH_GetDate [19:34:48]Write to MH i2c: F0 00 00 61 78 C8 [19:34:48]Write i2c OK [19:34:48]MH_I2C_Read... [19:34:48]Read from MH i2c: F0 [19:34:48]MH_I2C_Read... [19:34:48]Read from MH i2c: F0 09 00 [19:34:48]MH_I2C_Read... [19:34:48]Read from MH i2c: F0 09 00 61 78 00 E4 22 46 67 B8 5A 43 67 40 [19:34:48]GetLastDocTimeStamp 1732649596 [19:34:48]current date 1732649700 [19:34:48]FM_GetShiftState [19:34:48]SAM_PROTO_GetShiftState [19:34:48]wFMCommunicate request_size=4 [19:34:48]MH_SAM_APDU [19:34:48]CAPDU: 80 13 01 00 [19:34:48]Write to MH i2c: E2 08 00 62 78 80 13 01 00 00 00 00 00 57 [19:34:48]Write i2c OK [19:34:48]MH_I2C_Read... [19:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:48]Read from MH i2c: E2 [19:34:48]MH_I2C_Read... [19:34:48]Read from MH i2c: E2 0E 00 [19:34:48]MH_I2C_Read... [19:34:48]Read from MH i2c: E2 0E 00 62 78 00 09 00 01 98 11 45 67 00 00 00 00 90 00 B8 [19:34:48]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:34:48]wFMCommunicate OK [19:34:48]SAM_PROTO_GetShiftState done [19:34:48]FM_GetShiftState done [19:34:48]opened in 1732579736 [19:34:48]opened+sec_in_day 1732666136 [19:34:48]quantity*price = 40035 [19:34:48]sum+1 = 40037 [19:34:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 169 26.11.2024 19:35 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123315 ФПД: 223218968832725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T193500&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123315&fm=223218968832725&tin=02508201610067®Number=0000000000092681&sum=40000 [19:34:49]StoreToDocumentArchive [19:34:49]shift 557 fd 123315 [19:34:49]save to /storage/0557/doc_00123315 [19:34:49]save last doc name /storage/0557/doc_00123315 to /storage/kkm_last_doc_name [19:34:49]save OK [19:34:49]Clear old archive folders... [19:34:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:49]tlvbuf is 020B08C0 [19:34:49]SAM_PROTO_ClearQueue [19:34:49]wFMCommunicate request_size=4 [19:34:49]MH_SAM_APDU [19:34:49]CAPDU: 80 09 00 00 [19:34:49]Write to MH i2c: E2 08 00 6F 78 80 09 00 00 00 00 00 00 59 [19:34:49]Write i2c OK [19:34:49]MH_I2C_Read... [19:34:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:49]Read from MH i2c: E2 [19:34:49]MH_I2C_Read... [19:34:49]Read from MH i2c: E2 03 00 [19:34:49]MH_I2C_Read... [19:34:49]Read from MH i2c: E2 03 00 6F 78 00 90 00 5B [19:34:49]RAPDU: 90 00 [19:34:49]wFMCommunicate OK [19:34:49]SAM_PROTO_ClearQueue done [19:34:49]KKMCreateOFDPacket [19:34:49]OFDProtocolAddRootSTLVToBuf [19:34:49]FM_MakeSignedData [19:34:49]FM_MakeSignedData [19:34:49]SAM_PROTO_SignData [19:34:49]wFMCommunicate request_size=4 [19:34:49]MH_SAM_APDU [19:34:49]CAPDU: 80 0D 01 02 [19:34:49]Write to MH i2c: E2 08 00 70 78 80 0D 01 02 00 00 00 00 61 [19:34:49]Write i2c OK [19:34:49]MH_I2C_Read... [19:34:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:49]Read from MH i2c: E2 [19:34:49]MH_I2C_Read... [19:34:49]Read from MH i2c: E2 03 00 [19:34:49]MH_I2C_Read... [19:34:49]Read from MH i2c: E2 03 00 70 78 00 90 00 5C [19:34:49]RAPDU: 90 00 [19:34:49]wFMCommunicate OK [19:34:49]wFMCommunicate request_size=255 [19:34:49]MH_SAM_APDU [19:34:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E4 22 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B3 E1 01 00 35 04 06 00 CB [19:34:49]Write to MH i2c: E2 02 01 71 78 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 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E4 22 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B3 E1 01 00 35 04 06 00 CB 00 00 DA [19:34:49]Write i2c OK [19:34:49]MH_I2C_Read... [19:34:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:50]Read from MH i2c: E2 [19:34:50]MH_I2C_Read... [19:34:50]Read from MH i2c: E2 03 00 [19:34:50]MH_I2C_Read... [19:34:50]Read from MH i2c: E2 03 00 71 78 00 90 00 5D [19:34:50]RAPDU: 90 00 [19:34:50]wFMCommunicate OK [19:34:50]wFMCommunicate request_size=10 [19:34:50]MH_SAM_APDU [19:34:50]CAPDU: 80 0D 02 02 05 04 37 58 2A D5 [19:34:50]Write to MH i2c: E2 0D 00 72 78 80 0D 02 02 05 00 04 37 58 2A D5 00 00 00 [19:34:50]Write i2c OK [19:34:50]MH_I2C_Read... [19:34:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:50]Read from MH i2c: E2 [19:34:50]MH_I2C_Read... [19:34:50]Read from MH i2c: E2 03 00 [19:34:50]MH_I2C_Read... [19:34:50]Read from MH i2c: E2 03 00 72 78 00 90 00 5E [19:34:50]RAPDU: 90 00 [19:34:50]wFMCommunicate OK [19:34:50]wFMCommunicate request_size=4 [19:34:50]MH_SAM_APDU [19:34:50]CAPDU: 80 0D 03 02 [19:34:50]Write to MH i2c: E2 08 00 73 78 80 0D 03 02 00 00 00 00 66 [19:34:50]Write i2c OK [19:34:50]MH_I2C_Read... [19:34:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:50]Read from MH i2c: E2 [19:34:50]MH_I2C_Read... [19:34:50]Read from MH i2c: E2 0B 00 [19:34:50]MH_I2C_Read... [19:34:50]Read from MH i2c: E2 0B 00 73 78 00 04 89 04 54 7E 4D 39 79 90 00 C9 [19:34:50]RAPDU: 04 89 04 54 7E 4D 39 79 90 00 [19:34:50]wFMCommunicate OK [19:34:50]SAM_PROTO_SignData done [19:34:50]FM_MakeSignedData done [19:34:50]CreateOFDProtocolMessage [19:34:50]wFMCommunicate request_size=4 [19:34:50]MH_SAM_APDU [19:34:50]CAPDU: 80 11 00 00 [19:34:50]Write to MH i2c: E2 08 00 74 78 80 11 00 00 00 00 00 00 66 [19:34:50]Write i2c OK [19:34:50]MH_I2C_Read... [19:34:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:50]Read from MH i2c: E2 [19:34:50]MH_I2C_Read... [19:34:50]Read from MH i2c: E2 17 00 [19:34:50]MH_I2C_Read... [19:34:50]Read from MH i2c: E2 17 00 74 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BD [19:34:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:34:50]wFMCommunicate OK [19:34:50]CreateOFDProtocolMessage done [19:34:50]OFDSenderStorePacket 123315 [19:34:50]StoreOFDPacket docnum=123315 [19:34:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 ED 56 07 01 16 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E4 22 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B3 E1 01 00 35 04 06 00 CB 04 37 58 2A D5 04 89 04 54 7E 4D 39 79 [19:34:50]CheckFolder [19:34:50]dirname=/storage/ofd_packets [19:34:50]CheckFolder done [19:34:50]ProducePacketName [19:34:50]name=ofd_packets/00123315 [19:34:50]NVStorageSaveData ofd_packets/00123315 [19:34:50]File name is /storage/ofd_packets/00123315 [19:34:50]Write 301 bytes [19:34:50]NVStorageSaveData done [19:34:50]OFDSenderStorePacket done [19:34:50]KKMCreateOFDPacket done [19:34:50]NVStorageSaveData kkm_last_timestamp [19:34:50]File name is /storage/kkm_last_timestamp [19:34:50]Write 4 bytes [19:34:50]NVStorageSaveData done [19:34:50]ExternCall_PrintAddStr [19:34:50]wPrintStart [19:34:50]Write to MH i2c: 01 00 00 75 78 ED [19:34:50]Write i2c OK [19:34:50]MH_I2C_Read... [19:34:50]Read from MH i2c: 01 [19:34:50]MH_I2C_Read... [19:34:50]Read from MH i2c: 01 07 00 [19:34:50]MH_I2C_Read... [19:34:50]Read from MH i2c: 01 07 00 75 78 00 00 00 00 00 FF 0F 02 [19:34:50]RasterBufferAndPrint [19:34:50]line Счет N : (1)718145 [19:34:50]line ИНН: 02508201610067 [19:34:50]line Контрольно-Кассовый Чек [19:34:50]line ПРОДАЖА [19:34:50]line ТРК (МРК, ГНК) : 12 [19:34:50]line Товар: 2710124130 [19:34:50]line Аи-92-К-4 [19:34:50]line 5.940 * 67.40 [19:34:50]line = 400.36 [19:34:50]line НДС 12% НСП 1% [19:34:50]line > о реализуемом товаре [19:34:50]line ОКРУГЛЕНИЕ: -0.36 [19:34:50]line ИТОГО: 400.00 [19:34:50]line Внесено: 400.00 [19:34:50]line СДАЧА: 0.00 [19:34:50]line НСП 1% : 3.54 [19:34:50]line НДС 12% : 42.52 [19:34:50]line Наличными: 400.00 [19:34:50]line Безнал.: 0.00 [19:34:50]line Место: АЗС № 64 "Партнер Нефть" [19:34:50]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:34:50]line СНО: Общий режим [19:34:50]line Чек 169 26.11.2024 19:35 [19:34:50]line Смена: 557 ФФД: 1.0 [19:34:50]line ЗНМ: 0300000033 [19:34:50]line РНМ: 0000000000092681 [19:34:50]line Версия ККМ: 001 [19:34:50]line ФМ: 0000000000874881 [19:34:50]line ФД: 123315 [19:34:50]line ФПД: 223218968832725 [19:34:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T193500&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123315&fm=223218968832725&tin=02508201610067®Number=0000000000092681&sum=40000 [19:34:50]OFD Sender: Processing packet 123315 [packets to send 7, broken 6] [19:34:50]ProducePacketName [19:34:50]name=ofd_packets/00123315 [19:34:50]OFD Sender: To server: pG, [19:34:50]CommunicateWithHost lk.salyk.kg:30040 [19:34:50]ConnectInit lk.salyk.kg [19:34:50]written 0, free lines is 4095 [19:34:50]Connected sock=10 [19:34:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 ED 56 07 01 16 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 17 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 64 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E4 22 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B3 E1 01 00 35 04 06 00 CB 04 37 58 2A D5 04 89 04 54 7E 4D 39 79 [19:34:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 1B 77 47 00 FC 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B3 E1 01 00 F4 03 04 00 A6 CE 45 67 B6 04 01 00 00 4B 62 BF E8 61 43 C2 75 [19:34:50]CommunicateWithHost err = 0 [19:34:50]CheckOFDResponse [19:34:50]1017 (14) - 77093643461234 [19:34:50]1041 (16) - 0000000000874881 [19:34:50]1040 (4) - 123315 [19:34:50]1012 (4) - 26.11.2024 13:35 [19:34:50]1206 (1) - 0 [19:34:50]OFD Sender: Remove packet 123315 [19:34:50]ProducePacketName [19:34:50]name=ofd_packets/00123315 [19:34:50]NVStorageDeleteData [19:34:51]Write to MH i2c: 01 00 00 A0 78 18 [19:34:51]Write i2c OK [19:34:51]MH_I2C_Read... [19:34:51]Read from MH i2c: 01 [19:34:51]MH_I2C_Read... [19:34:51]Read from MH i2c: 01 07 00 [19:34:51]MH_I2C_Read... [19:34:51]Read from MH i2c: 01 07 00 A0 78 00 00 00 00 00 5B 0C 86 [19:34:51]RasterBufferAndPrint [19:34:51]line [19:34:51]line [19:34:51]line [19:34:51]line [19:34:51]line [19:34:51]written 0, free lines is 3166 [19:34:51]MH_Cut [19:34:51]Write to MH i2c: D1 01 00 A7 78 01 F1 [19:34:51]Write i2c OK [19:34:51]MH_I2C_Read... [19:34:51]Read from MH i2c: D1 [19:34:51]MH_I2C_Read... [19:34:51]Read from MH i2c: D1 01 00 [19:34:51]MH_I2C_Read... [19:34:51]Read from MH i2c: D1 01 00 A7 78 00 F0 [19:34:51]Write to MH i2c: 01 00 00 A8 78 20 [19:34:51]Write i2c OK [19:34:51]MH_I2C_Read... [19:34:51]OFD Sender: No OFD packet to send [19:34:52]*** Cut start [19:34:52]*** Partial cut [19:34:52]*** CUTSNS_PIN = 1 [19:34:52]*** CUTSNS_PIN = 0 [19:34:52]*** Brake cut motor [19:34:52]Read from MH i2c: 01 [19:34:53]MH_I2C_Read... [19:34:53]*** Stop cut motor [19:34:53]*** Cut end [19:34:53]Read from MH i2c: 01 07 00 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: 01 07 00 A8 78 00 00 00 00 00 FF 0F 35 [19:34:53]process_action close_receipt done [19:34:53]requested_data is exist [19:34:53]produce_requested_data [19:34:53]requested_item fm.sn is exist - process it [19:34:53]wFMCommunicate request_size=4 [19:34:53]MH_SAM_APDU [19:34:53]CAPDU: 80 11 00 00 [19:34:53]Write to MH i2c: E2 08 00 A9 78 80 11 00 00 00 00 00 00 9B [19:34:53]Write i2c OK [19:34:53]MH_I2C_Read... [19:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:53]Read from MH i2c: E2 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 17 00 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 17 00 A9 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F2 [19:34:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:34:53]wFMCommunicate OK [19:34:53]requested_item fd.num is exist - process it [19:34:53]SAM_PROTO_GetFieldsCounters [19:34:53]wFMCommunicate request_size=4 [19:34:53]MH_SAM_APDU [19:34:53]CAPDU: 80 13 00 00 [19:34:53]Write to MH i2c: E2 08 00 AA 78 80 13 00 00 00 00 00 00 9E [19:34:53]Write i2c OK [19:34:53]MH_I2C_Read... [19:34:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:53]Read from MH i2c: E2 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 62 00 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 62 00 AA 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B3 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [19:34:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B3 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:53]wFMCommunicate OK [19:34:53]SAM_PROTO_GetFieldsCounters done [19:34:53]requested_item shift.num is exist - process it [19:34:53]requested_item shift.opened is exist - process it [19:34:53]req_shift_opened [19:34:53]FM_GetShiftState [19:34:53]SAM_PROTO_GetShiftState [19:34:53]wFMCommunicate request_size=4 [19:34:53]MH_SAM_APDU [19:34:53]CAPDU: 80 13 01 00 [19:34:53]Write to MH i2c: E2 08 00 AB 78 80 13 01 00 00 00 00 00 A0 [19:34:53]Write i2c OK [19:34:53]MH_I2C_Read... [19:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:53]Read from MH i2c: E2 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 0E 00 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 0E 00 AB 78 00 09 00 01 98 11 45 67 00 00 00 00 90 00 01 [19:34:53]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:34:53]wFMCommunicate OK [19:34:53]SAM_PROTO_GetShiftState done [19:34:53]FM_GetShiftState done [19:34:53]req_shift_opened done [19:34:53]requested_item shift.open_date is exist - process it [19:34:53]req_shift_open_date [19:34:53]req_shift_open_date done [19:34:53]produce_requested_data done [19:34:53]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123315,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [19:34:53]process_action_free close_receipt [19:34:53]json_value_free [19:34:53]json_value_free done [19:34:53]process_json_proto returns [19:34:53]Send response to host [19:34:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123315,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [19:34:53]free response buf [19:34:53]execute_script done [19:34:53]execute_script returns [19:34:53]free content buf [19:34:53]Sock 9.Close socket [19:34:53]Sock 9.Thread stoped [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:51]OFD Sender: No OFD packet to send [19:42:56]OFD Sender: No OFD packet to send [19:43:01]OFD Sender: No OFD packet to send [19:43:06]OFD Sender: No OFD packet to send [19:43:11]OFD Sender: No OFD packet to send [19:43:16]OFD Sender: No OFD packet to send [19:43:21]OFD Sender: No OFD packet to send [19:43:26]OFD Sender: No OFD packet to send [19:43:31]OFD Sender: No OFD packet to send [19:43:36]OFD Sender: No OFD packet to send [19:43:41]OFD Sender: No OFD packet to send [19:43:46]OFD Sender: No OFD packet to send [19:43:51]OFD Sender: No OFD packet to send [19:43:56]OFD Sender: No OFD packet to send [19:44:01]OFD Sender: No OFD packet to send [19:44:06]OFD Sender: No OFD packet to send [19:44:11]OFD Sender: No OFD packet to send [19:44:16]OFD Sender: No OFD packet to send [19:44:21]OFD Sender: No OFD packet to send [19:44:26]OFD Sender: No OFD packet to send [19:44:31]OFD Sender: No OFD packet to send [19:44:36]OFD Sender: No OFD packet to send [19:44:41]OFD Sender: No OFD packet to send [19:44:46]OFD Sender: No OFD packet to send [19:44:51]OFD Sender: No OFD packet to send [19:44:56]OFD Sender: No OFD packet to send [19:45:01]OFD Sender: No OFD packet to send [19:45:06]OFD Sender: No OFD packet to send [19:45:11]OFD Sender: No OFD packet to send [19:45:16]OFD Sender: No OFD packet to send [19:45:21]OFD Sender: No OFD packet to send [19:45:26]OFD Sender: No OFD packet to send [19:45:31]OFD Sender: No OFD packet to send [19:45:36]OFD Sender: No OFD packet to send [19:45:41]OFD Sender: No OFD packet to send [19:45:46]OFD Sender: No OFD packet to send [19:45:51]OFD Sender: No OFD packet to send [19:45:56]OFD Sender: No OFD packet to send [19:46:01]OFD Sender: No OFD packet to send [19:46:06]OFD Sender: No OFD packet to send [19:46:11]OFD Sender: No OFD packet to send [19:46:16]OFD Sender: No OFD packet to send [19:46:21]OFD Sender: No OFD packet to send [19:46:26]OFD Sender: No OFD packet to send [19:46:31]OFD Sender: No OFD packet to send [19:46:36]OFD Sender: No OFD packet to send [19:46:41]OFD Sender: No OFD packet to send [19:46:46]OFD Sender: No OFD packet to send [19:46:51]OFD Sender: No OFD packet to send [19:46:56]OFD Sender: No OFD packet to send [19:47:01]OFD Sender: No OFD packet to send [19:47:06]OFD Sender: No OFD packet to send [19:47:11]OFD Sender: No OFD packet to send [19:47:16]OFD Sender: No OFD packet to send [19:47:21]OFD Sender: No OFD packet to send [19:47:26]OFD Sender: No OFD packet to send [19:47:31]OFD Sender: No OFD packet to send [19:47:36]OFD Sender: No OFD packet to send [19:47:41]OFD Sender: No OFD packet to send [19:47:46]OFD Sender: No OFD packet to send [19:47:51]OFD Sender: No OFD packet to send [19:47:56]OFD Sender: No OFD packet to send [19:48:01]OFD Sender: No OFD packet to send [19:48:06]OFD Sender: No OFD packet to send [19:48:11]OFD Sender: No OFD packet to send [19:48:16]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:37]OFD Sender: No OFD packet to send [19:50:42]OFD Sender: No OFD packet to send [19:50:47]OFD Sender: No OFD packet to send [19:50:52]OFD Sender: No OFD packet to send [19:50:57]OFD Sender: No OFD packet to send [19:51:02]OFD Sender: No OFD packet to send [19:51:07]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:22]OFD Sender: No OFD packet to send [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:12]accept exits with 7 [19:52:12]New connection [19:52:12]New thread 3066723684 created [19:52:12]Thread 3066580324 joined [19:52:12]Waiting for new connection... [19:52:12] Sock 7.Parse request [19:52:12]Sock 7.Check first char [19:52:12]Sock 7.First char is OK [19:52:12]request: POST /json_proto HTTP/1.0 [19:52:12]Method: POST [19:52:12]URL: /json_proto [19:52:12]Method is POST - this is cgi request [19:52:12]url: /json_proto [19:52:12]query_string will be loaded in cgi processing [19:52:12]execute_cgi json_proto POST (null) [19:52:12]execute_cgi path=json_proto method=POST [19:52:12]POST find Content-Length [19:52:12]Host: 172.17.37.4:8080 [19:52:12]Content-Length: 677 [19:52:12]Content-Type: application/json [19:52:12] [19:52:12]POST finish read [19:52:12]Found Content-Length = 677 [19:52:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.420, "sum" : 230.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:12]execute_script... [19:52:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.420, "sum" : 230.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:12]POST & json_proto [19:52:12]process_json_proto [19:52:12]json parsed OK: [19:52:12]protocol is kg_v1.0 [19:52:12]action value=close_receipt [19:52:12]process_action close_receipt [19:52:12]cmd_close_receipt [19:52:12]MH_GetDate [19:52:12]Write to MH i2c: F0 00 00 AC 78 13 [19:52:12]Write i2c OK [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: F0 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: F0 09 00 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: F0 09 00 AC 78 00 F9 26 46 67 B8 5A 43 67 A4 [19:52:12]GetLastDocTimeStamp 1732649700 [19:52:12]current date 1732650745 [19:52:12]FM_GetShiftState [19:52:12]SAM_PROTO_GetShiftState [19:52:12]wFMCommunicate request_size=4 [19:52:12]MH_SAM_APDU [19:52:12]CAPDU: 80 13 01 00 [19:52:12]Write to MH i2c: E2 08 00 AD 78 80 13 01 00 00 00 00 00 A2 [19:52:12]Write i2c OK [19:52:12]MH_I2C_Read... [19:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:13]Read from MH i2c: E2 [19:52:13]MH_I2C_Read... [19:52:13]Read from MH i2c: E2 0E 00 [19:52:13]MH_I2C_Read... [19:52:13]Read from MH i2c: E2 0E 00 AD 78 00 09 00 01 98 11 45 67 00 00 00 00 90 00 03 [19:52:13]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:52:13]wFMCommunicate OK [19:52:13]SAM_PROTO_GetShiftState done [19:52:13]FM_GetShiftState done [19:52:13]opened in 1732579736 [19:52:13]opened+sec_in_day 1732666136 [19:52:13]quantity*price = 23050 [19:52:13]sum+1 = 23052 [19:52:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 230.00 Внесено: 230.00 СДАЧА: 0.00 НСП 1% : 2.04 НДС 12% : 24.48 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 170 26.11.2024 19:52 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123316 ФПД: 73851443886623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T195225&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123316&fm=73851443886623&tin=02508201610067®Number=0000000000092681&sum=23000 [19:52:14]StoreToDocumentArchive [19:52:14]shift 557 fd 123316 [19:52:14]save to /storage/0557/doc_00123316 [19:52:14]save last doc name /storage/0557/doc_00123316 to /storage/kkm_last_doc_name [19:52:14]save OK [19:52:14]Clear old archive folders... [19:52:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:52:14]tlvbuf is 01FF6F00 [19:52:14]SAM_PROTO_ClearQueue [19:52:14]wFMCommunicate request_size=4 [19:52:14]MH_SAM_APDU [19:52:14]CAPDU: 80 09 00 00 [19:52:14]Write to MH i2c: E2 08 00 BA 78 80 09 00 00 00 00 00 00 A4 [19:52:14]Write i2c OK [19:52:14]MH_I2C_Read... [19:52:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:14]Read from MH i2c: E2 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 03 00 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 03 00 BA 78 00 90 00 A6 [19:52:14]RAPDU: 90 00 [19:52:14]wFMCommunicate OK [19:52:14]SAM_PROTO_ClearQueue done [19:52:14]KKMCreateOFDPacket [19:52:14]OFDProtocolAddRootSTLVToBuf [19:52:14]FM_MakeSignedData [19:52:14]FM_MakeSignedData [19:52:14]SAM_PROTO_SignData [19:52:14]wFMCommunicate request_size=4 [19:52:14]MH_SAM_APDU [19:52:14]CAPDU: 80 0D 01 02 [19:52:14]Write to MH i2c: E2 08 00 BB 78 80 0D 01 02 00 00 00 00 AC [19:52:14]Write i2c OK [19:52:14]MH_I2C_Read... [19:52:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:14]Read from MH i2c: E2 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 03 00 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 03 00 BB 78 00 90 00 A7 [19:52:14]RAPDU: 90 00 [19:52:14]wFMCommunicate OK [19:52:14]wFMCommunicate request_size=255 [19:52:14]MH_SAM_APDU [19:52:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 0D 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 0B 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 F9 26 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B4 E1 01 00 35 04 06 00 43 [19:52:14]Write to MH i2c: E2 02 01 BC 78 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 34 FF 03 08 00 03 5C 0D 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 0B 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 F9 26 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B4 E1 01 00 35 04 06 00 43 00 00 3B [19:52:14]Write i2c OK [19:52:14]MH_I2C_Read... [19:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:14]Read from MH i2c: E2 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 03 00 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 03 00 BC 78 00 90 00 A8 [19:52:14]RAPDU: 90 00 [19:52:14]wFMCommunicate OK [19:52:14]wFMCommunicate request_size=10 [19:52:14]MH_SAM_APDU [19:52:14]CAPDU: 80 0D 02 02 05 2A E1 14 3A 1F [19:52:14]Write to MH i2c: E2 0D 00 BD 78 80 0D 02 02 05 00 2A E1 14 3A 1F 00 00 31 [19:52:14]Write i2c OK [19:52:14]MH_I2C_Read... [19:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:14]Read from MH i2c: E2 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 03 00 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 03 00 BD 78 00 90 00 A9 [19:52:14]RAPDU: 90 00 [19:52:14]wFMCommunicate OK [19:52:14]wFMCommunicate request_size=4 [19:52:14]MH_SAM_APDU [19:52:14]CAPDU: 80 0D 03 02 [19:52:14]Write to MH i2c: E2 08 00 BE 78 80 0D 03 02 00 00 00 00 B1 [19:52:14]Write i2c OK [19:52:14]MH_I2C_Read... [19:52:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:14]Read from MH i2c: E2 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 0B 00 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 0B 00 BE 78 00 DA 43 CE 87 AF AA 1F 76 90 00 12 [19:52:14]RAPDU: DA 43 CE 87 AF AA 1F 76 90 00 [19:52:14]wFMCommunicate OK [19:52:14]SAM_PROTO_SignData done [19:52:14]FM_MakeSignedData done [19:52:14]CreateOFDProtocolMessage [19:52:14]wFMCommunicate request_size=4 [19:52:14]MH_SAM_APDU [19:52:14]CAPDU: 80 11 00 00 [19:52:14]Write to MH i2c: E2 08 00 BF 78 80 11 00 00 00 00 00 00 B1 [19:52:14]Write i2c OK [19:52:14]MH_I2C_Read... [19:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:14]Read from MH i2c: E2 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 17 00 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 17 00 BF 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 08 [19:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:52:14]wFMCommunicate OK [19:52:14]CreateOFDProtocolMessage done [19:52:14]OFDSenderStorePacket 123316 [19:52:14]StoreOFDPacket docnum=123316 [19:52:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 36 87 07 01 21 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 0D 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 0B 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 F9 26 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B4 E1 01 00 35 04 06 00 43 2A E1 14 3A 1F DA 43 CE 87 AF AA 1F 76 [19:52:14]CheckFolder [19:52:14]dirname=/storage/ofd_packets [19:52:14]CheckFolder done [19:52:14]ProducePacketName [19:52:14]name=ofd_packets/00123316 [19:52:14]NVStorageSaveData ofd_packets/00123316 [19:52:14]File name is /storage/ofd_packets/00123316 [19:52:14]Write 301 bytes [19:52:14]NVStorageSaveData done [19:52:14]OFDSenderStorePacket done [19:52:14]KKMCreateOFDPacket done [19:52:14]NVStorageSaveData kkm_last_timestamp [19:52:14]File name is /storage/kkm_last_timestamp [19:52:14]Write 4 bytes [19:52:14]NVStorageSaveData done [19:52:14]ExternCall_PrintAddStr [19:52:14]wPrintStart [19:52:14]Write to MH i2c: 01 00 00 C0 78 38 [19:52:14]Write i2c OK [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: 01 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: 01 07 00 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: 01 07 00 C0 78 00 00 00 00 00 FF 0F 4D [19:52:14]RasterBufferAndPrint [19:52:14]line Счет N : (1)718146 [19:52:14]line ИНН: 02508201610067 [19:52:14]line Контрольно-Кассовый Чек [19:52:14]line ПРОДАЖА [19:52:14]line ТРК (МРК, ГНК) : 12 [19:52:14]line Товар: 2710124130 [19:52:14]line Аи-92-К-4 [19:52:14]line 3.420 * 67.40 [19:52:14]line = 230.51 [19:52:14]line НДС 12% НСП 1% [19:52:14]line > о реализуемом товаре [19:52:14]line ОКРУГЛЕНИЕ: -0.51 [19:52:14]line ИТОГО: 230.00 [19:52:14]line Внесено: 230.00 [19:52:14]line СДАЧА: 0.00 [19:52:14]line НСП 1% : 2.04 [19:52:14]line НДС 12% : 24.48 [19:52:14]line Наличными: 230.00 [19:52:14]line Безнал.: 0.00 [19:52:14]line Место: АЗС № 64 "Партнер Нефть" [19:52:14]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [19:52:14]line СНО: Общий режим [19:52:14]line Чек 170 26.11.2024 19:52 [19:52:14]line Смена: 557 ФФД: 1.0 [19:52:14]line ЗНМ: 0300000033 [19:52:14]line РНМ: 0000000000092681 [19:52:14]line Версия ККМ: 001 [19:52:14]line ФМ: 0000000000874881 [19:52:14]line ФД: 123316 [19:52:14]line ФПД: 73851443886623 [19:52:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T195225&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123316&fm=73851443886623&tin=02508201610067®Number=0000000000092681&sum=23000 [19:52:15]OFD Sender: Processing packet 123316 [packets to send 7, broken 6] [19:52:15]ProducePacketName [19:52:15]name=ofd_packets/00123316 [19:52:15]OFD Sender: To server: pG, [19:52:15]CommunicateWithHost lk.salyk.kg:30040 [19:52:15]ConnectInit lk.salyk.kg [19:52:15]written 0, free lines is 4095 [19:52:15]Connected sock=10 [19:52:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 36 87 07 01 21 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 0D 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 0B 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 F9 26 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B4 E1 01 00 35 04 06 00 43 2A E1 14 3A 1F DA 43 CE 87 AF AA 1F 76 [19:52:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 05 2E 47 00 EE 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B4 E1 01 00 F4 03 04 00 BA D2 45 67 B6 04 01 00 00 5F 31 FC 1B 26 C2 6F 80 [19:52:15]CommunicateWithHost err = 0 [19:52:15]CheckOFDResponse [19:52:15]1017 (14) - 77093643461234 [19:52:15]1041 (16) - 0000000000874881 [19:52:15]1040 (4) - 123316 [19:52:15]1012 (4) - 26.11.2024 13:52 [19:52:15]1206 (1) - 0 [19:52:15]OFD Sender: Remove packet 123316 [19:52:15]ProducePacketName [19:52:15]name=ofd_packets/00123316 [19:52:15]NVStorageDeleteData [19:52:15]Write to MH i2c: 01 00 00 EB 78 63 [19:52:15]Write i2c OK [19:52:15]MH_I2C_Read... [19:52:15]Read from MH i2c: 01 [19:52:15]MH_I2C_Read... [19:52:15]Read from MH i2c: 01 07 00 [19:52:15]MH_I2C_Read... [19:52:15]Read from MH i2c: 01 07 00 EB 78 00 00 00 00 00 56 0C CC [19:52:15]RasterBufferAndPrint [19:52:15]line [19:52:15]line [19:52:15]line [19:52:15]line [19:52:15]line [19:52:15]written 0, free lines is 3163 [19:52:15]MH_Cut [19:52:15]Write to MH i2c: D1 01 00 F2 78 01 3C [19:52:15]Write i2c OK [19:52:15]MH_I2C_Read... [19:52:15]Read from MH i2c: D1 [19:52:15]MH_I2C_Read... [19:52:15]Read from MH i2c: D1 01 00 [19:52:15]MH_I2C_Read... [19:52:15]Read from MH i2c: D1 01 00 F2 78 00 3B [19:52:15]Write to MH i2c: 01 00 00 F3 78 6B [19:52:15]Write i2c OK [19:52:15]MH_I2C_Read... [19:52:15]OFD Sender: No OFD packet to send [19:52:16]*** Cut start [19:52:16]*** Partial cut [19:52:16]*** CUTSNS_PIN = 1 [19:52:16]*** CUTSNS_PIN = 0 [19:52:17]*** Brake cut motor [19:52:17]Read from MH i2c: 01 [19:52:17]MH_I2C_Read... [19:52:17]*** Stop cut motor [19:52:17]*** Cut end [19:52:17]Read from MH i2c: 01 07 00 [19:52:17]MH_I2C_Read... [19:52:17]Read from MH i2c: 01 07 00 F3 78 00 00 00 00 00 FF 0F 80 [19:52:17]process_action close_receipt done [19:52:17]requested_data is exist [19:52:17]produce_requested_data [19:52:17]requested_item fm.sn is exist - process it [19:52:17]wFMCommunicate request_size=4 [19:52:17]MH_SAM_APDU [19:52:17]CAPDU: 80 11 00 00 [19:52:17]Write to MH i2c: E2 08 00 F4 78 80 11 00 00 00 00 00 00 E6 [19:52:17]Write i2c OK [19:52:17]MH_I2C_Read... [19:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:17]Read from MH i2c: E2 [19:52:17]MH_I2C_Read... [19:52:17]Read from MH i2c: E2 17 00 [19:52:17]MH_I2C_Read... [19:52:17]Read from MH i2c: E2 17 00 F4 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3D [19:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [19:52:17]wFMCommunicate OK [19:52:17]requested_item fd.num is exist - process it [19:52:17]SAM_PROTO_GetFieldsCounters [19:52:17]wFMCommunicate request_size=4 [19:52:17]MH_SAM_APDU [19:52:17]CAPDU: 80 13 00 00 [19:52:17]Write to MH i2c: E2 08 00 F5 78 80 13 00 00 00 00 00 00 E9 [19:52:17]Write i2c OK [19:52:17]MH_I2C_Read... [19:52:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:17]Read from MH i2c: E2 [19:52:17]MH_I2C_Read... [19:52:17]Read from MH i2c: E2 62 00 [19:52:17]MH_I2C_Read... [19:52:17]Read from MH i2c: E2 62 00 F5 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B4 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [19:52:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B4 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:52:17]wFMCommunicate OK [19:52:17]SAM_PROTO_GetFieldsCounters done [19:52:17]requested_item shift.num is exist - process it [19:52:17]requested_item shift.opened is exist - process it [19:52:17]req_shift_opened [19:52:17]FM_GetShiftState [19:52:17]SAM_PROTO_GetShiftState [19:52:17]wFMCommunicate request_size=4 [19:52:17]MH_SAM_APDU [19:52:17]CAPDU: 80 13 01 00 [19:52:17]Write to MH i2c: E2 08 00 F6 78 80 13 01 00 00 00 00 00 EB [19:52:17]Write i2c OK [19:52:17]MH_I2C_Read... [19:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:17]Read from MH i2c: E2 [19:52:17]MH_I2C_Read... [19:52:17]Read from MH i2c: E2 0E 00 [19:52:17]MH_I2C_Read... [19:52:17]Read from MH i2c: E2 0E 00 F6 78 00 09 00 01 98 11 45 67 00 00 00 00 90 00 4C [19:52:17]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [19:52:17]wFMCommunicate OK [19:52:17]SAM_PROTO_GetShiftState done [19:52:17]FM_GetShiftState done [19:52:17]req_shift_opened done [19:52:17]requested_item shift.open_date is exist - process it [19:52:17]req_shift_open_date [19:52:17]req_shift_open_date done [19:52:17]produce_requested_data done [19:52:17]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123316,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [19:52:17]process_action_free close_receipt [19:52:17]json_value_free [19:52:17]json_value_free done [19:52:17]process_json_proto returns [19:52:17]Send response to host [19:52:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123316,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [19:52:17]free response buf [19:52:17]execute_script done [19:52:17]execute_script returns [19:52:17]free content buf [19:52:17]Sock 7.Close socket [19:52:17]Sock 7.Thread stoped [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:06]OFD Sender: No OFD packet to send [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:41]OFD Sender: No OFD packet to send [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:56]OFD Sender: No OFD packet to send [19:57:01]OFD Sender: No OFD packet to send [19:57:06]OFD Sender: No OFD packet to send [19:57:11]OFD Sender: No OFD packet to send [19:57:16]OFD Sender: No OFD packet to send [19:57:21]OFD Sender: No OFD packet to send [19:57:26]OFD Sender: No OFD packet to send [19:57:31]OFD Sender: No OFD packet to send [19:57:36]OFD Sender: No OFD packet to send [19:57:41]OFD Sender: No OFD packet to send [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:56]OFD Sender: No OFD packet to send [20:00:01]OFD Sender: No OFD packet to send [20:00:06]OFD Sender: No OFD packet to send [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:51]OFD Sender: No OFD packet to send [20:00:56]OFD Sender: No OFD packet to send [20:01:01]OFD Sender: No OFD packet to send [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:12]accept exits with 9 [20:05:12]New connection [20:05:12]New thread 3066580324 created [20:05:12]Thread 3066723684 joined [20:05:12]Waiting for new connection... [20:05:12] Sock 9.Parse request [20:05:12]Sock 9.Check first char [20:05:12]Sock 9.First char is OK [20:05:12]request: POST /json_proto HTTP/1.0 [20:05:12]Method: POST [20:05:12]URL: /json_proto [20:05:12]Method is POST - this is cgi request [20:05:12]url: /json_proto [20:05:12]query_string will be loaded in cgi processing [20:05:12]execute_cgi json_proto POST (null) [20:05:12]execute_cgi path=json_proto method=POST [20:05:12]POST find Content-Length [20:05:12]Host: 172.17.37.4:8080 [20:05:12]Content-Length: 678 [20:05:12]Content-Type: application/json [20:05:12] [20:05:12]POST finish read [20:05:12]Found Content-Length = 678 [20:05:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:12]execute_script... [20:05:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 10.390, "sum" : 700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:12]POST & json_proto [20:05:12]process_json_proto [20:05:12]json parsed OK: [20:05:12]protocol is kg_v1.0 [20:05:12]action value=close_receipt [20:05:12]process_action close_receipt [20:05:12]cmd_close_receipt [20:05:12]MH_GetDate [20:05:12]Write to MH i2c: F0 00 00 F7 78 5E [20:05:12]Write i2c OK [20:05:12]MH_I2C_Read... [20:05:12]Read from MH i2c: F0 [20:05:12]MH_I2C_Read... [20:05:12]Read from MH i2c: F0 09 00 [20:05:12]MH_I2C_Read... [20:05:12]Read from MH i2c: F0 09 00 F7 78 00 05 2A 46 67 B8 5A 43 67 FF [20:05:12]GetLastDocTimeStamp 1732650745 [20:05:12]current date 1732651525 [20:05:12]FM_GetShiftState [20:05:12]SAM_PROTO_GetShiftState [20:05:12]wFMCommunicate request_size=4 [20:05:12]MH_SAM_APDU [20:05:12]CAPDU: 80 13 01 00 [20:05:12]Write to MH i2c: E2 08 00 F8 78 80 13 01 00 00 00 00 00 ED [20:05:12]Write i2c OK [20:05:12]MH_I2C_Read... [20:05:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:12]Read from MH i2c: E2 [20:05:12]MH_I2C_Read... [20:05:12]Read from MH i2c: E2 0E 00 [20:05:12]MH_I2C_Read... [20:05:12]Read from MH i2c: E2 0E 00 F8 78 00 09 00 01 98 11 45 67 00 00 00 00 90 00 4E [20:05:12]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [20:05:12]wFMCommunicate OK [20:05:12]SAM_PROTO_GetShiftState done [20:05:12]FM_GetShiftState done [20:05:12]opened in 1732579736 [20:05:12]opened+sec_in_day 1732666136 [20:05:12]quantity*price = 70028 [20:05:12]sum+1 = 70030 [20:05:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 171 26.11.2024 20:05 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123317 ФПД: 242786863928620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T200525&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123317&fm=242786863928620&tin=02508201610067®Number=0000000000092681&sum=70000 [20:05:14]StoreToDocumentArchive [20:05:14]shift 557 fd 123317 [20:05:14]save to /storage/0557/doc_00123317 [20:05:14]save last doc name /storage/0557/doc_00123317 to /storage/kkm_last_doc_name [20:05:14]save OK [20:05:14]Clear old archive folders... [20:05:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:14]tlvbuf is 020D3430 [20:05:14]SAM_PROTO_ClearQueue [20:05:14]wFMCommunicate request_size=4 [20:05:14]MH_SAM_APDU [20:05:14]CAPDU: 80 09 00 00 [20:05:14]Write to MH i2c: E2 08 00 05 79 80 09 00 00 00 00 00 00 F0 [20:05:14]Write i2c OK [20:05:14]MH_I2C_Read... [20:05:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:14]Read from MH i2c: E2 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 05 79 00 90 00 F2 [20:05:14]RAPDU: 90 00 [20:05:14]wFMCommunicate OK [20:05:14]SAM_PROTO_ClearQueue done [20:05:14]KKMCreateOFDPacket [20:05:14]OFDProtocolAddRootSTLVToBuf [20:05:14]FM_MakeSignedData [20:05:14]FM_MakeSignedData [20:05:14]SAM_PROTO_SignData [20:05:14]wFMCommunicate request_size=4 [20:05:14]MH_SAM_APDU [20:05:14]CAPDU: 80 0D 01 02 [20:05:14]Write to MH i2c: E2 08 00 06 79 80 0D 01 02 00 00 00 00 F8 [20:05:14]Write i2c OK [20:05:14]MH_I2C_Read... [20:05:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:14]Read from MH i2c: E2 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 06 79 00 90 00 F3 [20:05:14]RAPDU: 90 00 [20:05:14]wFMCommunicate OK [20:05:14]wFMCommunicate request_size=255 [20:05:14]MH_SAM_APDU [20:05:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 05 2A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B5 E1 01 00 35 04 06 00 DC [20:05:14]Write to MH i2c: E2 02 01 07 79 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 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 05 2A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B5 E1 01 00 35 04 06 00 DC 00 00 96 [20:05:14]Write i2c OK [20:05:14]MH_I2C_Read... [20:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:14]Read from MH i2c: E2 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 07 79 00 90 00 F4 [20:05:14]RAPDU: 90 00 [20:05:14]wFMCommunicate OK [20:05:14]wFMCommunicate request_size=10 [20:05:14]MH_SAM_APDU [20:05:14]CAPDU: 80 0D 02 02 05 D0 38 C7 D5 2C [20:05:14]Write to MH i2c: E2 0D 00 08 79 80 0D 02 02 05 00 D0 38 C7 D5 2C 00 00 D5 [20:05:14]Write i2c OK [20:05:14]MH_I2C_Read... [20:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:14]Read from MH i2c: E2 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 08 79 00 90 00 F5 [20:05:14]RAPDU: 90 00 [20:05:14]wFMCommunicate OK [20:05:14]wFMCommunicate request_size=4 [20:05:14]MH_SAM_APDU [20:05:14]CAPDU: 80 0D 03 02 [20:05:14]Write to MH i2c: E2 08 00 09 79 80 0D 03 02 00 00 00 00 FD [20:05:14]Write i2c OK [20:05:14]MH_I2C_Read... [20:05:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:14]Read from MH i2c: E2 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 0B 00 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 0B 00 09 79 00 3D 94 AB 9F 2C D5 40 C2 90 00 1C [20:05:14]RAPDU: 3D 94 AB 9F 2C D5 40 C2 90 00 [20:05:14]wFMCommunicate OK [20:05:14]SAM_PROTO_SignData done [20:05:14]FM_MakeSignedData done [20:05:14]CreateOFDProtocolMessage [20:05:14]wFMCommunicate request_size=4 [20:05:14]MH_SAM_APDU [20:05:14]CAPDU: 80 11 00 00 [20:05:14]Write to MH i2c: E2 08 00 0A 79 80 11 00 00 00 00 00 00 FD [20:05:14]Write i2c OK [20:05:14]MH_I2C_Read... [20:05:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:14]Read from MH i2c: E2 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 17 00 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 17 00 0A 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 54 [20:05:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:05:14]wFMCommunicate OK [20:05:14]CreateOFDProtocolMessage done [20:05:14]OFDSenderStorePacket 123317 [20:05:14]StoreOFDPacket docnum=123317 [20:05:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 CF A9 07 01 29 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 05 2A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B5 E1 01 00 35 04 06 00 DC D0 38 C7 D5 2C 3D 94 AB 9F 2C D5 40 C2 [20:05:14]CheckFolder [20:05:14]dirname=/storage/ofd_packets [20:05:14]CheckFolder done [20:05:14]ProducePacketName [20:05:14]name=ofd_packets/00123317 [20:05:14]NVStorageSaveData ofd_packets/00123317 [20:05:14]File name is /storage/ofd_packets/00123317 [20:05:14]Write 301 bytes [20:05:14]NVStorageSaveData done [20:05:14]OFDSenderStorePacket done [20:05:14]KKMCreateOFDPacket done [20:05:14]NVStorageSaveData kkm_last_timestamp [20:05:14]File name is /storage/kkm_last_timestamp [20:05:14]Write 4 bytes [20:05:14]NVStorageSaveData done [20:05:14]ExternCall_PrintAddStr [20:05:14]wPrintStart [20:05:14]Write to MH i2c: 01 00 00 0B 79 84 [20:05:14]Write i2c OK [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: 01 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: 01 07 00 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: 01 07 00 0B 79 00 00 00 00 00 FF 0F 99 [20:05:14]RasterBufferAndPrint [20:05:14]line Счет N : (1)718147 [20:05:14]line ИНН: 02508201610067 [20:05:14]line Контрольно-Кассовый Чек [20:05:14]line ПРОДАЖА [20:05:14]line ТРК (МРК, ГНК) : 12 [20:05:14]line Товар: 2710124130 [20:05:14]line Аи-92-К-4 [20:05:14]line 10.390 * 67.40 [20:05:14]line = 700.29 [20:05:14]line НДС 12% НСП 1% [20:05:14]line > о реализуемом товаре [20:05:14]line ОКРУГЛЕНИЕ: -0.29 [20:05:14]line ИТОГО: 700.00 [20:05:14]line Внесено: 700.00 [20:05:14]line СДАЧА: 0.00 [20:05:14]line НСП 1% : 6.20 [20:05:14]line НДС 12% : 74.37 [20:05:14]line Наличными: 700.00 [20:05:14]line Безнал.: 0.00 [20:05:14]line Место: АЗС № 64 "Партнер Нефть" [20:05:14]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [20:05:14]line СНО: Общий режим [20:05:14]line Чек 171 26.11.2024 20:05 [20:05:14]line Смена: 557 ФФД: 1.0 [20:05:14]line ЗНМ: 0300000033 [20:05:14]line РНМ: 0000000000092681 [20:05:14]line Версия ККМ: 001 [20:05:14]line ФМ: 0000000000874881 [20:05:14]line ФД: 123317 [20:05:14]line ФПД: 242786863928620 [20:05:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T200525&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123317&fm=242786863928620&tin=02508201610067®Number=0000000000092681&sum=70000 [20:05:14]OFD Sender: Processing packet 123317 [packets to send 7, broken 6] [20:05:14]ProducePacketName [20:05:14]name=ofd_packets/00123317 [20:05:14]OFD Sender: To server: pG, [20:05:14]CommunicateWithHost lk.salyk.kg:30040 [20:05:14]ConnectInit lk.salyk.kg [20:05:14]written 0, free lines is 4095 [20:05:14]Connected sock=10 [20:05:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 CF A9 07 01 29 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 96 28 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 8D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 05 2A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B5 E1 01 00 35 04 06 00 DC D0 38 C7 D5 2C 3D 94 AB 9F 2C D5 40 C2 [20:05:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 24 81 47 00 80 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B5 E1 01 00 F4 03 04 00 C6 D5 45 67 B6 04 01 00 00 14 3E 89 9E 52 ED 4B 69 [20:05:15]CommunicateWithHost err = 0 [20:05:15]CheckOFDResponse [20:05:15]1017 (14) - 77093643461234 [20:05:15]1041 (16) - 0000000000874881 [20:05:15]1040 (4) - 123317 [20:05:15]1012 (4) - 26.11.2024 14:05 [20:05:15]1206 (1) - 0 [20:05:15]OFD Sender: Remove packet 123317 [20:05:15]ProducePacketName [20:05:15]name=ofd_packets/00123317 [20:05:15]NVStorageDeleteData [20:05:15]Write to MH i2c: 01 00 00 36 79 AF [20:05:15]Write i2c OK [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: 01 [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: 01 07 00 [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: 01 07 00 36 79 00 00 00 00 00 4E 0C 10 [20:05:15]RasterBufferAndPrint [20:05:15]line [20:05:15]line [20:05:15]line [20:05:15]line [20:05:15]line [20:05:15]written 0, free lines is 3154 [20:05:15]MH_Cut [20:05:15]Write to MH i2c: D1 01 00 3D 79 01 88 [20:05:15]Write i2c OK [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: D1 [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: D1 01 00 [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: D1 01 00 3D 79 00 87 [20:05:15]Write to MH i2c: 01 00 00 3E 79 B7 [20:05:15]Write i2c OK [20:05:15]MH_I2C_Read... [20:05:15]OFD Sender: No OFD packet to send [20:05:16]*** Cut start [20:05:16]*** Partial cut [20:05:16]*** CUTSNS_PIN = 1 [20:05:16]*** CUTSNS_PIN = 0 [20:05:17]*** Brake cut motor [20:05:17]Read from MH i2c: 01 [20:05:17]MH_I2C_Read... [20:05:17]*** Stop cut motor [20:05:17]*** Cut end [20:05:17]Read from MH i2c: 01 07 00 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: 01 07 00 3E 79 00 00 00 00 00 FF 0F CC [20:05:17]process_action close_receipt done [20:05:17]requested_data is exist [20:05:17]produce_requested_data [20:05:17]requested_item fm.sn is exist - process it [20:05:17]wFMCommunicate request_size=4 [20:05:17]MH_SAM_APDU [20:05:17]CAPDU: 80 11 00 00 [20:05:17]Write to MH i2c: E2 08 00 3F 79 80 11 00 00 00 00 00 00 32 [20:05:17]Write i2c OK [20:05:17]MH_I2C_Read... [20:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:17]Read from MH i2c: E2 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: E2 17 00 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: E2 17 00 3F 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 89 [20:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:05:17]wFMCommunicate OK [20:05:17]requested_item fd.num is exist - process it [20:05:17]SAM_PROTO_GetFieldsCounters [20:05:17]wFMCommunicate request_size=4 [20:05:17]MH_SAM_APDU [20:05:17]CAPDU: 80 13 00 00 [20:05:17]Write to MH i2c: E2 08 00 40 79 80 13 00 00 00 00 00 00 35 [20:05:17]Write i2c OK [20:05:17]MH_I2C_Read... [20:05:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:17]Read from MH i2c: E2 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: E2 62 00 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: E2 62 00 40 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B5 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [20:05:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B5 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:17]wFMCommunicate OK [20:05:17]SAM_PROTO_GetFieldsCounters done [20:05:17]requested_item shift.num is exist - process it [20:05:17]requested_item shift.opened is exist - process it [20:05:17]req_shift_opened [20:05:17]FM_GetShiftState [20:05:17]SAM_PROTO_GetShiftState [20:05:17]wFMCommunicate request_size=4 [20:05:17]MH_SAM_APDU [20:05:17]CAPDU: 80 13 01 00 [20:05:17]Write to MH i2c: E2 08 00 41 79 80 13 01 00 00 00 00 00 37 [20:05:17]Write i2c OK [20:05:17]MH_I2C_Read... [20:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:17]Read from MH i2c: E2 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: E2 0E 00 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: E2 0E 00 41 79 00 09 00 01 98 11 45 67 00 00 00 00 90 00 98 [20:05:17]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [20:05:17]wFMCommunicate OK [20:05:17]SAM_PROTO_GetShiftState done [20:05:17]FM_GetShiftState done [20:05:17]req_shift_opened done [20:05:17]requested_item shift.open_date is exist - process it [20:05:17]req_shift_open_date [20:05:17]req_shift_open_date done [20:05:17]produce_requested_data done [20:05:17]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123317,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [20:05:17]process_action_free close_receipt [20:05:17]json_value_free [20:05:17]json_value_free done [20:05:17]process_json_proto returns [20:05:17]Send response to host [20:05:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123317,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [20:05:17]free response buf [20:05:17]execute_script done [20:05:17]execute_script returns [20:05:17]free content buf [20:05:17]Sock 9.Close socket [20:05:17]Sock 9.Thread stoped [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:03]accept exits with 7 [20:06:03]New connection [20:06:03]New thread 3066723684 created [20:06:03]Thread 3066580324 joined [20:06:03]Waiting for new connection... [20:06:03] Sock 7.Parse request [20:06:03]Sock 7.Check first char [20:06:03]Sock 7.First char is OK [20:06:03]request: POST /json_proto HTTP/1.0 [20:06:03]Method: POST [20:06:03]URL: /json_proto [20:06:03]Method is POST - this is cgi request [20:06:03]url: /json_proto [20:06:03]query_string will be loaded in cgi processing [20:06:03]execute_cgi json_proto POST (null) [20:06:03]execute_cgi path=json_proto method=POST [20:06:03]POST find Content-Length [20:06:03]Host: 172.17.37.4:8080 [20:06:03]Content-Length: 677 [20:06:03]Content-Type: application/json [20:06:03] [20:06:03]POST finish read [20:06:03]Found Content-Length = 677 [20:06:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.870, "sum" : 530.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 530.00, "total" : 530.00, "payments": [ { "type": 0, "sum" : 530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:03]execute_script... [20:06:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.870, "sum" : 530.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 530.00, "total" : 530.00, "payments": [ { "type": 0, "sum" : 530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:03]POST & json_proto [20:06:03]process_json_proto [20:06:03]json parsed OK: [20:06:03]protocol is kg_v1.0 [20:06:03]action value=close_receipt [20:06:03]process_action close_receipt [20:06:03]cmd_close_receipt [20:06:03]MH_GetDate [20:06:03]Write to MH i2c: F0 00 00 42 79 AA [20:06:03]Write i2c OK [20:06:03]MH_I2C_Read... [20:06:03]Read from MH i2c: F0 [20:06:03]MH_I2C_Read... [20:06:03]Read from MH i2c: F0 09 00 [20:06:03]MH_I2C_Read... [20:06:03]Read from MH i2c: F0 09 00 42 79 00 37 2A 46 67 B8 5A 43 67 7D [20:06:03]GetLastDocTimeStamp 1732651525 [20:06:03]current date 1732651575 [20:06:03]FM_GetShiftState [20:06:03]SAM_PROTO_GetShiftState [20:06:03]wFMCommunicate request_size=4 [20:06:03]MH_SAM_APDU [20:06:03]CAPDU: 80 13 01 00 [20:06:03]Write to MH i2c: E2 08 00 43 79 80 13 01 00 00 00 00 00 39 [20:06:03]Write i2c OK [20:06:03]MH_I2C_Read... [20:06:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:03]Read from MH i2c: E2 [20:06:03]MH_I2C_Read... [20:06:03]Read from MH i2c: E2 0E 00 [20:06:03]MH_I2C_Read... [20:06:03]Read from MH i2c: E2 0E 00 43 79 00 09 00 01 98 11 45 67 00 00 00 00 90 00 9A [20:06:03]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [20:06:03]wFMCommunicate OK [20:06:03]SAM_PROTO_GetShiftState done [20:06:03]FM_GetShiftState done [20:06:03]opened in 1732579736 [20:06:03]opened+sec_in_day 1732666136 [20:06:03]quantity*price = 53043 [20:06:03]sum+1 = 53045 [20:06:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 530.00 Внесено: 530.00 СДАЧА: 0.00 НСП 1% : 4.69 НДС 12% : 56.33 Наличными: 530.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 172 26.11.2024 20:06 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123318 ФПД: 12552789795277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T200615&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123318&fm=12552789795277&tin=02508201610067®Number=0000000000092681&sum=53000 [20:06:04]StoreToDocumentArchive [20:06:04]shift 557 fd 123318 [20:06:04]save to /storage/0557/doc_00123318 [20:06:04]save last doc name /storage/0557/doc_00123318 to /storage/kkm_last_doc_name [20:06:04]save OK [20:06:04]Clear old archive folders... [20:06:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:04]tlvbuf is 0210A100 [20:06:04]SAM_PROTO_ClearQueue [20:06:04]wFMCommunicate request_size=4 [20:06:04]MH_SAM_APDU [20:06:04]CAPDU: 80 09 00 00 [20:06:04]Write to MH i2c: E2 08 00 50 79 80 09 00 00 00 00 00 00 3B [20:06:04]Write i2c OK [20:06:04]MH_I2C_Read... [20:06:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:04]Read from MH i2c: E2 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 03 00 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 03 00 50 79 00 90 00 3D [20:06:04]RAPDU: 90 00 [20:06:04]wFMCommunicate OK [20:06:04]SAM_PROTO_ClearQueue done [20:06:04]KKMCreateOFDPacket [20:06:04]OFDProtocolAddRootSTLVToBuf [20:06:04]FM_MakeSignedData [20:06:04]FM_MakeSignedData [20:06:04]SAM_PROTO_SignData [20:06:04]wFMCommunicate request_size=4 [20:06:04]MH_SAM_APDU [20:06:04]CAPDU: 80 0D 01 02 [20:06:04]Write to MH i2c: E2 08 00 51 79 80 0D 01 02 00 00 00 00 43 [20:06:04]Write i2c OK [20:06:04]MH_I2C_Read... [20:06:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:04]Read from MH i2c: E2 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 03 00 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 03 00 51 79 00 90 00 3E [20:06:04]RAPDU: 90 00 [20:06:04]wFMCommunicate OK [20:06:04]wFMCommunicate request_size=255 [20:06:04]MH_SAM_APDU [20:06:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BE 1E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 34 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 16 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 37 2A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B6 E1 01 00 35 04 06 00 0B [20:06:04]Write to MH i2c: E2 02 01 52 79 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 34 FF 03 08 00 03 BE 1E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 34 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 16 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 37 2A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B6 E1 01 00 35 04 06 00 0B 00 00 C5 [20:06:04]Write i2c OK [20:06:04]MH_I2C_Read... [20:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:04]Read from MH i2c: E2 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 03 00 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 03 00 52 79 00 90 00 3F [20:06:04]RAPDU: 90 00 [20:06:04]wFMCommunicate OK [20:06:04]wFMCommunicate request_size=10 [20:06:04]MH_SAM_APDU [20:06:04]CAPDU: 80 0D 02 02 05 6A AC 93 A1 CD [20:06:04]Write to MH i2c: E2 0D 00 53 79 80 0D 02 02 05 00 6A AC 93 A1 CD 00 00 67 [20:06:04]Write i2c OK [20:06:04]MH_I2C_Read... [20:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:04]Read from MH i2c: E2 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 03 00 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 03 00 53 79 00 90 00 40 [20:06:04]RAPDU: 90 00 [20:06:04]wFMCommunicate OK [20:06:04]wFMCommunicate request_size=4 [20:06:04]MH_SAM_APDU [20:06:04]CAPDU: 80 0D 03 02 [20:06:04]Write to MH i2c: E2 08 00 54 79 80 0D 03 02 00 00 00 00 48 [20:06:04]Write i2c OK [20:06:04]MH_I2C_Read... [20:06:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:04]Read from MH i2c: E2 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 0B 00 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 0B 00 54 79 00 D6 20 CC 02 70 F1 12 2B 90 00 AB [20:06:04]RAPDU: D6 20 CC 02 70 F1 12 2B 90 00 [20:06:04]wFMCommunicate OK [20:06:04]SAM_PROTO_SignData done [20:06:04]FM_MakeSignedData done [20:06:04]CreateOFDProtocolMessage [20:06:04]wFMCommunicate request_size=4 [20:06:04]MH_SAM_APDU [20:06:04]CAPDU: 80 11 00 00 [20:06:04]Write to MH i2c: E2 08 00 55 79 80 11 00 00 00 00 00 00 48 [20:06:04]Write i2c OK [20:06:04]MH_I2C_Read... [20:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:04]Read from MH i2c: E2 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 17 00 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 17 00 55 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 9F [20:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:06:04]wFMCommunicate OK [20:06:04]CreateOFDProtocolMessage done [20:06:04]OFDSenderStorePacket 123318 [20:06:04]StoreOFDPacket docnum=123318 [20:06:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B0 4F 07 01 95 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BE 1E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 34 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 16 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 37 2A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B6 E1 01 00 35 04 06 00 0B 6A AC 93 A1 CD D6 20 CC 02 70 F1 12 2B [20:06:04]CheckFolder [20:06:04]dirname=/storage/ofd_packets [20:06:04]CheckFolder done [20:06:04]ProducePacketName [20:06:04]name=ofd_packets/00123318 [20:06:04]NVStorageSaveData ofd_packets/00123318 [20:06:04]File name is /storage/ofd_packets/00123318 [20:06:04]Write 301 bytes [20:06:04]NVStorageSaveData done [20:06:04]OFDSenderStorePacket done [20:06:04]KKMCreateOFDPacket done [20:06:04]NVStorageSaveData kkm_last_timestamp [20:06:04]File name is /storage/kkm_last_timestamp [20:06:04]Write 4 bytes [20:06:04]NVStorageSaveData done [20:06:04]ExternCall_PrintAddStr [20:06:04]wPrintStart [20:06:04]Write to MH i2c: 01 00 00 56 79 CF [20:06:04]Write i2c OK [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: 01 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: 01 07 00 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: 01 07 00 56 79 00 00 00 00 00 FF 0F E4 [20:06:04]RasterBufferAndPrint [20:06:04]line Счет N : (1)718148 [20:06:04]line ИНН: 02508201610067 [20:06:04]line Контрольно-Кассовый Чек [20:06:04]line ПРОДАЖА [20:06:04]line ТРК (МРК, ГНК) : 32 [20:06:04]line Товар: 2710124130 [20:06:04]line Аи-92-К-4 [20:06:04]line 7.870 * 67.40 [20:06:04]line = 530.44 [20:06:04]line НДС 12% НСП 1% [20:06:04]line > о реализуемом товаре [20:06:04]line ОКРУГЛЕНИЕ: -0.44 [20:06:04]line ИТОГО: 530.00 [20:06:04]line Внесено: 530.00 [20:06:04]line СДАЧА: 0.00 [20:06:04]line НСП 1% : 4.69 [20:06:04]line НДС 12% : 56.33 [20:06:04]line Наличными: 530.00 [20:06:04]line Безнал.: 0.00 [20:06:04]line Место: АЗС № 64 "Партнер Нефть" [20:06:04]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [20:06:04]line СНО: Общий режим [20:06:04]line Чек 172 26.11.2024 20:06 [20:06:04]line Смена: 557 ФФД: 1.0 [20:06:04]line ЗНМ: 0300000033 [20:06:04]line РНМ: 0000000000092681 [20:06:04]line Версия ККМ: 001 [20:06:04]line ФМ: 0000000000874881 [20:06:04]line ФД: 123318 [20:06:04]line ФПД: 12552789795277 [20:06:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T200615&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123318&fm=12552789795277&tin=02508201610067®Number=0000000000092681&sum=53000 [20:06:05]OFD Sender: Processing packet 123318 [packets to send 7, broken 6] [20:06:05]ProducePacketName [20:06:05]name=ofd_packets/00123318 [20:06:05]OFD Sender: To server: pG, [20:06:05]CommunicateWithHost lk.salyk.kg:30040 [20:06:05]ConnectInit lk.salyk.kg [20:06:05]written 0, free lines is 4095 [20:06:05]Connected sock=10 [20:06:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 B0 4F 07 01 95 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BE 1E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 34 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 16 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 37 2A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B6 E1 01 00 35 04 06 00 0B 6A AC 93 A1 CD D6 20 CC 02 70 F1 12 2B [20:06:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 30 C0 47 00 5E BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B6 E1 01 00 F4 03 04 00 F8 D5 45 67 B6 04 01 00 00 C3 01 AC B1 93 D0 A0 CF [20:06:05]CommunicateWithHost err = 0 [20:06:05]CheckOFDResponse [20:06:05]1017 (14) - 77093643461234 [20:06:05]1041 (16) - 0000000000874881 [20:06:05]1040 (4) - 123318 [20:06:05]1012 (4) - 26.11.2024 14:06 [20:06:05]1206 (1) - 0 [20:06:05]OFD Sender: Remove packet 123318 [20:06:05]ProducePacketName [20:06:05]name=ofd_packets/00123318 [20:06:05]NVStorageDeleteData [20:06:05]Write to MH i2c: 01 00 00 81 79 FA [20:06:05]Write i2c OK [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: 01 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: 01 07 00 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: 01 07 00 81 79 00 00 00 00 00 51 0C 5E [20:06:05]RasterBufferAndPrint [20:06:05]line [20:06:05]line [20:06:05]line [20:06:05]line [20:06:05]line [20:06:05]written 0, free lines is 3157 [20:06:05]MH_Cut [20:06:05]Write to MH i2c: D1 01 00 88 79 01 D3 [20:06:05]Write i2c OK [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: D1 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: D1 01 00 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: D1 01 00 88 79 00 D2 [20:06:05]Write to MH i2c: 01 00 00 89 79 02 [20:06:05]Write i2c OK [20:06:05]MH_I2C_Read... [20:06:05]OFD Sender: No OFD packet to send [20:06:06]*** Cut start [20:06:06]*** Partial cut [20:06:06]*** CUTSNS_PIN = 1 [20:06:06]*** CUTSNS_PIN = 0 [20:06:07]*** Brake cut motor [20:06:07]Read from MH i2c: 01 [20:06:07]MH_I2C_Read... [20:06:07]*** Stop cut motor [20:06:07]*** Cut end [20:06:07]Read from MH i2c: 01 07 00 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: 01 07 00 89 79 00 00 00 00 00 FF 0F 17 [20:06:07]process_action close_receipt done [20:06:07]requested_data is exist [20:06:07]produce_requested_data [20:06:07]requested_item fm.sn is exist - process it [20:06:07]wFMCommunicate request_size=4 [20:06:07]MH_SAM_APDU [20:06:07]CAPDU: 80 11 00 00 [20:06:07]Write to MH i2c: E2 08 00 8A 79 80 11 00 00 00 00 00 00 7D [20:06:07]Write i2c OK [20:06:07]MH_I2C_Read... [20:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:07]Read from MH i2c: E2 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 17 00 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 17 00 8A 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D4 [20:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:06:07]wFMCommunicate OK [20:06:07]requested_item fd.num is exist - process it [20:06:07]SAM_PROTO_GetFieldsCounters [20:06:07]wFMCommunicate request_size=4 [20:06:07]MH_SAM_APDU [20:06:07]CAPDU: 80 13 00 00 [20:06:07]Write to MH i2c: E2 08 00 8B 79 80 13 00 00 00 00 00 00 80 [20:06:07]Write i2c OK [20:06:07]MH_I2C_Read... [20:06:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:07]Read from MH i2c: E2 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 62 00 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 62 00 8B 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B6 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [20:06:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B6 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:07]wFMCommunicate OK [20:06:07]SAM_PROTO_GetFieldsCounters done [20:06:07]requested_item shift.num is exist - process it [20:06:07]requested_item shift.opened is exist - process it [20:06:07]req_shift_opened [20:06:07]FM_GetShiftState [20:06:07]SAM_PROTO_GetShiftState [20:06:07]wFMCommunicate request_size=4 [20:06:07]MH_SAM_APDU [20:06:07]CAPDU: 80 13 01 00 [20:06:07]Write to MH i2c: E2 08 00 8C 79 80 13 01 00 00 00 00 00 82 [20:06:07]Write i2c OK [20:06:07]MH_I2C_Read... [20:06:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:07]Read from MH i2c: E2 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 0E 00 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 0E 00 8C 79 00 09 00 01 98 11 45 67 00 00 00 00 90 00 E3 [20:06:07]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [20:06:07]wFMCommunicate OK [20:06:07]SAM_PROTO_GetShiftState done [20:06:07]FM_GetShiftState done [20:06:07]req_shift_opened done [20:06:07]requested_item shift.open_date is exist - process it [20:06:07]req_shift_open_date [20:06:07]req_shift_open_date done [20:06:07]produce_requested_data done [20:06:07]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123318,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [20:06:07]process_action_free close_receipt [20:06:07]json_value_free [20:06:07]json_value_free done [20:06:07]process_json_proto returns [20:06:07]Send response to host [20:06:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123318,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [20:06:07]free response buf [20:06:07]execute_script done [20:06:07]execute_script returns [20:06:07]free content buf [20:06:07]Sock 7.Close socket [20:06:07]Sock 7.Thread stoped [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:36]OFD Sender: No OFD packet to send [20:18:41]OFD Sender: No OFD packet to send [20:18:46]OFD Sender: No OFD packet to send [20:18:51]OFD Sender: No OFD packet to send [20:18:56]OFD Sender: No OFD packet to send [20:19:01]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:11]OFD Sender: No OFD packet to send [20:20:16]OFD Sender: No OFD packet to send [20:20:21]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:46]OFD Sender: No OFD packet to send [20:20:51]OFD Sender: No OFD packet to send [20:20:56]OFD Sender: No OFD packet to send [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]OFD Sender: No OFD packet to send [20:21:16]OFD Sender: No OFD packet to send [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:41]OFD Sender: No OFD packet to send [20:21:46]OFD Sender: No OFD packet to send [20:21:51]OFD Sender: No OFD packet to send [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:36]OFD Sender: No OFD packet to send [20:27:41]OFD Sender: No OFD packet to send [20:27:46]OFD Sender: No OFD packet to send [20:27:51]OFD Sender: No OFD packet to send [20:27:56]OFD Sender: No OFD packet to send [20:28:01]OFD Sender: No OFD packet to send [20:28:06]OFD Sender: No OFD packet to send [20:28:11]OFD Sender: No OFD packet to send [20:28:16]OFD Sender: No OFD packet to send [20:28:21]OFD Sender: No OFD packet to send [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:22]OFD Sender: No OFD packet to send [20:30:27]OFD Sender: No OFD packet to send [20:30:32]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:17]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:41]accept exits with 9 [20:38:41]New connection [20:38:41]New thread 3066580324 created [20:38:41]Thread 3066723684 joined [20:38:41]Waiting for new connection... [20:38:41] Sock 9.Parse request [20:38:41]Sock 9.Check first char [20:38:41]Sock 9.First char is OK [20:38:41]request: POST /json_proto HTTP/1.0 [20:38:41]Method: POST [20:38:41]URL: /json_proto [20:38:41]Method is POST - this is cgi request [20:38:41]url: /json_proto [20:38:41]query_string will be loaded in cgi processing [20:38:41]execute_cgi json_proto POST (null) [20:38:41]execute_cgi path=json_proto method=POST [20:38:41]POST find Content-Length [20:38:41]Host: 172.17.37.4:8080 [20:38:41]Content-Length: 682 [20:38:41]Content-Type: application/json [20:38:41] [20:38:41]POST finish read [20:38:41]Found Content-Length = 682 [20:38:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:41]execute_script... [20:38:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:41]POST & json_proto [20:38:41]process_json_proto [20:38:41]json parsed OK: [20:38:41]protocol is kg_v1.0 [20:38:41]action value=close_receipt [20:38:41]process_action close_receipt [20:38:41]cmd_close_receipt [20:38:41]MH_GetDate [20:38:41]Write to MH i2c: F0 00 00 8D 79 F5 [20:38:41]Write i2c OK [20:38:41]MH_I2C_Read... [20:38:41]Read from MH i2c: F0 [20:38:41]MH_I2C_Read... [20:38:41]Read from MH i2c: F0 09 00 [20:38:41]MH_I2C_Read... [20:38:41]Read from MH i2c: F0 09 00 8D 79 00 DE 31 46 67 B8 5A 43 67 76 [20:38:41]GetLastDocTimeStamp 1732651575 [20:38:41]current date 1732653534 [20:38:41]FM_GetShiftState [20:38:41]SAM_PROTO_GetShiftState [20:38:41]wFMCommunicate request_size=4 [20:38:41]MH_SAM_APDU [20:38:41]CAPDU: 80 13 01 00 [20:38:41]Write to MH i2c: E2 08 00 8E 79 80 13 01 00 00 00 00 00 84 [20:38:41]Write i2c OK [20:38:41]MH_I2C_Read... [20:38:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:41]Read from MH i2c: E2 [20:38:41]MH_I2C_Read... [20:38:41]Read from MH i2c: E2 0E 00 [20:38:41]MH_I2C_Read... [20:38:41]Read from MH i2c: E2 0E 00 8E 79 00 09 00 01 98 11 45 67 00 00 00 00 90 00 E5 [20:38:41]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [20:38:41]wFMCommunicate OK [20:38:41]SAM_PROTO_GetShiftState done [20:38:41]FM_GetShiftState done [20:38:41]opened in 1732579736 [20:38:41]opened+sec_in_day 1732666136 [20:38:41]quantity*price = 100021 [20:38:41]sum+1 = 100023 [20:38:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 173 26.11.2024 20:38 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123319 ФПД: 144240445368180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T203854&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123319&fm=144240445368180&tin=02508201610067®Number=0000000000092681&sum=100000 [20:38:42]StoreToDocumentArchive [20:38:42]shift 557 fd 123319 [20:38:42]save to /storage/0557/doc_00123319 [20:38:42]save last doc name /storage/0557/doc_00123319 to /storage/kkm_last_doc_name [20:38:42]save OK [20:38:42]Clear old archive folders... [20:38:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:38:42]tlvbuf is 01FF7280 [20:38:42]SAM_PROTO_ClearQueue [20:38:42]wFMCommunicate request_size=4 [20:38:42]MH_SAM_APDU [20:38:42]CAPDU: 80 09 00 00 [20:38:42]Write to MH i2c: E2 08 00 9B 79 80 09 00 00 00 00 00 00 86 [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:42]Read from MH i2c: E2 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 03 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 03 00 9B 79 00 90 00 88 [20:38:42]RAPDU: 90 00 [20:38:42]wFMCommunicate OK [20:38:42]SAM_PROTO_ClearQueue done [20:38:42]KKMCreateOFDPacket [20:38:42]OFDProtocolAddRootSTLVToBuf [20:38:42]FM_MakeSignedData [20:38:42]FM_MakeSignedData [20:38:42]SAM_PROTO_SignData [20:38:42]wFMCommunicate request_size=4 [20:38:42]MH_SAM_APDU [20:38:42]CAPDU: 80 0D 01 02 [20:38:42]Write to MH i2c: E2 08 00 9C 79 80 0D 01 02 00 00 00 00 8E [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:42]Read from MH i2c: E2 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 03 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 03 00 9C 79 00 90 00 89 [20:38:42]RAPDU: 90 00 [20:38:42]wFMCommunicate OK [20:38:42]wFMCommunicate request_size=255 [20:38:42]MH_SAM_APDU [20:38:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 DE 31 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B7 E1 01 00 35 04 06 00 83 [20:38:42]Write to MH i2c: E2 02 01 9D 79 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 DE 31 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B7 E1 01 00 35 04 06 00 83 00 00 99 [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:43]Read from MH i2c: E2 [20:38:43]MH_I2C_Read... [20:38:43]Read from MH i2c: E2 03 00 [20:38:43]MH_I2C_Read... [20:38:43]Read from MH i2c: E2 03 00 9D 79 00 90 00 8A [20:38:43]RAPDU: 90 00 [20:38:43]wFMCommunicate OK [20:38:43]wFMCommunicate request_size=10 [20:38:43]MH_SAM_APDU [20:38:43]CAPDU: 80 0D 02 02 05 2F 98 82 27 74 [20:38:43]Write to MH i2c: E2 0D 00 9E 79 80 0D 02 02 05 00 2F 98 82 27 74 00 00 7F [20:38:43]Write i2c OK [20:38:43]MH_I2C_Read... [20:38:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:43]Read from MH i2c: E2 [20:38:43]MH_I2C_Read... [20:38:43]Read from MH i2c: E2 03 00 [20:38:43]MH_I2C_Read... [20:38:43]Read from MH i2c: E2 03 00 9E 79 00 90 00 8B [20:38:43]RAPDU: 90 00 [20:38:43]wFMCommunicate OK [20:38:43]wFMCommunicate request_size=4 [20:38:43]MH_SAM_APDU [20:38:43]CAPDU: 80 0D 03 02 [20:38:43]Write to MH i2c: E2 08 00 9F 79 80 0D 03 02 00 00 00 00 93 [20:38:43]Write i2c OK [20:38:43]MH_I2C_Read... [20:38:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:43]Read from MH i2c: E2 [20:38:43]MH_I2C_Read... [20:38:43]Read from MH i2c: E2 0B 00 [20:38:43]MH_I2C_Read... [20:38:43]Read from MH i2c: E2 0B 00 9F 79 00 8B BC C3 BC F1 BF 2A 4D 90 00 81 [20:38:43]RAPDU: 8B BC C3 BC F1 BF 2A 4D 90 00 [20:38:43]wFMCommunicate OK [20:38:43]SAM_PROTO_SignData done [20:38:43]FM_MakeSignedData done [20:38:43]CreateOFDProtocolMessage [20:38:43]wFMCommunicate request_size=4 [20:38:43]MH_SAM_APDU [20:38:43]CAPDU: 80 11 00 00 [20:38:43]Write to MH i2c: E2 08 00 A0 79 80 11 00 00 00 00 00 00 93 [20:38:43]Write i2c OK [20:38:43]MH_I2C_Read... [20:38:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:43]Read from MH i2c: E2 [20:38:43]MH_I2C_Read... [20:38:43]Read from MH i2c: E2 17 00 [20:38:43]MH_I2C_Read... [20:38:43]Read from MH i2c: E2 17 00 A0 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EA [20:38:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:38:43]wFMCommunicate OK [20:38:43]CreateOFDProtocolMessage done [20:38:43]OFDSenderStorePacket 123319 [20:38:43]StoreOFDPacket docnum=123319 [20:38:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DB E4 07 01 92 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 DE 31 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B7 E1 01 00 35 04 06 00 83 2F 98 82 27 74 8B BC C3 BC F1 BF 2A 4D [20:38:43]CheckFolder [20:38:43]dirname=/storage/ofd_packets [20:38:43]CheckFolder done [20:38:43]ProducePacketName [20:38:43]name=ofd_packets/00123319 [20:38:43]NVStorageSaveData ofd_packets/00123319 [20:38:43]File name is /storage/ofd_packets/00123319 [20:38:43]Write 301 bytes [20:38:43]NVStorageSaveData done [20:38:43]OFDSenderStorePacket done [20:38:43]KKMCreateOFDPacket done [20:38:43]NVStorageSaveData kkm_last_timestamp [20:38:43]File name is /storage/kkm_last_timestamp [20:38:43]Write 4 bytes [20:38:43]NVStorageSaveData done [20:38:43]ExternCall_PrintAddStr [20:38:43]wPrintStart [20:38:43]Write to MH i2c: 01 00 00 A1 79 1A [20:38:43]Write i2c OK [20:38:43]MH_I2C_Read... [20:38:43]Read from MH i2c: 01 [20:38:43]MH_I2C_Read... [20:38:43]Read from MH i2c: 01 07 00 [20:38:43]MH_I2C_Read... [20:38:43]Read from MH i2c: 01 07 00 A1 79 00 00 00 00 00 FF 0F 2F [20:38:43]RasterBufferAndPrint [20:38:43]line Счет N : (1)718149 [20:38:43]line ИНН: 02508201610067 [20:38:43]line Контрольно-Кассовый Чек [20:38:43]line ПРОДАЖА [20:38:43]line ТРК (МРК, ГНК) : 42 [20:38:43]line Товар: 2710124130 [20:38:43]line Аи-92-К-4 [20:38:43]line 14.840 * 67.40 [20:38:43]line = 1000.22 [20:38:43]line НДС 12% НСП 1% [20:38:43]line > о реализуемом товаре [20:38:43]line ОКРУГЛЕНИЕ: -0.22 [20:38:43]line ИТОГО: 1000.00 [20:38:43]line Внесено: 1000.00 [20:38:43]line СДАЧА: 0.00 [20:38:43]line НСП 1% : 8.85 [20:38:43]line НДС 12% : 106.22 [20:38:43]line Наличными: 1000.00 [20:38:43]line Безнал.: 0.00 [20:38:43]line Место: АЗС № 64 "Партнер Нефть" [20:38:43]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [20:38:43]line СНО: Общий режим [20:38:43]line Чек 173 26.11.2024 20:38 [20:38:43]line Смена: 557 ФФД: 1.0 [20:38:43]line ЗНМ: 0300000033 [20:38:43]line РНМ: 0000000000092681 [20:38:43]line Версия ККМ: 001 [20:38:43]line ФМ: 0000000000874881 [20:38:43]line ФД: 123319 [20:38:43]line ФПД: 144240445368180 [20:38:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T203854&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123319&fm=144240445368180&tin=02508201610067®Number=0000000000092681&sum=100000 [20:38:43]OFD Sender: Processing packet 123319 [packets to send 7, broken 6] [20:38:43]ProducePacketName [20:38:43]name=ofd_packets/00123319 [20:38:43]OFD Sender: To server: pG, [20:38:43]CommunicateWithHost lk.salyk.kg:30040 [20:38:43]ConnectInit lk.salyk.kg [20:38:43]written 0, free lines is 4095 [20:38:43]Connected sock=10 [20:38:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 DB E4 07 01 92 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 DE 31 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B7 E1 01 00 35 04 06 00 83 2F 98 82 27 74 8B BC C3 BC F1 BF 2A 4D [20:38:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 30 05 47 00 D1 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B7 E1 01 00 F4 03 04 00 9F DD 45 67 B6 04 01 00 00 D2 BD 8D B3 58 98 51 89 [20:38:43]CommunicateWithHost err = 0 [20:38:43]CheckOFDResponse [20:38:43]1017 (14) - 77093643461234 [20:38:43]1041 (16) - 0000000000874881 [20:38:43]1040 (4) - 123319 [20:38:43]1012 (4) - 26.11.2024 14:39 [20:38:43]1206 (1) - 0 [20:38:43]OFD Sender: Remove packet 123319 [20:38:43]ProducePacketName [20:38:43]name=ofd_packets/00123319 [20:38:43]NVStorageDeleteData [20:38:44]Write to MH i2c: 01 00 00 CC 79 45 [20:38:44]Write i2c OK [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: 01 [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: 01 07 00 [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: 01 07 00 CC 79 00 00 00 00 00 56 0C AE [20:38:44]RasterBufferAndPrint [20:38:44]line [20:38:44]line [20:38:44]line [20:38:44]line [20:38:44]line [20:38:44]written 0, free lines is 3163 [20:38:44]MH_Cut [20:38:44]Write to MH i2c: D1 01 00 D3 79 01 1E [20:38:44]Write i2c OK [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: D1 [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: D1 01 00 [20:38:44]MH_I2C_Read... [20:38:44]Read from MH i2c: D1 01 00 D3 79 00 1D [20:38:44]Write to MH i2c: 01 00 00 D4 79 4D [20:38:44]Write i2c OK [20:38:44]MH_I2C_Read... [20:38:44]OFD Sender: No OFD packet to send [20:38:45]*** Cut start [20:38:45]*** Partial cut [20:38:45]*** CUTSNS_PIN = 1 [20:38:45]*** CUTSNS_PIN = 0 [20:38:45]*** Brake cut motor [20:38:46]Read from MH i2c: 01 [20:38:46]MH_I2C_Read... [20:38:46]*** Stop cut motor [20:38:46]*** Cut end [20:38:46]Read from MH i2c: 01 07 00 [20:38:46]MH_I2C_Read... [20:38:46]Read from MH i2c: 01 07 00 D4 79 00 00 00 00 00 FF 0F 62 [20:38:46]process_action close_receipt done [20:38:46]requested_data is exist [20:38:46]produce_requested_data [20:38:46]requested_item fm.sn is exist - process it [20:38:46]wFMCommunicate request_size=4 [20:38:46]MH_SAM_APDU [20:38:46]CAPDU: 80 11 00 00 [20:38:46]Write to MH i2c: E2 08 00 D5 79 80 11 00 00 00 00 00 00 C8 [20:38:46]Write i2c OK [20:38:46]MH_I2C_Read... [20:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:46]Read from MH i2c: E2 [20:38:46]MH_I2C_Read... [20:38:46]Read from MH i2c: E2 17 00 [20:38:46]MH_I2C_Read... [20:38:46]Read from MH i2c: E2 17 00 D5 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1F [20:38:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:38:46]wFMCommunicate OK [20:38:46]requested_item fd.num is exist - process it [20:38:46]SAM_PROTO_GetFieldsCounters [20:38:46]wFMCommunicate request_size=4 [20:38:46]MH_SAM_APDU [20:38:46]CAPDU: 80 13 00 00 [20:38:46]Write to MH i2c: E2 08 00 D6 79 80 13 00 00 00 00 00 00 CB [20:38:46]Write i2c OK [20:38:46]MH_I2C_Read... [20:38:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:46]Read from MH i2c: E2 [20:38:46]MH_I2C_Read... [20:38:46]Read from MH i2c: E2 62 00 [20:38:46]MH_I2C_Read... [20:38:46]Read from MH i2c: E2 62 00 D6 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B7 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [20:38:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B7 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:46]wFMCommunicate OK [20:38:46]SAM_PROTO_GetFieldsCounters done [20:38:46]requested_item shift.num is exist - process it [20:38:46]requested_item shift.opened is exist - process it [20:38:46]req_shift_opened [20:38:46]FM_GetShiftState [20:38:46]SAM_PROTO_GetShiftState [20:38:46]wFMCommunicate request_size=4 [20:38:46]MH_SAM_APDU [20:38:46]CAPDU: 80 13 01 00 [20:38:46]Write to MH i2c: E2 08 00 D7 79 80 13 01 00 00 00 00 00 CD [20:38:46]Write i2c OK [20:38:46]MH_I2C_Read... [20:38:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:46]Read from MH i2c: E2 [20:38:46]MH_I2C_Read... [20:38:46]Read from MH i2c: E2 0E 00 [20:38:46]MH_I2C_Read... [20:38:46]Read from MH i2c: E2 0E 00 D7 79 00 09 00 01 98 11 45 67 00 00 00 00 90 00 2E [20:38:46]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [20:38:46]wFMCommunicate OK [20:38:46]SAM_PROTO_GetShiftState done [20:38:46]FM_GetShiftState done [20:38:46]req_shift_opened done [20:38:46]requested_item shift.open_date is exist - process it [20:38:46]req_shift_open_date [20:38:46]req_shift_open_date done [20:38:46]produce_requested_data done [20:38:46]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123319,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [20:38:46]process_action_free close_receipt [20:38:46]json_value_free [20:38:46]json_value_free done [20:38:46]process_json_proto returns [20:38:46]Send response to host [20:38:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123319,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [20:38:46]free response buf [20:38:46]execute_script done [20:38:46]execute_script returns [20:38:46]free content buf [20:38:46]Sock 9.Close socket [20:38:46]Sock 9.Thread stoped [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:14]OFD Sender: No OFD packet to send [20:41:19]OFD Sender: No OFD packet to send [20:41:24]OFD Sender: No OFD packet to send [20:41:29]OFD Sender: No OFD packet to send [20:41:34]OFD Sender: No OFD packet to send [20:41:39]OFD Sender: No OFD packet to send [20:41:44]OFD Sender: No OFD packet to send [20:41:49]OFD Sender: No OFD packet to send [20:41:54]OFD Sender: No OFD packet to send [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:44]OFD Sender: No OFD packet to send [20:42:49]OFD Sender: No OFD packet to send [20:42:54]OFD Sender: No OFD packet to send [20:42:59]OFD Sender: No OFD packet to send [20:43:04]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]OFD Sender: No OFD packet to send [20:43:19]OFD Sender: No OFD packet to send [20:43:24]OFD Sender: No OFD packet to send [20:43:29]OFD Sender: No OFD packet to send [20:43:34]OFD Sender: No OFD packet to send [20:43:39]OFD Sender: No OFD packet to send [20:43:44]OFD Sender: No OFD packet to send [20:43:45]accept exits with 7 [20:43:45]New connection [20:43:45]New thread 3066723684 created [20:43:45]Thread 3066580324 joined [20:43:45]Waiting for new connection... [20:43:45] Sock 7.Parse request [20:43:45]Sock 7.Check first char [20:43:45]Sock 7.First char is OK [20:43:45]request: POST /json_proto HTTP/1.0 [20:43:45]Method: POST [20:43:45]URL: /json_proto [20:43:45]Method is POST - this is cgi request [20:43:45]url: /json_proto [20:43:45]query_string will be loaded in cgi processing [20:43:45]execute_cgi json_proto POST (null) [20:43:45]execute_cgi path=json_proto method=POST [20:43:45]POST find Content-Length [20:43:45]Host: 172.17.37.4:8080 [20:43:45]Content-Length: 807 [20:43:45]Content-Type: application/json [20:43:45] [20:43:45]POST finish read [20:43:45]Found Content-Length = 807 [20:43:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 48.370, "sum" : 3622.91, "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" : 3622.91 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:45]execute_script... [20:43:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 48.370, "sum" : 3622.91, "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" : 3622.91 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:45]POST & json_proto [20:43:45]process_json_proto [20:43:45]json parsed OK: [20:43:45]protocol is kg_v1.0 [20:43:45]action value=close_receipt [20:43:45]process_action close_receipt [20:43:45]cmd_close_receipt [20:43:45]MH_GetDate [20:43:45]Write to MH i2c: F0 00 00 D8 79 40 [20:43:45]Write i2c OK [20:43:45]MH_I2C_Read... [20:43:45]Read from MH i2c: F0 [20:43:45]MH_I2C_Read... [20:43:45]Read from MH i2c: F0 09 00 [20:43:45]MH_I2C_Read... [20:43:45]Read from MH i2c: F0 09 00 D8 79 00 0D 33 46 67 B8 5A 43 67 F2 [20:43:45]GetLastDocTimeStamp 1732653534 [20:43:45]current date 1732653837 [20:43:45]FM_GetShiftState [20:43:45]SAM_PROTO_GetShiftState [20:43:45]wFMCommunicate request_size=4 [20:43:45]MH_SAM_APDU [20:43:45]CAPDU: 80 13 01 00 [20:43:45]Write to MH i2c: E2 08 00 D9 79 80 13 01 00 00 00 00 00 CF [20:43:45]Write i2c OK [20:43:45]MH_I2C_Read... [20:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:45]Read from MH i2c: E2 [20:43:45]MH_I2C_Read... [20:43:45]Read from MH i2c: E2 0E 00 [20:43:45]MH_I2C_Read... [20:43:45]Read from MH i2c: E2 0E 00 D9 79 00 09 00 01 98 11 45 67 00 00 00 00 90 00 30 [20:43:45]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [20:43:45]wFMCommunicate OK [20:43:45]SAM_PROTO_GetShiftState done [20:43:45]FM_GetShiftState done [20:43:45]opened in 1732579736 [20:43:45]opened+sec_in_day 1732666136 [20:43:45]quantity*price = 362291 [20:43:45]sum+1 = 362292 [20:43:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3622.91 НСП 1% : 32.06 НДС 12% : 384.73 Наличными: 0.00 Безнал.: 3622.91 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 174 26.11.2024 20:43 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123320 ФПД: 102085868973457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T204357&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123320&fm=102085868973457&tin=02508201610067®Number=0000000000092681&sum=362291 [20:43:46]StoreToDocumentArchive [20:43:46]shift 557 fd 123320 [20:43:46]save to /storage/0557/doc_00123320 [20:43:46]save last doc name /storage/0557/doc_00123320 to /storage/kkm_last_doc_name [20:43:46]save OK [20:43:46]Clear old archive folders... [20:43:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:43:46]tlvbuf is 02071BC0 [20:43:46]SAM_PROTO_ClearQueue [20:43:46]wFMCommunicate request_size=4 [20:43:46]MH_SAM_APDU [20:43:46]CAPDU: 80 09 00 00 [20:43:46]Write to MH i2c: E2 08 00 E6 79 80 09 00 00 00 00 00 00 D1 [20:43:46]Write i2c OK [20:43:46]MH_I2C_Read... [20:43:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:46]Read from MH i2c: E2 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: E2 03 00 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: E2 03 00 E6 79 00 90 00 D3 [20:43:46]RAPDU: 90 00 [20:43:46]wFMCommunicate OK [20:43:46]SAM_PROTO_ClearQueue done [20:43:46]KKMCreateOFDPacket [20:43:46]OFDProtocolAddRootSTLVToBuf [20:43:46]FM_MakeSignedData [20:43:46]FM_MakeSignedData [20:43:46]SAM_PROTO_SignData [20:43:46]wFMCommunicate request_size=4 [20:43:46]MH_SAM_APDU [20:43:46]CAPDU: 80 0D 01 02 [20:43:46]Write to MH i2c: E2 08 00 E7 79 80 0D 01 02 00 00 00 00 D9 [20:43:46]Write i2c OK [20:43:46]MH_I2C_Read... [20:43:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:46]Read from MH i2c: E2 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: E2 03 00 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: E2 03 00 E7 79 00 90 00 D4 [20:43:46]RAPDU: 90 00 [20:43:46]wFMCommunicate OK [20:43:46]wFMCommunicate request_size=255 [20:43:46]MH_SAM_APDU [20:43:46]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 35 FF 03 08 00 03 F2 BC 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 33 87 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 87 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 87 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 0D 33 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B8 E1 01 00 35 04 06 00 [20:43:46]Write to MH i2c: E2 02 01 E8 79 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 35 FF 03 08 00 03 F2 BC 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 33 87 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 87 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 87 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 0D 33 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B8 E1 01 00 35 04 06 00 00 00 42 [20:43:46]Write i2c OK [20:43:46]MH_I2C_Read... [20:43:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:46]Read from MH i2c: E2 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: E2 03 00 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: E2 03 00 E8 79 00 90 00 D5 [20:43:46]RAPDU: 90 00 [20:43:46]wFMCommunicate OK [20:43:46]wFMCommunicate request_size=11 [20:43:46]MH_SAM_APDU [20:43:46]CAPDU: 80 0D 02 02 06 5C D8 B7 F4 ED 91 [20:43:46]Write to MH i2c: E2 0E 00 E9 79 80 0D 02 02 06 00 5C D8 B7 F4 ED 91 00 00 45 [20:43:46]Write i2c OK [20:43:46]MH_I2C_Read... [20:43:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:46]Read from MH i2c: E2 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: E2 03 00 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: E2 03 00 E9 79 00 90 00 D6 [20:43:46]RAPDU: 90 00 [20:43:46]wFMCommunicate OK [20:43:46]wFMCommunicate request_size=4 [20:43:46]MH_SAM_APDU [20:43:46]CAPDU: 80 0D 03 02 [20:43:46]Write to MH i2c: E2 08 00 EA 79 80 0D 03 02 00 00 00 00 DE [20:43:46]Write i2c OK [20:43:46]MH_I2C_Read... [20:43:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:43:46]Read from MH i2c: E2 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: E2 0B 00 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: E2 0B 00 EA 79 00 8D 01 F1 5D 40 AE 06 E8 90 00 97 [20:43:46]RAPDU: 8D 01 F1 5D 40 AE 06 E8 90 00 [20:43:46]wFMCommunicate OK [20:43:46]SAM_PROTO_SignData done [20:43:46]FM_MakeSignedData done [20:43:46]CreateOFDProtocolMessage [20:43:46]wFMCommunicate request_size=4 [20:43:46]MH_SAM_APDU [20:43:46]CAPDU: 80 11 00 00 [20:43:46]Write to MH i2c: E2 08 00 EB 79 80 11 00 00 00 00 00 00 DE [20:43:46]Write i2c OK [20:43:46]MH_I2C_Read... [20:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:46]Read from MH i2c: E2 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: E2 17 00 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: E2 17 00 EB 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 35 [20:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:43:46]wFMCommunicate OK [20:43:46]CreateOFDProtocolMessage done [20:43:46]OFDSenderStorePacket 123320 [20:43:46]StoreOFDPacket docnum=123320 [20:43:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 C1 F6 08 01 1B 73 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 35 FF 03 08 00 03 F2 BC 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 33 87 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 87 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 87 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 0D 33 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B8 E1 01 00 35 04 06 00 5C D8 B7 F4 ED 91 8D 01 F1 5D 40 AE 06 E8 [20:43:46]CheckFolder [20:43:46]dirname=/storage/ofd_packets [20:43:46]CheckFolder done [20:43:46]ProducePacketName [20:43:46]name=ofd_packets/00123320 [20:43:46]NVStorageSaveData ofd_packets/00123320 [20:43:46]File name is /storage/ofd_packets/00123320 [20:43:46]Write 302 bytes [20:43:46]NVStorageSaveData done [20:43:46]OFDSenderStorePacket done [20:43:46]KKMCreateOFDPacket done [20:43:46]NVStorageSaveData kkm_last_timestamp [20:43:46]File name is /storage/kkm_last_timestamp [20:43:46]Write 4 bytes [20:43:46]NVStorageSaveData done [20:43:46]ExternCall_PrintAddStr [20:43:46]wPrintStart [20:43:46]Write to MH i2c: 01 00 00 EC 79 65 [20:43:46]Write i2c OK [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: 01 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: 01 07 00 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: 01 07 00 EC 79 00 00 00 00 00 FF 0F 7A [20:43:46]RasterBufferAndPrint [20:43:46]line Счет N : (1)718150 [20:43:46]line ИНН: 02508201610067 [20:43:46]line Контрольно-Кассовый Чек [20:43:46]line ПРОДАЖА [20:43:46]line ТРК (МРК, ГНК) : 5 [20:43:46]line Товар: 2710194210 [20:43:46]line ДТ(л)-К-5 [20:43:46]line 48.370 * 74.90 [20:43:46]line = 3622.91 [20:43:46]line НДС 12% НСП 1% [20:43:46]line > о реализуемом товаре [20:43:46]line ИТОГО: 3622.91 [20:43:46]line НСП 1% : 32.06 [20:43:46]line НДС 12% : 384.73 [20:43:46]line Наличными: 0.00 [20:43:46]line Безнал.: 3622.91 [20:43:46]line Место: АЗС № 64 "Партнер Нефть" [20:43:46]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [20:43:46]line СНО: Общий режим [20:43:46]line Чек 174 26.11.2024 20:43 [20:43:46]line Смена: 557 ФФД: 1.0 [20:43:46]line ЗНМ: 0300000033 [20:43:46]line РНМ: 0000000000092681 [20:43:46]line Версия ККМ: 001 [20:43:46]line Платежная система: O! деньги [20:43:46]line ФМ: 0000000000874881 [20:43:46]line ФД: 123320 [20:43:46]line ФПД: 102085868973457 [20:43:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T204357&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123320&fm=102085868973457&tin=02508201610067®Number=0000000000092681&sum=362291 [20:43:47]OFD Sender: Processing packet 123320 [packets to send 7, broken 6] [20:43:47]ProducePacketName [20:43:47]name=ofd_packets/00123320 [20:43:47]OFD Sender: To server: pG, [20:43:47]CommunicateWithHost lk.salyk.kg:30040 [20:43:47]ConnectInit lk.salyk.kg [20:43:47]written 0, free lines is 4095 [20:43:47]Connected sock=10 [20:43:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 C1 F6 08 01 1B 73 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 35 FF 03 08 00 03 F2 BC 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 33 87 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 87 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 87 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 0D 33 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B8 E1 01 00 35 04 06 00 5C D8 B7 F4 ED 91 8D 01 F1 5D 40 AE 06 E8 [20:43:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 CB 7A 47 00 5D FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B8 E1 01 00 F4 03 04 00 CF DE 45 67 B6 04 01 00 00 88 2C F1 01 36 75 71 3E [20:43:47]CommunicateWithHost err = 0 [20:43:47]CheckOFDResponse [20:43:47]1017 (14) - 77093643461234 [20:43:47]1041 (16) - 0000000000874881 [20:43:47]1040 (4) - 123320 [20:43:47]1012 (4) - 26.11.2024 14:44 [20:43:47]1206 (1) - 0 [20:43:47]OFD Sender: Remove packet 123320 [20:43:47]ProducePacketName [20:43:47]name=ofd_packets/00123320 [20:43:47]NVStorageDeleteData [20:43:47]Write to MH i2c: 01 00 00 16 7A 90 [20:43:47]Write i2c OK [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: 01 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: 01 07 00 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: 01 07 00 16 7A 00 00 00 00 00 67 0C 0A [20:43:47]RasterBufferAndPrint [20:43:47]line [20:43:47]line [20:43:47]line [20:43:47]line [20:43:47]line [20:43:47]written 0, free lines is 3179 [20:43:47]MH_Cut [20:43:47]Write to MH i2c: D1 01 00 1D 7A 01 69 [20:43:47]Write i2c OK [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: D1 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: D1 01 00 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: D1 01 00 1D 7A 00 68 [20:43:47]Write to MH i2c: 01 00 00 1E 7A 98 [20:43:47]Write i2c OK [20:43:47]MH_I2C_Read... [20:43:48]OFD Sender: No OFD packet to send [20:43:49]*** Cut start [20:43:49]*** Partial cut [20:43:49]*** CUTSNS_PIN = 1 [20:43:49]*** CUTSNS_PIN = 0 [20:43:49]*** Brake cut motor [20:43:49]Read from MH i2c: 01 [20:43:49]MH_I2C_Read... [20:43:49]*** Stop cut motor [20:43:49]*** Cut end [20:43:49]Read from MH i2c: 01 07 00 [20:43:49]MH_I2C_Read... [20:43:49]Read from MH i2c: 01 07 00 1E 7A 00 00 00 00 00 FF 0F AD [20:43:49]process_action close_receipt done [20:43:49]requested_data is exist [20:43:49]produce_requested_data [20:43:49]requested_item fm.sn is exist - process it [20:43:49]wFMCommunicate request_size=4 [20:43:49]MH_SAM_APDU [20:43:49]CAPDU: 80 11 00 00 [20:43:49]Write to MH i2c: E2 08 00 1F 7A 80 11 00 00 00 00 00 00 13 [20:43:49]Write i2c OK [20:43:49]MH_I2C_Read... [20:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:49]Read from MH i2c: E2 [20:43:49]MH_I2C_Read... [20:43:49]Read from MH i2c: E2 17 00 [20:43:49]MH_I2C_Read... [20:43:49]Read from MH i2c: E2 17 00 1F 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6A [20:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:43:49]wFMCommunicate OK [20:43:49]requested_item fd.num is exist - process it [20:43:49]SAM_PROTO_GetFieldsCounters [20:43:49]wFMCommunicate request_size=4 [20:43:49]MH_SAM_APDU [20:43:49]CAPDU: 80 13 00 00 [20:43:49]Write to MH i2c: E2 08 00 20 7A 80 13 00 00 00 00 00 00 16 [20:43:49]Write i2c OK [20:43:49]MH_I2C_Read... [20:43:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:43:49]Read from MH i2c: E2 [20:43:49]MH_I2C_Read... [20:43:49]Read from MH i2c: E2 62 00 [20:43:49]MH_I2C_Read... [20:43:49]Read from MH i2c: E2 62 00 20 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B8 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [20:43:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B8 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:43:49]wFMCommunicate OK [20:43:49]SAM_PROTO_GetFieldsCounters done [20:43:49]requested_item shift.num is exist - process it [20:43:49]requested_item shift.opened is exist - process it [20:43:49]req_shift_opened [20:43:49]FM_GetShiftState [20:43:49]SAM_PROTO_GetShiftState [20:43:49]wFMCommunicate request_size=4 [20:43:49]MH_SAM_APDU [20:43:49]CAPDU: 80 13 01 00 [20:43:49]Write to MH i2c: E2 08 00 21 7A 80 13 01 00 00 00 00 00 18 [20:43:49]Write i2c OK [20:43:49]MH_I2C_Read... [20:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:49]Read from MH i2c: E2 [20:43:49]MH_I2C_Read... [20:43:49]Read from MH i2c: E2 0E 00 [20:43:49]MH_I2C_Read... [20:43:49]Read from MH i2c: E2 0E 00 21 7A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 79 [20:43:49]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [20:43:49]wFMCommunicate OK [20:43:49]SAM_PROTO_GetShiftState done [20:43:49]FM_GetShiftState done [20:43:49]req_shift_opened done [20:43:49]requested_item shift.open_date is exist - process it [20:43:49]req_shift_open_date [20:43:49]req_shift_open_date done [20:43:49]produce_requested_data done [20:43:49]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123320,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [20:43:49]process_action_free close_receipt [20:43:49]json_value_free [20:43:49]json_value_free done [20:43:49]process_json_proto returns [20:43:49]Send response to host [20:43:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123320,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [20:43:49]free response buf [20:43:49]execute_script done [20:43:49]execute_script returns [20:43:49]free content buf [20:43:49]Sock 7.Close socket [20:43:49]Sock 7.Thread stoped [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:33]OFD Sender: No OFD packet to send [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:53]OFD Sender: No OFD packet to send [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:15]accept exits with 9 [20:48:15]New connection [20:48:15]New thread 3066580324 created [20:48:15]Thread 3066723684 joined [20:48:15]Waiting for new connection... [20:48:15] Sock 9.Parse request [20:48:15]Sock 9.Check first char [20:48:15]Sock 9.First char is OK [20:48:15]request: POST /json_proto HTTP/1.0 [20:48:15]Method: POST [20:48:15]URL: /json_proto [20:48:15]Method is POST - this is cgi request [20:48:15]url: /json_proto [20:48:15]query_string will be loaded in cgi processing [20:48:15]execute_cgi json_proto POST (null) [20:48:15]execute_cgi path=json_proto method=POST [20:48:15]POST find Content-Length [20:48:15]Host: 172.17.37.4:8080 [20:48:15]Content-Length: 804 [20:48:15]Content-Type: application/json [20:48:15] [20:48:15]POST finish read [20:48:15]Found Content-Length = 804 [20:48:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 6.680, "sum" : 500.33, "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" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:15]execute_script... [20:48:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 6.680, "sum" : 500.33, "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" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:15]POST & json_proto [20:48:15]process_json_proto [20:48:15]json parsed OK: [20:48:15]protocol is kg_v1.0 [20:48:15]action value=close_receipt [20:48:15]process_action close_receipt [20:48:15]cmd_close_receipt [20:48:15]MH_GetDate [20:48:15]Write to MH i2c: F0 00 00 22 7A 8B [20:48:15]Write i2c OK [20:48:15]MH_I2C_Read... [20:48:15]Read from MH i2c: F0 [20:48:15]MH_I2C_Read... [20:48:15]Read from MH i2c: F0 09 00 [20:48:15]MH_I2C_Read... [20:48:15]Read from MH i2c: F0 09 00 22 7A 00 1C 34 46 67 B8 5A 43 67 4D [20:48:15]GetLastDocTimeStamp 1732653837 [20:48:15]current date 1732654108 [20:48:15]FM_GetShiftState [20:48:15]SAM_PROTO_GetShiftState [20:48:15]wFMCommunicate request_size=4 [20:48:15]MH_SAM_APDU [20:48:15]CAPDU: 80 13 01 00 [20:48:15]Write to MH i2c: E2 08 00 23 7A 80 13 01 00 00 00 00 00 1A [20:48:15]Write i2c OK [20:48:15]MH_I2C_Read... [20:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:15]Read from MH i2c: E2 [20:48:15]MH_I2C_Read... [20:48:15]Read from MH i2c: E2 0E 00 [20:48:15]MH_I2C_Read... [20:48:15]Read from MH i2c: E2 0E 00 23 7A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 7B [20:48:15]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [20:48:15]wFMCommunicate OK [20:48:15]SAM_PROTO_GetShiftState done [20:48:15]FM_GetShiftState done [20:48:15]opened in 1732579736 [20:48:15]opened+sec_in_day 1732666136 [20:48:15]quantity*price = 50033 [20:48:15]sum+1 = 50034 [20:48:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 175 26.11.2024 20:48 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123321 ФПД: 76561588200958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T204828&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123321&fm=76561588200958&tin=02508201610067®Number=0000000000092681&sum=50033 [20:48:16]StoreToDocumentArchive [20:48:16]shift 557 fd 123321 [20:48:16]save to /storage/0557/doc_00123321 [20:48:16]save last doc name /storage/0557/doc_00123321 to /storage/kkm_last_doc_name [20:48:16]save OK [20:48:16]Clear old archive folders... [20:48:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:48:16]tlvbuf is 021667B0 [20:48:16]SAM_PROTO_ClearQueue [20:48:16]wFMCommunicate request_size=4 [20:48:16]MH_SAM_APDU [20:48:16]CAPDU: 80 09 00 00 [20:48:16]Write to MH i2c: E2 08 00 30 7A 80 09 00 00 00 00 00 00 1C [20:48:16]Write i2c OK [20:48:16]MH_I2C_Read... [20:48:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:16]Read from MH i2c: E2 [20:48:16]MH_I2C_Read... [20:48:16]Read from MH i2c: E2 03 00 [20:48:16]MH_I2C_Read... [20:48:16]Read from MH i2c: E2 03 00 30 7A 00 90 00 1E [20:48:16]RAPDU: 90 00 [20:48:16]wFMCommunicate OK [20:48:16]SAM_PROTO_ClearQueue done [20:48:16]KKMCreateOFDPacket [20:48:16]OFDProtocolAddRootSTLVToBuf [20:48:16]FM_MakeSignedData [20:48:16]FM_MakeSignedData [20:48:16]SAM_PROTO_SignData [20:48:16]wFMCommunicate request_size=4 [20:48:16]MH_SAM_APDU [20:48:16]CAPDU: 80 0D 01 02 [20:48:16]Write to MH i2c: E2 08 00 31 7A 80 0D 01 02 00 00 00 00 24 [20:48:16]Write i2c OK [20:48:16]MH_I2C_Read... [20:48:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:16]Read from MH i2c: E2 [20:48:16]MH_I2C_Read... [20:48:16]Read from MH i2c: E2 03 00 [20:48:16]MH_I2C_Read... [20:48:16]Read from MH i2c: E2 03 00 31 7A 00 90 00 1F [20:48:16]RAPDU: 90 00 [20:48:16]wFMCommunicate OK [20:48:16]wFMCommunicate request_size=255 [20:48:16]MH_SAM_APDU [20:48:16]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 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 1C 34 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B9 E1 01 00 35 04 06 00 [20:48:16]Write to MH i2c: E2 02 01 32 7A 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 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 1C 34 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B9 E1 01 00 35 04 06 00 00 00 A2 [20:48:16]Write i2c OK [20:48:16]MH_I2C_Read... [20:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:17]Read from MH i2c: E2 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 03 00 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 03 00 32 7A 00 90 00 20 [20:48:17]RAPDU: 90 00 [20:48:17]wFMCommunicate OK [20:48:17]wFMCommunicate request_size=11 [20:48:17]MH_SAM_APDU [20:48:17]CAPDU: 80 0D 02 02 06 45 A1 E2 44 A5 FE [20:48:17]Write to MH i2c: E2 0E 00 33 7A 80 0D 02 02 06 00 45 A1 E2 44 A5 FE 00 00 E2 [20:48:17]Write i2c OK [20:48:17]MH_I2C_Read... [20:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:17]Read from MH i2c: E2 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 03 00 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 03 00 33 7A 00 90 00 21 [20:48:17]RAPDU: 90 00 [20:48:17]wFMCommunicate OK [20:48:17]wFMCommunicate request_size=4 [20:48:17]MH_SAM_APDU [20:48:17]CAPDU: 80 0D 03 02 [20:48:17]Write to MH i2c: E2 08 00 34 7A 80 0D 03 02 00 00 00 00 29 [20:48:17]Write i2c OK [20:48:17]MH_I2C_Read... [20:48:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:17]Read from MH i2c: E2 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 0B 00 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 0B 00 34 7A 00 88 5A 27 FF EA AE 0C 82 90 00 58 [20:48:17]RAPDU: 88 5A 27 FF EA AE 0C 82 90 00 [20:48:17]wFMCommunicate OK [20:48:17]SAM_PROTO_SignData done [20:48:17]FM_MakeSignedData done [20:48:17]CreateOFDProtocolMessage [20:48:17]wFMCommunicate request_size=4 [20:48:17]MH_SAM_APDU [20:48:17]CAPDU: 80 11 00 00 [20:48:17]Write to MH i2c: E2 08 00 35 7A 80 11 00 00 00 00 00 00 29 [20:48:17]Write i2c OK [20:48:17]MH_I2C_Read... [20:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:17]Read from MH i2c: E2 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 17 00 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 17 00 35 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 80 [20:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:48:17]wFMCommunicate OK [20:48:17]CreateOFDProtocolMessage done [20:48:17]OFDSenderStorePacket 123321 [20:48:17]StoreOFDPacket docnum=123321 [20:48:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 56 83 08 01 73 8B 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 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 1C 34 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B9 E1 01 00 35 04 06 00 45 A1 E2 44 A5 FE 88 5A 27 FF EA AE 0C 82 [20:48:17]CheckFolder [20:48:17]dirname=/storage/ofd_packets [20:48:17]CheckFolder done [20:48:17]ProducePacketName [20:48:17]name=ofd_packets/00123321 [20:48:17]NVStorageSaveData ofd_packets/00123321 [20:48:17]File name is /storage/ofd_packets/00123321 [20:48:17]Write 302 bytes [20:48:17]NVStorageSaveData done [20:48:17]OFDSenderStorePacket done [20:48:17]KKMCreateOFDPacket done [20:48:17]NVStorageSaveData kkm_last_timestamp [20:48:17]File name is /storage/kkm_last_timestamp [20:48:17]Write 4 bytes [20:48:17]NVStorageSaveData done [20:48:17]ExternCall_PrintAddStr [20:48:17]wPrintStart [20:48:17]Write to MH i2c: 01 00 00 36 7A B0 [20:48:17]Write i2c OK [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: 01 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: 01 07 00 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: 01 07 00 36 7A 00 00 00 00 00 FF 0F C5 [20:48:17]RasterBufferAndPrint [20:48:17]line Счет N : (1)718151 [20:48:17]line ИНН: 02508201610067 [20:48:17]line Контрольно-Кассовый Чек [20:48:17]line ПРОДАЖА [20:48:17]line ТРК (МРК, ГНК) : 6 [20:48:17]line Товар: 2710194210 [20:48:17]line ДТ(л)-К-5 [20:48:17]line 6.680 * 74.90 [20:48:17]line = 500.33 [20:48:17]line НДС 12% НСП 1% [20:48:17]line > о реализуемом товаре [20:48:17]line ИТОГО: 500.33 [20:48:17]line НСП 1% : 4.43 [20:48:17]line НДС 12% : 53.13 [20:48:17]line Наличными: 0.00 [20:48:17]line Безнал.: 500.33 [20:48:17]line Место: АЗС № 64 "Партнер Нефть" [20:48:17]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [20:48:17]line СНО: Общий режим [20:48:17]line Чек 175 26.11.2024 20:48 [20:48:17]line Смена: 557 ФФД: 1.0 [20:48:17]line ЗНМ: 0300000033 [20:48:17]line РНМ: 0000000000092681 [20:48:17]line Версия ККМ: 001 [20:48:17]line Платежная система: O! деньги [20:48:17]line ФМ: 0000000000874881 [20:48:17]line ФД: 123321 [20:48:17]line ФПД: 76561588200958 [20:48:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T204828&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123321&fm=76561588200958&tin=02508201610067®Number=0000000000092681&sum=50033 [20:48:17]written 0, free lines is 4095 [20:48:17]OFD Sender: Processing packet 123321 [packets to send 7, broken 6] [20:48:17]ProducePacketName [20:48:17]name=ofd_packets/00123321 [20:48:17]OFD Sender: To server: pG, [20:48:17]CommunicateWithHost lk.salyk.kg:30040 [20:48:17]ConnectInit lk.salyk.kg [20:48:17]Connected sock=10 [20:48:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 56 83 08 01 73 8B 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 35 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 1C 34 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B9 E1 01 00 35 04 06 00 45 A1 E2 44 A5 FE 88 5A 27 FF EA AE 0C 82 [20:48:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 83 15 47 00 05 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B9 E1 01 00 F4 03 04 00 DD DF 45 67 B6 04 01 00 00 77 D0 EA 61 70 26 66 81 [20:48:17]CommunicateWithHost err = 0 [20:48:17]CheckOFDResponse [20:48:17]1017 (14) - 77093643461234 [20:48:17]1041 (16) - 0000000000874881 [20:48:17]1040 (4) - 123321 [20:48:17]1012 (4) - 26.11.2024 14:49 [20:48:17]1206 (1) - 0 [20:48:17]OFD Sender: Remove packet 123321 [20:48:17]ProducePacketName [20:48:17]name=ofd_packets/00123321 [20:48:17]NVStorageDeleteData [20:48:18]Write to MH i2c: 01 00 00 60 7A DA [20:48:18]Write i2c OK [20:48:18]MH_I2C_Read... [20:48:18]Read from MH i2c: 01 [20:48:18]MH_I2C_Read... [20:48:18]Read from MH i2c: 01 07 00 [20:48:18]MH_I2C_Read... [20:48:18]Read from MH i2c: 01 07 00 60 7A 00 00 00 00 00 5E 0C 4B [20:48:18]RasterBufferAndPrint [20:48:18]line [20:48:18]line [20:48:18]line [20:48:18]line [20:48:18]line [20:48:18]written 0, free lines is 3172 [20:48:18]MH_Cut [20:48:18]Write to MH i2c: D1 01 00 67 7A 01 B3 [20:48:18]Write i2c OK [20:48:18]MH_I2C_Read... [20:48:18]Read from MH i2c: D1 [20:48:18]MH_I2C_Read... [20:48:18]Read from MH i2c: D1 01 00 [20:48:18]MH_I2C_Read... [20:48:18]Read from MH i2c: D1 01 00 67 7A 00 B2 [20:48:18]Write to MH i2c: 01 00 00 68 7A E2 [20:48:18]Write i2c OK [20:48:18]MH_I2C_Read... [20:48:18]OFD Sender: No OFD packet to send [20:48:19]*** Cut start [20:48:19]*** Partial cut [20:48:19]*** CUTSNS_PIN = 1 [20:48:19]*** CUTSNS_PIN = 0 [20:48:19]*** Brake cut motor [20:48:20]Read from MH i2c: 01 [20:48:20]MH_I2C_Read... [20:48:20]*** Stop cut motor [20:48:20]*** Cut end [20:48:20]Read from MH i2c: 01 07 00 [20:48:20]MH_I2C_Read... [20:48:20]Read from MH i2c: 01 07 00 68 7A 00 00 00 00 00 FF 0F F7 [20:48:20]process_action close_receipt done [20:48:20]requested_data is exist [20:48:20]produce_requested_data [20:48:20]requested_item fm.sn is exist - process it [20:48:20]wFMCommunicate request_size=4 [20:48:20]MH_SAM_APDU [20:48:20]CAPDU: 80 11 00 00 [20:48:20]Write to MH i2c: E2 08 00 69 7A 80 11 00 00 00 00 00 00 5D [20:48:20]Write i2c OK [20:48:20]MH_I2C_Read... [20:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:20]Read from MH i2c: E2 [20:48:20]MH_I2C_Read... [20:48:20]Read from MH i2c: E2 17 00 [20:48:20]MH_I2C_Read... [20:48:20]Read from MH i2c: E2 17 00 69 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B4 [20:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:48:20]wFMCommunicate OK [20:48:20]requested_item fd.num is exist - process it [20:48:20]SAM_PROTO_GetFieldsCounters [20:48:20]wFMCommunicate request_size=4 [20:48:20]MH_SAM_APDU [20:48:20]CAPDU: 80 13 00 00 [20:48:20]Write to MH i2c: E2 08 00 6A 7A 80 13 00 00 00 00 00 00 60 [20:48:20]Write i2c OK [20:48:20]MH_I2C_Read... [20:48:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:20]Read from MH i2c: E2 [20:48:20]MH_I2C_Read... [20:48:20]Read from MH i2c: E2 62 00 [20:48:20]MH_I2C_Read... [20:48:20]Read from MH i2c: E2 62 00 6A 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B9 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [20:48:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 B9 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:48:20]wFMCommunicate OK [20:48:20]SAM_PROTO_GetFieldsCounters done [20:48:20]requested_item shift.num is exist - process it [20:48:20]requested_item shift.opened is exist - process it [20:48:20]req_shift_opened [20:48:20]FM_GetShiftState [20:48:20]SAM_PROTO_GetShiftState [20:48:20]wFMCommunicate request_size=4 [20:48:20]MH_SAM_APDU [20:48:20]CAPDU: 80 13 01 00 [20:48:20]Write to MH i2c: E2 08 00 6B 7A 80 13 01 00 00 00 00 00 62 [20:48:20]Write i2c OK [20:48:20]MH_I2C_Read... [20:48:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:20]Read from MH i2c: E2 [20:48:20]MH_I2C_Read... [20:48:20]Read from MH i2c: E2 0E 00 [20:48:20]MH_I2C_Read... [20:48:20]Read from MH i2c: E2 0E 00 6B 7A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 C3 [20:48:20]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [20:48:20]wFMCommunicate OK [20:48:20]SAM_PROTO_GetShiftState done [20:48:20]FM_GetShiftState done [20:48:20]req_shift_opened done [20:48:20]requested_item shift.open_date is exist - process it [20:48:20]req_shift_open_date [20:48:20]req_shift_open_date done [20:48:20]produce_requested_data done [20:48:20]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123321,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [20:48:20]process_action_free close_receipt [20:48:20]json_value_free [20:48:20]json_value_free done [20:48:20]process_json_proto returns [20:48:20]Send response to host [20:48:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123321,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [20:48:20]free response buf [20:48:20]execute_script done [20:48:20]execute_script returns [20:48:20]free content buf [20:48:20]Sock 9.Close socket [20:48:20]Sock 9.Thread stoped [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [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:49]accept exits with 7 [20:49:49]New connection [20:49:49]New thread 3066723684 created [20:49:49]Thread 3066580324 joined [20:49:49]Waiting for new connection... [20:49:49] Sock 7.Parse request [20:49:49]Sock 7.Check first char [20:49:49]Sock 7.First char is OK [20:49:49]request: POST /json_proto HTTP/1.0 [20:49:49]Method: POST [20:49:49]URL: /json_proto [20:49:49]Method is POST - this is cgi request [20:49:49]url: /json_proto [20:49:49]query_string will be loaded in cgi processing [20:49:49]execute_cgi json_proto POST (null) [20:49:49]execute_cgi path=json_proto method=POST [20:49:49]POST find Content-Length [20:49:49]Host: 172.17.37.4:8080 [20:49:49]Content-Length: 800 [20:49:49]Content-Type: application/json [20:49:49] [20:49:49]POST finish read [20:49:49]Found Content-Length = 800 [20:49:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:49]execute_script... [20:49:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 4.460, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:49]POST & json_proto [20:49:49]process_json_proto [20:49:49]json parsed OK: [20:49:49]protocol is kg_v1.0 [20:49:49]action value=close_receipt [20:49:49]process_action close_receipt [20:49:49]cmd_close_receipt [20:49:49]MH_GetDate [20:49:49]Write to MH i2c: F0 00 00 6C 7A D5 [20:49:49]Write i2c OK [20:49:49]MH_I2C_Read... [20:49:49]Read from MH i2c: F0 [20:49:49]MH_I2C_Read... [20:49:49]Read from MH i2c: F0 09 00 [20:49:49]MH_I2C_Read... [20:49:49]Read from MH i2c: F0 09 00 6C 7A 00 7A 34 46 67 B8 5A 43 67 F5 [20:49:49]GetLastDocTimeStamp 1732654108 [20:49:49]current date 1732654202 [20:49:49]FM_GetShiftState [20:49:49]SAM_PROTO_GetShiftState [20:49:49]wFMCommunicate request_size=4 [20:49:49]MH_SAM_APDU [20:49:49]CAPDU: 80 13 01 00 [20:49:49]Write to MH i2c: E2 08 00 6D 7A 80 13 01 00 00 00 00 00 64 [20:49:49]Write i2c OK [20:49:49]MH_I2C_Read... [20:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:49]Read from MH i2c: E2 [20:49:49]MH_I2C_Read... [20:49:49]Read from MH i2c: E2 0E 00 [20:49:49]MH_I2C_Read... [20:49:49]Read from MH i2c: E2 0E 00 6D 7A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 C5 [20:49:49]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [20:49:49]wFMCommunicate OK [20:49:49]SAM_PROTO_GetShiftState done [20:49:49]FM_GetShiftState done [20:49:49]opened in 1732579736 [20:49:49]opened+sec_in_day 1732666136 [20:49:49]quantity*price = 30060 [20:49:49]sum+1 = 30061 [20:49:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.60 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.60 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 176 26.11.2024 20:50 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123322 ФПД: 184226491517837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T205002&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123322&fm=184226491517837&tin=02508201610067®Number=0000000000092681&sum=30060 [20:49:50]StoreToDocumentArchive [20:49:50]shift 557 fd 123322 [20:49:50]save to /storage/0557/doc_00123322 [20:49:50]save last doc name /storage/0557/doc_00123322 to /storage/kkm_last_doc_name [20:49:50]save OK [20:49:50]Clear old archive folders... [20:49:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:49:50]tlvbuf is 01F5E8E0 [20:49:50]SAM_PROTO_ClearQueue [20:49:50]wFMCommunicate request_size=4 [20:49:50]MH_SAM_APDU [20:49:50]CAPDU: 80 09 00 00 [20:49:50]Write to MH i2c: E2 08 00 7A 7A 80 09 00 00 00 00 00 00 66 [20:49:50]Write i2c OK [20:49:50]MH_I2C_Read... [20:49:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:50]Read from MH i2c: E2 [20:49:50]MH_I2C_Read... [20:49:50]Read from MH i2c: E2 03 00 [20:49:50]MH_I2C_Read... [20:49:50]Read from MH i2c: E2 03 00 7A 7A 00 90 00 68 [20:49:50]RAPDU: 90 00 [20:49:50]wFMCommunicate OK [20:49:50]SAM_PROTO_ClearQueue done [20:49:50]KKMCreateOFDPacket [20:49:50]OFDProtocolAddRootSTLVToBuf [20:49:50]FM_MakeSignedData [20:49:50]FM_MakeSignedData [20:49:50]SAM_PROTO_SignData [20:49:50]wFMCommunicate request_size=4 [20:49:50]MH_SAM_APDU [20:49:50]CAPDU: 80 0D 01 02 [20:49:50]Write to MH i2c: E2 08 00 7B 7A 80 0D 01 02 00 00 00 00 6E [20:49:50]Write i2c OK [20:49:50]MH_I2C_Read... [20:49:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:50]Read from MH i2c: E2 [20:49:50]MH_I2C_Read... [20:49:50]Read from MH i2c: E2 03 00 [20:49:50]MH_I2C_Read... [20:49:50]Read from MH i2c: E2 03 00 7B 7A 00 90 00 69 [20:49:50]RAPDU: 90 00 [20:49:50]wFMCommunicate OK [20:49:50]wFMCommunicate request_size=255 [20:49:50]MH_SAM_APDU [20:49:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 7A 34 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BA E1 01 00 35 04 06 00 A7 [20:49:50]Write to MH i2c: E2 02 01 7C 7A 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 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 7A 34 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BA E1 01 00 35 04 06 00 A7 00 00 16 [20:49:50]Write i2c OK [20:49:50]MH_I2C_Read... [20:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:51]Read from MH i2c: E2 [20:49:51]MH_I2C_Read... [20:49:51]Read from MH i2c: E2 03 00 [20:49:51]MH_I2C_Read... [20:49:51]Read from MH i2c: E2 03 00 7C 7A 00 90 00 6A [20:49:51]RAPDU: 90 00 [20:49:51]wFMCommunicate OK [20:49:51]wFMCommunicate request_size=10 [20:49:51]MH_SAM_APDU [20:49:51]CAPDU: 80 0D 02 02 05 8D 92 95 CB 8D [20:49:51]Write to MH i2c: E2 0D 00 7D 7A 80 0D 02 02 05 00 8D 92 95 CB 8D 00 00 87 [20:49:51]Write i2c OK [20:49:51]MH_I2C_Read... [20:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:51]Read from MH i2c: E2 [20:49:51]MH_I2C_Read... [20:49:51]Read from MH i2c: E2 03 00 [20:49:51]MH_I2C_Read... [20:49:51]Read from MH i2c: E2 03 00 7D 7A 00 90 00 6B [20:49:51]RAPDU: 90 00 [20:49:51]wFMCommunicate OK [20:49:51]wFMCommunicate request_size=4 [20:49:51]MH_SAM_APDU [20:49:51]CAPDU: 80 0D 03 02 [20:49:51]Write to MH i2c: E2 08 00 7E 7A 80 0D 03 02 00 00 00 00 73 [20:49:51]Write i2c OK [20:49:51]MH_I2C_Read... [20:49:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:51]Read from MH i2c: E2 [20:49:51]MH_I2C_Read... [20:49:51]Read from MH i2c: E2 0B 00 [20:49:51]MH_I2C_Read... [20:49:51]Read from MH i2c: E2 0B 00 7E 7A 00 72 ED FB A9 91 75 07 38 90 00 BC [20:49:51]RAPDU: 72 ED FB A9 91 75 07 38 90 00 [20:49:51]wFMCommunicate OK [20:49:51]SAM_PROTO_SignData done [20:49:51]FM_MakeSignedData done [20:49:51]CreateOFDProtocolMessage [20:49:51]wFMCommunicate request_size=4 [20:49:51]MH_SAM_APDU [20:49:51]CAPDU: 80 11 00 00 [20:49:51]Write to MH i2c: E2 08 00 7F 7A 80 11 00 00 00 00 00 00 73 [20:49:51]Write i2c OK [20:49:51]MH_I2C_Read... [20:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:51]Read from MH i2c: E2 [20:49:51]MH_I2C_Read... [20:49:51]Read from MH i2c: E2 17 00 [20:49:51]MH_I2C_Read... [20:49:51]Read from MH i2c: E2 17 00 7F 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CA [20:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:49:51]wFMCommunicate OK [20:49:51]CreateOFDProtocolMessage done [20:49:51]OFDSenderStorePacket 123322 [20:49:51]StoreOFDPacket docnum=123322 [20:49:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 14 CA 07 01 23 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 7A 34 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BA E1 01 00 35 04 06 00 A7 8D 92 95 CB 8D 72 ED FB A9 91 75 07 38 [20:49:51]CheckFolder [20:49:51]dirname=/storage/ofd_packets [20:49:51]CheckFolder done [20:49:51]ProducePacketName [20:49:51]name=ofd_packets/00123322 [20:49:51]NVStorageSaveData ofd_packets/00123322 [20:49:51]File name is /storage/ofd_packets/00123322 [20:49:51]Write 301 bytes [20:49:51]NVStorageSaveData done [20:49:51]OFDSenderStorePacket done [20:49:51]KKMCreateOFDPacket done [20:49:51]NVStorageSaveData kkm_last_timestamp [20:49:51]File name is /storage/kkm_last_timestamp [20:49:51]Write 4 bytes [20:49:51]NVStorageSaveData done [20:49:51]ExternCall_PrintAddStr [20:49:51]wPrintStart [20:49:51]Write to MH i2c: 01 00 00 80 7A FA [20:49:51]Write i2c OK [20:49:51]MH_I2C_Read... [20:49:51]Read from MH i2c: 01 [20:49:51]MH_I2C_Read... [20:49:51]Read from MH i2c: 01 07 00 [20:49:51]MH_I2C_Read... [20:49:51]Read from MH i2c: 01 07 00 80 7A 00 00 00 00 00 FF 0F 0F [20:49:51]RasterBufferAndPrint [20:49:51]line Счет N : (1)718152 [20:49:51]line ИНН: 02508201610067 [20:49:51]line Контрольно-Кассовый Чек [20:49:51]line ПРОДАЖА [20:49:51]line ТРК (МРК, ГНК) : 22 [20:49:51]line Товар: 2710124130 [20:49:51]line Аи-92-К-4 [20:49:51]line 4.460 * 67.40 [20:49:51]line = 300.60 [20:49:51]line НДС 12% НСП 1% [20:49:51]line > о реализуемом товаре [20:49:51]line ИТОГО: 300.60 [20:49:51]line НСП 1% : 2.66 [20:49:51]line НДС 12% : 31.92 [20:49:51]line Наличными: 0.00 [20:49:51]line Безнал.: 300.60 [20:49:51]line Место: АЗС № 64 "Партнер Нефть" [20:49:51]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [20:49:51]line СНО: Общий режим [20:49:51]line Чек 176 26.11.2024 20:50 [20:49:51]line Смена: 557 ФФД: 1.0 [20:49:51]line ЗНМ: 0300000033 [20:49:51]line РНМ: 0000000000092681 [20:49:51]line Версия ККМ: 001 [20:49:51]line Платежная система: O! деньги [20:49:51]line ФМ: 0000000000874881 [20:49:51]line ФД: 123322 [20:49:51]line ФПД: 184226491517837 [20:49:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T205002&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123322&fm=184226491517837&tin=02508201610067®Number=0000000000092681&sum=30060 [20:49:51]written 0, free lines is 4095 [20:49:51]OFD Sender: Processing packet 123322 [packets to send 7, broken 6] [20:49:51]ProducePacketName [20:49:51]name=ofd_packets/00123322 [20:49:51]OFD Sender: To server: pG, [20:49:51]CommunicateWithHost lk.salyk.kg:30040 [20:49:51]ConnectInit lk.salyk.kg [20:49:51]Connected sock=10 [20:49:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 14 CA 07 01 23 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 7A 34 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BA E1 01 00 35 04 06 00 A7 8D 92 95 CB 8D 72 ED FB A9 91 75 07 38 [20:49:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 8B 50 47 00 F2 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BA E1 01 00 F4 03 04 00 3B E0 45 67 B6 04 01 00 00 46 78 89 09 B8 AB 3E 5F [20:49:51]CommunicateWithHost err = 0 [20:49:51]CheckOFDResponse [20:49:51]1017 (14) - 77093643461234 [20:49:51]1041 (16) - 0000000000874881 [20:49:51]1040 (4) - 123322 [20:49:51]1012 (4) - 26.11.2024 14:50 [20:49:51]1206 (1) - 0 [20:49:51]OFD Sender: Remove packet 123322 [20:49:51]ProducePacketName [20:49:51]name=ofd_packets/00123322 [20:49:51]NVStorageDeleteData [20:49:51]Write to MH i2c: 01 00 00 AA 7A 24 [20:49:51]Write i2c OK [20:49:51]MH_I2C_Read... [20:49:51]Read from MH i2c: 01 [20:49:51]MH_I2C_Read... [20:49:51]Read from MH i2c: 01 07 00 [20:49:51]MH_I2C_Read... [20:49:52]Read from MH i2c: 01 07 00 AA 7A 00 00 00 00 00 5D 0C 94 [20:49:52]RasterBufferAndPrint [20:49:52]line [20:49:52]line [20:49:52]line [20:49:52]line [20:49:52]line [20:49:52]written 0, free lines is 3170 [20:49:52]MH_Cut [20:49:52]Write to MH i2c: D1 01 00 B1 7A 01 FD [20:49:52]Write i2c OK [20:49:52]MH_I2C_Read... [20:49:52]Read from MH i2c: D1 [20:49:52]MH_I2C_Read... [20:49:52]Read from MH i2c: D1 01 00 [20:49:52]MH_I2C_Read... [20:49:52]Read from MH i2c: D1 01 00 B1 7A 00 FC [20:49:52]Write to MH i2c: 01 00 00 B2 7A 2C [20:49:52]Write i2c OK [20:49:52]MH_I2C_Read... [20:49:52]OFD Sender: No OFD packet to send [20:49:53]*** Cut start [20:49:53]*** Partial cut [20:49:53]*** CUTSNS_PIN = 1 [20:49:53]*** CUTSNS_PIN = 0 [20:49:53]*** Brake cut motor [20:49:54]Read from MH i2c: 01 [20:49:54]MH_I2C_Read... [20:49:54]*** Stop cut motor [20:49:54]*** Cut end [20:49:54]Read from MH i2c: 01 07 00 [20:49:54]MH_I2C_Read... [20:49:54]Read from MH i2c: 01 07 00 B2 7A 00 00 00 00 00 FF 0F 41 [20:49:54]process_action close_receipt done [20:49:54]requested_data is exist [20:49:54]produce_requested_data [20:49:54]requested_item fm.sn is exist - process it [20:49:54]wFMCommunicate request_size=4 [20:49:54]MH_SAM_APDU [20:49:54]CAPDU: 80 11 00 00 [20:49:54]Write to MH i2c: E2 08 00 B3 7A 80 11 00 00 00 00 00 00 A7 [20:49:54]Write i2c OK [20:49:54]MH_I2C_Read... [20:49:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:54]Read from MH i2c: E2 [20:49:54]MH_I2C_Read... [20:49:54]Read from MH i2c: E2 17 00 [20:49:54]MH_I2C_Read... [20:49:54]Read from MH i2c: E2 17 00 B3 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FE [20:49:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [20:49:54]wFMCommunicate OK [20:49:54]requested_item fd.num is exist - process it [20:49:54]SAM_PROTO_GetFieldsCounters [20:49:54]wFMCommunicate request_size=4 [20:49:54]MH_SAM_APDU [20:49:54]CAPDU: 80 13 00 00 [20:49:54]Write to MH i2c: E2 08 00 B4 7A 80 13 00 00 00 00 00 00 AA [20:49:54]Write i2c OK [20:49:54]MH_I2C_Read... [20:49:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:54]Read from MH i2c: E2 [20:49:54]MH_I2C_Read... [20:49:54]Read from MH i2c: E2 62 00 [20:49:54]MH_I2C_Read... [20:49:54]Read from MH i2c: E2 62 00 B4 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BA E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [20:49:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BA E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:49:54]wFMCommunicate OK [20:49:54]SAM_PROTO_GetFieldsCounters done [20:49:54]requested_item shift.num is exist - process it [20:49:54]requested_item shift.opened is exist - process it [20:49:54]req_shift_opened [20:49:54]FM_GetShiftState [20:49:54]SAM_PROTO_GetShiftState [20:49:54]wFMCommunicate request_size=4 [20:49:54]MH_SAM_APDU [20:49:54]CAPDU: 80 13 01 00 [20:49:54]Write to MH i2c: E2 08 00 B5 7A 80 13 01 00 00 00 00 00 AC [20:49:54]Write i2c OK [20:49:54]MH_I2C_Read... [20:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:54]Read from MH i2c: E2 [20:49:54]MH_I2C_Read... [20:49:54]Read from MH i2c: E2 0E 00 [20:49:54]MH_I2C_Read... [20:49:54]Read from MH i2c: E2 0E 00 B5 7A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 0D [20:49:54]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [20:49:54]wFMCommunicate OK [20:49:54]SAM_PROTO_GetShiftState done [20:49:54]FM_GetShiftState done [20:49:54]req_shift_opened done [20:49:54]requested_item shift.open_date is exist - process it [20:49:54]req_shift_open_date [20:49:54]req_shift_open_date done [20:49:54]produce_requested_data done [20:49:54]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123322,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [20:49:54]process_action_free close_receipt [20:49:54]json_value_free [20:49:54]json_value_free done [20:49:54]process_json_proto returns [20:49:54]Send response to host [20:49:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123322,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [20:49:54]free response buf [20:49:54]execute_script done [20:49:54]execute_script returns [20:49:54]free content buf [20:49:54]Sock 7.Close socket [20:49:54]Sock 7.Thread stoped [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:32]OFD Sender: No OFD packet to send [21:00:37]OFD Sender: No OFD packet to send [21:00:42]OFD Sender: No OFD packet to send [21:00:47]OFD Sender: No OFD packet to send [21:00:52]OFD Sender: No OFD packet to send [21:00:57]OFD Sender: No OFD packet to send [21:01:02]OFD Sender: No OFD packet to send [21:01:07]OFD Sender: No OFD packet to send [21:01:12]OFD Sender: No OFD packet to send [21:01:17]OFD Sender: No OFD packet to send [21:01:22]OFD Sender: No OFD packet to send [21:01:27]OFD Sender: No OFD packet to send [21:01:32]OFD Sender: No OFD packet to send [21:01:37]OFD Sender: No OFD packet to send [21:01:42]OFD Sender: No OFD packet to send [21:01:47]OFD Sender: No OFD packet to send [21:01:52]OFD Sender: No OFD packet to send [21:01:57]OFD Sender: No OFD packet to send [21:02:02]OFD Sender: No OFD packet to send [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:50]accept exits with 9 [21:05:50]New connection [21:05:50]New thread 3066580324 created [21:05:50]Thread 3066723684 joined [21:05:50]Waiting for new connection... [21:05:50] Sock 9.Parse request [21:05:50]Sock 9.Check first char [21:05:50]Sock 9.First char is OK [21:05:50]request: POST /json_proto HTTP/1.0 [21:05:50]Method: POST [21:05:50]URL: /json_proto [21:05:50]Method is POST - this is cgi request [21:05:50]url: /json_proto [21:05:50]query_string will be loaded in cgi processing [21:05:50]execute_cgi json_proto POST (null) [21:05:50]execute_cgi path=json_proto method=POST [21:05:50]POST find Content-Length [21:05:50]Host: 172.17.37.4:8080 [21:05:50]Content-Length: 804 [21:05:50]Content-Type: application/json [21:05:50] [21:05:50]POST finish read [21:05:50]Found Content-Length = 804 [21:05:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 2.540, "sum" : 190.25, "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" : 190.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:50]execute_script... [21:05: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)718153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 2.540, "sum" : 190.25, "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" : 190.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:50]POST & json_proto [21:05:50]process_json_proto [21:05:50]json parsed OK: [21:05:50]protocol is kg_v1.0 [21:05:50]action value=close_receipt [21:05:50]process_action close_receipt [21:05:50]cmd_close_receipt [21:05:50]MH_GetDate [21:05:50]Write to MH i2c: F0 00 00 B6 7A 1F [21:05:50]Write i2c OK [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: F0 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: F0 09 00 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: F0 09 00 B6 7A 00 3B 38 46 67 B8 5A 43 67 04 [21:05:50]GetLastDocTimeStamp 1732654202 [21:05:50]current date 1732655163 [21:05:50]FM_GetShiftState [21:05:50]SAM_PROTO_GetShiftState [21:05:50]wFMCommunicate request_size=4 [21:05:50]MH_SAM_APDU [21:05:50]CAPDU: 80 13 01 00 [21:05:50]Write to MH i2c: E2 08 00 B7 7A 80 13 01 00 00 00 00 00 AE [21:05:50]Write i2c OK [21:05:50]MH_I2C_Read... [21:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:50]Read from MH i2c: E2 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: E2 0E 00 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: E2 0E 00 B7 7A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 0F [21:05:50]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [21:05:50]wFMCommunicate OK [21:05:50]SAM_PROTO_GetShiftState done [21:05:50]FM_GetShiftState done [21:05:50]opened in 1732579736 [21:05:50]opened+sec_in_day 1732666136 [21:05:50]quantity*price = 19024 [21:05:50]sum+1 = 19026 [21:05:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.25 НСП 1% : 1.68 НДС 12% : 20.20 Наличными: 0.00 Безнал.: 190.25 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 177 26.11.2024 21:06 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123323 ФПД: 70492701082382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T210603&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123323&fm=70492701082382&tin=02508201610067®Number=0000000000092681&sum=19025 [21:05:51]StoreToDocumentArchive [21:05:51]shift 557 fd 123323 [21:05:51]save to /storage/0557/doc_00123323 [21:05:51]save last doc name /storage/0557/doc_00123323 to /storage/kkm_last_doc_name [21:05:51]save OK [21:05:51]Clear old archive folders... [21:05:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:05:51]tlvbuf is 01F33A50 [21:05:51]SAM_PROTO_ClearQueue [21:05:51]wFMCommunicate request_size=4 [21:05:51]MH_SAM_APDU [21:05:51]CAPDU: 80 09 00 00 [21:05:51]Write to MH i2c: E2 08 00 C4 7A 80 09 00 00 00 00 00 00 B0 [21:05:51]Write i2c OK [21:05:51]MH_I2C_Read... [21:05:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:52]Read from MH i2c: E2 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 C4 7A 00 90 00 B2 [21:05:52]RAPDU: 90 00 [21:05:52]wFMCommunicate OK [21:05:52]SAM_PROTO_ClearQueue done [21:05:52]KKMCreateOFDPacket [21:05:52]OFDProtocolAddRootSTLVToBuf [21:05:52]FM_MakeSignedData [21:05:52]FM_MakeSignedData [21:05:52]SAM_PROTO_SignData [21:05:52]wFMCommunicate request_size=4 [21:05:52]MH_SAM_APDU [21:05:52]CAPDU: 80 0D 01 02 [21:05:52]Write to MH i2c: E2 08 00 C5 7A 80 0D 01 02 00 00 00 00 B8 [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:52]Read from MH i2c: E2 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 C5 7A 00 90 00 B3 [21:05:52]RAPDU: 90 00 [21:05:52]wFMCommunicate OK [21:05:52]wFMCommunicate request_size=255 [21:05:52]MH_SAM_APDU [21:05:52]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 35 FF 03 08 00 03 EC 09 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 51 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 51 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 51 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 3B 38 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BB E1 01 00 35 04 06 00 [21:05:52]Write to MH i2c: E2 02 01 C6 7A 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 35 FF 03 08 00 03 EC 09 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 51 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 51 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 51 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 3B 38 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BB E1 01 00 35 04 06 00 00 00 57 [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:52]Read from MH i2c: E2 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 C6 7A 00 90 00 B4 [21:05:52]RAPDU: 90 00 [21:05:52]wFMCommunicate OK [21:05:52]wFMCommunicate request_size=11 [21:05:52]MH_SAM_APDU [21:05:52]CAPDU: 80 0D 02 02 06 40 1C DC 68 43 0E [21:05:52]Write to MH i2c: E2 0E 00 C7 7A 80 0D 02 02 06 00 40 1C DC 68 43 0E 00 00 B8 [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:52]Read from MH i2c: E2 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 C7 7A 00 90 00 B5 [21:05:52]RAPDU: 90 00 [21:05:52]wFMCommunicate OK [21:05:52]wFMCommunicate request_size=4 [21:05:52]MH_SAM_APDU [21:05:52]CAPDU: 80 0D 03 02 [21:05:52]Write to MH i2c: E2 08 00 C8 7A 80 0D 03 02 00 00 00 00 BD [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:52]Read from MH i2c: E2 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 0B 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 0B 00 C8 7A 00 04 82 67 40 58 62 B4 3D 90 00 96 [21:05:52]RAPDU: 04 82 67 40 58 62 B4 3D 90 00 [21:05:52]wFMCommunicate OK [21:05:52]SAM_PROTO_SignData done [21:05:52]FM_MakeSignedData done [21:05:52]CreateOFDProtocolMessage [21:05:52]wFMCommunicate request_size=4 [21:05:52]MH_SAM_APDU [21:05:52]CAPDU: 80 11 00 00 [21:05:52]Write to MH i2c: E2 08 00 C9 7A 80 11 00 00 00 00 00 00 BD [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:52]Read from MH i2c: E2 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 17 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 17 00 C9 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 14 [21:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:05:52]wFMCommunicate OK [21:05:52]CreateOFDProtocolMessage done [21:05:52]OFDSenderStorePacket 123323 [21:05:52]StoreOFDPacket docnum=123323 [21:05:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 7C B4 08 01 35 54 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 35 FF 03 08 00 03 EC 09 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 51 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 51 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 51 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 3B 38 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BB E1 01 00 35 04 06 00 40 1C DC 68 43 0E 04 82 67 40 58 62 B4 3D [21:05:52]CheckFolder [21:05:52]dirname=/storage/ofd_packets [21:05:52]CheckFolder done [21:05:52]ProducePacketName [21:05:52]name=ofd_packets/00123323 [21:05:52]NVStorageSaveData ofd_packets/00123323 [21:05:52]File name is /storage/ofd_packets/00123323 [21:05:52]Write 302 bytes [21:05:52]NVStorageSaveData done [21:05:52]OFDSenderStorePacket done [21:05:52]KKMCreateOFDPacket done [21:05:52]NVStorageSaveData kkm_last_timestamp [21:05:52]File name is /storage/kkm_last_timestamp [21:05:52]Write 4 bytes [21:05:52]NVStorageSaveData done [21:05:52]ExternCall_PrintAddStr [21:05:52]wPrintStart [21:05:52]Write to MH i2c: 01 00 00 CA 7A 44 [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: 01 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: 01 07 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: 01 07 00 CA 7A 00 00 00 00 00 FF 0F 59 [21:05:52]RasterBufferAndPrint [21:05:52]line Счет N : (1)718153 [21:05:52]line ИНН: 02508201610067 [21:05:52]line Контрольно-Кассовый Чек [21:05:52]line ПРОДАЖА [21:05:52]line ТРК (МРК, ГНК) : 5 [21:05:52]line Товар: 2710194210 [21:05:52]line ДТ(л)-К-5 [21:05:52]line 2.540 * 74.90 [21:05:52]line = 190.25 [21:05:52]line НДС 12% НСП 1% [21:05:52]line > о реализуемом товаре [21:05:52]line ИТОГО: 190.25 [21:05:52]line НСП 1% : 1.68 [21:05:52]line НДС 12% : 20.20 [21:05:52]line Наличными: 0.00 [21:05:52]line Безнал.: 190.25 [21:05:52]line Место: АЗС № 64 "Партнер Нефть" [21:05:52]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [21:05:52]line СНО: Общий режим [21:05:52]line Чек 177 26.11.2024 21:06 [21:05:52]line Смена: 557 ФФД: 1.0 [21:05:52]line ЗНМ: 0300000033 [21:05:52]line РНМ: 0000000000092681 [21:05:52]line Версия ККМ: 001 [21:05:52]line Платежная система: O! деньги [21:05:52]line ФМ: 0000000000874881 [21:05:52]line ФД: 123323 [21:05:52]line ФПД: 70492701082382 [21:05:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T210603&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123323&fm=70492701082382&tin=02508201610067®Number=0000000000092681&sum=19025 [21:05:52]written 0, free lines is 4095 [21:05:52]OFD Sender: Processing packet 123323 [packets to send 7, broken 6] [21:05:52]ProducePacketName [21:05:52]name=ofd_packets/00123323 [21:05:52]OFD Sender: To server: pG, [21:05:52]CommunicateWithHost lk.salyk.kg:30040 [21:05:52]ConnectInit lk.salyk.kg [21:05:52]Connected sock=7 [21:05:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 7C B4 08 01 35 54 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 35 FF 03 08 00 03 EC 09 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 51 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 51 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 51 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 3B 38 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BB E1 01 00 35 04 06 00 40 1C DC 68 43 0E 04 82 67 40 58 62 B4 3D [21:05:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 03 30 47 00 1D DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BB E1 01 00 F4 03 04 00 FC E3 45 67 B6 04 01 00 00 F4 96 72 D0 BF 30 F5 50 [21:05:53]CommunicateWithHost err = 0 [21:05:53]CheckOFDResponse [21:05:53]1017 (14) - 77093643461234 [21:05:53]1041 (16) - 0000000000874881 [21:05:53]1040 (4) - 123323 [21:05:53]1012 (4) - 26.11.2024 15:06 [21:05:53]1206 (1) - 0 [21:05:53]OFD Sender: Remove packet 123323 [21:05:53]ProducePacketName [21:05:53]name=ofd_packets/00123323 [21:05:53]NVStorageDeleteData [21:05:53]Write to MH i2c: 01 00 00 F4 7A 6E [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 07 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 07 00 F4 7A 00 00 00 00 00 5F 0C E0 [21:05:53]RasterBufferAndPrint [21:05:53]line [21:05:53]line [21:05:53]line [21:05:53]line [21:05:53]line [21:05:53]written 0, free lines is 3173 [21:05:53]MH_Cut [21:05:53]Write to MH i2c: D1 01 00 FB 7A 01 47 [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: D1 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: D1 01 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: D1 01 00 FB 7A 00 46 [21:05:53]Write to MH i2c: 01 00 00 FC 7A 76 [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]OFD Sender: No OFD packet to send [21:05:54]*** Cut start [21:05:54]*** Partial cut [21:05:54]*** CUTSNS_PIN = 1 [21:05:54]*** CUTSNS_PIN = 0 [21:05:54]*** Brake cut motor [21:05:55]Read from MH i2c: 01 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: 01 07 00 [21:05:55]MH_I2C_Read... [21:05:55]*** Stop cut motor [21:05:55]*** Cut end [21:05:55]Read from MH i2c: 01 07 00 FC 7A 00 00 00 00 00 FF 0F 8B [21:05:55]process_action close_receipt done [21:05:55]requested_data is exist [21:05:55]produce_requested_data [21:05:55]requested_item fm.sn is exist - process it [21:05:55]wFMCommunicate request_size=4 [21:05:55]MH_SAM_APDU [21:05:55]CAPDU: 80 11 00 00 [21:05:55]Write to MH i2c: E2 08 00 FD 7A 80 11 00 00 00 00 00 00 F1 [21:05:55]Write i2c OK [21:05:55]MH_I2C_Read... [21:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:55]Read from MH i2c: E2 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: E2 17 00 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: E2 17 00 FD 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 48 [21:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:05:55]wFMCommunicate OK [21:05:55]requested_item fd.num is exist - process it [21:05:55]SAM_PROTO_GetFieldsCounters [21:05:55]wFMCommunicate request_size=4 [21:05:55]MH_SAM_APDU [21:05:55]CAPDU: 80 13 00 00 [21:05:55]Write to MH i2c: E2 08 00 FE 7A 80 13 00 00 00 00 00 00 F4 [21:05:55]Write i2c OK [21:05:55]MH_I2C_Read... [21:05:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:55]Read from MH i2c: E2 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: E2 62 00 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: E2 62 00 FE 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BB E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [21:05:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BB E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:55]wFMCommunicate OK [21:05:55]SAM_PROTO_GetFieldsCounters done [21:05:55]requested_item shift.num is exist - process it [21:05:55]requested_item shift.opened is exist - process it [21:05:55]req_shift_opened [21:05:55]FM_GetShiftState [21:05:55]SAM_PROTO_GetShiftState [21:05:55]wFMCommunicate request_size=4 [21:05:55]MH_SAM_APDU [21:05:55]CAPDU: 80 13 01 00 [21:05:55]Write to MH i2c: E2 08 00 FF 7A 80 13 01 00 00 00 00 00 F6 [21:05:55]Write i2c OK [21:05:55]MH_I2C_Read... [21:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:55]Read from MH i2c: E2 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: E2 0E 00 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: E2 0E 00 FF 7A 00 09 00 01 98 11 45 67 00 00 00 00 90 00 57 [21:05:55]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [21:05:55]wFMCommunicate OK [21:05:55]SAM_PROTO_GetShiftState done [21:05:55]FM_GetShiftState done [21:05:55]req_shift_opened done [21:05:55]requested_item shift.open_date is exist - process it [21:05:55]req_shift_open_date [21:05:55]req_shift_open_date done [21:05:55]produce_requested_data done [21:05:55]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123323,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [21:05:55]process_action_free close_receipt [21:05:55]json_value_free [21:05:55]json_value_free done [21:05:55]process_json_proto returns [21:05:55]Send response to host [21:05:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123323,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [21:05:55]free response buf [21:05:55]execute_script done [21:05:55]execute_script returns [21:05:55]free content buf [21:05:55]Sock 9.Close socket [21:05:55]Sock 9.Thread stoped [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:31]accept exits with 10 [21:14:31]New connection [21:14:31]New thread 3066723684 created [21:14:31]Thread 3066580324 joined [21:14:31]Waiting for new connection... [21:14:31] Sock 10.Parse request [21:14:31]Sock 10.Check first char [21:14:31]Sock 10.First char is OK [21:14:31]request: POST /json_proto HTTP/1.0 [21:14:31]Method: POST [21:14:31]URL: /json_proto [21:14:31]Method is POST - this is cgi request [21:14:31]url: /json_proto [21:14:31]query_string will be loaded in cgi processing [21:14:31]execute_cgi json_proto POST (null) [21:14:31]execute_cgi path=json_proto method=POST [21:14:31]POST find Content-Length [21:14:31]Host: 172.17.37.4:8080 [21:14:31]Content-Length: 677 [21:14:31]Content-Type: application/json [21:14:31] [21:14:31]POST finish read [21:14:31]Found Content-Length = 677 [21:14:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:31]execute_script... [21:14:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:31]POST & json_proto [21:14:31]process_json_proto [21:14:31]json parsed OK: [21:14:31]protocol is kg_v1.0 [21:14:31]action value=close_receipt [21:14:31]process_action close_receipt [21:14:31]cmd_close_receipt [21:14:31]MH_GetDate [21:14:31]Write to MH i2c: F0 00 00 00 7B 6A [21:14:31]Write i2c OK [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: F0 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: F0 09 00 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: F0 09 00 00 7B 00 44 3A 46 67 B8 5A 43 67 5A [21:14:31]GetLastDocTimeStamp 1732655163 [21:14:31]current date 1732655684 [21:14:31]FM_GetShiftState [21:14:31]SAM_PROTO_GetShiftState [21:14:31]wFMCommunicate request_size=4 [21:14:31]MH_SAM_APDU [21:14:31]CAPDU: 80 13 01 00 [21:14:31]Write to MH i2c: E2 08 00 01 7B 80 13 01 00 00 00 00 00 F9 [21:14:31]Write i2c OK [21:14:31]MH_I2C_Read... [21:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:31]Read from MH i2c: E2 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: E2 0E 00 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: E2 0E 00 01 7B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 5A [21:14:31]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [21:14:31]wFMCommunicate OK [21:14:31]SAM_PROTO_GetShiftState done [21:14:31]FM_GetShiftState done [21:14:31]opened in 1732579736 [21:14:31]opened+sec_in_day 1732666136 [21:14:31]quantity*price = 50010 [21:14:31]sum+1 = 50012 [21:14:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 178 26.11.2024 21:14 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123324 ФПД: 175582645243037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T211444&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123324&fm=175582645243037&tin=02508201610067®Number=0000000000092681&sum=50000 [21:14:32]StoreToDocumentArchive [21:14:32]shift 557 fd 123324 [21:14:32]save to /storage/0557/doc_00123324 [21:14:32]save last doc name /storage/0557/doc_00123324 to /storage/kkm_last_doc_name [21:14:32]save OK [21:14:32]Clear old archive folders... [21:14:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:14:32]tlvbuf is 01F42980 [21:14:32]SAM_PROTO_ClearQueue [21:14:32]wFMCommunicate request_size=4 [21:14:32]MH_SAM_APDU [21:14:32]CAPDU: 80 09 00 00 [21:14:32]Write to MH i2c: E2 08 00 0E 7B 80 09 00 00 00 00 00 00 FB [21:14:32]Write i2c OK [21:14:32]MH_I2C_Read... [21:14:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:32]Read from MH i2c: E2 [21:14:32]MH_I2C_Read... [21:14:32]Read from MH i2c: E2 03 00 [21:14:32]MH_I2C_Read... [21:14:32]Read from MH i2c: E2 03 00 0E 7B 00 90 00 FD [21:14:32]RAPDU: 90 00 [21:14:32]wFMCommunicate OK [21:14:32]SAM_PROTO_ClearQueue done [21:14:32]KKMCreateOFDPacket [21:14:32]OFDProtocolAddRootSTLVToBuf [21:14:32]FM_MakeSignedData [21:14:32]FM_MakeSignedData [21:14:32]SAM_PROTO_SignData [21:14:32]wFMCommunicate request_size=4 [21:14:32]MH_SAM_APDU [21:14:32]CAPDU: 80 0D 01 02 [21:14:32]Write to MH i2c: E2 08 00 0F 7B 80 0D 01 02 00 00 00 00 03 [21:14:32]Write i2c OK [21:14:32]MH_I2C_Read... [21:14:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:32]Read from MH i2c: E2 [21:14:32]MH_I2C_Read... [21:14:32]Read from MH i2c: E2 03 00 [21:14:32]MH_I2C_Read... [21:14:32]Read from MH i2c: E2 03 00 0F 7B 00 90 00 FE [21:14:32]RAPDU: 90 00 [21:14:32]wFMCommunicate OK [21:14:32]wFMCommunicate request_size=255 [21:14:32]MH_SAM_APDU [21:14:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 44 3A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BC E1 01 00 35 04 06 00 9F [21:14:32]Write to MH i2c: E2 02 01 10 7B 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 44 3A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BC E1 01 00 35 04 06 00 9F 00 00 B3 [21:14:32]Write i2c OK [21:14:32]MH_I2C_Read... [21:14:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:33]Read from MH i2c: E2 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: E2 03 00 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: E2 03 00 10 7B 00 90 00 FF [21:14:33]RAPDU: 90 00 [21:14:33]wFMCommunicate OK [21:14:33]wFMCommunicate request_size=10 [21:14:33]MH_SAM_APDU [21:14:33]CAPDU: 80 0D 02 02 05 B1 05 32 CC 9D [21:14:33]Write to MH i2c: E2 0D 00 11 7B 80 0D 02 02 05 00 B1 05 32 CC 9D 00 00 61 [21:14:33]Write i2c OK [21:14:33]MH_I2C_Read... [21:14:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:33]Read from MH i2c: E2 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: E2 03 00 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: E2 03 00 11 7B 00 90 00 00 [21:14:33]RAPDU: 90 00 [21:14:33]wFMCommunicate OK [21:14:33]wFMCommunicate request_size=4 [21:14:33]MH_SAM_APDU [21:14:33]CAPDU: 80 0D 03 02 [21:14:33]Write to MH i2c: E2 08 00 12 7B 80 0D 03 02 00 00 00 00 08 [21:14:33]Write i2c OK [21:14:33]MH_I2C_Read... [21:14:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:33]Read from MH i2c: E2 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: E2 0B 00 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: E2 0B 00 12 7B 00 D5 54 82 46 2E F4 2E DD 90 00 27 [21:14:33]RAPDU: D5 54 82 46 2E F4 2E DD 90 00 [21:14:33]wFMCommunicate OK [21:14:33]SAM_PROTO_SignData done [21:14:33]FM_MakeSignedData done [21:14:33]CreateOFDProtocolMessage [21:14:33]wFMCommunicate request_size=4 [21:14:33]MH_SAM_APDU [21:14:33]CAPDU: 80 11 00 00 [21:14:33]Write to MH i2c: E2 08 00 13 7B 80 11 00 00 00 00 00 00 08 [21:14:33]Write i2c OK [21:14:33]MH_I2C_Read... [21:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:33]Read from MH i2c: E2 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: E2 17 00 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: E2 17 00 13 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5F [21:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:14:33]wFMCommunicate OK [21:14:33]CreateOFDProtocolMessage done [21:14:33]OFDSenderStorePacket 123324 [21:14:33]StoreOFDPacket docnum=123324 [21:14:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3F 47 07 01 6E E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 44 3A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BC E1 01 00 35 04 06 00 9F B1 05 32 CC 9D D5 54 82 46 2E F4 2E DD [21:14:33]CheckFolder [21:14:33]dirname=/storage/ofd_packets [21:14:33]CheckFolder done [21:14:33]ProducePacketName [21:14:33]name=ofd_packets/00123324 [21:14:33]NVStorageSaveData ofd_packets/00123324 [21:14:33]File name is /storage/ofd_packets/00123324 [21:14:33]Write 301 bytes [21:14:33]NVStorageSaveData done [21:14:33]OFDSenderStorePacket done [21:14:33]KKMCreateOFDPacket done [21:14:33]NVStorageSaveData kkm_last_timestamp [21:14:33]File name is /storage/kkm_last_timestamp [21:14:33]Write 4 bytes [21:14:33]NVStorageSaveData done [21:14:33]ExternCall_PrintAddStr [21:14:33]wPrintStart [21:14:33]Write to MH i2c: 01 00 00 14 7B 8F [21:14:33]Write i2c OK [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: 01 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: 01 07 00 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: 01 07 00 14 7B 00 00 00 00 00 FF 0F A4 [21:14:33]RasterBufferAndPrint [21:14:33]line Счет N : (1)718154 [21:14:33]line ИНН: 02508201610067 [21:14:33]line Контрольно-Кассовый Чек [21:14:33]line ПРОДАЖА [21:14:33]line ТРК (МРК, ГНК) : 22 [21:14:33]line Товар: 2710124130 [21:14:33]line Аи-92-К-4 [21:14:33]line 7.420 * 67.40 [21:14:33]line = 500.11 [21:14:33]line НДС 12% НСП 1% [21:14:33]line > о реализуемом товаре [21:14:33]line ОКРУГЛЕНИЕ: -0.11 [21:14:33]line ИТОГО: 500.00 [21:14:33]line Внесено: 500.00 [21:14:33]line СДАЧА: 0.00 [21:14:33]line НСП 1% : 4.43 [21:14:33]line НДС 12% : 53.11 [21:14:33]line Наличными: 500.00 [21:14:33]line Безнал.: 0.00 [21:14:33]line Место: АЗС № 64 "Партнер Нефть" [21:14:33]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [21:14:33]line СНО: Общий режим [21:14:33]line Чек 178 26.11.2024 21:14 [21:14:33]line Смена: 557 ФФД: 1.0 [21:14:33]line ЗНМ: 0300000033 [21:14:33]line РНМ: 0000000000092681 [21:14:33]line Версия ККМ: 001 [21:14:33]line ФМ: 0000000000874881 [21:14:33]line ФД: 123324 [21:14:33]line ФПД: 175582645243037 [21:14:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T211444&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123324&fm=175582645243037&tin=02508201610067®Number=0000000000092681&sum=50000 [21:14:33]OFD Sender: Processing packet 123324 [packets to send 7, broken 6] [21:14:33]ProducePacketName [21:14:33]name=ofd_packets/00123324 [21:14:33]OFD Sender: To server: pG, [21:14:33]CommunicateWithHost lk.salyk.kg:30040 [21:14:33]ConnectInit lk.salyk.kg [21:14:33]written 0, free lines is 4095 [21:14:33]Connected sock=7 [21:14:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3F 47 07 01 6E E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 44 3A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BC E1 01 00 35 04 06 00 9F B1 05 32 CC 9D D5 54 82 46 2E F4 2E DD [21:14:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 2E 27 47 00 9F EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BC E1 01 00 F4 03 04 00 05 E6 45 67 B6 04 01 00 00 2F D5 E3 E8 76 A5 E0 E0 [21:14:33]CommunicateWithHost err = 0 [21:14:33]CheckOFDResponse [21:14:33]1017 (14) - 77093643461234 [21:14:33]1041 (16) - 0000000000874881 [21:14:33]1040 (4) - 123324 [21:14:33]1012 (4) - 26.11.2024 15:15 [21:14:33]1206 (1) - 0 [21:14:33]OFD Sender: Remove packet 123324 [21:14:33]ProducePacketName [21:14:33]name=ofd_packets/00123324 [21:14:33]NVStorageDeleteData [21:14:34]Write to MH i2c: 01 00 00 3F 7B BA [21:14:34]Write i2c OK [21:14:34]MH_I2C_Read... [21:14:34]Read from MH i2c: 01 [21:14:34]MH_I2C_Read... [21:14:34]Read from MH i2c: 01 07 00 [21:14:34]MH_I2C_Read... [21:14:34]Read from MH i2c: 01 07 00 3F 7B 00 00 00 00 00 44 0C 11 [21:14:34]RasterBufferAndPrint [21:14:34]line [21:14:34]line [21:14:34]line [21:14:34]line [21:14:34]line [21:14:34]written 0, free lines is 3146 [21:14:34]MH_Cut [21:14:34]Write to MH i2c: D1 01 00 46 7B 01 93 [21:14:34]Write i2c OK [21:14:34]MH_I2C_Read... [21:14:34]Read from MH i2c: D1 [21:14:34]MH_I2C_Read... [21:14:34]Read from MH i2c: D1 01 00 [21:14:34]MH_I2C_Read... [21:14:34]Read from MH i2c: D1 01 00 46 7B 00 92 [21:14:34]Write to MH i2c: 01 00 00 47 7B C2 [21:14:34]Write i2c OK [21:14:34]MH_I2C_Read... [21:14:34]OFD Sender: No OFD packet to send [21:14:35]*** Cut start [21:14:35]*** Partial cut [21:14:35]*** CUTSNS_PIN = 1 [21:14:35]*** CUTSNS_PIN = 0 [21:14:35]*** Brake cut motor [21:14:36]Read from MH i2c: 01 [21:14:36]MH_I2C_Read... [21:14:36]*** Stop cut motor [21:14:36]*** Cut end [21:14:36]Read from MH i2c: 01 07 00 [21:14:36]MH_I2C_Read... [21:14:36]Read from MH i2c: 01 07 00 47 7B 00 00 00 00 00 FF 0F D7 [21:14:36]process_action close_receipt done [21:14:36]requested_data is exist [21:14:36]produce_requested_data [21:14:36]requested_item fm.sn is exist - process it [21:14:36]wFMCommunicate request_size=4 [21:14:36]MH_SAM_APDU [21:14:36]CAPDU: 80 11 00 00 [21:14:36]Write to MH i2c: E2 08 00 48 7B 80 11 00 00 00 00 00 00 3D [21:14:36]Write i2c OK [21:14:36]MH_I2C_Read... [21:14:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:36]Read from MH i2c: E2 [21:14:36]MH_I2C_Read... [21:14:36]Read from MH i2c: E2 17 00 [21:14:36]MH_I2C_Read... [21:14:36]Read from MH i2c: E2 17 00 48 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 94 [21:14:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:14:36]wFMCommunicate OK [21:14:36]requested_item fd.num is exist - process it [21:14:36]SAM_PROTO_GetFieldsCounters [21:14:36]wFMCommunicate request_size=4 [21:14:36]MH_SAM_APDU [21:14:36]CAPDU: 80 13 00 00 [21:14:36]Write to MH i2c: E2 08 00 49 7B 80 13 00 00 00 00 00 00 40 [21:14:36]Write i2c OK [21:14:36]MH_I2C_Read... [21:14:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:36]Read from MH i2c: E2 [21:14:36]MH_I2C_Read... [21:14:36]Read from MH i2c: E2 62 00 [21:14:36]MH_I2C_Read... [21:14:36]Read from MH i2c: E2 62 00 49 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BC E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [21:14:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BC E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:14:36]wFMCommunicate OK [21:14:36]SAM_PROTO_GetFieldsCounters done [21:14:36]requested_item shift.num is exist - process it [21:14:36]requested_item shift.opened is exist - process it [21:14:36]req_shift_opened [21:14:36]FM_GetShiftState [21:14:36]SAM_PROTO_GetShiftState [21:14:36]wFMCommunicate request_size=4 [21:14:36]MH_SAM_APDU [21:14:36]CAPDU: 80 13 01 00 [21:14:36]Write to MH i2c: E2 08 00 4A 7B 80 13 01 00 00 00 00 00 42 [21:14:36]Write i2c OK [21:14:36]MH_I2C_Read... [21:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:36]Read from MH i2c: E2 [21:14:36]MH_I2C_Read... [21:14:36]Read from MH i2c: E2 0E 00 [21:14:36]MH_I2C_Read... [21:14:36]Read from MH i2c: E2 0E 00 4A 7B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 A3 [21:14:36]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [21:14:36]wFMCommunicate OK [21:14:36]SAM_PROTO_GetShiftState done [21:14:36]FM_GetShiftState done [21:14:36]req_shift_opened done [21:14:36]requested_item shift.open_date is exist - process it [21:14:36]req_shift_open_date [21:14:36]req_shift_open_date done [21:14:36]produce_requested_data done [21:14:36]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123324,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [21:14:36]process_action_free close_receipt [21:14:36]json_value_free [21:14:36]json_value_free done [21:14:36]process_json_proto returns [21:14:36]Send response to host [21:14:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123324,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [21:14:36]free response buf [21:14:36]execute_script done [21:14:36]execute_script returns [21:14:36]free content buf [21:14:36]Sock 10.Close socket [21:14:36]Sock 10.Thread stoped [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:22:59]accept exits with 9 [21:22:59]New connection [21:22:59]New thread 3066580324 created [21:22:59]Thread 3066723684 joined [21:22:59]Waiting for new connection... [21:22:59] Sock 9.Parse request [21:22:59]Sock 9.Check first char [21:22:59]Sock 9.First char is OK [21:22:59]request: POST /json_proto HTTP/1.0 [21:22:59]Method: POST [21:22:59]URL: /json_proto [21:22:59]Method is POST - this is cgi request [21:22:59]url: /json_proto [21:22:59]query_string will be loaded in cgi processing [21:22:59]execute_cgi json_proto POST (null) [21:22:59]execute_cgi path=json_proto method=POST [21:22:59]POST find Content-Length [21:22:59]Host: 172.17.37.4:8080 [21:22:59]Content-Length: 677 [21:22:59]Content-Type: application/json [21:22:59] [21:22:59]POST finish read [21:22:59]Found Content-Length = 677 [21:22:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 6.640, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:59]execute_script... [21:22:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 75.40, "quantity" : 6.640, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:59]POST & json_proto [21:22:59]process_json_proto [21:22:59]json parsed OK: [21:22:59]protocol is kg_v1.0 [21:22:59]action value=close_receipt [21:22:59]process_action close_receipt [21:22:59]cmd_close_receipt [21:22:59]MH_GetDate [21:22:59]Write to MH i2c: F0 00 00 4B 7B B5 [21:22:59]Write i2c OK [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: F0 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: F0 09 00 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: F0 09 00 4B 7B 00 40 3C 46 67 B8 5A 43 67 A3 [21:22:59]GetLastDocTimeStamp 1732655684 [21:22:59]current date 1732656192 [21:22:59]FM_GetShiftState [21:22:59]SAM_PROTO_GetShiftState [21:22:59]wFMCommunicate request_size=4 [21:22:59]MH_SAM_APDU [21:22:59]CAPDU: 80 13 01 00 [21:22:59]Write to MH i2c: E2 08 00 4C 7B 80 13 01 00 00 00 00 00 44 [21:22:59]Write i2c OK [21:22:59]MH_I2C_Read... [21:22:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:59]Read from MH i2c: E2 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 0E 00 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 0E 00 4C 7B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 A5 [21:22:59]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [21:22:59]wFMCommunicate OK [21:22:59]SAM_PROTO_GetShiftState done [21:22:59]FM_GetShiftState done [21:22:59]opened in 1732579736 [21:22:59]opened+sec_in_day 1732666136 [21:22:59]quantity*price = 50065 [21:22:59]sum+1 = 50067 [21:22:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 179 26.11.2024 21:23 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123325 ФПД: 268979413347654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T212312&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123325&fm=268979413347654&tin=02508201610067®Number=0000000000092681&sum=50000 [21:23:01]StoreToDocumentArchive [21:23:01]shift 557 fd 123325 [21:23:01]save to /storage/0557/doc_00123325 [21:23:01]save last doc name /storage/0557/doc_00123325 to /storage/kkm_last_doc_name [21:23:01]save OK [21:23:01]Clear old archive folders... [21:23:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:23:01]tlvbuf is 0212B9A0 [21:23:01]SAM_PROTO_ClearQueue [21:23:01]wFMCommunicate request_size=4 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 09 00 00 [21:23:01]Write to MH i2c: E2 08 00 59 7B 80 09 00 00 00 00 00 00 46 [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:01]Read from MH i2c: E2 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 59 7B 00 90 00 48 [21:23:01]RAPDU: 90 00 [21:23:01]wFMCommunicate OK [21:23:01]SAM_PROTO_ClearQueue done [21:23:01]KKMCreateOFDPacket [21:23:01]OFDProtocolAddRootSTLVToBuf [21:23:01]FM_MakeSignedData [21:23:01]FM_MakeSignedData [21:23:01]SAM_PROTO_SignData [21:23:01]wFMCommunicate request_size=4 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 0D 01 02 [21:23:01]Write to MH i2c: E2 08 00 5A 7B 80 0D 01 02 00 00 00 00 4E [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:01]Read from MH i2c: E2 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 5A 7B 00 90 00 49 [21:23:01]RAPDU: 90 00 [21:23:01]wFMCommunicate OK [21:23:01]wFMCommunicate request_size=255 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 40 3C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BD E1 01 00 35 04 06 00 F4 [21:23:01]Write to MH i2c: E2 02 01 5B 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 40 3C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BD E1 01 00 35 04 06 00 F4 00 00 A9 [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:01]Read from MH i2c: E2 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 5B 7B 00 90 00 4A [21:23:01]RAPDU: 90 00 [21:23:01]wFMCommunicate OK [21:23:01]wFMCommunicate request_size=10 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 0D 02 02 05 A2 A6 62 6D 46 [21:23:01]Write to MH i2c: E2 0D 00 5C 7B 80 0D 02 02 05 00 A2 A6 62 6D 46 00 00 B8 [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:01]Read from MH i2c: E2 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 5C 7B 00 90 00 4B [21:23:01]RAPDU: 90 00 [21:23:01]wFMCommunicate OK [21:23:01]wFMCommunicate request_size=4 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 0D 03 02 [21:23:01]Write to MH i2c: E2 08 00 5D 7B 80 0D 03 02 00 00 00 00 53 [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:01]Read from MH i2c: E2 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 0B 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 0B 00 5D 7B 00 93 D3 0D 55 5D 6E 7F BC 90 00 22 [21:23:01]RAPDU: 93 D3 0D 55 5D 6E 7F BC 90 00 [21:23:01]wFMCommunicate OK [21:23:01]SAM_PROTO_SignData done [21:23:01]FM_MakeSignedData done [21:23:01]CreateOFDProtocolMessage [21:23:01]wFMCommunicate request_size=4 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 11 00 00 [21:23:01]Write to MH i2c: E2 08 00 5E 7B 80 11 00 00 00 00 00 00 53 [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:01]Read from MH i2c: E2 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 17 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 17 00 5E 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AA [21:23:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:23:01]wFMCommunicate OK [21:23:01]CreateOFDProtocolMessage done [21:23:01]OFDSenderStorePacket 123325 [21:23:01]StoreOFDPacket docnum=123325 [21:23:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 32 89 07 01 D5 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 40 3C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BD E1 01 00 35 04 06 00 F4 A2 A6 62 6D 46 93 D3 0D 55 5D 6E 7F BC [21:23:01]CheckFolder [21:23:01]dirname=/storage/ofd_packets [21:23:01]CheckFolder done [21:23:01]ProducePacketName [21:23:01]name=ofd_packets/00123325 [21:23:01]NVStorageSaveData ofd_packets/00123325 [21:23:01]File name is /storage/ofd_packets/00123325 [21:23:01]Write 301 bytes [21:23:01]NVStorageSaveData done [21:23:01]OFDSenderStorePacket done [21:23:01]KKMCreateOFDPacket done [21:23:01]NVStorageSaveData kkm_last_timestamp [21:23:01]File name is /storage/kkm_last_timestamp [21:23:01]Write 4 bytes [21:23:01]NVStorageSaveData done [21:23:01]ExternCall_PrintAddStr [21:23:01]wPrintStart [21:23:01]Write to MH i2c: 01 00 00 5F 7B DA [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: 01 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: 01 07 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: 01 07 00 5F 7B 00 00 00 00 00 FF 0F EF [21:23:01]RasterBufferAndPrint [21:23:01]line Счет N : (1)718155 [21:23:01]line ИНН: 02508201610067 [21:23:01]line Контрольно-Кассовый Чек [21:23:01]line ПРОДАЖА [21:23:01]line ТРК (МРК, ГНК) : 11 [21:23:01]line Товар: 2710124500 [21:23:01]line Аи-95-К-5 [21:23:01]line 6.640 * 75.40 [21:23:01]line = 500.66 [21:23:01]line НДС 12% НСП 1% [21:23:01]line > о реализуемом товаре [21:23:01]line ОКРУГЛЕНИЕ: -0.66 [21:23:01]line ИТОГО: 500.00 [21:23:01]line Внесено: 500.00 [21:23:01]line СДАЧА: 0.00 [21:23:01]line НСП 1% : 4.43 [21:23:01]line НДС 12% : 53.17 [21:23:01]line Наличными: 500.00 [21:23:01]line Безнал.: 0.00 [21:23:01]line Место: АЗС № 64 "Партнер Нефть" [21:23:01]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [21:23:01]line СНО: Общий режим [21:23:01]line Чек 179 26.11.2024 21:23 [21:23:01]line Смена: 557 ФФД: 1.0 [21:23:01]line ЗНМ: 0300000033 [21:23:01]line РНМ: 0000000000092681 [21:23:01]line Версия ККМ: 001 [21:23:01]line ФМ: 0000000000874881 [21:23:01]line ФД: 123325 [21:23:01]line ФПД: 268979413347654 [21:23:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T212312&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123325&fm=268979413347654&tin=02508201610067®Number=0000000000092681&sum=50000 [21:23:01]OFD Sender: Processing packet 123325 [packets to send 7, broken 6] [21:23:01]ProducePacketName [21:23:01]name=ofd_packets/00123325 [21:23:01]OFD Sender: To server: pG, [21:23:01]CommunicateWithHost lk.salyk.kg:30040 [21:23:01]ConnectInit lk.salyk.kg [21:23:01]written 0, free lines is 4095 [21:23:02]Connected sock=10 [21:23:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 32 89 07 01 D5 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 40 3C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BD E1 01 00 35 04 06 00 F4 A2 A6 62 6D 46 93 D3 0D 55 5D 6E 7F BC [21:23:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 A8 D5 47 00 85 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BD E1 01 00 F4 03 04 00 01 E8 45 67 B6 04 01 00 00 84 0B 67 84 0E AC 0C 19 [21:23:02]CommunicateWithHost err = 0 [21:23:02]CheckOFDResponse [21:23:02]1017 (14) - 77093643461234 [21:23:02]1041 (16) - 0000000000874881 [21:23:02]1040 (4) - 123325 [21:23:02]1012 (4) - 26.11.2024 15:23 [21:23:02]1206 (1) - 0 [21:23:02]OFD Sender: Remove packet 123325 [21:23:02]ProducePacketName [21:23:02]name=ofd_packets/00123325 [21:23:02]NVStorageDeleteData [21:23:02]Write to MH i2c: 01 00 00 8A 7B 05 [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: 01 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: 01 07 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: 01 07 00 8A 7B 00 00 00 00 00 5D 0C 75 [21:23:02]RasterBufferAndPrint [21:23:02]line [21:23:02]line [21:23:02]line [21:23:02]line [21:23:02]line [21:23:02]written 0, free lines is 3168 [21:23:02]MH_Cut [21:23:02]Write to MH i2c: D1 01 00 91 7B 01 DE [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: D1 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: D1 01 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: D1 01 00 91 7B 00 DD [21:23:02]Write to MH i2c: 01 00 00 92 7B 0D [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]OFD Sender: No OFD packet to send [21:23:03]*** Cut start [21:23:03]*** Partial cut [21:23:03]*** CUTSNS_PIN = 1 [21:23:03]*** CUTSNS_PIN = 0 [21:23:04]*** Brake cut motor [21:23:04]Read from MH i2c: 01 [21:23:04]MH_I2C_Read... [21:23:04]*** Stop cut motor [21:23:04]*** Cut end [21:23:04]Read from MH i2c: 01 07 00 [21:23:04]MH_I2C_Read... [21:23:04]Read from MH i2c: 01 07 00 92 7B 00 00 00 00 00 FF 0F 22 [21:23:04]process_action close_receipt done [21:23:04]requested_data is exist [21:23:04]produce_requested_data [21:23:04]requested_item fm.sn is exist - process it [21:23:04]wFMCommunicate request_size=4 [21:23:04]MH_SAM_APDU [21:23:04]CAPDU: 80 11 00 00 [21:23:04]Write to MH i2c: E2 08 00 93 7B 80 11 00 00 00 00 00 00 88 [21:23:04]Write i2c OK [21:23:04]MH_I2C_Read... [21:23:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:04]Read from MH i2c: E2 [21:23:04]MH_I2C_Read... [21:23:04]Read from MH i2c: E2 17 00 [21:23:04]MH_I2C_Read... [21:23:04]Read from MH i2c: E2 17 00 93 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DF [21:23:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:23:04]wFMCommunicate OK [21:23:04]requested_item fd.num is exist - process it [21:23:04]SAM_PROTO_GetFieldsCounters [21:23:04]wFMCommunicate request_size=4 [21:23:04]MH_SAM_APDU [21:23:04]CAPDU: 80 13 00 00 [21:23:04]Write to MH i2c: E2 08 00 94 7B 80 13 00 00 00 00 00 00 8B [21:23:04]Write i2c OK [21:23:04]MH_I2C_Read... [21:23:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:04]Read from MH i2c: E2 [21:23:04]MH_I2C_Read... [21:23:04]Read from MH i2c: E2 62 00 [21:23:04]MH_I2C_Read... [21:23:04]Read from MH i2c: E2 62 00 94 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BD E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [21:23:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BD E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:04]wFMCommunicate OK [21:23:04]SAM_PROTO_GetFieldsCounters done [21:23:04]requested_item shift.num is exist - process it [21:23:04]requested_item shift.opened is exist - process it [21:23:04]req_shift_opened [21:23:04]FM_GetShiftState [21:23:04]SAM_PROTO_GetShiftState [21:23:04]wFMCommunicate request_size=4 [21:23:04]MH_SAM_APDU [21:23:04]CAPDU: 80 13 01 00 [21:23:04]Write to MH i2c: E2 08 00 95 7B 80 13 01 00 00 00 00 00 8D [21:23:04]Write i2c OK [21:23:04]MH_I2C_Read... [21:23:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:04]Read from MH i2c: E2 [21:23:04]MH_I2C_Read... [21:23:04]Read from MH i2c: E2 0E 00 [21:23:04]MH_I2C_Read... [21:23:04]Read from MH i2c: E2 0E 00 95 7B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 EE [21:23:04]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [21:23:04]wFMCommunicate OK [21:23:04]SAM_PROTO_GetShiftState done [21:23:04]FM_GetShiftState done [21:23:04]req_shift_opened done [21:23:04]requested_item shift.open_date is exist - process it [21:23:04]req_shift_open_date [21:23:04]req_shift_open_date done [21:23:04]produce_requested_data done [21:23:04]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123325,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [21:23:04]process_action_free close_receipt [21:23:04]json_value_free [21:23:04]json_value_free done [21:23:04]process_json_proto returns [21:23:04]Send response to host [21:23:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123325,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [21:23:04]free response buf [21:23:04]execute_script done [21:23:04]execute_script returns [21:23:04]free content buf [21:23:04]Sock 9.Close socket [21:23:04]Sock 9.Thread stoped [21:23:07]OFD Sender: No OFD packet to send [21:23:12]OFD Sender: No OFD packet to send [21:23:17]OFD Sender: No OFD packet to send [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:57]OFD Sender: No OFD packet to send [21:24:02]OFD Sender: No OFD packet to send [21:24:07]OFD Sender: No OFD packet to send [21:24:12]OFD Sender: No OFD packet to send [21:24:17]OFD Sender: No OFD packet to send [21:24:22]OFD Sender: No OFD packet to send [21:24:27]OFD Sender: No OFD packet to send [21:24:32]OFD Sender: No OFD packet to send [21:24:37]OFD Sender: No OFD packet to send [21:24:42]OFD Sender: No OFD packet to send [21:24:47]OFD Sender: No OFD packet to send [21:24:52]OFD Sender: No OFD packet to send [21:24:57]OFD Sender: No OFD packet to send [21:25:02]OFD Sender: No OFD packet to send [21:25:07]OFD Sender: No OFD packet to send [21:25:12]OFD Sender: No OFD packet to send [21:25:17]OFD Sender: No OFD packet to send [21:25:22]OFD Sender: No OFD packet to send [21:25:27]OFD Sender: No OFD packet to send [21:25:32]OFD Sender: No OFD packet to send [21:25:37]OFD Sender: No OFD packet to send [21:25:42]OFD Sender: No OFD packet to send [21:25:47]OFD Sender: No OFD packet to send [21:25:52]OFD Sender: No OFD packet to send [21:25:57]OFD Sender: No OFD packet to send [21:26:02]OFD Sender: No OFD packet to send [21:26:07]OFD Sender: No OFD packet to send [21:26:12]OFD Sender: No OFD packet to send [21:26:17]OFD Sender: No OFD packet to send [21:26:22]OFD Sender: No OFD packet to send [21:26:27]OFD Sender: No OFD packet to send [21:26:32]OFD Sender: No OFD packet to send [21:26:37]OFD Sender: No OFD packet to send [21:26:42]OFD Sender: No OFD packet to send [21:26:47]OFD Sender: No OFD packet to send [21:26:52]OFD Sender: No OFD packet to send [21:26:57]OFD Sender: No OFD packet to send [21:27:02]OFD Sender: No OFD packet to send [21:27:07]OFD Sender: No OFD packet to send [21:27:12]OFD Sender: No OFD packet to send [21:27:17]OFD Sender: No OFD packet to send [21:27:22]OFD Sender: No OFD packet to send [21:27:27]OFD Sender: No OFD packet to send [21:27:32]OFD Sender: No OFD packet to send [21:27:37]OFD Sender: No OFD packet to send [21:27:42]OFD Sender: No OFD packet to send [21:27:47]OFD Sender: No OFD packet to send [21:27:52]OFD Sender: No OFD packet to send [21:27:57]OFD Sender: No OFD packet to send [21:28:02]OFD Sender: No OFD packet to send [21:28:07]OFD Sender: No OFD packet to send [21:28:12]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:03]OFD Sender: No OFD packet to send [21:29:08]OFD Sender: No OFD packet to send [21:29:13]OFD Sender: No OFD packet to send [21:29:18]OFD Sender: No OFD packet to send [21:29:23]OFD Sender: No OFD packet to send [21:29:28]OFD Sender: No OFD packet to send [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:48]OFD Sender: No OFD packet to send [21:29:53]OFD Sender: No OFD packet to send [21:29:58]OFD Sender: No OFD packet to send [21:30:03]OFD Sender: No OFD packet to send [21:30:08]OFD Sender: No OFD packet to send [21:30:13]OFD Sender: No OFD packet to send [21:30:18]OFD Sender: No OFD packet to send [21:30:23]OFD Sender: No OFD packet to send [21:30:28]OFD Sender: No OFD packet to send [21:30:33]OFD Sender: No OFD packet to send [21:30:38]OFD Sender: No OFD packet to send [21:30:43]OFD Sender: No OFD packet to send [21:30:48]OFD Sender: No OFD packet to send [21:30:53]OFD Sender: No OFD packet to send [21:30:58]OFD Sender: No OFD packet to send [21:31:03]OFD Sender: No OFD packet to send [21:31:08]OFD Sender: No OFD packet to send [21:31:13]OFD Sender: No OFD packet to send [21:31:18]OFD Sender: No OFD packet to send [21:31:23]OFD Sender: No OFD packet to send [21:31:28]OFD Sender: No OFD packet to send [21:31:33]OFD Sender: No OFD packet to send [21:31:38]OFD Sender: No OFD packet to send [21:31:43]OFD Sender: No OFD packet to send [21:31:48]OFD Sender: No OFD packet to send [21:31:53]OFD Sender: No OFD packet to send [21:31:58]OFD Sender: No OFD packet to send [21:32:03]OFD Sender: No OFD packet to send [21:32:08]OFD Sender: No OFD packet to send [21:32:13]OFD Sender: No OFD packet to send [21:32:18]OFD Sender: No OFD packet to send [21:32:23]OFD Sender: No OFD packet to send [21:32:28]OFD Sender: No OFD packet to send [21:32:33]OFD Sender: No OFD packet to send [21:32:38]OFD Sender: No OFD packet to send [21:32:43]OFD Sender: No OFD packet to send [21:32:48]OFD Sender: No OFD packet to send [21:32:53]OFD Sender: No OFD packet to send [21:32:58]OFD Sender: No OFD packet to send [21:33:03]OFD Sender: No OFD packet to send [21:33:08]OFD Sender: No OFD packet to send [21:33:13]OFD Sender: No OFD packet to send [21:33:18]OFD Sender: No OFD packet to send [21:33:23]OFD Sender: No OFD packet to send [21:33:28]OFD Sender: No OFD packet to send [21:33:33]OFD Sender: No OFD packet to send [21:33:38]OFD Sender: No OFD packet to send [21:33:43]OFD Sender: No OFD packet to send [21:33:48]OFD Sender: No OFD packet to send [21:33:53]OFD Sender: No OFD packet to send [21:33:58]OFD Sender: No OFD packet to send [21:34:03]OFD Sender: No OFD packet to send [21:34:08]OFD Sender: No OFD packet to send [21:34:13]OFD Sender: No OFD packet to send [21:34:18]OFD Sender: No OFD packet to send [21:34:23]OFD Sender: No OFD packet to send [21:34:28]OFD Sender: No OFD packet to send [21:34:33]OFD Sender: No OFD packet to send [21:34:38]OFD Sender: No OFD packet to send [21:34:43]OFD Sender: No OFD packet to send [21:34:48]OFD Sender: No OFD packet to send [21:34:53]OFD Sender: No OFD packet to send [21:34:58]OFD Sender: No OFD packet to send [21:35:03]OFD Sender: No OFD packet to send [21:35:08]OFD Sender: No OFD packet to send [21:35:13]OFD Sender: No OFD packet to send [21:35:18]OFD Sender: No OFD packet to send [21:35:23]OFD Sender: No OFD packet to send [21:35:28]OFD Sender: No OFD packet to send [21:35:33]OFD Sender: No OFD packet to send [21:35:38]OFD Sender: No OFD packet to send [21:35:43]OFD Sender: No OFD packet to send [21:35:48]OFD Sender: No OFD packet to send [21:35:53]OFD Sender: No OFD packet to send [21:35:58]OFD Sender: No OFD packet to send [21:36:03]OFD Sender: No OFD packet to send [21:36:08]OFD Sender: No OFD packet to send [21:36:13]OFD Sender: No OFD packet to send [21:36:18]OFD Sender: No OFD packet to send [21:36:23]OFD Sender: No OFD packet to send [21:36:28]OFD Sender: No OFD packet to send [21:36:33]OFD Sender: No OFD packet to send [21:36:38]OFD Sender: No OFD packet to send [21:36:43]OFD Sender: No OFD packet to send [21:36:48]OFD Sender: No OFD packet to send [21:36:53]OFD Sender: No OFD packet to send [21:36:58]OFD Sender: No OFD packet to send [21:37:03]OFD Sender: No OFD packet to send [21:37:08]OFD Sender: No OFD packet to send [21:37:13]OFD Sender: No OFD packet to send [21:37:18]OFD Sender: No OFD packet to send [21:37:23]OFD Sender: No OFD packet to send [21:37:28]OFD Sender: No OFD packet to send [21:37:33]OFD Sender: No OFD packet to send [21:37:38]OFD Sender: No OFD packet to send [21:37:43]OFD Sender: No OFD packet to send [21:37:48]OFD Sender: No OFD packet to send [21:37:53]OFD Sender: No OFD packet to send [21:37:58]OFD Sender: No OFD packet to send [21:38:03]OFD Sender: No OFD packet to send [21:38:08]OFD Sender: No OFD packet to send [21:38:13]OFD Sender: No OFD packet to send [21:38:18]OFD Sender: No OFD packet to send [21:38:23]OFD Sender: No OFD packet to send [21:38:28]OFD Sender: No OFD packet to send [21:38:33]OFD Sender: No OFD packet to send [21:38:38]OFD Sender: No OFD packet to send [21:38:43]OFD Sender: No OFD packet to send [21:38:48]OFD Sender: No OFD packet to send [21:38:53]OFD Sender: No OFD packet to send [21:38:58]OFD Sender: No OFD packet to send [21:39:03]OFD Sender: No OFD packet to send [21:39:08]OFD Sender: No OFD packet to send [21:39:13]OFD Sender: No OFD packet to send [21:39:18]OFD Sender: No OFD packet to send [21:39:23]OFD Sender: No OFD packet to send [21:39:28]OFD Sender: No OFD packet to send [21:39:33]OFD Sender: No OFD packet to send [21:39:38]OFD Sender: No OFD packet to send [21:39:41]accept exits with 7 [21:39:41]New connection [21:39:41]New thread 3066723684 created [21:39:41]Thread 3066580324 joined [21:39:41]Waiting for new connection... [21:39:41] Sock 7.Parse request [21:39:41]Sock 7.Check first char [21:39:41]Sock 7.First char is OK [21:39:41]request: POST /json_proto HTTP/1.0 [21:39:41]Method: POST [21:39:41]URL: /json_proto [21:39:41]Method is POST - this is cgi request [21:39:41]url: /json_proto [21:39:41]query_string will be loaded in cgi processing [21:39:41]execute_cgi json_proto POST (null) [21:39:41]execute_cgi path=json_proto method=POST [21:39:41]POST find Content-Length [21:39:41]Host: 172.17.37.4:8080 [21:39:41]Content-Length: 677 [21:39:41]Content-Type: application/json [21:39:41] [21:39:41]POST finish read [21:39:41]Found Content-Length = 677 [21:39:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:41]execute_script... [21:39:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:41]POST & json_proto [21:39:41]process_json_proto [21:39:41]json parsed OK: [21:39:41]protocol is kg_v1.0 [21:39:41]action value=close_receipt [21:39:41]process_action close_receipt [21:39:41]cmd_close_receipt [21:39:41]MH_GetDate [21:39:41]Write to MH i2c: F0 00 00 96 7B 00 [21:39:41]Write i2c OK [21:39:41]MH_I2C_Read... [21:39:41]Read from MH i2c: F0 [21:39:41]MH_I2C_Read... [21:39:41]Read from MH i2c: F0 09 00 [21:39:41]MH_I2C_Read... [21:39:41]Read from MH i2c: F0 09 00 96 7B 00 2A 40 46 67 B8 5A 43 67 DC [21:39:41]GetLastDocTimeStamp 1732656192 [21:39:41]current date 1732657194 [21:39:41]FM_GetShiftState [21:39:41]SAM_PROTO_GetShiftState [21:39:41]wFMCommunicate request_size=4 [21:39:41]MH_SAM_APDU [21:39:41]CAPDU: 80 13 01 00 [21:39:41]Write to MH i2c: E2 08 00 97 7B 80 13 01 00 00 00 00 00 8F [21:39:41]Write i2c OK [21:39:41]MH_I2C_Read... [21:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:42]Read from MH i2c: E2 [21:39:42]MH_I2C_Read... [21:39:42]Read from MH i2c: E2 0E 00 [21:39:42]MH_I2C_Read... [21:39:42]Read from MH i2c: E2 0E 00 97 7B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 F0 [21:39:42]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [21:39:42]wFMCommunicate OK [21:39:42]SAM_PROTO_GetShiftState done [21:39:42]FM_GetShiftState done [21:39:42]opened in 1732579736 [21:39:42]opened+sec_in_day 1732666136 [21:39:42]quantity*price = 50010 [21:39:42]sum+1 = 50012 [21:39:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 180 26.11.2024 21:39 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123326 ФПД: 171627905698393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T213954&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123326&fm=171627905698393&tin=02508201610067®Number=0000000000092681&sum=50000 [21:39:43]StoreToDocumentArchive [21:39:43]shift 557 fd 123326 [21:39:43]save to /storage/0557/doc_00123326 [21:39:43]save last doc name /storage/0557/doc_00123326 to /storage/kkm_last_doc_name [21:39:43]save OK [21:39:43]Clear old archive folders... [21:39:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:39:43]tlvbuf is 01F4D890 [21:39:43]SAM_PROTO_ClearQueue [21:39:43]wFMCommunicate request_size=4 [21:39:43]MH_SAM_APDU [21:39:43]CAPDU: 80 09 00 00 [21:39:43]Write to MH i2c: E2 08 00 A4 7B 80 09 00 00 00 00 00 00 91 [21:39:43]Write i2c OK [21:39:43]MH_I2C_Read... [21:39:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:43]Read from MH i2c: E2 [21:39:43]MH_I2C_Read... [21:39:43]Read from MH i2c: E2 03 00 [21:39:43]MH_I2C_Read... [21:39:43]Read from MH i2c: E2 03 00 A4 7B 00 90 00 93 [21:39:43]RAPDU: 90 00 [21:39:43]wFMCommunicate OK [21:39:43]SAM_PROTO_ClearQueue done [21:39:43]KKMCreateOFDPacket [21:39:43]OFDProtocolAddRootSTLVToBuf [21:39:43]FM_MakeSignedData [21:39:43]FM_MakeSignedData [21:39:43]SAM_PROTO_SignData [21:39:43]wFMCommunicate request_size=4 [21:39:43]MH_SAM_APDU [21:39:43]CAPDU: 80 0D 01 02 [21:39:43]Write to MH i2c: E2 08 00 A5 7B 80 0D 01 02 00 00 00 00 99 [21:39:43]Write i2c OK [21:39:43]MH_I2C_Read... [21:39:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:43]Read from MH i2c: E2 [21:39:43]MH_I2C_Read... [21:39:43]Read from MH i2c: E2 03 00 [21:39:43]MH_I2C_Read... [21:39:43]Read from MH i2c: E2 03 00 A5 7B 00 90 00 94 [21:39:43]RAPDU: 90 00 [21:39:43]wFMCommunicate OK [21:39:43]wFMCommunicate request_size=255 [21:39:43]MH_SAM_APDU [21:39:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 2A 40 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BE E1 01 00 35 04 06 00 9C [21:39:43]Write to MH i2c: E2 02 01 A6 7B 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 2A 40 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BE E1 01 00 35 04 06 00 9C 00 00 36 [21:39:43]Write i2c OK [21:39:43]MH_I2C_Read... [21:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:43]Read from MH i2c: E2 [21:39:43]MH_I2C_Read... [21:39:43]Read from MH i2c: E2 03 00 [21:39:43]MH_I2C_Read... [21:39:43]Read from MH i2c: E2 03 00 A6 7B 00 90 00 95 [21:39:43]RAPDU: 90 00 [21:39:43]wFMCommunicate OK [21:39:43]wFMCommunicate request_size=10 [21:39:43]MH_SAM_APDU [21:39:43]CAPDU: 80 0D 02 02 05 18 3C 5A 4A 59 [21:39:43]Write to MH i2c: E2 0D 00 A7 7B 80 0D 02 02 05 00 18 3C 5A 4A 59 00 00 F7 [21:39:43]Write i2c OK [21:39:43]MH_I2C_Read... [21:39:43]OFD Sender: No OFD packet to send [21:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:43]Read from MH i2c: E2 [21:39:43]MH_I2C_Read... [21:39:43]Read from MH i2c: E2 03 00 [21:39:43]MH_I2C_Read... [21:39:43]Read from MH i2c: E2 03 00 A7 7B 00 90 00 96 [21:39:43]RAPDU: 90 00 [21:39:43]wFMCommunicate OK [21:39:43]wFMCommunicate request_size=4 [21:39:43]MH_SAM_APDU [21:39:43]CAPDU: 80 0D 03 02 [21:39:43]Write to MH i2c: E2 08 00 A8 7B 80 0D 03 02 00 00 00 00 9E [21:39:43]Write i2c OK [21:39:43]MH_I2C_Read... [21:39:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:43]Read from MH i2c: E2 [21:39:43]MH_I2C_Read... [21:39:43]Read from MH i2c: E2 0B 00 [21:39:43]MH_I2C_Read... [21:39:43]Read from MH i2c: E2 0B 00 A8 7B 00 C3 03 00 2D 9A 69 9E 8D 90 00 C0 [21:39:43]RAPDU: C3 03 00 2D 9A 69 9E 8D 90 00 [21:39:43]wFMCommunicate OK [21:39:43]SAM_PROTO_SignData done [21:39:43]FM_MakeSignedData done [21:39:43]CreateOFDProtocolMessage [21:39:43]wFMCommunicate request_size=4 [21:39:43]MH_SAM_APDU [21:39:43]CAPDU: 80 11 00 00 [21:39:43]Write to MH i2c: E2 08 00 A9 7B 80 11 00 00 00 00 00 00 9E [21:39:43]Write i2c OK [21:39:43]MH_I2C_Read... [21:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:43]Read from MH i2c: E2 [21:39:43]MH_I2C_Read... [21:39:43]Read from MH i2c: E2 17 00 [21:39:43]MH_I2C_Read... [21:39:43]Read from MH i2c: E2 17 00 A9 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F5 [21:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:39:43]wFMCommunicate OK [21:39:43]CreateOFDProtocolMessage done [21:39:43]OFDSenderStorePacket 123326 [21:39:43]StoreOFDPacket docnum=123326 [21:39:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 44 EE 07 01 42 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 2A 40 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BE E1 01 00 35 04 06 00 9C 18 3C 5A 4A 59 C3 03 00 2D 9A 69 9E 8D [21:39:43]CheckFolder [21:39:43]dirname=/storage/ofd_packets [21:39:43]CheckFolder done [21:39:43]ProducePacketName [21:39:43]name=ofd_packets/00123326 [21:39:43]NVStorageSaveData ofd_packets/00123326 [21:39:43]File name is /storage/ofd_packets/00123326 [21:39:43]Write 301 bytes [21:39:43]NVStorageSaveData done [21:39:43]OFDSenderStorePacket done [21:39:43]KKMCreateOFDPacket done [21:39:43]NVStorageSaveData kkm_last_timestamp [21:39:43]File name is /storage/kkm_last_timestamp [21:39:43]Write 4 bytes [21:39:43]NVStorageSaveData done [21:39:43]ExternCall_PrintAddStr [21:39:43]wPrintStart [21:39:43]Write to MH i2c: 01 00 00 AA 7B 25 [21:39:43]Write i2c OK [21:39:43]MH_I2C_Read... [21:39:43]Read from MH i2c: 01 [21:39:43]MH_I2C_Read... [21:39:43]Read from MH i2c: 01 07 00 [21:39:43]MH_I2C_Read... [21:39:43]Read from MH i2c: 01 07 00 AA 7B 00 00 00 00 00 FF 0F 3A [21:39:43]RasterBufferAndPrint [21:39:43]line Счет N : (1)718156 [21:39:43]line ИНН: 02508201610067 [21:39:43]line Контрольно-Кассовый Чек [21:39:43]line ПРОДАЖА [21:39:43]line ТРК (МРК, ГНК) : 12 [21:39:43]line Товар: 2710124130 [21:39:43]line Аи-92-К-4 [21:39:43]line 7.420 * 67.40 [21:39:43]line = 500.11 [21:39:43]line НДС 12% НСП 1% [21:39:43]line > о реализуемом товаре [21:39:43]line ОКРУГЛЕНИЕ: -0.11 [21:39:43]line ИТОГО: 500.00 [21:39:43]line Внесено: 500.00 [21:39:43]line СДАЧА: 0.00 [21:39:43]line НСП 1% : 4.43 [21:39:43]line НДС 12% : 53.11 [21:39:43]line Наличными: 500.00 [21:39:43]line Безнал.: 0.00 [21:39:43]line Место: АЗС № 64 "Партнер Нефть" [21:39:43]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [21:39:43]line СНО: Общий режим [21:39:43]line Чек 180 26.11.2024 21:39 [21:39:43]line Смена: 557 ФФД: 1.0 [21:39:43]line ЗНМ: 0300000033 [21:39:43]line РНМ: 0000000000092681 [21:39:43]line Версия ККМ: 001 [21:39:43]line ФМ: 0000000000874881 [21:39:43]line ФД: 123326 [21:39:43]line ФПД: 171627905698393 [21:39:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T213954&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123326&fm=171627905698393&tin=02508201610067®Number=0000000000092681&sum=50000 [21:39:43]written 0, free lines is 4095 [21:39:43]OFD Sender: Processing packet 123326 [packets to send 7, broken 6] [21:39:43]ProducePacketName [21:39:43]name=ofd_packets/00123326 [21:39:43]OFD Sender: To server: pG, [21:39:43]CommunicateWithHost lk.salyk.kg:30040 [21:39:43]ConnectInit lk.salyk.kg [21:39:43]Connected sock=10 [21:39:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 44 EE 07 01 42 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 2A 40 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BE E1 01 00 35 04 06 00 9C 18 3C 5A 4A 59 C3 03 00 2D 9A 69 9E 8D [21:39:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 D6 86 47 00 D9 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 38 37 34 38 38 31 10 04 04 00 BE E1 01 00 F4 03 04 00 EB EB 45 67 B6 04 01 00 00 4C 62 E4 3C A3 3F 9C 9A [21:39:44]CommunicateWithHost err = 0 [21:39:44]CheckOFDResponse [21:39:44]1017 (14) - 77093643461234 [21:39:44]1041 (16) - 0000000000874881 [21:39:44]1040 (4) - 123326 [21:39:44]1012 (4) - 26.11.2024 15:40 [21:39:44]1206 (1) - 0 [21:39:44]OFD Sender: Remove packet 123326 [21:39:44]ProducePacketName [21:39:44]name=ofd_packets/00123326 [21:39:44]NVStorageDeleteData [21:39:44]Write to MH i2c: 01 00 00 D5 7B 50 [21:39:44]Write i2c OK [21:39:44]MH_I2C_Read... [21:39:44]Read from MH i2c: 01 [21:39:44]MH_I2C_Read... [21:39:44]Read from MH i2c: 01 07 00 [21:39:44]MH_I2C_Read... [21:39:44]Read from MH i2c: 01 07 00 D5 7B 00 00 00 00 00 4E 0C B1 [21:39:44]RasterBufferAndPrint [21:39:44]line [21:39:44]line [21:39:44]line [21:39:44]line [21:39:44]line [21:39:44]written 0, free lines is 3153 [21:39:44]MH_Cut [21:39:44]Write to MH i2c: D1 01 00 DC 7B 01 29 [21:39:44]Write i2c OK [21:39:44]MH_I2C_Read... [21:39:44]Read from MH i2c: D1 [21:39:44]MH_I2C_Read... [21:39:44]Read from MH i2c: D1 01 00 [21:39:44]MH_I2C_Read... [21:39:44]Read from MH i2c: D1 01 00 DC 7B 00 28 [21:39:44]Write to MH i2c: 01 00 00 DD 7B 58 [21:39:44]Write i2c OK [21:39:44]MH_I2C_Read... [21:39:44]OFD Sender: No OFD packet to send [21:39:45]*** Cut start [21:39:45]*** Partial cut [21:39:45]*** CUTSNS_PIN = 1 [21:39:45]*** CUTSNS_PIN = 0 [21:39:45]*** Brake cut motor [21:39:46]Read from MH i2c: 01 [21:39:46]MH_I2C_Read... [21:39:46]*** Stop cut motor [21:39:46]*** Cut end [21:39:46]Read from MH i2c: 01 07 00 [21:39:46]MH_I2C_Read... [21:39:46]Read from MH i2c: 01 07 00 DD 7B 00 00 00 00 00 FF 0F 6D [21:39:46]process_action close_receipt done [21:39:46]requested_data is exist [21:39:46]produce_requested_data [21:39:46]requested_item fm.sn is exist - process it [21:39:46]wFMCommunicate request_size=4 [21:39:46]MH_SAM_APDU [21:39:46]CAPDU: 80 11 00 00 [21:39:46]Write to MH i2c: E2 08 00 DE 7B 80 11 00 00 00 00 00 00 D3 [21:39:46]Write i2c OK [21:39:46]MH_I2C_Read... [21:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:46]Read from MH i2c: E2 [21:39:46]MH_I2C_Read... [21:39:46]Read from MH i2c: E2 17 00 [21:39:46]MH_I2C_Read... [21:39:46]Read from MH i2c: E2 17 00 DE 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2A [21:39:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:39:46]wFMCommunicate OK [21:39:46]requested_item fd.num is exist - process it [21:39:46]SAM_PROTO_GetFieldsCounters [21:39:46]wFMCommunicate request_size=4 [21:39:46]MH_SAM_APDU [21:39:46]CAPDU: 80 13 00 00 [21:39:46]Write to MH i2c: E2 08 00 DF 7B 80 13 00 00 00 00 00 00 D6 [21:39:46]Write i2c OK [21:39:46]MH_I2C_Read... [21:39:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:46]Read from MH i2c: E2 [21:39:46]MH_I2C_Read... [21:39:46]Read from MH i2c: E2 62 00 [21:39:46]MH_I2C_Read... [21:39:46]Read from MH i2c: E2 62 00 DF 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BE E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [21:39:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BE E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:46]wFMCommunicate OK [21:39:46]SAM_PROTO_GetFieldsCounters done [21:39:46]requested_item shift.num is exist - process it [21:39:46]requested_item shift.opened is exist - process it [21:39:46]req_shift_opened [21:39:46]FM_GetShiftState [21:39:46]SAM_PROTO_GetShiftState [21:39:46]wFMCommunicate request_size=4 [21:39:46]MH_SAM_APDU [21:39:46]CAPDU: 80 13 01 00 [21:39:46]Write to MH i2c: E2 08 00 E0 7B 80 13 01 00 00 00 00 00 D8 [21:39:46]Write i2c OK [21:39:46]MH_I2C_Read... [21:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:46]Read from MH i2c: E2 [21:39:46]MH_I2C_Read... [21:39:46]Read from MH i2c: E2 0E 00 [21:39:46]MH_I2C_Read... [21:39:46]Read from MH i2c: E2 0E 00 E0 7B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 39 [21:39:46]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [21:39:46]wFMCommunicate OK [21:39:46]SAM_PROTO_GetShiftState done [21:39:46]FM_GetShiftState done [21:39:46]req_shift_opened done [21:39:46]requested_item shift.open_date is exist - process it [21:39:46]req_shift_open_date [21:39:46]req_shift_open_date done [21:39:46]produce_requested_data done [21:39:46]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123326,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [21:39:46]process_action_free close_receipt [21:39:46]json_value_free [21:39:46]json_value_free done [21:39:46]process_json_proto returns [21:39:46]Send response to host [21:39:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123326,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [21:39:46]free response buf [21:39:46]execute_script done [21:39:46]execute_script returns [21:39:46]free content buf [21:39:46]Sock 7.Close socket [21:39:46]Sock 7.Thread stoped [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:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:54]OFD Sender: No OFD packet to send [21:43:59]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21: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: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:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:50]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:44]accept exits with 9 [21:59:44]New connection [21:59:44]New thread 3066580324 created [21:59:44]Thread 3066723684 joined [21:59:44]Waiting for new connection... [21:59:44] Sock 9.Parse request [21:59:44]Sock 9.Check first char [21:59:44]Sock 9.First char is OK [21:59:44]request: POST /json_proto HTTP/1.0 [21:59:44]Method: POST [21:59:44]URL: /json_proto [21:59:44]Method is POST - this is cgi request [21:59:44]url: /json_proto [21:59:44]query_string will be loaded in cgi processing [21:59:44]execute_cgi json_proto POST (null) [21:59:44]execute_cgi path=json_proto method=POST [21:59:44]POST find Content-Length [21:59:44]Host: 172.17.37.4:8080 [21:59:44]Content-Length: 758 [21:59:44]Content-Type: application/json [21:59:44] [21:59:44]POST finish read [21:59:44]Found Content-Length = 758 [21:59:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30036711", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:44]execute_script... [21:59:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30036711", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:44]POST & json_proto [21:59:44]process_json_proto [21:59:44]json parsed OK: [21:59:44]protocol is kg_v1.0 [21:59:44]action value=close_receipt [21:59:44]process_action close_receipt [21:59:44]cmd_close_receipt [21:59:44]MH_GetDate [21:59:44]Write to MH i2c: F0 00 00 E1 7B 4B [21:59:44]Write i2c OK [21:59:44]MH_I2C_Read... [21:59:44]Read from MH i2c: F0 [21:59:44]MH_I2C_Read... [21:59:44]Read from MH i2c: F0 09 00 [21:59:44]MH_I2C_Read... [21:59:44]Read from MH i2c: F0 09 00 E1 7B 00 DC 44 46 67 B8 5A 43 67 DD [21:59:44]GetLastDocTimeStamp 1732657194 [21:59:44]current date 1732658396 [21:59:44]FM_GetShiftState [21:59:44]SAM_PROTO_GetShiftState [21:59:44]wFMCommunicate request_size=4 [21:59:44]MH_SAM_APDU [21:59:44]CAPDU: 80 13 01 00 [21:59:44]Write to MH i2c: E2 08 00 E2 7B 80 13 01 00 00 00 00 00 DA [21:59:44]Write i2c OK [21:59:44]MH_I2C_Read... [21:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:44]Read from MH i2c: E2 [21:59:44]MH_I2C_Read... [21:59:44]Read from MH i2c: E2 0E 00 [21:59:44]MH_I2C_Read... [21:59:44]Read from MH i2c: E2 0E 00 E2 7B 00 09 00 01 98 11 45 67 00 00 00 00 90 00 3B [21:59:44]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [21:59:44]wFMCommunicate OK [21:59:44]SAM_PROTO_GetShiftState done [21:59:44]FM_GetShiftState done [21:59:44]opened in 1732579736 [21:59:44]opened+sec_in_day 1732666136 [21:59:44]quantity*price = 0 [21:59:44]sum+1 = 1 [21:59:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 181 26.11.2024 21:59 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: ТК ГПНА Online 30036711 ФМ: 0000000000874881 ФД: 123327 ФПД: 251255269843423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T215956&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123327&fm=251255269843423&tin=02508201610067®Number=0000000000092681&sum=0 [21:59:45]StoreToDocumentArchive [21:59:45]shift 557 fd 123327 [21:59:45]save to /storage/0557/doc_00123327 [21:59:45]save last doc name /storage/0557/doc_00123327 to /storage/kkm_last_doc_name [21:59:45]save OK [21:59:45]Clear old archive folders... [21:59:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:59:45]tlvbuf is 020973F0 [21:59:45]SAM_PROTO_ClearQueue [21:59:45]wFMCommunicate request_size=4 [21:59:45]MH_SAM_APDU [21:59:45]CAPDU: 80 09 00 00 [21:59:45]Write to MH i2c: E2 08 00 EF 7B 80 09 00 00 00 00 00 00 DC [21:59:45]Write i2c OK [21:59:45]MH_I2C_Read... [21:59:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:59:45]Read from MH i2c: E2 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 03 00 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 03 00 EF 7B 00 90 00 DE [21:59:45]RAPDU: 90 00 [21:59:45]wFMCommunicate OK [21:59:45]SAM_PROTO_ClearQueue done [21:59:45]KKMCreateOFDPacket [21:59:45]OFDProtocolAddRootSTLVToBuf [21:59:45]FM_MakeSignedData [21:59:45]FM_MakeSignedData [21:59:45]SAM_PROTO_SignData [21:59:45]wFMCommunicate request_size=4 [21:59:45]MH_SAM_APDU [21:59:45]CAPDU: 80 0D 01 02 [21:59:45]Write to MH i2c: E2 08 00 F0 7B 80 0D 01 02 00 00 00 00 E4 [21:59:45]Write i2c OK [21:59:45]MH_I2C_Read... [21:59:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:59:45]Read from MH i2c: E2 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 03 00 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 03 00 F0 7B 00 90 00 DF [21:59:45]RAPDU: 90 00 [21:59:45]wFMCommunicate OK [21:59:45]wFMCommunicate request_size=255 [21:59:45]MH_SAM_APDU [21:59:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 DC 44 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BF E1 01 00 35 04 06 00 [21:59:45]Write to MH i2c: E2 02 01 F1 7B 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 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 DC 44 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BF E1 01 00 35 04 06 00 00 00 5C [21:59:45]Write i2c OK [21:59:45]MH_I2C_Read... [21:59:45]OFD Sender: No OFD packet to send [21:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:45]Read from MH i2c: E2 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 03 00 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 03 00 F1 7B 00 90 00 E0 [21:59:45]RAPDU: 90 00 [21:59:45]wFMCommunicate OK [21:59:45]wFMCommunicate request_size=11 [21:59:45]MH_SAM_APDU [21:59:45]CAPDU: 80 0D 02 02 06 E4 83 ED 1B 61 DF [21:59:45]Write to MH i2c: E2 0E 00 F2 7B 80 0D 02 02 06 00 E4 83 ED 1B 61 DF 00 00 A2 [21:59:45]Write i2c OK [21:59:45]MH_I2C_Read... [21:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:45]Read from MH i2c: E2 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 03 00 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 03 00 F2 7B 00 90 00 E1 [21:59:45]RAPDU: 90 00 [21:59:45]wFMCommunicate OK [21:59:45]wFMCommunicate request_size=4 [21:59:45]MH_SAM_APDU [21:59:45]CAPDU: 80 0D 03 02 [21:59:45]Write to MH i2c: E2 08 00 F3 7B 80 0D 03 02 00 00 00 00 E9 [21:59:45]Write i2c OK [21:59:45]MH_I2C_Read... [21:59:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:59:45]Read from MH i2c: E2 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 0B 00 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 0B 00 F3 7B 00 21 43 9F F0 0E B0 DC 53 90 00 CA [21:59:45]RAPDU: 21 43 9F F0 0E B0 DC 53 90 00 [21:59:45]wFMCommunicate OK [21:59:45]SAM_PROTO_SignData done [21:59:45]FM_MakeSignedData done [21:59:45]CreateOFDProtocolMessage [21:59:45]wFMCommunicate request_size=4 [21:59:45]MH_SAM_APDU [21:59:45]CAPDU: 80 11 00 00 [21:59:45]Write to MH i2c: E2 08 00 F4 7B 80 11 00 00 00 00 00 00 E9 [21:59:45]Write i2c OK [21:59:45]MH_I2C_Read... [21:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:45]Read from MH i2c: E2 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 17 00 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 17 00 F4 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 40 [21:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:59:45]wFMCommunicate OK [21:59:45]CreateOFDProtocolMessage done [21:59:45]OFDSenderStorePacket 123327 [21:59:45]StoreOFDPacket docnum=123327 [21:59:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 41 3D 08 01 26 ED 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 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 DC 44 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BF E1 01 00 35 04 06 00 E4 83 ED 1B 61 DF 21 43 9F F0 0E B0 DC 53 [21:59:45]CheckFolder [21:59:45]dirname=/storage/ofd_packets [21:59:45]CheckFolder done [21:59:45]ProducePacketName [21:59:45]name=ofd_packets/00123327 [21:59:45]NVStorageSaveData ofd_packets/00123327 [21:59:45]File name is /storage/ofd_packets/00123327 [21:59:45]Write 302 bytes [21:59:45]NVStorageSaveData done [21:59:45]OFDSenderStorePacket done [21:59:45]KKMCreateOFDPacket done [21:59:45]NVStorageSaveData kkm_last_timestamp [21:59:45]File name is /storage/kkm_last_timestamp [21:59:45]Write 4 bytes [21:59:45]NVStorageSaveData done [21:59:45]ExternCall_PrintAddStr [21:59:45]wPrintStart [21:59:45]Write to MH i2c: 01 00 00 F5 7B 70 [21:59:45]Write i2c OK [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: 01 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: 01 07 00 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: 01 07 00 F5 7B 00 00 00 00 00 FF 0F 85 [21:59:45]RasterBufferAndPrint [21:59:45]line Счет N : (1)718157 [21:59:45]line ИНН: 02508201610067 [21:59:45]line Контрольно-Кассовый Чек [21:59:45]line ПРОДАЖА [21:59:45]line ТРК (МРК, ГНК) : 6 [21:59:45]line Товар: 2710194210 [21:59:45]line ДТ(л)-К-5 [21:59:45]line 40.000 * 0.00 [21:59:45]line = 0.00 [21:59:45]line НДС 12% НСП 1% [21:59:45]line > о реализуемом товаре [21:59:45]line ИТОГО: 0.00 [21:59:45]line НСП 1% : 0.00 [21:59:45]line НДС 12% : 0.00 [21:59:45]line Наличными: 0.00 [21:59:45]line Безнал.: 0.00 [21:59:45]line Место: АЗС № 64 "Партнер Нефть" [21:59:45]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [21:59:45]line СНО: Общий режим [21:59:45]line Чек 181 26.11.2024 21:59 [21:59:45]line Смена: 557 ФФД: 1.0 [21:59:45]line ЗНМ: 0300000033 [21:59:45]line РНМ: 0000000000092681 [21:59:45]line Версия ККМ: 001 [21:59:45]line Талоны: ТК ГПНА Online [21:59:45]line 30036711 [21:59:45]line ФМ: 0000000000874881 [21:59:45]line ФД: 123327 [21:59:45]line ФПД: 251255269843423 [21:59:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T215956&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123327&fm=251255269843423&tin=02508201610067®Number=0000000000092681&sum=0 [21:59:46]OFD Sender: Processing packet 123327 [packets to send 7, broken 6] [21:59:46]ProducePacketName [21:59:46]name=ofd_packets/00123327 [21:59:46]OFD Sender: To server: pG, [21:59:46]CommunicateWithHost lk.salyk.kg:30040 [21:59:46]ConnectInit lk.salyk.kg [21:59:46]written 0, free lines is 4095 [21:59:46]Connected sock=10 [21:59:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 41 3D 08 01 26 ED 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 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 DC 44 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BF E1 01 00 35 04 06 00 E4 83 ED 1B 61 DF 21 43 9F F0 0E B0 DC 53 [21:59:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 65 28 47 00 FD 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BF E1 01 00 F4 03 04 00 9E F0 45 67 B6 04 01 00 00 FF 65 02 FA 1F A1 E5 97 [21:59:46]CommunicateWithHost err = 0 [21:59:46]CheckOFDResponse [21:59:46]1017 (14) - 77093643461234 [21:59:46]1041 (16) - 0000000000874881 [21:59:46]1040 (4) - 123327 [21:59:46]1012 (4) - 26.11.2024 16:00 [21:59:46]1206 (1) - 0 [21:59:46]OFD Sender: Remove packet 123327 [21:59:46]ProducePacketName [21:59:46]name=ofd_packets/00123327 [21:59:46]NVStorageDeleteData [21:59:46]Write to MH i2c: 01 00 00 1F 7C 9B [21:59:46]Write i2c OK [21:59:46]MH_I2C_Read... [21:59:46]Read from MH i2c: 01 [21:59:46]MH_I2C_Read... [21:59:46]Read from MH i2c: 01 07 00 [21:59:46]MH_I2C_Read... [21:59:46]Read from MH i2c: 01 07 00 1F 7C 00 00 00 00 00 68 0C 16 [21:59:46]RasterBufferAndPrint [21:59:46]line [21:59:46]line [21:59:46]line [21:59:46]line [21:59:46]line [21:59:46]written 0, free lines is 3181 [21:59:46]MH_Cut [21:59:46]Write to MH i2c: D1 01 00 26 7C 01 74 [21:59:46]Write i2c OK [21:59:46]MH_I2C_Read... [21:59:46]Read from MH i2c: D1 [21:59:46]MH_I2C_Read... [21:59:46]Read from MH i2c: D1 01 00 [21:59:46]MH_I2C_Read... [21:59:46]Read from MH i2c: D1 01 00 26 7C 00 73 [21:59:46]Write to MH i2c: 01 00 00 27 7C A3 [21:59:46]Write i2c OK [21:59:46]MH_I2C_Read... [21:59:46]OFD Sender: No OFD packet to send [21:59:47]*** Cut start [21:59:47]*** Partial cut [21:59:47]*** CUTSNS_PIN = 1 [21:59:47]*** CUTSNS_PIN = 0 [21:59:48]*** Brake cut motor [21:59:48]Read from MH i2c: 01 [21:59:48]MH_I2C_Read... [21:59:48]*** Stop cut motor [21:59:48]*** Cut end [21:59:48]Read from MH i2c: 01 07 00 [21:59:48]MH_I2C_Read... [21:59:48]Read from MH i2c: 01 07 00 27 7C 00 00 00 00 00 FF 0F B8 [21:59:48]process_action close_receipt done [21:59:48]requested_data is exist [21:59:48]produce_requested_data [21:59:48]requested_item fm.sn is exist - process it [21:59:48]wFMCommunicate request_size=4 [21:59:48]MH_SAM_APDU [21:59:48]CAPDU: 80 11 00 00 [21:59:48]Write to MH i2c: E2 08 00 28 7C 80 11 00 00 00 00 00 00 1E [21:59:48]Write i2c OK [21:59:48]MH_I2C_Read... [21:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:48]Read from MH i2c: E2 [21:59:48]MH_I2C_Read... [21:59:48]Read from MH i2c: E2 17 00 [21:59:48]MH_I2C_Read... [21:59:48]Read from MH i2c: E2 17 00 28 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 75 [21:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [21:59:48]wFMCommunicate OK [21:59:48]requested_item fd.num is exist - process it [21:59:48]SAM_PROTO_GetFieldsCounters [21:59:48]wFMCommunicate request_size=4 [21:59:48]MH_SAM_APDU [21:59:48]CAPDU: 80 13 00 00 [21:59:48]Write to MH i2c: E2 08 00 29 7C 80 13 00 00 00 00 00 00 21 [21:59:48]Write i2c OK [21:59:48]MH_I2C_Read... [21:59:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:59:48]Read from MH i2c: E2 [21:59:48]MH_I2C_Read... [21:59:48]Read from MH i2c: E2 62 00 [21:59:48]MH_I2C_Read... [21:59:48]Read from MH i2c: E2 62 00 29 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BF E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [21:59:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 BF E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:59:48]wFMCommunicate OK [21:59:48]SAM_PROTO_GetFieldsCounters done [21:59:48]requested_item shift.num is exist - process it [21:59:48]requested_item shift.opened is exist - process it [21:59:48]req_shift_opened [21:59:48]FM_GetShiftState [21:59:48]SAM_PROTO_GetShiftState [21:59:48]wFMCommunicate request_size=4 [21:59:48]MH_SAM_APDU [21:59:48]CAPDU: 80 13 01 00 [21:59:48]Write to MH i2c: E2 08 00 2A 7C 80 13 01 00 00 00 00 00 23 [21:59:48]Write i2c OK [21:59:48]MH_I2C_Read... [21:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:48]Read from MH i2c: E2 [21:59:48]MH_I2C_Read... [21:59:48]Read from MH i2c: E2 0E 00 [21:59:48]MH_I2C_Read... [21:59:48]Read from MH i2c: E2 0E 00 2A 7C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 84 [21:59:48]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [21:59:48]wFMCommunicate OK [21:59:48]SAM_PROTO_GetShiftState done [21:59:48]FM_GetShiftState done [21:59:48]req_shift_opened done [21:59:48]requested_item shift.open_date is exist - process it [21:59:48]req_shift_open_date [21:59:48]req_shift_open_date done [21:59:48]produce_requested_data done [21:59:48]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123327,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [21:59:48]process_action_free close_receipt [21:59:48]json_value_free [21:59:48]json_value_free done [21:59:48]process_json_proto returns [21:59:48]Send response to host [21:59:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123327,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [21:59:48]free response buf [21:59:48]execute_script done [21:59:48]execute_script returns [21:59:48]free content buf [21:59:48]Sock 9.Close socket [21:59:48]Sock 9.Thread stoped [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [22:04:32]OFD Sender: No OFD packet to send [22:04:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06:47]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:07]OFD Sender: No OFD packet to send [22:07:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:32]OFD Sender: No OFD packet to send [22:07:37]OFD Sender: No OFD packet to send [22:07:42]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:57]OFD Sender: No OFD packet to send [22:08:02]OFD Sender: No OFD packet to send [22:08:07]OFD Sender: No OFD packet to send [22:08:12]OFD Sender: No OFD packet to send [22:08:15]accept exits with 7 [22:08:15]New connection [22:08:15]New thread 3066723684 created [22:08:15]Thread 3066580324 joined [22:08:15]Waiting for new connection... [22:08:15] Sock 7.Parse request [22:08:15]Sock 7.Check first char [22:08:15]Sock 7.First char is OK [22:08:15]request: POST /json_proto HTTP/1.0 [22:08:15]Method: POST [22:08:15]URL: /json_proto [22:08:15]Method is POST - this is cgi request [22:08:15]url: /json_proto [22:08:15]query_string will be loaded in cgi processing [22:08:15]execute_cgi json_proto POST (null) [22:08:15]execute_cgi path=json_proto method=POST [22:08:15]POST find Content-Length [22:08:15]Host: 172.17.37.4:8080 [22:08:15]Content-Length: 686 [22:08:15]Content-Type: application/json [22:08:15] [22:08:15]POST finish read [22:08:15]Found Content-Length = 686 [22:08:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:15]execute_script... [22:08:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:15]POST & json_proto [22:08:15]process_json_proto [22:08:15]json parsed OK: [22:08:15]protocol is kg_v1.0 [22:08:15]action value=close_receipt [22:08:15]process_action close_receipt [22:08:15]cmd_close_receipt [22:08:15]MH_GetDate [22:08:15]Write to MH i2c: F0 00 00 2B 7C 96 [22:08:15]Write i2c OK [22:08:15]MH_I2C_Read... [22:08:15]Read from MH i2c: F0 [22:08:15]MH_I2C_Read... [22:08:15]Read from MH i2c: F0 09 00 [22:08:15]MH_I2C_Read... [22:08:15]Read from MH i2c: F0 09 00 2B 7C 00 DC 46 46 67 B8 5A 43 67 2A [22:08:15]GetLastDocTimeStamp 1732658396 [22:08:15]current date 1732658908 [22:08:15]FM_GetShiftState [22:08:15]SAM_PROTO_GetShiftState [22:08:15]wFMCommunicate request_size=4 [22:08:15]MH_SAM_APDU [22:08:15]CAPDU: 80 13 01 00 [22:08:15]Write to MH i2c: E2 08 00 2C 7C 80 13 01 00 00 00 00 00 25 [22:08:15]Write i2c OK [22:08:15]MH_I2C_Read... [22:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:15]Read from MH i2c: E2 [22:08:15]MH_I2C_Read... [22:08:15]Read from MH i2c: E2 0E 00 [22:08:15]MH_I2C_Read... [22:08:15]Read from MH i2c: E2 0E 00 2C 7C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 86 [22:08:15]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [22:08:15]wFMCommunicate OK [22:08:15]SAM_PROTO_GetShiftState done [22:08:15]FM_GetShiftState done [22:08:15]opened in 1732579736 [22:08:15]opened+sec_in_day 1732666136 [22:08:15]quantity*price = 100066 [22:08:15]sum+1 = 100067 [22:08:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 182 26.11.2024 22:08 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123328 ФПД: 165916543977063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T220828&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123328&fm=165916543977063&tin=02508201610067®Number=0000000000092681&sum=100000 [22:08:17]StoreToDocumentArchive [22:08:17]shift 557 fd 123328 [22:08:17]save to /storage/0557/doc_00123328 [22:08:17]save last doc name /storage/0557/doc_00123328 to /storage/kkm_last_doc_name [22:08:17]save OK [22:08:17]Clear old archive folders... [22:08:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:08:17]tlvbuf is 02047710 [22:08:17]SAM_PROTO_ClearQueue [22:08:17]wFMCommunicate request_size=4 [22:08:17]MH_SAM_APDU [22:08:17]CAPDU: 80 09 00 00 [22:08:17]Write to MH i2c: E2 08 00 39 7C 80 09 00 00 00 00 00 00 27 [22:08:17]Write i2c OK [22:08:17]MH_I2C_Read... [22:08:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:17]Read from MH i2c: E2 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 03 00 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 03 00 39 7C 00 90 00 29 [22:08:17]RAPDU: 90 00 [22:08:17]wFMCommunicate OK [22:08:17]SAM_PROTO_ClearQueue done [22:08:17]KKMCreateOFDPacket [22:08:17]OFDProtocolAddRootSTLVToBuf [22:08:17]FM_MakeSignedData [22:08:17]FM_MakeSignedData [22:08:17]SAM_PROTO_SignData [22:08:17]wFMCommunicate request_size=4 [22:08:17]MH_SAM_APDU [22:08:17]CAPDU: 80 0D 01 02 [22:08:17]Write to MH i2c: E2 08 00 3A 7C 80 0D 01 02 00 00 00 00 2F [22:08:17]Write i2c OK [22:08:17]MH_I2C_Read... [22:08:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:17]Read from MH i2c: E2 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 03 00 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 03 00 3A 7C 00 90 00 2A [22:08:17]RAPDU: 90 00 [22:08:17]wFMCommunicate OK [22:08:17]wFMCommunicate request_size=255 [22:08:17]MH_SAM_APDU [22:08:17]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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 DC 46 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C0 E1 01 00 35 04 06 00 [22:08:17]Write to MH i2c: E2 02 01 3B 7C 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 DC 46 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C0 E1 01 00 35 04 06 00 00 00 6C [22:08:17]Write i2c OK [22:08:17]MH_I2C_Read... [22:08:17]OFD Sender: No OFD packet to send [22:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:17]Read from MH i2c: E2 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 03 00 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 03 00 3B 7C 00 90 00 2B [22:08:17]RAPDU: 90 00 [22:08:17]wFMCommunicate OK [22:08:17]wFMCommunicate request_size=11 [22:08:17]MH_SAM_APDU [22:08:17]CAPDU: 80 0D 02 02 06 96 E6 74 AA 86 67 [22:08:17]Write to MH i2c: E2 0E 00 3C 7C 80 0D 02 02 06 00 96 E6 74 AA 86 67 00 00 C5 [22:08:17]Write i2c OK [22:08:17]MH_I2C_Read... [22:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:17]Read from MH i2c: E2 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 03 00 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 03 00 3C 7C 00 90 00 2C [22:08:17]RAPDU: 90 00 [22:08:17]wFMCommunicate OK [22:08:17]wFMCommunicate request_size=4 [22:08:17]MH_SAM_APDU [22:08:17]CAPDU: 80 0D 03 02 [22:08:17]Write to MH i2c: E2 08 00 3D 7C 80 0D 03 02 00 00 00 00 34 [22:08:17]Write i2c OK [22:08:17]MH_I2C_Read... [22:08:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:17]Read from MH i2c: E2 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 0B 00 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 0B 00 3D 7C 00 14 95 90 B6 4A 9C DF 5A 90 00 43 [22:08:17]RAPDU: 14 95 90 B6 4A 9C DF 5A 90 00 [22:08:17]wFMCommunicate OK [22:08:17]SAM_PROTO_SignData done [22:08:17]FM_MakeSignedData done [22:08:17]CreateOFDProtocolMessage [22:08:17]wFMCommunicate request_size=4 [22:08:17]MH_SAM_APDU [22:08:17]CAPDU: 80 11 00 00 [22:08:17]Write to MH i2c: E2 08 00 3E 7C 80 11 00 00 00 00 00 00 34 [22:08:17]Write i2c OK [22:08:17]MH_I2C_Read... [22:08:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:17]Read from MH i2c: E2 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 17 00 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 17 00 3E 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8B [22:08:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [22:08:17]wFMCommunicate OK [22:08:17]CreateOFDProtocolMessage done [22:08:17]OFDSenderStorePacket 123328 [22:08:17]StoreOFDPacket docnum=123328 [22:08:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 9B A9 08 01 8D C9 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 DC 46 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C0 E1 01 00 35 04 06 00 96 E6 74 AA 86 67 14 95 90 B6 4A 9C DF 5A [22:08:17]CheckFolder [22:08:17]dirname=/storage/ofd_packets [22:08:17]CheckFolder done [22:08:17]ProducePacketName [22:08:17]name=ofd_packets/00123328 [22:08:17]NVStorageSaveData ofd_packets/00123328 [22:08:17]File name is /storage/ofd_packets/00123328 [22:08:17]Write 302 bytes [22:08:17]NVStorageSaveData done [22:08:17]OFDSenderStorePacket done [22:08:17]KKMCreateOFDPacket done [22:08:17]NVStorageSaveData kkm_last_timestamp [22:08:17]File name is /storage/kkm_last_timestamp [22:08:17]Write 4 bytes [22:08:17]NVStorageSaveData done [22:08:17]ExternCall_PrintAddStr [22:08:17]wPrintStart [22:08:17]Write to MH i2c: 01 00 00 3F 7C BB [22:08:17]Write i2c OK [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: 01 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: 01 07 00 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: 01 07 00 3F 7C 00 00 00 00 00 FF 0F D0 [22:08:17]RasterBufferAndPrint [22:08:17]line Счет N : (1)718158 [22:08:17]line ИНН: 02508201610067 [22:08:17]line Контрольно-Кассовый Чек [22:08:17]line ПРОДАЖА [22:08:17]line ТРК (МРК, ГНК) : 6 [22:08:17]line Товар: 2710194210 [22:08:17]line ДТ(л)-К-5 [22:08:17]line 13.360 * 74.90 [22:08:17]line = 1000.66 [22:08:17]line НДС 12% НСП 1% [22:08:17]line > о реализуемом товаре [22:08:17]line ОКРУГЛЕНИЕ: -0.66 [22:08:17]line ИТОГО: 1000.00 [22:08:17]line Внесено: 1000.00 [22:08:17]line СДАЧА: 0.00 [22:08:17]line НСП 1% : 8.85 [22:08:17]line НДС 12% : 106.26 [22:08:17]line Наличными: 1000.00 [22:08:17]line Безнал.: 0.00 [22:08:17]line Место: АЗС № 64 "Партнер Нефть" [22:08:17]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [22:08:17]line СНО: Общий режим [22:08:17]line Чек 182 26.11.2024 22:08 [22:08:17]line Смена: 557 ФФД: 1.0 [22:08:17]line ЗНМ: 0300000033 [22:08:17]line РНМ: 0000000000092681 [22:08:17]line Версия ККМ: 001 [22:08:17]line ФМ: 0000000000874881 [22:08:17]line ФД: 123328 [22:08:17]line ФПД: 165916543977063 [22:08:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T220828&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123328&fm=165916543977063&tin=02508201610067®Number=0000000000092681&sum=100000 [22:08:17]OFD Sender: Processing packet 123328 [packets to send 7, broken 6] [22:08:17]ProducePacketName [22:08:17]name=ofd_packets/00123328 [22:08:17]OFD Sender: To server: pG, [22:08:17]CommunicateWithHost lk.salyk.kg:30040 [22:08:17]ConnectInit lk.salyk.kg [22:08:17]written 0, free lines is 4095 [22:08:17]Connected sock=10 [22:08:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 9B A9 08 01 8D C9 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 DC 46 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C0 E1 01 00 35 04 06 00 96 E6 74 AA 86 67 14 95 90 B6 4A 9C DF 5A [22:08:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 6E 49 47 00 A9 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C0 E1 01 00 F4 03 04 00 9D F2 45 67 B6 04 01 00 00 94 82 00 CA 49 8E 9E F1 [22:08:18]CommunicateWithHost err = 0 [22:08:18]CheckOFDResponse [22:08:18]1017 (14) - 77093643461234 [22:08:18]1041 (16) - 0000000000874881 [22:08:18]1040 (4) - 123328 [22:08:18]1012 (4) - 26.11.2024 16:09 [22:08:18]1206 (1) - 0 [22:08:18]OFD Sender: Remove packet 123328 [22:08:18]ProducePacketName [22:08:18]name=ofd_packets/00123328 [22:08:18]NVStorageDeleteData [22:08:18]Write to MH i2c: 01 00 00 6A 7C E6 [22:08:18]Write i2c OK [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: 01 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: 01 07 00 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: 01 07 00 6A 7C 00 00 00 00 00 48 0C 41 [22:08:18]RasterBufferAndPrint [22:08:18]line [22:08:18]line [22:08:18]line [22:08:18]line [22:08:18]line [22:08:18]written 0, free lines is 3149 [22:08:18]MH_Cut [22:08:18]Write to MH i2c: D1 01 00 71 7C 01 BF [22:08:18]Write i2c OK [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: D1 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: D1 01 00 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: D1 01 00 71 7C 00 BE [22:08:18]Write to MH i2c: 01 00 00 72 7C EE [22:08:18]Write i2c OK [22:08:18]MH_I2C_Read... [22:08:18]OFD Sender: No OFD packet to send [22:08:19]*** Cut start [22:08:19]*** Partial cut [22:08:19]*** CUTSNS_PIN = 1 [22:08:19]*** CUTSNS_PIN = 0 [22:08:20]*** Brake cut motor [22:08:20]Read from MH i2c: 01 [22:08:20]MH_I2C_Read... [22:08:20]*** Stop cut motor [22:08:20]*** Cut end [22:08:20]Read from MH i2c: 01 07 00 [22:08:20]MH_I2C_Read... [22:08:20]Read from MH i2c: 01 07 00 72 7C 00 00 00 00 00 FF 0F 03 [22:08:20]process_action close_receipt done [22:08:20]requested_data is exist [22:08:20]produce_requested_data [22:08:20]requested_item fm.sn is exist - process it [22:08:20]wFMCommunicate request_size=4 [22:08:20]MH_SAM_APDU [22:08:20]CAPDU: 80 11 00 00 [22:08:20]Write to MH i2c: E2 08 00 73 7C 80 11 00 00 00 00 00 00 69 [22:08:20]Write i2c OK [22:08:20]MH_I2C_Read... [22:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:20]Read from MH i2c: E2 [22:08:20]MH_I2C_Read... [22:08:20]Read from MH i2c: E2 17 00 [22:08:20]MH_I2C_Read... [22:08:20]Read from MH i2c: E2 17 00 73 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C0 [22:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [22:08:20]wFMCommunicate OK [22:08:20]requested_item fd.num is exist - process it [22:08:20]SAM_PROTO_GetFieldsCounters [22:08:20]wFMCommunicate request_size=4 [22:08:20]MH_SAM_APDU [22:08:20]CAPDU: 80 13 00 00 [22:08:20]Write to MH i2c: E2 08 00 74 7C 80 13 00 00 00 00 00 00 6C [22:08:20]Write i2c OK [22:08:20]MH_I2C_Read... [22:08:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:20]Read from MH i2c: E2 [22:08:20]MH_I2C_Read... [22:08:20]Read from MH i2c: E2 62 00 [22:08:20]MH_I2C_Read... [22:08:20]Read from MH i2c: E2 62 00 74 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C0 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [22:08:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C0 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:20]wFMCommunicate OK [22:08:20]SAM_PROTO_GetFieldsCounters done [22:08:20]requested_item shift.num is exist - process it [22:08:20]requested_item shift.opened is exist - process it [22:08:20]req_shift_opened [22:08:20]FM_GetShiftState [22:08:20]SAM_PROTO_GetShiftState [22:08:20]wFMCommunicate request_size=4 [22:08:20]MH_SAM_APDU [22:08:20]CAPDU: 80 13 01 00 [22:08:20]Write to MH i2c: E2 08 00 75 7C 80 13 01 00 00 00 00 00 6E [22:08:20]Write i2c OK [22:08:20]MH_I2C_Read... [22:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:20]Read from MH i2c: E2 [22:08:20]MH_I2C_Read... [22:08:20]Read from MH i2c: E2 0E 00 [22:08:20]MH_I2C_Read... [22:08:20]Read from MH i2c: E2 0E 00 75 7C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 CF [22:08:20]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [22:08:20]wFMCommunicate OK [22:08:20]SAM_PROTO_GetShiftState done [22:08:20]FM_GetShiftState done [22:08:20]req_shift_opened done [22:08:20]requested_item shift.open_date is exist - process it [22:08:20]req_shift_open_date [22:08:20]req_shift_open_date done [22:08:20]produce_requested_data done [22:08:20]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123328,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [22:08:20]process_action_free close_receipt [22:08:20]json_value_free [22:08:20]json_value_free done [22:08:20]process_json_proto returns [22:08:20]Send response to host [22:08:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123328,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [22:08:20]free response buf [22:08:20]execute_script done [22:08:20]execute_script returns [22:08:20]free content buf [22:08:20]Sock 7.Close socket [22:08:20]Sock 7.Thread stoped [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:51]accept exits with 9 [22:13:51]New connection [22:13:51]New thread 3066580324 created [22:13:51]Thread 3066723684 joined [22:13:51]Waiting for new connection... [22:13:51] Sock 9.Parse request [22:13:51]Sock 9.Check first char [22:13:51]Sock 9.First char is OK [22:13:51]request: POST /json_proto HTTP/1.0 [22:13:51]Method: POST [22:13:51]URL: /json_proto [22:13:51]Method is POST - this is cgi request [22:13:51]url: /json_proto [22:13:51]query_string will be loaded in cgi processing [22:13:51]execute_cgi json_proto POST (null) [22:13:51]execute_cgi path=json_proto method=POST [22:13:51]POST find Content-Length [22:13:51]Host: 172.17.37.4:8080 [22:13:51]Content-Length: 677 [22:13:51]Content-Type: application/json [22:13:51] [22:13:51]POST finish read [22:13:51]Found Content-Length = 677 [22:13:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 9.740, "sum" : 656.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 656.00, "total" : 656.00, "payments": [ { "type": 0, "sum" : 656.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:51]execute_script... [22:13:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 9.740, "sum" : 656.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 656.00, "total" : 656.00, "payments": [ { "type": 0, "sum" : 656.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:51]POST & json_proto [22:13:51]process_json_proto [22:13:51]json parsed OK: [22:13:51]protocol is kg_v1.0 [22:13:51]action value=close_receipt [22:13:51]process_action close_receipt [22:13:51]cmd_close_receipt [22:13:51]MH_GetDate [22:13:51]Write to MH i2c: F0 00 00 76 7C E1 [22:13:51]Write i2c OK [22:13:51]MH_I2C_Read... [22:13:51]Read from MH i2c: F0 [22:13:51]MH_I2C_Read... [22:13:51]Read from MH i2c: F0 09 00 [22:13:51]MH_I2C_Read... [22:13:51]Read from MH i2c: F0 09 00 76 7C 00 2C 48 46 67 B8 5A 43 67 C7 [22:13:51]GetLastDocTimeStamp 1732658908 [22:13:51]current date 1732659244 [22:13:51]FM_GetShiftState [22:13:51]SAM_PROTO_GetShiftState [22:13:51]wFMCommunicate request_size=4 [22:13:51]MH_SAM_APDU [22:13:51]CAPDU: 80 13 01 00 [22:13:51]Write to MH i2c: E2 08 00 77 7C 80 13 01 00 00 00 00 00 70 [22:13:51]Write i2c OK [22:13:51]MH_I2C_Read... [22:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:51]Read from MH i2c: E2 [22:13:51]MH_I2C_Read... [22:13:51]Read from MH i2c: E2 0E 00 [22:13:51]MH_I2C_Read... [22:13:51]Read from MH i2c: E2 0E 00 77 7C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 D1 [22:13:51]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [22:13:51]wFMCommunicate OK [22:13:51]SAM_PROTO_GetShiftState done [22:13:51]FM_GetShiftState done [22:13:51]opened in 1732579736 [22:13:51]opened+sec_in_day 1732666136 [22:13:51]quantity*price = 65647 [22:13:51]sum+1 = 65649 [22:13:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 656.00 Внесено: 656.00 СДАЧА: 0.00 НСП 1% : 5.81 НДС 12% : 69.71 Наличными: 656.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 183 26.11.2024 22:14 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123329 ФПД: 264158801311856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T221404&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123329&fm=264158801311856&tin=02508201610067®Number=0000000000092681&sum=65600 [22:13:52]StoreToDocumentArchive [22:13:52]shift 557 fd 123329 [22:13:52]save to /storage/0557/doc_00123329 [22:13:52]save last doc name /storage/0557/doc_00123329 to /storage/kkm_last_doc_name [22:13:52]save OK [22:13:52]Clear old archive folders... [22:13:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:13:52]tlvbuf is 01F4E110 [22:13:52]SAM_PROTO_ClearQueue [22:13:52]wFMCommunicate request_size=4 [22:13:52]MH_SAM_APDU [22:13:52]CAPDU: 80 09 00 00 [22:13:52]Write to MH i2c: E2 08 00 84 7C 80 09 00 00 00 00 00 00 72 [22:13:53]Write i2c OK [22:13:53]MH_I2C_Read... [22:13:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:53]Read from MH i2c: E2 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: E2 03 00 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: E2 03 00 84 7C 00 90 00 74 [22:13:53]RAPDU: 90 00 [22:13:53]wFMCommunicate OK [22:13:53]SAM_PROTO_ClearQueue done [22:13:53]KKMCreateOFDPacket [22:13:53]OFDProtocolAddRootSTLVToBuf [22:13:53]FM_MakeSignedData [22:13:53]FM_MakeSignedData [22:13:53]SAM_PROTO_SignData [22:13:53]wFMCommunicate request_size=4 [22:13:53]MH_SAM_APDU [22:13:53]CAPDU: 80 0D 01 02 [22:13:53]Write to MH i2c: E2 08 00 85 7C 80 0D 01 02 00 00 00 00 7A [22:13:53]Write i2c OK [22:13:53]MH_I2C_Read... [22:13:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:53]Read from MH i2c: E2 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: E2 03 00 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: E2 03 00 85 7C 00 90 00 75 [22:13:53]RAPDU: 90 00 [22:13:53]wFMCommunicate OK [22:13:53]wFMCommunicate request_size=255 [22:13:53]MH_SAM_APDU [22:13:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 70 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 1B 00 00 00 00 07 04 06 00 40 00 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2C 48 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C1 E1 01 00 35 04 06 00 F0 [22:13:53]Write to MH i2c: E2 02 01 86 7C 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 34 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 70 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 1B 00 00 00 00 07 04 06 00 40 00 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2C 48 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C1 E1 01 00 35 04 06 00 F0 00 00 52 [22:13:53]Write i2c OK [22:13:53]MH_I2C_Read... [22:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:53]Read from MH i2c: E2 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: E2 03 00 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: E2 03 00 86 7C 00 90 00 76 [22:13:53]RAPDU: 90 00 [22:13:53]wFMCommunicate OK [22:13:53]wFMCommunicate request_size=10 [22:13:53]MH_SAM_APDU [22:13:53]CAPDU: 80 0D 02 02 05 40 43 84 38 70 [22:13:53]Write to MH i2c: E2 0D 00 87 7C 80 0D 02 02 05 00 40 43 84 38 70 00 00 36 [22:13:53]Write i2c OK [22:13:53]MH_I2C_Read... [22:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:53]Read from MH i2c: E2 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: E2 03 00 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: E2 03 00 87 7C 00 90 00 77 [22:13:53]RAPDU: 90 00 [22:13:53]wFMCommunicate OK [22:13:53]wFMCommunicate request_size=4 [22:13:53]MH_SAM_APDU [22:13:53]CAPDU: 80 0D 03 02 [22:13:53]Write to MH i2c: E2 08 00 88 7C 80 0D 03 02 00 00 00 00 7F [22:13:53]Write i2c OK [22:13:53]MH_I2C_Read... [22:13:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:53]Read from MH i2c: E2 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: E2 0B 00 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: E2 0B 00 88 7C 00 01 A7 4A 0A BF B9 0E 29 90 00 2B [22:13:53]RAPDU: 01 A7 4A 0A BF B9 0E 29 90 00 [22:13:53]wFMCommunicate OK [22:13:53]SAM_PROTO_SignData done [22:13:53]FM_MakeSignedData done [22:13:53]CreateOFDProtocolMessage [22:13:53]wFMCommunicate request_size=4 [22:13:53]MH_SAM_APDU [22:13:53]CAPDU: 80 11 00 00 [22:13:53]Write to MH i2c: E2 08 00 89 7C 80 11 00 00 00 00 00 00 7F [22:13:53]Write i2c OK [22:13:53]MH_I2C_Read... [22:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:53]Read from MH i2c: E2 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: E2 17 00 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: E2 17 00 89 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D6 [22:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [22:13:53]wFMCommunicate OK [22:13:53]CreateOFDProtocolMessage done [22:13:53]OFDSenderStorePacket 123329 [22:13:53]StoreOFDPacket docnum=123329 [22:13:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 27 69 07 01 FD FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 70 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 1B 00 00 00 00 07 04 06 00 40 00 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2C 48 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C1 E1 01 00 35 04 06 00 F0 40 43 84 38 70 01 A7 4A 0A BF B9 0E 29 [22:13:53]CheckFolder [22:13:53]dirname=/storage/ofd_packets [22:13:53]CheckFolder done [22:13:53]ProducePacketName [22:13:53]name=ofd_packets/00123329 [22:13:53]NVStorageSaveData ofd_packets/00123329 [22:13:53]File name is /storage/ofd_packets/00123329 [22:13:53]Write 301 bytes [22:13:53]NVStorageSaveData done [22:13:53]OFDSenderStorePacket done [22:13:53]KKMCreateOFDPacket done [22:13:53]NVStorageSaveData kkm_last_timestamp [22:13:53]File name is /storage/kkm_last_timestamp [22:13:53]Write 4 bytes [22:13:53]NVStorageSaveData done [22:13:53]ExternCall_PrintAddStr [22:13:53]wPrintStart [22:13:53]Write to MH i2c: 01 00 00 8A 7C 06 [22:13:53]Write i2c OK [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: 01 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: 01 07 00 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: 01 07 00 8A 7C 00 00 00 00 00 FF 0F 1B [22:13:53]RasterBufferAndPrint [22:13:53]line Счет N : (1)718159 [22:13:53]line ИНН: 02508201610067 [22:13:53]line Контрольно-Кассовый Чек [22:13:53]line ПРОДАЖА [22:13:53]line ТРК (МРК, ГНК) : 22 [22:13:53]line Товар: 2710124130 [22:13:53]line Аи-92-К-4 [22:13:53]line 9.740 * 67.40 [22:13:53]line = 656.48 [22:13:53]line НДС 12% НСП 1% [22:13:53]line > о реализуемом товаре [22:13:53]line ОКРУГЛЕНИЕ: -0.48 [22:13:53]line ИТОГО: 656.00 [22:13:53]line Внесено: 656.00 [22:13:53]line СДАЧА: 0.00 [22:13:53]line НСП 1% : 5.81 [22:13:53]line НДС 12% : 69.71 [22:13:53]line Наличными: 656.00 [22:13:53]line Безнал.: 0.00 [22:13:53]line Место: АЗС № 64 "Партнер Нефть" [22:13:53]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [22:13:53]line СНО: Общий режим [22:13:53]line Чек 183 26.11.2024 22:14 [22:13:53]line Смена: 557 ФФД: 1.0 [22:13:53]line ЗНМ: 0300000033 [22:13:53]line РНМ: 0000000000092681 [22:13:53]line Версия ККМ: 001 [22:13:53]line ФМ: 0000000000874881 [22:13:53]line ФД: 123329 [22:13:53]line ФПД: 264158801311856 [22:13:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T221404&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123329&fm=264158801311856&tin=02508201610067®Number=0000000000092681&sum=65600 [22:13:53]OFD Sender: Processing packet 123329 [packets to send 7, broken 6] [22:13:53]ProducePacketName [22:13:53]name=ofd_packets/00123329 [22:13:53]OFD Sender: To server: pG, [22:13:53]CommunicateWithHost lk.salyk.kg:30040 [22:13:53]ConnectInit lk.salyk.kg [22:13:53]written 0, free lines is 4095 [22:13:53]Connected sock=7 [22:13:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 27 69 07 01 FD FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 70 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 1B 00 00 00 00 07 04 06 00 40 00 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2C 48 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C1 E1 01 00 35 04 06 00 F0 40 43 84 38 70 01 A7 4A 0A BF B9 0E 29 [22:13:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 B4 B2 47 00 A3 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C1 E1 01 00 F4 03 04 00 ED F3 45 67 B6 04 01 00 00 C7 5A 9C 98 96 F4 4C 24 [22:13:54]CommunicateWithHost err = 0 [22:13:54]CheckOFDResponse [22:13:54]1017 (14) - 77093643461234 [22:13:54]1041 (16) - 0000000000874881 [22:13:54]1040 (4) - 123329 [22:13:54]1012 (4) - 26.11.2024 16:14 [22:13:54]1206 (1) - 0 [22:13:54]OFD Sender: Remove packet 123329 [22:13:54]ProducePacketName [22:13:54]name=ofd_packets/00123329 [22:13:54]NVStorageDeleteData [22:13:54]Write to MH i2c: 01 00 00 B5 7C 31 [22:13:54]Write i2c OK [22:13:54]MH_I2C_Read... [22:13:54]Read from MH i2c: 01 [22:13:54]MH_I2C_Read... [22:13:54]Read from MH i2c: 01 07 00 [22:13:54]MH_I2C_Read... [22:13:54]Read from MH i2c: 01 07 00 B5 7C 00 00 00 00 00 4D 0C 91 [22:13:54]RasterBufferAndPrint [22:13:54]line [22:13:54]line [22:13:54]line [22:13:54]line [22:13:54]line [22:13:54]written 0, free lines is 3153 [22:13:54]MH_Cut [22:13:54]Write to MH i2c: D1 01 00 BC 7C 01 0A [22:13:54]Write i2c OK [22:13:54]MH_I2C_Read... [22:13:54]Read from MH i2c: D1 [22:13:54]MH_I2C_Read... [22:13:54]Read from MH i2c: D1 01 00 [22:13:54]MH_I2C_Read... [22:13:54]Read from MH i2c: D1 01 00 BC 7C 00 09 [22:13:54]Write to MH i2c: 01 00 00 BD 7C 39 [22:13:54]Write i2c OK [22:13:54]MH_I2C_Read... [22:13:54]OFD Sender: No OFD packet to send [22:13:55]*** Cut start [22:13:55]*** Partial cut [22:13:55]*** CUTSNS_PIN = 1 [22:13:55]*** CUTSNS_PIN = 0 [22:13:56]*** Brake cut motor [22:13:56]Read from MH i2c: 01 [22:13:56]MH_I2C_Read... [22:13:56]*** Stop cut motor [22:13:56]*** Cut end [22:13:56]Read from MH i2c: 01 07 00 [22:13:56]MH_I2C_Read... [22:13:56]Read from MH i2c: 01 07 00 BD 7C 00 00 00 00 00 FF 0F 4E [22:13:56]process_action close_receipt done [22:13:56]requested_data is exist [22:13:56]produce_requested_data [22:13:56]requested_item fm.sn is exist - process it [22:13:56]wFMCommunicate request_size=4 [22:13:56]MH_SAM_APDU [22:13:56]CAPDU: 80 11 00 00 [22:13:56]Write to MH i2c: E2 08 00 BE 7C 80 11 00 00 00 00 00 00 B4 [22:13:56]Write i2c OK [22:13:56]MH_I2C_Read... [22:13:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:56]Read from MH i2c: E2 [22:13:56]MH_I2C_Read... [22:13:56]Read from MH i2c: E2 17 00 [22:13:56]MH_I2C_Read... [22:13:56]Read from MH i2c: E2 17 00 BE 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0B [22:13:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [22:13:56]wFMCommunicate OK [22:13:56]requested_item fd.num is exist - process it [22:13:56]SAM_PROTO_GetFieldsCounters [22:13:56]wFMCommunicate request_size=4 [22:13:56]MH_SAM_APDU [22:13:56]CAPDU: 80 13 00 00 [22:13:56]Write to MH i2c: E2 08 00 BF 7C 80 13 00 00 00 00 00 00 B7 [22:13:56]Write i2c OK [22:13:56]MH_I2C_Read... [22:13:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:56]Read from MH i2c: E2 [22:13:56]MH_I2C_Read... [22:13:56]Read from MH i2c: E2 62 00 [22:13:56]MH_I2C_Read... [22:13:56]Read from MH i2c: E2 62 00 BF 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C1 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [22:13:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C1 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:13:56]wFMCommunicate OK [22:13:56]SAM_PROTO_GetFieldsCounters done [22:13:56]requested_item shift.num is exist - process it [22:13:56]requested_item shift.opened is exist - process it [22:13:56]req_shift_opened [22:13:56]FM_GetShiftState [22:13:56]SAM_PROTO_GetShiftState [22:13:56]wFMCommunicate request_size=4 [22:13:56]MH_SAM_APDU [22:13:56]CAPDU: 80 13 01 00 [22:13:56]Write to MH i2c: E2 08 00 C0 7C 80 13 01 00 00 00 00 00 B9 [22:13:56]Write i2c OK [22:13:56]MH_I2C_Read... [22:13:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:56]Read from MH i2c: E2 [22:13:56]MH_I2C_Read... [22:13:56]Read from MH i2c: E2 0E 00 [22:13:56]MH_I2C_Read... [22:13:56]Read from MH i2c: E2 0E 00 C0 7C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 1A [22:13:56]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [22:13:56]wFMCommunicate OK [22:13:56]SAM_PROTO_GetShiftState done [22:13:56]FM_GetShiftState done [22:13:56]req_shift_opened done [22:13:56]requested_item shift.open_date is exist - process it [22:13:56]req_shift_open_date [22:13:56]req_shift_open_date done [22:13:56]produce_requested_data done [22:13:56]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123329,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [22:13:56]process_action_free close_receipt [22:13:56]json_value_free [22:13:56]json_value_free done [22:13:56]process_json_proto returns [22:13:56]Send response to host [22:13:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123329,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [22:13:56]free response buf [22:13:56]execute_script done [22:13:56]execute_script returns [22:13:56]free content buf [22:13:56]Sock 9.Close socket [22:13:56]Sock 9.Thread stoped [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:55]OFD Sender: No OFD packet to send [22:21:00]OFD Sender: No OFD packet to send [22:21:05]OFD Sender: No OFD packet to send [22:21:10]OFD Sender: No OFD packet to send [22:21:15]OFD Sender: No OFD packet to send [22:21:20]OFD Sender: No OFD packet to send [22:21:25]OFD Sender: No OFD packet to send [22:21:30]OFD Sender: No OFD packet to send [22:21:35]OFD Sender: No OFD packet to send [22:21:40]OFD Sender: No OFD packet to send [22:21:45]OFD Sender: No OFD packet to send [22:21:50]OFD Sender: No OFD packet to send [22:21:55]OFD Sender: No OFD packet to send [22:22:00]OFD Sender: No OFD packet to send [22:22:05]OFD Sender: No OFD packet to send [22:22:10]OFD Sender: No OFD packet to send [22:22:15]OFD Sender: No OFD packet to send [22:22:20]OFD Sender: No OFD packet to send [22:22:25]OFD Sender: No OFD packet to send [22:22:30]OFD Sender: No OFD packet to send [22:22:35]OFD Sender: No OFD packet to send [22:22:40]OFD Sender: No OFD packet to send [22:22:45]OFD Sender: No OFD packet to send [22:22:50]OFD Sender: No OFD packet to send [22:22:55]OFD Sender: No OFD packet to send [22:23:00]OFD Sender: No OFD packet to send [22:23:05]OFD Sender: No OFD packet to send [22:23:10]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:30]OFD Sender: No OFD packet to send [22:23:35]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:05]OFD Sender: No OFD packet to send [22:24:10]OFD Sender: No OFD packet to send [22:24:15]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:06]accept exits with 10 [22:25:06]New connection [22:25:06]New thread 3066723684 created [22:25:06]Thread 3066580324 joined [22:25:06]Waiting for new connection... [22:25:06] Sock 10.Parse request [22:25:06]Sock 10.Check first char [22:25:06]Sock 10.First char is OK [22:25:06]request: POST /json_proto HTTP/1.0 [22:25:06]Method: POST [22:25:06]URL: /json_proto [22:25:06]Method is POST - this is cgi request [22:25:06]url: /json_proto [22:25:06]query_string will be loaded in cgi processing [22:25:06]execute_cgi json_proto POST (null) [22:25:06]execute_cgi path=json_proto method=POST [22:25:06]POST find Content-Length [22:25:06]Host: 172.17.37.4:8080 [22:25:06]Content-Length: 682 [22:25:06]Content-Type: application/json [22:25:06] [22:25:06]POST finish read [22:25:06]Found Content-Length = 682 [22:25:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:06]execute_script... [22:25:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:06]POST & json_proto [22:25:06]process_json_proto [22:25:06]json parsed OK: [22:25:06]protocol is kg_v1.0 [22:25:06]action value=close_receipt [22:25:06]process_action close_receipt [22:25:06]cmd_close_receipt [22:25:06]MH_GetDate [22:25:06]Write to MH i2c: F0 00 00 C1 7C 2C [22:25:06]Write i2c OK [22:25:06]MH_I2C_Read... [22:25:06]Read from MH i2c: F0 [22:25:06]MH_I2C_Read... [22:25:06]Read from MH i2c: F0 09 00 [22:25:06]MH_I2C_Read... [22:25:06]Read from MH i2c: F0 09 00 C1 7C 00 CE 4A 46 67 B8 5A 43 67 B6 [22:25:06]GetLastDocTimeStamp 1732659244 [22:25:06]current date 1732659918 [22:25:06]FM_GetShiftState [22:25:06]SAM_PROTO_GetShiftState [22:25:06]wFMCommunicate request_size=4 [22:25:06]MH_SAM_APDU [22:25:06]CAPDU: 80 13 01 00 [22:25:06]Write to MH i2c: E2 08 00 C2 7C 80 13 01 00 00 00 00 00 BB [22:25:06]Write i2c OK [22:25:06]MH_I2C_Read... [22:25:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:06]Read from MH i2c: E2 [22:25:06]MH_I2C_Read... [22:25:06]Read from MH i2c: E2 0E 00 [22:25:06]MH_I2C_Read... [22:25:06]Read from MH i2c: E2 0E 00 C2 7C 00 09 00 01 98 11 45 67 00 00 00 00 90 00 1C [22:25:06]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [22:25:06]wFMCommunicate OK [22:25:06]SAM_PROTO_GetShiftState done [22:25:06]FM_GetShiftState done [22:25:06]opened in 1732579736 [22:25:06]opened+sec_in_day 1732666136 [22:25:06]quantity*price = 100021 [22:25:06]sum+1 = 100023 [22:25:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 184 26.11.2024 22:25 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123330 ФПД: 14666022248456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T222519&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123330&fm=14666022248456&tin=02508201610067®Number=0000000000092681&sum=100000 [22:25:07]StoreToDocumentArchive [22:25:07]shift 557 fd 123330 [22:25:07]save to /storage/0557/doc_00123330 [22:25:07]save last doc name /storage/0557/doc_00123330 to /storage/kkm_last_doc_name [22:25:07]save OK [22:25:07]Clear old archive folders... [22:25:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:25:07]tlvbuf is 021CF040 [22:25:07]SAM_PROTO_ClearQueue [22:25:07]wFMCommunicate request_size=4 [22:25:07]MH_SAM_APDU [22:25:07]CAPDU: 80 09 00 00 [22:25:07]Write to MH i2c: E2 08 00 CF 7C 80 09 00 00 00 00 00 00 BD [22:25:07]Write i2c OK [22:25:07]MH_I2C_Read... [22:25:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:25:07]Read from MH i2c: E2 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: E2 03 00 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: E2 03 00 CF 7C 00 90 00 BF [22:25:07]RAPDU: 90 00 [22:25:07]wFMCommunicate OK [22:25:07]SAM_PROTO_ClearQueue done [22:25:07]KKMCreateOFDPacket [22:25:07]OFDProtocolAddRootSTLVToBuf [22:25:07]FM_MakeSignedData [22:25:07]FM_MakeSignedData [22:25:07]SAM_PROTO_SignData [22:25:07]wFMCommunicate request_size=4 [22:25:07]MH_SAM_APDU [22:25:07]CAPDU: 80 0D 01 02 [22:25:07]Write to MH i2c: E2 08 00 D0 7C 80 0D 01 02 00 00 00 00 C5 [22:25:07]Write i2c OK [22:25:07]MH_I2C_Read... [22:25:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:25:07]Read from MH i2c: E2 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: E2 03 00 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: E2 03 00 D0 7C 00 90 00 C0 [22:25:07]RAPDU: 90 00 [22:25:07]wFMCommunicate OK [22:25:07]wFMCommunicate request_size=255 [22:25:07]MH_SAM_APDU [22:25:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 CF 4A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C2 E1 01 00 35 04 06 00 0D [22:25:07]Write to MH i2c: E2 02 01 D1 7C 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 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 CF 4A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C2 E1 01 00 35 04 06 00 0D 00 00 7A [22:25:07]Write i2c OK [22:25:07]MH_I2C_Read... [22:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:07]Read from MH i2c: E2 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: E2 03 00 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: E2 03 00 D1 7C 00 90 00 C1 [22:25:07]RAPDU: 90 00 [22:25:07]wFMCommunicate OK [22:25:07]wFMCommunicate request_size=10 [22:25:07]MH_SAM_APDU [22:25:07]CAPDU: 80 0D 02 02 05 56 B3 0B E0 08 [22:25:07]Write to MH i2c: E2 0D 00 D2 7C 80 0D 02 02 05 00 56 B3 0B E0 08 00 00 CE [22:25:07]Write i2c OK [22:25:07]MH_I2C_Read... [22:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:07]Read from MH i2c: E2 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: E2 03 00 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: E2 03 00 D2 7C 00 90 00 C2 [22:25:07]RAPDU: 90 00 [22:25:07]wFMCommunicate OK [22:25:07]wFMCommunicate request_size=4 [22:25:07]MH_SAM_APDU [22:25:07]CAPDU: 80 0D 03 02 [22:25:07]Write to MH i2c: E2 08 00 D3 7C 80 0D 03 02 00 00 00 00 CA [22:25:07]Write i2c OK [22:25:07]MH_I2C_Read... [22:25:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:25:07]Read from MH i2c: E2 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: E2 0B 00 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: E2 0B 00 D3 7C 00 E3 E7 E1 08 CB 93 22 58 90 00 56 [22:25:07]RAPDU: E3 E7 E1 08 CB 93 22 58 90 00 [22:25:07]wFMCommunicate OK [22:25:07]SAM_PROTO_SignData done [22:25:07]FM_MakeSignedData done [22:25:07]CreateOFDProtocolMessage [22:25:07]wFMCommunicate request_size=4 [22:25:07]MH_SAM_APDU [22:25:07]CAPDU: 80 11 00 00 [22:25:07]Write to MH i2c: E2 08 00 D4 7C 80 11 00 00 00 00 00 00 CA [22:25:07]Write i2c OK [22:25:07]MH_I2C_Read... [22:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:07]Read from MH i2c: E2 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: E2 17 00 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: E2 17 00 D4 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 21 [22:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [22:25:07]wFMCommunicate OK [22:25:07]CreateOFDProtocolMessage done [22:25:07]OFDSenderStorePacket 123330 [22:25:07]StoreOFDPacket docnum=123330 [22:25:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1F F1 07 01 05 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 CF 4A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C2 E1 01 00 35 04 06 00 0D 56 B3 0B E0 08 E3 E7 E1 08 CB 93 22 58 [22:25:07]CheckFolder [22:25:07]dirname=/storage/ofd_packets [22:25:07]CheckFolder done [22:25:07]ProducePacketName [22:25:07]name=ofd_packets/00123330 [22:25:07]NVStorageSaveData ofd_packets/00123330 [22:25:07]File name is /storage/ofd_packets/00123330 [22:25:07]Write 301 bytes [22:25:07]NVStorageSaveData done [22:25:07]OFDSenderStorePacket done [22:25:07]KKMCreateOFDPacket done [22:25:07]NVStorageSaveData kkm_last_timestamp [22:25:07]File name is /storage/kkm_last_timestamp [22:25:07]Write 4 bytes [22:25:07]NVStorageSaveData done [22:25:07]ExternCall_PrintAddStr [22:25:07]wPrintStart [22:25:07]Write to MH i2c: 01 00 00 D5 7C 51 [22:25:07]Write i2c OK [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: 01 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: 01 07 00 [22:25:07]MH_I2C_Read... [22:25:07]Read from MH i2c: 01 07 00 D5 7C 00 00 00 00 00 FF 0F 66 [22:25:07]RasterBufferAndPrint [22:25:07]line Счет N : (1)718160 [22:25:07]line ИНН: 02508201610067 [22:25:07]line Контрольно-Кассовый Чек [22:25:07]line ПРОДАЖА [22:25:07]line ТРК (МРК, ГНК) : 12 [22:25:07]line Товар: 2710124130 [22:25:07]line Аи-92-К-4 [22:25:07]line 14.840 * 67.40 [22:25:07]line = 1000.22 [22:25:07]line НДС 12% НСП 1% [22:25:07]line > о реализуемом товаре [22:25:07]line ОКРУГЛЕНИЕ: -0.22 [22:25:07]line ИТОГО: 1000.00 [22:25:07]line Внесено: 1000.00 [22:25:07]line СДАЧА: 0.00 [22:25:07]line НСП 1% : 8.85 [22:25:07]line НДС 12% : 106.22 [22:25:07]line Наличными: 1000.00 [22:25:07]line Безнал.: 0.00 [22:25:07]line Место: АЗС № 64 "Партнер Нефть" [22:25:07]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [22:25:07]line СНО: Общий режим [22:25:07]line Чек 184 26.11.2024 22:25 [22:25:07]line Смена: 557 ФФД: 1.0 [22:25:07]line ЗНМ: 0300000033 [22:25:07]line РНМ: 0000000000092681 [22:25:07]line Версия ККМ: 001 [22:25:07]line ФМ: 0000000000874881 [22:25:07]line ФД: 123330 [22:25:07]line ФПД: 14666022248456 [22:25:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T222519&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123330&fm=14666022248456&tin=02508201610067®Number=0000000000092681&sum=100000 [22:25:08]OFD Sender: Processing packet 123330 [packets to send 7, broken 6] [22:25:08]ProducePacketName [22:25:08]name=ofd_packets/00123330 [22:25:08]OFD Sender: To server: pG, [22:25:08]CommunicateWithHost lk.salyk.kg:30040 [22:25:08]ConnectInit lk.salyk.kg [22:25:08]written 0, free lines is 4095 [22:25:08]Connected sock=9 [22:25:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 1F F1 07 01 05 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 CF 4A 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C2 E1 01 00 35 04 06 00 0D 56 B3 0B E0 08 E3 E7 E1 08 CB 93 22 58 [22:25:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 16 CE 47 00 66 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C2 E1 01 00 F4 03 04 00 90 F6 45 67 B6 04 01 00 00 2E 62 FC 0D C0 5B 9B D3 [22:25:08]CommunicateWithHost err = 0 [22:25:08]CheckOFDResponse [22:25:08]1017 (14) - 77093643461234 [22:25:08]1041 (16) - 0000000000874881 [22:25:08]1040 (4) - 123330 [22:25:08]1012 (4) - 26.11.2024 16:25 [22:25:08]1206 (1) - 0 [22:25:08]OFD Sender: Remove packet 123330 [22:25:08]ProducePacketName [22:25:08]name=ofd_packets/00123330 [22:25:08]NVStorageDeleteData [22:25:08]Write to MH i2c: 01 00 00 00 7D 7D [22:25:08]Write i2c OK [22:25:08]MH_I2C_Read... [22:25:08]Read from MH i2c: 01 [22:25:08]MH_I2C_Read... [22:25:08]Read from MH i2c: 01 07 00 [22:25:08]MH_I2C_Read... [22:25:08]Read from MH i2c: 01 07 00 00 7D 00 00 00 00 00 43 0C D3 [22:25:08]RasterBufferAndPrint [22:25:08]line [22:25:08]line [22:25:08]line [22:25:08]line [22:25:08]line [22:25:08]written 0, free lines is 3145 [22:25:08]MH_Cut [22:25:08]Write to MH i2c: D1 01 00 07 7D 01 56 [22:25:08]Write i2c OK [22:25:08]MH_I2C_Read... [22:25:08]Read from MH i2c: D1 [22:25:08]MH_I2C_Read... [22:25:08]Read from MH i2c: D1 01 00 [22:25:08]MH_I2C_Read... [22:25:08]Read from MH i2c: D1 01 00 07 7D 00 55 [22:25:08]Write to MH i2c: 01 00 00 08 7D 85 [22:25:08]Write i2c OK [22:25:08]MH_I2C_Read... [22:25:08]OFD Sender: No OFD packet to send [22:25:09]*** Cut start [22:25:09]*** Partial cut [22:25:09]*** CUTSNS_PIN = 1 [22:25:10]*** CUTSNS_PIN = 0 [22:25:10]*** Brake cut motor [22:25:10]Read from MH i2c: 01 [22:25:10]MH_I2C_Read... [22:25:10]*** Stop cut motor [22:25:10]*** Cut end [22:25:10]Read from MH i2c: 01 07 00 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: 01 07 00 08 7D 00 00 00 00 00 FF 0F 9A [22:25:10]process_action close_receipt done [22:25:10]requested_data is exist [22:25:10]produce_requested_data [22:25:10]requested_item fm.sn is exist - process it [22:25:10]wFMCommunicate request_size=4 [22:25:10]MH_SAM_APDU [22:25:10]CAPDU: 80 11 00 00 [22:25:10]Write to MH i2c: E2 08 00 09 7D 80 11 00 00 00 00 00 00 00 [22:25:10]Write i2c OK [22:25:10]MH_I2C_Read... [22:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:10]Read from MH i2c: E2 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 17 00 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 17 00 09 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 57 [22:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [22:25:10]wFMCommunicate OK [22:25:10]requested_item fd.num is exist - process it [22:25:10]SAM_PROTO_GetFieldsCounters [22:25:10]wFMCommunicate request_size=4 [22:25:10]MH_SAM_APDU [22:25:10]CAPDU: 80 13 00 00 [22:25:10]Write to MH i2c: E2 08 00 0A 7D 80 13 00 00 00 00 00 00 03 [22:25:10]Write i2c OK [22:25:10]MH_I2C_Read... [22:25:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:25:10]Read from MH i2c: E2 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 62 00 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 62 00 0A 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C2 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [22:25:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C2 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:25:10]wFMCommunicate OK [22:25:10]SAM_PROTO_GetFieldsCounters done [22:25:10]requested_item shift.num is exist - process it [22:25:10]requested_item shift.opened is exist - process it [22:25:10]req_shift_opened [22:25:10]FM_GetShiftState [22:25:10]SAM_PROTO_GetShiftState [22:25:10]wFMCommunicate request_size=4 [22:25:10]MH_SAM_APDU [22:25:10]CAPDU: 80 13 01 00 [22:25:10]Write to MH i2c: E2 08 00 0B 7D 80 13 01 00 00 00 00 00 05 [22:25:10]Write i2c OK [22:25:10]MH_I2C_Read... [22:25:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:10]Read from MH i2c: E2 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 0E 00 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 0E 00 0B 7D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 66 [22:25:10]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [22:25:10]wFMCommunicate OK [22:25:10]SAM_PROTO_GetShiftState done [22:25:10]FM_GetShiftState done [22:25:10]req_shift_opened done [22:25:10]requested_item shift.open_date is exist - process it [22:25:10]req_shift_open_date [22:25:10]req_shift_open_date done [22:25:10]produce_requested_data done [22:25:10]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123330,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [22:25:10]process_action_free close_receipt [22:25:10]json_value_free [22:25:10]json_value_free done [22:25:10]process_json_proto returns [22:25:10]Send response to host [22:25:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123330,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [22:25:10]free response buf [22:25:10]execute_script done [22:25:10]execute_script returns [22:25:10]free content buf [22:25:10]Sock 10.Close socket [22:25:10]Sock 10.Thread stoped [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:29]OFD Sender: No OFD packet to send [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:11]accept exits with 7 [22:32:11]New connection [22:32:11]New thread 3066580324 created [22:32:11]Thread 3066723684 joined [22:32:11]Waiting for new connection... [22:32:11] Sock 7.Parse request [22:32:11]Sock 7.Check first char [22:32:11]Sock 7.First char is OK [22:32:11]request: POST /json_proto HTTP/1.0 [22:32:11]Method: POST [22:32:11]URL: /json_proto [22:32:11]Method is POST - this is cgi request [22:32:11]url: /json_proto [22:32:11]query_string will be loaded in cgi processing [22:32:11]execute_cgi json_proto POST (null) [22:32:11]execute_cgi path=json_proto method=POST [22:32:11]POST find Content-Length [22:32:11]Host: 172.17.37.4:8080 [22:32:11]Content-Length: 681 [22:32:11]Content-Type: application/json [22:32:11] [22:32:11]POST finish read [22:32:11]Found Content-Length = 681 [22:32:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 5.350, "sum" : 400.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:11]execute_script... [22:32:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 5.350, "sum" : 400.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:11]POST & json_proto [22:32:11]process_json_proto [22:32:11]json parsed OK: [22:32:11]protocol is kg_v1.0 [22:32:11]action value=close_receipt [22:32:11]process_action close_receipt [22:32:11]cmd_close_receipt [22:32:11]MH_GetDate [22:32:11]Write to MH i2c: F0 00 00 0C 7D 78 [22:32:11]Write i2c OK [22:32:11]MH_I2C_Read... [22:32:11]Read from MH i2c: F0 [22:32:11]MH_I2C_Read... [22:32:11]Read from MH i2c: F0 09 00 [22:32:11]MH_I2C_Read... [22:32:11]Read from MH i2c: F0 09 00 0C 7D 00 78 4C 46 67 B8 5A 43 67 AE [22:32:11]GetLastDocTimeStamp 1732659919 [22:32:11]current date 1732660344 [22:32:11]FM_GetShiftState [22:32:11]SAM_PROTO_GetShiftState [22:32:11]wFMCommunicate request_size=4 [22:32:11]MH_SAM_APDU [22:32:11]CAPDU: 80 13 01 00 [22:32:11]Write to MH i2c: E2 08 00 0D 7D 80 13 01 00 00 00 00 00 07 [22:32:11]Write i2c OK [22:32:11]MH_I2C_Read... [22:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:11]Read from MH i2c: E2 [22:32:11]MH_I2C_Read... [22:32:11]Read from MH i2c: E2 0E 00 [22:32:11]MH_I2C_Read... [22:32:11]Read from MH i2c: E2 0E 00 0D 7D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 68 [22:32:11]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [22:32:11]wFMCommunicate OK [22:32:11]SAM_PROTO_GetShiftState done [22:32:11]FM_GetShiftState done [22:32:11]opened in 1732579736 [22:32:11]opened+sec_in_day 1732666136 [22:32:11]quantity*price = 40071 [22:32:11]sum+1 = 40073 [22:32:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 185 26.11.2024 22:32 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123331 ФПД: 271413011808621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T223224&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123331&fm=271413011808621&tin=02508201610067®Number=0000000000092681&sum=40000 [22:32:12]StoreToDocumentArchive [22:32:12]shift 557 fd 123331 [22:32:12]save to /storage/0557/doc_00123331 [22:32:12]save last doc name /storage/0557/doc_00123331 to /storage/kkm_last_doc_name [22:32:12]save OK [22:32:12]Clear old archive folders... [22:32:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:32:12]tlvbuf is 0213C720 [22:32:12]SAM_PROTO_ClearQueue [22:32:12]wFMCommunicate request_size=4 [22:32:12]MH_SAM_APDU [22:32:12]CAPDU: 80 09 00 00 [22:32:12]Write to MH i2c: E2 08 00 1A 7D 80 09 00 00 00 00 00 00 09 [22:32:12]Write i2c OK [22:32:12]MH_I2C_Read... [22:32:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:32:12]Read from MH i2c: E2 [22:32:12]MH_I2C_Read... [22:32:12]Read from MH i2c: E2 03 00 [22:32:12]MH_I2C_Read... [22:32:12]Read from MH i2c: E2 03 00 1A 7D 00 90 00 0B [22:32:12]RAPDU: 90 00 [22:32:12]wFMCommunicate OK [22:32:12]SAM_PROTO_ClearQueue done [22:32:12]KKMCreateOFDPacket [22:32:12]OFDProtocolAddRootSTLVToBuf [22:32:12]FM_MakeSignedData [22:32:12]FM_MakeSignedData [22:32:12]SAM_PROTO_SignData [22:32:12]wFMCommunicate request_size=4 [22:32:12]MH_SAM_APDU [22:32:12]CAPDU: 80 0D 01 02 [22:32:12]Write to MH i2c: E2 08 00 1B 7D 80 0D 01 02 00 00 00 00 11 [22:32:12]Write i2c OK [22:32:12]MH_I2C_Read... [22:32:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:32:12]Read from MH i2c: E2 [22:32:12]MH_I2C_Read... [22:32:12]Read from MH i2c: E2 03 00 [22:32:12]MH_I2C_Read... [22:32:12]Read from MH i2c: E2 03 00 1B 7D 00 90 00 0C [22:32:12]RAPDU: 90 00 [22:32:12]wFMCommunicate OK [22:32:12]wFMCommunicate request_size=255 [22:32:12]MH_SAM_APDU [22:32:12]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 35 FF 03 08 00 03 E6 14 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 88 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 78 4C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C3 E1 01 00 35 04 06 00 [22:32:12]Write to MH i2c: E2 02 01 1C 7D 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 35 FF 03 08 00 03 E6 14 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 88 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 78 4C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C3 E1 01 00 35 04 06 00 00 00 A1 [22:32:12]Write i2c OK [22:32:12]MH_I2C_Read... [22:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:12]Read from MH i2c: E2 [22:32:12]MH_I2C_Read... [22:32:12]Read from MH i2c: E2 03 00 [22:32:12]MH_I2C_Read... [22:32:12]Read from MH i2c: E2 03 00 1C 7D 00 90 00 0D [22:32:12]RAPDU: 90 00 [22:32:12]wFMCommunicate OK [22:32:12]wFMCommunicate request_size=11 [22:32:12]MH_SAM_APDU [22:32:12]CAPDU: 80 0D 02 02 06 F6 D9 44 28 01 6D [22:32:12]Write to MH i2c: E2 0E 00 1D 7D 80 0D 02 02 06 00 F6 D9 44 28 01 6D 00 00 C9 [22:32:12]Write i2c OK [22:32:12]MH_I2C_Read... [22:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:12]Read from MH i2c: E2 [22:32:12]MH_I2C_Read... [22:32:12]Read from MH i2c: E2 03 00 [22:32:12]MH_I2C_Read... [22:32:12]Read from MH i2c: E2 03 00 1D 7D 00 90 00 0E [22:32:12]RAPDU: 90 00 [22:32:12]wFMCommunicate OK [22:32:12]wFMCommunicate request_size=4 [22:32:12]MH_SAM_APDU [22:32:12]CAPDU: 80 0D 03 02 [22:32:12]Write to MH i2c: E2 08 00 1E 7D 80 0D 03 02 00 00 00 00 16 [22:32:12]Write i2c OK [22:32:12]MH_I2C_Read... [22:32:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:32:12]Read from MH i2c: E2 [22:32:12]MH_I2C_Read... [22:32:12]Read from MH i2c: E2 0B 00 [22:32:12]MH_I2C_Read... [22:32:12]Read from MH i2c: E2 0B 00 1E 7D 00 E0 7C 2F 06 DB 9F EA 0C 90 00 18 [22:32:12]RAPDU: E0 7C 2F 06 DB 9F EA 0C 90 00 [22:32:12]wFMCommunicate OK [22:32:12]SAM_PROTO_SignData done [22:32:12]FM_MakeSignedData done [22:32:12]CreateOFDProtocolMessage [22:32:12]wFMCommunicate request_size=4 [22:32:12]MH_SAM_APDU [22:32:12]CAPDU: 80 11 00 00 [22:32:12]Write to MH i2c: E2 08 00 1F 7D 80 11 00 00 00 00 00 00 16 [22:32:12]Write i2c OK [22:32:12]MH_I2C_Read... [22:32:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:13]Read from MH i2c: E2 [22:32:13]MH_I2C_Read... [22:32:13]Read from MH i2c: E2 17 00 [22:32:13]MH_I2C_Read... [22:32:13]Read from MH i2c: E2 17 00 1F 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6D [22:32:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [22:32:13]wFMCommunicate OK [22:32:13]CreateOFDProtocolMessage done [22:32:13]OFDSenderStorePacket 123331 [22:32:13]StoreOFDPacket docnum=123331 [22:32:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 51 F0 08 01 C5 72 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 35 FF 03 08 00 03 E6 14 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 88 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 78 4C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C3 E1 01 00 35 04 06 00 F6 D9 44 28 01 6D E0 7C 2F 06 DB 9F EA 0C [22:32:13]CheckFolder [22:32:13]dirname=/storage/ofd_packets [22:32:13]CheckFolder done [22:32:13]ProducePacketName [22:32:13]name=ofd_packets/00123331 [22:32:13]NVStorageSaveData ofd_packets/00123331 [22:32:13]File name is /storage/ofd_packets/00123331 [22:32:13]Write 302 bytes [22:32:13]NVStorageSaveData done [22:32:13]OFDSenderStorePacket done [22:32:13]KKMCreateOFDPacket done [22:32:13]NVStorageSaveData kkm_last_timestamp [22:32:13]File name is /storage/kkm_last_timestamp [22:32:13]Write 4 bytes [22:32:13]NVStorageSaveData done [22:32:13]ExternCall_PrintAddStr [22:32:13]wPrintStart [22:32:13]Write to MH i2c: 01 00 00 20 7D 9D [22:32:13]Write i2c OK [22:32:13]MH_I2C_Read... [22:32:13]Read from MH i2c: 01 [22:32:13]MH_I2C_Read... [22:32:13]Read from MH i2c: 01 07 00 [22:32:13]MH_I2C_Read... [22:32:13]Read from MH i2c: 01 07 00 20 7D 00 00 00 00 00 FF 0F B2 [22:32:13]RasterBufferAndPrint [22:32:13]line Счет N : (1)718161 [22:32:13]line ИНН: 02508201610067 [22:32:13]line Контрольно-Кассовый Чек [22:32:13]line ПРОДАЖА [22:32:13]line ТРК (МРК, ГНК) : 5 [22:32:13]line Товар: 2710194210 [22:32:13]line ДТ(л)-К-5 [22:32:13]line 5.350 * 74.90 [22:32:13]line = 400.72 [22:32:13]line НДС 12% НСП 1% [22:32:13]line > о реализуемом товаре [22:32:13]line ОКРУГЛЕНИЕ: -0.72 [22:32:13]line ИТОГО: 400.00 [22:32:13]line Внесено: 400.00 [22:32:13]line СДАЧА: 0.00 [22:32:13]line НСП 1% : 3.55 [22:32:13]line НДС 12% : 42.55 [22:32:13]line Наличными: 400.00 [22:32:13]line Безнал.: 0.00 [22:32:13]line Место: АЗС № 64 "Партнер Нефть" [22:32:13]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [22:32:13]line СНО: Общий режим [22:32:13]line Чек 185 26.11.2024 22:32 [22:32:13]line Смена: 557 ФФД: 1.0 [22:32:13]line ЗНМ: 0300000033 [22:32:13]line РНМ: 0000000000092681 [22:32:13]line Версия ККМ: 001 [22:32:13]line ФМ: 0000000000874881 [22:32:13]line ФД: 123331 [22:32:13]line ФПД: 271413011808621 [22:32:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T223224&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123331&fm=271413011808621&tin=02508201610067®Number=0000000000092681&sum=40000 [22:32:13]OFD Sender: Processing packet 123331 [packets to send 7, broken 6] [22:32:13]ProducePacketName [22:32:13]name=ofd_packets/00123331 [22:32:13]OFD Sender: To server: pG, [22:32:13]CommunicateWithHost lk.salyk.kg:30040 [22:32:13]ConnectInit lk.salyk.kg [22:32:13]written 0, free lines is 4095 [22:32:13]Connected sock=11 [22:32:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 51 F0 08 01 C5 72 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 35 FF 03 08 00 03 E6 14 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 88 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 78 4C 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C3 E1 01 00 35 04 06 00 F6 D9 44 28 01 6D E0 7C 2F 06 DB 9F EA 0C [22:32:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 7C F4 47 00 9D 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C3 E1 01 00 F4 03 04 00 39 F8 45 67 B6 04 01 00 00 11 B9 29 3B 9C 0A 3F 38 [22:32:13]CommunicateWithHost err = 0 [22:32:13]CheckOFDResponse [22:32:13]1017 (14) - 77093643461234 [22:32:13]1041 (16) - 0000000000874881 [22:32:13]1040 (4) - 123331 [22:32:13]1012 (4) - 26.11.2024 16:32 [22:32:13]1206 (1) - 0 [22:32:13]OFD Sender: Remove packet 123331 [22:32:13]ProducePacketName [22:32:13]name=ofd_packets/00123331 [22:32:13]NVStorageDeleteData [22:32:13]Write to MH i2c: 01 00 00 4B 7D C8 [22:32:13]Write i2c OK [22:32:13]MH_I2C_Read... [22:32:13]Read from MH i2c: 01 [22:32:13]MH_I2C_Read... [22:32:13]Read from MH i2c: 01 07 00 [22:32:13]MH_I2C_Read... [22:32:13]Read from MH i2c: 01 07 00 4B 7D 00 00 00 00 00 40 0C 1B [22:32:13]RasterBufferAndPrint [22:32:13]line [22:32:13]line [22:32:13]line [22:32:13]line [22:32:13]line [22:32:13]written 0, free lines is 3140 [22:32:13]MH_Cut [22:32:13]Write to MH i2c: D1 01 00 52 7D 01 A1 [22:32:13]Write i2c OK [22:32:13]MH_I2C_Read... [22:32:13]Read from MH i2c: D1 [22:32:13]MH_I2C_Read... [22:32:13]Read from MH i2c: D1 01 00 [22:32:13]MH_I2C_Read... [22:32:13]Read from MH i2c: D1 01 00 52 7D 00 A0 [22:32:13]Write to MH i2c: 01 00 00 53 7D D0 [22:32:13]Write i2c OK [22:32:13]MH_I2C_Read... [22:32:14]OFD Sender: No OFD packet to send [22:32:15]*** Cut start [22:32:15]*** Partial cut [22:32:15]*** CUTSNS_PIN = 1 [22:32:15]*** CUTSNS_PIN = 0 [22:32:15]*** Brake cut motor [22:32:15]Read from MH i2c: 01 [22:32:15]MH_I2C_Read... [22:32:15]*** Stop cut motor [22:32:15]*** Cut end [22:32:15]Read from MH i2c: 01 07 00 [22:32:15]MH_I2C_Read... [22:32:15]Read from MH i2c: 01 07 00 53 7D 00 00 00 00 00 FF 0F E5 [22:32:15]process_action close_receipt done [22:32:15]requested_data is exist [22:32:15]produce_requested_data [22:32:15]requested_item fm.sn is exist - process it [22:32:15]wFMCommunicate request_size=4 [22:32:15]MH_SAM_APDU [22:32:15]CAPDU: 80 11 00 00 [22:32:15]Write to MH i2c: E2 08 00 54 7D 80 11 00 00 00 00 00 00 4B [22:32:15]Write i2c OK [22:32:15]MH_I2C_Read... [22:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:15]Read from MH i2c: E2 [22:32:15]MH_I2C_Read... [22:32:15]Read from MH i2c: E2 17 00 [22:32:15]MH_I2C_Read... [22:32:15]Read from MH i2c: E2 17 00 54 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A2 [22:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [22:32:15]wFMCommunicate OK [22:32:15]requested_item fd.num is exist - process it [22:32:15]SAM_PROTO_GetFieldsCounters [22:32:15]wFMCommunicate request_size=4 [22:32:15]MH_SAM_APDU [22:32:15]CAPDU: 80 13 00 00 [22:32:15]Write to MH i2c: E2 08 00 55 7D 80 13 00 00 00 00 00 00 4E [22:32:15]Write i2c OK [22:32:15]MH_I2C_Read... [22:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:15]Read from MH i2c: E2 [22:32:15]MH_I2C_Read... [22:32:15]Read from MH i2c: E2 62 00 [22:32:15]MH_I2C_Read... [22:32:15]Read from MH i2c: E2 62 00 55 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C3 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [22:32:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C3 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:32:15]wFMCommunicate OK [22:32:15]SAM_PROTO_GetFieldsCounters done [22:32:15]requested_item shift.num is exist - process it [22:32:15]requested_item shift.opened is exist - process it [22:32:15]req_shift_opened [22:32:15]FM_GetShiftState [22:32:15]SAM_PROTO_GetShiftState [22:32:15]wFMCommunicate request_size=4 [22:32:15]MH_SAM_APDU [22:32:15]CAPDU: 80 13 01 00 [22:32:15]Write to MH i2c: E2 08 00 56 7D 80 13 01 00 00 00 00 00 50 [22:32:15]Write i2c OK [22:32:15]MH_I2C_Read... [22:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:16]Read from MH i2c: E2 [22:32:16]MH_I2C_Read... [22:32:16]Read from MH i2c: E2 0E 00 [22:32:16]MH_I2C_Read... [22:32:16]Read from MH i2c: E2 0E 00 56 7D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 B1 [22:32:16]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [22:32:16]wFMCommunicate OK [22:32:16]SAM_PROTO_GetShiftState done [22:32:16]FM_GetShiftState done [22:32:16]req_shift_opened done [22:32:16]requested_item shift.open_date is exist - process it [22:32:16]req_shift_open_date [22:32:16]req_shift_open_date done [22:32:16]produce_requested_data done [22:32:16]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123331,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [22:32:16]process_action_free close_receipt [22:32:16]json_value_free [22:32:16]json_value_free done [22:32:16]process_json_proto returns [22:32:16]Send response to host [22:32:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123331,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [22:32:16]free response buf [22:32:16]execute_script done [22:32:16]execute_script returns [22:32:16]free content buf [22:32:16]Sock 7.Close socket [22:32:16]Sock 7.Thread stoped [22:32:19]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:05]OFD Sender: No OFD packet to send [22:50:10]OFD Sender: No OFD packet to send [22:50:15]OFD Sender: No OFD packet to send [22:50:20]OFD Sender: No OFD packet to send [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:50]OFD Sender: No OFD packet to send [22:51:55]OFD Sender: No OFD packet to send [22:52:00]OFD Sender: No OFD packet to send [22:52:05]OFD Sender: No OFD packet to send [22:52:10]OFD Sender: No OFD packet to send [22:52:15]OFD Sender: No OFD packet to send [22:52:20]OFD Sender: No OFD packet to send [22:52:25]OFD Sender: No OFD packet to send [22:52:30]OFD Sender: No OFD packet to send [22:52:35]OFD Sender: No OFD packet to send [22:52:40]OFD Sender: No OFD packet to send [22:52:45]OFD Sender: No OFD packet to send [22:52:50]OFD Sender: No OFD packet to send [22:52:55]OFD Sender: No OFD packet to send [22:53:00]OFD Sender: No OFD packet to send [22:53:05]OFD Sender: No OFD packet to send [22:53:10]OFD Sender: No OFD packet to send [22:53:15]OFD Sender: No OFD packet to send [22:53:20]OFD Sender: No OFD packet to send [22:53:25]OFD Sender: No OFD packet to send [22:53:30]OFD Sender: No OFD packet to send [22:53:35]OFD Sender: No OFD packet to send [22:53:40]OFD Sender: No OFD packet to send [22:53:45]OFD Sender: No OFD packet to send [22:53:50]OFD Sender: No OFD packet to send [22:53:55]OFD Sender: No OFD packet to send [22:54:00]OFD Sender: No OFD packet to send [22:54:05]OFD Sender: No OFD packet to send [22:54:10]OFD Sender: No OFD packet to send [22:54:15]OFD Sender: No OFD packet to send [22:54:20]OFD Sender: No OFD packet to send [22:54:25]OFD Sender: No OFD packet to send [22:54:30]OFD Sender: No OFD packet to send [22:54:35]OFD Sender: No OFD packet to send [22:54:40]OFD Sender: No OFD packet to send [22:54:45]OFD Sender: No OFD packet to send [22:54:50]OFD Sender: No OFD packet to send [22:54:55]OFD Sender: No OFD packet to send [22:55:00]OFD Sender: No OFD packet to send [22:55:05]OFD Sender: No OFD packet to send [22:55:10]OFD Sender: No OFD packet to send [22:55:15]OFD Sender: No OFD packet to send [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]OFD Sender: No OFD packet to send [22:57:10]OFD Sender: No OFD packet to send [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]OFD Sender: No OFD packet to send [22:57:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:05]OFD Sender: No OFD packet to send [22:58:10]OFD Sender: No OFD packet to send [22:58:15]OFD Sender: No OFD packet to send [22:58:20]OFD Sender: No OFD packet to send [22:58:25]OFD Sender: No OFD packet to send [22:58:30]OFD Sender: No OFD packet to send [22:58:35]OFD Sender: No OFD packet to send [22:58:40]OFD Sender: No OFD packet to send [22:58:45]OFD Sender: No OFD packet to send [22:58:50]OFD Sender: No OFD packet to send [22:58:55]OFD Sender: No OFD packet to send [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:10]OFD Sender: No OFD packet to send [22:59:15]OFD Sender: No OFD packet to send [22:59:20]OFD Sender: No OFD packet to send [22:59:25]OFD Sender: No OFD packet to send [22:59:30]OFD Sender: No OFD packet to send [22:59:35]OFD Sender: No OFD packet to send [22:59:40]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:25]OFD Sender: No OFD packet to send [23:00:30]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:11:01]OFD Sender: No OFD packet to send [23:11:06]OFD Sender: No OFD packet to send [23:11:11]OFD Sender: No OFD packet to send [23:11:16]OFD Sender: No OFD packet to send [23:11:21]OFD Sender: No OFD packet to send [23:11:26]OFD Sender: No OFD packet to send [23:11:31]OFD Sender: No OFD packet to send [23:11:36]OFD Sender: No OFD packet to send [23:11:41]OFD Sender: No OFD packet to send [23:11:46]OFD Sender: No OFD packet to send [23:11:51]OFD Sender: No OFD packet to send [23:11:56]OFD Sender: No OFD packet to send [23:12:01]OFD Sender: No OFD packet to send [23:12:06]OFD Sender: No OFD packet to send [23:12:11]OFD Sender: No OFD packet to send [23:12:16]OFD Sender: No OFD packet to send [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:06]OFD Sender: No OFD packet to send [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]OFD Sender: No OFD packet to send [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:21]OFD Sender: No OFD packet to send [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:36]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:07]accept exits with 9 [23:23:07]New connection [23:23:07]New thread 3066723684 created [23:23:07]Thread 3066580324 joined [23:23:07]Waiting for new connection... [23:23:07] Sock 9.Parse request [23:23:07]Sock 9.Check first char [23:23:07]Sock 9.First char is OK [23:23:07]request: POST /json_proto HTTP/1.0 [23:23:07]Method: POST [23:23:07]URL: /json_proto [23:23:07]Method is POST - this is cgi request [23:23:07]url: /json_proto [23:23:07]query_string will be loaded in cgi processing [23:23:07]execute_cgi json_proto POST (null) [23:23:07]execute_cgi path=json_proto method=POST [23:23:07]POST find Content-Length [23:23:07]Host: 172.17.37.4:8080 [23:23:07]Content-Length: 677 [23:23:07]Content-Type: application/json [23:23:07] [23:23:07]POST finish read [23:23:07]Found Content-Length = 677 [23:23:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:07]execute_script... [23:23:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 2.970, "sum" : 200.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:07]POST & json_proto [23:23:07]process_json_proto [23:23:07]json parsed OK: [23:23:07]protocol is kg_v1.0 [23:23:07]action value=close_receipt [23:23:07]process_action close_receipt [23:23:07]cmd_close_receipt [23:23:07]MH_GetDate [23:23:07]Write to MH i2c: F0 00 00 57 7D C3 [23:23:07]Write i2c OK [23:23:07]MH_I2C_Read... [23:23:07]Read from MH i2c: F0 [23:23:07]MH_I2C_Read... [23:23:07]Read from MH i2c: F0 09 00 [23:23:07]MH_I2C_Read... [23:23:07]Read from MH i2c: F0 09 00 57 7D 00 68 58 46 67 B8 5A 43 67 F5 [23:23:07]GetLastDocTimeStamp 1732660344 [23:23:07]current date 1732663400 [23:23:07]FM_GetShiftState [23:23:07]SAM_PROTO_GetShiftState [23:23:07]wFMCommunicate request_size=4 [23:23:07]MH_SAM_APDU [23:23:07]CAPDU: 80 13 01 00 [23:23:07]Write to MH i2c: E2 08 00 58 7D 80 13 01 00 00 00 00 00 52 [23:23:07]Write i2c OK [23:23:07]MH_I2C_Read... [23:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:07]Read from MH i2c: E2 [23:23:07]MH_I2C_Read... [23:23:07]Read from MH i2c: E2 0E 00 [23:23:07]MH_I2C_Read... [23:23:07]Read from MH i2c: E2 0E 00 58 7D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 B3 [23:23:07]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [23:23:07]wFMCommunicate OK [23:23:07]SAM_PROTO_GetShiftState done [23:23:07]FM_GetShiftState done [23:23:07]opened in 1732579736 [23:23:07]opened+sec_in_day 1732666136 [23:23:07]quantity*price = 20017 [23:23:07]sum+1 = 20019 [23:23:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 186 26.11.2024 23:23 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123332 ФПД: 180409246782747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T232320&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123332&fm=180409246782747&tin=02508201610067®Number=0000000000092681&sum=20000 [23:23:08]StoreToDocumentArchive [23:23:08]shift 557 fd 123332 [23:23:08]save to /storage/0557/doc_00123332 [23:23:08]save last doc name /storage/0557/doc_00123332 to /storage/kkm_last_doc_name [23:23:08]save OK [23:23:08]Clear old archive folders... [23:23:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:23:08]tlvbuf is B6F202D0 [23:23:08]SAM_PROTO_ClearQueue [23:23:08]wFMCommunicate request_size=4 [23:23:08]MH_SAM_APDU [23:23:08]CAPDU: 80 09 00 00 [23:23:08]Write to MH i2c: E2 08 00 65 7D 80 09 00 00 00 00 00 00 54 [23:23:08]Write i2c OK [23:23:08]MH_I2C_Read... [23:23:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:23:08]Read from MH i2c: E2 [23:23:08]MH_I2C_Read... [23:23:08]Read from MH i2c: E2 03 00 [23:23:08]MH_I2C_Read... [23:23:08]Read from MH i2c: E2 03 00 65 7D 00 90 00 56 [23:23:08]RAPDU: 90 00 [23:23:08]wFMCommunicate OK [23:23:08]SAM_PROTO_ClearQueue done [23:23:08]KKMCreateOFDPacket [23:23:08]OFDProtocolAddRootSTLVToBuf [23:23:08]FM_MakeSignedData [23:23:08]FM_MakeSignedData [23:23:08]SAM_PROTO_SignData [23:23:08]wFMCommunicate request_size=4 [23:23:08]MH_SAM_APDU [23:23:08]CAPDU: 80 0D 01 02 [23:23:08]Write to MH i2c: E2 08 00 66 7D 80 0D 01 02 00 00 00 00 5C [23:23:08]Write i2c OK [23:23:08]MH_I2C_Read... [23:23:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:23:08]Read from MH i2c: E2 [23:23:08]MH_I2C_Read... [23:23:08]Read from MH i2c: E2 03 00 [23:23:08]MH_I2C_Read... [23:23:08]Read from MH i2c: E2 03 00 66 7D 00 90 00 57 [23:23:08]RAPDU: 90 00 [23:23:08]wFMCommunicate OK [23:23:08]wFMCommunicate request_size=255 [23:23:08]MH_SAM_APDU [23:23:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 68 58 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C4 E1 01 00 35 04 06 00 A4 [23:23:08]Write to MH i2c: E2 02 01 67 7D 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 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 68 58 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C4 E1 01 00 35 04 06 00 A4 00 00 80 [23:23:08]Write i2c OK [23:23:08]MH_I2C_Read... [23:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:09]Read from MH i2c: E2 [23:23:09]MH_I2C_Read... [23:23:09]Read from MH i2c: E2 03 00 [23:23:09]MH_I2C_Read... [23:23:09]Read from MH i2c: E2 03 00 67 7D 00 90 00 58 [23:23:09]RAPDU: 90 00 [23:23:09]wFMCommunicate OK [23:23:09]wFMCommunicate request_size=10 [23:23:09]MH_SAM_APDU [23:23:09]CAPDU: 80 0D 02 02 05 14 CD 11 95 1B [23:23:09]Write to MH i2c: E2 0D 00 68 7D 80 0D 02 02 05 00 14 CD 11 95 1B 00 00 0B [23:23:09]Write i2c OK [23:23:09]MH_I2C_Read... [23:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:09]Read from MH i2c: E2 [23:23:09]MH_I2C_Read... [23:23:09]Read from MH i2c: E2 03 00 [23:23:09]MH_I2C_Read... [23:23:09]Read from MH i2c: E2 03 00 68 7D 00 90 00 59 [23:23:09]RAPDU: 90 00 [23:23:09]wFMCommunicate OK [23:23:09]wFMCommunicate request_size=4 [23:23:09]MH_SAM_APDU [23:23:09]CAPDU: 80 0D 03 02 [23:23:09]Write to MH i2c: E2 08 00 69 7D 80 0D 03 02 00 00 00 00 61 [23:23:09]Write i2c OK [23:23:09]MH_I2C_Read... [23:23:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:23:09]Read from MH i2c: E2 [23:23:09]MH_I2C_Read... [23:23:09]Read from MH i2c: E2 0B 00 [23:23:09]MH_I2C_Read... [23:23:09]Read from MH i2c: E2 0B 00 69 7D 00 88 37 2F 39 F2 DA 63 2C 90 00 E4 [23:23:09]RAPDU: 88 37 2F 39 F2 DA 63 2C 90 00 [23:23:09]wFMCommunicate OK [23:23:09]SAM_PROTO_SignData done [23:23:09]FM_MakeSignedData done [23:23:09]CreateOFDProtocolMessage [23:23:09]wFMCommunicate request_size=4 [23:23:09]MH_SAM_APDU [23:23:09]CAPDU: 80 11 00 00 [23:23:09]Write to MH i2c: E2 08 00 6A 7D 80 11 00 00 00 00 00 00 61 [23:23:09]Write i2c OK [23:23:09]MH_I2C_Read... [23:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:09]Read from MH i2c: E2 [23:23:09]MH_I2C_Read... [23:23:09]Read from MH i2c: E2 17 00 [23:23:09]MH_I2C_Read... [23:23:09]Read from MH i2c: E2 17 00 6A 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B8 [23:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [23:23:09]wFMCommunicate OK [23:23:09]CreateOFDProtocolMessage done [23:23:09]OFDSenderStorePacket 123332 [23:23:09]StoreOFDPacket docnum=123332 [23:23:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 52 F4 07 01 BE 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 68 58 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C4 E1 01 00 35 04 06 00 A4 14 CD 11 95 1B 88 37 2F 39 F2 DA 63 2C [23:23:09]CheckFolder [23:23:09]dirname=/storage/ofd_packets [23:23:09]CheckFolder done [23:23:09]ProducePacketName [23:23:09]name=ofd_packets/00123332 [23:23:09]NVStorageSaveData ofd_packets/00123332 [23:23:09]File name is /storage/ofd_packets/00123332 [23:23:09]Write 301 bytes [23:23:09]NVStorageSaveData done [23:23:09]OFDSenderStorePacket done [23:23:09]KKMCreateOFDPacket done [23:23:09]NVStorageSaveData kkm_last_timestamp [23:23:09]File name is /storage/kkm_last_timestamp [23:23:09]Write 4 bytes [23:23:09]NVStorageSaveData done [23:23:09]ExternCall_PrintAddStr [23:23:09]wPrintStart [23:23:09]Write to MH i2c: 01 00 00 6B 7D E8 [23:23:09]Write i2c OK [23:23:09]MH_I2C_Read... [23:23:09]Read from MH i2c: 01 [23:23:09]MH_I2C_Read... [23:23:09]Read from MH i2c: 01 07 00 [23:23:09]MH_I2C_Read... [23:23:09]Read from MH i2c: 01 07 00 6B 7D 00 00 00 00 00 FF 0F FD [23:23:09]RasterBufferAndPrint [23:23:09]line Счет N : (1)718162 [23:23:09]line ИНН: 02508201610067 [23:23:09]line Контрольно-Кассовый Чек [23:23:09]line ПРОДАЖА [23:23:09]line ТРК (МРК, ГНК) : 22 [23:23:09]line Товар: 2710124130 [23:23:09]line Аи-92-К-4 [23:23:09]line 2.970 * 67.40 [23:23:09]line = 200.18 [23:23:09]line НДС 12% НСП 1% [23:23:09]line > о реализуемом товаре [23:23:09]line ОКРУГЛЕНИЕ: -0.18 [23:23:09]line ИТОГО: 200.00 [23:23:09]line Внесено: 200.00 [23:23:09]line СДАЧА: 0.00 [23:23:09]line НСП 1% : 1.77 [23:23:09]line НДС 12% : 21.26 [23:23:09]line Наличными: 200.00 [23:23:09]line Безнал.: 0.00 [23:23:09]line Место: АЗС № 64 "Партнер Нефть" [23:23:09]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [23:23:09]line СНО: Общий режим [23:23:09]line Чек 186 26.11.2024 23:23 [23:23:09]line Смена: 557 ФФД: 1.0 [23:23:09]line ЗНМ: 0300000033 [23:23:09]line РНМ: 0000000000092681 [23:23:09]line Версия ККМ: 001 [23:23:09]line ФМ: 0000000000874881 [23:23:09]line ФД: 123332 [23:23:09]line ФПД: 180409246782747 [23:23:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T232320&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123332&fm=180409246782747&tin=02508201610067®Number=0000000000092681&sum=20000 [23:23:09]OFD Sender: Processing packet 123332 [packets to send 7, broken 6] [23:23:09]ProducePacketName [23:23:09]name=ofd_packets/00123332 [23:23:09]OFD Sender: To server: pG, [23:23:09]CommunicateWithHost lk.salyk.kg:30040 [23:23:09]ConnectInit lk.salyk.kg [23:23:09]written 0, free lines is 4095 [23:23:09]Connected sock=10 [23:23:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 52 F4 07 01 BE 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 32 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 68 58 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C4 E1 01 00 35 04 06 00 A4 14 CD 11 95 1B 88 37 2F 39 F2 DA 63 2C [23:23:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 07 7C 47 00 19 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C4 E1 01 00 F4 03 04 00 29 04 46 67 B6 04 01 00 00 22 21 54 99 0F F2 BC 65 [23:23:09]CommunicateWithHost err = 0 [23:23:09]CheckOFDResponse [23:23:09]1017 (14) - 77093643461234 [23:23:09]1041 (16) - 0000000000874881 [23:23:09]1040 (4) - 123332 [23:23:09]1012 (4) - 26.11.2024 17:23 [23:23:09]1206 (1) - 0 [23:23:09]OFD Sender: Remove packet 123332 [23:23:09]ProducePacketName [23:23:09]name=ofd_packets/00123332 [23:23:09]NVStorageDeleteData [23:23:10]Write to MH i2c: 01 00 00 96 7D 13 [23:23:10]Write i2c OK [23:23:10]MH_I2C_Read... [23:23:10]Read from MH i2c: 01 [23:23:10]MH_I2C_Read... [23:23:10]Read from MH i2c: 01 07 00 [23:23:10]MH_I2C_Read... [23:23:10]Read from MH i2c: 01 07 00 96 7D 00 00 00 00 00 42 0C 68 [23:23:10]RasterBufferAndPrint [23:23:10]line [23:23:10]line [23:23:10]line [23:23:10]line [23:23:10]line [23:23:10]written 0, free lines is 3144 [23:23:10]MH_Cut [23:23:10]Write to MH i2c: D1 01 00 9D 7D 01 EC [23:23:10]Write i2c OK [23:23:10]MH_I2C_Read... [23:23:10]Read from MH i2c: D1 [23:23:10]MH_I2C_Read... [23:23:10]Read from MH i2c: D1 01 00 [23:23:10]MH_I2C_Read... [23:23:10]Read from MH i2c: D1 01 00 9D 7D 00 EB [23:23:10]Write to MH i2c: 01 00 00 9E 7D 1B [23:23:10]Write i2c OK [23:23:10]MH_I2C_Read... [23:23:10]OFD Sender: No OFD packet to send [23:23:11]*** Cut start [23:23:11]*** Partial cut [23:23:11]*** CUTSNS_PIN = 1 [23:23:11]*** CUTSNS_PIN = 0 [23:23:11]*** Brake cut motor [23:23:12]Read from MH i2c: 01 [23:23:12]MH_I2C_Read... [23:23:12]*** Stop cut motor [23:23:12]*** Cut end [23:23:12]Read from MH i2c: 01 07 00 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: 01 07 00 9E 7D 00 00 00 00 00 FF 0F 30 [23:23:12]process_action close_receipt done [23:23:12]requested_data is exist [23:23:12]produce_requested_data [23:23:12]requested_item fm.sn is exist - process it [23:23:12]wFMCommunicate request_size=4 [23:23:12]MH_SAM_APDU [23:23:12]CAPDU: 80 11 00 00 [23:23:12]Write to MH i2c: E2 08 00 9F 7D 80 11 00 00 00 00 00 00 96 [23:23:12]Write i2c OK [23:23:12]MH_I2C_Read... [23:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:12]Read from MH i2c: E2 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 17 00 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 17 00 9F 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 ED [23:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [23:23:12]wFMCommunicate OK [23:23:12]requested_item fd.num is exist - process it [23:23:12]SAM_PROTO_GetFieldsCounters [23:23:12]wFMCommunicate request_size=4 [23:23:12]MH_SAM_APDU [23:23:12]CAPDU: 80 13 00 00 [23:23:12]Write to MH i2c: E2 08 00 A0 7D 80 13 00 00 00 00 00 00 99 [23:23:12]Write i2c OK [23:23:12]MH_I2C_Read... [23:23:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:23:12]Read from MH i2c: E2 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 62 00 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 62 00 A0 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C4 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [23:23:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C4 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:23:12]wFMCommunicate OK [23:23:12]SAM_PROTO_GetFieldsCounters done [23:23:12]requested_item shift.num is exist - process it [23:23:12]requested_item shift.opened is exist - process it [23:23:12]req_shift_opened [23:23:12]FM_GetShiftState [23:23:12]SAM_PROTO_GetShiftState [23:23:12]wFMCommunicate request_size=4 [23:23:12]MH_SAM_APDU [23:23:12]CAPDU: 80 13 01 00 [23:23:12]Write to MH i2c: E2 08 00 A1 7D 80 13 01 00 00 00 00 00 9B [23:23:12]Write i2c OK [23:23:12]MH_I2C_Read... [23:23:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:12]Read from MH i2c: E2 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 0E 00 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 0E 00 A1 7D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 FC [23:23:12]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [23:23:12]wFMCommunicate OK [23:23:12]SAM_PROTO_GetShiftState done [23:23:12]FM_GetShiftState done [23:23:12]req_shift_opened done [23:23:12]requested_item shift.open_date is exist - process it [23:23:12]req_shift_open_date [23:23:12]req_shift_open_date done [23:23:12]produce_requested_data done [23:23:12]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123332,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [23:23:12]process_action_free close_receipt [23:23:12]json_value_free [23:23:12]json_value_free done [23:23:12]process_json_proto returns [23:23:12]Send response to host [23:23:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123332,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [23:23:12]free response buf [23:23:12]execute_script done [23:23:12]execute_script returns [23:23:12]free content buf [23:23:12]Sock 9.Close socket [23:23:12]Sock 9.Thread stoped [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:05]accept exits with 7 [23:36:05]New connection [23:36:05]New thread 3066580324 created [23:36:05]Thread 3066723684 joined [23:36:05]Waiting for new connection... [23:36:05] Sock 7.Parse request [23:36:05]Sock 7.Check first char [23:36:05]Sock 7.First char is OK [23:36:05]request: POST /json_proto HTTP/1.0 [23:36:05]Method: POST [23:36:05]URL: /json_proto [23:36:05]Method is POST - this is cgi request [23:36:05]url: /json_proto [23:36:05]query_string will be loaded in cgi processing [23:36:05]execute_cgi json_proto POST (null) [23:36:05]execute_cgi path=json_proto method=POST [23:36:05]POST find Content-Length [23:36:05]Host: 172.17.37.4:8080 [23:36:05]Content-Length: 686 [23:36:05]Content-Type: application/json [23:36:05] [23:36:05]POST finish read [23:36:05]Found Content-Length = 686 [23:36:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:36:05]execute_script... [23:36:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 74.90, "quantity" : 13.360, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:36:05]POST & json_proto [23:36:05]process_json_proto [23:36:05]json parsed OK: [23:36:05]protocol is kg_v1.0 [23:36:05]action value=close_receipt [23:36:05]process_action close_receipt [23:36:05]cmd_close_receipt [23:36:05]MH_GetDate [23:36:05]Write to MH i2c: F0 00 00 A2 7D 0E [23:36:05]Write i2c OK [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: F0 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: F0 09 00 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: F0 09 00 A2 7D 00 72 5B 46 67 B8 5A 43 67 4D [23:36:05]GetLastDocTimeStamp 1732663400 [23:36:05]current date 1732664178 [23:36:05]FM_GetShiftState [23:36:05]SAM_PROTO_GetShiftState [23:36:05]wFMCommunicate request_size=4 [23:36:05]MH_SAM_APDU [23:36:05]CAPDU: 80 13 01 00 [23:36:05]Write to MH i2c: E2 08 00 A3 7D 80 13 01 00 00 00 00 00 9D [23:36:05]Write i2c OK [23:36:05]MH_I2C_Read... [23:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:05]Read from MH i2c: E2 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: E2 0E 00 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: E2 0E 00 A3 7D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 FE [23:36:05]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [23:36:05]wFMCommunicate OK [23:36:05]SAM_PROTO_GetShiftState done [23:36:05]FM_GetShiftState done [23:36:05]opened in 1732579736 [23:36:05]opened+sec_in_day 1732666136 [23:36:05]quantity*price = 100066 [23:36:05]sum+1 = 100067 [23:36:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 187 26.11.2024 23:36 Смена: 557 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123333 ФПД: 87069230884951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T233618&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123333&fm=87069230884951&tin=02508201610067®Number=0000000000092681&sum=100000 [23:36:06]StoreToDocumentArchive [23:36:06]shift 557 fd 123333 [23:36:06]save to /storage/0557/doc_00123333 [23:36:06]save last doc name /storage/0557/doc_00123333 to /storage/kkm_last_doc_name [23:36:06]save OK [23:36:06]Clear old archive folders... [23:36:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:36:06]tlvbuf is 020D3460 [23:36:06]SAM_PROTO_ClearQueue [23:36:06]wFMCommunicate request_size=4 [23:36:06]MH_SAM_APDU [23:36:06]CAPDU: 80 09 00 00 [23:36:06]Write to MH i2c: E2 08 00 B0 7D 80 09 00 00 00 00 00 00 9F [23:36:06]Write i2c OK [23:36:06]MH_I2C_Read... [23:36:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:36:06]Read from MH i2c: E2 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 03 00 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 03 00 B0 7D 00 90 00 A1 [23:36:06]RAPDU: 90 00 [23:36:06]wFMCommunicate OK [23:36:06]SAM_PROTO_ClearQueue done [23:36:06]KKMCreateOFDPacket [23:36:06]OFDProtocolAddRootSTLVToBuf [23:36:06]FM_MakeSignedData [23:36:06]FM_MakeSignedData [23:36:06]SAM_PROTO_SignData [23:36:06]wFMCommunicate request_size=4 [23:36:06]MH_SAM_APDU [23:36:06]CAPDU: 80 0D 01 02 [23:36:06]Write to MH i2c: E2 08 00 B1 7D 80 0D 01 02 00 00 00 00 A7 [23:36:06]Write i2c OK [23:36:06]MH_I2C_Read... [23:36:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:36:06]Read from MH i2c: E2 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 03 00 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 03 00 B1 7D 00 90 00 A2 [23:36:06]RAPDU: 90 00 [23:36:06]wFMCommunicate OK [23:36:06]wFMCommunicate request_size=255 [23:36:06]MH_SAM_APDU [23:36:06]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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 72 5B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C5 E1 01 00 35 04 06 00 [23:36:06]Write to MH i2c: E2 02 01 B2 7D 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 72 5B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C5 E1 01 00 35 04 06 00 00 00 99 [23:36:06]Write i2c OK [23:36:06]MH_I2C_Read... [23:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:06]Read from MH i2c: E2 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 03 00 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 03 00 B2 7D 00 90 00 A3 [23:36:06]RAPDU: 90 00 [23:36:06]wFMCommunicate OK [23:36:06]wFMCommunicate request_size=11 [23:36:06]MH_SAM_APDU [23:36:06]CAPDU: 80 0D 02 02 06 4F 30 62 93 E8 57 [23:36:06]Write to MH i2c: E2 0E 00 B3 7D 80 0D 02 02 06 00 4F 30 62 93 E8 57 00 00 69 [23:36:06]Write i2c OK [23:36:06]MH_I2C_Read... [23:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:06]Read from MH i2c: E2 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 03 00 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 03 00 B3 7D 00 90 00 A4 [23:36:06]RAPDU: 90 00 [23:36:06]wFMCommunicate OK [23:36:06]wFMCommunicate request_size=4 [23:36:06]MH_SAM_APDU [23:36:06]CAPDU: 80 0D 03 02 [23:36:06]Write to MH i2c: E2 08 00 B4 7D 80 0D 03 02 00 00 00 00 AC [23:36:06]Write i2c OK [23:36:06]MH_I2C_Read... [23:36:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:36:06]Read from MH i2c: E2 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 0B 00 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 0B 00 B4 7D 00 20 5E ED 14 7E 23 08 16 90 00 EB [23:36:06]RAPDU: 20 5E ED 14 7E 23 08 16 90 00 [23:36:06]wFMCommunicate OK [23:36:06]SAM_PROTO_SignData done [23:36:06]FM_MakeSignedData done [23:36:06]CreateOFDProtocolMessage [23:36:06]wFMCommunicate request_size=4 [23:36:06]MH_SAM_APDU [23:36:06]CAPDU: 80 11 00 00 [23:36:06]Write to MH i2c: E2 08 00 B5 7D 80 11 00 00 00 00 00 00 AC [23:36:06]Write i2c OK [23:36:06]MH_I2C_Read... [23:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:06]Read from MH i2c: E2 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 17 00 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 17 00 B5 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 03 [23:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [23:36:06]wFMCommunicate OK [23:36:06]CreateOFDProtocolMessage done [23:36:06]OFDSenderStorePacket 123333 [23:36:06]StoreOFDPacket docnum=123333 [23:36:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 1A A9 08 01 E6 BF 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 72 5B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C5 E1 01 00 35 04 06 00 4F 30 62 93 E8 57 20 5E ED 14 7E 23 08 16 [23:36:06]CheckFolder [23:36:06]dirname=/storage/ofd_packets [23:36:06]CheckFolder done [23:36:06]ProducePacketName [23:36:06]name=ofd_packets/00123333 [23:36:06]NVStorageSaveData ofd_packets/00123333 [23:36:06]File name is /storage/ofd_packets/00123333 [23:36:06]Write 302 bytes [23:36:06]NVStorageSaveData done [23:36:06]OFDSenderStorePacket done [23:36:06]KKMCreateOFDPacket done [23:36:06]NVStorageSaveData kkm_last_timestamp [23:36:06]File name is /storage/kkm_last_timestamp [23:36:06]Write 4 bytes [23:36:06]NVStorageSaveData done [23:36:06]ExternCall_PrintAddStr [23:36:06]wPrintStart [23:36:06]Write to MH i2c: 01 00 00 B6 7D 33 [23:36:06]Write i2c OK [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: 01 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: 01 07 00 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: 01 07 00 B6 7D 00 00 00 00 00 FF 0F 48 [23:36:06]RasterBufferAndPrint [23:36:06]line Счет N : (1)718163 [23:36:06]line ИНН: 02508201610067 [23:36:06]line Контрольно-Кассовый Чек [23:36:06]line ПРОДАЖА [23:36:06]line ТРК (МРК, ГНК) : 5 [23:36:06]line Товар: 2710194210 [23:36:06]line ДТ(л)-К-5 [23:36:06]line 13.360 * 74.90 [23:36:06]line = 1000.66 [23:36:06]line НДС 12% НСП 1% [23:36:06]line > о реализуемом товаре [23:36:06]line ОКРУГЛЕНИЕ: -0.66 [23:36:06]line ИТОГО: 1000.00 [23:36:06]line Внесено: 1000.00 [23:36:06]line СДАЧА: 0.00 [23:36:06]line НСП 1% : 8.85 [23:36:06]line НДС 12% : 106.26 [23:36:06]line Наличными: 1000.00 [23:36:06]line Безнал.: 0.00 [23:36:06]line Место: АЗС № 64 "Партнер Нефть" [23:36:06]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [23:36:06]line СНО: Общий режим [23:36:06]line Чек 187 26.11.2024 23:36 [23:36:06]line Смена: 557 ФФД: 1.0 [23:36:06]line ЗНМ: 0300000033 [23:36:06]line РНМ: 0000000000092681 [23:36:06]line Версия ККМ: 001 [23:36:06]line ФМ: 0000000000874881 [23:36:06]line ФД: 123333 [23:36:06]line ФПД: 87069230884951 [23:36:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241126T233618&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123333&fm=87069230884951&tin=02508201610067®Number=0000000000092681&sum=100000 [23:36:07]OFD Sender: Processing packet 123333 [packets to send 7, broken 6] [23:36:07]ProducePacketName [23:36:07]name=ofd_packets/00123333 [23:36:07]OFD Sender: To server: pG, [23:36:07]CommunicateWithHost lk.salyk.kg:30040 [23:36:07]ConnectInit lk.salyk.kg [23:36:07]written 0, free lines is 4095 [23:36:07]Connected sock=10 [23:36:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 1A A9 08 01 E6 BF 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 35 FF 03 08 00 03 30 34 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 72 5B 46 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C5 E1 01 00 35 04 06 00 4F 30 62 93 E8 57 20 5E ED 14 7E 23 08 16 [23:36:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 29 9D 47 00 6E 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 38 37 34 38 38 31 10 04 04 00 C5 E1 01 00 F4 03 04 00 33 07 46 67 B6 04 01 00 00 D3 A1 F7 B6 15 8C 25 84 [23:36:07]CommunicateWithHost err = 0 [23:36:07]CheckOFDResponse [23:36:07]1017 (14) - 77093643461234 [23:36:07]1041 (16) - 0000000000874881 [23:36:07]1040 (4) - 123333 [23:36:07]1012 (4) - 26.11.2024 17:36 [23:36:07]1206 (1) - 0 [23:36:07]OFD Sender: Remove packet 123333 [23:36:07]ProducePacketName [23:36:07]name=ofd_packets/00123333 [23:36:07]NVStorageDeleteData [23:36:07]Write to MH i2c: 01 00 00 E1 7D 5E [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: 01 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: 01 07 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: 01 07 00 E1 7D 00 00 00 00 00 41 0C B2 [23:36:07]RasterBufferAndPrint [23:36:07]line [23:36:07]line [23:36:07]line [23:36:07]line [23:36:07]line [23:36:07]written 0, free lines is 3143 [23:36:07]MH_Cut [23:36:07]Write to MH i2c: D1 01 00 E8 7D 01 37 [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: D1 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: D1 01 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: D1 01 00 E8 7D 00 36 [23:36:07]Write to MH i2c: 01 00 00 E9 7D 66 [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:08]OFD Sender: No OFD packet to send [23:36:09]*** Cut start [23:36:09]*** Partial cut [23:36:09]*** CUTSNS_PIN = 1 [23:36:09]*** CUTSNS_PIN = 0 [23:36:09]*** Brake cut motor [23:36:09]Read from MH i2c: 01 [23:36:09]MH_I2C_Read... [23:36:09]*** Stop cut motor [23:36:09]*** Cut end [23:36:09]Read from MH i2c: 01 07 00 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: 01 07 00 E9 7D 00 00 00 00 00 FF 0F 7B [23:36:09]process_action close_receipt done [23:36:09]requested_data is exist [23:36:09]produce_requested_data [23:36:09]requested_item fm.sn is exist - process it [23:36:09]wFMCommunicate request_size=4 [23:36:09]MH_SAM_APDU [23:36:09]CAPDU: 80 11 00 00 [23:36:09]Write to MH i2c: E2 08 00 EA 7D 80 11 00 00 00 00 00 00 E1 [23:36:09]Write i2c OK [23:36:09]MH_I2C_Read... [23:36:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:09]Read from MH i2c: E2 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: E2 17 00 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: E2 17 00 EA 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 38 [23:36:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [23:36:09]wFMCommunicate OK [23:36:09]requested_item fd.num is exist - process it [23:36:09]SAM_PROTO_GetFieldsCounters [23:36:09]wFMCommunicate request_size=4 [23:36:09]MH_SAM_APDU [23:36:09]CAPDU: 80 13 00 00 [23:36:09]Write to MH i2c: E2 08 00 EB 7D 80 13 00 00 00 00 00 00 E4 [23:36:09]Write i2c OK [23:36:09]MH_I2C_Read... [23:36:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:36:09]Read from MH i2c: E2 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: E2 62 00 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: E2 62 00 EB 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C5 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [23:36:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C5 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:36:09]wFMCommunicate OK [23:36:09]SAM_PROTO_GetFieldsCounters done [23:36:09]requested_item shift.num is exist - process it [23:36:09]requested_item shift.opened is exist - process it [23:36:09]req_shift_opened [23:36:09]FM_GetShiftState [23:36:09]SAM_PROTO_GetShiftState [23:36:09]wFMCommunicate request_size=4 [23:36:09]MH_SAM_APDU [23:36:09]CAPDU: 80 13 01 00 [23:36:09]Write to MH i2c: E2 08 00 EC 7D 80 13 01 00 00 00 00 00 E6 [23:36:09]Write i2c OK [23:36:09]MH_I2C_Read... [23:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:09]Read from MH i2c: E2 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: E2 0E 00 [23:36:09]MH_I2C_Read... [23:36:09]Read from MH i2c: E2 0E 00 EC 7D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 47 [23:36:09]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [23:36:09]wFMCommunicate OK [23:36:09]SAM_PROTO_GetShiftState done [23:36:09]FM_GetShiftState done [23:36:09]req_shift_opened done [23:36:09]requested_item shift.open_date is exist - process it [23:36:09]req_shift_open_date [23:36:09]req_shift_open_date done [23:36:09]produce_requested_data done [23:36:09]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123333,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [23:36:09]process_action_free close_receipt [23:36:09]json_value_free [23:36:09]json_value_free done [23:36:09]process_json_proto returns [23:36:09]Send response to host [23:36:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123333,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [23:36:09]free response buf [23:36:09]execute_script done [23:36:09]execute_script returns [23:36:09]free content buf [23:36:09]Sock 7.Close socket [23:36:09]Sock 7.Thread stoped [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:28]OFD Sender: No OFD packet to send [23:41:33]OFD Sender: No OFD packet to send [23:41:38]OFD Sender: No OFD packet to send [23:41:43]OFD Sender: No OFD packet to send [23:41:48]OFD Sender: No OFD packet to send [23:41:53]OFD Sender: No OFD packet to send [23:41:58]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:38]OFD Sender: No OFD packet to send [23:42:43]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:23]OFD Sender: No OFD packet to send [23:43:28]OFD Sender: No OFD packet to send [23:43:33]OFD Sender: No OFD packet to send [23:43:38]OFD Sender: No OFD packet to send [23:43:43]OFD Sender: No OFD packet to send [23:43:48]OFD Sender: No OFD packet to send [23:43:53]OFD Sender: No OFD packet to send [23:43:58]OFD Sender: No OFD packet to send [23:44:03]OFD Sender: No OFD packet to send [23:44:08]OFD Sender: No OFD packet to send [23:44:13]OFD Sender: No OFD packet to send [23:44:18]OFD Sender: No OFD packet to send [23:44:23]OFD Sender: No OFD packet to send [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:08]OFD Sender: No OFD packet to send [23:46:11]accept exits with 9 [23:46:11]New connection [23:46:11]New thread 3066723684 created [23:46:11]Thread 3066580324 joined [23:46:11]Waiting for new connection... [23:46:11] Sock 9.Parse request [23:46:11]Sock 9.Check first char [23:46:11]Sock 9.First char is OK [23:46:11]request: POST /json_proto HTTP/1.0 [23:46:11]Method: POST [23:46:11]URL: /json_proto [23:46:11]Method is POST - this is cgi request [23:46:11]url: /json_proto [23:46:11]query_string will be loaded in cgi processing [23:46:11]execute_cgi json_proto POST (null) [23:46:11]execute_cgi path=json_proto method=POST [23:46:11]POST find Content-Length [23:46:11]Host: 172.17.37.4:8080 [23:46:11]Content-Length: 215 [23:46:11]Content-Type: application/json [23:46:11] [23:46:11]POST finish read [23:46:11]Found Content-Length = 215 [23:46:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:11]execute_script... [23:46:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:11]POST & json_proto [23:46:11]process_json_proto [23:46:11]json parsed OK: [23:46:11]protocol is kg_v1.0 [23:46:11]action value=get_value [23:46:11]process_action get_value [23:46:11]cmd_get_value [23:46:11]process_action get_value done [23:46:11]requested_data is exist [23:46:11]produce_requested_data [23:46:11]requested_item kkm.sn is exist - process it [23:46:11]requested_item kkm.ver is exist - process it [23:46:11]requested_item fm.sn is exist - process it [23:46:11]wFMCommunicate request_size=4 [23:46:11]MH_SAM_APDU [23:46:11]CAPDU: 80 11 00 00 [23:46:11]Write to MH i2c: E2 08 00 ED 7D 80 11 00 00 00 00 00 00 E4 [23:46:11]Write i2c OK [23:46:11]MH_I2C_Read... [23:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:11]Read from MH i2c: E2 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 17 00 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 17 00 ED 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3B [23:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [23:46:11]wFMCommunicate OK [23:46:11]requested_item fd.num is exist - process it [23:46:11]SAM_PROTO_GetFieldsCounters [23:46:11]wFMCommunicate request_size=4 [23:46:11]MH_SAM_APDU [23:46:11]CAPDU: 80 13 00 00 [23:46:11]Write to MH i2c: E2 08 00 EE 7D 80 13 00 00 00 00 00 00 E7 [23:46:11]Write i2c OK [23:46:11]MH_I2C_Read... [23:46:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:11]Read from MH i2c: E2 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 62 00 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 62 00 EE 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C5 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [23:46:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C5 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:46:11]wFMCommunicate OK [23:46:11]SAM_PROTO_GetFieldsCounters done [23:46:11]requested_item shift.num is exist - process it [23:46:11]requested_item shift.opened is exist - process it [23:46:11]req_shift_opened [23:46:11]FM_GetShiftState [23:46:11]SAM_PROTO_GetShiftState [23:46:11]wFMCommunicate request_size=4 [23:46:11]MH_SAM_APDU [23:46:11]CAPDU: 80 13 01 00 [23:46:11]Write to MH i2c: E2 08 00 EF 7D 80 13 01 00 00 00 00 00 E9 [23:46:11]Write i2c OK [23:46:11]MH_I2C_Read... [23:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:11]Read from MH i2c: E2 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 0E 00 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 0E 00 EF 7D 00 09 00 01 98 11 45 67 00 00 00 00 90 00 4A [23:46:11]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [23:46:11]wFMCommunicate OK [23:46:11]SAM_PROTO_GetShiftState done [23:46:11]FM_GetShiftState done [23:46:11]req_shift_opened done [23:46:11]requested_item shift.open_date is exist - process it [23:46:11]req_shift_open_date [23:46:11]req_shift_open_date done [23:46:11]produce_requested_data done [23:46:11]produce_requested_data return {"kkm.sn":"0300000033","kkm.ver":"001","fm.sn":"0000000000874881","fd.num":123333,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [23:46:11]process_action_free get_value [23:46:11]json_value_free [23:46:11]json_value_free done [23:46:11]process_json_proto returns [23:46:11]Send response to host [23:46:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000033","kkm.ver":"001","fm.sn":"0000000000874881","fd.num":123333,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [23:46:11]free response buf [23:46:11]execute_script done [23:46:11]execute_script returns [23:46:11]free content buf [23:46:11]Sock 9.Close socket [23:46:11]Sock 9.Thread stoped [23:46:11]accept exits with 7 [23:46:11]New connection [23:46:11]New thread 3066580324 created [23:46:11]Thread 3066723684 joined [23:46:11]Waiting for new connection... [23:46:11] Sock 7.Parse request [23:46:11]Sock 7.Check first char [23:46:11]Sock 7.First char is OK [23:46:11]request: POST /json_proto HTTP/1.0 [23:46:11]Method: POST [23:46:11]URL: /json_proto [23:46:11]Method is POST - this is cgi request [23:46:11]url: /json_proto [23:46:11]query_string will be loaded in cgi processing [23:46:11]execute_cgi json_proto POST (null) [23:46:11]execute_cgi path=json_proto method=POST [23:46:11]POST find Content-Length [23:46:11]Host: 172.17.37.4:8080 [23:46:11]Content-Length: 331 [23:46:11]Content-Type: application/json [23:46:11] [23:46:11]POST finish read [23:46:11]Found Content-Length = 331 [23:46:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:46:11]execute_script... [23:46:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:46:11]POST & json_proto [23:46:11]process_json_proto [23:46:11]json parsed OK: [23:46:11]protocol is kg_v1.0 [23:46:11]action value=get_value [23:46:11]process_action get_value [23:46:11]cmd_get_value [23:46:11]process_action get_value done [23:46:11]requested_data is exist [23:46:11]produce_requested_data [23:46:11]requested_item fm.sale.total is exist - process it [23:46:11]SAM_PROTO_GetFMData [23:46:11]wFMCommunicate request_size=4 [23:46:11]MH_SAM_APDU [23:46:11]CAPDU: 80 13 03 00 [23:46:11]Write to MH i2c: E2 08 00 F0 7D 80 13 03 00 00 00 00 00 EC [23:46:11]Write i2c OK [23:46:11]MH_I2C_Read... [23:46:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:46:12]Read from MH i2c: E2 [23:46:12]MH_I2C_Read... [23:46:12]Read from MH i2c: E2 FD 00 [23:46:12]MH_I2C_Read... [23:46:12]Read from MH i2c: E2 FD 00 F0 7D 00 C5 04 85 04 C1 04 6E 04 04 00 6D DD 01 00 69 04 A3 00 6F 04 04 00 69 CE 01 00 B1 04 05 00 35 B8 62 45 02 70 04 05 00 34 D8 DB C0 01 72 04 04 00 01 E0 86 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D E4 C1 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BC 62 25 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 04 0F 00 00 B1 04 04 00 78 74 D8 26 70 04 04 00 78 74 D8 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 3D 20 04 EF 03 09 90 00 D9 [23:46:12]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 6D DD 01 00 69 04 A3 00 6F 04 04 00 69 CE 01 00 B1 04 05 00 35 B8 62 45 02 70 04 05 00 34 D8 DB C0 01 72 04 04 00 01 E0 86 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D E4 C1 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BC 62 25 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 04 0F 00 00 B1 04 04 00 78 74 D8 26 70 04 04 00 78 74 D8 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 3D 20 04 EF 03 09 90 00 [23:46:12]wFMCommunicate OK [23:46:12]wFMCommunicate request_size=4 [23:46:12]MH_SAM_APDU [23:46:12]CAPDU: 80 17 00 00 [23:46:12]Write to MH i2c: E2 08 00 F1 7D 80 17 00 00 00 00 00 00 EE [23:46:12]Write i2c OK [23:46:12]MH_I2C_Read... [23:46:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:12]Read from MH i2c: E2 [23:46:12]MH_I2C_Read... [23:46:12]Read from MH i2c: E2 FD 00 [23:46:12]MH_I2C_Read... [23:46:12]Read from MH i2c: E2 FD 00 F1 7D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FC 03 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 FB [23:46:12]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FC 03 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:46:12]wFMCommunicate OK [23:46:12]wFMCommunicate request_size=4 [23:46:12]MH_SAM_APDU [23:46:12]CAPDU: 80 17 00 00 [23:46:12]Write to MH i2c: E2 08 00 F2 7D 80 17 00 00 00 00 00 00 EF [23:46:12]Write i2c OK [23:46:12]MH_I2C_Read... [23:46:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:12]Read from MH i2c: E2 [23:46:12]MH_I2C_Read... [23:46:12]Read from MH i2c: E2 FD 00 [23:46:12]MH_I2C_Read... [23:46:12]Read from MH i2c: E2 FD 00 F2 7D 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 01 [23:46:12]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:46:12]wFMCommunicate OK [23:46:12]wFMCommunicate request_size=4 [23:46:12]MH_SAM_APDU [23:46:12]CAPDU: 80 17 00 00 [23:46:12]Write to MH i2c: E2 08 00 F3 7D 80 17 00 00 00 00 00 00 F0 [23:46:12]Write i2c OK [23:46:12]MH_I2C_Read... [23:46:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:13]Read from MH i2c: E2 [23:46:13]MH_I2C_Read... [23:46:13]Read from MH i2c: E2 FD 00 [23:46:13]MH_I2C_Read... [23:46:13]Read from MH i2c: E2 FD 00 F3 7D 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 7C [23:46:13]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:46:13]wFMCommunicate OK [23:46:13]wFMCommunicate request_size=4 [23:46:13]MH_SAM_APDU [23:46:13]CAPDU: 80 17 00 00 [23:46:13]Write to MH i2c: E2 08 00 F4 7D 80 17 00 00 00 00 00 00 F1 [23:46:13]Write i2c OK [23:46:13]MH_I2C_Read... [23:46:13]Read from MH i2c: E2 [23:46:13]MH_I2C_Read... [23:46:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:46:13]Read from MH i2c: E2 E2 00 [23:46:13]MH_I2C_Read... [23:46:13]Read from MH i2c: E2 E2 00 F4 7D 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CF [23:46:13]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:46:13]wFMCommunicate OK [23:46:13]SAM_PROTO_GetFMData done [23:46:13]requested_item fm.sale_refund.total is exist - process it [23:46:13]requested_item fm.buy.total is exist - process it [23:46:13]requested_item shift.sale.total is exist - process it [23:46:13]SAM_PROTO_GetShiftData [23:46:13]wFMCommunicate request_size=4 [23:46:13]MH_SAM_APDU [23:46:13]CAPDU: 80 13 02 00 [23:46:13]Write to MH i2c: E2 08 00 F5 7D 80 13 02 00 00 00 00 00 F0 [23:46:13]Write i2c OK [23:46:13]MH_I2C_Read... [23:46:13]OFD Sender: No OFD packet to send [23:46:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:46:13]Read from MH i2c: E2 [23:46:13]MH_I2C_Read... [23:46:13]Read from MH i2c: E2 FD 00 [23:46:13]MH_I2C_Read... [23:46:13]Read from MH i2c: E2 FD 00 F5 7D 00 BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9C 00 6F 04 04 00 B6 00 00 00 B1 04 03 00 86 38 CB 70 04 03 00 90 87 88 72 04 03 00 F6 B0 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 55 96 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7F CC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 60 5B 1C 70 04 03 00 60 5B 1C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 02 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 77 [23:46:13]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9C 00 6F 04 04 00 B6 00 00 00 B1 04 03 00 86 38 CB 70 04 03 00 90 87 88 72 04 03 00 F6 B0 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 55 96 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7F CC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 60 5B 1C 70 04 03 00 60 5B 1C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 02 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:46:13]wFMCommunicate OK [23:46:13]wFMCommunicate request_size=4 [23:46:13]MH_SAM_APDU [23:46:13]CAPDU: 80 17 00 00 [23:46:13]Write to MH i2c: E2 08 00 F6 7D 80 17 00 00 00 00 00 00 F3 [23:46:13]Write i2c OK [23:46:13]MH_I2C_Read... [23:46:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:14]Read from MH i2c: E2 [23:46:14]MH_I2C_Read... [23:46:14]Read from MH i2c: E2 FD 00 [23:46:14]MH_I2C_Read... [23:46:14]Read from MH i2c: E2 FD 00 F6 7D 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 40 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 1B [23:46:14]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 40 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [23:46:14]wFMCommunicate OK [23:46:14]wFMCommunicate request_size=4 [23:46:14]MH_SAM_APDU [23:46:14]CAPDU: 80 17 00 00 [23:46:14]Write to MH i2c: E2 08 00 F7 7D 80 17 00 00 00 00 00 00 F4 [23:46:14]Write i2c OK [23:46:14]MH_I2C_Read... [23:46:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:14]Read from MH i2c: E2 [23:46:14]MH_I2C_Read... [23:46:14]Read from MH i2c: E2 FD 00 [23:46:14]MH_I2C_Read... [23:46:14]Read from MH i2c: E2 FD 00 F7 7D 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 20 [23:46:14]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [23:46:14]wFMCommunicate OK [23:46:14]wFMCommunicate request_size=4 [23:46:14]MH_SAM_APDU [23:46:14]CAPDU: 80 17 00 00 [23:46:14]Write to MH i2c: E2 08 00 F8 7D 80 17 00 00 00 00 00 00 F5 [23:46:14]Write i2c OK [23:46:14]MH_I2C_Read... [23:46:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:14]Read from MH i2c: E2 [23:46:14]MH_I2C_Read... [23:46:14]Read from MH i2c: E2 FD 00 [23:46:14]MH_I2C_Read... [23:46:14]Read from MH i2c: E2 FD 00 F8 7D 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 6D [23:46:14]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [23:46:14]wFMCommunicate OK [23:46:14]wFMCommunicate request_size=4 [23:46:14]MH_SAM_APDU [23:46:14]CAPDU: 80 17 00 00 [23:46:14]Write to MH i2c: E2 08 00 F9 7D 80 17 00 00 00 00 00 00 F6 [23:46:14]Write i2c OK [23:46:14]MH_I2C_Read... [23:46:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:46:14]Read from MH i2c: E2 [23:46:14]MH_I2C_Read... [23:46:14]Read from MH i2c: E2 D7 00 [23:46:14]MH_I2C_Read... [23:46:14]Read from MH i2c: E2 D7 00 F9 7D 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D9 [23:46:14]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:46:14]wFMCommunicate OK [23:46:14]SAM_PROTO_GetShiftData done [23:46:14]requested_item shift.sale.total_cash is exist - process it [23:46:14]requested_item shift.sale_refund.total is exist - process it [23:46:14]requested_item shift.sale_refund.total_cash is exist - process it [23:46:14]requested_item shift.buy.total is exist - process it [23:46:14]requested_item shift.buy.total_cash is exist - process it [23:46:14]produce_requested_data done [23:46:14]produce_requested_data return {"fm.sale.total":97540321.81,"fm.sale_refund.total":6517198.00,"fm.buy.total":0.00,"shift.sale.total":133182.78,"shift.sale.total_cash":89476.00,"shift.sale_refund.total":18584.00,"shift.sale_refund.total_cash":18584.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:46:14]process_action_free get_value [23:46:14]json_value_free [23:46:14]json_value_free done [23:46:14]process_json_proto returns [23:46:14]Send response to host [23:46:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":97540321.81,"fm.sale_refund.total":6517198.00,"fm.buy.total":0.00,"shift.sale.total":133182.78,"shift.sale.total_cash":89476.00,"shift.sale_refund.total":18584.00,"shift.sale_refund.total_cash":18584.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:46:14]free response buf [23:46:14]execute_script done [23:46:14]execute_script returns [23:46:14]free content buf [23:46:14]Sock 7.Close socket [23:46:14]Sock 7.Thread stoped [23:46:15]accept exits with 9 [23:46:15]New connection [23:46:15]New thread 3066723684 created [23:46:15] Sock 9.Parse request [23:46:15]Thread 3066580324 joined [23:46:15]Sock 9.Check first char [23:46:15]Waiting for new connection... [23:46:15]Sock 9.First char is OK [23:46:15]request: POST /json_proto HTTP/1.0 [23:46:15]Method: POST [23:46:15]URL: /json_proto [23:46:15]Method is POST - this is cgi request [23:46:15]url: /json_proto [23:46:15]query_string will be loaded in cgi processing [23:46:15]execute_cgi json_proto POST (null) [23:46:15]execute_cgi path=json_proto method=POST [23:46:15]POST find Content-Length [23:46:15]Host: 172.17.37.4:8080 [23:46:15]Content-Length: 331 [23:46:15]Content-Type: application/json [23:46:15] [23:46:15]POST finish read [23:46:15]Found Content-Length = 331 [23:46:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:46:15]execute_script... [23:46:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:46:15]POST & json_proto [23:46:15]process_json_proto [23:46:15]json parsed OK: [23:46:15]protocol is kg_v1.0 [23:46:15]action value=get_value [23:46:15]process_action get_value [23:46:15]cmd_get_value [23:46:15]process_action get_value done [23:46:15]requested_data is exist [23:46:15]produce_requested_data [23:46:15]requested_item fm.sale.total is exist - process it [23:46:15]SAM_PROTO_GetFMData [23:46:15]wFMCommunicate request_size=4 [23:46:15]MH_SAM_APDU [23:46:15]CAPDU: 80 13 03 00 [23:46:15]Write to MH i2c: E2 08 00 FA 7D 80 13 03 00 00 00 00 00 F6 [23:46:15]Write i2c OK [23:46:15]MH_I2C_Read... [23:46:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:46:15]Read from MH i2c: E2 [23:46:15]MH_I2C_Read... [23:46:15]Read from MH i2c: E2 FD 00 [23:46:15]MH_I2C_Read... [23:46:15]Read from MH i2c: E2 FD 00 FA 7D 00 C5 04 85 04 C1 04 6E 04 04 00 6D DD 01 00 69 04 A3 00 6F 04 04 00 69 CE 01 00 B1 04 05 00 35 B8 62 45 02 70 04 05 00 34 D8 DB C0 01 72 04 04 00 01 E0 86 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D E4 C1 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BC 62 25 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 04 0F 00 00 B1 04 04 00 78 74 D8 26 70 04 04 00 78 74 D8 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 3D 20 04 EF 03 09 90 00 E3 [23:46:15]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 6D DD 01 00 69 04 A3 00 6F 04 04 00 69 CE 01 00 B1 04 05 00 35 B8 62 45 02 70 04 05 00 34 D8 DB C0 01 72 04 04 00 01 E0 86 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D E4 C1 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BC 62 25 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 04 0F 00 00 B1 04 04 00 78 74 D8 26 70 04 04 00 78 74 D8 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 3D 20 04 EF 03 09 90 00 [23:46:15]wFMCommunicate OK [23:46:15]wFMCommunicate request_size=4 [23:46:15]MH_SAM_APDU [23:46:15]CAPDU: 80 17 00 00 [23:46:15]Write to MH i2c: E2 08 00 FB 7D 80 17 00 00 00 00 00 00 F8 [23:46:15]Write i2c OK [23:46:15]MH_I2C_Read... [23:46:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:15]Read from MH i2c: E2 [23:46:15]MH_I2C_Read... [23:46:15]Read from MH i2c: E2 FD 00 [23:46:15]MH_I2C_Read... [23:46:15]Read from MH i2c: E2 FD 00 FB 7D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FC 03 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 05 [23:46:16]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FC 03 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:46:16]wFMCommunicate OK [23:46:16]wFMCommunicate request_size=4 [23:46:16]MH_SAM_APDU [23:46:16]CAPDU: 80 17 00 00 [23:46:16]Write to MH i2c: E2 08 00 FC 7D 80 17 00 00 00 00 00 00 F9 [23:46:16]Write i2c OK [23:46:16]MH_I2C_Read... [23:46:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:16]Read from MH i2c: E2 [23:46:16]MH_I2C_Read... [23:46:16]Read from MH i2c: E2 FD 00 [23:46:16]MH_I2C_Read... [23:46:16]Read from MH i2c: E2 FD 00 FC 7D 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 0B [23:46:16]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:46:16]wFMCommunicate OK [23:46:16]wFMCommunicate request_size=4 [23:46:16]MH_SAM_APDU [23:46:16]CAPDU: 80 17 00 00 [23:46:16]Write to MH i2c: E2 08 00 FD 7D 80 17 00 00 00 00 00 00 FA [23:46:16]Write i2c OK [23:46:16]MH_I2C_Read... [23:46:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:16]Read from MH i2c: E2 [23:46:16]MH_I2C_Read... [23:46:16]Read from MH i2c: E2 FD 00 [23:46:16]MH_I2C_Read... [23:46:16]Read from MH i2c: E2 FD 00 FD 7D 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 86 [23:46:16]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:46:16]wFMCommunicate OK [23:46:16]wFMCommunicate request_size=4 [23:46:16]MH_SAM_APDU [23:46:16]CAPDU: 80 17 00 00 [23:46:16]Write to MH i2c: E2 08 00 FE 7D 80 17 00 00 00 00 00 00 FB [23:46:16]Write i2c OK [23:46:16]MH_I2C_Read... [23:46:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:46:17]Read from MH i2c: E2 [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: E2 E2 00 [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: E2 E2 00 FE 7D 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D9 [23:46:17]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:46:17]wFMCommunicate OK [23:46:17]SAM_PROTO_GetFMData done [23:46:17]requested_item fm.sale_refund.total is exist - process it [23:46:17]requested_item fm.buy.total is exist - process it [23:46:17]requested_item shift.sale.total is exist - process it [23:46:17]SAM_PROTO_GetShiftData [23:46:17]wFMCommunicate request_size=4 [23:46:17]MH_SAM_APDU [23:46:17]CAPDU: 80 13 02 00 [23:46:17]Write to MH i2c: E2 08 00 FF 7D 80 13 02 00 00 00 00 00 FA [23:46:17]Write i2c OK [23:46:17]MH_I2C_Read... [23:46:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:46:17]Read from MH i2c: E2 [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: E2 FD 00 [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: E2 FD 00 FF 7D 00 BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9C 00 6F 04 04 00 B6 00 00 00 B1 04 03 00 86 38 CB 70 04 03 00 90 87 88 72 04 03 00 F6 B0 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 55 96 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7F CC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 60 5B 1C 70 04 03 00 60 5B 1C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 02 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 81 [23:46:17]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9C 00 6F 04 04 00 B6 00 00 00 B1 04 03 00 86 38 CB 70 04 03 00 90 87 88 72 04 03 00 F6 B0 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 55 96 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7F CC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 60 5B 1C 70 04 03 00 60 5B 1C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 02 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:46:17]wFMCommunicate OK [23:46:17]wFMCommunicate request_size=4 [23:46:17]MH_SAM_APDU [23:46:17]CAPDU: 80 17 00 00 [23:46:17]Write to MH i2c: E2 08 00 00 7E 80 17 00 00 00 00 00 00 FE [23:46:17]Write i2c OK [23:46:17]MH_I2C_Read... [23:46:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:18]Read from MH i2c: E2 [23:46:18]MH_I2C_Read... [23:46:18]Read from MH i2c: E2 FD 00 [23:46:18]MH_I2C_Read... [23:46:18]Read from MH i2c: E2 FD 00 00 7E 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 40 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 26 [23:46:18]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 40 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [23:46:18]wFMCommunicate OK [23:46:18]wFMCommunicate request_size=4 [23:46:18]MH_SAM_APDU [23:46:18]CAPDU: 80 17 00 00 [23:46:18]Write to MH i2c: E2 08 00 01 7E 80 17 00 00 00 00 00 00 FF [23:46:18]Write i2c OK [23:46:18]MH_I2C_Read... [23:46:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:18]Read from MH i2c: E2 [23:46:18]MH_I2C_Read... [23:46:18]Read from MH i2c: E2 FD 00 [23:46:18]MH_I2C_Read... [23:46:18]Read from MH i2c: E2 FD 00 01 7E 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 2B [23:46:18]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 OFD Sender: No OFD packet to send [23:46:18]F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [23:46:18]wFMCommunicate OK [23:46:18]wFMCommunicate request_size=4 [23:46:18]MH_SAM_APDU [23:46:18]CAPDU: 80 17 00 00 [23:46:18]Write to MH i2c: E2 08 00 02 7E 80 17 00 00 00 00 00 00 00 [23:46:18]Write i2c OK [23:46:18]MH_I2C_Read... [23:46:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:19]Read from MH i2c: E2 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: E2 FD 00 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: E2 FD 00 02 7E 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 78 [23:46:19]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [23:46:19]wFMCommunicate OK [23:46:19]wFMCommunicate request_size=4 [23:46:19]MH_SAM_APDU [23:46:19]CAPDU: 80 17 00 00 [23:46:19]Write to MH i2c: E2 08 00 03 7E 80 17 00 00 00 00 00 00 01 [23:46:19]Write i2c OK [23:46:19]MH_I2C_Read... [23:46:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:46:19]Read from MH i2c: E2 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: E2 D7 00 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: E2 D7 00 03 7E 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E4 [23:46:19]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:46:19]wFMCommunicate OK [23:46:19]SAM_PROTO_GetShiftData done [23:46:19]requested_item shift.sale.total_cash is exist - process it [23:46:19]requested_item shift.sale_refund.total is exist - process it [23:46:19]requested_item shift.sale_refund.total_cash is exist - process it [23:46:19]requested_item shift.buy.total is exist - process it [23:46:19]requested_item shift.buy.total_cash is exist - process it [23:46:19]produce_requested_data done [23:46:19]produce_requested_data return {"fm.sale.total":97540321.81,"fm.sale_refund.total":6517198.00,"fm.buy.total":0.00,"shift.sale.total":133182.78,"shift.sale.total_cash":89476.00,"shift.sale_refund.total":18584.00,"shift.sale_refund.total_cash":18584.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:46:19]process_action_free get_value [23:46:19]json_value_free [23:46:19]json_value_free done [23:46:19]process_json_proto returns [23:46:19]Send response to host [23:46:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":97540321.81,"fm.sale_refund.total":6517198.00,"fm.buy.total":0.00,"shift.sale.total":133182.78,"shift.sale.total_cash":89476.00,"shift.sale_refund.total":18584.00,"shift.sale_refund.total_cash":18584.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:46:19]free response buf [23:46:19]execute_script done [23:46:19]execute_script returns [23:46:19]free content buf [23:46:19]Sock 9.Close socket [23:46:19]Sock 9.Thread stoped [23:46:19]accept exits with 7 [23:46:19]New connection [23:46:19]New thread 3066580324 created [23:46:19]Thread 3066723684 joined [23:46:19]Waiting for new connection... [23:46:19] Sock 7.Parse request [23:46:19]Sock 7.Check first char [23:46:19]Sock 7.First char is OK [23:46:19]request: POST /json_proto HTTP/1.0 [23:46:19]Method: POST [23:46:19]URL: /json_proto [23:46:19]Method is POST - this is cgi request [23:46:19]url: /json_proto [23:46:19]query_string will be loaded in cgi processing [23:46:19]execute_cgi json_proto POST (null) [23:46:19]execute_cgi path=json_proto method=POST [23:46:19]POST find Content-Length [23:46:19]Host: 172.17.37.4:8080 [23:46:19]Content-Length: 263 [23:46:19]Content-Type: application/json [23:46:19] [23:46:19]POST finish read [23:46:19]Found Content-Length = 263 [23:46:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041E\u0440\u043E\u0437\u0431\u0430\u0435\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:19]execute_script... [23:46:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041E\u0440\u043E\u0437\u0431\u0430\u0435\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:19]POST & json_proto [23:46:19]process_json_proto [23:46:19]json parsed OK: [23:46:19]protocol is kg_v1.0 [23:46:19]action value=x_report [23:46:19]process_action x_report [23:46:19]cmd_x_report [23:46:19]MH_GetDate [23:46:19]Write to MH i2c: F0 00 00 04 7E 71 [23:46:19]Write i2c OK [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: F0 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: F0 09 00 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: F0 09 00 04 7E 00 D8 5D 46 67 B8 5A 43 67 18 [23:46:19]GetLastDocTimeStamp 1732664178 [23:46:19]current date 1732664792 [23:46:19]FM_GetShiftState [23:46:19]SAM_PROTO_GetShiftState [23:46:19]wFMCommunicate request_size=4 [23:46:19]MH_SAM_APDU [23:46:19]CAPDU: 80 13 01 00 [23:46:19]Write to MH i2c: E2 08 00 05 7E 80 13 01 00 00 00 00 00 00 [23:46:19]Write i2c OK [23:46:19]MH_I2C_Read... [23:46:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:19]Read from MH i2c: E2 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: E2 0E 00 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: E2 0E 00 05 7E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 61 [23:46:19]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [23:46:19]wFMCommunicate OK [23:46:19]SAM_PROTO_GetShiftState done [23:46:19]FM_GetShiftState done [23:46:19]KKMCreateXReportDocument [23:46:19]Load OK [23:46:19]Malloc new data [23:46:19]MH_GetDate [23:46:19]Write to MH i2c: F0 00 00 06 7E 73 [23:46:19]Write i2c OK [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: F0 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: F0 09 00 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: F0 09 00 06 7E 00 D8 5D 46 67 B8 5A 43 67 1A [23:46:19]Malloc new data [23:46:19]Malloc new data [23:46:19]wFMCommunicate request_size=4 [23:46:19]MH_SAM_APDU [23:46:19]CAPDU: 80 11 00 00 [23:46:19]Write to MH i2c: E2 08 00 07 7E 80 11 00 00 00 00 00 00 FF [23:46:19]Write i2c OK [23:46:19]MH_I2C_Read... [23:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:19]Read from MH i2c: E2 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: E2 17 00 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: E2 17 00 07 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 56 [23:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [23:46:19]wFMCommunicate OK [23:46:19]SAM_PROTO_GetFieldsCounters [23:46:19]wFMCommunicate request_size=4 [23:46:19]MH_SAM_APDU [23:46:19]CAPDU: 80 13 00 00 [23:46:19]Write to MH i2c: E2 08 00 08 7E 80 13 00 00 00 00 00 00 02 [23:46:19]Write i2c OK [23:46:19]MH_I2C_Read... [23:46:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:19]Read from MH i2c: E2 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: E2 62 00 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: E2 62 00 08 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C5 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [23:46:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C5 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:46:20]wFMCommunicate OK [23:46:20]SAM_PROTO_GetFieldsCounters done [23:46:20]Malloc new data [23:46:20]Malloc new data [23:46:20]Malloc new data [23:46:20]KKMCreateXReportDocument OK [23:46:20]KKMSetXReportData OK [23:46:20]KKMPrepareXReportFMData [23:46:20]SAM_PROTO_GetShiftData [23:46:20]wFMCommunicate request_size=4 [23:46:20]MH_SAM_APDU [23:46:20]CAPDU: 80 13 02 00 [23:46:20]Write to MH i2c: E2 08 00 09 7E 80 13 02 00 00 00 00 00 05 [23:46:20]Write i2c OK [23:46:20]MH_I2C_Read... [23:46:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:46:20]Read from MH i2c: E2 [23:46:20]MH_I2C_Read... [23:46:20]Read from MH i2c: E2 FD 00 [23:46:20]MH_I2C_Read... [23:46:20]Read from MH i2c: E2 FD 00 09 7E 00 BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9C 00 6F 04 04 00 B6 00 00 00 B1 04 03 00 86 38 CB 70 04 03 00 90 87 88 72 04 03 00 F6 B0 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 55 96 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7F CC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 60 5B 1C 70 04 03 00 60 5B 1C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 02 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 8C [23:46:20]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9C 00 6F 04 04 00 B6 00 00 00 B1 04 03 00 86 38 CB 70 04 03 00 90 87 88 72 04 03 00 F6 B0 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 55 96 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7F CC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 60 5B 1C 70 04 03 00 60 5B 1C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 02 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:46:20]wFMCommunicate OK [23:46:20]wFMCommunicate request_size=4 [23:46:20]MH_SAM_APDU [23:46:20]CAPDU: 80 17 00 00 [23:46:20]Write to MH i2c: E2 08 00 0A 7E 80 17 00 00 00 00 00 00 08 [23:46:20]Write i2c OK [23:46:20]MH_I2C_Read... [23:46:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:20]Read from MH i2c: E2 [23:46:20]MH_I2C_Read... [23:46:20]Read from MH i2c: E2 FD 00 [23:46:20]MH_I2C_Read... [23:46:20]Read from MH i2c: E2 FD 00 0A 7E 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 40 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 30 [23:46:21]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 40 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [23:46:21]wFMCommunicate OK [23:46:21]wFMCommunicate request_size=4 [23:46:21]MH_SAM_APDU [23:46:21]CAPDU: 80 17 00 00 [23:46:21]Write to MH i2c: E2 08 00 0B 7E 80 17 00 00 00 00 00 00 09 [23:46:21]Write i2c OK [23:46:21]MH_I2C_Read... [23:46:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:21]Read from MH i2c: E2 [23:46:21]MH_I2C_Read... [23:46:21]Read from MH i2c: E2 FD 00 [23:46:21]MH_I2C_Read... [23:46:21]Read from MH i2c: E2 FD 00 0B 7E 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 35 [23:46:21]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [23:46:21]wFMCommunicate OK [23:46:21]wFMCommunicate request_size=4 [23:46:21]MH_SAM_APDU [23:46:21]CAPDU: 80 17 00 00 [23:46:21]Write to MH i2c: E2 08 00 0C 7E 80 17 00 00 00 00 00 00 0A [23:46:21]Write i2c OK [23:46:21]MH_I2C_Read... [23:46:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:21]Read from MH i2c: E2 [23:46:21]MH_I2C_Read... [23:46:21]Read from MH i2c: E2 FD 00 [23:46:21]MH_I2C_Read... [23:46:21]Read from MH i2c: E2 FD 00 0C 7E 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 82 [23:46:21]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [23:46:22]wFMCommunicate OK [23:46:22]wFMCommunicate request_size=4 [23:46:22]MH_SAM_APDU [23:46:22]CAPDU: 80 17 00 00 [23:46:22]Write to MH i2c: E2 08 00 0D 7E 80 17 00 00 00 00 00 00 0B [23:46:22]Write i2c OK [23:46:22]MH_I2C_Read... [23:46:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:46:22]Read from MH i2c: E2 [23:46:22]MH_I2C_Read... [23:46:22]Read from MH i2c: E2 D7 00 [23:46:22]MH_I2C_Read... [23:46:22]Read from MH i2c: E2 D7 00 0D 7E 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EE [23:46:22]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:46:22]wFMCommunicate OK [23:46:22]SAM_PROTO_GetShiftData done [23:46:22]1194 (1206) - счетчики итогов смены [23:46:22] 1134 (4) - 187 - количество чеков со всеми признаками расчетов [23:46:22] 1129 (156) - счетчики операций «приход» [23:46:22] 1135 (4) - 182 - количество чеков по признаку расчетов [23:46:22] 1201 (3) - 133182.78 - общая итоговая сумма в чеках [23:46:22] 1136 (3) - 89476.00 - итоговая сумма в чеках наличными [23:46:22] 1138 (3) - 43706.78 - итоговая сумма в чеках безналичными [23:46:22] 1024 (123) - суммы налогов [23:46:22] 1006 (9) - суммы НДС [23:46:22] 1010 (1) - 0% - код ставки НДС [23:46:22] 1011 (0) - 0.00 - сумма НДС по ставке [23:46:22] 1006 (12) - суммы НДС [23:46:22] 1010 (1) - 12% - код ставки НДС [23:46:22] 1011 (3) - 14147.41 - сумма НДС по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 0% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (12) - суммы НСП [23:46:22] 1014 (1) - 1% - код ставки НСП [23:46:22] 1015 (3) - 1178.87 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 2% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 3% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 5% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 0,50% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 1,50% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1130 (152) - счетчики операций «возврат прихода» [23:46:22] 1135 (4) - 5 - количество чеков по признаку расчетов [23:46:22] 1201 (3) - 18584.00 - общая итоговая сумма в чеках [23:46:22] 1136 (3) - 18584.00 - итоговая сумма в чеках наличными [23:46:22] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:46:22] 1024 (122) - суммы налогов [23:46:22] 1006 (9) - суммы НДС [23:46:22] 1010 (1) - 0% - код ставки НДС [23:46:22] 1011 (0) - 0.00 - сумма НДС по ставке [23:46:22] 1006 (12) - суммы НДС [23:46:22] 1010 (1) - 12% - код ставки НДС [23:46:22] 1011 (3) - 1973.66 - сумма НДС по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 0% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (11) - суммы НСП [23:46:22] 1014 (1) - 1% - код ставки НСП [23:46:22] 1015 (2) - 164.46 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 2% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 3% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 5% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 0,50% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 1,50% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1131 (141) - счетчики операций «расход» [23:46:22] 1135 (4) - 0 - количество чеков по признаку расчетов [23:46:22] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:46:22] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:46:22] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:46:22] 1024 (117) - суммы налогов [23:46:22] 1006 (9) - суммы НДС [23:46:22] 1010 (1) - 0% - код ставки НДС [23:46:22] 1011 (0) - 0.00 - сумма НДС по ставке [23:46:22] 1006 (9) - суммы НДС [23:46:22] 1010 (1) - 12% - код ставки НДС [23:46:22] 1011 (0) - 0.00 - сумма НДС по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 0% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 1% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 2% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 3% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 5% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 0,50% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 1,50% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1132 (141) - счетчики операций «возврат расхода» [23:46:22] 1135 (4) - 0 - количество чеков по признаку расчетов [23:46:22] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:46:22] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:46:22] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:46:22] 1024 (117) - суммы налогов [23:46:22] 1006 (9) - суммы НДС [23:46:22] 1010 (1) - 0% - код ставки НДС [23:46:22] 1011 (0) - 0.00 - сумма НДС по ставке [23:46:22] 1006 (9) - суммы НДС [23:46:22] 1010 (1) - 12% - код ставки НДС [23:46:22] 1011 (0) - 0.00 - сумма НДС по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 0% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 1% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 2% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 3% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 5% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 0,50% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1007 (9) - суммы НСП [23:46:22] 1014 (1) - 1,50% - код ставки НСП [23:46:22] 1015 (0) - 0.00 - сумма НСП по ставке [23:46:22] 1133 (588) - - счетчики коррекции - не используются [23:46:22]SetTLVBufToDocument [23:46:22]Processing tag 1194 (04AA) [23:46:22]Load OK [23:46:22]SetTLVBufToDocument [23:46:22]Processing tag 1134 (046E) [23:46:22]Malloc new data [23:46:22]Processing tag 1129 (0469) [23:46:22]Load OK [23:46:22]SetTLVBufToDocument [23:46:22]Processing tag 1135 (046F) [23:46:22]Malloc new data [23:46:22]Processing tag 1201 (04B1) [23:46:22]Malloc new data [23:46:22]Processing tag 1136 (0470) [23:46:22]Malloc new data [23:46:22]Processing tag 1138 (0472) [23:46:22]Malloc new data [23:46:22]Processing tag 1024 (0400) [23:46:22]Load OK [23:46:22]SetTLVBufToDocument [23:46:22]Processing tag 1006 (03EE) [23:46:22]Load OK [23:46:22]SetTLVBufToDocument [23:46:22]Processing tag 1010 (03F2) [23:46:22]Malloc new data [23:46:22]Processing tag 1011 (03F3) [23:46:22]Malloc new data [23:46:22]SetTLVBufToDocument err=0 [23:46:22]Processing tag 1006 (03EE) [23:46:22]Load OK [23:46:22]SetTLVBufToDocument [23:46:22]Processing tag 1010 (03F2) [23:46:22]Malloc new data [23:46:22]Processing tag 1011 (03F3) [23:46:22]Malloc new data [23:46:22]SetTLVBufToDocument err=0 [23:46:22]Processing tag 1007 (03EF) [23:46:22]Load OK [23:46:22]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]SetTLVBufToDocument err=0 [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1130 (046A) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1135 (046F) [23:46:23]Malloc new data [23:46:23]Processing tag 1201 (04B1) [23:46:23]Malloc new data [23:46:23]Processing tag 1136 (0470) [23:46:23]Malloc new data [23:46:23]Processing tag 1138 (0472) [23:46:23]Malloc new data [23:46:23]Processing tag 1024 (0400) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1006 (03EE) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1010 (03F2) [23:46:23]Malloc new data [23:46:23]Processing tag 1011 (03F3) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1006 (03EE) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1010 (03F2) [23:46:23]Malloc new data [23:46:23]Processing tag 1011 (03F3) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]SetTLVBufToDocument err=0 [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1131 (046B) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1135 (046F) [23:46:23]Malloc new data [23:46:23]Processing tag 1201 (04B1) [23:46:23]Malloc new data [23:46:23]Processing tag 1136 (0470) [23:46:23]Malloc new data [23:46:23]Processing tag 1138 (0472) [23:46:23]Malloc new data [23:46:23]Processing tag 1024 (0400) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1006 (03EE) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1010 (03F2) [23:46:23]Malloc new data [23:46:23]Processing tag 1011 (03F3) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1006 (03EE) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1010 (03F2) [23:46:23]Malloc new data [23:46:23]Processing tag 1011 (03F3) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]SetTLVBufToDocument err=0 [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1132 (046C) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1135 (046F) [23:46:23]Malloc new data [23:46:23]Processing tag 1201 (04B1) [23:46:23]Malloc new data [23:46:23]Processing tag 1136 (0470) [23:46:23]Malloc new data [23:46:23]Processing tag 1138 (0472) [23:46:23]Malloc new data [23:46:23]Processing tag 1024 (0400) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1006 (03EE) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1010 (03F2) [23:46:23]Malloc new data [23:46:23]Processing tag 1011 (03F3) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1006 (03EE) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1010 (03F2) [23:46:23]Malloc new data [23:46:23]Processing tag 1011 (03F3) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1007 (03EF) [23:46:23]Load OK [23:46:23]SetTLVBufToDocument [23:46:23]Processing tag 1014 (03F6) [23:46:23]Malloc new data [23:46:23]Processing tag 1015 (03F7) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]SetTLVBufToDocument err=0 [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Processing tag 1133 (046D) [23:46:23]Malloc new data [23:46:23]SetTLVBufToDocument err=0 [23:46:23]SetTLVBufToDocument err=0 [23:46:23]Malloc new data [23:46:23]SAM_PROTO_GetFMData [23:46:23]wFMCommunicate request_size=4 [23:46:23]MH_SAM_APDU [23:46:23]CAPDU: 80 13 03 00 [23:46:23]Write to MH i2c: E2 08 00 0E 7E 80 13 03 00 00 00 00 00 0B [23:46:23]OFD Sender: No OFD packet to send [23:46:23]Write i2c OK [23:46:23]MH_I2C_Read... [23:46:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:46:24]Read from MH i2c: E2 [23:46:24]MH_I2C_Read... [23:46:24]Read from MH i2c: E2 FD 00 [23:46:24]MH_I2C_Read... [23:46:24]Read from MH i2c: E2 FD 00 0E 7E 00 C5 04 85 04 C1 04 6E 04 04 00 6D DD 01 00 69 04 A3 00 6F 04 04 00 69 CE 01 00 B1 04 05 00 35 B8 62 45 02 70 04 05 00 34 D8 DB C0 01 72 04 04 00 01 E0 86 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D E4 C1 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BC 62 25 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 04 0F 00 00 B1 04 04 00 78 74 D8 26 70 04 04 00 78 74 D8 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 3D 20 04 EF 03 09 90 00 F8 [23:46:24]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 6D DD 01 00 69 04 A3 00 6F 04 04 00 69 CE 01 00 B1 04 05 00 35 B8 62 45 02 70 04 05 00 34 D8 DB C0 01 72 04 04 00 01 E0 86 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D E4 C1 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BC 62 25 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 04 0F 00 00 B1 04 04 00 78 74 D8 26 70 04 04 00 78 74 D8 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 3D 20 04 EF 03 09 90 00 [23:46:24]wFMCommunicate OK [23:46:24]wFMCommunicate request_size=4 [23:46:24]MH_SAM_APDU [23:46:24]CAPDU: 80 17 00 00 [23:46:24]Write to MH i2c: E2 08 00 0F 7E 80 17 00 00 00 00 00 00 0D [23:46:24]Write i2c OK [23:46:24]MH_I2C_Read... [23:46:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:24]Read from MH i2c: E2 [23:46:24]MH_I2C_Read... [23:46:24]Read from MH i2c: E2 FD 00 [23:46:24]MH_I2C_Read... [23:46:24]Read from MH i2c: E2 FD 00 0F 7E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FC 03 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 1A [23:46:24]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FC 03 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:46:25]wFMCommunicate OK [23:46:25]wFMCommunicate request_size=4 [23:46:25]MH_SAM_APDU [23:46:25]CAPDU: 80 17 00 00 [23:46:25]Write to MH i2c: E2 08 00 10 7E 80 17 00 00 00 00 00 00 0E [23:46:25]Write i2c OK [23:46:25]MH_I2C_Read... [23:46:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:25]Read from MH i2c: E2 [23:46:25]MH_I2C_Read... [23:46:25]Read from MH i2c: E2 FD 00 [23:46:25]MH_I2C_Read... [23:46:25]Read from MH i2c: E2 FD 00 10 7E 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 20 [23:46:25]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:46:25]wFMCommunicate OK [23:46:25]wFMCommunicate request_size=4 [23:46:25]MH_SAM_APDU [23:46:25]CAPDU: 80 17 00 00 [23:46:25]Write to MH i2c: E2 08 00 11 7E 80 17 00 00 00 00 00 00 0F [23:46:25]Write i2c OK [23:46:25]MH_I2C_Read... [23:46:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:46:25]Read from MH i2c: E2 [23:46:25]MH_I2C_Read... [23:46:25]Read from MH i2c: E2 FD 00 [23:46:25]MH_I2C_Read... [23:46:25]Read from MH i2c: E2 FD 00 11 7E 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 9B [23:46:25]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:46:26]wFMCommunicate OK [23:46:26]wFMCommunicate request_size=4 [23:46:26]MH_SAM_APDU [23:46:26]CAPDU: 80 17 00 00 [23:46:26]Write to MH i2c: E2 08 00 12 7E 80 17 00 00 00 00 00 00 10 [23:46:26]Write i2c OK [23:46:26]MH_I2C_Read... [23:46:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:46:26]Read from MH i2c: E2 [23:46:26]MH_I2C_Read... [23:46:26]Read from MH i2c: E2 E2 00 [23:46:26]MH_I2C_Read... [23:46:26]Read from MH i2c: E2 E2 00 12 7E 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EE [23:46:26]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:46:26]wFMCommunicate OK [23:46:26]SAM_PROTO_GetFMData done [23:46:26]FM_GetFMData:85 04 C1 04 6E 04 04 00 6D DD 01 00 69 04 A3 00 6F 04 04 00 69 CE 01 00 B1 04 05 00 35 B8 62 45 02 70 04 05 00 34 D8 DB C0 01 72 04 04 00 01 E0 86 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D E4 C1 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BC 62 25 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 04 0F 00 00 B1 04 04 00 78 74 D8 26 70 04 04 00 78 74 D8 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 3D 20 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FC 03 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:46:27]oper:6F 04 04 00 69 CE 01 00 B1 04 05 00 35 B8 62 45 02 70 04 05 00 34 D8 DB C0 01 72 04 04 00 01 E0 86 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D E4 C1 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BC 62 25 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:46:27]total:35 B8 62 45 02 [23:46:27]Malloc new data [23:46:27]oper:6F 04 04 00 04 0F 00 00 B1 04 04 00 78 74 D8 26 70 04 04 00 78 74 D8 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 3D 20 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FC 03 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:46:27]total:78 74 D8 26 [23:46:27]Malloc new data [23:46:27]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:46:27]total: [23:46:27]Malloc new data [23:46:27]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:46:27]total: [23:46:27]Malloc new data [23:46:27]KKMPrepareXReportFMData err=0 [23:46:27]Х отчет ИНН: 02508201610067 Кассир: Орозбаева А. 26.11.2024 23:46 Смена: 522 РНМ: 0000000000092681 ЗНМ: 0300000033 СНО: Общий режим Всего чеков: 187 ИТОГИ ПРИХОД Чеков: 182 Общий итог: 133182.78 Итого наличными: 89476.00 Итого безнал.: 43706.78 НДС 0% : 0.00 НДС 12% : 14147.41 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1178.87 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 5 Общий итог: 18584.00 Итого наличными: 18584.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 1973.66 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 164.46 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 70892.00 НС Приход: 97540321.81 НС Возвр.Прихода: 6517198.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874881 [23:46:27]StoreToDocumentArchive [23:46:27]MH_GetDate [23:46:27]Write to MH i2c: F0 00 00 13 7E 80 [23:46:27]Write i2c OK [23:46:27]MH_I2C_Read... [23:46:27]Read from MH i2c: F0 [23:46:27]MH_I2C_Read... [23:46:27]Read from MH i2c: F0 09 00 [23:46:27]MH_I2C_Read... [23:46:27]Read from MH i2c: F0 09 00 13 7E 00 E0 5D 46 67 B8 5A 43 67 2F [23:46:27]shift 522 fd 1732664800 [23:46:27]Create dir for shift 0522 [23:46:27]save to /storage/0522/doc_1732664800 [23:46:27]save last doc name /storage/0522/doc_1732664800 to /storage/kkm_last_doc_name [23:46:27]save OK [23:46:27]Clear old archive folders... [23:46:27]NVStorageSaveData kkm_last_timestamp [23:46:27]File name is /storage/kkm_last_timestamp [23:46:27]Write 4 bytes [23:46:27]NVStorageSaveData done [23:46:27]ExternCall_PrintAddStr [23:46:27]wPrintStart [23:46:27]Write to MH i2c: 01 00 00 14 7E 92 [23:46:27]Write i2c OK [23:46:27]MH_I2C_Read... [23:46:27]Read from MH i2c: 01 [23:46:27]MH_I2C_Read... [23:46:27]Read from MH i2c: 01 07 00 [23:46:27]MH_I2C_Read... [23:46:27]Read from MH i2c: 01 07 00 14 7E 00 00 00 00 00 FF 0F A7 [23:46:27]RasterBufferAndPrint [23:46:27]line Х отчет [23:46:27]line ИНН: 02508201610067 [23:46:27]line Кассир: Орозбаева А. [23:46:27]line 26.11.2024 23:46 [23:46:27]line Смена: 522 [23:46:27]line РНМ: 0000000000092681 [23:46:27]line ЗНМ: 0300000033 [23:46:27]line СНО: Общий режим [23:46:27]line Всего чеков: 187 [23:46:27]line ИТОГИ ПРИХОД [23:46:27]line Чеков: 182 [23:46:27]line Общий итог: 133182.78 [23:46:27]line Итого наличными: 89476.00 [23:46:27]line Итого безнал.: 43706.78 [23:46:27]line НДС 0% : 0.00 [23:46:27]line НДС 12% : 14147.41 [23:46:27]line НСП 0% : 0.00 [23:46:27]line НСП 1,50% : 0.00 [23:46:27]line НСП 0,50% : 0.00 [23:46:27]line НСП 5% : 0.00 [23:46:27]line НСП 3% : 0.00 [23:46:27]line НСП 2% : 0.00 [23:46:27]line НСП 1% : 1178.87 [23:46:27]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:46:27]line Чеков: 5 [23:46:27]line Общий итог: 18584.00 [23:46:27]line Итого наличными: 18584.00 [23:46:27]line Итого безнал.: 0.00 [23:46:27]line НДС 0% : 0.00 [23:46:27]line НДС 12% : 1973.66 [23:46:27]line НСП 0% : 0.00 [23:46:27]line НСП 1,50% : 0.00 [23:46:27]line НСП 0,50% : 0.00 [23:46:27]line НСП 5% : 0.00 [23:46:27]line НСП 3% : 0.00 [23:46:27]line НСП 2% : 0.00 [23:46:27]line НСП 1% : 164.46 [23:46:27]line ИТОГИ РАСХОД [23:46:27]line Чеков: 0 [23:46:27]line Общий итог: 0.00 [23:46:27]line Итого наличными: 0.00 [23:46:27]line Итого безнал.: 0.00 [23:46:27]line НДС 0% : 0.00 [23:46:27]line НДС 12% : 0.00 [23:46:27]line НСП 0% : 0.00 [23:46:27]line НСП 1,50% : 0.00 [23:46:27]line НСП 0,50% : 0.00 [23:46:27]line НСП 5% : 0.00 [23:46:27]line НСП 3% : 0.00 [23:46:27]line НСП 2% : 0.00 [23:46:27]line НСП 1% : 0.00 [23:46:27]line ИТОГИ ВОЗВРАТ РАСХОДА [23:46:27]line Чеков: 0 [23:46:27]line Общий итог: 0.00 [23:46:27]line Итого наличными: 0.00 [23:46:27]line Итого безнал.: 0.00 [23:46:27]line НДС 0% : 0.00 [23:46:27]line НДС 12% : 0.00 [23:46:27]line НСП 0% : 0.00 [23:46:27]line НСП 1,50% : 0.00 [23:46:27]line НСП 0,50% : 0.00 [23:46:27]line НСП 5% : 0.00 [23:46:27]line НСП 3% : 0.00 [23:46:27]line НСП 2% : 0.00 [23:46:27]line НСП 1% : 0.00 [23:46:27]line Сумма внесений: 0.00 [23:46:27]line Сумма выплат: 0.00 [23:46:27]line Нал. в кассе: 70892.00 [23:46:27]line НС Приход: 97540321.81 [23:46:27]line НС Возвр.Прихода: 6517198.00 [23:46:27]line НС Расход: 0.00 [23:46:27]line НС Возвр.Расхода: 0.00 [23:46:27]line ФМ: 0000000000874881 [23:46:27]written 0, free lines is 4095 [23:46:28]Write to MH i2c: 01 00 00 5F 7E DD [23:46:28]Write i2c OK [23:46:28]MH_I2C_Read... [23:46:28]Read from MH i2c: 01 [23:46:28]MH_I2C_Read... [23:46:28]Read from MH i2c: 01 07 00 [23:46:28]MH_I2C_Read... [23:46:28]Read from MH i2c: 01 07 00 5F 7E 00 00 00 00 00 60 09 4D [23:46:28]RasterBufferAndPrint [23:46:28]line [23:46:28]line [23:46:28]line [23:46:28]line [23:46:28]line [23:46:28]written 0, free lines is 2425 [23:46:28]MH_Cut [23:46:28]Write to MH i2c: D1 01 00 66 7E 01 B6 [23:46:28]Write i2c OK [23:46:28]MH_I2C_Read... [23:46:28]Read from MH i2c: D1 [23:46:28]MH_I2C_Read... [23:46:28]Read from MH i2c: D1 01 00 [23:46:28]MH_I2C_Read... [23:46:28]Read from MH i2c: D1 01 00 66 7E 00 B5 [23:46:28]Write to MH i2c: 01 00 00 67 7E E5 [23:46:28]Write i2c OK [23:46:28]MH_I2C_Read... [23:46:28]OFD Sender: No OFD packet to send [23:46:30]*** Cut start [23:46:30]*** Partial cut [23:46:30]*** CUTSNS_PIN = 1 [23:46:30]*** CUTSNS_PIN = 0 [23:46:30]*** Brake cut motor [23:46:31]Read from MH i2c: 01 [23:46:31]MH_I2C_Read... [23:46:31]*** Stop cut motor [23:46:31]*** Cut end [23:46:31]Read from MH i2c: 01 07 00 [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: 01 07 00 67 7E 00 00 00 00 00 FF 0F FA [23:46:31]process_action x_report done [23:46:31]requested_data is exist [23:46:31]produce_requested_data [23:46:31]requested_item fd.num is exist - process it [23:46:31]SAM_PROTO_GetFieldsCounters [23:46:31]wFMCommunicate request_size=4 [23:46:31]MH_SAM_APDU [23:46:31]CAPDU: 80 13 00 00 [23:46:31]Write to MH i2c: E2 08 00 68 7E 80 13 00 00 00 00 00 00 62 [23:46:31]Write i2c OK [23:46:31]MH_I2C_Read... [23:46:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:31]Read from MH i2c: E2 [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: E2 62 00 [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: E2 62 00 68 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C5 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [23:46:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C5 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:46:31]wFMCommunicate OK [23:46:31]SAM_PROTO_GetFieldsCounters done [23:46:31]requested_item shift.num is exist - process it [23:46:31]requested_item shift.opened is exist - process it [23:46:31]req_shift_opened [23:46:31]FM_GetShiftState [23:46:31]SAM_PROTO_GetShiftState [23:46:31]wFMCommunicate request_size=4 [23:46:31]MH_SAM_APDU [23:46:31]CAPDU: 80 13 01 00 [23:46:31]Write to MH i2c: E2 08 00 69 7E 80 13 01 00 00 00 00 00 64 [23:46:31]Write i2c OK [23:46:31]MH_I2C_Read... [23:46:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:31]Read from MH i2c: E2 [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: E2 0E 00 [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: E2 0E 00 69 7E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 C5 [23:46:31]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [23:46:31]wFMCommunicate OK [23:46:31]SAM_PROTO_GetShiftState done [23:46:31]FM_GetShiftState done [23:46:31]req_shift_opened done [23:46:31]requested_item shift.open_date is exist - process it [23:46:31]req_shift_open_date [23:46:31]req_shift_open_date done [23:46:31]produce_requested_data done [23:46:31]produce_requested_data return {"fd.num":123333,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [23:46:31]process_action_free x_report [23:46:31]json_value_free [23:46:31]json_value_free done [23:46:31]process_json_proto returns [23:46:31]Send response to host [23:46:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":123333,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [23:46:31]free response buf [23:46:31]execute_script done [23:46:31]execute_script returns [23:46:31]free content buf [23:46:31]Sock 7.Close socket [23:46:31]Sock 7.Thread stoped [23:46:33]OFD Sender: No OFD packet to send [23:46:38]OFD Sender: No OFD packet to send [23:46:43]OFD Sender: No OFD packet to send [23:46:48]OFD Sender: No OFD packet to send [23:46:53]OFD Sender: No OFD packet to send [23:46:58]OFD Sender: No OFD packet to send [23:46:59]accept exits with 10 [23:46:59]New connection [23:46:59]New thread 3066723684 created [23:46:59]Thread 3066580324 joined [23:46:59]Waiting for new connection... [23:46:59] Sock 10.Parse request [23:46:59]Sock 10.Check first char [23:46:59]Sock 10.First char is OK [23:46:59]request: POST /json_proto HTTP/1.0 [23:46:59]Method: POST [23:46:59]URL: /json_proto [23:46:59]Method is POST - this is cgi request [23:46:59]url: /json_proto [23:46:59]query_string will be loaded in cgi processing [23:46:59]execute_cgi json_proto POST (null) [23:46:59]execute_cgi path=json_proto method=POST [23:46:59]POST find Content-Length [23:46:59]Host: 172.17.37.4:8080 [23:46:59]Content-Length: 215 [23:46:59]Content-Type: application/json [23:46:59] [23:46:59]POST finish read [23:46:59]Found Content-Length = 215 [23:46:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:59]execute_script... [23:46:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:59]POST & json_proto [23:46:59]process_json_proto [23:46:59]json parsed OK: [23:46:59]protocol is kg_v1.0 [23:46:59]action value=get_value [23:46:59]process_action get_value [23:46:59]cmd_get_value [23:46:59]process_action get_value done [23:46:59]requested_data is exist [23:46:59]produce_requested_data [23:46:59]requested_item kkm.sn is exist - process it [23:46:59]requested_item kkm.ver is exist - process it [23:46:59]requested_item fm.sn is exist - process it [23:46:59]wFMCommunicate request_size=4 [23:46:59]MH_SAM_APDU [23:46:59]CAPDU: 80 11 00 00 [23:46:59]Write to MH i2c: E2 08 00 6A 7E 80 11 00 00 00 00 00 00 62 [23:46:59]Write i2c OK [23:46:59]MH_I2C_Read... [23:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:59]Read from MH i2c: E2 [23:46:59]MH_I2C_Read... [23:46:59]Read from MH i2c: E2 17 00 [23:46:59]MH_I2C_Read... [23:46:59]Read from MH i2c: E2 17 00 6A 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B9 [23:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [23:46:59]wFMCommunicate OK [23:46:59]requested_item fd.num is exist - process it [23:46:59]SAM_PROTO_GetFieldsCounters [23:46:59]wFMCommunicate request_size=4 [23:46:59]MH_SAM_APDU [23:46:59]CAPDU: 80 13 00 00 [23:46:59]Write to MH i2c: E2 08 00 6B 7E 80 13 00 00 00 00 00 00 65 [23:46:59]Write i2c OK [23:46:59]MH_I2C_Read... [23:46:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:59]Read from MH i2c: E2 [23:46:59]MH_I2C_Read... [23:46:59]Read from MH i2c: E2 62 00 [23:46:59]MH_I2C_Read... [23:46:59]Read from MH i2c: E2 62 00 6B 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C5 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [23:46:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C5 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:46:59]wFMCommunicate OK [23:46:59]SAM_PROTO_GetFieldsCounters done [23:46:59]requested_item shift.num is exist - process it [23:46:59]requested_item shift.opened is exist - process it [23:46:59]req_shift_opened [23:46:59]FM_GetShiftState [23:46:59]SAM_PROTO_GetShiftState [23:46:59]wFMCommunicate request_size=4 [23:46:59]MH_SAM_APDU [23:46:59]CAPDU: 80 13 01 00 [23:46:59]Write to MH i2c: E2 08 00 6C 7E 80 13 01 00 00 00 00 00 67 [23:46:59]Write i2c OK [23:46:59]MH_I2C_Read... [23:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:59]Read from MH i2c: E2 [23:46:59]MH_I2C_Read... [23:46:59]Read from MH i2c: E2 0E 00 [23:46:59]MH_I2C_Read... [23:46:59]Read from MH i2c: E2 0E 00 6C 7E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 C8 [23:46:59]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [23:46:59]wFMCommunicate OK [23:46:59]SAM_PROTO_GetShiftState done [23:46:59]FM_GetShiftState done [23:46:59]req_shift_opened done [23:46:59]requested_item shift.open_date is exist - process it [23:46:59]req_shift_open_date [23:46:59]req_shift_open_date done [23:46:59]produce_requested_data done [23:46:59]produce_requested_data return {"kkm.sn":"0300000033","kkm.ver":"001","fm.sn":"0000000000874881","fd.num":123333,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736} [23:46:59]process_action_free get_value [23:46:59]json_value_free [23:46:59]json_value_free done [23:46:59]process_json_proto returns [23:46:59]Send response to host [23:46:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000033","kkm.ver":"001","fm.sn":"0000000000874881","fd.num":123333,"shift.num":557,"shift.opened":1,"shift.open_date":1732579736}}} [23:46:59]free response buf [23:46:59]execute_script done [23:46:59]execute_script returns [23:46:59]free content buf [23:46:59]Sock 10.Close socket [23:46:59]Sock 10.Thread stoped [23:46:59]accept exits with 7 [23:46:59]New connection [23:46:59]New thread 3066580324 created [23:46:59]Thread 3066723684 joined [23:46:59]Waiting for new connection... [23:46:59] Sock 7.Parse request [23:46:59]Sock 7.Check first char [23:46:59]Sock 7.First char is OK [23:46:59]request: POST /json_proto HTTP/1.0 [23:46:59]Method: POST [23:46:59]URL: /json_proto [23:46:59]Method is POST - this is cgi request [23:46:59]url: /json_proto [23:46:59]query_string will be loaded in cgi processing [23:46:59]execute_cgi json_proto POST (null) [23:46:59]execute_cgi path=json_proto method=POST [23:46:59]POST find Content-Length [23:46:59]Host: 172.17.37.4:8080 [23:46:59]Content-Length: 331 [23:46:59]Content-Type: application/json [23:46:59] [23:46:59]POST finish read [23:46:59]Found Content-Length = 331 [23:46:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:46:59]execute_script... [23:46:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:46:59]POST & json_proto [23:46:59]process_json_proto [23:46:59]json parsed OK: [23:46:59]protocol is kg_v1.0 [23:46:59]action value=get_value [23:46:59]process_action get_value [23:46:59]cmd_get_value [23:46:59]process_action get_value done [23:46:59]requested_data is exist [23:46:59]produce_requested_data [23:46:59]requested_item fm.sale.total is exist - process it [23:46:59]SAM_PROTO_GetFMData [23:46:59]wFMCommunicate request_size=4 [23:46:59]MH_SAM_APDU [23:46:59]CAPDU: 80 13 03 00 [23:46:59]Write to MH i2c: E2 08 00 6D 7E 80 13 03 00 00 00 00 00 6A [23:46:59]Write i2c OK [23:46:59]MH_I2C_Read... [23:46:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:46:59]Read from MH i2c: E2 [23:46:59]MH_I2C_Read... [23:46:59]Read from MH i2c: E2 FD 00 [23:46:59]MH_I2C_Read... [23:46:59]Read from MH i2c: E2 FD 00 6D 7E 00 C5 04 85 04 C1 04 6E 04 04 00 6D DD 01 00 69 04 A3 00 6F 04 04 00 69 CE 01 00 B1 04 05 00 35 B8 62 45 02 70 04 05 00 34 D8 DB C0 01 72 04 04 00 01 E0 86 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D E4 C1 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BC 62 25 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 04 0F 00 00 B1 04 04 00 78 74 D8 26 70 04 04 00 78 74 D8 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 3D 20 04 EF 03 09 90 00 57 [23:46:59]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 6D DD 01 00 69 04 A3 00 6F 04 04 00 69 CE 01 00 B1 04 05 00 35 B8 62 45 02 70 04 05 00 34 D8 DB C0 01 72 04 04 00 01 E0 86 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D E4 C1 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BC 62 25 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 04 0F 00 00 B1 04 04 00 78 74 D8 26 70 04 04 00 78 74 D8 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 3D 20 04 EF 03 09 90 00 [23:46:59]wFMCommunicate OK [23:46:59]wFMCommunicate request_size=4 [23:46:59]MH_SAM_APDU [23:46:59]CAPDU: 80 17 00 00 [23:46:59]Write to MH i2c: E2 08 00 6E 7E 80 17 00 00 00 00 00 00 6C [23:46:59]Write i2c OK [23:46:59]MH_I2C_Read... [23:47:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:00]Read from MH i2c: E2 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 FD 00 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 FD 00 6E 7E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FC 03 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 79 [23:47:00]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FC 03 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:47:00]wFMCommunicate OK [23:47:00]wFMCommunicate request_size=4 [23:47:00]MH_SAM_APDU [23:47:00]CAPDU: 80 17 00 00 [23:47:00]Write to MH i2c: E2 08 00 6F 7E 80 17 00 00 00 00 00 00 6D [23:47:00]Write i2c OK [23:47:00]MH_I2C_Read... [23:47:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:00]Read from MH i2c: E2 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 FD 00 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 FD 00 6F 7E 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 7F [23:47:00]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:47:00]wFMCommunicate OK [23:47:00]wFMCommunicate request_size=4 [23:47:00]MH_SAM_APDU [23:47:00]CAPDU: 80 17 00 00 [23:47:00]Write to MH i2c: E2 08 00 70 7E 80 17 00 00 00 00 00 00 6E [23:47:00]Write i2c OK [23:47:00]MH_I2C_Read... [23:47:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:00]Read from MH i2c: E2 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 FD 00 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 FD 00 70 7E 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 FA [23:47:00]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:47:00]wFMCommunicate OK [23:47:00]wFMCommunicate request_size=4 [23:47:00]MH_SAM_APDU [23:47:00]CAPDU: 80 17 00 00 [23:47:00]Write to MH i2c: E2 08 00 71 7E 80 17 00 00 00 00 00 00 6F [23:47:00]Write i2c OK [23:47:00]MH_I2C_Read... [23:47:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:47:01]Read from MH i2c: E2 [23:47:01]MH_I2C_Read... [23:47:01]Read from MH i2c: E2 E2 00 [23:47:01]MH_I2C_Read... [23:47:01]Read from MH i2c: E2 E2 00 71 7E 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4D [23:47:01]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:47:01]wFMCommunicate OK [23:47:01]SAM_PROTO_GetFMData done [23:47:01]requested_item fm.sale_refund.total is exist - process it [23:47:01]requested_item fm.buy.total is exist - process it [23:47:01]requested_item shift.sale.total is exist - process it [23:47:01]SAM_PROTO_GetShiftData [23:47:01]wFMCommunicate request_size=4 [23:47:01]MH_SAM_APDU [23:47:01]CAPDU: 80 13 02 00 [23:47:01]Write to MH i2c: E2 08 00 72 7E 80 13 02 00 00 00 00 00 6E [23:47:01]Write i2c OK [23:47:01]MH_I2C_Read... [23:47:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:47:01]Read from MH i2c: E2 [23:47:01]MH_I2C_Read... [23:47:01]Read from MH i2c: E2 FD 00 [23:47:01]MH_I2C_Read... [23:47:01]Read from MH i2c: E2 FD 00 72 7E 00 BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9C 00 6F 04 04 00 B6 00 00 00 B1 04 03 00 86 38 CB 70 04 03 00 90 87 88 72 04 03 00 F6 B0 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 55 96 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7F CC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 60 5B 1C 70 04 03 00 60 5B 1C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 02 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 F5 [23:47:01]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9C 00 6F 04 04 00 B6 00 00 00 B1 04 03 00 86 38 CB 70 04 03 00 90 87 88 72 04 03 00 F6 B0 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 55 96 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7F CC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 60 5B 1C 70 04 03 00 60 5B 1C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 02 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:47:02]wFMCommunicate OK [23:47:02]wFMCommunicate request_size=4 [23:47:02]MH_SAM_APDU [23:47:02]CAPDU: 80 17 00 00 [23:47:02]Write to MH i2c: E2 08 00 73 7E 80 17 00 00 00 00 00 00 71 [23:47:02]Write i2c OK [23:47:02]MH_I2C_Read... [23:47:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:02]Read from MH i2c: E2 [23:47:02]MH_I2C_Read... [23:47:02]Read from MH i2c: E2 FD 00 [23:47:02]MH_I2C_Read... [23:47:02]Read from MH i2c: E2 FD 00 73 7E 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 40 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 99 [23:47:02]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 40 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [23:47:02]wFMCommunicate OK [23:47:02]wFMCommunicate request_size=4 [23:47:02]MH_SAM_APDU [23:47:02]CAPDU: 80 17 00 00 [23:47:02]Write to MH i2c: E2 08 00 74 7E 80 17 00 00 00 00 00 00 72 [23:47:02]Write i2c OK [23:47:02]MH_I2C_Read... [23:47:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:02]Read from MH i2c: E2 [23:47:02]MH_I2C_Read... [23:47:02]Read from MH i2c: E2 FD 00 [23:47:02]MH_I2C_Read... [23:47:02]Read from MH i2c: E2 FD 00 74 7E 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 9E [23:47:02]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [23:47:02]wFMCommunicate OK [23:47:02]wFMCommunicate request_size=4 [23:47:02]MH_SAM_APDU [23:47:02]CAPDU: 80 17 00 00 [23:47:02]Write to MH i2c: E2 08 00 75 7E 80 17 00 00 00 00 00 00 73 [23:47:02]Write i2c OK [23:47:02]MH_I2C_Read... [23:47:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:03]Read from MH i2c: E2 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: E2 FD 00 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: E2 FD 00 75 7E 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 EB [23:47:03]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [23:47:03]wFMCommunicate OK [23:47:03]wFMCommunicate request_size=4 [23:47:03]MH_SAM_APDU [23:47:03]CAPDU: 80 17 00 00 [23:47:03]Write to MH i2c: E2 08 00 76 7E 80 17 00 00 00 00 00 00 74 [23:47:03]Write i2c OK [23:47:03]MH_I2C_Read... [23:47:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:47:03]Read from MH i2c: E2 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: E2 D7 00 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: E2 D7 00 76 7E 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 57 [23:47:03]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:47:03]wFMCommunicate OK [23:47:03]SAM_PROTO_GetShiftData done [23:47:03]requested_item shift.sale.total_cash is exist - process it [23:47:03]requested_item shift.sale_refund.total is exist - process it [23:47:03]requested_item shift.sale_refund.total_cash is exist - process it [23:47:03]requested_item shift.buy.total is exist - process it [23:47:03]requested_item shift.buy.total_cash is exist - process it [23:47:03]produce_requested_data done [23:47:03]produce_requested_data return {"fm.sale.total":97540321.81,"fm.sale_refund.total":6517198.00,"fm.buy.total":0.00,"shift.sale.total":133182.78,"shift.sale.total_cash":89476.00,"shift.sale_refund.total":18584.00,"shift.sale_refund.total_cash":18584.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:47:03]process_action_free get_value [23:47:03]json_value_free [23:47:03]json_value_free done [23:47:03]process_json_proto returns [23:47:03]Send response to host [23:47:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":97540321.81,"fm.sale_refund.total":6517198.00,"fm.buy.total":0.00,"shift.sale.total":133182.78,"shift.sale.total_cash":89476.00,"shift.sale_refund.total":18584.00,"shift.sale_refund.total_cash":18584.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:47:03]free response buf [23:47:03]execute_script done [23:47:03]execute_script returns [23:47:03]free content buf [23:47:03]Sock 7.Close socket [23:47:03]Sock 7.Thread stoped [23:47:03]accept exits with 9 [23:47:03]New connection [23:47:03]New thread 3066723684 created [23:47:03]Thread 3066580324 joined [23:47:03]Waiting for new connection... [23:47:03] Sock 9.Parse request [23:47:03]Sock 9.Check first char [23:47:03]Sock 9.First char is OK [23:47:03]request: POST /json_proto HTTP/1.0 [23:47:03]Method: POST [23:47:03]URL: /json_proto [23:47:03]Method is POST - this is cgi request [23:47:03]url: /json_proto [23:47:03]query_string will be loaded in cgi processing [23:47:03]execute_cgi json_proto POST (null) [23:47:03]execute_cgi path=json_proto method=POST [23:47:03]POST find Content-Length [23:47:03]Host: 172.17.37.4:8080 [23:47:03]Content-Length: 331 [23:47:03]Content-Type: application/json [23:47:03] [23:47:03]POST finish read [23:47:03]Found Content-Length = 331 [23:47:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:47:03]execute_script... [23:47:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:47:03]POST & json_proto [23:47:03]process_json_proto [23:47:03]json parsed OK: [23:47:03]protocol is kg_v1.0 [23:47:03]action value=get_value [23:47:03]process_action get_value [23:47:03]cmd_get_value [23:47:03]process_action get_value done [23:47:03]requested_data is exist [23:47:03]produce_requested_data [23:47:03]requested_item fm.sale.total is exist - process it [23:47:03]SAM_PROTO_GetFMData [23:47:03]wFMCommunicate request_size=4 [23:47:03]MH_SAM_APDU [23:47:03]CAPDU: 80 13 03 00 [23:47:03]Write to MH i2c: E2 08 00 77 7E 80 13 03 00 00 00 00 00 74 [23:47:03]Write i2c OK [23:47:03]MH_I2C_Read... [23:47:03]OFD Sender: No OFD packet to send [23:47:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:47:04]Read from MH i2c: E2 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: E2 FD 00 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: E2 FD 00 77 7E 00 C5 04 85 04 C1 04 6E 04 04 00 6D DD 01 00 69 04 A3 00 6F 04 04 00 69 CE 01 00 B1 04 05 00 35 B8 62 45 02 70 04 05 00 34 D8 DB C0 01 72 04 04 00 01 E0 86 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D E4 C1 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BC 62 25 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 04 0F 00 00 B1 04 04 00 78 74 D8 26 70 04 04 00 78 74 D8 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 3D 20 04 EF 03 09 90 00 61 [23:47:04]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 6D DD 01 00 69 04 A3 00 6F 04 04 00 69 CE 01 00 B1 04 05 00 35 B8 62 45 02 70 04 05 00 34 D8 DB C0 01 72 04 04 00 01 E0 86 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D E4 C1 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BC 62 25 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 04 0F 00 00 B1 04 04 00 78 74 D8 26 70 04 04 00 78 74 D8 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 3D 20 04 EF 03 09 90 00 [23:47:04]wFMCommunicate OK [23:47:04]wFMCommunicate request_size=4 [23:47:04]MH_SAM_APDU [23:47:04]CAPDU: 80 17 00 00 [23:47:04]Write to MH i2c: E2 08 00 78 7E 80 17 00 00 00 00 00 00 76 [23:47:04]Write i2c OK [23:47:04]MH_I2C_Read... [23:47:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:04]Read from MH i2c: E2 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: E2 FD 00 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: E2 FD 00 78 7E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FC 03 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 83 [23:47:04]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FC 03 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:47:04]wFMCommunicate OK [23:47:04]wFMCommunicate request_size=4 [23:47:04]MH_SAM_APDU [23:47:04]CAPDU: 80 17 00 00 [23:47:04]Write to MH i2c: E2 08 00 79 7E 80 17 00 00 00 00 00 00 77 [23:47:04]Write i2c OK [23:47:04]MH_I2C_Read... [23:47:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:05]Read from MH i2c: E2 [23:47:05]MH_I2C_Read... [23:47:05]Read from MH i2c: E2 FD 00 [23:47:05]MH_I2C_Read... [23:47:05]Read from MH i2c: E2 FD 00 79 7E 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 89 [23:47:05]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:47:05]wFMCommunicate OK [23:47:05]wFMCommunicate request_size=4 [23:47:05]MH_SAM_APDU [23:47:05]CAPDU: 80 17 00 00 [23:47:05]Write to MH i2c: E2 08 00 7A 7E 80 17 00 00 00 00 00 00 78 [23:47:05]Write i2c OK [23:47:05]MH_I2C_Read... [23:47:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:05]Read from MH i2c: E2 [23:47:05]MH_I2C_Read... [23:47:05]Read from MH i2c: E2 FD 00 [23:47:05]MH_I2C_Read... [23:47:05]Read from MH i2c: E2 FD 00 7A 7E 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 04 [23:47:05]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:47:05]wFMCommunicate OK [23:47:05]wFMCommunicate request_size=4 [23:47:05]MH_SAM_APDU [23:47:05]CAPDU: 80 17 00 00 [23:47:05]Write to MH i2c: E2 08 00 7B 7E 80 17 00 00 00 00 00 00 79 [23:47:05]Write i2c OK [23:47:05]MH_I2C_Read... [23:47:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:47:06]Read from MH i2c: E2 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 E2 00 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 E2 00 7B 7E 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 57 [23:47:06]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:47:06]wFMCommunicate OK [23:47:06]SAM_PROTO_GetFMData done [23:47:06]requested_item fm.sale_refund.total is exist - process it [23:47:06]requested_item fm.buy.total is exist - process it [23:47:06]requested_item shift.sale.total is exist - process it [23:47:06]SAM_PROTO_GetShiftData [23:47:06]wFMCommunicate request_size=4 [23:47:06]MH_SAM_APDU [23:47:06]CAPDU: 80 13 02 00 [23:47:06]Write to MH i2c: E2 08 00 7C 7E 80 13 02 00 00 00 00 00 78 [23:47:06]Write i2c OK [23:47:06]MH_I2C_Read... [23:47:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:47:06]Read from MH i2c: E2 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 FD 00 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 FD 00 7C 7E 00 BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9C 00 6F 04 04 00 B6 00 00 00 B1 04 03 00 86 38 CB 70 04 03 00 90 87 88 72 04 03 00 F6 B0 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 55 96 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7F CC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 60 5B 1C 70 04 03 00 60 5B 1C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 02 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 FF [23:47:06]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9C 00 6F 04 04 00 B6 00 00 00 B1 04 03 00 86 38 CB 70 04 03 00 90 87 88 72 04 03 00 F6 B0 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 55 96 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7F CC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 60 5B 1C 70 04 03 00 60 5B 1C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 02 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:47:06]wFMCommunicate OK [23:47:06]wFMCommunicate request_size=4 [23:47:06]MH_SAM_APDU [23:47:06]CAPDU: 80 17 00 00 [23:47:06]Write to MH i2c: E2 08 00 7D 7E 80 17 00 00 00 00 00 00 7B [23:47:06]Write i2c OK [23:47:06]MH_I2C_Read... [23:47:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:07]Read from MH i2c: E2 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 FD 00 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 FD 00 7D 7E 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 40 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 A3 [23:47:07]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 40 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [23:47:07]wFMCommunicate OK [23:47:07]wFMCommunicate request_size=4 [23:47:07]MH_SAM_APDU [23:47:07]CAPDU: 80 17 00 00 [23:47:07]Write to MH i2c: E2 08 00 7E 7E 80 17 00 00 00 00 00 00 7C [23:47:07]Write i2c OK [23:47:07]MH_I2C_Read... [23:47:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:07]Read from MH i2c: E2 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 FD 00 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 FD 00 7E 7E 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 A8 [23:47:07]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [23:47:08]wFMCommunicate OK [23:47:08]wFMCommunicate request_size=4 [23:47:08]MH_SAM_APDU [23:47:08]CAPDU: 80 17 00 00 [23:47:08]Write to MH i2c: E2 08 00 7F 7E 80 17 00 00 00 00 00 00 7D [23:47:08]Write i2c OK [23:47:08]MH_I2C_Read... [23:47:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:08]Read from MH i2c: E2 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 FD 00 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 FD 00 7F 7E 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 F5 [23:47:08]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [23:47:08]wFMCommunicate OK [23:47:08]wFMCommunicate request_size=4 [23:47:08]MH_SAM_APDU [23:47:08]CAPDU: 80 17 00 00 [23:47:08]Write to MH i2c: E2 08 00 80 7E 80 17 00 00 00 00 00 00 7E [23:47:08]Write i2c OK [23:47:08]MH_I2C_Read... [23:47:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:47:08]Read from MH i2c: E2 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 D7 00 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 D7 00 80 7E 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 61 [23:47:08]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 OFD Sender: No OFD packet to send [23:47:09]00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:47:09]wFMCommunicate OK [23:47:09]SAM_PROTO_GetShiftData done [23:47:09]requested_item shift.sale.total_cash is exist - process it [23:47:09]requested_item shift.sale_refund.total is exist - process it [23:47:09]requested_item shift.sale_refund.total_cash is exist - process it [23:47:09]requested_item shift.buy.total is exist - process it [23:47:09]requested_item shift.buy.total_cash is exist - process it [23:47:09]produce_requested_data done [23:47:09]produce_requested_data return {"fm.sale.total":97540321.81,"fm.sale_refund.total":6517198.00,"fm.buy.total":0.00,"shift.sale.total":133182.78,"shift.sale.total_cash":89476.00,"shift.sale_refund.total":18584.00,"shift.sale_refund.total_cash":18584.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:47:09]process_action_free get_value [23:47:09]json_value_free [23:47:09]json_value_free done [23:47:09]process_json_proto returns [23:47:09]Send response to host [23:47:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":97540321.81,"fm.sale_refund.total":6517198.00,"fm.buy.total":0.00,"shift.sale.total":133182.78,"shift.sale.total_cash":89476.00,"shift.sale_refund.total":18584.00,"shift.sale_refund.total_cash":18584.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:47:09]free response buf [23:47:09]execute_script done [23:47:09]execute_script returns [23:47:09]free content buf [23:47:09]Sock 9.Close socket [23:47:09]Sock 9.Thread stoped [23:47:09]accept exits with 7 [23:47:09]New connection [23:47:09]New thread 3066580324 created [23:47:09]Thread 3066723684 joined [23:47:09]Waiting for new connection... [23:47:09] Sock 7.Parse request [23:47:09]Sock 7.Check first char [23:47:09]Sock 7.First char is OK [23:47:09]request: POST /json_proto HTTP/1.0 [23:47:09]Method: POST [23:47:09]URL: /json_proto [23:47:09]Method is POST - this is cgi request [23:47:09]url: /json_proto [23:47:09]query_string will be loaded in cgi processing [23:47:09]execute_cgi json_proto POST (null) [23:47:09]execute_cgi path=json_proto method=POST [23:47:09]POST find Content-Length [23:47:09]Host: 172.17.37.4:8080 [23:47:09]Content-Length: 266 [23:47:09]Content-Type: application/json [23:47:09] [23:47:09]POST finish read [23:47:09]Found Content-Length = 266 [23:47:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041E\u0440\u043E\u0437\u0431\u0430\u0435\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:09]execute_script... [23:47:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041E\u0440\u043E\u0437\u0431\u0430\u0435\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:09]POST & json_proto [23:47:09]process_json_proto [23:47:09]json parsed OK: [23:47:09]protocol is kg_v1.0 [23:47:09]action value=close_shift [23:47:09]process_action close_shift [23:47:09]cmd_close_shift [23:47:09]MH_GetDate [23:47:09]Write to MH i2c: F0 00 00 81 7E EE [23:47:09]Write i2c OK [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: F0 [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: F0 09 00 [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: F0 09 00 81 7E 00 0A 5E 46 67 B8 5A 43 67 C8 [23:47:09]GetLastDocTimeStamp 1732664792 [23:47:09]current date 1732664842 [23:47:09]FM_GetShiftState [23:47:09]SAM_PROTO_GetShiftState [23:47:09]wFMCommunicate request_size=4 [23:47:09]MH_SAM_APDU [23:47:09]CAPDU: 80 13 01 00 [23:47:09]Write to MH i2c: E2 08 00 82 7E 80 13 01 00 00 00 00 00 7D [23:47:09]Write i2c OK [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: E2 [23:47:09]MH_I2C_Read... [23:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:09]Read from MH i2c: E2 0E 00 [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: E2 0E 00 82 7E 00 09 00 01 98 11 45 67 00 00 00 00 90 00 DE [23:47:09]RAPDU: 09 00 01 98 11 45 67 00 00 00 00 90 00 [23:47:09]wFMCommunicate OK [23:47:09]SAM_PROTO_GetShiftState done [23:47:09]FM_GetShiftState done [23:47:09]KKMCreateCloseShiftDocument [23:47:09]Load OK [23:47:09]Malloc new data [23:47:09]MH_GetDate [23:47:09]Write to MH i2c: F0 00 00 83 7E F0 [23:47:09]Write i2c OK [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: F0 [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: F0 09 00 [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: F0 09 00 83 7E 00 0A 5E 46 67 B8 5A 43 67 CA [23:47:09]Malloc new data [23:47:09]Malloc new data [23:47:09]Malloc new data [23:47:09]Malloc new data [23:47:09]KKMCreateCloseShiftDocument OK [23:47:09]KKMSetCloseShiftData OK [23:47:09]ProcessDocumentItem done err = 0, tmpTLVsize=73 [23:47:09]tlvbuf is 02256C70 [23:47:09]KKMLoadAndSignCloseShiftData [23:47:09]SAM_PROTO_ProcessDocument [23:47:09]wFMCommunicate request_size=9 [23:47:09]MH_SAM_APDU [23:47:09]CAPDU: 80 15 01 00 04 05 00 49 00 [23:47:09]Write to MH i2c: E2 0C 00 84 7E 80 15 01 00 04 00 05 00 49 00 00 00 D7 [23:47:09]Write i2c OK [23:47:09]MH_I2C_Read... [23:47:09]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:47:09]Read from MH i2c: E2 [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: E2 03 00 [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: E2 03 00 84 7E 00 90 00 76 [23:47:09]RAPDU: 90 00 [23:47:09]wFMCommunicate OK [23:47:09]wFMCommunicate request_size=23 [23:47:09]MH_SAM_APDU [23:47:09]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:47:09]Write to MH i2c: E2 1A 00 85 7E 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 78 [23:47:09]Write i2c OK [23:47:09]MH_I2C_Read... [23:47:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:47:09]Read from MH i2c: E2 [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: E2 03 00 [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: E2 03 00 85 7E 00 90 00 77 [23:47:09]RAPDU: 90 00 [23:47:09]wFMCommunicate OK [23:47:09]wFMCommunicate request_size=32 [23:47:09]MH_SAM_APDU [23:47:09]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 9E D1 80 D0 BE D0 B7 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E 20 [23:47:09]Write to MH i2c: E2 23 00 86 7E 80 15 02 00 1B 00 FD 03 17 00 D0 9E D1 80 D0 BE D0 B7 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E 20 00 00 FB [23:47:09]Write i2c OK [23:47:09]MH_I2C_Read... [23:47:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:47:09]Read from MH i2c: E2 [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: E2 03 00 [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: E2 03 00 86 7E 00 90 00 78 [23:47:09]RAPDU: 90 00 [23:47:09]wFMCommunicate OK [23:47:09]wFMCommunicate request_size=13 [23:47:09]MH_SAM_APDU [23:47:09]CAPDU: 80 15 02 00 08 F4 03 04 00 0A 5E 46 67 [23:47:09]Write to MH i2c: E2 10 00 87 7E 80 15 02 00 08 00 F4 03 04 00 0A 5E 46 67 00 00 A5 [23:47:09]Write i2c OK [23:47:09]MH_I2C_Read... [23:47:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:47:09]Read from MH i2c: E2 [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: E2 03 00 [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: E2 03 00 87 7E 00 90 00 79 [23:47:09]RAPDU: 90 00 [23:47:09]wFMCommunicate OK [23:47:09]wFMCommunicate request_size=25 [23:47:09]MH_SAM_APDU [23:47:09]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 [23:47:09]Write to MH i2c: E2 1C 00 88 7E 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 00 00 E9 [23:47:09]Write i2c OK [23:47:09]MH_I2C_Read... [23:47:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:47:09]Read from MH i2c: E2 [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: E2 03 00 [23:47:09]MH_I2C_Read... [23:47:09]Read from MH i2c: E2 03 00 88 7E 00 90 00 7A [23:47:09]RAPDU: 90 00 [23:47:09]wFMCommunicate OK [23:47:09]wFMCommunicate request_size=4 [23:47:09]MH_SAM_APDU [23:47:09]CAPDU: 80 15 03 00 [23:47:09]Write to MH i2c: E2 08 00 89 7E 80 15 03 00 00 00 00 00 88 [23:47:09]Write i2c OK [23:47:09]MH_I2C_Read... [23:47:10]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:47:10]Read from MH i2c: E2 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: E2 FD 00 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: E2 FD 00 89 7E 00 FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C6 E1 01 00 0E 04 04 00 2D 02 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9C 00 6F 04 04 00 B6 00 00 00 B1 04 03 00 86 38 CB 70 04 03 00 90 87 88 72 04 03 00 F6 B0 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 55 96 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7F CC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 60 5B 1C 90 00 9A [23:47:10]RAPDU: FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C6 E1 01 00 0E 04 04 00 2D 02 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9C 00 6F 04 04 00 B6 00 00 00 B1 04 03 00 86 38 CB 70 04 03 00 90 87 88 72 04 03 00 F6 B0 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 55 96 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7F CC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 60 5B 1C 90 00 [23:47:10]wFMCommunicate OK [23:47:10]SAM_PROTO_ProcessDocument answer len = 1277 [23:47:10]SAM_PROTO_ProcessDocument remain to read = 1029 [23:47:10]wFMCommunicate request_size=4 [23:47:10]MH_SAM_APDU [23:47:10]CAPDU: 80 17 00 00 [23:47:10]Write to MH i2c: E2 08 00 8A 7E 80 17 00 00 00 00 00 00 88 [23:47:10]Write i2c OK [23:47:10]MH_I2C_Read... [23:47:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:10]Read from MH i2c: E2 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: E2 FD 00 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: E2 FD 00 8A 7E 00 70 04 03 00 60 5B 1C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 02 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 40 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 B5 [23:47:10]RAPDU: 70 04 03 00 60 5B 1C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 02 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 40 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:47:11]wFMCommunicate OK [23:47:11]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:47:11]SAM_PROTO_ProcessDocument remain to read = 779 [23:47:11]wFMCommunicate request_size=4 [23:47:11]MH_SAM_APDU [23:47:11]CAPDU: 80 17 00 00 [23:47:11]Write to MH i2c: E2 08 00 8B 7E 80 17 00 00 00 00 00 00 89 [23:47:11]Write i2c OK [23:47:11]MH_I2C_Read... [23:47:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:11]Read from MH i2c: E2 [23:47:11]MH_I2C_Read... [23:47:11]Read from MH i2c: E2 FD 00 [23:47:11]MH_I2C_Read... [23:47:11]Read from MH i2c: E2 FD 00 8B 7E 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 90 00 EF [23:47:11]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:47:11]wFMCommunicate OK [23:47:11]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:47:11]SAM_PROTO_ProcessDocument remain to read = 529 [23:47:11]wFMCommunicate request_size=4 [23:47:11]MH_SAM_APDU [23:47:11]CAPDU: 80 17 00 00 [23:47:11]Write to MH i2c: E2 08 00 8C 7E 80 17 00 00 00 00 00 00 8A [23:47:11]Write i2c OK [23:47:11]MH_I2C_Read... [23:47:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:11]Read from MH i2c: E2 [23:47:11]MH_I2C_Read... [23:47:11]Read from MH i2c: E2 FD 00 [23:47:11]MH_I2C_Read... [23:47:11]Read from MH i2c: E2 FD 00 8C 7E 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 90 00 99 [23:47:12]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 90 00 [23:47:12]wFMCommunicate OK [23:47:12]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:47:12]SAM_PROTO_ProcessDocument remain to read = 279 [23:47:12]wFMCommunicate request_size=4 [23:47:12]MH_SAM_APDU [23:47:12]CAPDU: 80 17 00 00 [23:47:12]Write to MH i2c: E2 08 00 8D 7E 80 17 00 00 00 00 00 00 8B [23:47:12]Write i2c OK [23:47:12]MH_I2C_Read... [23:47:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:12]Read from MH i2c: E2 [23:47:12]MH_I2C_Read... [23:47:12]Read from MH i2c: E2 FD 00 [23:47:12]MH_I2C_Read... [23:47:12]Read from MH i2c: E2 FD 00 8D 7E 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 C9 [23:47:12]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:47:12]wFMCommunicate OK [23:47:12]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:47:12]SAM_PROTO_ProcessDocument remain to read = 29 [23:47:12]wFMCommunicate request_size=4 [23:47:12]MH_SAM_APDU [23:47:12]CAPDU: 80 17 00 00 [23:47:12]Write to MH i2c: E2 08 00 8E 7E 80 17 00 00 00 00 00 00 8C [23:47:12]Write i2c OK [23:47:12]MH_I2C_Read... [23:47:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 29! [23:47:12]Read from MH i2c: E2 [23:47:12]MH_I2C_Read... [23:47:12]Read from MH i2c: E2 20 00 [23:47:12]MH_I2C_Read... [23:47:12]Read from MH i2c: E2 20 00 8E 7E 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 52 1F D9 3E 3E 7C 90 00 12 [23:47:12]RAPDU: 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 52 1F D9 3E 3E 7C 90 00 [23:47:13]wFMCommunicate OK [23:47:13]SAM_PROTO_ProcessDocument received (without SW) 29 bytes [23:47:13]SAM_PROTO_ProcessDocument done [23:47:13]1209 (1) - 1.0 - номер версии ФФД [23:47:13]1041 (16) - 0000000000874881 - номер ФМ [23:47:13]1040 (4) - 123334 - номер ФД [23:47:13]1038 (4) - 557 - номер смены [23:47:13]1118 (4) - 187 - количество кассовых чеков за смену [23:47:13]1111 (4) - 189 - общее количество ФД за смену [23:47:13]1194 (1206) - счетчики итогов смены [23:47:13] 1134 (4) - 187 - количество чеков со всеми признаками расчетов [23:47:13] 1129 (156) - счетчики операций «приход» [23:47:13] 1135 (4) - 182 - количество чеков по признаку расчетов [23:47:13] 1201 (3) - 133182.78 - общая итоговая сумма в чеках [23:47:13] 1136 (3) - 89476.00 - итоговая сумма в чеках наличными [23:47:13] 1138 (3) - 43706.78 - итоговая сумма в чеках безналичными [23:47:13] 1024 (123) - суммы налогов [23:47:13] 1006 (9) - суммы НДС [23:47:13] 1010 (1) - 0% - код ставки НДС [23:47:13] 1011 (0) - 0.00 - сумма НДС по ставке [23:47:13] 1006 (12) - суммы НДС [23:47:13] 1010 (1) - 12% - код ставки НДС [23:47:13] 1011 (3) - 14147.41 - сумма НДС по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 0% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (12) - суммы НСП [23:47:13] 1014 (1) - 1% - код ставки НСП [23:47:13] 1015 (3) - 1178.87 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 2% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 3% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 5% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 0,50% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 1,50% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1130 (152) - счетчики операций «возврат прихода» [23:47:13] 1135 (4) - 5 - количество чеков по признаку расчетов [23:47:13] 1201 (3) - 18584.00 - общая итоговая сумма в чеках [23:47:13] 1136 (3) - 18584.00 - итоговая сумма в чеках наличными [23:47:13] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:47:13] 1024 (122) - суммы налогов [23:47:13] 1006 (9) - суммы НДС [23:47:13] 1010 (1) - 0% - код ставки НДС [23:47:13] 1011 (0) - 0.00 - сумма НДС по ставке [23:47:13] 1006 (12) - суммы НДС [23:47:13] 1010 (1) - 12% - код ставки НДС [23:47:13] 1011 (3) - 1973.66 - сумма НДС по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 0% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (11) - суммы НСП [23:47:13] 1014 (1) - 1% - код ставки НСП [23:47:13] 1015 (2) - 164.46 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 2% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 3% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 5% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 0,50% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 1,50% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1131 (141) - счетчики операций «расход» [23:47:13] 1135 (4) - 0 - количество чеков по признаку расчетов [23:47:13] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:47:13] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:47:13] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:47:13] 1024 (117) - суммы налогов [23:47:13] 1006 (9) - суммы НДС [23:47:13] 1010 (1) - 0% - код ставки НДС [23:47:13] 1011 (0) - 0.00 - сумма НДС по ставке [23:47:13] 1006 (9) - суммы НДС [23:47:13] 1010 (1) - 12% - код ставки НДС [23:47:13] 1011 (0) - 0.00 - сумма НДС по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 0% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 1% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 2% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 3% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 5% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 0,50% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 1,50% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1132 (141) - счетчики операций «возврат расхода» [23:47:13] 1135 (4) - 0 - количество чеков по признаку расчетов [23:47:13] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:47:13] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:47:13] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:47:13] 1024 (117) - суммы налогов [23:47:13] 1006 (9) - суммы НДС [23:47:13] 1010 (1) - 0% - код ставки НДС [23:47:13] 1011 (0) - 0.00 - сумма НДС по ставке [23:47:13] 1006 (9) - суммы НДС [23:47:13] 1010 (1) - 12% - код ставки НДС [23:47:13] 1011 (0) - 0.00 - сумма НДС по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 0% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 1% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 2% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 3% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 5% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 0,50% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1007 (9) - суммы НСП [23:47:13] 1014 (1) - 1,50% - код ставки НСП [23:47:13] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:13] 1133 (588) - - счетчики коррекции - не используются [23:47:13]1077 (6) - 90296742198908 - ФПД [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1209 (04B9) [23:47:13]Malloc new data [23:47:13]Processing tag 1041 (0411) [23:47:13]Processing tag 1040 (0410) [23:47:13]Malloc new data [23:47:13]Processing tag 1038 (040E) [23:47:13]Malloc new data [23:47:13]Processing tag 1118 (045E) [23:47:13]Malloc new data [23:47:13]Processing tag 1111 (0457) [23:47:13]Malloc new data [23:47:13]Processing tag 1194 (04AA) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1134 (046E) [23:47:13]Malloc new data [23:47:13]Processing tag 1129 (0469) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1135 (046F) [23:47:13]Malloc new data [23:47:13]Processing tag 1201 (04B1) [23:47:13]Malloc new data [23:47:13]Processing tag 1136 (0470) [23:47:13]Malloc new data [23:47:13]Processing tag 1138 (0472) [23:47:13]Malloc new data [23:47:13]Processing tag 1024 (0400) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1006 (03EE) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1010 (03F2) [23:47:13]Malloc new data [23:47:13]Processing tag 1011 (03F3) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1006 (03EE) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1010 (03F2) [23:47:13]Malloc new data [23:47:13]Processing tag 1011 (03F3) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]SetTLVBufToDocument err=0 [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1130 (046A) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1135 (046F) [23:47:13]Malloc new data [23:47:13]Processing tag 1201 (04B1) [23:47:13]Malloc new data [23:47:13]Processing tag 1136 (0470) [23:47:13]Malloc new data [23:47:13]Processing tag 1138 (0472) [23:47:13]Malloc new data [23:47:13]Processing tag 1024 (0400) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1006 (03EE) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1010 (03F2) [23:47:13]Malloc new data [23:47:13]Processing tag 1011 (03F3) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1006 (03EE) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1010 (03F2) [23:47:13]Malloc new data [23:47:13]Processing tag 1011 (03F3) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]SetTLVBufToDocument err=0 [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1131 (046B) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1135 (046F) [23:47:13]Malloc new data [23:47:13]Processing tag 1201 (04B1) [23:47:13]Malloc new data [23:47:13]Processing tag 1136 (0470) [23:47:13]Malloc new data [23:47:13]Processing tag 1138 (0472) [23:47:13]Malloc new data [23:47:13]Processing tag 1024 (0400) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1006 (03EE) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1010 (03F2) [23:47:13]Malloc new data [23:47:13]Processing tag 1011 (03F3) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1006 (03EE) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1010 (03F2) [23:47:13]Malloc new data [23:47:13]Processing tag 1011 (03F3) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:13]Malloc new data [23:47:13]Processing tag 1015 (03F7) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]SetTLVBufToDocument err=0 [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1132 (046C) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1135 (046F) [23:47:13]Malloc new data [23:47:13]Processing tag 1201 (04B1) [23:47:13]Malloc new data [23:47:13]Processing tag 1136 (0470) [23:47:13]Malloc new data [23:47:13]Processing tag 1138 (0472) [23:47:13]Malloc new data [23:47:13]Processing tag 1024 (0400) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1006 (03EE) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1010 (03F2) [23:47:13]Malloc new data [23:47:13]Processing tag 1011 (03F3) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1006 (03EE) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1010 (03F2) [23:47:13]Malloc new data [23:47:13]Processing tag 1011 (03F3) [23:47:13]Malloc new data [23:47:13]SetTLVBufToDocument err=0 [23:47:13]Processing tag 1007 (03EF) [23:47:13]Load OK [23:47:13]SetTLVBufToDocument [23:47:13]Processing tag 1014 (03F6) [23:47:14]Malloc new data [23:47:14]Processing tag 1015 (03F7) [23:47:14]Malloc new data [23:47:14]SetTLVBufToDocument err=0 [23:47:14]Processing tag 1007 (03EF) [23:47:14]Load OK [23:47:14]SetTLVBufToDocument [23:47:14]Processing tag 1014 (03F6) [23:47:14]Malloc new data [23:47:14]Processing tag 1015 (03F7) [23:47:14]Malloc new data [23:47:14]SetTLVBufToDocument err=0 [23:47:14]Processing tag 1007 (03EF) [23:47:14]Load OK [23:47:14]SetTLVBufToDocument [23:47:14]Processing tag 1014 (03F6) [23:47:14]Malloc new data [23:47:14]Processing tag 1015 (03F7) [23:47:14]Malloc new data [23:47:14]SetTLVBufToDocument err=0 [23:47:14]Processing tag 1007 (03EF) [23:47:14]Load OK [23:47:14]SetTLVBufToDocument [23:47:14]Processing tag 1014 (03F6) [23:47:14]Malloc new data [23:47:14]Processing tag 1015 (03F7) [23:47:14]Malloc new data [23:47:14]SetTLVBufToDocument err=0 [23:47:14]Processing tag 1007 (03EF) [23:47:14]Load OK [23:47:14]SetTLVBufToDocument [23:47:14]Processing tag 1014 (03F6) [23:47:14]Malloc new data [23:47:14]Processing tag 1015 (03F7) [23:47:14]Malloc new data [23:47:14]SetTLVBufToDocument err=0 [23:47:14]Processing tag 1007 (03EF) [23:47:14]Load OK [23:47:14]SetTLVBufToDocument [23:47:14]Processing tag 1014 (03F6) [23:47:14]Malloc new data [23:47:14]Processing tag 1015 (03F7) [23:47:14]Malloc new data [23:47:14]SetTLVBufToDocument err=0 [23:47:14]Processing tag 1007 (03EF) [23:47:14]Load OK [23:47:14]SetTLVBufToDocument [23:47:14]Processing tag 1014 (03F6) [23:47:14]Malloc new data [23:47:14]Processing tag 1015 (03F7) [23:47:14]Malloc new data [23:47:14]SetTLVBufToDocument err=0 [23:47:14]SetTLVBufToDocument err=0 [23:47:14]SetTLVBufToDocument err=0 [23:47:14]Processing tag 1133 (046D) [23:47:14]Malloc new data [23:47:14]SetTLVBufToDocument err=0 [23:47:14]Processing tag 1077 (0435) [23:47:14]Malloc new data [23:47:14]SetTLVBufToDocument err=0 [23:47:14]Malloc new data [23:47:14]SAM_PROTO_GetFMData [23:47:14]wFMCommunicate request_size=4 [23:47:14]MH_SAM_APDU [23:47:14]CAPDU: 80 13 03 00 [23:47:14]Write to MH i2c: E2 08 00 8F 7E 80 13 03 00 00 00 00 00 8C [23:47:14]Write i2c OK [23:47:14]MH_I2C_Read... [23:47:14]OFD Sender: No OFD packet to send [23:47:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:47:14]Read from MH i2c: E2 [23:47:14]MH_I2C_Read... [23:47:14]Read from MH i2c: E2 FD 00 [23:47:14]MH_I2C_Read... [23:47:14]Read from MH i2c: E2 FD 00 8F 7E 00 C5 04 85 04 C1 04 6E 04 04 00 6D DD 01 00 69 04 A3 00 6F 04 04 00 69 CE 01 00 B1 04 05 00 35 B8 62 45 02 70 04 05 00 34 D8 DB C0 01 72 04 04 00 01 E0 86 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D E4 C1 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BC 62 25 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 04 0F 00 00 B1 04 04 00 78 74 D8 26 70 04 04 00 78 74 D8 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 3D 20 04 EF 03 09 90 00 79 [23:47:14]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 6D DD 01 00 69 04 A3 00 6F 04 04 00 69 CE 01 00 B1 04 05 00 35 B8 62 45 02 70 04 05 00 34 D8 DB C0 01 72 04 04 00 01 E0 86 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D E4 C1 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BC 62 25 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 04 0F 00 00 B1 04 04 00 78 74 D8 26 70 04 04 00 78 74 D8 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 3D 20 04 EF 03 09 90 00 [23:47:14]wFMCommunicate OK [23:47:14]wFMCommunicate request_size=4 [23:47:14]MH_SAM_APDU [23:47:14]CAPDU: 80 17 00 00 [23:47:14]Write to MH i2c: E2 08 00 90 7E 80 17 00 00 00 00 00 00 8E [23:47:14]Write i2c OK [23:47:14]MH_I2C_Read... [23:47:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:15]Read from MH i2c: E2 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 FD 00 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 FD 00 90 7E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FC 03 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 9B [23:47:15]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FC 03 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:47:15]wFMCommunicate OK [23:47:15]wFMCommunicate request_size=4 [23:47:15]MH_SAM_APDU [23:47:15]CAPDU: 80 17 00 00 [23:47:15]Write to MH i2c: E2 08 00 91 7E 80 17 00 00 00 00 00 00 8F [23:47:15]Write i2c OK [23:47:15]MH_I2C_Read... [23:47:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:15]Read from MH i2c: E2 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 FD 00 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 FD 00 91 7E 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A1 [23:47:15]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:47:16]wFMCommunicate OK [23:47:16]wFMCommunicate request_size=4 [23:47:16]MH_SAM_APDU [23:47:16]CAPDU: 80 17 00 00 [23:47:16]Write to MH i2c: E2 08 00 92 7E 80 17 00 00 00 00 00 00 90 [23:47:16]Write i2c OK [23:47:16]MH_I2C_Read... [23:47:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:16]Read from MH i2c: E2 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 FD 00 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 FD 00 92 7E 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 1C [23:47:16]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:47:16]wFMCommunicate OK [23:47:16]wFMCommunicate request_size=4 [23:47:16]MH_SAM_APDU [23:47:16]CAPDU: 80 17 00 00 [23:47:16]Write to MH i2c: E2 08 00 93 7E 80 17 00 00 00 00 00 00 91 [23:47:16]Write i2c OK [23:47:16]MH_I2C_Read... [23:47:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:47:17]Read from MH i2c: E2 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: E2 E2 00 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: E2 E2 00 93 7E 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6F [23:47:17]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:47:17]wFMCommunicate OK [23:47:17]SAM_PROTO_GetFMData done [23:47:17]Malloc new data [23:47:17]Malloc new data [23:47:17]Malloc new data [23:47:17]Malloc new data [23:47:17]KKMLoadAndSignCloseShiftData err=0 [23:47:17]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Орозбаева А. 26.11.2024 23:47 Смена: 557 РНМ: 0000000000092681 ЗНМ: 0300000033 СНО: Общий режим Чеков за смену: 187 ФД за смену: 189 Всего чеков: 187 ИТОГИ ПРИХОД Чеков: 182 Общий итог: 133182.78 Итого наличными: 89476.00 Итого безнал.: 43706.78 НДС 0% : 0.00 НДС 12% : 14147.41 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1178.87 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 5 Общий итог: 18584.00 Итого наличными: 18584.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 1973.66 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 164.46 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 70892.00 НС Приход: 97540321.81 НС Возвр.Прихода: 6517198.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 123334 ФМ: 0000000000874881 ФПД: 90296742198908 [23:47:17]StoreToDocumentArchive [23:47:17]shift 557 fd 123334 [23:47:17]save to /storage/0557/doc_00123334 [23:47:17]save last doc name /storage/0557/doc_00123334 to /storage/kkm_last_doc_name [23:47:17]save OK [23:47:17]Clear old archive folders... [23:47:17]Remove dir /storage/0522 [23:47:17]opendir ok [23:47:17]file . [23:47:17]file .. [23:47:17]file doc_1732664800 [23:47:17]remove file /storage/0522/doc_1732664800 [23:47:17]remove dir /storage/0522 [23:47:17]NVStorageSaveData kkm_registers [23:47:17]File name is /storage/kkm_registers [23:47:17]Write 24 bytes [23:47:17]NVStorageSaveData done [23:47:17]NVStorageSaveData kkm_registers [23:47:17]File name is /storage/kkm_registers [23:47:17]Write 24 bytes [23:47:17]NVStorageSaveData done [23:47:17]ProcessDocumentItem done err = 0, tmpTLVsize=1389 [23:47:17]tlvbuf is 022A8D90 [23:47:17]SAM_PROTO_ClearQueue [23:47:17]wFMCommunicate request_size=4 [23:47:17]MH_SAM_APDU [23:47:17]CAPDU: 80 09 00 00 [23:47:17]Write to MH i2c: E2 08 00 94 7E 80 09 00 00 00 00 00 00 84 [23:47:17]Write i2c OK [23:47:17]MH_I2C_Read... [23:47:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:17]Read from MH i2c: E2 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: E2 03 00 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: E2 03 00 94 7E 00 90 00 86 [23:47:17]RAPDU: 90 00 [23:47:17]wFMCommunicate OK [23:47:17]SAM_PROTO_ClearQueue done [23:47:17]KKMCreateOFDPacket [23:47:17]OFDProtocolAddRootSTLVToBuf [23:47:17]FM_MakeSignedData [23:47:17]FM_MakeSignedData [23:47:17]SAM_PROTO_SignData [23:47:17]wFMCommunicate request_size=4 [23:47:17]MH_SAM_APDU [23:47:17]CAPDU: 80 0D 01 02 [23:47:17]Write to MH i2c: E2 08 00 95 7E 80 0D 01 02 00 00 00 00 8C [23:47:17]Write i2c OK [23:47:17]MH_I2C_Read... [23:47:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:17]Read from MH i2c: E2 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: E2 03 00 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: E2 03 00 95 7E 00 90 00 87 [23:47:17]RAPDU: 90 00 [23:47:17]wFMCommunicate OK [23:47:17]wFMCommunicate request_size=255 [23:47:17]MH_SAM_APDU [23:47:17]CAPDU: 80 0D 02 02 FA 05 00 6D 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9E D1 80 D0 BE D0 B7 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 0A 5E 46 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 AA 04 DD 04 6E 04 04 00 BB 00 00 00 69 04 A3 00 6F 04 04 00 B6 00 00 00 B1 04 03 00 86 38 CB 70 04 03 00 90 87 88 72 04 03 00 F6 B0 42 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 55 96 15 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 [23:47:17]Write to MH i2c: E2 02 01 96 7E 80 0D 02 02 FA 00 05 00 6D 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9E D1 80 D0 BE D0 B7 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 0A 5E 46 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 AA 04 DD 04 6E 04 04 00 BB 00 00 00 69 04 A3 00 6F 04 04 00 B6 00 00 00 B1 04 03 00 86 38 CB 70 04 03 00 90 87 88 72 04 03 00 F6 B0 42 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 55 96 15 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 00 00 74 [23:47:17]Write i2c OK [23:47:17]MH_I2C_Read... [23:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:18]Read from MH i2c: E2 [23:47:18]MH_I2C_Read... [23:47:18]Read from MH i2c: E2 03 00 [23:47:18]MH_I2C_Read... [23:47:18]Read from MH i2c: E2 03 00 96 7E 00 90 00 88 [23:47:18]RAPDU: 90 00 [23:47:18]wFMCommunicate OK [23:47:18]wFMCommunicate request_size=255 [23:47:18]MH_SAM_APDU [23:47:18]CAPDU: 80 0D 02 02 FA F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7F CC 01 6A 04 A0 00 6F 04 04 00 05 00 00 00 B1 04 03 00 60 5B 1C 70 04 03 00 60 5B 1C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 02 03 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 40 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 [23:47:18]Write to MH i2c: E2 02 01 97 7E 80 0D 02 02 FA 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7F CC 01 6A 04 A0 00 6F 04 04 00 05 00 00 00 B1 04 03 00 60 5B 1C 70 04 03 00 60 5B 1C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 02 03 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 40 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 00 00 8E [23:47:18]Write i2c OK [23:47:18]MH_I2C_Read... [23:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:18]Read from MH i2c: E2 [23:47:18]MH_I2C_Read... [23:47:18]Read from MH i2c: E2 03 00 [23:47:18]MH_I2C_Read... [23:47:18]Read from MH i2c: E2 03 00 97 7E 00 90 00 89 [23:47:18]RAPDU: 90 00 [23:47:18]wFMCommunicate OK [23:47:18]wFMCommunicate request_size=255 [23:47:18]MH_SAM_APDU [23:47:18]CAPDU: 80 0D 02 02 FA 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF [23:47:19]Write to MH i2c: E2 02 01 98 7E 80 0D 02 02 FA 00 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF OFD Sender: No OFD packet to send [23:47:19]03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 00 00 48 [23:47:19]Write i2c OK [23:47:19]MH_I2C_Read... [23:47:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:19]Read from MH i2c: E2 [23:47:19]MH_I2C_Read... [23:47:19]Read from MH i2c: E2 03 00 [23:47:19]MH_I2C_Read... [23:47:19]Read from MH i2c: E2 03 00 98 7E 00 90 00 8A [23:47:19]RAPDU: 90 00 [23:47:19]wFMCommunicate OK [23:47:19]wFMCommunicate request_size=255 [23:47:19]MH_SAM_APDU [23:47:19]CAPDU: 80 0D 02 02 FA 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 [23:47:19]Write to MH i2c: E2 02 01 99 7E 80 0D 02 02 FA 00 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 00 00 68 [23:47:20]Write i2c OK [23:47:20]MH_I2C_Read... [23:47:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:20]Read from MH i2c: E2 [23:47:20]MH_I2C_Read... [23:47:20]Read from MH i2c: E2 03 00 [23:47:20]MH_I2C_Read... [23:47:20]Read from MH i2c: E2 03 00 99 7E 00 90 00 8B [23:47:20]RAPDU: 90 00 [23:47:20]wFMCommunicate OK [23:47:20]wFMCommunicate request_size=255 [23:47:20]MH_SAM_APDU [23:47:20]CAPDU: 80 0D 02 02 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 [23:47:20]Write to MH i2c: E2 02 01 9A 7E 80 0D 02 02 FA 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 00 22 [23:47:20]Write i2c OK [23:47:20]MH_I2C_Read... [23:47:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:20]Read from MH i2c: E2 [23:47:20]MH_I2C_Read... [23:47:20]Read from MH i2c: E2 03 00 [23:47:20]MH_I2C_Read... [23:47:20]Read from MH i2c: E2 03 00 9A 7E 00 90 00 8C [23:47:21]RAPDU: 90 00 [23:47:21]wFMCommunicate OK [23:47:21]wFMCommunicate request_size=148 [23:47:21]MH_SAM_APDU [23:47:21]CAPDU: 80 0D 02 02 8F 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 C6 E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 35 04 06 00 52 1F D9 3E 3E 7C [23:47:21]Write to MH i2c: E2 97 00 9B 7E 80 0D 02 02 8F 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 C6 E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 35 04 06 00 52 1F D9 3E 3E 7C 00 00 C0 [23:47:21]Write i2c OK [23:47:21]MH_I2C_Read... [23:47:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:21]Read from MH i2c: E2 [23:47:21]MH_I2C_Read... [23:47:21]Read from MH i2c: E2 03 00 [23:47:21]MH_I2C_Read... [23:47:21]Read from MH i2c: E2 03 00 9B 7E 00 90 00 8D [23:47:21]RAPDU: 90 00 [23:47:21]wFMCommunicate OK [23:47:21]wFMCommunicate request_size=4 [23:47:21]MH_SAM_APDU [23:47:21]CAPDU: 80 0D 03 02 [23:47:21]Write to MH i2c: E2 08 00 9C 7E 80 0D 03 02 00 00 00 00 95 [23:47:21]Write i2c OK [23:47:21]MH_I2C_Read... [23:47:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:21]Read from MH i2c: E2 [23:47:21]MH_I2C_Read... [23:47:21]Read from MH i2c: E2 0B 00 [23:47:21]MH_I2C_Read... [23:47:21]Read from MH i2c: E2 0B 00 9C 7E 00 40 28 B0 29 C5 36 E6 17 90 00 CF [23:47:21]RAPDU: 40 28 B0 29 C5 36 E6 17 90 00 [23:47:21]wFMCommunicate OK [23:47:21]SAM_PROTO_SignData done [23:47:21]FM_MakeSignedData done [23:47:21]CreateOFDProtocolMessage [23:47:21]wFMCommunicate request_size=4 [23:47:21]MH_SAM_APDU [23:47:21]CAPDU: 80 11 00 00 [23:47:21]Write to MH i2c: E2 08 00 9D 7E 80 11 00 00 00 00 00 00 95 [23:47:21]Write i2c OK [23:47:21]MH_I2C_Read... [23:47:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:21]Read from MH i2c: E2 [23:47:21]MH_I2C_Read... [23:47:21]Read from MH i2c: E2 17 00 [23:47:21]MH_I2C_Read... [23:47:21]Read from MH i2c: E2 17 00 9D 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EC [23:47:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [23:47:21]wFMCommunicate OK [23:47:21]CreateOFDProtocolMessage done [23:47:21]OFDSenderStorePacket 123334 [23:47:21]StoreOFDPacket docnum=123334 [23:47:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 81 05 00 00 7C 56 79 05 92 80 5A 05 01 00 05 00 6D 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9E D1 80 D0 BE D0 B7 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 0A 5E 46 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 AA 04 DD 04 6E 04 04 00 BB 00 00 00 69 04 A3 00 6F 04 04 00 B6 00 00 00 B1 04 03 00 86 38 CB 70 04 03 00 90 87 88 72 04 03 00 F6 B0 42 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 55 96 15 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7F CC 01 6A 04 A0 00 6F 04 04 00 05 00 00 00 B1 04 03 00 60 5B 1C 70 04 03 00 60 5B 1C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 02 03 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 40 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 C6 E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 35 04 06 00 52 1F D9 3E 3E 7C 40 28 B0 29 C5 36 E6 17 [23:47:21]CheckFolder [23:47:21]dirname=/storage/ofd_packets [23:47:21]CheckFolder done [23:47:21]ProducePacketName [23:47:21]name=ofd_packets/00123334 [23:47:21]NVStorageSaveData ofd_packets/00123334 [23:47:21]File name is /storage/ofd_packets/00123334 [23:47:21]Write 1439 bytes [23:47:21]NVStorageSaveData done [23:47:21]OFDSenderStorePacket done [23:47:21]KKMCreateOFDPacket done [23:47:21]NVStorageSaveData kkm_last_timestamp [23:47:21]File name is /storage/kkm_last_timestamp [23:47:21]Write 4 bytes [23:47:21]NVStorageSaveData done [23:47:21]ExternCall_PrintAddStr [23:47:21]wPrintStart [23:47:21]Write to MH i2c: 01 00 00 9E 7E 1C [23:47:22]Write i2c OK [23:47:22]MH_I2C_Read... [23:47:22]Read from MH i2c: 01 [23:47:22]MH_I2C_Read... [23:47:22]Read from MH i2c: 01 07 00 [23:47:22]MH_I2C_Read... [23:47:22]Read from MH i2c: 01 07 00 9E 7E 00 00 00 00 00 FF 0F 31 [23:47:22]RasterBufferAndPrint [23:47:22]line Отчет о закрытии смены [23:47:22]line ФФД: 1.0 [23:47:22]line ИНН: 02508201610067 [23:47:22]line Кассир: Орозбаева А. [23:47:22]line 26.11.2024 23:47 [23:47:22]line Смена: 557 [23:47:22]line РНМ: 0000000000092681 [23:47:22]line ЗНМ: 0300000033 [23:47:22]line СНО: Общий режим [23:47:22]line Чеков за смену: 187 [23:47:22]line ФД за смену: 189 [23:47:22]line Всего чеков: 187 [23:47:22]line ИТОГИ ПРИХОД [23:47:22]line Чеков: 182 [23:47:22]line Общий итог: 133182.78 [23:47:22]line Итого наличными: 89476.00 [23:47:22]line Итого безнал.: 43706.78 [23:47:22]line НДС 0% : 0.00 [23:47:22]line НДС 12% : 14147.41 [23:47:22]line НСП 0% : 0.00 [23:47:22]line НСП 1,50% : 0.00 [23:47:22]line НСП 0,50% : 0.00 [23:47:22]line НСП 5% : 0.00 [23:47:22]line НСП 3% : 0.00 [23:47:22]line НСП 2% : 0.00 [23:47:22]line НСП 1% : 1178.87 [23:47:22]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:47:22]line Чеков: 5 [23:47:22]line Общий итог: 18584.00 [23:47:22]line Итого наличными: 18584.00 [23:47:22]line Итого безнал.: 0.00 [23:47:22]line НДС 0% : 0.00 [23:47:22]line НДС 12% : 1973.66 [23:47:22]line НСП 0% : 0.00 [23:47:22]line НСП 1,50% : 0.00 [23:47:22]OFD Sender: Processing packet 123334 [packets to send 7, broken 6] [23:47:22]ProducePacketName [23:47:22]name=ofd_packets/00123334 [23:47:22]OFD Sender: To server: pG, [23:47:22]CommunicateWithHost lk.salyk.kg:30040 [23:47:22]ConnectInit lk.salyk.kg [23:47:22]line НСП 0,50% : 0.00 [23:47:22]line НСП 5% : 0.00 [23:47:22]line НСП 3% : 0.00 [23:47:22]line НСП 2% : 0.00 [23:47:22]line НСП 1% : 164.46 [23:47:22]line ИТОГИ РАСХОД [23:47:22]line Чеков: 0 [23:47:22]line Общий итог: 0.00 [23:47:22]line Итого наличными: 0.00 [23:47:22]line Итого безнал.: 0.00 [23:47:22]line НДС 0% : 0.00 [23:47:22]line НДС 12% : 0.00 [23:47:22]line НСП 0% : 0.00 [23:47:22]line НСП 1,50% : 0.00 [23:47:22]line НСП 0,50% : 0.00 [23:47:22]line НСП 5% : 0.00 [23:47:22]line НСП 3% : 0.00 [23:47:22]line НСП 2% : 0.00 [23:47:22]line НСП 1% : 0.00 [23:47:22]line ИТОГИ ВОЗВРАТ РАСХОДА [23:47:22]line Чеков: 0 [23:47:22]line Общий итог: 0.00 [23:47:22]line Итого наличными: 0.00 [23:47:22]line Итого безнал.: 0.00 [23:47:22]line НДС 0% : 0.00 [23:47:22]line НДС 12% : 0.00 [23:47:22]line НСП 0% : 0.00 [23:47:22]line НСП 1,50% : 0.00 [23:47:22]line НСП 0,50% : 0.00 [23:47:22]line НСП 5% : 0.00 [23:47:22]line НСП 3% : 0.00 [23:47:22]line НСП 2% : 0.00 [23:47:22]line НСП 1% : 0.00 [23:47:22]line Сумма внесений: 0.00 [23:47:22]line Сумма выплат: 0.00 [23:47:22]line Нал. в кассе: 70892.00 [23:47:22]line НС Приход: 97540321.81 [23:47:22]line НС Возвр.Прихода: 6517198.00 [23:47:22]line НС Расход: 0.00 [23:47:22]line НС Возвр.Расхода: 0.00 [23:47:22]line ФД: 123334 [23:47:22]line ФМ: 0000000000874881 [23:47:22]line ФПД: 90296742198908 [23:47:22]written 0, free lines is 4095 [23:47:22]Connected sock=10 [23:47:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 81 05 00 00 7C 56 79 05 92 80 5A 05 01 00 05 00 6D 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9E D1 80 D0 BE D0 B7 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 0A 5E 46 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 AA 04 DD 04 6E 04 04 00 BB 00 00 00 69 04 A3 00 6F 04 04 00 B6 00 00 00 B1 04 03 00 86 38 CB 70 04 03 00 90 87 88 72 04 03 00 F6 B0 42 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 55 96 15 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7F CC 01 6A 04 A0 00 6F 04 04 00 05 00 00 00 B1 04 03 00 60 5B 1C 70 04 03 00 60 5B 1C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 02 03 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 40 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 Write to MH i2c: 6D 01 04 00 4C 00 02 EE 78 7E 04 6C 04 [23:47:23]00 00 Write i2c OK [23:47:23]00 MH_I2C_Read... [23:47:23]00 Read from MH i2c: 00 01 79 04 8D 00 6F 04 04 00 00 00 00 00 [23:47:23]B1 MH_I2C_Read... [23:47:23]04 Read from MH i2c: 00 01 00 07 70 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF [23:47:23]03 MH_I2C_Read... [23:47:23]09 Read from MH i2c: 00 01 F6 07 03 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 EE 00 7E 06 00 F7 00 03 00 00 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 00 B1 BC 04 09 00 38 00 [23:47:23]70 RasterBufferAndPrint [23:47:23]04 00 00 72 04 00 00 00 04 75 00 EE 03 09 line [23:47:23]00 line [23:47:23]F2 line [23:47:23]03 line [23:47:23]01 line [23:47:23]00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 written 0, free lines is 2682 [23:47:23]03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 MH_Cut [23:47:23]00 Write to MH i2c: 00 D1 EF 01 03 00 09 F5 00 7E F6 01 03 45 01 [23:47:23]00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 Write i2c OK [23:47:23]03 MH_I2C_Read... [23:47:23]00 Read from MH i2c: 00 D1 EF [23:47:23]03 MH_I2C_Read... [23:47:23]09 00 F6 03 01 00 04 F7 03 00 Read from MH i2c: 00 D1 EF 01 03 00 09 [23:47:23]00 MH_I2C_Read... [23:47:23]F6 03 01 00 05 F7 03 00 00 EF 03 09 00 Read from MH i2c: F6 D1 03 01 01 00 00 F5 06 7E F7 00 44 03 [23:47:23]00 Write to MH i2c: 00 01 7A 00 04 00 8D F6 00 7E 6F 74 04 [23:47:23]04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 Write i2c OK [23:47:23]00 MH_I2C_Read... [23:47:23]00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 C6 E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 35 04 06 00 52 1F D9 3E 3E 7C 40 28 B0 29 C5 36 E6 17 [23:47:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 A1 CE 47 00 19 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C6 E1 01 00 F4 03 04 00 D8 09 46 67 B6 04 01 00 00 82 19 F8 AA F6 2B 54 0F [23:47:24]CommunicateWithHost err = 0 [23:47:24]CheckOFDResponse [23:47:24]1017 (14) - 77093643461234 [23:47:24]1041 (16) - 0000000000874881 [23:47:24]1040 (4) - 123334 [23:47:24]1012 (4) - 26.11.2024 17:48 [23:47:24]1206 (1) - 0 [23:47:24]OFD Sender: Remove packet 123334 [23:47:24]ProducePacketName [23:47:24]name=ofd_packets/00123334 [23:47:24]NVStorageDeleteData [23:47:25]OFD Sender: No OFD packet to send [23:47:25]*** Cut start [23:47:25]*** Partial cut [23:47:25]*** CUTSNS_PIN = 1 [23:47:25]*** CUTSNS_PIN = 0 [23:47:25]*** Brake cut motor [23:47:25]Read from MH i2c: 01 [23:47:25]MH_I2C_Read... [23:47:25]*** Stop cut motor [23:47:25]*** Cut end [23:47:25]Read from MH i2c: 01 07 00 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: 01 07 00 F6 7E 00 00 00 00 00 FF 0F 89 [23:47:25]process_action close_shift done [23:47:25]requested_data is exist [23:47:25]produce_requested_data [23:47:25]requested_item fd.num is exist - process it [23:47:25]SAM_PROTO_GetFieldsCounters [23:47:25]wFMCommunicate request_size=4 [23:47:25]MH_SAM_APDU [23:47:25]CAPDU: 80 13 00 00 [23:47:25]Write to MH i2c: E2 08 00 F7 7E 80 13 00 00 00 00 00 00 F1 [23:47:25]Write i2c OK [23:47:25]MH_I2C_Read... [23:47:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:25]Read from MH i2c: E2 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: E2 62 00 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: E2 62 00 F7 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C6 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [23:47:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C6 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:26]wFMCommunicate OK [23:47:26]SAM_PROTO_GetFieldsCounters done [23:47:26]requested_item shift.num is exist - process it [23:47:26]requested_item shift.opened is exist - process it [23:47:26]req_shift_opened [23:47:26]FM_GetShiftState [23:47:26]SAM_PROTO_GetShiftState [23:47:26]wFMCommunicate request_size=4 [23:47:26]MH_SAM_APDU [23:47:26]CAPDU: 80 13 01 00 [23:47:26]Write to MH i2c: E2 08 00 F8 7E 80 13 01 00 00 00 00 00 F3 [23:47:26]Write i2c OK [23:47:26]MH_I2C_Read... [23:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:26]Read from MH i2c: E2 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: E2 0E 00 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: E2 0E 00 F8 7E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FE [23:47:26]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:47:26]wFMCommunicate OK [23:47:26]SAM_PROTO_GetShiftState done [23:47:26]FM_GetShiftState done [23:47:26]req_shift_opened done [23:47:26]requested_item shift.open_date is exist - process it [23:47:26]req_shift_open_date [23:47:26]FM_GetShiftState [23:47:26]SAM_PROTO_GetShiftState [23:47:26]wFMCommunicate request_size=4 [23:47:26]MH_SAM_APDU [23:47:26]CAPDU: 80 13 01 00 [23:47:26]Write to MH i2c: E2 08 00 F9 7E 80 13 01 00 00 00 00 00 F4 [23:47:26]Write i2c OK [23:47:26]MH_I2C_Read... [23:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:26]Read from MH i2c: E2 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: E2 0E 00 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: E2 0E 00 F9 7E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FF [23:47:26]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:47:26]wFMCommunicate OK [23:47:26]SAM_PROTO_GetShiftState done [23:47:26]FM_GetShiftState done [23:47:26]req_shift_open_date done [23:47:26]produce_requested_data done [23:47:26]produce_requested_data return {"fd.num":123334,"shift.num":557,"shift.opened":0,"shift.open_date":0} [23:47:26]process_action_free close_shift [23:47:26]json_value_free [23:47:26]json_value_free done [23:47:26]process_json_proto returns [23:47:26]Send response to host [23:47:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":123334,"shift.num":557,"shift.opened":0,"shift.open_date":0}}} [23:47:26]free response buf [23:47:26]execute_script done [23:47:26]execute_script returns [23:47:26]free content buf [23:47:26]Sock 7.Close socket [23:47:26]Sock 7.Thread stoped [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:05]OFD Sender: No OFD packet to send [23:48:10]OFD Sender: No OFD packet to send [23:48:15]OFD Sender: No OFD packet to send [23:48:20]OFD Sender: No OFD packet to send [23:48:25]OFD Sender: No OFD packet to send [23:48:30]OFD Sender: No OFD packet to send [23:48:35]OFD Sender: No OFD packet to send [23:48:40]OFD Sender: No OFD packet to send [23:48:45]OFD Sender: No OFD packet to send [23:48:50]OFD Sender: No OFD packet to send [23:48:55]OFD Sender: No OFD packet to send [23:49:00]OFD Sender: No OFD packet to send [23:49:05]OFD Sender: No OFD packet to send [23:49:10]OFD Sender: No OFD packet to send [23:49:15]OFD Sender: No OFD packet to send [23:49:20]OFD Sender: No OFD packet to send [23:49:25]OFD Sender: No OFD packet to send [23:49:30]OFD Sender: No OFD packet to send [23:49:35]OFD Sender: No OFD packet to send [23:49:40]OFD Sender: No OFD packet to send [23:49:45]OFD Sender: No OFD packet to send [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:10]OFD Sender: No OFD packet to send [23:50:15]OFD Sender: No OFD packet to send [23:50:20]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [23:50:30]OFD Sender: No OFD packet to send [23:50:35]OFD Sender: No OFD packet to send [23:50:40]OFD Sender: No OFD packet to send [23:50:45]OFD Sender: No OFD packet to send [23:50:50]OFD Sender: No OFD packet to send [23:50:55]OFD Sender: No OFD packet to send [23:51:00]OFD Sender: No OFD packet to send [23:51:05]OFD Sender: No OFD packet to send [23:51:10]OFD Sender: No OFD packet to send [23:51:15]OFD Sender: No OFD packet to send [23:51:20]OFD Sender: No OFD packet to send [23:51:25]OFD Sender: No OFD packet to send [23:51:30]OFD Sender: No OFD packet to send [23:51:35]OFD Sender: No OFD packet to send [23:51:40]OFD Sender: No OFD packet to send [23:51:45]OFD Sender: No OFD packet to send [23:51:50]OFD Sender: No OFD packet to send [23:51:55]OFD Sender: No OFD packet to send [23:52:00]OFD Sender: No OFD packet to send [23:52:05]OFD Sender: No OFD packet to send [23:52:10]OFD Sender: No OFD packet to send [23:52:15]OFD Sender: No OFD packet to send [23:52:20]OFD Sender: No OFD packet to send [23:52:25]OFD Sender: No OFD packet to send [23:52:30]OFD Sender: No OFD packet to send [23:52:35]OFD Sender: No OFD packet to send [23:52:40]OFD Sender: No OFD packet to send [23:52:45]OFD Sender: No OFD packet to send [23:52:50]OFD Sender: No OFD packet to send [23:52:55]OFD Sender: No OFD packet to send [23:53:00]OFD Sender: No OFD packet to send [23:53:05]OFD Sender: No OFD packet to send [23:53:10]OFD Sender: No OFD packet to send [23:53:15]OFD Sender: No OFD packet to send [23:53:20]OFD Sender: No OFD packet to send [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:15]OFD Sender: No OFD packet to send [23:57:20]OFD Sender: No OFD packet to send [23:57:25]OFD Sender: No OFD packet to send [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:40]OFD Sender: No OFD packet to send [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:20]OFD Sender: No OFD packet to send [23:59:25]OFD Sender: No OFD packet to send [23:59:30]OFD Sender: No OFD packet to send [23:59:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02:00]OFD Sender: No OFD packet to send [00:02:05]OFD Sender: No OFD packet to send [00:02:10]OFD Sender: No OFD packet to send [00:02:15]OFD Sender: No OFD packet to send [00:02:20]OFD Sender: No OFD packet to send [00:02:25]OFD Sender: No OFD packet to send [00:02:30]OFD Sender: No OFD packet to send [00:02:35]OFD Sender: No OFD packet to send [00:02:40]OFD Sender: No OFD packet to send [00:02:45]OFD Sender: No OFD packet to send [00:02:50]OFD Sender: No OFD packet to send [00:02:55]OFD Sender: No OFD packet to send [00:03:00]OFD Sender: No OFD packet to send [00:03:05]OFD Sender: No OFD packet to send [00:03:10]OFD Sender: No OFD packet to send [00:03:15]OFD Sender: No OFD packet to send [00:03:20]OFD Sender: No OFD packet to send [00:03:25]OFD Sender: No OFD packet to send [00:03:30]OFD Sender: No OFD packet to send [00:03:35]OFD Sender: No OFD packet to send [00:03:40]OFD Sender: No OFD packet to send [00:03:45]accept exits with 9 [00:03:45]New connection [00:03:45]New thread 3066723684 created [00:03:45]Thread 3066580324 joined [00:03:45]Waiting for new connection... [00:03:45] Sock 9.Parse request [00:03:45]Sock 9.Check first char [00:03:45]Sock 9.First char is OK [00:03:45]request: POST /json_proto HTTP/1.0 [00:03:45]Method: POST [00:03:45]URL: /json_proto [00:03:45]Method is POST - this is cgi request [00:03:45]url: /json_proto [00:03:45]query_string will be loaded in cgi processing [00:03:45]execute_cgi json_proto POST (null) [00:03:45]execute_cgi path=json_proto method=POST [00:03:45]POST find Content-Length [00:03:45]Host: 172.17.37.4:8080 [00:03:45]Content-Length: 215 [00:03:45]Content-Type: application/json [00:03:45] [00:03:45]POST finish read [00:03:45]Found Content-Length = 215 [00:03:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:45]execute_script... [00:03:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:45]POST & json_proto [00:03:45]process_json_proto [00:03:45]json parsed OK: [00:03:45]protocol is kg_v1.0 [00:03:45]action value=get_value [00:03:45]process_action get_value [00:03:45]cmd_get_value [00:03:45]process_action get_value done [00:03:45]requested_data is exist [00:03:45]produce_requested_data [00:03:45]requested_item kkm.sn is exist - process it [00:03:45]requested_item kkm.ver is exist - process it [00:03:45]requested_item fm.sn is exist - process it [00:03:45]wFMCommunicate request_size=4 [00:03:45]MH_SAM_APDU [00:03:45]CAPDU: 80 11 00 00 [00:03:45]Write to MH i2c: E2 08 00 FA 7E 80 11 00 00 00 00 00 00 F2 [00:03:45]Write i2c OK [00:03:45]MH_I2C_Read... [00:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:45]Read from MH i2c: E2 [00:03:45]MH_I2C_Read... [00:03:45]Read from MH i2c: E2 17 00 [00:03:45]MH_I2C_Read... [00:03:45]Read from MH i2c: E2 17 00 FA 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 49 [00:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [00:03:45]wFMCommunicate OK [00:03:45]requested_item fd.num is exist - process it [00:03:45]SAM_PROTO_GetFieldsCounters [00:03:45]wFMCommunicate request_size=4 [00:03:45]MH_SAM_APDU [00:03:45]CAPDU: 80 13 00 00 [00:03:45]Write to MH i2c: E2 08 00 FB 7E 80 13 00 00 00 00 00 00 F5 [00:03:45]Write i2c OK [00:03:45]MH_I2C_Read... [00:03:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:45]Read from MH i2c: E2 [00:03:45]MH_I2C_Read... [00:03:45]Read from MH i2c: E2 62 00 [00:03:45]MH_I2C_Read... [00:03:45]Read from MH i2c: E2 62 00 FB 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C6 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [00:03:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C6 E1 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:45]wFMCommunicate OK [00:03:45]SAM_PROTO_GetFieldsCounters done [00:03:45]requested_item shift.num is exist - process it [00:03:45]requested_item shift.opened is exist - process it [00:03:45]req_shift_opened [00:03:45]FM_GetShiftState [00:03:45]SAM_PROTO_GetShiftState [00:03:45]wFMCommunicate request_size=4 [00:03:45]MH_SAM_APDU [00:03:45]CAPDU: 80 13 01 00 [00:03:45]Write to MH i2c: E2 08 00 FC 7E 80 13 01 00 00 00 00 00 F7 [00:03:45]Write i2c OK [00:03:45]MH_I2C_Read... [00:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:45]Read from MH i2c: E2 [00:03:45]MH_I2C_Read... [00:03:45]Read from MH i2c: E2 0E 00 [00:03:45]MH_I2C_Read... [00:03:45]Read from MH i2c: E2 0E 00 FC 7E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 02 [00:03:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:45]wFMCommunicate OK [00:03:45]SAM_PROTO_GetShiftState done [00:03:45]FM_GetShiftState done [00:03:45]req_shift_opened done [00:03:45]requested_item shift.open_date is exist - process it [00:03:45]req_shift_open_date [00:03:45]FM_GetShiftState [00:03:45]SAM_PROTO_GetShiftState [00:03:45]wFMCommunicate request_size=4 [00:03:45]MH_SAM_APDU [00:03:45]CAPDU: 80 13 01 00 [00:03:45]Write to MH i2c: E2 08 00 FD 7E 80 13 01 00 00 00 00 00 F8 [00:03:45]Write i2c OK [00:03:45]MH_I2C_Read... [00:03:45]OFD Sender: No OFD packet to send [00:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:45]Read from MH i2c: E2 [00:03:45]MH_I2C_Read... [00:03:45]Read from MH i2c: E2 0E 00 [00:03:45]MH_I2C_Read... [00:03:45]Read from MH i2c: E2 0E 00 FD 7E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 03 [00:03:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:45]wFMCommunicate OK [00:03:45]SAM_PROTO_GetShiftState done [00:03:45]FM_GetShiftState done [00:03:45]req_shift_open_date done [00:03:45]produce_requested_data done [00:03:45]produce_requested_data return {"kkm.sn":"0300000033","kkm.ver":"001","fm.sn":"0000000000874881","fd.num":123334,"shift.num":557,"shift.opened":0,"shift.open_date":0} [00:03:45]process_action_free get_value [00:03:45]json_value_free [00:03:45]json_value_free done [00:03:45]process_json_proto returns [00:03:45]Send response to host [00:03:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000033","kkm.ver":"001","fm.sn":"0000000000874881","fd.num":123334,"shift.num":557,"shift.opened":0,"shift.open_date":0}}} [00:03:45]free response buf [00:03:45]execute_script done [00:03:45]execute_script returns [00:03:45]free content buf [00:03:45]Sock 9.Close socket [00:03:45]Sock 9.Thread stoped [00:03:45]accept exits with 7 [00:03:45]New connection [00:03:45]New thread 3066580324 created [00:03:45]Thread 3066723684 joined [00:03:45]Waiting for new connection... [00:03:45] Sock 7.Parse request [00:03:45]Sock 7.Check first char [00:03:45]Sock 7.First char is OK [00:03:45]request: POST /json_proto HTTP/1.0 [00:03:45]Method: POST [00:03:45]URL: /json_proto [00:03:45]Method is POST - this is cgi request [00:03:45]url: /json_proto [00:03:45]query_string will be loaded in cgi processing [00:03:45]execute_cgi json_proto POST (null) [00:03:45]execute_cgi path=json_proto method=POST [00:03:45]POST find Content-Length [00:03:45]Host: 172.17.37.4:8080 [00:03:45]Content-Length: 331 [00:03:45]Content-Type: application/json [00:03:45] [00:03:45]POST finish read [00:03:45]Found Content-Length = 331 [00:03:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:45]execute_script... [00:03:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:46]POST & json_proto [00:03:46]process_json_proto [00:03:46]json parsed OK: [00:03:46]protocol is kg_v1.0 [00:03:46]action value=get_value [00:03:46]process_action get_value [00:03:46]cmd_get_value [00:03:46]process_action get_value done [00:03:46]requested_data is exist [00:03:46]produce_requested_data [00:03:46]requested_item fm.sale.total is exist - process it [00:03:46]SAM_PROTO_GetFMData [00:03:46]wFMCommunicate request_size=4 [00:03:46]MH_SAM_APDU [00:03:46]CAPDU: 80 13 03 00 [00:03:46]Write to MH i2c: E2 08 00 FE 7E 80 13 03 00 00 00 00 00 FB [00:03:46]Write i2c OK [00:03:46]MH_I2C_Read... [00:03:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:46]Read from MH i2c: E2 [00:03:46]MH_I2C_Read... [00:03:46]Read from MH i2c: E2 FD 00 [00:03:46]MH_I2C_Read... [00:03:46]Read from MH i2c: E2 FD 00 FE 7E 00 C5 04 85 04 C1 04 6E 04 04 00 6D DD 01 00 69 04 A3 00 6F 04 04 00 69 CE 01 00 B1 04 05 00 35 B8 62 45 02 70 04 05 00 34 D8 DB C0 01 72 04 04 00 01 E0 86 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D E4 C1 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BC 62 25 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 04 0F 00 00 B1 04 04 00 78 74 D8 26 70 04 04 00 78 74 D8 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 3D 20 04 EF 03 09 90 00 E8 [00:03:46]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 6D DD 01 00 69 04 A3 00 6F 04 04 00 69 CE 01 00 B1 04 05 00 35 B8 62 45 02 70 04 05 00 34 D8 DB C0 01 72 04 04 00 01 E0 86 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D E4 C1 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BC 62 25 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 04 0F 00 00 B1 04 04 00 78 74 D8 26 70 04 04 00 78 74 D8 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 3D 20 04 EF 03 09 90 00 [00:03:46]wFMCommunicate OK [00:03:46]wFMCommunicate request_size=4 [00:03:46]MH_SAM_APDU [00:03:46]CAPDU: 80 17 00 00 [00:03:46]Write to MH i2c: E2 08 00 FF 7E 80 17 00 00 00 00 00 00 FD [00:03:46]Write i2c OK [00:03:46]MH_I2C_Read... [00:03:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:46]Read from MH i2c: E2 [00:03:46]MH_I2C_Read... [00:03:46]Read from MH i2c: E2 FD 00 [00:03:46]MH_I2C_Read... [00:03:46]Read from MH i2c: E2 FD 00 FF 7E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FC 03 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 0A [00:03:46]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FC 03 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:03:46]wFMCommunicate OK [00:03:46]wFMCommunicate request_size=4 [00:03:46]MH_SAM_APDU [00:03:46]CAPDU: 80 17 00 00 [00:03:46]Write to MH i2c: E2 08 00 00 7F 80 17 00 00 00 00 00 00 FF [00:03:46]Write i2c OK [00:03:46]MH_I2C_Read... [00:03:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:47]Read from MH i2c: E2 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 FD 00 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 FD 00 00 7F 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 11 [00:03:47]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:03:47]wFMCommunicate OK [00:03:47]wFMCommunicate request_size=4 [00:03:47]MH_SAM_APDU [00:03:47]CAPDU: 80 17 00 00 [00:03:47]Write to MH i2c: E2 08 00 01 7F 80 17 00 00 00 00 00 00 00 [00:03:47]Write i2c OK [00:03:47]MH_I2C_Read... [00:03:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:47]Read from MH i2c: E2 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 FD 00 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 FD 00 01 7F 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 8C [00:03:47]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:03:47]wFMCommunicate OK [00:03:47]wFMCommunicate request_size=4 [00:03:47]MH_SAM_APDU [00:03:47]CAPDU: 80 17 00 00 [00:03:47]Write to MH i2c: E2 08 00 02 7F 80 17 00 00 00 00 00 00 01 [00:03:47]Write i2c OK [00:03:47]MH_I2C_Read... [00:03:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:03:47]Read from MH i2c: E2 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 E2 00 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 E2 00 02 7F 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DF [00:03:47]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:47]wFMCommunicate OK [00:03:47]SAM_PROTO_GetFMData done [00:03:47]requested_item fm.sale_refund.total is exist - process it [00:03:47]requested_item fm.buy.total is exist - process it [00:03:47]requested_item shift.sale.total is exist - process it [00:03:47]SAM_PROTO_GetShiftData [00:03:47]wFMCommunicate request_size=4 [00:03:47]MH_SAM_APDU [00:03:47]CAPDU: 80 13 02 00 [00:03:47]Write to MH i2c: E2 08 00 03 7F 80 13 02 00 00 00 00 00 00 [00:03:47]Write i2c OK [00:03:47]MH_I2C_Read... [00:03:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:48]Read from MH i2c: E2 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 FD 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 FD 00 03 7F 00 BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9C 00 6F 04 04 00 B6 00 00 00 B1 04 03 00 86 38 CB 70 04 03 00 90 87 88 72 04 03 00 F6 B0 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 55 96 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7F CC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 60 5B 1C 70 04 03 00 60 5B 1C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 02 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 87 [00:03:48]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 BB 00 00 00 69 04 9C 00 6F 04 04 00 B6 00 00 00 B1 04 03 00 86 38 CB 70 04 03 00 90 87 88 72 04 03 00 F6 B0 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 55 96 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7F CC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 60 5B 1C 70 04 03 00 60 5B 1C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 02 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:03:48]wFMCommunicate OK [00:03:48]wFMCommunicate request_size=4 [00:03:48]MH_SAM_APDU [00:03:48]CAPDU: 80 17 00 00 [00:03:48]Write to MH i2c: E2 08 00 04 7F 80 17 00 00 00 00 00 00 03 [00:03:48]Write i2c OK [00:03:48]MH_I2C_Read... [00:03:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:48]Read from MH i2c: E2 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 FD 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 FD 00 04 7F 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 40 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 2B [00:03:48]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 40 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [00:03:48]wFMCommunicate OK [00:03:48]wFMCommunicate request_size=4 [00:03:48]MH_SAM_APDU [00:03:48]CAPDU: 80 17 00 00 [00:03:48]Write to MH i2c: E2 08 00 05 7F 80 17 00 00 00 00 00 00 04 [00:03:48]Write i2c OK [00:03:48]MH_I2C_Read... [00:03:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:48]Read from MH i2c: E2 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 FD 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 FD 00 05 7F 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 30 [00:03:48]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [00:03:48]wFMCommunicate OK [00:03:48]wFMCommunicate request_size=4 [00:03:48]MH_SAM_APDU [00:03:48]CAPDU: 80 17 00 00 [00:03:48]Write to MH i2c: E2 08 00 06 7F 80 17 00 00 00 00 00 00 05 [00:03:48]Write i2c OK [00:03:48]MH_I2C_Read... [00:03:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:48]Read from MH i2c: E2 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 FD 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 FD 00 06 7F 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 7D [00:03:49]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [00:03:49]wFMCommunicate OK [00:03:49]wFMCommunicate request_size=4 [00:03:49]MH_SAM_APDU [00:03:49]CAPDU: 80 17 00 00 [00:03:49]Write to MH i2c: E2 08 00 07 7F 80 17 00 00 00 00 00 00 06 [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:03:49]Read from MH i2c: E2 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 D7 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 D7 00 07 7F 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E9 [00:03:49]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:49]wFMCommunicate OK [00:03:49]SAM_PROTO_GetShiftData done [00:03:49]requested_item shift.sale.total_cash is exist - process it [00:03:49]requested_item shift.sale_refund.total is exist - process it [00:03:49]requested_item shift.sale_refund.total_cash is exist - process it [00:03:49]requested_item shift.buy.total is exist - process it [00:03:49]requested_item shift.buy.total_cash is exist - process it [00:03:49]produce_requested_data done [00:03:49]produce_requested_data return {"fm.sale.total":97540321.81,"fm.sale_refund.total":6517198.00,"fm.buy.total":0.00,"shift.sale.total":133182.78,"shift.sale.total_cash":89476.00,"shift.sale_refund.total":18584.00,"shift.sale_refund.total_cash":18584.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:03:49]process_action_free get_value [00:03:49]json_value_free [00:03:49]json_value_free done [00:03:49]process_json_proto returns [00:03:49]Send response to host [00:03:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":97540321.81,"fm.sale_refund.total":6517198.00,"fm.buy.total":0.00,"shift.sale.total":133182.78,"shift.sale.total_cash":89476.00,"shift.sale_refund.total":18584.00,"shift.sale_refund.total_cash":18584.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:03:49]free response buf [00:03:49]execute_script done [00:03:49]execute_script returns [00:03:49]free content buf [00:03:49]Sock 7.Close socket [00:03:49]Sock 7.Thread stoped [00:03:49]accept exits with 9 [00:03:49]New connection [00:03:49]New thread 3066723684 created [00:03:49]Thread 3066580324 joined [00:03:49]Waiting for new connection... [00:03:49] Sock 9.Parse request [00:03:49]Sock 9.Check first char [00:03:49]Sock 9.First char is OK [00:03:49]request: POST /json_proto HTTP/1.0 [00:03:49]Method: POST [00:03:49]URL: /json_proto [00:03:49]Method is POST - this is cgi request [00:03:49]url: /json_proto [00:03:49]query_string will be loaded in cgi processing [00:03:49]execute_cgi json_proto POST (null) [00:03:49]execute_cgi path=json_proto method=POST [00:03:49]POST find Content-Length [00:03:49]Host: 172.17.37.4:8080 [00:03:49]Content-Length: 247 [00:03:49]Content-Type: application/json [00:03:49] [00:03:49]POST finish read [00:03:49]Found Content-Length = 247 [00:03:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0443\u043B\u043E\u0432\u0430 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:49]execute_script... [00:03:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0443\u043B\u043E\u0432\u0430 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:49]POST & json_proto [00:03:49]process_json_proto [00:03:49]json parsed OK: [00:03:49]protocol is kg_v1.0 [00:03:49]action value=open_shift [00:03:49]process_action open_shift [00:03:49]cmd_open_shift [00:03:49]MH_GetDate [00:03:49]Write to MH i2c: F0 00 00 08 7F 76 [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: F0 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: F0 09 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: F0 09 00 08 7F 00 F2 61 46 67 B8 5A 43 67 3B [00:03:49]GetLastDocTimeStamp 1732664842 [00:03:49]current date 1732665842 [00:03:49]FM_GetShiftState [00:03:49]SAM_PROTO_GetShiftState [00:03:49]wFMCommunicate request_size=4 [00:03:49]MH_SAM_APDU [00:03:49]CAPDU: 80 13 01 00 [00:03:49]Write to MH i2c: E2 08 00 09 7F 80 13 01 00 00 00 00 00 05 [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:49]Read from MH i2c: E2 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 0E 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 0E 00 09 7F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 10 [00:03:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:49]wFMCommunicate OK [00:03:49]SAM_PROTO_GetShiftState done [00:03:49]FM_GetShiftState done [00:03:49]KKMCreateOpenShiftDocument [00:03:49]Load OK [00:03:49]Malloc new data [00:03:49]MH_GetDate [00:03:49]Write to MH i2c: F0 00 00 0A 7F 78 [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: F0 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: F0 09 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: F0 09 00 0A 7F 00 F2 61 46 67 B8 5A 43 67 3D [00:03:49]Malloc new data [00:03:49]KKMCreateOpenShiftDocument OK [00:03:49]KKMSetOpenShiftData OK [00:03:49]ProcessDocumentItem done err = 0, tmpTLVsize=200 [00:03:49]tlvbuf is 01F21DA0 [00:03:49]KKMLoadAndSignOpenShiftData [00:03:49]SAM_PROTO_ProcessDocument [00:03:49]wFMCommunicate request_size=9 [00:03:49]MH_SAM_APDU [00:03:49]CAPDU: 80 15 01 00 04 02 00 C8 00 [00:03:49]Write to MH i2c: E2 0C 00 0B 7F 80 15 01 00 04 00 02 00 C8 00 00 00 DB [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:03:49]Read from MH i2c: E2 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 0B 7F 00 90 00 FE [00:03:49]RAPDU: 90 00 [00:03:49]wFMCommunicate OK [00:03:49]wFMCommunicate request_size=23 [00:03:49]MH_SAM_APDU [00:03:49]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:03:49]Write to MH i2c: E2 1A 00 0C 7F 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 00 [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:49]Read from MH i2c: E2 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 0C 7F 00 90 00 FF [00:03:49]RAPDU: 90 00 [00:03:49]wFMCommunicate OK [00:03:49]wFMCommunicate request_size=26 [00:03:49]MH_SAM_APDU [00:03:49]CAPDU: 80 15 02 00 15 FD 03 11 00 D0 9A D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 96 2E 20 [00:03:49]Write to MH i2c: E2 1D 00 0D 7F 80 15 02 00 15 00 FD 03 11 00 D0 9A D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 96 2E 20 00 00 F4 [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:49]Read from MH i2c: E2 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 0D 7F 00 90 00 00 [00:03:49]RAPDU: 90 00 [00:03:49]wFMCommunicate OK [00:03:49]wFMCommunicate request_size=93 [00:03:49]MH_SAM_APDU [00:03:49]CAPDU: 80 15 02 00 58 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D1 83 D0 BB D0 B0 D0 BD 2D D0 A1 D0 BE D0 B3 D0 BE D1 82 D1 82 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 36 35 2C 20 34 32 2E 36 37 35 30 30 39 2C 20 37 37 2E 33 30 30 37 30 39 [00:03:49]Write to MH i2c: E2 60 00 0E 7F 80 15 02 00 58 00 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D1 83 D0 BB D0 B0 D0 BD 2D D0 A1 D0 BE D0 B3 D0 BE D1 82 D1 82 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 36 35 2C 20 34 32 2E 36 37 35 30 30 39 2C 20 37 37 2E 33 30 30 37 30 39 00 00 3F [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:49]Read from MH i2c: E2 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 0E 7F 00 90 00 01 [00:03:49]RAPDU: 90 00 [00:03:49]wFMCommunicate OK [00:03:49]wFMCommunicate request_size=50 [00:03:49]MH_SAM_APDU [00:03:49]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:03:49]Write to MH i2c: E2 35 00 0F 7F 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 87 [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:49]Read from MH i2c: E2 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 0F 7F 00 90 00 02 [00:03:49]RAPDU: 90 00 [00:03:49]wFMCommunicate OK [00:03:49]wFMCommunicate request_size=13 [00:03:49]MH_SAM_APDU [00:03:49]CAPDU: 80 15 02 00 08 F4 03 04 00 F2 61 46 67 [00:03:49]Write to MH i2c: E2 10 00 10 7F 80 15 02 00 08 00 F4 03 04 00 F2 61 46 67 00 00 1A [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:50]Read from MH i2c: E2 [00:03:50]MH_I2C_Read... [00:03:50]Read from MH i2c: E2 03 00 [00:03:50]MH_I2C_Read... [00:03:50]Read from MH i2c: E2 03 00 10 7F 00 90 00 03 [00:03:50]RAPDU: 90 00 [00:03:50]wFMCommunicate OK [00:03:50]wFMCommunicate request_size=25 [00:03:50]MH_SAM_APDU [00:03:50]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 [00:03:50]Write to MH i2c: E2 1C 00 11 7F 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 00 00 73 [00:03:50]Write i2c OK [00:03:50]MH_I2C_Read... [00:03:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:50]Read from MH i2c: E2 [00:03:50]MH_I2C_Read... [00:03:50]Read from MH i2c: E2 03 00 [00:03:50]MH_I2C_Read... [00:03:50]Read from MH i2c: E2 03 00 11 7F 00 90 00 04 [00:03:50]RAPDU: 90 00 [00:03:50]wFMCommunicate OK [00:03:50]wFMCommunicate request_size=4 [00:03:50]MH_SAM_APDU [00:03:50]CAPDU: 80 15 03 00 [00:03:50]Write to MH i2c: E2 08 00 12 7F 80 15 03 00 00 00 00 00 12 [00:03:50]Write i2c OK [00:03:50]MH_I2C_Read... [00:03:50]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:03:50]Read from MH i2c: E2 [00:03:50]MH_I2C_Read... [00:03:50]Read from MH i2c: E2 38 00 [00:03:50]MH_I2C_Read... [00:03:50]Read from MH i2c: E2 38 00 12 7F 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C7 E1 01 00 0E 04 04 00 2E 02 00 00 35 04 06 00 72 5E 66 9B CD 00 90 00 59 [00:03:50]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C7 E1 01 00 0E 04 04 00 2E 02 00 00 35 04 06 00 72 5E 66 9B CD 00 90 00 [00:03:50]wFMCommunicate OK [00:03:50]SAM_PROTO_ProcessDocument answer len = 51 [00:03:50]SAM_PROTO_ProcessDocument done [00:03:50]SetTLVBufToDocument [00:03:50]Processing tag 1209 (04B9) [00:03:50]Malloc new data [00:03:50]Processing tag 1041 (0411) [00:03:50]Processing tag 1040 (0410) [00:03:50]Malloc new data [00:03:50]Processing tag 1038 (040E) [00:03:50]Malloc new data [00:03:50]Processing tag 1077 (0435) [00:03:50]Malloc new data [00:03:50]SetTLVBufToDocument err=0 [00:03:50]KKMLoadAndSignOpenShiftData store KKM data [00:03:50]KKMLoadAndSignOpenShiftData err=0 [00:03:50]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Кулова Ж. Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 Место: АЗС № 64 "Партнер Нефть" 27.11.2024 00:04 Смена: 558 РНМ: 0000000000092681 ЗНМ: 0300000033 ФД: 123335 ФМ: 0000000000874881 ФПД: 125749773978880 [00:03:50]StoreToDocumentArchive [00:03:50]shift 558 fd 123335 [00:03:50]Create dir for shift 0558 [00:03:50]save to /storage/0558/doc_00123335 [00:03:50]save last doc name /storage/0558/doc_00123335 to /storage/kkm_last_doc_name [00:03:50]save OK [00:03:50]Clear old archive folders... [00:03:50]Remove dir /storage/0557 [00:03:50]opendir ok [00:03:50]file . [00:03:50]file .. [00:03:50]file doc_00123146 [00:03:50]remove file /storage/0557/doc_00123146 [00:03:50]file doc_00123147 [00:03:50]remove file /storage/0557/doc_00123147 [00:03:50]file doc_00123148 [00:03:50]remove file /storage/0557/doc_00123148 [00:03:50]file doc_00123149 [00:03:50]remove file /storage/0557/doc_00123149 [00:03:50]file doc_00123150 [00:03:50]remove file /storage/0557/doc_00123150 [00:03:50]file doc_00123151 [00:03:50]remove file /storage/0557/doc_00123151 [00:03:50]file doc_00123152 [00:03:50]remove file /storage/0557/doc_00123152 [00:03:50]file doc_00123153 [00:03:50]remove file /storage/0557/doc_00123153 [00:03:50]file doc_00123154 [00:03:50]remove file /storage/0557/doc_00123154 [00:03:50]file doc_00123155 [00:03:50]remove file /storage/0557/doc_00123155 [00:03:50]file doc_00123156 [00:03:50]remove file /storage/0557/doc_00123156 [00:03:50]file doc_00123157 [00:03:50]remove file /storage/0557/doc_00123157 [00:03:50]file doc_00123158 [00:03:50]remove file /storage/0557/doc_00123158 [00:03:50]file doc_00123159 [00:03:50]remove file /storage/0557/doc_00123159 [00:03:50]file doc_00123160 [00:03:50]remove file /storage/0557/doc_00123160 [00:03:50]file doc_00123161 [00:03:50]remove file /storage/0557/doc_00123161 [00:03:50]file doc_00123162 [00:03:50]remove file /storage/0557/doc_00123162 [00:03:50]file doc_00123163 [00:03:50]remove file /storage/0557/doc_00123163 [00:03:50]file doc_00123164 [00:03:50]remove file /storage/0557/doc_00123164 [00:03:50]file doc_00123165 [00:03:50]remove file /storage/0557/doc_00123165 [00:03:50]file doc_00123166 [00:03:50]remove file /storage/0557/doc_00123166 [00:03:50]file doc_00123167 [00:03:50]remove file /storage/0557/doc_00123167 [00:03:50]file doc_00123168 [00:03:50]remove file /storage/0557/doc_00123168 [00:03:50]file doc_00123169 [00:03:50]remove file /storage/0557/doc_00123169 [00:03:50]file doc_00123170 [00:03:50]remove file /storage/0557/doc_00123170 [00:03:50]file doc_00123171 [00:03:50]remove file /storage/0557/doc_00123171 [00:03:50]file doc_00123172 [00:03:50]remove file /storage/0557/doc_00123172 [00:03:50]file doc_00123173 [00:03:50]remove file /storage/0557/doc_00123173 [00:03:50]file doc_00123174 [00:03:50]remove file /storage/0557/doc_00123174 [00:03:50]file doc_00123175 [00:03:50]remove file /storage/0557/doc_00123175 [00:03:50]file doc_00123176 [00:03:50]remove file /storage/0557/doc_00123176 [00:03:50]file doc_00123177 [00:03:50]remove file /storage/0557/doc_00123177 [00:03:50]file doc_00123178 [00:03:50]remove file /storage/0557/doc_00123178 [00:03:50]file doc_00123179 [00:03:50]remove file /storage/0557/doc_00123179 [00:03:50]file doc_00123180 [00:03:50]remove file /storage/0557/doc_00123180 [00:03:50]file doc_00123181 [00:03:50]remove file /storage/0557/doc_00123181 [00:03:50]file doc_00123182 [00:03:50]remove file /storage/0557/doc_00123182 [00:03:50]file doc_00123183 [00:03:50]remove file /storage/0557/doc_00123183 [00:03:50]file doc_00123184 [00:03:50]remove file /storage/0557/doc_00123184 [00:03:50]file doc_00123185 [00:03:50]remove file /storage/0557/doc_00123185 [00:03:50]file doc_00123186 [00:03:50]remove file /storage/0557/doc_00123186 [00:03:50]file doc_00123187 [00:03:50]remove file /storage/0557/doc_00123187 [00:03:50]file doc_00123188 [00:03:50]remove file /storage/0557/doc_00123188 [00:03:50]file doc_00123189 [00:03:50]remove file /storage/0557/doc_00123189 [00:03:50]file doc_00123190 [00:03:50]remove file /storage/0557/doc_00123190 [00:03:50]file doc_00123191 [00:03:50]remove file /storage/0557/doc_00123191 [00:03:50]file doc_00123192 [00:03:50]remove file /storage/0557/doc_00123192 [00:03:50]file doc_00123193 [00:03:50]remove file /storage/0557/doc_00123193 [00:03:50]file doc_00123194 [00:03:50]remove file /storage/0557/doc_00123194 [00:03:50]file doc_00123195 [00:03:50]remove file /storage/0557/doc_00123195 [00:03:50]file doc_00123196 [00:03:50]remove file /storage/0557/doc_00123196 [00:03:50]file doc_00123197 [00:03:50]remove file /storage/0557/doc_00123197 [00:03:50]file doc_00123198 [00:03:50]remove file /storage/0557/doc_00123198 [00:03:50]file doc_00123199 [00:03:50]remove file /storage/0557/doc_00123199 [00:03:50]file doc_00123200 [00:03:50]remove file /storage/0557/doc_00123200 [00:03:50]file doc_00123201 [00:03:50]remove file /storage/0557/doc_00123201 [00:03:50]file doc_00123202 [00:03:50]remove file /storage/0557/doc_00123202 [00:03:50]file doc_00123203 [00:03:50]remove file /storage/0557/doc_00123203 [00:03:50]file doc_00123204 [00:03:50]remove file /storage/0557/doc_00123204 [00:03:50]file doc_00123205 [00:03:50]remove file /storage/0557/doc_00123205 [00:03:50]file doc_00123206 [00:03:50]remove file /storage/0557/doc_00123206 [00:03:50]file doc_00123207 [00:03:50]remove file /storage/0557/doc_00123207 [00:03:50]file doc_00123208 [00:03:50]remove file /storage/0557/doc_00123208 [00:03:50]file doc_00123209 [00:03:50]remove file /storage/0557/doc_00123209 [00:03:50]file doc_00123210 [00:03:50]remove file /storage/0557/doc_00123210 [00:03:50]file doc_00123211 [00:03:50]remove file /storage/0557/doc_00123211 [00:03:50]file doc_00123212 [00:03:50]remove file /storage/0557/doc_00123212 [00:03:50]file doc_00123213 [00:03:50]remove file /storage/0557/doc_00123213 [00:03:50]file doc_00123214 [00:03:50]remove file /storage/0557/doc_00123214 [00:03:50]file doc_00123215 [00:03:50]remove file /storage/0557/doc_00123215 [00:03:50]file doc_00123216 [00:03:50]remove file /storage/0557/doc_00123216 [00:03:50]file doc_00123217 [00:03:50]remove file /storage/0557/doc_00123217 [00:03:50]file doc_00123218 [00:03:50]remove file /storage/0557/doc_00123218 [00:03:50]file doc_00123219 [00:03:50]remove file /storage/0557/doc_00123219 [00:03:50]file doc_00123220 [00:03:50]remove file /storage/0557/doc_00123220 [00:03:50]file doc_00123221 [00:03:50]remove file /storage/0557/doc_00123221 [00:03:50]file doc_00123222 [00:03:50]remove file /storage/0557/doc_00123222 [00:03:50]file doc_00123223 [00:03:50]remove file /storage/0557/doc_00123223 [00:03:50]file doc_00123224 [00:03:50]remove file /storage/0557/doc_00123224 [00:03:50]file doc_00123225 [00:03:50]remove file /storage/0557/doc_00123225 [00:03:50]file doc_00123226 [00:03:50]remove file /storage/0557/doc_00123226 [00:03:50]file doc_00123227 [00:03:50]remove file /storage/0557/doc_00123227 [00:03:50]file doc_00123228 [00:03:50]remove file /storage/0557/doc_00123228 [00:03:50]file doc_00123229 [00:03:50]remove file /storage/0557/doc_00123229 [00:03:50]file doc_00123230 [00:03:50]remove file /storage/0557/doc_00123230 [00:03:50]file doc_00123231 [00:03:50]remove file /storage/0557/doc_00123231 [00:03:50]file doc_00123232 [00:03:50]remove file /storage/0557/doc_00123232 [00:03:50]file doc_00123233 [00:03:50]remove file /storage/0557/doc_00123233 [00:03:50]file doc_00123234 [00:03:50]remove file /storage/0557/doc_00123234 [00:03:50]file doc_00123235 [00:03:50]remove file /storage/0557/doc_00123235 [00:03:50]file doc_00123236 [00:03:50]remove file /storage/0557/doc_00123236 [00:03:50]file doc_00123237 [00:03:50]remove file /storage/0557/doc_00123237 [00:03:50]file doc_00123238 [00:03:50]remove file /storage/0557/doc_00123238 [00:03:50]file doc_00123239 [00:03:50]remove file /storage/0557/doc_00123239 [00:03:50]file doc_00123240 [00:03:50]remove file /storage/0557/doc_00123240 [00:03:50]file doc_00123241 [00:03:50]remove file /storage/0557/doc_00123241 [00:03:50]file doc_00123242 [00:03:50]remove file /storage/0557/doc_00123242 [00:03:50]file doc_00123243 [00:03:50]remove file /storage/0557/doc_00123243 [00:03:50]file doc_00123244 [00:03:50]remove file /storage/0557/doc_00123244 [00:03:50]file doc_00123245 [00:03:50]remove file /storage/0557/doc_00123245 [00:03:50]file doc_00123246 [00:03:50]remove file /storage/0557/doc_00123246 [00:03:50]file doc_00123247 [00:03:50]remove file /storage/0557/doc_00123247 [00:03:50]file doc_00123248 [00:03:50]remove file /storage/0557/doc_00123248 [00:03:50]file doc_00123249 [00:03:50]remove file /storage/0557/doc_00123249 [00:03:50]file doc_00123250 [00:03:50]remove file /storage/0557/doc_00123250 [00:03:50]file doc_00123251 [00:03:50]remove file /storage/0557/doc_00123251 [00:03:50]file doc_00123252 [00:03:50]remove file /storage/0557/doc_00123252 [00:03:50]file doc_00123253 [00:03:50]remove file /storage/0557/doc_00123253 [00:03:50]file doc_00123254 [00:03:50]remove file /storage/0557/doc_00123254 [00:03:50]file doc_00123255 [00:03:50]remove file /storage/0557/doc_00123255 [00:03:50]file doc_00123256 [00:03:50]remove file /storage/0557/doc_00123256 [00:03:50]file doc_00123257 [00:03:50]remove file /storage/0557/doc_00123257 [00:03:50]file doc_00123258 [00:03:50]remove file /storage/0557/doc_00123258 [00:03:50]file doc_00123259 [00:03:50]remove file /storage/0557/doc_00123259 [00:03:50]file doc_00123260 [00:03:50]remove file /storage/0557/doc_00123260 [00:03:50]file doc_00123261 [00:03:50]remove file /storage/0557/doc_00123261 [00:03:50]file doc_00123262 [00:03:50]remove file /storage/0557/doc_00123262 [00:03:50]file doc_00123263 [00:03:50]remove file /storage/0557/doc_00123263 [00:03:50]file doc_00123264 [00:03:50]remove file /storage/0557/doc_00123264 [00:03:50]file doc_00123265 [00:03:50]remove file /storage/0557/doc_00123265 [00:03:50]file doc_00123266 [00:03:50]remove file /storage/0557/doc_00123266 [00:03:50]file doc_00123267 [00:03:50]remove file /storage/0557/doc_00123267 [00:03:50]file doc_00123268 [00:03:50]remove file /storage/0557/doc_00123268 [00:03:50]file doc_00123269 [00:03:50]remove file /storage/0557/doc_00123269 [00:03:50]file doc_00123270 [00:03:50]remove file /storage/0557/doc_00123270 [00:03:50]file doc_00123271 [00:03:50]remove file /storage/0557/doc_00123271 [00:03:50]OFD Sender: No OFD packet to send [00:03:50]file doc_00123272 [00:03:50]remove file /storage/0557/doc_00123272 [00:03:50]file doc_00123273 [00:03:50]remove file /storage/0557/doc_00123273 [00:03:50]file doc_00123274 [00:03:50]remove file /storage/0557/doc_00123274 [00:03:50]file doc_00123275 [00:03:50]remove file /storage/0557/doc_00123275 [00:03:50]file doc_00123276 [00:03:50]remove file /storage/0557/doc_00123276 [00:03:50]file doc_00123277 [00:03:50]remove file /storage/0557/doc_00123277 [00:03:50]file doc_00123278 [00:03:50]remove file /storage/0557/doc_00123278 [00:03:50]file doc_00123279 [00:03:50]remove file /storage/0557/doc_00123279 [00:03:50]file doc_00123280 [00:03:50]remove file /storage/0557/doc_00123280 [00:03:50]file doc_00123281 [00:03:50]remove file /storage/0557/doc_00123281 [00:03:50]file doc_00123282 [00:03:50]remove file /storage/0557/doc_00123282 [00:03:50]file doc_00123283 [00:03:50]remove file /storage/0557/doc_00123283 [00:03:50]file doc_00123284 [00:03:50]remove file /storage/0557/doc_00123284 [00:03:50]file doc_00123285 [00:03:50]remove file /storage/0557/doc_00123285 [00:03:50]file doc_00123286 [00:03:50]remove file /storage/0557/doc_00123286 [00:03:50]file doc_00123287 [00:03:50]remove file /storage/0557/doc_00123287 [00:03:50]file doc_00123288 [00:03:50]remove file /storage/0557/doc_00123288 [00:03:50]file doc_00123289 [00:03:50]remove file /storage/0557/doc_00123289 [00:03:50]file doc_00123290 [00:03:50]remove file /storage/0557/doc_00123290 [00:03:50]file doc_00123291 [00:03:50]remove file /storage/0557/doc_00123291 [00:03:50]file doc_00123292 [00:03:50]remove file /storage/0557/doc_00123292 [00:03:50]file doc_00123293 [00:03:50]remove file /storage/0557/doc_00123293 [00:03:50]file doc_00123294 [00:03:50]remove file /storage/0557/doc_00123294 [00:03:50]file doc_00123295 [00:03:50]remove file /storage/0557/doc_00123295 [00:03:50]file doc_00123296 [00:03:50]remove file /storage/0557/doc_00123296 [00:03:50]file doc_00123297 [00:03:50]remove file /storage/0557/doc_00123297 [00:03:50]file doc_00123298 [00:03:50]remove file /storage/0557/doc_00123298 [00:03:51]file doc_00123299 [00:03:51]remove file /storage/0557/doc_00123299 [00:03:51]file doc_00123300 [00:03:51]remove file /storage/0557/doc_00123300 [00:03:51]file doc_00123301 [00:03:51]remove file /storage/0557/doc_00123301 [00:03:51]file doc_00123302 [00:03:51]remove file /storage/0557/doc_00123302 [00:03:51]file doc_00123303 [00:03:51]remove file /storage/0557/doc_00123303 [00:03:51]file doc_00123304 [00:03:51]remove file /storage/0557/doc_00123304 [00:03:51]file doc_00123305 [00:03:51]remove file /storage/0557/doc_00123305 [00:03:51]file doc_00123306 [00:03:51]remove file /storage/0557/doc_00123306 [00:03:51]file doc_00123307 [00:03:51]remove file /storage/0557/doc_00123307 [00:03:51]file doc_00123308 [00:03:51]remove file /storage/0557/doc_00123308 [00:03:51]file doc_00123309 [00:03:51]remove file /storage/0557/doc_00123309 [00:03:51]file doc_00123310 [00:03:51]remove file /storage/0557/doc_00123310 [00:03:51]file doc_00123311 [00:03:51]remove file /storage/0557/doc_00123311 [00:03:51]file doc_00123312 [00:03:51]remove file /storage/0557/doc_00123312 [00:03:51]file doc_00123313 [00:03:51]remove file /storage/0557/doc_00123313 [00:03:51]file doc_00123314 [00:03:51]remove file /storage/0557/doc_00123314 [00:03:51]file doc_00123315 [00:03:51]remove file /storage/0557/doc_00123315 [00:03:51]file doc_00123316 [00:03:51]remove file /storage/0557/doc_00123316 [00:03:51]file doc_00123317 [00:03:51]remove file /storage/0557/doc_00123317 [00:03:51]file doc_00123318 [00:03:51]remove file /storage/0557/doc_00123318 [00:03:51]file doc_00123319 [00:03:51]remove file /storage/0557/doc_00123319 [00:03:51]file doc_00123320 [00:03:51]remove file /storage/0557/doc_00123320 [00:03:51]file doc_00123321 [00:03:51]remove file /storage/0557/doc_00123321 [00:03:51]file doc_00123322 [00:03:51]remove file /storage/0557/doc_00123322 [00:03:51]file doc_00123323 [00:03:51]remove file /storage/0557/doc_00123323 [00:03:51]file doc_00123324 [00:03:51]remove file /storage/0557/doc_00123324 [00:03:51]file doc_00123325 [00:03:51]remove file /storage/0557/doc_00123325 [00:03:51]file doc_00123326 [00:03:51]remove file /storage/0557/doc_00123326 [00:03:51]file doc_00123327 [00:03:51]remove file /storage/0557/doc_00123327 [00:03:51]file doc_00123328 [00:03:51]remove file /storage/0557/doc_00123328 [00:03:51]file doc_00123329 [00:03:51]remove file /storage/0557/doc_00123329 [00:03:51]file doc_00123330 [00:03:51]remove file /storage/0557/doc_00123330 [00:03:51]file doc_00123331 [00:03:51]remove file /storage/0557/doc_00123331 [00:03:51]file doc_00123332 [00:03:51]remove file /storage/0557/doc_00123332 [00:03:51]file doc_00123333 [00:03:51]remove file /storage/0557/doc_00123333 [00:03:51]file doc_00123334 [00:03:51]remove file /storage/0557/doc_00123334 [00:03:51]remove dir /storage/0557 [00:03:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:03:51]tlvbuf is 02036DC0 [00:03:51]SAM_PROTO_ClearQueue [00:03:51]wFMCommunicate request_size=4 [00:03:51]MH_SAM_APDU [00:03:51]CAPDU: 80 09 00 00 [00:03:51]Write to MH i2c: E2 08 00 13 7F 80 09 00 00 00 00 00 00 04 [00:03:51]Write i2c OK [00:03:51]MH_I2C_Read... [00:03:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:51]Read from MH i2c: E2 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 03 00 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 03 00 13 7F 00 90 00 06 [00:03:51]RAPDU: 90 00 [00:03:51]wFMCommunicate OK [00:03:51]SAM_PROTO_ClearQueue done [00:03:51]KKMCreateOFDPacket [00:03:51]OFDProtocolAddRootSTLVToBuf [00:03:51]FM_MakeSignedData [00:03:51]FM_MakeSignedData [00:03:51]SAM_PROTO_SignData [00:03:51]wFMCommunicate request_size=4 [00:03:51]MH_SAM_APDU [00:03:51]CAPDU: 80 0D 01 02 [00:03:51]Write to MH i2c: E2 08 00 14 7F 80 0D 01 02 00 00 00 00 0C [00:03:51]Write i2c OK [00:03:51]MH_I2C_Read... [00:03:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:51]Read from MH i2c: E2 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 03 00 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 03 00 14 7F 00 90 00 07 [00:03:51]RAPDU: 90 00 [00:03:51]wFMCommunicate OK [00:03:51]wFMCommunicate request_size=255 [00:03:51]MH_SAM_APDU [00:03:51]CAPDU: 80 0D 02 02 FA 02 00 FB 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 9A D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D1 83 D0 BB D0 B0 D0 BD 2D D0 A1 D0 BE D0 B3 D0 BE D1 82 D1 82 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 36 35 2C 20 34 32 2E 36 37 35 30 30 39 2C 20 37 37 2E 33 30 30 37 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 F2 61 46 67 0E 04 04 00 2E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C7 E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 35 04 06 00 72 [00:03:51]Write to MH i2c: E2 02 01 15 7F 80 0D 02 02 FA 00 02 00 FB 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 9A D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D1 83 D0 BB D0 B0 D0 BD 2D D0 A1 D0 BE D0 B3 D0 BE D1 82 D1 82 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 36 35 2C 20 34 32 2E 36 37 35 30 30 39 2C 20 37 37 2E 33 30 30 37 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 F2 61 46 67 0E 04 04 00 2E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C7 E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 35 04 06 00 72 00 00 26 [00:03:51]Write i2c OK [00:03:51]MH_I2C_Read... [00:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:51]Read from MH i2c: E2 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 03 00 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 03 00 15 7F 00 90 00 08 [00:03:51]RAPDU: 90 00 [00:03:51]wFMCommunicate OK [00:03:51]wFMCommunicate request_size=10 [00:03:51]MH_SAM_APDU [00:03:51]CAPDU: 80 0D 02 02 05 5E 66 9B CD 00 [00:03:51]Write to MH i2c: E2 0D 00 16 7F 80 0D 02 02 05 00 5E 66 9B CD 00 00 00 45 [00:03:51]Write i2c OK [00:03:51]MH_I2C_Read... [00:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:51]Read from MH i2c: E2 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 03 00 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 03 00 16 7F 00 90 00 09 [00:03:51]RAPDU: 90 00 [00:03:51]wFMCommunicate OK [00:03:51]wFMCommunicate request_size=4 [00:03:51]MH_SAM_APDU [00:03:51]CAPDU: 80 0D 03 02 [00:03:51]Write to MH i2c: E2 08 00 17 7F 80 0D 03 02 00 00 00 00 11 [00:03:51]Write i2c OK [00:03:51]MH_I2C_Read... [00:03:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:52]Read from MH i2c: E2 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: E2 0B 00 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: E2 0B 00 17 7F 00 94 2C 96 89 9D C0 45 CD 90 00 60 [00:03:52]RAPDU: 94 2C 96 89 9D C0 45 CD 90 00 [00:03:52]wFMCommunicate OK [00:03:52]SAM_PROTO_SignData done [00:03:52]FM_MakeSignedData done [00:03:52]CreateOFDProtocolMessage [00:03:52]wFMCommunicate request_size=4 [00:03:52]MH_SAM_APDU [00:03:52]CAPDU: 80 11 00 00 [00:03:52]Write to MH i2c: E2 08 00 18 7F 80 11 00 00 00 00 00 00 11 [00:03:52]Write i2c OK [00:03:52]MH_I2C_Read... [00:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:52]Read from MH i2c: E2 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: E2 17 00 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: E2 17 00 18 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 68 [00:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [00:03:52]wFMCommunicate OK [00:03:52]CreateOFDProtocolMessage done [00:03:52]OFDSenderStorePacket 123335 [00:03:52]StoreOFDPacket docnum=123335 [00:03:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 72 AF 07 01 9F 2D 5A 02 01 00 02 00 FB 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 9A D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D1 83 D0 BB D0 B0 D0 BD 2D D0 A1 D0 BE D0 B3 D0 BE D1 82 D1 82 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 36 35 2C 20 34 32 2E 36 37 35 30 30 39 2C 20 37 37 2E 33 30 30 37 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 F2 61 46 67 0E 04 04 00 2E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C7 E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 35 04 06 00 72 5E 66 9B CD 00 94 2C 96 89 9D C0 45 CD [00:03:52]CheckFolder [00:03:52]dirname=/storage/ofd_packets [00:03:52]CheckFolder done [00:03:52]ProducePacketName [00:03:52]name=ofd_packets/00123335 [00:03:52]NVStorageSaveData ofd_packets/00123335 [00:03:52]File name is /storage/ofd_packets/00123335 [00:03:52]Write 301 bytes [00:03:52]NVStorageSaveData done [00:03:52]OFDSenderStorePacket done [00:03:52]KKMCreateOFDPacket done [00:03:52]NVStorageSaveData kkm_last_timestamp [00:03:52]File name is /storage/kkm_last_timestamp [00:03:52]Write 4 bytes [00:03:52]NVStorageSaveData done [00:03:52]ExternCall_PrintAddStr [00:03:52]wPrintStart [00:03:52]Write to MH i2c: 01 00 00 19 7F 98 [00:03:52]Write i2c OK [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: 01 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: 01 07 00 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: 01 07 00 19 7F 00 00 00 00 00 FF 0F AD [00:03:52]RasterBufferAndPrint [00:03:52]line Отчет об открытии смены [00:03:52]line ФФД: 1.0 [00:03:52]line ИНН: 02508201610067 [00:03:52]line Кассир: Кулова Ж. [00:03:52]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [00:03:52]line Место: АЗС № 64 "Партнер Нефть" [00:03:52]line 27.11.2024 00:04 [00:03:52]line Смена: 558 [00:03:52]line РНМ: 0000000000092681 [00:03:52]line ЗНМ: 0300000033 [00:03:52]line ФД: 123335 [00:03:52]line ФМ: 0000000000874881 [00:03:52]line ФПД: 125749773978880 [00:03:52]OFD Sender: Processing packet 123335 [packets to send 7, broken 6] [00:03:52]ProducePacketName [00:03:52]name=ofd_packets/00123335 [00:03:52]OFD Sender: To server: pG, [00:03:52]CommunicateWithHost lk.salyk.kg:30040 [00:03:52]ConnectInit lk.salyk.kg [00:03:52]written 0, free lines is 4095 [00:03:52]Connected sock=10 [00:03:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 72 AF 07 01 9F 2D 5A 02 01 00 02 00 FB 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 9A D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D1 83 D0 BB D0 B0 D0 BD 2D D0 A1 D0 BE D0 B3 D0 BE D1 82 D1 82 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B0 20 36 35 2C 20 34 32 2E 36 37 35 30 30 39 2C 20 37 37 2E 33 30 30 37 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 F2 61 46 67 0E 04 04 00 2E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C7 E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 35 04 06 00 72 5E 66 9B CD 00 94 2C 96 89 9D C0 45 CD [00:03:52]Write to MH i2c: 01 00 00 2B 7F AA [00:03:52]Write i2c OK [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: 01 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: 01 07 00 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: 01 07 00 2B 7F 00 00 00 00 00 5D 0E 1C [00:03:52]RasterBufferAndPrint [00:03:52]line [00:03:52]line [00:03:52]line [00:03:52]line [00:03:52]line [00:03:52]written 0, free lines is 3687 [00:03:52]MH_Cut [00:03:52]Write to MH i2c: D1 01 00 32 7F 01 83 [00:03:52]Write i2c OK [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: D1 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: D1 01 00 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: D1 01 00 32 7F 00 82 [00:03:52]Write to MH i2c: 01 00 00 33 7F B2 [00:03:52]Write i2c OK [00:03:52]MH_I2C_Read... [00:03:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 00 EE 47 00 F4 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C7 E1 01 00 F4 03 04 00 B4 0D 46 67 B6 04 01 00 00 33 D3 00 0A DF F8 E2 8B [00:03:52]CommunicateWithHost err = 0 [00:03:52]CheckOFDResponse [00:03:52]1017 (14) - 77093643461234 [00:03:52]1041 (16) - 0000000000874881 [00:03:52]1040 (4) - 123335 [00:03:52]1012 (4) - 26.11.2024 18:04 [00:03:52]1206 (1) - 0 [00:03:52]OFD Sender: Remove packet 123335 [00:03:52]ProducePacketName [00:03:52]name=ofd_packets/00123335 [00:03:52]NVStorageDeleteData [00:03:53]OFD Sender: No OFD packet to send [00:03:53]*** Cut start [00:03:53]*** Partial cut [00:03:53]*** CUTSNS_PIN = 1 [00:03:53]*** CUTSNS_PIN = 0 [00:03:53]*** Brake cut motor [00:03:53]Read from MH i2c: 01 [00:03:53]MH_I2C_Read... [00:03:53]*** Stop cut motor [00:03:53]*** Cut end [00:03:53]Read from MH i2c: 01 07 00 [00:03:53]MH_I2C_Read... [00:03:53]Read from MH i2c: 01 07 00 33 7F 00 00 00 00 00 FF 0F C7 [00:03:53]process_action open_shift done [00:03:53]requested_data is exist [00:03:53]produce_requested_data [00:03:53]requested_item fd.num is exist - process it [00:03:53]SAM_PROTO_GetFieldsCounters [00:03:53]wFMCommunicate request_size=4 [00:03:53]MH_SAM_APDU [00:03:53]CAPDU: 80 13 00 00 [00:03:53]Write to MH i2c: E2 08 00 34 7F 80 13 00 00 00 00 00 00 2F [00:03:53]Write i2c OK [00:03:53]MH_I2C_Read... [00:03:53]Read from MH i2c: E2 [00:03:53]MH_I2C_Read... [00:03:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:53]Read from MH i2c: E2 62 00 [00:03:53]MH_I2C_Read... [00:03:53]Read from MH i2c: E2 62 00 34 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C7 E1 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [00:03:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C7 E1 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:53]wFMCommunicate OK [00:03:53]SAM_PROTO_GetFieldsCounters done [00:03:53]requested_item shift.num is exist - process it [00:03:53]requested_item shift.opened is exist - process it [00:03:53]req_shift_opened [00:03:53]FM_GetShiftState [00:03:53]SAM_PROTO_GetShiftState [00:03:53]wFMCommunicate request_size=4 [00:03:53]MH_SAM_APDU [00:03:53]CAPDU: 80 13 01 00 [00:03:53]Write to MH i2c: E2 08 00 35 7F 80 13 01 00 00 00 00 00 31 [00:03:53]Write i2c OK [00:03:53]MH_I2C_Read... [00:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:53]Read from MH i2c: E2 [00:03:53]MH_I2C_Read... [00:03:53]Read from MH i2c: E2 0E 00 [00:03:53]MH_I2C_Read... [00:03:53]Read from MH i2c: E2 0E 00 35 7F 00 09 00 01 F2 61 46 67 00 00 00 00 90 00 3D [00:03:53]RAPDU: 09 00 01 F2 61 46 67 00 00 00 00 90 00 [00:03:53]wFMCommunicate OK [00:03:53]SAM_PROTO_GetShiftState done [00:03:53]FM_GetShiftState done [00:03:53]req_shift_opened done [00:03:53]requested_item shift.open_date is exist - process it [00:03:53]req_shift_open_date [00:03:53]req_shift_open_date done [00:03:53]produce_requested_data done [00:03:53]produce_requested_data return {"fd.num":123335,"shift.num":558,"shift.opened":1,"shift.open_date":1732665842} [00:03:53]process_action_free open_shift [00:03:53]json_value_free [00:03:53]json_value_free done [00:03:53]process_json_proto returns [00:03:53]Send response to host [00:03:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":123335,"shift.num":558,"shift.opened":1,"shift.open_date":1732665842}}} [00:03:53]free response buf [00:03:53]execute_script done [00:03:53]execute_script returns [00:03:53]free content buf [00:03:53]Sock 9.Close socket [00:03:54]Sock 9.Thread stoped [00:03:54]accept exits with 7 [00:03:54]New connection [00:03:54]New thread 3066580324 created [00:03:54]Thread 3066723684 joined [00:03:54]Waiting for new connection... [00:03:54] Sock 7.Parse request [00:03:54]Sock 7.Check first char [00:03:54]Sock 7.First char is OK [00:03:54]request: POST /json_proto HTTP/1.0 [00:03:54]Method: POST [00:03:54]URL: /json_proto [00:03:54]Method is POST - this is cgi request [00:03:54]url: /json_proto [00:03:54]query_string will be loaded in cgi processing [00:03:54]execute_cgi json_proto POST (null) [00:03:54]execute_cgi path=json_proto method=POST [00:03:54]POST find Content-Length [00:03:54]Host: 172.17.37.4:8080 [00:03:54]Content-Length: 331 [00:03:54]Content-Type: application/json [00:03:54] [00:03:54]POST finish read [00:03:54]Found Content-Length = 331 [00:03:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:54]execute_script... [00:03:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:54]POST & json_proto [00:03:54]process_json_proto [00:03:54]json parsed OK: [00:03:54]protocol is kg_v1.0 [00:03:54]action value=get_value [00:03:54]process_action get_value [00:03:54]cmd_get_value [00:03:54]process_action get_value done [00:03:54]requested_data is exist [00:03:54]produce_requested_data [00:03:54]requested_item fm.sale.total is exist - process it [00:03:54]SAM_PROTO_GetFMData [00:03:54]wFMCommunicate request_size=4 [00:03:54]MH_SAM_APDU [00:03:54]CAPDU: 80 13 03 00 [00:03:54]Write to MH i2c: E2 08 00 36 7F 80 13 03 00 00 00 00 00 34 [00:03:54]Write i2c OK [00:03:54]MH_I2C_Read... [00:03:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:54]Read from MH i2c: E2 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 FD 00 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 FD 00 36 7F 00 C5 04 85 04 C1 04 6E 04 04 00 6D DD 01 00 69 04 A3 00 6F 04 04 00 69 CE 01 00 B1 04 05 00 35 B8 62 45 02 70 04 05 00 34 D8 DB C0 01 72 04 04 00 01 E0 86 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D E4 C1 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BC 62 25 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 04 0F 00 00 B1 04 04 00 78 74 D8 26 70 04 04 00 78 74 D8 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 3D 20 04 EF 03 09 90 00 21 [00:03:54]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 6D DD 01 00 69 04 A3 00 6F 04 04 00 69 CE 01 00 B1 04 05 00 35 B8 62 45 02 70 04 05 00 34 D8 DB C0 01 72 04 04 00 01 E0 86 84 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7D E4 C1 3D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BC 62 25 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 04 0F 00 00 B1 04 04 00 78 74 D8 26 70 04 04 00 78 74 D8 26 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 3D 20 04 EF 03 09 90 00 [00:03:54]wFMCommunicate OK [00:03:54]wFMCommunicate request_size=4 [00:03:54]MH_SAM_APDU [00:03:54]CAPDU: 80 17 00 00 [00:03:54]Write to MH i2c: E2 08 00 37 7F 80 17 00 00 00 00 00 00 36 [00:03:54]Write i2c OK [00:03:54]MH_I2C_Read... [00:03:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:54]Read from MH i2c: E2 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 FD 00 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 FD 00 37 7F 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FC 03 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 43 [00:03:54]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FC 03 58 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:03:54]wFMCommunicate OK [00:03:54]wFMCommunicate request_size=4 [00:03:54]MH_SAM_APDU [00:03:54]CAPDU: 80 17 00 00 [00:03:54]Write to MH i2c: E2 08 00 38 7F 80 17 00 00 00 00 00 00 37 [00:03:54]Write i2c OK [00:03:54]MH_I2C_Read... [00:03:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:55]Read from MH i2c: E2 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 FD 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 FD 00 38 7F 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 49 [00:03:55]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:03:55]wFMCommunicate OK [00:03:55]wFMCommunicate request_size=4 [00:03:55]MH_SAM_APDU [00:03:55]CAPDU: 80 17 00 00 [00:03:55]Write to MH i2c: E2 08 00 39 7F 80 17 00 00 00 00 00 00 38 [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:55]Read from MH i2c: E2 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 FD 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 FD 00 39 7F 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 C4 [00:03:55]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:03:55]wFMCommunicate OK [00:03:55]wFMCommunicate request_size=4 [00:03:55]MH_SAM_APDU [00:03:55]CAPDU: 80 17 00 00 [00:03:55]Write to MH i2c: E2 08 00 3A 7F 80 17 00 00 00 00 00 00 39 [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:03:56]Read from MH i2c: E2 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 E2 00 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 E2 00 3A 7F 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 17 [00:03:56]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:56]wFMCommunicate OK [00:03:56]SAM_PROTO_GetFMData done [00:03:56]requested_item fm.sale_refund.total is exist - process it [00:03:56]requested_item fm.buy.total is exist - process it [00:03:56]requested_item shift.sale.total is exist - process it [00:03:56]SAM_PROTO_GetShiftData [00:03:56]wFMCommunicate request_size=4 [00:03:56]MH_SAM_APDU [00:03:56]CAPDU: 80 13 02 00 [00:03:56]Write to MH i2c: E2 08 00 3B 7F 80 13 02 00 00 00 00 00 38 [00:03:56]Write i2c OK [00:03:56]MH_I2C_Read... [00:03:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:56]Read from MH i2c: E2 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 FD 00 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 FD 00 3B 7F 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 AB [00:03:56]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:03:56]wFMCommunicate OK [00:03:56]wFMCommunicate request_size=4 [00:03:56]MH_SAM_APDU [00:03:56]CAPDU: 80 17 00 00 [00:03:56]Write to MH i2c: E2 08 00 3C 7F 80 17 00 00 00 00 00 00 3B [00:03:56]Write i2c OK [00:03:56]MH_I2C_Read... [00:03:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:57]Read from MH i2c: E2 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 FD 00 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 FD 00 3C 7F 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 43 [00:03:57]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:03:57]wFMCommunicate OK [00:03:57]wFMCommunicate request_size=4 [00:03:57]MH_SAM_APDU [00:03:57]CAPDU: 80 17 00 00 [00:03:57]Write to MH i2c: E2 08 00 3D 7F 80 17 00 00 00 00 00 00 3C [00:03:57]Write i2c OK [00:03:57]MH_I2C_Read... [00:03:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:57]Read from MH i2c: E2 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 FD 00 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 FD 00 3D 7F 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 0E [00:03:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:03:58]wFMCommunicate OK [00:03:58]wFMCommunicate request_size=4 [00:03:58]MH_SAM_APDU [00:03:58]CAPDU: 80 17 00 00 [00:03:58]Write to MH i2c: E2 08 00 3E 7F 80 17 00 00 00 00 00 00 3D [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]OFD Sender: No OFD packet to send [00:03:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:58]Read from MH i2c: E2 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: E2 FD 00 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: E2 FD 00 3E 7F 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 AF [00:03:58]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:03:58]wFMCommunicate OK [00:03:58]wFMCommunicate request_size=4 [00:03:58]MH_SAM_APDU [00:03:58]CAPDU: 80 17 00 00 [00:03:58]Write to MH i2c: E2 08 00 3F 7F 80 17 00 00 00 00 00 00 3E [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:03:58]Read from MH i2c: E2 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: E2 BD 00 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: E2 BD 00 3F 7F 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 24 [00:03:58]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:58]wFMCommunicate OK [00:03:58]SAM_PROTO_GetShiftData done [00:03:58]requested_item shift.sale.total_cash is exist - process it [00:03:58]requested_item shift.sale_refund.total is exist - process it [00:03:58]requested_item shift.sale_refund.total_cash is exist - process it [00:03:58]requested_item shift.buy.total is exist - process it [00:03:58]requested_item shift.buy.total_cash is exist - process it [00:03:58]produce_requested_data done [00:03:58]produce_requested_data return {"fm.sale.total":97540321.81,"fm.sale_refund.total":6517198.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:03:58]process_action_free get_value [00:03:58]json_value_free [00:03:58]json_value_free done [00:03:58]process_json_proto returns [00:03:58]Send response to host [00:03:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":97540321.81,"fm.sale_refund.total":6517198.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:03:58]free response buf [00:03:58]execute_script done [00:03:58]execute_script returns [00:03:58]free content buf [00:03:58]Sock 7.Close socket [00:03:58]Sock 7.Thread stoped [00:04:03]OFD Sender: No OFD packet to send [00:04:08]OFD Sender: No OFD packet to send [00:04:13]OFD Sender: No OFD packet to send [00:04:18]OFD Sender: No OFD packet to send [00:04:23]OFD Sender: No OFD packet to send [00:04:28]OFD Sender: No OFD packet to send [00:04:33]OFD Sender: No OFD packet to send [00:04:38]OFD Sender: No OFD packet to send [00:04:43]OFD Sender: No OFD packet to send [00:04:48]OFD Sender: No OFD packet to send [00:04:49]accept exits with 9 [00:04:49]New connection [00:04:49]New thread 3066723684 created [00:04:49]Thread 3066580324 joined [00:04:49]Waiting for new connection... [00:04:49] Sock 9.Parse request [00:04:49]Sock 9.Check first char [00:04:49]Sock 9.First char is OK [00:04:49]request: POST /json_proto HTTP/1.0 [00:04:49]Method: POST [00:04:49]URL: /json_proto [00:04:49]Method is POST - this is cgi request [00:04:49]url: /json_proto [00:04:49]query_string will be loaded in cgi processing [00:04:49]execute_cgi json_proto POST (null) [00:04:49]execute_cgi path=json_proto method=POST [00:04:49]POST find Content-Length [00:04:49]Host: 172.17.37.4:8080 [00:04:49]Content-Length: 677 [00:04:49]Content-Type: application/json [00:04:49] [00:04:49]POST finish read [00:04:49]Found Content-Length = 677 [00:04:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.710, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:49]execute_script... [00:04:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 3.710, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:49]POST & json_proto [00:04:49]process_json_proto [00:04:49]json parsed OK: [00:04:49]protocol is kg_v1.0 [00:04:49]action value=close_receipt [00:04:49]process_action close_receipt [00:04:49]cmd_close_receipt [00:04:49]MH_GetDate [00:04:49]Write to MH i2c: F0 00 00 40 7F AE [00:04:49]Write i2c OK [00:04:49]MH_I2C_Read... [00:04:49]Read from MH i2c: F0 [00:04:49]MH_I2C_Read... [00:04:49]Read from MH i2c: F0 09 00 [00:04:49]MH_I2C_Read... [00:04:49]Read from MH i2c: F0 09 00 40 7F 00 2E 62 46 67 B8 5A 43 67 B0 [00:04:49]GetLastDocTimeStamp 1732665842 [00:04:49]current date 1732665902 [00:04:49]FM_GetShiftState [00:04:49]SAM_PROTO_GetShiftState [00:04:49]wFMCommunicate request_size=4 [00:04:49]MH_SAM_APDU [00:04:49]CAPDU: 80 13 01 00 [00:04:49]Write to MH i2c: E2 08 00 41 7F 80 13 01 00 00 00 00 00 3D [00:04:49]Write i2c OK [00:04:49]MH_I2C_Read... [00:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:49]Read from MH i2c: E2 [00:04:49]MH_I2C_Read... [00:04:49]Read from MH i2c: E2 0E 00 [00:04:49]MH_I2C_Read... [00:04:49]Read from MH i2c: E2 0E 00 41 7F 00 09 00 01 F2 61 46 67 00 00 00 00 90 00 49 [00:04:49]RAPDU: 09 00 01 F2 61 46 67 00 00 00 00 90 00 [00:04:49]wFMCommunicate OK [00:04:49]SAM_PROTO_GetShiftState done [00:04:49]FM_GetShiftState done [00:04:49]opened in 1732665842 [00:04:49]opened+sec_in_day 1732752242 [00:04:49]quantity*price = 25005 [00:04:49]sum+1 = 25006 [00:04:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 1 27.11.2024 00:05 Смена: 558 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123336 ФПД: 268342991897973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241127T000502&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123336&fm=268342991897973&tin=02508201610067®Number=0000000000092681&sum=25000 [00:04:50]StoreToDocumentArchive [00:04:50]shift 558 fd 123336 [00:04:50]save to /storage/0558/doc_00123336 [00:04:50]save last doc name /storage/0558/doc_00123336 to /storage/kkm_last_doc_name [00:04:50]save OK [00:04:50]Clear old archive folders... [00:04:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:04:50]tlvbuf is B6F20630 [00:04:50]SAM_PROTO_ClearQueue [00:04:50]wFMCommunicate request_size=4 [00:04:50]MH_SAM_APDU [00:04:50]CAPDU: 80 09 00 00 [00:04:50]Write to MH i2c: E2 08 00 4E 7F 80 09 00 00 00 00 00 00 3F [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:04:50]Read from MH i2c: E2 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 03 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 03 00 4E 7F 00 90 00 41 [00:04:50]RAPDU: 90 00 [00:04:50]wFMCommunicate OK [00:04:50]SAM_PROTO_ClearQueue done [00:04:50]KKMCreateOFDPacket [00:04:50]OFDProtocolAddRootSTLVToBuf [00:04:50]FM_MakeSignedData [00:04:50]FM_MakeSignedData [00:04:50]SAM_PROTO_SignData [00:04:50]wFMCommunicate request_size=4 [00:04:50]MH_SAM_APDU [00:04:50]CAPDU: 80 0D 01 02 [00:04:50]Write to MH i2c: E2 08 00 4F 7F 80 0D 01 02 00 00 00 00 47 [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:04:50]Read from MH i2c: E2 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 03 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 03 00 4F 7F 00 90 00 42 [00:04:50]RAPDU: 90 00 [00:04:50]wFMCommunicate OK [00:04:50]wFMCommunicate request_size=255 [00:04:50]MH_SAM_APDU [00:04:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 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 01 00 00 00 F4 03 04 00 2E 62 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C8 E1 01 00 35 04 06 00 F4 [00:04:50]Write to MH i2c: E2 02 01 50 7F 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 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 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 01 00 00 00 F4 03 04 00 2E 62 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C8 E1 01 00 35 04 06 00 F4 00 00 C1 [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:50]Read from MH i2c: E2 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 03 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 03 00 50 7F 00 90 00 43 [00:04:50]RAPDU: 90 00 [00:04:50]wFMCommunicate OK [00:04:50]wFMCommunicate request_size=10 [00:04:50]MH_SAM_APDU [00:04:50]CAPDU: 80 0D 02 02 05 0E 78 B5 C5 75 [00:04:50]Write to MH i2c: E2 0D 00 51 7F 80 0D 02 02 05 00 0E 78 B5 C5 75 00 00 C9 [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:50]Read from MH i2c: E2 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 03 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 03 00 51 7F 00 90 00 44 [00:04:50]RAPDU: 90 00 [00:04:50]wFMCommunicate OK [00:04:50]wFMCommunicate request_size=4 [00:04:50]MH_SAM_APDU [00:04:50]CAPDU: 80 0D 03 02 [00:04:50]Write to MH i2c: E2 08 00 52 7F 80 0D 03 02 00 00 00 00 4C [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:04:50]Read from MH i2c: E2 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 0B 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 0B 00 52 7F 00 9B 5B D5 87 58 C2 9F 37 90 00 8F [00:04:50]RAPDU: 9B 5B D5 87 58 C2 9F 37 90 00 [00:04:50]wFMCommunicate OK [00:04:50]SAM_PROTO_SignData done [00:04:50]FM_MakeSignedData done [00:04:50]CreateOFDProtocolMessage [00:04:50]wFMCommunicate request_size=4 [00:04:50]MH_SAM_APDU [00:04:50]CAPDU: 80 11 00 00 [00:04:50]Write to MH i2c: E2 08 00 53 7F 80 11 00 00 00 00 00 00 4C [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:50]Read from MH i2c: E2 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 17 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 17 00 53 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A3 [00:04:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [00:04:50]wFMCommunicate OK [00:04:50]CreateOFDProtocolMessage done [00:04:50]OFDSenderStorePacket 123336 [00:04:50]StoreOFDPacket docnum=123336 [00:04:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 AD 1C 07 01 47 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 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 01 00 00 00 F4 03 04 00 2E 62 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C8 E1 01 00 35 04 06 00 F4 0E 78 B5 C5 75 9B 5B D5 87 58 C2 9F 37 [00:04:50]CheckFolder [00:04:50]dirname=/storage/ofd_packets [00:04:50]CheckFolder done [00:04:50]ProducePacketName [00:04:50]name=ofd_packets/00123336 [00:04:50]NVStorageSaveData ofd_packets/00123336 [00:04:50]File name is /storage/ofd_packets/00123336 [00:04:50]Write 301 bytes [00:04:50]NVStorageSaveData done [00:04:50]OFDSenderStorePacket done [00:04:50]KKMCreateOFDPacket done [00:04:50]NVStorageSaveData kkm_last_timestamp [00:04:50]File name is /storage/kkm_last_timestamp [00:04:50]Write 4 bytes [00:04:50]NVStorageSaveData done [00:04:50]ExternCall_PrintAddStr [00:04:50]wPrintStart [00:04:50]Write to MH i2c: 01 00 00 54 7F D3 [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: 01 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: 01 07 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: 01 07 00 54 7F 00 00 00 00 00 FF 0F E8 [00:04:50]RasterBufferAndPrint [00:04:50]line Счет N : (1)718164 [00:04:50]line ИНН: 02508201610067 [00:04:50]line Контрольно-Кассовый Чек [00:04:50]line ПРОДАЖА [00:04:50]line ТРК (МРК, ГНК) : 12 [00:04:50]line Товар: 2710124130 [00:04:50]line Аи-92-К-4 [00:04:50]line 3.710 * 67.40 [00:04:50]line = 250.05 [00:04:50]line НДС 12% НСП 1% [00:04:50]line > о реализуемом товаре [00:04:50]line ОКРУГЛЕНИЕ: -0.05 [00:04:50]line ИТОГО: 250.00 [00:04:50]line Внесено: 250.00 [00:04:50]line СДАЧА: 0.00 [00:04:50]line НСП 1% : 2.21 [00:04:50]line НДС 12% : 26.55 [00:04:50]line Наличными: 250.00 [00:04:50]line Безнал.: 0.00 [00:04:50]line Место: АЗС № 64 "Партнер Нефть" [00:04:50]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [00:04:50]line СНО: Общий режим [00:04:50]line Чек 1 27.11.2024 00:05 [00:04:50]line Смена: 558 ФФД: 1.0 [00:04:50]line ЗНМ: 0300000033 [00:04:50]line РНМ: 0000000000092681 [00:04:50]line Версия ККМ: 001 [00:04:50]line ФМ: 0000000000874881 [00:04:50]line ФД: 123336 [00:04:50]line ФПД: 268342991897973 [00:04:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241127T000502&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123336&fm=268342991897973&tin=02508201610067®Number=0000000000092681&sum=25000 [00:04:51]OFD Sender: Processing packet 123336 [packets to send 7, broken 6] [00:04:51]ProducePacketName [00:04:51]name=ofd_packets/00123336 [00:04:51]OFD Sender: To server: pG, [00:04:51]CommunicateWithHost lk.salyk.kg:30040 [00:04:51]ConnectInit lk.salyk.kg [00:04:51]written 0, free lines is 4095 [00:04:51]Connected sock=10 [00:04:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 AD 1C 07 01 47 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 AD 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 01 00 00 00 F4 03 04 00 2E 62 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C8 E1 01 00 35 04 06 00 F4 0E 78 B5 C5 75 9B 5B D5 87 58 C2 9F 37 [00:04:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 8D 21 47 00 15 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C8 E1 01 00 F4 03 04 00 EF 0D 46 67 B6 04 01 00 00 DF 95 F6 D0 62 C4 35 E5 [00:04:51]CommunicateWithHost err = 0 [00:04:51]CheckOFDResponse [00:04:51]1017 (14) - 77093643461234 [00:04:51]1041 (16) - 0000000000874881 [00:04:51]1040 (4) - 123336 [00:04:51]1012 (4) - 26.11.2024 18:05 [00:04:51]1206 (1) - 0 [00:04:51]OFD Sender: Remove packet 123336 [00:04:51]ProducePacketName [00:04:51]name=ofd_packets/00123336 [00:04:51]NVStorageDeleteData [00:04:51]Write to MH i2c: 01 00 00 7F 7F FE [00:04:51]Write i2c OK [00:04:51]MH_I2C_Read... [00:04:51]Read from MH i2c: 01 [00:04:51]MH_I2C_Read... [00:04:51]Read from MH i2c: 01 07 00 [00:04:51]MH_I2C_Read... [00:04:51]Read from MH i2c: 01 07 00 7F 7F 00 00 00 00 00 4E 0C 5F [00:04:51]RasterBufferAndPrint [00:04:51]line [00:04:51]line [00:04:51]line [00:04:51]line [00:04:51]line [00:04:51]written 0, free lines is 3152 [00:04:51]MH_Cut [00:04:51]Write to MH i2c: D1 01 00 86 7F 01 D7 [00:04:51]Write i2c OK [00:04:51]MH_I2C_Read... [00:04:51]Read from MH i2c: D1 [00:04:51]MH_I2C_Read... [00:04:51]Read from MH i2c: D1 01 00 [00:04:51]MH_I2C_Read... [00:04:51]Read from MH i2c: D1 01 00 86 7F 00 D6 [00:04:51]Write to MH i2c: 01 00 00 87 7F 06 [00:04:51]Write i2c OK [00:04:51]MH_I2C_Read... [00:04:52]OFD Sender: No OFD packet to send [00:04:53]*** Cut start [00:04:53]*** Partial cut [00:04:53]*** CUTSNS_PIN = 1 [00:04:53]*** CUTSNS_PIN = 0 [00:04:53]*** Brake cut motor [00:04:53]Read from MH i2c: 01 [00:04:53]MH_I2C_Read... [00:04:53]*** Stop cut motor [00:04:53]*** Cut end [00:04:53]Read from MH i2c: 01 07 00 [00:04:53]MH_I2C_Read... [00:04:53]Read from MH i2c: 01 07 00 87 7F 00 00 00 00 00 FF 0F 1B [00:04:53]process_action close_receipt done [00:04:53]requested_data is exist [00:04:53]produce_requested_data [00:04:53]requested_item fm.sn is exist - process it [00:04:53]wFMCommunicate request_size=4 [00:04:53]MH_SAM_APDU [00:04:53]CAPDU: 80 11 00 00 [00:04:53]Write to MH i2c: E2 08 00 88 7F 80 11 00 00 00 00 00 00 81 [00:04:53]Write i2c OK [00:04:53]MH_I2C_Read... [00:04:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:53]Read from MH i2c: E2 [00:04:53]MH_I2C_Read... [00:04:53]Read from MH i2c: E2 17 00 [00:04:53]MH_I2C_Read... [00:04:53]Read from MH i2c: E2 17 00 88 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D8 [00:04:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [00:04:53]wFMCommunicate OK [00:04:53]requested_item fd.num is exist - process it [00:04:53]SAM_PROTO_GetFieldsCounters [00:04:53]wFMCommunicate request_size=4 [00:04:53]MH_SAM_APDU [00:04:53]CAPDU: 80 13 00 00 [00:04:53]Write to MH i2c: E2 08 00 89 7F 80 13 00 00 00 00 00 00 84 [00:04:53]Write i2c OK [00:04:53]MH_I2C_Read... [00:04:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:53]Read from MH i2c: E2 [00:04:53]MH_I2C_Read... [00:04:53]Read from MH i2c: E2 62 00 [00:04:53]MH_I2C_Read... [00:04:53]Read from MH i2c: E2 62 00 89 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C8 E1 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [00:04:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C8 E1 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:53]wFMCommunicate OK [00:04:53]SAM_PROTO_GetFieldsCounters done [00:04:53]requested_item shift.num is exist - process it [00:04:53]requested_item shift.opened is exist - process it [00:04:53]req_shift_opened [00:04:53]FM_GetShiftState [00:04:53]SAM_PROTO_GetShiftState [00:04:53]wFMCommunicate request_size=4 [00:04:53]MH_SAM_APDU [00:04:53]CAPDU: 80 13 01 00 [00:04:53]Write to MH i2c: E2 08 00 8A 7F 80 13 01 00 00 00 00 00 86 [00:04:53]Write i2c OK [00:04:53]MH_I2C_Read... [00:04:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:53]Read from MH i2c: E2 [00:04:53]MH_I2C_Read... [00:04:53]Read from MH i2c: E2 0E 00 [00:04:53]MH_I2C_Read... [00:04:53]Read from MH i2c: E2 0E 00 8A 7F 00 09 00 01 F2 61 46 67 00 00 00 00 90 00 92 [00:04:53]RAPDU: 09 00 01 F2 61 46 67 00 00 00 00 90 00 [00:04:53]wFMCommunicate OK [00:04:53]SAM_PROTO_GetShiftState done [00:04:53]FM_GetShiftState done [00:04:53]req_shift_opened done [00:04:53]requested_item shift.open_date is exist - process it [00:04:53]req_shift_open_date [00:04:53]req_shift_open_date done [00:04:53]produce_requested_data done [00:04:53]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123336,"shift.num":558,"shift.opened":1,"shift.open_date":1732665842} [00:04:53]process_action_free close_receipt [00:04:53]json_value_free [00:04:53]json_value_free done [00:04:53]process_json_proto returns [00:04:53]Send response to host [00:04:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123336,"shift.num":558,"shift.opened":1,"shift.open_date":1732665842}}} [00:04:53]free response buf [00:04:53]execute_script done [00:04:53]execute_script returns [00:04:53]free content buf [00:04:53]Sock 9.Close socket [00:04:53]Sock 9.Thread stoped [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:42]OFD Sender: No OFD packet to send [00:12:47]OFD Sender: No OFD packet to send [00:12:52]OFD Sender: No OFD packet to send [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:07]OFD Sender: No OFD packet to send [00:13:12]OFD Sender: No OFD packet to send [00:13:17]OFD Sender: No OFD packet to send [00:13:22]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:32]OFD Sender: No OFD packet to send [00:13:37]OFD Sender: No OFD packet to send [00:13:42]OFD Sender: No OFD packet to send [00:13:47]OFD Sender: No OFD packet to send [00:13:52]OFD Sender: No OFD packet to send [00:13:57]OFD Sender: No OFD packet to send [00:14:02]OFD Sender: No OFD packet to send [00:14:07]OFD Sender: No OFD packet to send [00:14:12]OFD Sender: No OFD packet to send [00:14:17]OFD Sender: No OFD packet to send [00:14:22]OFD Sender: No OFD packet to send [00:14:27]OFD Sender: No OFD packet to send [00:14:32]OFD Sender: No OFD packet to send [00:14:37]OFD Sender: No OFD packet to send [00:14:42]OFD Sender: No OFD packet to send [00:14:47]OFD Sender: No OFD packet to send [00:14:52]OFD Sender: No OFD packet to send [00:14:57]OFD Sender: No OFD packet to send [00:15:02]OFD Sender: No OFD packet to send [00:15:07]OFD Sender: No OFD packet to send [00:15:12]OFD Sender: No OFD packet to send [00:15:17]OFD Sender: No OFD packet to send [00:15:22]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:18]OFD Sender: No OFD packet to send [00:33:23]OFD Sender: No OFD packet to send [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]accept exits with 7 [00:33:53]New connection [00:33:53]New thread 3066580324 created [00:33:53]Thread 3066723684 joined [00:33:53]Waiting for new connection... [00:33:53] Sock 7.Parse request [00:33:53]Sock 7.Check first char [00:33:53]Sock 7.First char is OK [00:33:53]request: POST /json_proto HTTP/1.0 [00:33:53]Method: POST [00:33:53]URL: /json_proto [00:33:53]Method is POST - this is cgi request [00:33:53]url: /json_proto [00:33:53]query_string will be loaded in cgi processing [00:33:53]execute_cgi json_proto POST (null) [00:33:53]execute_cgi path=json_proto method=POST [00:33:53]POST find Content-Length [00:33:53]Host: 172.17.37.4:8080 [00:33:53]Content-Length: 677 [00:33:53]Content-Type: application/json [00:33:53] [00:33:53]POST finish read [00:33:53]Found Content-Length = 677 [00:33:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:53]execute_script... [00:33:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:53]POST & json_proto [00:33:53]process_json_proto [00:33:53]json parsed OK: [00:33:53]protocol is kg_v1.0 [00:33:53]action value=close_receipt [00:33:53]process_action close_receipt [00:33:53]cmd_close_receipt [00:33:53]MH_GetDate [00:33:53]Write to MH i2c: F0 00 00 8B 7F F9 [00:33:53]Write i2c OK [00:33:53]MH_I2C_Read... [00:33:53]Read from MH i2c: F0 [00:33:53]MH_I2C_Read... [00:33:53]Read from MH i2c: F0 09 00 [00:33:53]MH_I2C_Read... [00:33:53]Read from MH i2c: F0 09 00 8B 7F 00 FE 68 46 67 B8 5A 43 67 D1 [00:33:53]GetLastDocTimeStamp 1732665902 [00:33:53]current date 1732667646 [00:33:53]FM_GetShiftState [00:33:53]SAM_PROTO_GetShiftState [00:33:53]wFMCommunicate request_size=4 [00:33:53]MH_SAM_APDU [00:33:53]CAPDU: 80 13 01 00 [00:33:53]Write to MH i2c: E2 08 00 8C 7F 80 13 01 00 00 00 00 00 88 [00:33:53]Write i2c OK [00:33:53]MH_I2C_Read... [00:33:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:53]Read from MH i2c: E2 [00:33:53]MH_I2C_Read... [00:33:53]Read from MH i2c: E2 0E 00 [00:33:53]MH_I2C_Read... [00:33:53]Read from MH i2c: E2 0E 00 8C 7F 00 09 00 01 F2 61 46 67 00 00 00 00 90 00 94 [00:33:53]RAPDU: 09 00 01 F2 61 46 67 00 00 00 00 90 00 [00:33:53]wFMCommunicate OK [00:33:53]SAM_PROTO_GetShiftState done [00:33:53]FM_GetShiftState done [00:33:53]opened in 1732665842 [00:33:53]opened+sec_in_day 1732752242 [00:33:53]quantity*price = 50010 [00:33:53]sum+1 = 50012 [00:33:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 2 27.11.2024 00:34 Смена: 558 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123337 ФПД: 192107462120937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241127T003406&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123337&fm=192107462120937&tin=02508201610067®Number=0000000000092681&sum=50000 [00:33:54]StoreToDocumentArchive [00:33:54]shift 558 fd 123337 [00:33:54]save to /storage/0558/doc_00123337 [00:33:54]save last doc name /storage/0558/doc_00123337 to /storage/kkm_last_doc_name [00:33:54]save OK [00:33:54]Clear old archive folders... [00:33:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:33:54]tlvbuf is 02006680 [00:33:54]SAM_PROTO_ClearQueue [00:33:54]wFMCommunicate request_size=4 [00:33:54]MH_SAM_APDU [00:33:54]CAPDU: 80 09 00 00 [00:33:54]Write to MH i2c: E2 08 00 99 7F 80 09 00 00 00 00 00 00 8A [00:33:54]Write i2c OK [00:33:54]MH_I2C_Read... [00:33:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:33:54]Read from MH i2c: E2 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 03 00 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 03 00 99 7F 00 90 00 8C [00:33:54]RAPDU: 90 00 [00:33:54]wFMCommunicate OK [00:33:54]SAM_PROTO_ClearQueue done [00:33:54]KKMCreateOFDPacket [00:33:54]OFDProtocolAddRootSTLVToBuf [00:33:54]FM_MakeSignedData [00:33:54]FM_MakeSignedData [00:33:54]SAM_PROTO_SignData [00:33:54]wFMCommunicate request_size=4 [00:33:54]MH_SAM_APDU [00:33:54]CAPDU: 80 0D 01 02 [00:33:54]Write to MH i2c: E2 08 00 9A 7F 80 0D 01 02 00 00 00 00 92 [00:33:54]Write i2c OK [00:33:54]MH_I2C_Read... [00:33:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:33:54]Read from MH i2c: E2 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 03 00 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 03 00 9A 7F 00 90 00 8D [00:33:54]RAPDU: 90 00 [00:33:54]wFMCommunicate OK [00:33:54]wFMCommunicate request_size=255 [00:33:54]MH_SAM_APDU [00:33:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FE 68 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C9 E1 01 00 35 04 06 00 AE [00:33:54]Write to MH i2c: E2 02 01 9B 7F 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FE 68 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C9 E1 01 00 35 04 06 00 AE 00 00 97 [00:33:54]Write i2c OK [00:33:54]MH_I2C_Read... [00:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:54]Read from MH i2c: E2 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 03 00 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 03 00 9B 7F 00 90 00 8E [00:33:54]RAPDU: 90 00 [00:33:54]wFMCommunicate OK [00:33:54]wFMCommunicate request_size=10 [00:33:54]MH_SAM_APDU [00:33:54]CAPDU: 80 0D 02 02 05 B8 81 09 D5 E9 [00:33:54]Write to MH i2c: E2 0D 00 9C 7F 80 0D 02 02 05 00 B8 81 09 D5 E9 00 00 9F [00:33:54]Write i2c OK [00:33:54]MH_I2C_Read... [00:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:54]Read from MH i2c: E2 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 03 00 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 03 00 9C 7F 00 90 00 8F [00:33:54]RAPDU: 90 00 [00:33:54]wFMCommunicate OK [00:33:54]wFMCommunicate request_size=4 [00:33:54]MH_SAM_APDU [00:33:54]CAPDU: 80 0D 03 02 [00:33:54]Write to MH i2c: E2 08 00 9D 7F 80 0D 03 02 00 00 00 00 97 [00:33:54]Write i2c OK [00:33:54]MH_I2C_Read... [00:33:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:33:54]Read from MH i2c: E2 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 0B 00 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 0B 00 9D 7F 00 C5 98 8E D3 A3 5F 70 17 90 00 DF [00:33:54]RAPDU: C5 98 8E D3 A3 5F 70 17 90 00 [00:33:54]wFMCommunicate OK [00:33:54]SAM_PROTO_SignData done [00:33:54]FM_MakeSignedData done [00:33:54]CreateOFDProtocolMessage [00:33:54]wFMCommunicate request_size=4 [00:33:54]MH_SAM_APDU [00:33:54]CAPDU: 80 11 00 00 [00:33:54]Write to MH i2c: E2 08 00 9E 7F 80 11 00 00 00 00 00 00 97 [00:33:54]Write i2c OK [00:33:54]MH_I2C_Read... [00:33:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:54]Read from MH i2c: E2 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 17 00 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 17 00 9E 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EE [00:33:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [00:33:54]wFMCommunicate OK [00:33:54]CreateOFDProtocolMessage done [00:33:54]OFDSenderStorePacket 123337 [00:33:54]StoreOFDPacket docnum=123337 [00:33:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 83 6E 07 01 83 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FE 68 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C9 E1 01 00 35 04 06 00 AE B8 81 09 D5 E9 C5 98 8E D3 A3 5F 70 17 [00:33:54]CheckFolder [00:33:54]dirname=/storage/ofd_packets [00:33:54]CheckFolder done [00:33:54]ProducePacketName [00:33:54]name=ofd_packets/00123337 [00:33:54]NVStorageSaveData ofd_packets/00123337 [00:33:54]File name is /storage/ofd_packets/00123337 [00:33:54]Write 301 bytes [00:33:54]NVStorageSaveData done [00:33:54]OFDSenderStorePacket done [00:33:54]KKMCreateOFDPacket done [00:33:54]NVStorageSaveData kkm_last_timestamp [00:33:54]File name is /storage/kkm_last_timestamp [00:33:54]Write 4 bytes [00:33:54]NVStorageSaveData done [00:33:54]ExternCall_PrintAddStr [00:33:54]wPrintStart [00:33:54]Write to MH i2c: 01 00 00 9F 7F 1E [00:33:54]Write i2c OK [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: 01 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: 01 07 00 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: 01 07 00 9F 7F 00 00 00 00 00 FF 0F 33 [00:33:54]RasterBufferAndPrint [00:33:54]line Счет N : (1)718165 [00:33:54]line ИНН: 02508201610067 [00:33:54]line Контрольно-Кассовый Чек [00:33:54]line ПРОДАЖА [00:33:54]line ТРК (МРК, ГНК) : 12 [00:33:54]line Товар: 2710124130 [00:33:54]line Аи-92-К-4 [00:33:54]line 7.420 * 67.40 [00:33:54]line = 500.11 [00:33:54]line НДС 12% НСП 1% [00:33:54]line > о реализуемом товаре [00:33:54]line ОКРУГЛЕНИЕ: -0.11 [00:33:54]line ИТОГО: 500.00 [00:33:54]line Внесено: 500.00 [00:33:54]line СДАЧА: 0.00 [00:33:54]line НСП 1% : 4.43 [00:33:54]line НДС 12% : 53.11 [00:33:54]line Наличными: 500.00 [00:33:54]line Безнал.: 0.00 [00:33:54]line Место: АЗС № 64 "Партнер Нефть" [00:33:54]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [00:33:54]line СНО: Общий режим [00:33:54]line Чек 2 27.11.2024 00:34 [00:33:54]line Смена: 558 ФФД: 1.0 [00:33:54]line ЗНМ: 0300000033 [00:33:54]line РНМ: 0000000000092681 [00:33:54]line Версия ККМ: 001 [00:33:54]line ФМ: 0000000000874881 [00:33:54]line ФД: 123337 [00:33:54]line ФПД: 192107462120937 [00:33:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241127T003406&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123337&fm=192107462120937&tin=02508201610067®Number=0000000000092681&sum=50000 [00:33:55]OFD Sender: Processing packet 123337 [packets to send 7, broken 6] [00:33:55]ProducePacketName [00:33:55]name=ofd_packets/00123337 [00:33:55]OFD Sender: To server: pG, [00:33:55]CommunicateWithHost lk.salyk.kg:30040 [00:33:55]ConnectInit lk.salyk.kg [00:33:55]written 0, free lines is 4095 [00:33:55]Connected sock=10 [00:33:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 83 6E 07 01 83 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FE 68 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C9 E1 01 00 35 04 06 00 AE B8 81 09 D5 E9 C5 98 8E D3 A3 5F 70 17 [00:33:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 87 71 47 00 3E 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C9 E1 01 00 F4 03 04 00 BF 14 46 67 B6 04 01 00 00 3C D0 9F 68 98 06 8C BB [00:33:55]CommunicateWithHost err = 0 [00:33:55]CheckOFDResponse [00:33:55]1017 (14) - 77093643461234 [00:33:55]1041 (16) - 0000000000874881 [00:33:55]1040 (4) - 123337 [00:33:55]1012 (4) - 26.11.2024 18:34 [00:33:55]1206 (1) - 0 [00:33:55]OFD Sender: Remove packet 123337 [00:33:55]ProducePacketName [00:33:55]name=ofd_packets/00123337 [00:33:55]NVStorageDeleteData [00:33:55]Write to MH i2c: 01 00 00 CA 7F 49 [00:33:55]Write i2c OK [00:33:55]MH_I2C_Read... [00:33:55]Read from MH i2c: 01 [00:33:55]MH_I2C_Read... [00:33:55]Read from MH i2c: 01 07 00 [00:33:55]MH_I2C_Read... [00:33:55]Read from MH i2c: 01 07 00 CA 7F 00 00 00 00 00 4E 0C AA [00:33:55]RasterBufferAndPrint [00:33:55]line [00:33:55]line [00:33:55]line [00:33:55]line [00:33:55]line [00:33:55]written 0, free lines is 3153 [00:33:55]MH_Cut [00:33:55]Write to MH i2c: D1 01 00 D1 7F 01 22 [00:33:55]Write i2c OK [00:33:55]MH_I2C_Read... [00:33:55]Read from MH i2c: D1 [00:33:55]MH_I2C_Read... [00:33:55]Read from MH i2c: D1 01 00 [00:33:55]MH_I2C_Read... [00:33:55]Read from MH i2c: D1 01 00 D1 7F 00 21 [00:33:55]Write to MH i2c: 01 00 00 D2 7F 51 [00:33:55]Write i2c OK [00:33:55]MH_I2C_Read... [00:33:55]OFD Sender: No OFD packet to send [00:33:57]*** Cut start [00:33:57]*** Partial cut [00:33:57]*** CUTSNS_PIN = 1 [00:33:57]*** CUTSNS_PIN = 0 [00:33:57]*** Brake cut motor [00:33:57]Read from MH i2c: 01 [00:33:57]MH_I2C_Read... [00:33:57]*** Stop cut motor [00:33:57]*** Cut end [00:33:57]Read from MH i2c: 01 07 00 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: 01 07 00 D2 7F 00 00 00 00 00 FF 0F 66 [00:33:57]process_action close_receipt done [00:33:57]requested_data is exist [00:33:57]produce_requested_data [00:33:57]requested_item fm.sn is exist - process it [00:33:57]wFMCommunicate request_size=4 [00:33:57]MH_SAM_APDU [00:33:57]CAPDU: 80 11 00 00 [00:33:57]Write to MH i2c: E2 08 00 D3 7F 80 11 00 00 00 00 00 00 CC [00:33:57]Write i2c OK [00:33:57]MH_I2C_Read... [00:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:57]Read from MH i2c: E2 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 17 00 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 17 00 D3 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 23 [00:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [00:33:57]wFMCommunicate OK [00:33:57]requested_item fd.num is exist - process it [00:33:57]SAM_PROTO_GetFieldsCounters [00:33:57]wFMCommunicate request_size=4 [00:33:57]MH_SAM_APDU [00:33:57]CAPDU: 80 13 00 00 [00:33:57]Write to MH i2c: E2 08 00 D4 7F 80 13 00 00 00 00 00 00 CF [00:33:57]Write i2c OK [00:33:57]MH_I2C_Read... [00:33:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:57]Read from MH i2c: E2 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 62 00 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 62 00 D4 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C9 E1 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [00:33:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 C9 E1 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:57]wFMCommunicate OK [00:33:57]SAM_PROTO_GetFieldsCounters done [00:33:57]requested_item shift.num is exist - process it [00:33:57]requested_item shift.opened is exist - process it [00:33:57]req_shift_opened [00:33:57]FM_GetShiftState [00:33:57]SAM_PROTO_GetShiftState [00:33:57]wFMCommunicate request_size=4 [00:33:57]MH_SAM_APDU [00:33:57]CAPDU: 80 13 01 00 [00:33:57]Write to MH i2c: E2 08 00 D5 7F 80 13 01 00 00 00 00 00 D1 [00:33:57]Write i2c OK [00:33:57]MH_I2C_Read... [00:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:57]Read from MH i2c: E2 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 0E 00 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 0E 00 D5 7F 00 09 00 01 F2 61 46 67 00 00 00 00 90 00 DD [00:33:57]RAPDU: 09 00 01 F2 61 46 67 00 00 00 00 90 00 [00:33:57]wFMCommunicate OK [00:33:57]SAM_PROTO_GetShiftState done [00:33:57]FM_GetShiftState done [00:33:57]req_shift_opened done [00:33:57]requested_item shift.open_date is exist - process it [00:33:57]req_shift_open_date [00:33:57]req_shift_open_date done [00:33:57]produce_requested_data done [00:33:57]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123337,"shift.num":558,"shift.opened":1,"shift.open_date":1732665842} [00:33:57]process_action_free close_receipt [00:33:57]json_value_free [00:33:57]json_value_free done [00:33:57]process_json_proto returns [00:33:57]Send response to host [00:33:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123337,"shift.num":558,"shift.opened":1,"shift.open_date":1732665842}}} [00:33:57]free response buf [00:33:57]execute_script done [00:33:57]execute_script returns [00:33:57]free content buf [00:33:57]Sock 7.Close socket [00:33:57]Sock 7.Thread stoped [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:16]OFD Sender: No OFD packet to send [00:34:21]OFD Sender: No OFD packet to send [00:34:26]OFD Sender: No OFD packet to send [00:34:31]OFD Sender: No OFD packet to send [00:34:36]OFD Sender: No OFD packet to send [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:26]OFD Sender: No OFD packet to send [00:39:31]OFD Sender: No OFD packet to send [00:39:36]OFD Sender: No OFD packet to send [00:39:41]OFD Sender: No OFD packet to send [00:39:46]OFD Sender: No OFD packet to send [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:21]OFD Sender: No OFD packet to send [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:41:58]accept exits with 9 [00:41:58]New connection [00:41:58]New thread 3066723684 created [00:41:58]Thread 3066580324 joined [00:41:58]Waiting for new connection... [00:41:58] Sock 9.Parse request [00:41:58]Sock 9.Check first char [00:41:58]Sock 9.First char is OK [00:41:58]request: POST /json_proto HTTP/1.0 [00:41:58]Method: POST [00:41:58]URL: /json_proto [00:41:58]Method is POST - this is cgi request [00:41:58]url: /json_proto [00:41:58]query_string will be loaded in cgi processing [00:41:58]execute_cgi json_proto POST (null) [00:41:58]execute_cgi path=json_proto method=POST [00:41:58]POST find Content-Length [00:41:58]Host: 172.17.37.4:8080 [00:41:58]Content-Length: 682 [00:41:58]Content-Type: application/json [00:41:58] [00:41:58]POST finish read [00:41:58]Found Content-Length = 682 [00:41:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 22.260, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:58]execute_script... [00: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 : (1)718166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 22.260, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:58]POST & json_proto [00:41:58]process_json_proto [00:41:58]json parsed OK: [00:41:58]protocol is kg_v1.0 [00:41:58]action value=close_receipt [00:41:58]process_action close_receipt [00:41:58]cmd_close_receipt [00:41:58]MH_GetDate [00:41:58]Write to MH i2c: F0 00 00 D6 7F 44 [00:41:58]Write i2c OK [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: F0 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: F0 09 00 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: F0 09 00 D6 7F 00 E3 6A 46 67 B8 5A 43 67 03 [00:41:58]GetLastDocTimeStamp 1732667646 [00:41:58]current date 1732668131 [00:41:58]FM_GetShiftState [00:41:58]SAM_PROTO_GetShiftState [00:41:58]wFMCommunicate request_size=4 [00:41:58]MH_SAM_APDU [00:41:58]CAPDU: 80 13 01 00 [00:41:58]Write to MH i2c: E2 08 00 D7 7F 80 13 01 00 00 00 00 00 D3 [00:41:58]Write i2c OK [00:41:58]MH_I2C_Read... [00:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:58]Read from MH i2c: E2 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 0E 00 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 0E 00 D7 7F 00 09 00 01 F2 61 46 67 00 00 00 00 90 00 DF [00:41:58]RAPDU: 09 00 01 F2 61 46 67 00 00 00 00 90 00 [00:41:58]wFMCommunicate OK [00:41:58]SAM_PROTO_GetShiftState done [00:41:58]FM_GetShiftState done [00:41:58]opened in 1732665842 [00:41:58]opened+sec_in_day 1732752242 [00:41:58]quantity*price = 150032 [00:41:58]sum+1 = 150033 [00:41:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 3 27.11.2024 00:42 Смена: 558 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123338 ФПД: 261833165915406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241127T004211&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123338&fm=261833165915406&tin=02508201610067®Number=0000000000092681&sum=150000 [00:41:59]StoreToDocumentArchive [00:41:59]shift 558 fd 123338 [00:41:59]save to /storage/0558/doc_00123338 [00:41:59]save last doc name /storage/0558/doc_00123338 to /storage/kkm_last_doc_name [00:41:59]save OK [00:41:59]Clear old archive folders... [00:41:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:41:59]tlvbuf is 020B08F0 [00:41:59]SAM_PROTO_ClearQueue [00:41:59]wFMCommunicate request_size=4 [00:41:59]MH_SAM_APDU [00:41:59]CAPDU: 80 09 00 00 [00:41:59]Write to MH i2c: E2 08 00 E4 7F 80 09 00 00 00 00 00 00 D5 [00:41:59]Write i2c OK [00:41:59]MH_I2C_Read... [00:41:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:59]Read from MH i2c: E2 [00:41:59]MH_I2C_Read... [00:41:59]Read from MH i2c: E2 03 00 [00:41:59]MH_I2C_Read... [00:41:59]Read from MH i2c: E2 03 00 E4 7F 00 90 00 D7 [00:41:59]RAPDU: 90 00 [00:41:59]wFMCommunicate OK [00:41:59]SAM_PROTO_ClearQueue done [00:41:59]KKMCreateOFDPacket [00:41:59]OFDProtocolAddRootSTLVToBuf [00:41:59]FM_MakeSignedData [00:41:59]FM_MakeSignedData [00:41:59]SAM_PROTO_SignData [00:41:59]wFMCommunicate request_size=4 [00:41:59]MH_SAM_APDU [00:41:59]CAPDU: 80 0D 01 02 [00:41:59]Write to MH i2c: E2 08 00 E5 7F 80 0D 01 02 00 00 00 00 DD [00:41:59]Write i2c OK [00:41:59]MH_I2C_Read... [00:41:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:59]Read from MH i2c: E2 [00:41:59]MH_I2C_Read... [00:41:59]Read from MH i2c: E2 03 00 [00:41:59]MH_I2C_Read... [00:41:59]Read from MH i2c: E2 03 00 E5 7F 00 90 00 D8 [00:41:59]RAPDU: 90 00 [00:41:59]wFMCommunicate OK [00:41:59]wFMCommunicate request_size=255 [00:41:59]MH_SAM_APDU [00:41:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 E3 6A 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CA E1 01 00 35 04 06 00 EE [00:41:59]Write to MH i2c: E2 02 01 E6 7F 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 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 E3 6A 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CA E1 01 00 35 04 06 00 EE 00 00 EC [00:41:59]Write i2c OK [00:41:59]MH_I2C_Read... [00:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:59]Read from MH i2c: E2 [00:41:59]MH_I2C_Read... [00:41:59]Read from MH i2c: E2 03 00 [00:41:59]MH_I2C_Read... [00:41:59]Read from MH i2c: E2 03 00 E6 7F 00 90 00 D9 [00:41:59]RAPDU: 90 00 [00:41:59]wFMCommunicate OK [00:41:59]wFMCommunicate request_size=10 [00:41:59]MH_SAM_APDU [00:41:59]CAPDU: 80 0D 02 02 05 22 C8 D8 45 0E [00:41:59]Write to MH i2c: E2 0D 00 E7 7F 80 0D 02 02 05 00 22 C8 D8 45 0E 00 00 FF [00:41:59]Write i2c OK [00:41:59]MH_I2C_Read... [00:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:00]Read from MH i2c: E2 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: E2 03 00 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: E2 03 00 E7 7F 00 90 00 DA [00:42:00]RAPDU: 90 00 [00:42:00]wFMCommunicate OK [00:42:00]wFMCommunicate request_size=4 [00:42:00]MH_SAM_APDU [00:42:00]CAPDU: 80 0D 03 02 [00:42:00]Write to MH i2c: E2 08 00 E8 7F 80 0D 03 02 00 00 00 00 E2 [00:42:00]Write i2c OK [00:42:00]MH_I2C_Read... [00:42:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:42:00]Read from MH i2c: E2 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: E2 0B 00 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: E2 0B 00 E8 7F 00 B8 F2 53 28 11 E1 CF 27 90 00 F0 [00:42:00]RAPDU: B8 F2 53 28 11 E1 CF 27 90 00 [00:42:00]wFMCommunicate OK [00:42:00]SAM_PROTO_SignData done [00:42:00]FM_MakeSignedData done [00:42:00]CreateOFDProtocolMessage [00:42:00]wFMCommunicate request_size=4 [00:42:00]MH_SAM_APDU [00:42:00]CAPDU: 80 11 00 00 [00:42:00]Write to MH i2c: E2 08 00 E9 7F 80 11 00 00 00 00 00 00 E2 [00:42:00]Write i2c OK [00:42:00]MH_I2C_Read... [00:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:00]Read from MH i2c: E2 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: E2 17 00 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: E2 17 00 E9 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 39 [00:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [00:42:00]wFMCommunicate OK [00:42:00]CreateOFDProtocolMessage done [00:42:00]OFDSenderStorePacket 123338 [00:42:00]StoreOFDPacket docnum=123338 [00:42:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 23 13 07 01 3D 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 E3 6A 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CA E1 01 00 35 04 06 00 EE 22 C8 D8 45 0E B8 F2 53 28 11 E1 CF 27 [00:42:00]CheckFolder [00:42:00]dirname=/storage/ofd_packets [00:42:00]CheckFolder done [00:42:00]ProducePacketName [00:42:00]name=ofd_packets/00123338 [00:42:00]NVStorageSaveData ofd_packets/00123338 [00:42:00]File name is /storage/ofd_packets/00123338 [00:42:00]Write 301 bytes [00:42:00]NVStorageSaveData done [00:42:00]OFDSenderStorePacket done [00:42:00]KKMCreateOFDPacket done [00:42:00]NVStorageSaveData kkm_last_timestamp [00:42:00]File name is /storage/kkm_last_timestamp [00:42:00]Write 4 bytes [00:42:00]NVStorageSaveData done [00:42:00]ExternCall_PrintAddStr [00:42:00]wPrintStart [00:42:00]Write to MH i2c: 01 00 00 EA 7F 69 [00:42:00]Write i2c OK [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: 01 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: 01 07 00 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: 01 07 00 EA 7F 00 00 00 00 00 FF 0F 7E [00:42:00]RasterBufferAndPrint [00:42:00]line Счет N : (1)718166 [00:42:00]line ИНН: 02508201610067 [00:42:00]line Контрольно-Кассовый Чек [00:42:00]line ПРОДАЖА [00:42:00]line ТРК (МРК, ГНК) : 22 [00:42:00]line Товар: 2710124130 [00:42:00]line Аи-92-К-4 [00:42:00]line 22.260 * 67.40 [00:42:00]line = 1500.32 [00:42:00]line НДС 12% НСП 1% [00:42:00]line > о реализуемом товаре [00:42:00]line ОКРУГЛЕНИЕ: -0.32 [00:42:00]line ИТОГО: 1500.00 [00:42:00]line Внесено: 1500.00 [00:42:00]line СДАЧА: 0.00 [00:42:00]line НСП 1% : 13.28 [00:42:00]line НДС 12% : 159.33 [00:42:00]line Наличными: 1500.00 [00:42:00]line Безнал.: 0.00 [00:42:00]line Место: АЗС № 64 "Партнер Нефть" [00:42:00]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [00:42:00]line СНО: Общий режим [00:42:00]line Чек 3 27.11.2024 00:42 [00:42:00]line Смена: 558 ФФД: 1.0 [00:42:00]line ЗНМ: 0300000033 [00:42:00]line РНМ: 0000000000092681 [00:42:00]line Версия ККМ: 001 [00:42:00]line ФМ: 0000000000874881 [00:42:00]line ФД: 123338 [00:42:00]line ФПД: 261833165915406 [00:42:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241127T004211&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123338&fm=261833165915406&tin=02508201610067®Number=0000000000092681&sum=150000 [00:42:00]OFD Sender: Processing packet 123338 [packets to send 7, broken 6] [00:42:00]ProducePacketName [00:42:00]name=ofd_packets/00123338 [00:42:00]OFD Sender: To server: pG, [00:42:00]CommunicateWithHost lk.salyk.kg:30040 [00:42:00]ConnectInit lk.salyk.kg [00:42:00]written 0, free lines is 4095 [00:42:00]Connected sock=10 [00:42:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 23 13 07 01 3D 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 E3 6A 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CA E1 01 00 35 04 06 00 EE 22 C8 D8 45 0E B8 F2 53 28 11 E1 CF 27 [00:42:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 A8 54 47 00 B0 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CA E1 01 00 F4 03 04 00 A4 16 46 67 B6 04 01 00 00 76 22 9B E4 1A D1 C0 40 [00:42:00]CommunicateWithHost err = 0 [00:42:00]CheckOFDResponse [00:42:00]1017 (14) - 77093643461234 [00:42:00]1041 (16) - 0000000000874881 [00:42:00]1040 (4) - 123338 [00:42:00]1012 (4) - 26.11.2024 18:42 [00:42:00]1206 (1) - 0 [00:42:00]OFD Sender: Remove packet 123338 [00:42:00]ProducePacketName [00:42:00]name=ofd_packets/00123338 [00:42:00]NVStorageDeleteData [00:42:00]Write to MH i2c: 01 00 00 15 80 95 [00:42:00]Write i2c OK [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: 01 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: 01 07 00 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: 01 07 00 15 80 00 00 00 00 00 4E 0C F6 [00:42:00]RasterBufferAndPrint [00:42:00]line [00:42:00]line [00:42:00]line [00:42:00]line [00:42:00]line [00:42:00]written 0, free lines is 3154 [00:42:00]MH_Cut [00:42:00]Write to MH i2c: D1 01 00 1C 80 01 6E [00:42:00]Write i2c OK [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: D1 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: D1 01 00 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: D1 01 00 1C 80 00 6D [00:42:00]Write to MH i2c: 01 00 00 1D 80 9D [00:42:00]Write i2c OK [00:42:00]MH_I2C_Read... [00:42:01]OFD Sender: No OFD packet to send [00:42:02]*** Cut start [00:42:02]*** Partial cut [00:42:02]*** CUTSNS_PIN = 1 [00:42:02]*** CUTSNS_PIN = 0 [00:42:02]*** Brake cut motor [00:42:02]Read from MH i2c: 01 [00:42:02]MH_I2C_Read... [00:42:02]*** Stop cut motor [00:42:02]*** Cut end [00:42:02]Read from MH i2c: 01 07 00 [00:42:02]MH_I2C_Read... [00:42:02]Read from MH i2c: 01 07 00 1D 80 00 00 00 00 00 FF 0F B2 [00:42:02]process_action close_receipt done [00:42:02]requested_data is exist [00:42:02]produce_requested_data [00:42:02]requested_item fm.sn is exist - process it [00:42:02]wFMCommunicate request_size=4 [00:42:02]MH_SAM_APDU [00:42:02]CAPDU: 80 11 00 00 [00:42:02]Write to MH i2c: E2 08 00 1E 80 80 11 00 00 00 00 00 00 18 [00:42:02]Write i2c OK [00:42:02]MH_I2C_Read... [00:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:03]Read from MH i2c: E2 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 17 00 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 17 00 1E 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6F [00:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [00:42:03]wFMCommunicate OK [00:42:03]requested_item fd.num is exist - process it [00:42:03]SAM_PROTO_GetFieldsCounters [00:42:03]wFMCommunicate request_size=4 [00:42:03]MH_SAM_APDU [00:42:03]CAPDU: 80 13 00 00 [00:42:03]Write to MH i2c: E2 08 00 1F 80 80 13 00 00 00 00 00 00 1B [00:42:03]Write i2c OK [00:42:03]MH_I2C_Read... [00:42:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:42:03]Read from MH i2c: E2 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 62 00 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 62 00 1F 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 CA E1 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [00:42:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 CA E1 01 00 0E 04 04 00 2E 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:42:03]wFMCommunicate OK [00:42:03]SAM_PROTO_GetFieldsCounters done [00:42:03]requested_item shift.num is exist - process it [00:42:03]requested_item shift.opened is exist - process it [00:42:03]req_shift_opened [00:42:03]FM_GetShiftState [00:42:03]SAM_PROTO_GetShiftState [00:42:03]wFMCommunicate request_size=4 [00:42:03]MH_SAM_APDU [00:42:03]CAPDU: 80 13 01 00 [00:42:03]Write to MH i2c: E2 08 00 20 80 80 13 01 00 00 00 00 00 1D [00:42:03]Write i2c OK [00:42:03]MH_I2C_Read... [00:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:03]Read from MH i2c: E2 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 0E 00 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 0E 00 20 80 00 09 00 01 F2 61 46 67 00 00 00 00 90 00 29 [00:42:03]RAPDU: 09 00 01 F2 61 46 67 00 00 00 00 90 00 [00:42:03]wFMCommunicate OK [00:42:03]SAM_PROTO_GetShiftState done [00:42:03]FM_GetShiftState done [00:42:03]req_shift_opened done [00:42:03]requested_item shift.open_date is exist - process it [00:42:03]req_shift_open_date [00:42:03]req_shift_open_date done [00:42:03]produce_requested_data done [00:42:03]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123338,"shift.num":558,"shift.opened":1,"shift.open_date":1732665842} [00:42:03]process_action_free close_receipt [00:42:03]json_value_free [00:42:03]json_value_free done [00:42:03]process_json_proto returns [00:42:03]Send response to host [00:42:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123338,"shift.num":558,"shift.opened":1,"shift.open_date":1732665842}}} [00:42:03]free response buf [00:42:03]execute_script done [00:42:03]execute_script returns [00:42:03]free content buf [00:42:03]Sock 9.Close socket [00:42:03]Sock 9.Thread stoped [00:42:06]OFD Sender: No OFD packet to send [00:42:11]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:41]OFD Sender: No OFD packet to send [00:43:46]OFD Sender: No OFD packet to send [00:43:51]OFD Sender: No OFD packet to send [00:43:56]OFD Sender: No OFD packet to send [00:44:01]OFD Sender: No OFD packet to send [00:44:06]OFD Sender: No OFD packet to send [00:44:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:33]accept exits with 7 [00:47:33]New connection [00:47:33]New thread 3066580324 created [00:47:33]Thread 3066723684 joined [00:47:33]Waiting for new connection... [00:47:33] Sock 7.Parse request [00:47:33]Sock 7.Check first char [00:47:33]Sock 7.First char is OK [00:47:33]request: POST /json_proto HTTP/1.0 [00:47:33]Method: POST [00:47:33]URL: /json_proto [00:47:33]Method is POST - this is cgi request [00:47:33]url: /json_proto [00:47:33]query_string will be loaded in cgi processing [00:47:33]execute_cgi json_proto POST (null) [00:47:33]execute_cgi path=json_proto method=POST [00:47:33]POST find Content-Length [00:47:33]Host: 172.17.37.4:8080 [00:47:33]Content-Length: 677 [00:47:33]Content-Type: application/json [00:47:33] [00:47:33]POST finish read [00:47:33]Found Content-Length = 677 [00:47:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:47:33]execute_script... [00:47:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:47:33]POST & json_proto [00:47:33]process_json_proto [00:47:33]json parsed OK: [00:47:33]protocol is kg_v1.0 [00:47:33]action value=close_receipt [00:47:33]process_action close_receipt [00:47:33]cmd_close_receipt [00:47:33]MH_GetDate [00:47:33]Write to MH i2c: F0 00 00 21 80 90 [00:47:33]Write i2c OK [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: F0 [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: F0 09 00 [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: F0 09 00 21 80 00 32 6C 46 67 B8 5A 43 67 A0 [00:47:33]GetLastDocTimeStamp 1732668131 [00:47:33]current date 1732668466 [00:47:33]FM_GetShiftState [00:47:33]SAM_PROTO_GetShiftState [00:47:33]wFMCommunicate request_size=4 [00:47:33]MH_SAM_APDU [00:47:33]CAPDU: 80 13 01 00 [00:47:33]Write to MH i2c: E2 08 00 22 80 80 13 01 00 00 00 00 00 1F [00:47:33]Write i2c OK [00:47:33]MH_I2C_Read... [00:47:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:47:33]Read from MH i2c: E2 [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: E2 0E 00 [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: E2 0E 00 22 80 00 09 00 01 F2 61 46 67 00 00 00 00 90 00 2B [00:47:33]RAPDU: 09 00 01 F2 61 46 67 00 00 00 00 90 00 [00:47:33]wFMCommunicate OK [00:47:33]SAM_PROTO_GetShiftState done [00:47:33]FM_GetShiftState done [00:47:33]opened in 1732665842 [00:47:33]opened+sec_in_day 1732752242 [00:47:33]quantity*price = 50010 [00:47:33]sum+1 = 50012 [00:47:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 4 27.11.2024 00:47 Смена: 558 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123339 ФПД: 71939511080719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241127T004746&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123339&fm=71939511080719&tin=02508201610067®Number=0000000000092681&sum=50000 [00:47:34]StoreToDocumentArchive [00:47:34]shift 558 fd 123339 [00:47:34]save to /storage/0558/doc_00123339 [00:47:34]save last doc name /storage/0558/doc_00123339 to /storage/kkm_last_doc_name [00:47:34]save OK [00:47:34]Clear old archive folders... [00:47:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:47:34]tlvbuf is 02069100 [00:47:34]SAM_PROTO_ClearQueue [00:47:34]wFMCommunicate request_size=4 [00:47:34]MH_SAM_APDU [00:47:34]CAPDU: 80 09 00 00 [00:47:34]Write to MH i2c: E2 08 00 2F 80 80 09 00 00 00 00 00 00 21 [00:47:34]Write i2c OK [00:47:34]MH_I2C_Read... [00:47:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:47:34]Read from MH i2c: E2 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: E2 03 00 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: E2 03 00 2F 80 00 90 00 23 [00:47:34]RAPDU: 90 00 [00:47:34]wFMCommunicate OK [00:47:34]SAM_PROTO_ClearQueue done [00:47:34]KKMCreateOFDPacket [00:47:34]OFDProtocolAddRootSTLVToBuf [00:47:34]FM_MakeSignedData [00:47:34]FM_MakeSignedData [00:47:34]SAM_PROTO_SignData [00:47:34]wFMCommunicate request_size=4 [00:47:34]MH_SAM_APDU [00:47:34]CAPDU: 80 0D 01 02 [00:47:34]Write to MH i2c: E2 08 00 30 80 80 0D 01 02 00 00 00 00 29 [00:47:34]Write i2c OK [00:47:34]MH_I2C_Read... [00:47:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:47:34]Read from MH i2c: E2 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: E2 03 00 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: E2 03 00 30 80 00 90 00 24 [00:47:34]RAPDU: 90 00 [00:47:34]wFMCommunicate OK [00:47:34]wFMCommunicate request_size=255 [00:47:34]MH_SAM_APDU [00:47:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 32 6C 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CB E1 01 00 35 04 06 00 41 [00:47:34]Write to MH i2c: E2 02 01 31 80 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 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 32 6C 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CB E1 01 00 35 04 06 00 41 00 00 FD [00:47:34]Write i2c OK [00:47:34]MH_I2C_Read... [00:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:47:34]Read from MH i2c: E2 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: E2 03 00 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: E2 03 00 31 80 00 90 00 25 [00:47:34]RAPDU: 90 00 [00:47:34]wFMCommunicate OK [00:47:34]wFMCommunicate request_size=10 [00:47:34]MH_SAM_APDU [00:47:34]CAPDU: 80 0D 02 02 05 6D B9 00 D7 0F [00:47:34]Write to MH i2c: E2 0D 00 32 80 80 0D 02 02 05 00 6D B9 00 D7 0F 00 00 42 [00:47:34]Write i2c OK [00:47:34]MH_I2C_Read... [00:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:47:34]Read from MH i2c: E2 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: E2 03 00 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: E2 03 00 32 80 00 90 00 26 [00:47:34]RAPDU: 90 00 [00:47:34]wFMCommunicate OK [00:47:34]wFMCommunicate request_size=4 [00:47:34]MH_SAM_APDU [00:47:34]CAPDU: 80 0D 03 02 [00:47:34]Write to MH i2c: E2 08 00 33 80 80 0D 03 02 00 00 00 00 2E [00:47:34]Write i2c OK [00:47:34]MH_I2C_Read... [00:47:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:47:34]Read from MH i2c: E2 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: E2 0B 00 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: E2 0B 00 33 80 00 BD C6 42 B4 BA 0E 2B C7 90 00 62 [00:47:34]RAPDU: BD C6 42 B4 BA 0E 2B C7 90 00 [00:47:34]wFMCommunicate OK [00:47:34]SAM_PROTO_SignData done [00:47:34]FM_MakeSignedData done [00:47:34]CreateOFDProtocolMessage [00:47:34]wFMCommunicate request_size=4 [00:47:34]MH_SAM_APDU [00:47:34]CAPDU: 80 11 00 00 [00:47:34]Write to MH i2c: E2 08 00 34 80 80 11 00 00 00 00 00 00 2E [00:47:35]Write i2c OK [00:47:35]MH_I2C_Read... [00:47:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:47:35]Read from MH i2c: E2 [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: E2 17 00 [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: E2 17 00 34 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 85 [00:47:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [00:47:35]wFMCommunicate OK [00:47:35]CreateOFDProtocolMessage done [00:47:35]OFDSenderStorePacket 123339 [00:47:35]StoreOFDPacket docnum=123339 [00:47:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 70 2A 07 01 2D B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 32 6C 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CB E1 01 00 35 04 06 00 41 6D B9 00 D7 0F BD C6 42 B4 BA 0E 2B C7 [00:47:35]CheckFolder [00:47:35]dirname=/storage/ofd_packets [00:47:35]CheckFolder done [00:47:35]ProducePacketName [00:47:35]name=ofd_packets/00123339 [00:47:35]NVStorageSaveData ofd_packets/00123339 [00:47:35]File name is /storage/ofd_packets/00123339 [00:47:35]Write 301 bytes [00:47:35]NVStorageSaveData done [00:47:35]OFDSenderStorePacket done [00:47:35]KKMCreateOFDPacket done [00:47:35]NVStorageSaveData kkm_last_timestamp [00:47:35]File name is /storage/kkm_last_timestamp [00:47:35]Write 4 bytes [00:47:35]NVStorageSaveData done [00:47:35]ExternCall_PrintAddStr [00:47:35]wPrintStart [00:47:35]Write to MH i2c: 01 00 00 35 80 B5 [00:47:35]Write i2c OK [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: 01 [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: 01 07 00 [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: 01 07 00 35 80 00 00 00 00 00 FF 0F CA [00:47:35]RasterBufferAndPrint [00:47:35]line Счет N : (1)718167 [00:47:35]line ИНН: 02508201610067 [00:47:35]line Контрольно-Кассовый Чек [00:47:35]line ПРОДАЖА [00:47:35]line ТРК (МРК, ГНК) : 22 [00:47:35]line Товар: 2710124130 [00:47:35]line Аи-92-К-4 [00:47:35]line 7.420 * 67.40 [00:47:35]line = 500.11 [00:47:35]line НДС 12% НСП 1% [00:47:35]line > о реализуемом товаре [00:47:35]line ОКРУГЛЕНИЕ: -0.11 [00:47:35]line ИТОГО: 500.00 [00:47:35]line Внесено: 500.00 [00:47:35]line СДАЧА: 0.00 [00:47:35]line НСП 1% : 4.43 [00:47:35]line НДС 12% : 53.11 [00:47:35]line Наличными: 500.00 [00:47:35]line Безнал.: 0.00 [00:47:35]line Место: АЗС № 64 "Партнер Нефть" [00:47:35]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [00:47:35]line СНО: Общий режим [00:47:35]line Чек 4 27.11.2024 00:47 [00:47:35]line Смена: 558 ФФД: 1.0 [00:47:35]line ЗНМ: 0300000033 [00:47:35]line РНМ: 0000000000092681 [00:47:35]line Версия ККМ: 001 [00:47:35]line ФМ: 0000000000874881 [00:47:35]line ФД: 123339 [00:47:35]line ФПД: 71939511080719 [00:47:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241127T004746&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123339&fm=71939511080719&tin=02508201610067®Number=0000000000092681&sum=50000 [00:47:35]OFD Sender: Processing packet 123339 [packets to send 7, broken 6] [00:47:35]ProducePacketName [00:47:35]name=ofd_packets/00123339 [00:47:35]OFD Sender: To server: pG, [00:47:35]CommunicateWithHost lk.salyk.kg:30040 [00:47:35]ConnectInit lk.salyk.kg [00:47:35]written 0, free lines is 4095 [00:47:35]Connected sock=10 [00:47:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 70 2A 07 01 2D B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 32 6C 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CB E1 01 00 35 04 06 00 41 6D B9 00 D7 0F BD C6 42 B4 BA 0E 2B C7 [00:47:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 27 77 47 00 10 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CB E1 01 00 F4 03 04 00 F3 17 46 67 B6 04 01 00 00 29 8C AE 5D E7 4E D8 A2 [00:47:35]CommunicateWithHost err = 0 [00:47:35]CheckOFDResponse [00:47:35]1017 (14) - 77093643461234 [00:47:35]1041 (16) - 0000000000874881 [00:47:35]1040 (4) - 123339 [00:47:35]1012 (4) - 26.11.2024 18:48 [00:47:35]1206 (1) - 0 [00:47:35]OFD Sender: Remove packet 123339 [00:47:35]ProducePacketName [00:47:35]name=ofd_packets/00123339 [00:47:35]NVStorageDeleteData [00:47:35]Write to MH i2c: 01 00 00 60 80 E0 [00:47:35]Write i2c OK [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: 01 [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: 01 07 00 [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: 01 07 00 60 80 00 00 00 00 00 50 0C 43 [00:47:35]RasterBufferAndPrint [00:47:35]line [00:47:35]line [00:47:35]line [00:47:35]line [00:47:35]line [00:47:35]written 0, free lines is 3156 [00:47:35]MH_Cut [00:47:35]Write to MH i2c: D1 01 00 67 80 01 B9 [00:47:35]Write i2c OK [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: D1 [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: D1 01 00 [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: D1 01 00 67 80 00 B8 [00:47:35]Write to MH i2c: 01 00 00 68 80 E8 [00:47:35]Write i2c OK [00:47:35]MH_I2C_Read... [00:47:36]OFD Sender: No OFD packet to send [00:47:37]*** Cut start [00:47:37]*** Partial cut [00:47:37]*** CUTSNS_PIN = 1 [00:47:37]*** CUTSNS_PIN = 0 [00:47:37]*** Brake cut motor [00:47:37]Read from MH i2c: 01 [00:47:37]MH_I2C_Read... [00:47:37]*** Stop cut motor [00:47:37]*** Cut end [00:47:37]Read from MH i2c: 01 07 00 [00:47:37]MH_I2C_Read... [00:47:37]Read from MH i2c: 01 07 00 68 80 00 00 00 00 00 FF 0F FD [00:47:37]process_action close_receipt done [00:47:37]requested_data is exist [00:47:37]produce_requested_data [00:47:37]requested_item fm.sn is exist - process it [00:47:37]wFMCommunicate request_size=4 [00:47:37]MH_SAM_APDU [00:47:37]CAPDU: 80 11 00 00 [00:47:37]Write to MH i2c: E2 08 00 69 80 80 11 00 00 00 00 00 00 63 [00:47:37]Write i2c OK [00:47:37]MH_I2C_Read... [00:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:47:37]Read from MH i2c: E2 [00:47:37]MH_I2C_Read... [00:47:37]Read from MH i2c: E2 17 00 [00:47:37]MH_I2C_Read... [00:47:37]Read from MH i2c: E2 17 00 69 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BA [00:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [00:47:37]wFMCommunicate OK [00:47:37]requested_item fd.num is exist - process it [00:47:37]SAM_PROTO_GetFieldsCounters [00:47:37]wFMCommunicate request_size=4 [00:47:37]MH_SAM_APDU [00:47:37]CAPDU: 80 13 00 00 [00:47:37]Write to MH i2c: E2 08 00 6A 80 80 13 00 00 00 00 00 00 66 [00:47:37]Write i2c OK [00:47:37]MH_I2C_Read... [00:47:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:47:38]Read from MH i2c: E2 [00:47:38]MH_I2C_Read... [00:47:38]Read from MH i2c: E2 62 00 [00:47:38]MH_I2C_Read... [00:47:38]Read from MH i2c: E2 62 00 6A 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 CB E1 01 00 0E 04 04 00 2E 02 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 75 [00:47:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 CB E1 01 00 0E 04 04 00 2E 02 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 [00:47:38]wFMCommunicate OK [00:47:38]SAM_PROTO_GetFieldsCounters done [00:47:38]requested_item shift.num is exist - process it [00:47:38]requested_item shift.opened is exist - process it [00:47:38]req_shift_opened [00:47:38]FM_GetShiftState [00:47:38]SAM_PROTO_GetShiftState [00:47:38]wFMCommunicate request_size=4 [00:47:38]MH_SAM_APDU [00:47:38]CAPDU: 80 13 01 00 [00:47:38]Write to MH i2c: E2 08 00 6B 80 80 13 01 00 00 00 00 00 68 [00:47:38]Write i2c OK [00:47:38]MH_I2C_Read... [00:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:47:38]Read from MH i2c: E2 [00:47:38]MH_I2C_Read... [00:47:38]Read from MH i2c: E2 0E 00 [00:47:38]MH_I2C_Read... [00:47:38]Read from MH i2c: E2 0E 00 6B 80 00 09 00 01 F2 61 46 67 00 00 00 00 90 00 74 [00:47:38]RAPDU: 09 00 01 F2 61 46 67 00 00 00 00 90 00 [00:47:38]wFMCommunicate OK [00:47:38]SAM_PROTO_GetShiftState done [00:47:38]FM_GetShiftState done [00:47:38]req_shift_opened done [00:47:38]requested_item shift.open_date is exist - process it [00:47:38]req_shift_open_date [00:47:38]req_shift_open_date done [00:47:38]produce_requested_data done [00:47:38]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123339,"shift.num":558,"shift.opened":1,"shift.open_date":1732665842} [00:47:38]process_action_free close_receipt [00:47:38]json_value_free [00:47:38]json_value_free done [00:47:38]process_json_proto returns [00:47:38]Send response to host [00:47:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123339,"shift.num":558,"shift.opened":1,"shift.open_date":1732665842}}} [00:47:38]free response buf [00:47:38]execute_script done [00:47:38]execute_script returns [00:47:38]free content buf [00:47:38]Sock 7.Close socket [00:47:38]Sock 7.Thread stoped [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:55:01]OFD Sender: No OFD packet to send [00:55:06]OFD Sender: No OFD packet to send [00:55:11]OFD Sender: No OFD packet to send [00:55:16]OFD Sender: No OFD packet to send [00:55:21]OFD Sender: No OFD packet to send [00:55:26]OFD Sender: No OFD packet to send [00:55:31]OFD Sender: No OFD packet to send [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:26]OFD Sender: No OFD packet to send [01:01:31]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:01:41]OFD Sender: No OFD packet to send [01:01:46]OFD Sender: No OFD packet to send [01:01:51]OFD Sender: No OFD packet to send [01:01:56]OFD Sender: No OFD packet to send [01:02:01]OFD Sender: No OFD packet to send [01:02:06]OFD Sender: No OFD packet to send [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:51]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06:17]OFD Sender: No OFD packet to send [01:06:22]OFD Sender: No OFD packet to send [01:06:27]OFD Sender: No OFD packet to send [01:06:32]OFD Sender: No OFD packet to send [01:06:37]OFD Sender: No OFD packet to send [01:06:42]OFD Sender: No OFD packet to send [01:06:47]OFD Sender: No OFD packet to send [01:06:52]OFD Sender: No OFD packet to send [01:06:57]OFD Sender: No OFD packet to send [01:07:02]OFD Sender: No OFD packet to send [01:07:07]OFD Sender: No OFD packet to send [01:07:12]OFD Sender: No OFD packet to send [01:07:17]OFD Sender: No OFD packet to send [01:07:22]OFD Sender: No OFD packet to send [01:07:27]OFD Sender: No OFD packet to send [01:07:32]OFD Sender: No OFD packet to send [01:07:37]OFD Sender: No OFD packet to send [01:07:42]OFD Sender: No OFD packet to send [01:07:47]OFD Sender: No OFD packet to send [01:07:52]OFD Sender: No OFD packet to send [01:07:57]OFD Sender: No OFD packet to send [01:08:02]OFD Sender: No OFD packet to send [01:08:07]OFD Sender: No OFD packet to send [01:08:12]OFD Sender: No OFD packet to send [01:08:17]OFD Sender: No OFD packet to send [01:08:22]OFD Sender: No OFD packet to send [01:08:27]OFD Sender: No OFD packet to send [01:08:32]OFD Sender: No OFD packet to send [01:08:37]OFD Sender: No OFD packet to send [01:08:42]OFD Sender: No OFD packet to send [01:08:47]OFD Sender: No OFD packet to send [01:08:52]OFD Sender: No OFD packet to send [01:08:57]OFD Sender: No OFD packet to send [01:09:02]OFD Sender: No OFD packet to send [01:09:07]OFD Sender: No OFD packet to send [01:09:12]OFD Sender: No OFD packet to send [01:09:17]OFD Sender: No OFD packet to send [01:09:22]OFD Sender: No OFD packet to send [01:09:27]OFD Sender: No OFD packet to send [01:09:32]OFD Sender: No OFD packet to send [01:09:37]OFD Sender: No OFD packet to send [01:09:42]OFD Sender: No OFD packet to send [01:09:47]OFD Sender: No OFD packet to send [01:09:52]OFD Sender: No OFD packet to send [01:09:57]OFD Sender: No OFD packet to send [01:10:02]OFD Sender: No OFD packet to send [01:10:07]OFD Sender: No OFD packet to send [01:10:12]OFD Sender: No OFD packet to send [01:10:17]OFD Sender: No OFD packet to send [01:10:22]OFD Sender: No OFD packet to send [01:10:27]OFD Sender: No OFD packet to send [01:10:32]OFD Sender: No OFD packet to send [01:10:37]OFD Sender: No OFD packet to send [01:10:42]OFD Sender: No OFD packet to send [01:10:47]OFD Sender: No OFD packet to send [01:10:52]OFD Sender: No OFD packet to send [01:10:57]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:32]OFD Sender: No OFD packet to send [01:12:37]OFD Sender: No OFD packet to send [01:12:42]OFD Sender: No OFD packet to send [01:12:47]OFD Sender: No OFD packet to send [01:12:52]OFD Sender: No OFD packet to send [01:12:57]OFD Sender: No OFD packet to send [01:13:02]OFD Sender: No OFD packet to send [01:13:07]OFD Sender: No OFD packet to send [01:13:12]OFD Sender: No OFD packet to send [01:13:17]OFD Sender: No OFD packet to send [01:13:22]OFD Sender: No OFD packet to send [01:13:27]OFD Sender: No OFD packet to send [01:13:32]OFD Sender: No OFD packet to send [01:13:37]OFD Sender: No OFD packet to send [01:13:42]OFD Sender: No OFD packet to send [01:13:47]OFD Sender: No OFD packet to send [01:13:52]OFD Sender: No OFD packet to send [01:13:57]OFD Sender: No OFD packet to send [01:14:02]OFD Sender: No OFD packet to send [01:14:07]OFD Sender: No OFD packet to send [01:14:12]OFD Sender: No OFD packet to send [01:14:17]OFD Sender: No OFD packet to send [01:14:22]OFD Sender: No OFD packet to send [01:14:27]OFD Sender: No OFD packet to send [01:14:32]OFD Sender: No OFD packet to send [01:14:37]OFD Sender: No OFD packet to send [01:14:42]OFD Sender: No OFD packet to send [01:14:47]OFD Sender: No OFD packet to send [01:14:52]OFD Sender: No OFD packet to send [01:14:57]OFD Sender: No OFD packet to send [01:15:02]OFD Sender: No OFD packet to send [01:15:04]accept exits with 9 [01:15:04]New connection [01:15:04]New thread 3066723684 created [01:15:04]Thread 3066580324 joined [01:15:04]Waiting for new connection... [01:15:04] Sock 9.Parse request [01:15:04]Sock 9.Check first char [01:15:04]Sock 9.First char is OK [01:15:04]request: POST /json_proto HTTP/1.0 [01:15:04]Method: POST [01:15:04]URL: /json_proto [01:15:04]Method is POST - this is cgi request [01:15:04]url: /json_proto [01:15:04]query_string will be loaded in cgi processing [01:15:04]execute_cgi json_proto POST (null) [01:15:04]execute_cgi path=json_proto method=POST [01:15:04]POST find Content-Length [01:15:04]Host: 172.17.37.4:8080 [01:15:04]Content-Length: 677 [01:15:04]Content-Type: application/json [01:15:04] [01:15:04]POST finish read [01:15:04]Found Content-Length = 677 [01:15:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 8.910, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:04]execute_script... [01:15:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.40, "quantity" : 8.910, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:04]POST & json_proto [01:15:04]process_json_proto [01:15:04]json parsed OK: [01:15:04]protocol is kg_v1.0 [01:15:04]action value=close_receipt [01:15:04]process_action close_receipt [01:15:04]cmd_close_receipt [01:15:04]MH_GetDate [01:15:04]Write to MH i2c: F0 00 00 6C 80 DB [01:15:04]Write i2c OK [01:15:04]MH_I2C_Read... [01:15:04]Read from MH i2c: F0 [01:15:04]MH_I2C_Read... [01:15:04]Read from MH i2c: F0 09 00 [01:15:04]MH_I2C_Read... [01:15:04]Read from MH i2c: F0 09 00 6C 80 00 A5 72 46 67 B8 5A 43 67 64 [01:15:04]GetLastDocTimeStamp 1732668466 [01:15:04]current date 1732670117 [01:15:04]FM_GetShiftState [01:15:04]SAM_PROTO_GetShiftState [01:15:04]wFMCommunicate request_size=4 [01:15:04]MH_SAM_APDU [01:15:04]CAPDU: 80 13 01 00 [01:15:04]Write to MH i2c: E2 08 00 6D 80 80 13 01 00 00 00 00 00 6A [01:15:04]Write i2c OK [01:15:04]MH_I2C_Read... [01:15:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:04]Read from MH i2c: E2 [01:15:04]MH_I2C_Read... [01:15:04]Read from MH i2c: E2 0E 00 [01:15:04]MH_I2C_Read... [01:15:04]Read from MH i2c: E2 0E 00 6D 80 00 09 00 01 F2 61 46 67 00 00 00 00 90 00 76 [01:15:04]RAPDU: 09 00 01 F2 61 46 67 00 00 00 00 90 00 [01:15:04]wFMCommunicate OK [01:15:04]SAM_PROTO_GetShiftState done [01:15:04]FM_GetShiftState done [01:15:04]opened in 1732665842 [01:15:04]opened+sec_in_day 1732752242 [01:15:04]quantity*price = 60053 [01:15:04]sum+1 = 60054 [01:15:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 5 27.11.2024 01:15 Смена: 558 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123340 ФПД: 276129807322524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241127T011517&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123340&fm=276129807322524&tin=02508201610067®Number=0000000000092681&sum=60000 [01:15:05]StoreToDocumentArchive [01:15:05]shift 558 fd 123340 [01:15:05]save to /storage/0558/doc_00123340 [01:15:05]save last doc name /storage/0558/doc_00123340 to /storage/kkm_last_doc_name [01:15:05]save OK [01:15:05]Clear old archive folders... [01:15:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:15:05]tlvbuf is 01F340C0 [01:15:05]SAM_PROTO_ClearQueue [01:15:05]wFMCommunicate request_size=4 [01:15:05]MH_SAM_APDU [01:15:05]CAPDU: 80 09 00 00 [01:15:05]Write to MH i2c: E2 08 00 7A 80 80 09 00 00 00 00 00 00 6C [01:15:05]Write i2c OK [01:15:05]MH_I2C_Read... [01:15:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:15:05]Read from MH i2c: E2 [01:15:05]MH_I2C_Read... [01:15:05]Read from MH i2c: E2 03 00 [01:15:05]MH_I2C_Read... [01:15:05]Read from MH i2c: E2 03 00 7A 80 00 90 00 6E [01:15:05]RAPDU: 90 00 [01:15:05]wFMCommunicate OK [01:15:05]SAM_PROTO_ClearQueue done [01:15:05]KKMCreateOFDPacket [01:15:05]OFDProtocolAddRootSTLVToBuf [01:15:05]FM_MakeSignedData [01:15:05]FM_MakeSignedData [01:15:05]SAM_PROTO_SignData [01:15:05]wFMCommunicate request_size=4 [01:15:05]MH_SAM_APDU [01:15:05]CAPDU: 80 0D 01 02 [01:15:05]Write to MH i2c: E2 08 00 7B 80 80 0D 01 02 00 00 00 00 74 [01:15:05]Write i2c OK [01:15:05]MH_I2C_Read... [01:15:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:15:05]Read from MH i2c: E2 [01:15:05]MH_I2C_Read... [01:15:05]Read from MH i2c: E2 03 00 [01:15:05]MH_I2C_Read... [01:15:05]Read from MH i2c: E2 03 00 7B 80 00 90 00 6F [01:15:05]RAPDU: 90 00 [01:15:05]wFMCommunicate OK [01:15:05]wFMCommunicate request_size=255 [01:15:05]MH_SAM_APDU [01:15:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 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 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A5 72 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CC E1 01 00 35 04 06 00 FB [01:15:05]Write to MH i2c: E2 02 01 7C 80 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 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 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 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A5 72 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CC E1 01 00 35 04 06 00 FB 00 00 AB [01:15:05]Write i2c OK [01:15:05]MH_I2C_Read... [01:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:05]Read from MH i2c: E2 [01:15:05]MH_I2C_Read... [01:15:05]Read from MH i2c: E2 03 00 [01:15:05]MH_I2C_Read... [01:15:05]Read from MH i2c: E2 03 00 7C 80 00 90 00 70 [01:15:05]RAPDU: 90 00 [01:15:05]wFMCommunicate OK [01:15:05]wFMCommunicate request_size=10 [01:15:05]MH_SAM_APDU [01:15:05]CAPDU: 80 0D 02 02 05 23 7B 13 CD 9C [01:15:05]Write to MH i2c: E2 0D 00 7D 80 80 0D 02 02 05 00 23 7B 13 CD 9C 00 00 9B [01:15:05]Write i2c OK [01:15:05]MH_I2C_Read... [01:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:05]Read from MH i2c: E2 [01:15:05]MH_I2C_Read... [01:15:05]Read from MH i2c: E2 03 00 [01:15:05]MH_I2C_Read... [01:15:05]Read from MH i2c: E2 03 00 7D 80 00 90 00 71 [01:15:05]RAPDU: 90 00 [01:15:05]wFMCommunicate OK [01:15:05]wFMCommunicate request_size=4 [01:15:05]MH_SAM_APDU [01:15:05]CAPDU: 80 0D 03 02 [01:15:05]Write to MH i2c: E2 08 00 7E 80 80 0D 03 02 00 00 00 00 79 [01:15:05]Write i2c OK [01:15:05]MH_I2C_Read... [01:15:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:15:05]Read from MH i2c: E2 [01:15:05]MH_I2C_Read... [01:15:05]Read from MH i2c: E2 0B 00 [01:15:05]MH_I2C_Read... [01:15:05]Read from MH i2c: E2 0B 00 7E 80 00 77 9E 66 80 C7 C8 68 86 90 00 F2 [01:15:05]RAPDU: 77 9E 66 80 C7 C8 68 86 90 00 [01:15:05]wFMCommunicate OK [01:15:05]SAM_PROTO_SignData done [01:15:05]FM_MakeSignedData done [01:15:05]CreateOFDProtocolMessage [01:15:05]wFMCommunicate request_size=4 [01:15:05]MH_SAM_APDU [01:15:05]CAPDU: 80 11 00 00 [01:15:05]Write to MH i2c: E2 08 00 7F 80 80 11 00 00 00 00 00 00 79 [01:15:05]Write i2c OK [01:15:05]MH_I2C_Read... [01:15:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:05]Read from MH i2c: E2 [01:15:05]MH_I2C_Read... [01:15:05]Read from MH i2c: E2 17 00 [01:15:05]MH_I2C_Read... [01:15:05]Read from MH i2c: E2 17 00 7F 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D0 [01:15:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [01:15:05]wFMCommunicate OK [01:15:05]CreateOFDProtocolMessage done [01:15:05]OFDSenderStorePacket 123340 [01:15:05]StoreOFDPacket docnum=123340 [01:15:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3D D5 07 01 B9 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 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 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A5 72 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CC E1 01 00 35 04 06 00 FB 23 7B 13 CD 9C 77 9E 66 80 C7 C8 68 86 [01:15:05]CheckFolder [01:15:05]dirname=/storage/ofd_packets [01:15:05]CheckFolder done [01:15:05]ProducePacketName [01:15:05]name=ofd_packets/00123340 [01:15:05]NVStorageSaveData ofd_packets/00123340 [01:15:05]File name is /storage/ofd_packets/00123340 [01:15:05]Write 301 bytes [01:15:05]NVStorageSaveData done [01:15:05]OFDSenderStorePacket done [01:15:05]KKMCreateOFDPacket done [01:15:05]NVStorageSaveData kkm_last_timestamp [01:15:05]File name is /storage/kkm_last_timestamp [01:15:05]Write 4 bytes [01:15:05]NVStorageSaveData done [01:15:05]ExternCall_PrintAddStr [01:15:05]wPrintStart [01:15:05]Write to MH i2c: 01 00 00 80 80 00 [01:15:05]Write i2c OK [01:15:05]MH_I2C_Read... [01:15:05]Read from MH i2c: 01 [01:15:05]MH_I2C_Read... [01:15:05]Read from MH i2c: 01 07 00 [01:15:05]MH_I2C_Read... [01:15:05]Read from MH i2c: 01 07 00 80 80 00 00 00 00 00 FF 0F 15 [01:15:05]RasterBufferAndPrint [01:15:05]line Счет N : (1)718168 [01:15:05]line ИНН: 02508201610067 [01:15:05]line Контрольно-Кассовый Чек [01:15:05]line ПРОДАЖА [01:15:05]line ТРК (МРК, ГНК) : 12 [01:15:05]line Товар: 2710124130 [01:15:05]line Аи-92-К-4 [01:15:05]line 8.910 * 67.40 [01:15:05]line = 600.53 [01:15:05]line НДС 12% НСП 1% [01:15:05]line > о реализуемом товаре [01:15:05]line ОКРУГЛЕНИЕ: -0.53 [01:15:05]line ИТОГО: 600.00 [01:15:05]line Внесено: 600.00 [01:15:05]line СДАЧА: 0.00 [01:15:05]line НСП 1% : 5.31 [01:15:05]line НДС 12% : 63.77 [01:15:05]line Наличными: 600.00 [01:15:05]line Безнал.: 0.00 [01:15:05]line Место: АЗС № 64 "Партнер Нефть" [01:15:05]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [01:15:05]line СНО: Общий режим [01:15:05]line Чек 5 27.11.2024 01:15 [01:15:05]line Смена: 558 ФФД: 1.0 [01:15:05]line ЗНМ: 0300000033 [01:15:05]line РНМ: 0000000000092681 [01:15:05]line Версия ККМ: 001 [01:15:05]line ФМ: 0000000000874881 [01:15:05]line ФД: 123340 [01:15:05]line ФПД: 276129807322524 [01:15:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241127T011517&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123340&fm=276129807322524&tin=02508201610067®Number=0000000000092681&sum=60000 [01:15:06]OFD Sender: Processing packet 123340 [packets to send 7, broken 6] [01:15:06]ProducePacketName [01:15:06]name=ofd_packets/00123340 [01:15:06]OFD Sender: To server: pG, [01:15:06]CommunicateWithHost lk.salyk.kg:30040 [01:15:06]ConnectInit lk.salyk.kg [01:15:06]written 0, free lines is 4095 [01:15:06]Connected sock=10 [01:15:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 3D D5 07 01 B9 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 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 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A5 72 46 67 0E 04 04 00 2E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CC E1 01 00 35 04 06 00 FB 23 7B 13 CD 9C 77 9E 66 80 C7 C8 68 86 [01:15:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 90 0F 47 00 E4 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CC E1 01 00 F4 03 04 00 66 1E 46 67 B6 04 01 00 00 B6 C2 12 A3 84 AD 87 96 [01:15:06]CommunicateWithHost err = 0 [01:15:06]CheckOFDResponse [01:15:06]1017 (14) - 77093643461234 [01:15:06]1041 (16) - 0000000000874881 [01:15:06]1040 (4) - 123340 [01:15:06]1012 (4) - 26.11.2024 19:15 [01:15:06]1206 (1) - 0 [01:15:06]OFD Sender: Remove packet 123340 [01:15:06]ProducePacketName [01:15:06]name=ofd_packets/00123340 [01:15:06]NVStorageDeleteData [01:15:06]Write to MH i2c: 01 00 00 AB 80 2B [01:15:06]Write i2c OK [01:15:06]MH_I2C_Read... [01:15:06]Read from MH i2c: 01 [01:15:06]MH_I2C_Read... [01:15:06]Read from MH i2c: 01 07 00 [01:15:06]MH_I2C_Read... [01:15:06]Read from MH i2c: 01 07 00 AB 80 00 00 00 00 00 4C 0C 8A [01:15:06]RasterBufferAndPrint [01:15:06]line [01:15:06]line [01:15:06]line [01:15:06]line [01:15:06]line [01:15:06]written 0, free lines is 3152 [01:15:06]MH_Cut [01:15:06]Write to MH i2c: D1 01 00 B2 80 01 04 [01:15:06]Write i2c OK [01:15:06]MH_I2C_Read... [01:15:06]Read from MH i2c: D1 [01:15:06]MH_I2C_Read... [01:15:06]Read from MH i2c: D1 01 00 [01:15:06]MH_I2C_Read... [01:15:06]Read from MH i2c: D1 01 00 B2 80 00 03 [01:15:06]Write to MH i2c: 01 00 00 B3 80 33 [01:15:06]Write i2c OK [01:15:06]MH_I2C_Read... [01:15:07]OFD Sender: No OFD packet to send [01:15:08]*** Cut start [01:15:08]*** Partial cut [01:15:08]*** CUTSNS_PIN = 1 [01:15:08]*** CUTSNS_PIN = 0 [01:15:08]*** Brake cut motor [01:15:08]Read from MH i2c: 01 [01:15:08]MH_I2C_Read... [01:15:08]*** Stop cut motor [01:15:08]*** Cut end [01:15:08]Read from MH i2c: 01 07 00 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: 01 07 00 B3 80 00 00 00 00 00 FF 0F 48 [01:15:08]process_action close_receipt done [01:15:08]requested_data is exist [01:15:08]produce_requested_data [01:15:08]requested_item fm.sn is exist - process it [01:15:08]wFMCommunicate request_size=4 [01:15:08]MH_SAM_APDU [01:15:08]CAPDU: 80 11 00 00 [01:15:08]Write to MH i2c: E2 08 00 B4 80 80 11 00 00 00 00 00 00 AE [01:15:08]Write i2c OK [01:15:08]MH_I2C_Read... [01:15:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:08]Read from MH i2c: E2 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 17 00 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 17 00 B4 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 05 [01:15:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [01:15:08]wFMCommunicate OK [01:15:08]requested_item fd.num is exist - process it [01:15:08]SAM_PROTO_GetFieldsCounters [01:15:08]wFMCommunicate request_size=4 [01:15:08]MH_SAM_APDU [01:15:08]CAPDU: 80 13 00 00 [01:15:08]Write to MH i2c: E2 08 00 B5 80 80 13 00 00 00 00 00 00 B1 [01:15:08]Write i2c OK [01:15:08]MH_I2C_Read... [01:15:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:15:08]Read from MH i2c: E2 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 62 00 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 62 00 B5 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 CC E1 01 00 0E 04 04 00 2E 02 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 C4 [01:15:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 10 04 04 00 CC E1 01 00 0E 04 04 00 2E 02 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 [01:15:08]wFMCommunicate OK [01:15:08]SAM_PROTO_GetFieldsCounters done [01:15:08]requested_item shift.num is exist - process it [01:15:08]requested_item shift.opened is exist - process it [01:15:08]req_shift_opened [01:15:08]FM_GetShiftState [01:15:08]SAM_PROTO_GetShiftState [01:15:08]wFMCommunicate request_size=4 [01:15:08]MH_SAM_APDU [01:15:08]CAPDU: 80 13 01 00 [01:15:08]Write to MH i2c: E2 08 00 B6 80 80 13 01 00 00 00 00 00 B3 [01:15:08]Write i2c OK [01:15:08]MH_I2C_Read... [01:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:09]Read from MH i2c: E2 [01:15:09]MH_I2C_Read... [01:15:09]Read from MH i2c: E2 0E 00 [01:15:09]MH_I2C_Read... [01:15:09]Read from MH i2c: E2 0E 00 B6 80 00 09 00 01 F2 61 46 67 00 00 00 00 90 00 BF [01:15:09]RAPDU: 09 00 01 F2 61 46 67 00 00 00 00 90 00 [01:15:09]wFMCommunicate OK [01:15:09]SAM_PROTO_GetShiftState done [01:15:09]FM_GetShiftState done [01:15:09]req_shift_opened done [01:15:09]requested_item shift.open_date is exist - process it [01:15:09]req_shift_open_date [01:15:09]req_shift_open_date done [01:15:09]produce_requested_data done [01:15:09]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123340,"shift.num":558,"shift.opened":1,"shift.open_date":1732665842} [01:15:09]process_action_free close_receipt [01:15:09]json_value_free [01:15:09]json_value_free done [01:15:09]process_json_proto returns [01:15:09]Send response to host [01:15:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123340,"shift.num":558,"shift.opened":1,"shift.open_date":1732665842}}} [01:15:09]free response buf [01:15:09]execute_script done [01:15:09]execute_script returns [01:15:09]free content buf [01:15:09]Sock 9.Close socket [01:15:09]Sock 9.Thread stoped [01:15:12]OFD Sender: No OFD packet to send [01:15:17]OFD Sender: No OFD packet to send [01:15:22]OFD Sender: No OFD packet to send [01:15:27]OFD Sender: No OFD packet to send [01:15:32]OFD Sender: No OFD packet to send [01:15:37]OFD Sender: No OFD packet to send [01:15:42]OFD Sender: No OFD packet to send [01:15:47]OFD Sender: No OFD packet to send [01:15:52]OFD Sender: No OFD packet to send [01:15:57]OFD Sender: No OFD packet to send [01:16:02]OFD Sender: No OFD packet to send [01:16:07]OFD Sender: No OFD packet to send [01:16:12]OFD Sender: No OFD packet to send [01:16:17]OFD Sender: No OFD packet to send [01:16:22]OFD Sender: No OFD packet to send [01:16:27]OFD Sender: No OFD packet to send [01:16:32]OFD Sender: No OFD packet to send [01:16:37]OFD Sender: No OFD packet to send [01:16:42]OFD Sender: No OFD packet to send [01:16:47]OFD Sender: No OFD packet to send [01:16:52]OFD Sender: No OFD packet to send [01:16:57]OFD Sender: No OFD packet to send [01:17:02]OFD Sender: No OFD packet to send [01:17:07]OFD Sender: No OFD packet to send [01:17:12]OFD Sender: No OFD packet to send [01:17:17]OFD Sender: No OFD packet to send [01:17:22]OFD Sender: No OFD packet to send [01:17:27]OFD Sender: No OFD packet to send [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:22]OFD Sender: No OFD packet to send [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:57]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:22]OFD Sender: No OFD packet to send [01:20:27]OFD Sender: No OFD packet to send [01:20:32]OFD Sender: No OFD packet to send [01:20:37]OFD Sender: No OFD packet to send [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]OFD Sender: No OFD packet to send [01:23:37]OFD Sender: No OFD packet to send [01:23:42]OFD Sender: No OFD packet to send [01:23:47]OFD Sender: No OFD packet to send [01:23:52]OFD Sender: No OFD packet to send [01:23:57]OFD Sender: No OFD packet to send [01:24:02]OFD Sender: No OFD packet to send [01:24:07]OFD Sender: No OFD packet to send [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:27]OFD Sender: No OFD packet to send [01:25:32]OFD Sender: No OFD packet to send [01:25:37]OFD Sender: No OFD packet to send [01:25:42]OFD Sender: No OFD packet to send [01:25:47]OFD Sender: No OFD packet to send [01:25:52]OFD Sender: No OFD packet to send [01:25:57]OFD Sender: No OFD packet to send [01:26:02]OFD Sender: No OFD packet to send [01:26:07]OFD Sender: No OFD packet to send [01:26:12]OFD Sender: No OFD packet to send [01:26:17]OFD Sender: No OFD packet to send [01:26:22]OFD Sender: No OFD packet to send [01:26:27]OFD Sender: No OFD packet to send [01:26:32]OFD Sender: No OFD packet to send [01:26:37]OFD Sender: No OFD packet to send [01:26:42]OFD Sender: No OFD packet to send [01:26:47]OFD Sender: No OFD packet to send [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:43]OFD Sender: No OFD packet to send [01:39:48]OFD Sender: No OFD packet to send [01:39:53]OFD Sender: No OFD packet to send [01:39:58]OFD Sender: No OFD packet to send [01:40:03]OFD Sender: No OFD packet to send [01:40:08]OFD Sender: No OFD packet to send [01:40:13]OFD Sender: No OFD packet to send [01:40:18]OFD Sender: No OFD packet to send [01:40:23]OFD Sender: No OFD packet to send [01:40:28]OFD Sender: No OFD packet to send [01:40:33]OFD Sender: No OFD packet to send [01:40:38]OFD Sender: No OFD packet to send [01:40:43]OFD Sender: No OFD packet to send [01:40:48]OFD Sender: No OFD packet to send [01:40:53]OFD Sender: No OFD packet to send [01:40:58]OFD Sender: No OFD packet to send [01:41:03]OFD Sender: No OFD packet to send [01:41:08]OFD Sender: No OFD packet to send [01:41:13]OFD Sender: No OFD packet to send [01:41:18]OFD Sender: No OFD packet to send [01:41:23]OFD Sender: No OFD packet to send [01:41:28]OFD Sender: No OFD packet to send [01:41:33]OFD Sender: No OFD packet to send [01:41:38]OFD Sender: No OFD packet to send [01:41:43]OFD Sender: No OFD packet to send [01:41:48]OFD Sender: No OFD packet to send [01:41:53]OFD Sender: No OFD packet to send [01:41:58]OFD Sender: No OFD packet to send [01:42:03]OFD Sender: No OFD packet to send [01:42:08]OFD Sender: No OFD packet to send [01:42:13]OFD Sender: No OFD packet to send [01:42:18]OFD Sender: No OFD packet to send [01:42:23]OFD Sender: No OFD packet to send [01:42:28]OFD Sender: No OFD packet to send [01:42:33]OFD Sender: No OFD packet to send [01:42:38]OFD Sender: No OFD packet to send [01:42:43]OFD Sender: No OFD packet to send [01:42:48]OFD Sender: No OFD packet to send [01:42:53]OFD Sender: No OFD packet to send [01:42:58]OFD Sender: No OFD packet to send [01:43:03]OFD Sender: No OFD packet to send [01:43:08]OFD Sender: No OFD packet to send [01:43:13]OFD Sender: No OFD packet to send [01:43:18]OFD Sender: No OFD packet to send [01:43:23]OFD Sender: No OFD packet to send [01:43:28]OFD Sender: No OFD packet to send [01:43:33]OFD Sender: No OFD packet to send [01:43:38]OFD Sender: No OFD packet to send [01:43:43]OFD Sender: No OFD packet to send [01:43:48]OFD Sender: No OFD packet to send [01:43:53]OFD Sender: No OFD packet to send [01:43:58]OFD Sender: No OFD packet to send [01:44:03]OFD Sender: No OFD packet to send [01:44:08]OFD Sender: No OFD packet to send [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:33]OFD Sender: No OFD packet to send [01:46:38]OFD Sender: No OFD packet to send [01:46:43]OFD Sender: No OFD packet to send [01:46:48]OFD Sender: No OFD packet to send [01:46:53]OFD Sender: No OFD packet to send [01:46:58]OFD Sender: No OFD packet to send [01:47:03]OFD Sender: No OFD packet to send [01:47:08]OFD Sender: No OFD packet to send [01:47:13]OFD Sender: No OFD packet to send [01:47:18]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:28]OFD Sender: No OFD packet to send [01:47:33]OFD Sender: No OFD packet to send [01:47:38]OFD Sender: No OFD packet to send [01:47:43]OFD Sender: No OFD packet to send [01:47:48]OFD Sender: No OFD packet to send [01:47:53]OFD Sender: No OFD packet to send [01:47:58]OFD Sender: No OFD packet to send [01:48:03]OFD Sender: No OFD packet to send [01:48:08]OFD Sender: No OFD packet to send [01:48:13]OFD Sender: No OFD packet to send [01:48:18]OFD Sender: No OFD packet to send [01:48:23]OFD Sender: No OFD packet to send [01:48:28]OFD Sender: No OFD packet to send [01:48:33]OFD Sender: No OFD packet to send [01:48:38]OFD Sender: No OFD packet to send [01:48:43]OFD Sender: No OFD packet to send [01:48:48]OFD Sender: No OFD packet to send [01:48:53]OFD Sender: No OFD packet to send [01:48:58]OFD Sender: No OFD packet to send [01:49:03]OFD Sender: No OFD packet to send [01:49:08]OFD Sender: No OFD packet to send [01:49:13]OFD Sender: No OFD packet to send [01:49:18]OFD Sender: No OFD packet to send [01:49:23]OFD Sender: No OFD packet to send [01:49:28]OFD Sender: No OFD packet to send [01:49:33]OFD Sender: No OFD packet to send [01:49:38]OFD Sender: No OFD packet to send [01:49:43]OFD Sender: No OFD packet to send [01:49:48]OFD Sender: No OFD packet to send [01:49:53]OFD Sender: No OFD packet to send [01:49:58]OFD Sender: No OFD packet to send [01:50:03]OFD Sender: No OFD packet to send [01:50:08]OFD Sender: No OFD packet to send [01:50:13]OFD Sender: No OFD packet to send [01:50:18]OFD Sender: No OFD packet to send [01:50:23]OFD Sender: No OFD packet to send [01:50:28]OFD Sender: No OFD packet to send [01:50:33]OFD Sender: No OFD packet to send [01:50:38]OFD Sender: No OFD packet to send [01:50:43]OFD Sender: No OFD packet to send [01:50:48]OFD Sender: No OFD packet to send [01:50:53]OFD Sender: No OFD packet to send [01:50:58]OFD Sender: No OFD packet to send [01:51:03]OFD Sender: No OFD packet to send [01:51:08]OFD Sender: No OFD packet to send [01:51:13]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:23]OFD Sender: No OFD packet to send [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:39]OFD Sender: No OFD packet to send [01:59:44]OFD Sender: No OFD packet to send [01:59:49]OFD Sender: No OFD packet to send [01:59:54]OFD Sender: No OFD packet to send [01:59:59]OFD Sender: No OFD packet to send [02:00:04]OFD Sender: No OFD packet to send [02:00:09]OFD Sender: No OFD packet to send [02:00:14]OFD Sender: No OFD packet to send [02:00:19]OFD Sender: No OFD packet to send [02:00:24]OFD Sender: No OFD packet to send [02:00:29]OFD Sender: No OFD packet to send [02:00:34]OFD Sender: No OFD packet to send [02:00:39]OFD Sender: No OFD packet to send [02:00:44]OFD Sender: No OFD packet to send [02:00:49]OFD Sender: No OFD packet to send [02:00:54]OFD Sender: No OFD packet to send [02:00:59]OFD Sender: No OFD packet to send [02:01:04]OFD Sender: No OFD packet to send [02:01:09]OFD Sender: No OFD packet to send [02:01:14]OFD Sender: No OFD packet to send [02:01:19]OFD Sender: No OFD packet to send [02:01:24]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:54]OFD Sender: No OFD packet to send [02:01:59]OFD Sender: No OFD packet to send [02:02:04]OFD Sender: No OFD packet to send [02:02:09]OFD Sender: No OFD packet to send [02:02:14]OFD Sender: No OFD packet to send [02:02:19]OFD Sender: No OFD packet to send [02:02:24]OFD Sender: No OFD packet to send [02:02:29]OFD Sender: No OFD packet to send [02:02:34]OFD Sender: No OFD packet to send [02:02:39]OFD Sender: No OFD packet to send [02:02:44]OFD Sender: No OFD packet to send [02:02:49]OFD Sender: No OFD packet to send [02:02:54]OFD Sender: No OFD packet to send [02:02:59]OFD Sender: No OFD packet to send [02:03:04]OFD Sender: No OFD packet to send [02:03:09]OFD Sender: No OFD packet to send [02:03:14]OFD Sender: No OFD packet to send [02:03:19]OFD Sender: No OFD packet to send [02:03:24]OFD Sender: No OFD packet to send [02:03:29]OFD Sender: No OFD packet to send [02:03:34]OFD Sender: No OFD packet to send [02:03:39]OFD Sender: No OFD packet to send [02:03:44]OFD Sender: No OFD packet to send [02:03:49]OFD Sender: No OFD packet to send [02:03:54]OFD Sender: No OFD packet to send [02:03:59]OFD Sender: No OFD packet to send [02:04:04]OFD Sender: No OFD packet to send [02:04:09]OFD Sender: No OFD packet to send [02:04:14]OFD Sender: No OFD packet to send [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:59]OFD Sender: No OFD packet to send [02:05:04]OFD Sender: No OFD packet to send [02:05:09]OFD Sender: No OFD packet to send [02:05:14]OFD Sender: No OFD packet to send [02:05:19]OFD Sender: No OFD packet to send [02:05:24]OFD Sender: No OFD packet to send [02:05:29]OFD Sender: No OFD packet to send [02:05:34]OFD Sender: No OFD packet to send [02:05:39]OFD Sender: No OFD packet to send [02:05:44]OFD Sender: No OFD packet to send [02:05:49]OFD Sender: No OFD packet to send [02:05:54]OFD Sender: No OFD packet to send [02:05:59]OFD Sender: No OFD packet to send [02:06:04]OFD Sender: No OFD packet to send [02:06:09]OFD Sender: No OFD packet to send [02:06:14]OFD Sender: No OFD packet to send [02:06:19]OFD Sender: No OFD packet to send [02:06:24]OFD Sender: No OFD packet to send [02:06:29]OFD Sender: No OFD packet to send [02:06:34]OFD Sender: No OFD packet to send [02:06:39]OFD Sender: No OFD packet to send [02:06:44]OFD Sender: No OFD packet to send [02:06:49]OFD Sender: No OFD packet to send [02:06:54]OFD Sender: No OFD packet to send [02:06:59]OFD Sender: No OFD packet to send [02:07:04]OFD Sender: No OFD packet to send [02:07:09]OFD Sender: No OFD packet to send [02:07:14]OFD Sender: No OFD packet to send [02:07:19]OFD Sender: No OFD packet to send [02:07:24]OFD Sender: No OFD packet to send [02:07:29]OFD Sender: No OFD packet to send [02:07:34]OFD Sender: No OFD packet to send [02:07:39]OFD Sender: No OFD packet to send [02:07:44]OFD Sender: No OFD packet to send [02:07:49]OFD Sender: No OFD packet to send [02:07:54]OFD Sender: No OFD packet to send [02:07:59]OFD Sender: No OFD packet to send [02:08:04]OFD Sender: No OFD packet to send [02:08:09]OFD Sender: No OFD packet to send [02:08:14]OFD Sender: No OFD packet to send [02:08:19]OFD Sender: No OFD packet to send [02:08:24]OFD Sender: No OFD packet to send [02:08:29]OFD Sender: No OFD packet to send [02:08:34]OFD Sender: No OFD packet to send [02:08:39]OFD Sender: No OFD packet to send [02:08:44]OFD Sender: No OFD packet to send [02:08:49]OFD Sender: No OFD packet to send [02:08:54]OFD Sender: No OFD packet to send [02:08:59]OFD Sender: No OFD packet to send [02:09:04]OFD Sender: No OFD packet to send [02:09:09]OFD Sender: No OFD packet to send [02:09:14]OFD Sender: No OFD packet to send [02:09:19]OFD Sender: No OFD packet to send [02:09:24]OFD Sender: No OFD packet to send [02:09:29]OFD Sender: No OFD packet to send [02:09:34]OFD Sender: No OFD packet to send [02:09:39]OFD Sender: No OFD packet to send [02:09:44]OFD Sender: No OFD packet to send [02:09:49]OFD Sender: No OFD packet to send [02:09:54]OFD Sender: No OFD packet to send [02:09:59]OFD Sender: No OFD packet to send [02:10:04]OFD Sender: No OFD packet to send [02:10:09]OFD Sender: No OFD packet to send [02:10:14]OFD Sender: No OFD packet to send [02:10:19]OFD Sender: No OFD packet to send [02:10:24]OFD Sender: No OFD packet to send [02:10:29]OFD Sender: No OFD packet to send [02:10:34]OFD Sender: No OFD packet to send [02:10:39]OFD Sender: No OFD packet to send [02:10:44]OFD Sender: No OFD packet to send [02:10:49]OFD Sender: No OFD packet to send [02:10:54]OFD Sender: No OFD packet to send [02:10:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:54]OFD Sender: No OFD packet to send [02:12:59]OFD Sender: No OFD packet to send [02:13:04]OFD Sender: No OFD packet to send [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:54]OFD Sender: No OFD packet to send [02:14:59]OFD Sender: No OFD packet to send [02:15:04]OFD Sender: No OFD packet to send [02:15:09]OFD Sender: No OFD packet to send [02:15:14]OFD Sender: No OFD packet to send [02:15:19]OFD Sender: No OFD packet to send [02:15:24]OFD Sender: No OFD packet to send [02:15:29]OFD Sender: No OFD packet to send [02:15:34]OFD Sender: No OFD packet to send [02:15:39]OFD Sender: No OFD packet to send [02:15:44]OFD Sender: No OFD packet to send [02:15:49]OFD Sender: No OFD packet to send [02:15:54]OFD Sender: No OFD packet to send [02:15:59]OFD Sender: No OFD packet to send [02:16:04]OFD Sender: No OFD packet to send [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:19]OFD Sender: No OFD packet to send [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:51]OFD Sender: No OFD packet to send [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:11]OFD Sender: No OFD packet to send [02:51:16]OFD Sender: No OFD packet to send [02:51:21]OFD Sender: No OFD packet to send [02:51:26]OFD Sender: No OFD packet to send [02:51:31]OFD Sender: No OFD packet to send [02:51:36]OFD Sender: No OFD packet to send [02:51:41]OFD Sender: No OFD packet to send [02:51:46]OFD Sender: No OFD packet to send [02:51:51]OFD Sender: No OFD packet to send [02:51:56]OFD Sender: No OFD packet to send [02:52:01]OFD Sender: No OFD packet to send [02:52:06]OFD Sender: No OFD packet to send [02:52:11]OFD Sender: No OFD packet to send [02:52:16]OFD Sender: No OFD packet to send [02:52:21]OFD Sender: No OFD packet to send [02:52:26]OFD Sender: No OFD packet to send [02:52:31]OFD Sender: No OFD packet to send [02:52:36]OFD Sender: No OFD packet to send [02:52:41]OFD Sender: No OFD packet to send [02:52:46]OFD Sender: No OFD packet to send [02:52:51]OFD Sender: No OFD packet to send [02:52:56]OFD Sender: No OFD packet to send [02:53:01]OFD Sender: No OFD packet to send [02:53:06]OFD Sender: No OFD packet to send [02:53:11]OFD Sender: No OFD packet to send [02:53:16]OFD Sender: No OFD packet to send [02:53:21]OFD Sender: No OFD packet to send [02:53:26]OFD Sender: No OFD packet to send [02:53:31]OFD Sender: No OFD packet to send [02:53:36]OFD Sender: No OFD packet to send [02:53:41]OFD Sender: No OFD packet to send [02:53:46]OFD Sender: No OFD packet to send [02:53:51]OFD Sender: No OFD packet to send [02:53:56]OFD Sender: No OFD packet to send [02:54:01]OFD Sender: No OFD packet to send [02:54:06]OFD Sender: No OFD packet to send [02:54:11]OFD Sender: No OFD packet to send [02:54:16]OFD Sender: No OFD packet to send [02:54:21]OFD Sender: No OFD packet to send [02:54:26]OFD Sender: No OFD packet to send [02:54:31]OFD Sender: No OFD packet to send [02:54:36]OFD Sender: No OFD packet to send [02:54:41]OFD Sender: No OFD packet to send [02:54:46]OFD Sender: No OFD packet to send [02:54:51]OFD Sender: No OFD packet to send [02:54:56]OFD Sender: No OFD packet to send [02:55:01]OFD Sender: No OFD packet to send [02:55:06]OFD Sender: No OFD packet to send [02:55:11]OFD Sender: No OFD packet to send [02:55:16]OFD Sender: No OFD packet to send [02:55:21]OFD Sender: No OFD packet to send [02:55:26]OFD Sender: No OFD packet to send [02:55:31]OFD Sender: No OFD packet to send [02:55:36]OFD Sender: No OFD packet to send [02:55:41]OFD Sender: No OFD packet to send [02:55:46]OFD Sender: No OFD packet to send [02:55:51]OFD Sender: No OFD packet to send [02:55:56]OFD Sender: No OFD packet to send [02:56:01]OFD Sender: No OFD packet to send [02:56:06]OFD Sender: No OFD packet to send [02:56:11]OFD Sender: No OFD packet to send [02:56:16]OFD Sender: No OFD packet to send [02:56:21]OFD Sender: No OFD packet to send [02:56:26]OFD Sender: No OFD packet to send [02:56:31]OFD Sender: No OFD packet to send [02:56:36]OFD Sender: No OFD packet to send [02:56:41]OFD Sender: No OFD packet to send [02:56:46]OFD Sender: No OFD packet to send [02:56:51]OFD Sender: No OFD packet to send [02:56:56]OFD Sender: No OFD packet to send [02:57:01]OFD Sender: No OFD packet to send [02:57:06]OFD Sender: No OFD packet to send [02:57:11]OFD Sender: No OFD packet to send [02:57:16]OFD Sender: No OFD packet to send [02:57:21]OFD Sender: No OFD packet to send [02:57:26]OFD Sender: No OFD packet to send [02:57:31]OFD Sender: No OFD packet to send [02:57:36]OFD Sender: No OFD packet to send [02:57:41]OFD Sender: No OFD packet to send [02:57:46]OFD Sender: No OFD packet to send [02:57:51]OFD Sender: No OFD packet to send [02:57:56]OFD Sender: No OFD packet to send [02:58:01]OFD Sender: No OFD packet to send [02:58:06]OFD Sender: No OFD packet to send [02:58:11]OFD Sender: No OFD packet to send [02:58:16]OFD Sender: No OFD packet to send [02:58:21]OFD Sender: No OFD packet to send [02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:36]OFD Sender: No OFD packet to send [02:58:41]OFD Sender: No OFD packet to send [02:58:46]OFD Sender: No OFD packet to send [02:58:51]OFD Sender: No OFD packet to send [02:58:56]OFD Sender: No OFD packet to send [02:59:01]OFD Sender: No OFD packet to send [02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send