[02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:32]OFD Sender: No OFD packet to send [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:37]OFD Sender: No OFD packet to send [03:12:42]OFD Sender: No OFD packet to send [03:12:47]OFD Sender: No OFD packet to send [03:12:52]OFD Sender: No OFD packet to send [03:12:57]OFD Sender: No OFD packet to send [03:13:02]OFD Sender: No OFD packet to send [03:13:07]OFD Sender: No OFD packet to send [03:13:12]OFD Sender: No OFD packet to send [03:13:17]OFD Sender: No OFD packet to send [03:13:22]OFD Sender: No OFD packet to send [03:13:27]OFD Sender: No OFD packet to send [03:13:32]OFD Sender: No OFD packet to send [03:13:37]OFD Sender: No OFD packet to send [03:13:42]OFD Sender: No OFD packet to send [03:13:47]OFD Sender: No OFD packet to send [03:13:52]OFD Sender: No OFD packet to send [03:13:57]OFD Sender: No OFD packet to send [03:14:02]OFD Sender: No OFD packet to send [03:14:07]OFD Sender: No OFD packet to send [03:14:12]OFD Sender: No OFD packet to send [03:14:17]OFD Sender: No OFD packet to send [03:14:22]OFD Sender: No OFD packet to send [03:14:27]OFD Sender: No OFD packet to send [03:14:32]OFD Sender: No OFD packet to send [03:14:37]OFD Sender: No OFD packet to send [03:14:42]OFD Sender: No OFD packet to send [03:14:47]OFD Sender: No OFD packet to send [03:14:52]OFD Sender: No OFD packet to send [03:14:57]OFD Sender: No OFD packet to send [03:15:02]OFD Sender: No OFD packet to send [03:15:07]OFD Sender: No OFD packet to send [03:15:12]OFD Sender: No OFD packet to send [03:15:17]OFD Sender: No OFD packet to send [03:15:22]OFD Sender: No OFD packet to send [03:15:27]OFD Sender: No OFD packet to send [03:15:32]OFD Sender: No OFD packet to send [03:15:37]OFD Sender: No OFD packet to send [03:15:42]OFD Sender: No OFD packet to send [03:15:47]OFD Sender: No OFD packet to send [03:15:52]OFD Sender: No OFD packet to send [03:15:57]OFD Sender: No OFD packet to send [03:16:02]OFD Sender: No OFD packet to send [03:16:07]OFD Sender: No OFD packet to send [03:16:12]OFD Sender: No OFD packet to send [03:16:17]OFD Sender: No OFD packet to send [03:16:22]OFD Sender: No OFD packet to send [03:16:27]OFD Sender: No OFD packet to send [03:16:32]OFD Sender: No OFD packet to send [03:16:37]OFD Sender: No OFD packet to send [03:16:42]OFD Sender: No OFD packet to send [03:16:47]OFD Sender: No OFD packet to send [03:16:52]OFD Sender: No OFD packet to send [03:16:57]OFD Sender: No OFD packet to send [03:17:02]OFD Sender: No OFD packet to send [03:17:07]OFD Sender: No OFD packet to send [03:17:12]OFD Sender: No OFD packet to send [03:17:17]OFD Sender: No OFD packet to send [03:17:22]OFD Sender: No OFD packet to send [03:17:27]OFD Sender: No OFD packet to send [03:17:32]OFD Sender: No OFD packet to send [03:17:37]OFD Sender: No OFD packet to send [03:17:42]OFD Sender: No OFD packet to send [03:17:47]OFD Sender: No OFD packet to send [03:17:52]OFD Sender: No OFD packet to send [03:17:57]OFD Sender: No OFD packet to send [03:18:02]OFD Sender: No OFD packet to send [03:18:07]OFD Sender: No OFD packet to send [03:18:12]OFD Sender: No OFD packet to send [03:18:17]OFD Sender: No OFD packet to send [03:18:22]OFD Sender: No OFD packet to send [03:18:27]OFD Sender: No OFD packet to send [03:18:32]OFD Sender: No OFD packet to send [03:18:37]OFD Sender: No OFD packet to send [03:18:42]OFD Sender: No OFD packet to send [03:18:47]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]OFD Sender: No OFD packet to send [03:20:18]OFD Sender: No OFD packet to send [03:20:23]OFD Sender: No OFD packet to send [03:20:28]OFD Sender: No OFD packet to send [03:20:33]OFD Sender: No OFD packet to send [03:20:38]OFD Sender: No OFD packet to send [03:20:43]OFD Sender: No OFD packet to send [03:20:48]OFD Sender: No OFD packet to send [03:20:53]OFD Sender: No OFD packet to send [03:20:58]OFD Sender: No OFD packet to send [03:21:03]OFD Sender: No OFD packet to send [03:21:08]OFD Sender: No OFD packet to send [03:21:13]OFD Sender: No OFD packet to send [03:21:18]OFD Sender: No OFD packet to send [03:21:23]OFD Sender: No OFD packet to send [03:21:28]OFD Sender: No OFD packet to send [03:21:33]OFD Sender: No OFD packet to send [03:21:38]OFD Sender: No OFD packet to send [03:21:43]OFD Sender: No OFD packet to send [03:21:48]OFD Sender: No OFD packet to send [03:21:53]OFD Sender: No OFD packet to send [03:21:58]OFD Sender: No OFD packet to send [03:22:03]OFD Sender: No OFD packet to send [03:22:08]OFD Sender: No OFD packet to send [03:22:13]OFD Sender: No OFD packet to send [03:22:18]OFD Sender: No OFD packet to send [03:22:23]OFD Sender: No OFD packet to send [03:22:28]OFD Sender: No OFD packet to send [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]OFD Sender: No OFD packet to send [03:25:08]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:23]OFD Sender: No OFD packet to send [03:25:28]OFD Sender: No OFD packet to send [03:25:33]OFD Sender: No OFD packet to send [03:25:38]OFD Sender: No OFD packet to send [03:25:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send [03:28:53]OFD Sender: No OFD packet to send [03:28:58]OFD Sender: No OFD packet to send [03:29:03]OFD Sender: No OFD packet to send [03:29:08]OFD Sender: No OFD packet to send [03:29:13]OFD Sender: No OFD packet to send [03:29:18]OFD Sender: No OFD packet to send [03:29:23]OFD Sender: No OFD packet to send [03:29:28]OFD Sender: No OFD packet to send [03:29:33]OFD Sender: No OFD packet to send [03:29:38]OFD Sender: No OFD packet to send [03:29:43]OFD Sender: No OFD packet to send [03:29:48]OFD Sender: No OFD packet to send [03:29:53]OFD Sender: No OFD packet to send [03:29:58]OFD Sender: No OFD packet to send [03:30:03]OFD Sender: No OFD packet to send [03:30:08]OFD Sender: No OFD packet to send [03:30:13]OFD Sender: No OFD packet to send [03:30:18]OFD Sender: No OFD packet to send [03:30:23]OFD Sender: No OFD packet to send [03:30:28]OFD Sender: No OFD packet to send [03:30:33]OFD Sender: No OFD packet to send [03:30:38]OFD Sender: No OFD packet to send [03:30:43]OFD Sender: No OFD packet to send [03:30:48]OFD Sender: No OFD packet to send [03:30:53]OFD Sender: No OFD packet to send [03:30:58]OFD Sender: No OFD packet to send [03:31:03]OFD Sender: No OFD packet to send [03:31:08]OFD Sender: No OFD packet to send [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:43]OFD Sender: No OFD packet to send [03:32:48]OFD Sender: No OFD packet to send [03:32:53]OFD Sender: No OFD packet to send [03:32:58]OFD Sender: No OFD packet to send [03:33:03]OFD Sender: No OFD packet to send [03:33:08]OFD Sender: No OFD packet to send [03:33:13]OFD Sender: No OFD packet to send [03:33:18]OFD Sender: No OFD packet to send [03:33:23]OFD Sender: No OFD packet to send [03:33:28]OFD Sender: No OFD packet to send [03:33:33]OFD Sender: No OFD packet to send [03:33:38]OFD Sender: No OFD packet to send [03:33:43]OFD Sender: No OFD packet to send [03:33:48]OFD Sender: No OFD packet to send [03:33:53]OFD Sender: No OFD packet to send [03:33:58]OFD Sender: No OFD packet to send [03:34:03]OFD Sender: No OFD packet to send [03:34:08]OFD Sender: No OFD packet to send [03:34:13]OFD Sender: No OFD packet to send [03:34:18]OFD Sender: No OFD packet to send [03:34:23]OFD Sender: No OFD packet to send [03:34:28]OFD Sender: No OFD packet to send [03:34:33]OFD Sender: No OFD packet to send [03:34:38]OFD Sender: No OFD packet to send [03:34:43]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:53]OFD Sender: No OFD packet to send [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:08]OFD Sender: No OFD packet to send [03:35:13]OFD Sender: No OFD packet to send [03:35:18]OFD Sender: No OFD packet to send [03:35:23]OFD Sender: No OFD packet to send [03:35:28]OFD Sender: No OFD packet to send [03:35:33]OFD Sender: No OFD packet to send [03:35:38]OFD Sender: No OFD packet to send [03:35:43]OFD Sender: No OFD packet to send [03:35:48]OFD Sender: No OFD packet to send [03:35:53]OFD Sender: No OFD packet to send [03:35:58]OFD Sender: No OFD packet to send [03:36:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [03:36:13]OFD Sender: No OFD packet to send [03:36:18]OFD Sender: No OFD packet to send [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:43]OFD Sender: No OFD packet to send [03:36:48]OFD Sender: No OFD packet to send [03:36:53]OFD Sender: No OFD packet to send [03:36:58]OFD Sender: No OFD packet to send [03:37:03]OFD Sender: No OFD packet to send [03:37:08]OFD Sender: No OFD packet to send [03:37:13]OFD Sender: No OFD packet to send [03:37:18]OFD Sender: No OFD packet to send [03:37:23]OFD Sender: No OFD packet to send [03:37:28]OFD Sender: No OFD packet to send [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39:08]OFD Sender: No OFD packet to send [03:39:13]OFD Sender: No OFD packet to send [03:39:18]OFD Sender: No OFD packet to send [03:39:23]OFD Sender: No OFD packet to send [03:39:28]OFD Sender: No OFD packet to send [03:39:33]OFD Sender: No OFD packet to send [03:39:38]OFD Sender: No OFD packet to send [03:39:43]OFD Sender: No OFD packet to send [03:39:48]OFD Sender: No OFD packet to send [03:39:53]OFD Sender: No OFD packet to send [03:39:58]OFD Sender: No OFD packet to send [03:40:03]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:24]OFD Sender: No OFD packet to send [03:40:29]OFD Sender: No OFD packet to send [03:40:34]OFD Sender: No OFD packet to send [03:40:39]OFD Sender: No OFD packet to send [03:40:44]OFD Sender: No OFD packet to send [03:40:49]OFD Sender: No OFD packet to send [03:40:54]OFD Sender: No OFD packet to send [03:40:59]OFD Sender: No OFD packet to send [03:41:04]OFD Sender: No OFD packet to send [03:41:09]OFD Sender: No OFD packet to send [03:41:14]OFD Sender: No OFD packet to send [03:41:19]OFD Sender: No OFD packet to send [03:41:24]OFD Sender: No OFD packet to send [03:41:29]OFD Sender: No OFD packet to send [03:41:34]OFD Sender: No OFD packet to send [03:41:39]OFD Sender: No OFD packet to send [03:41:44]OFD Sender: No OFD packet to send [03:41:49]OFD Sender: No OFD packet to send [03:41:54]OFD Sender: No OFD packet to send [03:41:59]OFD Sender: No OFD packet to send [03:42:04]OFD Sender: No OFD packet to send [03:42:09]OFD Sender: No OFD packet to send [03:42:14]OFD Sender: No OFD packet to send [03:42:19]OFD Sender: No OFD packet to send [03:42:24]OFD Sender: No OFD packet to send [03:42:29]OFD Sender: No OFD packet to send [03:42:34]OFD Sender: No OFD packet to send [03:42:39]OFD Sender: No OFD packet to send [03:42:44]OFD Sender: No OFD packet to send [03:42:49]OFD Sender: No OFD packet to send [03:42:54]OFD Sender: No OFD packet to send [03:42:59]OFD Sender: No OFD packet to send [03:43:04]OFD Sender: No OFD packet to send [03:43:09]OFD Sender: No OFD packet to send [03:43:14]OFD Sender: No OFD packet to send [03:43:19]OFD Sender: No OFD packet to send [03:43:24]OFD Sender: No OFD packet to send [03:43:29]OFD Sender: No OFD packet to send [03:43:34]OFD Sender: No OFD packet to send [03:43:39]OFD Sender: No OFD packet to send [03:43:44]OFD Sender: No OFD packet to send [03:43:49]OFD Sender: No OFD packet to send [03:43:54]OFD Sender: No OFD packet to send [03:43:59]OFD Sender: No OFD packet to send [03:44:04]OFD Sender: No OFD packet to send [03:44:09]OFD Sender: No OFD packet to send [03:44:14]OFD Sender: No OFD packet to send [03:44:19]OFD Sender: No OFD packet to send [03:44:24]OFD Sender: No OFD packet to send [03:44:29]OFD Sender: No OFD packet to send [03:44:34]OFD Sender: No OFD packet to send [03:44:39]OFD Sender: No OFD packet to send [03:44:44]OFD Sender: No OFD packet to send [03:44:49]OFD Sender: No OFD packet to send [03:44:54]OFD Sender: No OFD packet to send [03:44:59]OFD Sender: No OFD packet to send [03:45:04]OFD Sender: No OFD packet to send [03:45:09]OFD Sender: No OFD packet to send [03:45:14]OFD Sender: No OFD packet to send [03:45:19]OFD Sender: No OFD packet to send [03:45:24]OFD Sender: No OFD packet to send [03:45:29]OFD Sender: No OFD packet to send [03:45:34]OFD Sender: No OFD packet to send [03:45:39]OFD Sender: No OFD packet to send [03:45:44]OFD Sender: No OFD packet to send [03:45:49]OFD Sender: No OFD packet to send [03:45:54]OFD Sender: No OFD packet to send [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:39]OFD Sender: No OFD packet to send [03:46:44]OFD Sender: No OFD packet to send [03:46:49]OFD Sender: No OFD packet to send [03:46:54]OFD Sender: No OFD packet to send [03:46:59]OFD Sender: No OFD packet to send [03:47:04]OFD Sender: No OFD packet to send [03:47:09]OFD Sender: No OFD packet to send [03:47:14]OFD Sender: No OFD packet to send [03:47:19]OFD Sender: No OFD packet to send [03:47:24]OFD Sender: No OFD packet to send [03:47:29]OFD Sender: No OFD packet to send [03:47:34]OFD Sender: No OFD packet to send [03:47:39]OFD Sender: No OFD packet to send [03:47:44]OFD Sender: No OFD packet to send [03:47:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:49]OFD Sender: No OFD packet to send [03:55:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:55]OFD Sender: No OFD packet to send [04:08:00]OFD Sender: No OFD packet to send [04:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:38]OFD Sender: No OFD packet to send [05:22:43]OFD Sender: No OFD packet to send [05:22:48]OFD Sender: No OFD packet to send [05:22:53]OFD Sender: No OFD packet to send [05:22:58]OFD Sender: No OFD packet to send [05:23:03]OFD Sender: No OFD packet to send [05:23:08]OFD Sender: No OFD packet to send [05:23:13]OFD Sender: No OFD packet to send [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]OFD Sender: No OFD packet to send [05:24:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:31]accept exits with 10 [05:54:31]New connection [05:54:31]New thread 3066719588 created [05:54:31]Thread 3066862948 joined [05:54:31]Waiting for new connection... [05:54:31] Sock 10.Parse request [05:54:31]Sock 10.Check first char [05:54:31]Sock 10.First char is OK [05:54:31]request: POST /json_proto HTTP/1.0 [05:54:31]Method: POST [05:54:31]URL: /json_proto [05:54:31]Method is POST - this is cgi request [05:54:31]url: /json_proto [05:54:31]query_string will be loaded in cgi processing [05:54:31]execute_cgi json_proto POST (null) [05:54:31]execute_cgi path=json_proto method=POST [05:54:31]POST find Content-Length [05:54:31]Host: 172.17.37.4:8080 [05:54:31]Content-Length: 682 [05:54:31]Content-Type: application/json [05:54:31] [05:54:31]POST finish read [05:54:31]Found Content-Length = 682 [05:54:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718326", "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" ] } } [05:54:31]execute_script... [05:54: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)718326", "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" ] } } [05:54:31]POST & json_proto [05:54:31]process_json_proto [05:54:31]json parsed OK: [05:54:31]protocol is kg_v1.0 [05:54:31]action value=close_receipt [05:54:31]process_action close_receipt [05:54:31]cmd_close_receipt [05:54:31]MH_GetDate [05:54:31]Write to MH i2c: F0 00 00 9F 13 A1 [05:54:31]Write i2c OK [05:54:31]MH_I2C_Read... [05:54:31]Read from MH i2c: F0 [05:54:31]MH_I2C_Read... [05:54:31]Read from MH i2c: F0 09 00 [05:54:31]MH_I2C_Read... [05:54:31]Read from MH i2c: F0 09 00 9F 13 00 9A 05 48 67 1D 3A 47 67 FD [05:54:31]GetLastDocTimeStamp 1732753083 [05:54:31]current date 1732773274 [05:54:31]FM_GetShiftState [05:54:31]SAM_PROTO_GetShiftState [05:54:31]wFMCommunicate request_size=4 [05:54:31]MH_SAM_APDU [05:54:31]CAPDU: 80 13 01 00 [05:54:31]Write to MH i2c: E2 08 00 A0 13 80 13 01 00 00 00 00 00 30 [05:54:31]Write i2c OK [05:54:31]MH_I2C_Read... [05:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:54:31]Read from MH i2c: E2 [05:54:31]MH_I2C_Read... [05:54:31]Read from MH i2c: E2 0E 00 [05:54:31]MH_I2C_Read... [05:54:31]Read from MH i2c: E2 0E 00 A0 13 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 37 [05:54:31]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [05:54:31]wFMCommunicate OK [05:54:31]SAM_PROTO_GetShiftState done [05:54:31]FM_GetShiftState done [05:54:31]opened in 1732752282 [05:54:31]opened+sec_in_day 1732838682 [05:54:31]quantity*price = 100021 [05:54:31]sum+1 = 100023 [05:54:31]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 СНО: Общий режим Чек 6 28.11.2024 05:54 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123494 ФПД: 45106598983371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T055434&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123494&fm=45106598983371&tin=02508201610067®Number=0000000000092681&sum=100000 [05:54:32]StoreToDocumentArchive [05:54:32]shift 559 fd 123494 [05:54:32]save to /storage/0559/doc_00123494 [05:54:32]save last doc name /storage/0559/doc_00123494 to /storage/kkm_last_doc_name [05:54:32]save OK [05:54:32]Clear old archive folders... [05:54:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:54:32]tlvbuf is 0148CAE0 [05:54:32]SAM_PROTO_ClearQueue [05:54:32]wFMCommunicate request_size=4 [05:54:32]MH_SAM_APDU [05:54:32]CAPDU: 80 09 00 00 [05:54:32]Write to MH i2c: E2 08 00 AD 13 80 09 00 00 00 00 00 00 32 [05:54:32]Write i2c OK [05:54:32]MH_I2C_Read... [05:54:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:54:32]Read from MH i2c: E2 [05:54:32]MH_I2C_Read... [05:54:32]Read from MH i2c: E2 03 00 [05:54:32]MH_I2C_Read... [05:54:32]Read from MH i2c: E2 03 00 AD 13 00 90 00 34 [05:54:32]RAPDU: 90 00 [05:54:32]wFMCommunicate OK [05:54:32]SAM_PROTO_ClearQueue done [05:54:32]KKMCreateOFDPacket [05:54:32]OFDProtocolAddRootSTLVToBuf [05:54:32]FM_MakeSignedData [05:54:32]FM_MakeSignedData [05:54:32]SAM_PROTO_SignData [05:54:32]wFMCommunicate request_size=4 [05:54:32]MH_SAM_APDU [05:54:32]CAPDU: 80 0D 01 02 [05:54:32]Write to MH i2c: E2 08 00 AE 13 80 0D 01 02 00 00 00 00 3A [05:54:32]Write i2c OK [05:54:32]MH_I2C_Read... [05:54:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:54:32]Read from MH i2c: E2 [05:54:32]MH_I2C_Read... [05:54:32]Read from MH i2c: E2 03 00 [05:54:32]MH_I2C_Read... [05:54:32]Read from MH i2c: E2 03 00 AE 13 00 90 00 35 [05:54:32]RAPDU: 90 00 [05:54:32]wFMCommunicate OK [05:54:32]wFMCommunicate request_size=255 [05:54:32]MH_SAM_APDU [05:54: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 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 06 00 00 00 F4 03 04 00 9A 05 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 29 [05:54:32]Write to MH i2c: E2 02 01 AF 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 06 00 00 00 F4 03 04 00 9A 05 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 29 00 00 88 [05:54:32]Write i2c OK [05:54:32]MH_I2C_Read... [05:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:54:32]Read from MH i2c: E2 [05:54:32]MH_I2C_Read... [05:54:32]Read from MH i2c: E2 03 00 [05:54:32]MH_I2C_Read... [05:54:32]Read from MH i2c: E2 03 00 AF 13 00 90 00 36 [05:54:32]RAPDU: 90 00 [05:54:32]wFMCommunicate OK [05:54:32]wFMCommunicate request_size=10 [05:54:32]MH_SAM_APDU [05:54:32]CAPDU: 80 0D 02 02 05 06 32 CF 36 CB [05:54:32]Write to MH i2c: E2 0D 00 B0 13 80 0D 02 02 05 00 06 32 CF 36 CB 00 00 4F [05:54:32]Write i2c OK [05:54:32]MH_I2C_Read... [05:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:54:32]Read from MH i2c: E2 [05:54:32]MH_I2C_Read... [05:54:32]Read from MH i2c: E2 03 00 [05:54:32]MH_I2C_Read... [05:54:32]Read from MH i2c: E2 03 00 B0 13 00 90 00 37 [05:54:32]RAPDU: 90 00 [05:54:32]wFMCommunicate OK [05:54:32]wFMCommunicate request_size=4 [05:54:32]MH_SAM_APDU [05:54:32]CAPDU: 80 0D 03 02 [05:54:32]Write to MH i2c: E2 08 00 B1 13 80 0D 03 02 00 00 00 00 3F [05:54:32]Write i2c OK [05:54:32]MH_I2C_Read... [05:54:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:54:32]Read from MH i2c: E2 [05:54:32]MH_I2C_Read... [05:54:32]Read from MH i2c: E2 0B 00 [05:54:32]MH_I2C_Read... [05:54:32]Read from MH i2c: E2 0B 00 B1 13 00 9F 16 C5 6A EB 56 5B C3 90 00 83 [05:54:32]RAPDU: 9F 16 C5 6A EB 56 5B C3 90 00 [05:54:32]wFMCommunicate OK [05:54:32]SAM_PROTO_SignData done [05:54:32]FM_MakeSignedData done [05:54:32]CreateOFDProtocolMessage [05:54:32]wFMCommunicate request_size=4 [05:54:32]MH_SAM_APDU [05:54:32]CAPDU: 80 11 00 00 [05:54:32]Write to MH i2c: E2 08 00 B2 13 80 11 00 00 00 00 00 00 3F [05:54:32]Write i2c OK [05:54:32]MH_I2C_Read... [05:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:54:32]Read from MH i2c: E2 [05:54:32]MH_I2C_Read... [05:54:32]Read from MH i2c: E2 17 00 [05:54:32]MH_I2C_Read... [05:54:32]Read from MH i2c: E2 17 00 B2 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 96 [05:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [05:54:32]wFMCommunicate OK [05:54:32]CreateOFDProtocolMessage done [05:54:32]OFDSenderStorePacket 123494 [05:54:32]StoreOFDPacket docnum=123494 [05:54: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 54 67 07 01 50 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 06 00 00 00 F4 03 04 00 9A 05 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 29 06 32 CF 36 CB 9F 16 C5 6A EB 56 5B C3 [05:54:32]CheckFolder [05:54:32]dirname=/storage/ofd_packets [05:54:32]CheckFolder done [05:54:32]ProducePacketName [05:54:32]name=ofd_packets/00123494 [05:54:32]NVStorageSaveData ofd_packets/00123494 [05:54:32]File name is /storage/ofd_packets/00123494 [05:54:32]Write 301 bytes [05:54:32]NVStorageSaveData done [05:54:32]OFDSenderStorePacket done [05:54:32]KKMCreateOFDPacket done [05:54:32]NVStorageSaveData kkm_last_timestamp [05:54:32]File name is /storage/kkm_last_timestamp [05:54:32]Write 4 bytes [05:54:32]NVStorageSaveData done [05:54:32]ExternCall_PrintAddStr [05:54:32]wPrintStart [05:54:32]Write to MH i2c: 01 00 00 B3 13 C6 [05:54:32]Write i2c OK [05:54:32]MH_I2C_Read... [05:54:32]Read from MH i2c: 01 [05:54:32]MH_I2C_Read... [05:54:32]Read from MH i2c: 01 07 00 [05:54:32]MH_I2C_Read... [05:54:32]Read from MH i2c: 01 07 00 B3 13 00 00 00 00 00 FF 0F DB [05:54:32]RasterBufferAndPrint [05:54:32]line Счет N : (1)718326 [05:54:32]line ИНН: 02508201610067 [05:54:32]line Контрольно-Кассовый Чек [05:54:32]line ПРОДАЖА [05:54:32]line ТРК (МРК, ГНК) : 32 [05:54:32]line Товар: 2710124130 [05:54:32]line Аи-92-К-4 [05:54:32]line 14.840 * 67.40 [05:54:32]line = 1000.22 [05:54:32]line НДС 12% НСП 1% [05:54:32]line > о реализуемом товаре [05:54:32]line ОКРУГЛЕНИЕ: -0.22 [05:54:32]line ИТОГО: 1000.00 [05:54:32]line Внесено: 1000.00 [05:54:32]line СДАЧА: 0.00 [05:54:32]line НСП 1% : 8.85 [05:54:32]line НДС 12% : 106.22 [05:54:32]line Наличными: 1000.00 [05:54:32]line Безнал.: 0.00 [05:54:32]line Место: АЗС № 64 "Партнер Нефть" [05:54:32]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [05:54:32]line СНО: Общий режим [05:54:32]line Чек 6 28.11.2024 05:54 [05:54:32]line Смена: 559 ФФД: 1.0 [05:54:32]line ЗНМ: 0300000033 [05:54:32]line РНМ: 0000000000092681 [05:54:32]line Версия ККМ: 001 [05:54:32]line ФМ: 0000000000874881 [05:54:32]line ФД: 123494 [05:54:32]line ФПД: 45106598983371 [05:54:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T055434&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123494&fm=45106598983371&tin=02508201610067®Number=0000000000092681&sum=100000 [05:54:33]OFD Sender: Processing packet 123494 [packets to send 7, broken 6] [05:54:33]ProducePacketName [05:54:33]name=ofd_packets/00123494 [05:54:33]OFD Sender: To server: pG, [05:54:33]CommunicateWithHost lk.salyk.kg:30040 [05:54:33]ConnectInit lk.salyk.kg [05:54:33]written 0, free lines is 4095 [05:54:33]Connected sock=9 [05:54: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 54 67 07 01 50 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 06 00 00 00 F4 03 04 00 9A 05 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 29 06 32 CF 36 CB 9F 16 C5 6A EB 56 5B C3 [05:54: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 6E 26 47 00 9E 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 E2 01 00 F4 03 04 00 61 B1 47 67 B6 04 01 00 00 21 42 9A B5 D9 C8 52 DF [05:54:33]CommunicateWithHost err = 0 [05:54:33]CheckOFDResponse [05:54:33]1017 (14) - 77093643461234 [05:54:33]1041 (16) - 0000000000874881 [05:54:33]1040 (4) - 123494 [05:54:33]1012 (4) - 27.11.2024 23:55 [05:54:33]1206 (1) - 0 [05:54:33]OFD Sender: Remove packet 123494 [05:54:33]ProducePacketName [05:54:33]name=ofd_packets/00123494 [05:54:33]NVStorageDeleteData [05:54:33]Write to MH i2c: 01 00 00 DE 13 F1 [05:54:33]Write i2c OK [05:54:33]MH_I2C_Read... [05:54:33]Read from MH i2c: 01 [05:54:33]MH_I2C_Read... [05:54:33]Read from MH i2c: 01 07 00 [05:54:33]MH_I2C_Read... [05:54:33]Read from MH i2c: 01 07 00 DE 13 00 00 00 00 00 50 0C 54 [05:54:33]RasterBufferAndPrint [05:54:33]line [05:54:33]line [05:54:33]line [05:54:33]line [05:54:33]line [05:54:33]written 0, free lines is 3156 [05:54:33]MH_Cut [05:54:33]Write to MH i2c: D1 01 00 E5 13 01 CA [05:54:33]Write i2c OK [05:54:33]MH_I2C_Read... [05:54:33]Read from MH i2c: D1 [05:54:33]MH_I2C_Read... [05:54:33]Read from MH i2c: D1 01 00 [05:54:33]MH_I2C_Read... [05:54:33]Read from MH i2c: D1 01 00 E5 13 00 C9 [05:54:33]Write to MH i2c: 01 00 00 E6 13 F9 [05:54:33]Write i2c OK [05:54:33]MH_I2C_Read... [05:54:33]OFD Sender: No OFD packet to send [05:54:34]*** Cut start [05:54:34]*** Partial cut [05:54:34]*** CUTSNS_PIN = 1 [05:54:35]*** CUTSNS_PIN = 0 [05:54:35]*** Brake cut motor [05:54:35]Read from MH i2c: 01 [05:54:35]MH_I2C_Read... [05:54:35]*** Stop cut motor [05:54:35]*** Cut end [05:54:35]Read from MH i2c: 01 07 00 [05:54:35]MH_I2C_Read... [05:54:35]Read from MH i2c: 01 07 00 E6 13 00 00 00 00 00 FF 0F 0E [05:54:35]process_action close_receipt done [05:54:35]requested_data is exist [05:54:35]produce_requested_data [05:54:35]requested_item fm.sn is exist - process it [05:54:35]wFMCommunicate request_size=4 [05:54:35]MH_SAM_APDU [05:54:35]CAPDU: 80 11 00 00 [05:54:35]Write to MH i2c: E2 08 00 E7 13 80 11 00 00 00 00 00 00 74 [05:54:35]Write i2c OK [05:54:35]MH_I2C_Read... [05:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:54:35]Read from MH i2c: E2 [05:54:35]MH_I2C_Read... [05:54:35]Read from MH i2c: E2 17 00 [05:54:35]MH_I2C_Read... [05:54:35]Read from MH i2c: E2 17 00 E7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CB [05:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [05:54:35]wFMCommunicate OK [05:54:35]requested_item fd.num is exist - process it [05:54:35]SAM_PROTO_GetFieldsCounters [05:54:35]wFMCommunicate request_size=4 [05:54:35]MH_SAM_APDU [05:54:35]CAPDU: 80 13 00 00 [05:54:35]Write to MH i2c: E2 08 00 E8 13 80 13 00 00 00 00 00 00 77 [05:54:35]Write i2c OK [05:54:35]MH_I2C_Read... [05:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:54:35]Read from MH i2c: E2 [05:54:35]MH_I2C_Read... [05:54:35]Read from MH i2c: E2 62 00 [05:54:35]MH_I2C_Read... [05:54:35]Read from MH i2c: E2 62 00 E8 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 29 [05:54:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 [05:54:35]wFMCommunicate OK [05:54:35]SAM_PROTO_GetFieldsCounters done [05:54:35]requested_item shift.num is exist - process it [05:54:35]requested_item shift.opened is exist - process it [05:54:35]req_shift_opened [05:54:35]FM_GetShiftState [05:54:35]SAM_PROTO_GetShiftState [05:54:35]wFMCommunicate request_size=4 [05:54:35]MH_SAM_APDU [05:54:35]CAPDU: 80 13 01 00 [05:54:35]Write to MH i2c: E2 08 00 E9 13 80 13 01 00 00 00 00 00 79 [05:54:35]Write i2c OK [05:54:35]MH_I2C_Read... [05:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:54:35]Read from MH i2c: E2 [05:54:35]MH_I2C_Read... [05:54:35]Read from MH i2c: E2 0E 00 [05:54:35]MH_I2C_Read... [05:54:35]Read from MH i2c: E2 0E 00 E9 13 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 80 [05:54:35]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [05:54:35]wFMCommunicate OK [05:54:35]SAM_PROTO_GetShiftState done [05:54:35]FM_GetShiftState done [05:54:35]req_shift_opened done [05:54:35]requested_item shift.open_date is exist - process it [05:54:35]req_shift_open_date [05:54:35]req_shift_open_date done [05:54:35]produce_requested_data done [05:54:35]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123494,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [05:54:35]process_action_free close_receipt [05:54:35]json_value_free [05:54:35]json_value_free done [05:54:35]process_json_proto returns [05:54:35]Send response to host [05:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123494,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [05:54:35]free response buf [05:54:35]execute_script done [05:54:35]execute_script returns [05:54:35]free content buf [05:54:35]Sock 10.Close socket [05:54:35]Sock 10.Thread stoped [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]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:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17: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:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38: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:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:38]accept exits with 8 [06:58:38]New connection [06:58:38]New thread 3066862948 created [06:58:38]Thread 3066719588 joined [06:58:38]Waiting for new connection... [06:58:38] Sock 8.Parse request [06:58:38]Sock 8.Check first char [06:58:38]Sock 8.First char is OK [06:58:38]request: POST /json_proto HTTP/1.0 [06:58:38]Method: POST [06:58:38]URL: /json_proto [06:58:38]Method is POST - this is cgi request [06:58:38]url: /json_proto [06:58:38]query_string will be loaded in cgi processing [06:58:38]execute_cgi json_proto POST (null) [06:58:38]execute_cgi path=json_proto method=POST [06:58:38]POST find Content-Length [06:58:38]Host: 172.17.37.4:8080 [06:58:38]Content-Length: 686 [06:58:38]Content-Type: application/json [06:58:38] [06:58:38]POST finish read [06:58:38]Found Content-Length = 686 [06:58:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718327", "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" ] } } [06:58:38]execute_script... [06:58: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)718327", "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" ] } } [06:58:38]POST & json_proto [06:58:38]process_json_proto [06:58:38]json parsed OK: [06:58:38]protocol is kg_v1.0 [06:58:38]action value=close_receipt [06:58:38]process_action close_receipt [06:58:38]cmd_close_receipt [06:58:38]MH_GetDate [06:58:38]Write to MH i2c: F0 00 00 EA 13 EC [06:58:38]Write i2c OK [06:58:38]MH_I2C_Read... [06:58:38]Read from MH i2c: F0 [06:58:38]MH_I2C_Read... [06:58:38]Read from MH i2c: F0 09 00 [06:58:38]MH_I2C_Read... [06:58:38]Read from MH i2c: F0 09 00 EA 13 00 A2 14 48 67 1D 3A 47 67 5F [06:58:38]GetLastDocTimeStamp 1732773274 [06:58:38]current date 1732777122 [06:58:38]FM_GetShiftState [06:58:38]SAM_PROTO_GetShiftState [06:58:38]wFMCommunicate request_size=4 [06:58:38]MH_SAM_APDU [06:58:38]CAPDU: 80 13 01 00 [06:58:38]Write to MH i2c: E2 08 00 EB 13 80 13 01 00 00 00 00 00 7B [06:58:38]Write i2c OK [06:58:38]MH_I2C_Read... [06:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:38]Read from MH i2c: E2 [06:58:38]MH_I2C_Read... [06:58:38]Read from MH i2c: E2 0E 00 [06:58:38]MH_I2C_Read... [06:58:38]Read from MH i2c: E2 0E 00 EB 13 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 82 [06:58:38]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [06:58:38]wFMCommunicate OK [06:58:38]SAM_PROTO_GetShiftState done [06:58:38]FM_GetShiftState done [06:58:38]opened in 1732752282 [06:58:38]opened+sec_in_day 1732838682 [06:58:38]quantity*price = 100066 [06:58:38]sum+1 = 100067 [06:58:38]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 СНО: Общий режим Чек 7 28.11.2024 06:58 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123495 ФПД: 240137715057970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T065842&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123495&fm=240137715057970&tin=02508201610067®Number=0000000000092681&sum=100000 [06:58:39]StoreToDocumentArchive [06:58:39]shift 559 fd 123495 [06:58:39]save to /storage/0559/doc_00123495 [06:58:39]save last doc name /storage/0559/doc_00123495 to /storage/kkm_last_doc_name [06:58:39]save OK [06:58:39]Clear old archive folders... [06:58:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:58:39]tlvbuf is 0149C660 [06:58:39]SAM_PROTO_ClearQueue [06:58:39]wFMCommunicate request_size=4 [06:58:39]MH_SAM_APDU [06:58:39]CAPDU: 80 09 00 00 [06:58:39]Write to MH i2c: E2 08 00 F8 13 80 09 00 00 00 00 00 00 7D [06:58:39]Write i2c OK [06:58:39]MH_I2C_Read... [06:58:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:58:39]Read from MH i2c: E2 [06:58:39]MH_I2C_Read... [06:58:39]Read from MH i2c: E2 03 00 [06:58:39]MH_I2C_Read... [06:58:39]Read from MH i2c: E2 03 00 F8 13 00 90 00 7F [06:58:39]RAPDU: 90 00 [06:58:39]wFMCommunicate OK [06:58:39]SAM_PROTO_ClearQueue done [06:58:39]KKMCreateOFDPacket [06:58:39]OFDProtocolAddRootSTLVToBuf [06:58:39]FM_MakeSignedData [06:58:39]FM_MakeSignedData [06:58:39]SAM_PROTO_SignData [06:58:39]wFMCommunicate request_size=4 [06:58:39]MH_SAM_APDU [06:58:39]CAPDU: 80 0D 01 02 [06:58:39]Write to MH i2c: E2 08 00 F9 13 80 0D 01 02 00 00 00 00 85 [06:58:39]Write i2c OK [06:58:39]MH_I2C_Read... [06:58:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:58:39]Read from MH i2c: E2 [06:58:39]MH_I2C_Read... [06:58:39]Read from MH i2c: E2 03 00 [06:58:39]MH_I2C_Read... [06:58:39]Read from MH i2c: E2 03 00 F9 13 00 90 00 80 [06:58:39]RAPDU: 90 00 [06:58:39]wFMCommunicate OK [06:58:39]wFMCommunicate request_size=255 [06:58:39]MH_SAM_APDU [06:58: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 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 07 00 00 00 F4 03 04 00 A2 14 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 [06:58:39]Write to MH i2c: E2 02 01 FA 13 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 07 00 00 00 F4 03 04 00 A2 14 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 00 00 53 [06:58:39]Write i2c OK [06:58:39]MH_I2C_Read... [06:58:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:39]Read from MH i2c: E2 [06:58:39]MH_I2C_Read... [06:58:39]Read from MH i2c: E2 03 00 [06:58:39]MH_I2C_Read... [06:58:39]Read from MH i2c: E2 03 00 FA 13 00 90 00 81 [06:58:39]RAPDU: 90 00 [06:58:39]wFMCommunicate OK [06:58:39]wFMCommunicate request_size=11 [06:58:39]MH_SAM_APDU [06:58:39]CAPDU: 80 0D 02 02 06 DA 67 6B 34 05 32 [06:58:39]Write to MH i2c: E2 0E 00 FB 13 80 0D 02 02 06 00 DA 67 6B 34 05 32 00 00 AB [06:58:39]Write i2c OK [06:58:39]MH_I2C_Read... [06:58:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:39]Read from MH i2c: E2 [06:58:39]MH_I2C_Read... [06:58:39]Read from MH i2c: E2 03 00 [06:58:39]MH_I2C_Read... [06:58:39]Read from MH i2c: E2 03 00 FB 13 00 90 00 82 [06:58:39]RAPDU: 90 00 [06:58:39]wFMCommunicate OK [06:58:39]wFMCommunicate request_size=4 [06:58:39]MH_SAM_APDU [06:58:39]CAPDU: 80 0D 03 02 [06:58:39]Write to MH i2c: E2 08 00 FC 13 80 0D 03 02 00 00 00 00 8A [06:58:39]Write i2c OK [06:58:39]MH_I2C_Read... [06:58:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:58:40]Read from MH i2c: E2 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: E2 0B 00 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: E2 0B 00 FC 13 00 28 3B 09 FC 11 6F 53 FB 90 00 C1 [06:58:40]RAPDU: 28 3B 09 FC 11 6F 53 FB 90 00 [06:58:40]wFMCommunicate OK [06:58:40]SAM_PROTO_SignData done [06:58:40]FM_MakeSignedData done [06:58:40]CreateOFDProtocolMessage [06:58:40]wFMCommunicate request_size=4 [06:58:40]MH_SAM_APDU [06:58:40]CAPDU: 80 11 00 00 [06:58:40]Write to MH i2c: E2 08 00 FD 13 80 11 00 00 00 00 00 00 8A [06:58:40]Write i2c OK [06:58:40]MH_I2C_Read... [06:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:40]Read from MH i2c: E2 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: E2 17 00 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: E2 17 00 FD 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E1 [06:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [06:58:40]wFMCommunicate OK [06:58:40]CreateOFDProtocolMessage done [06:58:40]OFDSenderStorePacket 123495 [06:58:40]StoreOFDPacket docnum=123495 [06:58: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 FF 23 08 01 01 24 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 07 00 00 00 F4 03 04 00 A2 14 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 DA 67 6B 34 05 32 28 3B 09 FC 11 6F 53 FB [06:58:40]CheckFolder [06:58:40]dirname=/storage/ofd_packets [06:58:40]CheckFolder done [06:58:40]ProducePacketName [06:58:40]name=ofd_packets/00123495 [06:58:40]NVStorageSaveData ofd_packets/00123495 [06:58:40]File name is /storage/ofd_packets/00123495 [06:58:40]Write 302 bytes [06:58:40]NVStorageSaveData done [06:58:40]OFDSenderStorePacket done [06:58:40]KKMCreateOFDPacket done [06:58:40]NVStorageSaveData kkm_last_timestamp [06:58:40]File name is /storage/kkm_last_timestamp [06:58:40]Write 4 bytes [06:58:40]NVStorageSaveData done [06:58:40]ExternCall_PrintAddStr [06:58:40]wPrintStart [06:58:40]Write to MH i2c: 01 00 00 FE 13 11 [06:58:40]Write i2c OK [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: 01 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: 01 07 00 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: 01 07 00 FE 13 00 00 00 00 00 FF 0F 26 [06:58:40]RasterBufferAndPrint [06:58:40]line Счет N : (1)718327 [06:58:40]line ИНН: 02508201610067 [06:58:40]line Контрольно-Кассовый Чек [06:58:40]line ПРОДАЖА [06:58:40]line ТРК (МРК, ГНК) : 5 [06:58:40]line Товар: 2710194210 [06:58:40]line ДТ(л)-К-5 [06:58:40]line 13.360 * 74.90 [06:58:40]line = 1000.66 [06:58:40]line НДС 12% НСП 1% [06:58:40]line > о реализуемом товаре [06:58:40]line ОКРУГЛЕНИЕ: -0.66 [06:58:40]line ИТОГО: 1000.00 [06:58:40]line Внесено: 1000.00 [06:58:40]line СДАЧА: 0.00 [06:58:40]line НСП 1% : 8.85 [06:58:40]line НДС 12% : 106.26 [06:58:40]line Наличными: 1000.00 [06:58:40]line Безнал.: 0.00 [06:58:40]line Место: АЗС № 64 "Партнер Нефть" [06:58:40]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [06:58:40]line СНО: Общий режим [06:58:40]line Чек 7 28.11.2024 06:58 [06:58:40]line Смена: 559 ФФД: 1.0 [06:58:40]line ЗНМ: 0300000033 [06:58:40]line РНМ: 0000000000092681 [06:58:40]line Версия ККМ: 001 [06:58:40]line ФМ: 0000000000874881 [06:58:40]line ФД: 123495 [06:58:40]line ФПД: 240137715057970 [06:58:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T065842&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123495&fm=240137715057970&tin=02508201610067®Number=0000000000092681&sum=100000 [06:58:40]OFD Sender: Processing packet 123495 [packets to send 7, broken 6] [06:58:40]ProducePacketName [06:58:40]name=ofd_packets/00123495 [06:58:40]OFD Sender: To server: pG, [06:58:40]CommunicateWithHost lk.salyk.kg:30040 [06:58:40]ConnectInit lk.salyk.kg [06:58:40]written 0, free lines is 4095 [06:58:40]Connected sock=10 [06:58: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 FF 23 08 01 01 24 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 07 00 00 00 F4 03 04 00 A2 14 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 DA 67 6B 34 05 32 28 3B 09 FC 11 6F 53 FB [06:58: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 D5 47 00 E2 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 67 E2 01 00 F4 03 04 00 68 C0 47 67 B6 04 01 00 00 CF 9A 55 06 A1 26 9F 00 [06:58:40]CommunicateWithHost err = 0 [06:58:40]CheckOFDResponse [06:58:40]1017 (14) - 77093643461234 [06:58:40]1041 (16) - 0000000000874881 [06:58:40]1040 (4) - 123495 [06:58:40]1012 (4) - 28.11.2024 00:59 [06:58:40]1206 (1) - 0 [06:58:40]OFD Sender: Remove packet 123495 [06:58:40]ProducePacketName [06:58:40]name=ofd_packets/00123495 [06:58:40]NVStorageDeleteData [06:58:40]Write to MH i2c: 01 00 00 29 14 3D [06:58:40]Write i2c OK [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: 01 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: 01 07 00 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: 01 07 00 29 14 00 00 00 00 00 46 0C 96 [06:58:40]RasterBufferAndPrint [06:58:40]line [06:58:40]line [06:58:40]line [06:58:40]line [06:58:40]line [06:58:40]written 0, free lines is 3146 [06:58:40]MH_Cut [06:58:40]Write to MH i2c: D1 01 00 30 14 01 16 [06:58:40]Write i2c OK [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: D1 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: D1 01 00 [06:58:40]MH_I2C_Read... [06:58:40]Read from MH i2c: D1 01 00 30 14 00 15 [06:58:40]Write to MH i2c: 01 00 00 31 14 45 [06:58:40]Write i2c OK [06:58:40]MH_I2C_Read... [06:58:41]OFD Sender: No OFD packet to send [06:58:42]*** Cut start [06:58:42]*** Partial cut [06:58:42]*** CUTSNS_PIN = 1 [06:58:42]*** CUTSNS_PIN = 0 [06:58:42]*** Brake cut motor [06:58:42]Read from MH i2c: 01 [06:58:42]MH_I2C_Read... [06:58:42]*** Stop cut motor [06:58:42]*** Cut end [06:58:42]Read from MH i2c: 01 07 00 [06:58:42]MH_I2C_Read... [06:58:42]Read from MH i2c: 01 07 00 31 14 00 00 00 00 00 FF 0F 5A [06:58:42]process_action close_receipt done [06:58:42]requested_data is exist [06:58:42]produce_requested_data [06:58:42]requested_item fm.sn is exist - process it [06:58:42]wFMCommunicate request_size=4 [06:58:42]MH_SAM_APDU [06:58:42]CAPDU: 80 11 00 00 [06:58:42]Write to MH i2c: E2 08 00 32 14 80 11 00 00 00 00 00 00 C0 [06:58:42]Write i2c OK [06:58:42]MH_I2C_Read... [06:58:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:42]Read from MH i2c: E2 [06:58:42]MH_I2C_Read... [06:58:42]Read from MH i2c: E2 17 00 [06:58:42]MH_I2C_Read... [06:58:42]Read from MH i2c: E2 17 00 32 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 17 [06:58:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [06:58:42]wFMCommunicate OK [06:58:42]requested_item fd.num is exist - process it [06:58:42]SAM_PROTO_GetFieldsCounters [06:58:42]wFMCommunicate request_size=4 [06:58:42]MH_SAM_APDU [06:58:42]CAPDU: 80 13 00 00 [06:58:42]Write to MH i2c: E2 08 00 33 14 80 13 00 00 00 00 00 00 C3 [06:58:42]Write i2c OK [06:58:42]MH_I2C_Read... [06:58:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:58:43]Read from MH i2c: E2 [06:58:43]MH_I2C_Read... [06:58:43]Read from MH i2c: E2 62 00 [06:58:43]MH_I2C_Read... [06:58:43]Read from MH i2c: E2 62 00 33 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 79 [06:58: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 67 E2 01 00 0E 04 04 00 2F 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 [06:58:43]wFMCommunicate OK [06:58:43]SAM_PROTO_GetFieldsCounters done [06:58:43]requested_item shift.num is exist - process it [06:58:43]requested_item shift.opened is exist - process it [06:58:43]req_shift_opened [06:58:43]FM_GetShiftState [06:58:43]SAM_PROTO_GetShiftState [06:58:43]wFMCommunicate request_size=4 [06:58:43]MH_SAM_APDU [06:58:43]CAPDU: 80 13 01 00 [06:58:43]Write to MH i2c: E2 08 00 34 14 80 13 01 00 00 00 00 00 C5 [06:58:43]Write i2c OK [06:58:43]MH_I2C_Read... [06:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:43]Read from MH i2c: E2 [06:58:43]MH_I2C_Read... [06:58:43]Read from MH i2c: E2 0E 00 [06:58:43]MH_I2C_Read... [06:58:43]Read from MH i2c: E2 0E 00 34 14 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 CC [06:58:43]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [06:58:43]wFMCommunicate OK [06:58:43]SAM_PROTO_GetShiftState done [06:58:43]FM_GetShiftState done [06:58:43]req_shift_opened done [06:58:43]requested_item shift.open_date is exist - process it [06:58:43]req_shift_open_date [06:58:43]req_shift_open_date done [06:58:43]produce_requested_data done [06:58:43]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123495,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [06:58:43]process_action_free close_receipt [06:58:43]json_value_free [06:58:43]json_value_free done [06:58:43]process_json_proto returns [06:58:43]Send response to host [06:58:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123495,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [06:58:43]free response buf [06:58:43]execute_script done [06:58:43]execute_script returns [06:58:43]free content buf [06:58:43]Sock 8.Close socket [06:58:43]Sock 8.Thread stoped [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:16]OFD Sender: No OFD packet to send [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:41]OFD Sender: No OFD packet to send [07:03:46]OFD Sender: No OFD packet to send [07:03:51]OFD Sender: No OFD packet to send [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]OFD Sender: No OFD packet to send [07:04:26]OFD Sender: No OFD packet to send [07:04:31]OFD Sender: No OFD packet to send [07:04:36]OFD Sender: No OFD packet to send [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]OFD Sender: No OFD packet to send [07:04:56]OFD Sender: No OFD packet to send [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:40]accept exits with 9 [07:29:40]New connection [07:29:40]New thread 3066719588 created [07:29:40]Thread 3066862948 joined [07:29:40]Waiting for new connection... [07:29:40] Sock 9.Parse request [07:29:40]Sock 9.Check first char [07:29:40]Sock 9.First char is OK [07:29:40]request: POST /json_proto HTTP/1.0 [07:29:40]Method: POST [07:29:40]URL: /json_proto [07:29:40]Method is POST - this is cgi request [07:29:40]url: /json_proto [07:29:40]query_string will be loaded in cgi processing [07:29:40]execute_cgi json_proto POST (null) [07:29:40]execute_cgi path=json_proto method=POST [07:29:40]POST find Content-Length [07:29:40]Host: 172.17.37.4:8080 [07:29:40]Content-Length: 800 [07:29:40]Content-Type: application/json [07:29:40] [07:29:40]POST finish read [07:29:40]Found Content-Length = 800 [07:29:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718328", "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.130, "sum" : 480.56, "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" : 480.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:40]execute_script... [07:29: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)718328", "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.130, "sum" : 480.56, "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" : 480.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:40]POST & json_proto [07:29:40]process_json_proto [07:29:40]json parsed OK: [07:29:40]protocol is kg_v1.0 [07:29:40]action value=close_receipt [07:29:40]process_action close_receipt [07:29:40]cmd_close_receipt [07:29:40]MH_GetDate [07:29:40]Write to MH i2c: F0 00 00 35 14 38 [07:29:40]Write i2c OK [07:29:40]MH_I2C_Read... [07:29:40]Read from MH i2c: F0 [07:29:40]MH_I2C_Read... [07:29:40]Read from MH i2c: F0 09 00 [07:29:40]MH_I2C_Read... [07:29:40]Read from MH i2c: F0 09 00 35 14 00 E8 1B 48 67 1D 3A 47 67 F8 [07:29:40]GetLastDocTimeStamp 1732777122 [07:29:40]current date 1732778984 [07:29:40]FM_GetShiftState [07:29:40]SAM_PROTO_GetShiftState [07:29:40]wFMCommunicate request_size=4 [07:29:40]MH_SAM_APDU [07:29:40]CAPDU: 80 13 01 00 [07:29:40]Write to MH i2c: E2 08 00 36 14 80 13 01 00 00 00 00 00 C7 [07:29:40]Write i2c OK [07:29:40]MH_I2C_Read... [07:29:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:40]Read from MH i2c: E2 [07:29:40]MH_I2C_Read... [07:29:40]Read from MH i2c: E2 0E 00 [07:29:40]MH_I2C_Read... [07:29:40]Read from MH i2c: E2 0E 00 36 14 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 CE [07:29:40]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:29:40]wFMCommunicate OK [07:29:40]SAM_PROTO_GetShiftState done [07:29:40]FM_GetShiftState done [07:29:40]opened in 1732752282 [07:29:40]opened+sec_in_day 1732838682 [07:29:40]quantity*price = 48056 [07:29:40]sum+1 = 48057 [07:29:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 480.56 НСП 1% : 4.25 НДС 12% : 51.03 Наличными: 0.00 Безнал.: 480.56 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 8 28.11.2024 07:29 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123496 ФПД: 272984681980970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T072944&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123496&fm=272984681980970&tin=02508201610067®Number=0000000000092681&sum=48056 [07:29:41]StoreToDocumentArchive [07:29:41]shift 559 fd 123496 [07:29:41]save to /storage/0559/doc_00123496 [07:29:41]save last doc name /storage/0559/doc_00123496 to /storage/kkm_last_doc_name [07:29:41]save OK [07:29:41]Clear old archive folders... [07:29:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:29:41]tlvbuf is 0147D2E0 [07:29:41]SAM_PROTO_ClearQueue [07:29:41]wFMCommunicate request_size=4 [07:29:41]MH_SAM_APDU [07:29:41]CAPDU: 80 09 00 00 [07:29:41]Write to MH i2c: E2 08 00 43 14 80 09 00 00 00 00 00 00 C9 [07:29:41]Write i2c OK [07:29:41]MH_I2C_Read... [07:29:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:29:41]Read from MH i2c: E2 [07:29:41]MH_I2C_Read... [07:29:41]Read from MH i2c: E2 03 00 [07:29:41]MH_I2C_Read... [07:29:41]Read from MH i2c: E2 03 00 43 14 00 90 00 CB [07:29:41]RAPDU: 90 00 [07:29:41]wFMCommunicate OK [07:29:41]SAM_PROTO_ClearQueue done [07:29:41]KKMCreateOFDPacket [07:29:41]OFDProtocolAddRootSTLVToBuf [07:29:41]FM_MakeSignedData [07:29:41]FM_MakeSignedData [07:29:41]SAM_PROTO_SignData [07:29:41]wFMCommunicate request_size=4 [07:29:41]MH_SAM_APDU [07:29:41]CAPDU: 80 0D 01 02 [07:29:41]Write to MH i2c: E2 08 00 44 14 80 0D 01 02 00 00 00 00 D1 [07:29:41]Write i2c OK [07:29:41]MH_I2C_Read... [07:29:41]Read from MH i2c: E2 [07:29:41]MH_I2C_Read... [07:29:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:29:41]Read from MH i2c: E2 03 00 [07:29:41]MH_I2C_Read... [07:29:41]Read from MH i2c: E2 03 00 44 14 00 90 00 CC [07:29:41]RAPDU: 90 00 [07:29:41]wFMCommunicate OK [07:29:41]wFMCommunicate request_size=255 [07:29:41]MH_SAM_APDU [07:29: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 DA 1B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B8 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E8 1B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 F8 [07:29:41]Write to MH i2c: E2 02 01 45 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 1B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B8 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E8 1B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 F8 00 00 75 [07:29:41]Write i2c OK [07:29:41]MH_I2C_Read... [07:29:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:42]Read from MH i2c: E2 [07:29:42]MH_I2C_Read... [07:29:42]Read from MH i2c: E2 03 00 [07:29:42]MH_I2C_Read... [07:29:42]Read from MH i2c: E2 03 00 45 14 00 90 00 CD [07:29:42]RAPDU: 90 00 [07:29:42]wFMCommunicate OK [07:29:42]wFMCommunicate request_size=10 [07:29:42]MH_SAM_APDU [07:29:42]CAPDU: 80 0D 02 02 05 47 32 FF A4 2A [07:29:42]Write to MH i2c: E2 0D 00 46 14 80 0D 02 02 05 00 47 32 FF A4 2A 00 00 24 [07:29:42]Write i2c OK [07:29:42]MH_I2C_Read... [07:29:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:42]Read from MH i2c: E2 [07:29:42]MH_I2C_Read... [07:29:42]Read from MH i2c: E2 03 00 [07:29:42]MH_I2C_Read... [07:29:42]Read from MH i2c: E2 03 00 46 14 00 90 00 CE [07:29:42]RAPDU: 90 00 [07:29:42]wFMCommunicate OK [07:29:42]wFMCommunicate request_size=4 [07:29:42]MH_SAM_APDU [07:29:42]CAPDU: 80 0D 03 02 [07:29:42]Write to MH i2c: E2 08 00 47 14 80 0D 03 02 00 00 00 00 D6 [07:29:42]Write i2c OK [07:29:42]MH_I2C_Read... [07:29:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:29:42]Read from MH i2c: E2 [07:29:42]MH_I2C_Read... [07:29:42]Read from MH i2c: E2 0B 00 [07:29:42]MH_I2C_Read... [07:29:42]Read from MH i2c: E2 0B 00 47 14 00 E3 41 23 2E ED BF FF 58 90 00 4F [07:29:42]RAPDU: E3 41 23 2E ED BF FF 58 90 00 [07:29:42]wFMCommunicate OK [07:29:42]SAM_PROTO_SignData done [07:29:42]FM_MakeSignedData done [07:29:42]CreateOFDProtocolMessage [07:29:42]wFMCommunicate request_size=4 [07:29:42]MH_SAM_APDU [07:29:42]CAPDU: 80 11 00 00 [07:29:42]Write to MH i2c: E2 08 00 48 14 80 11 00 00 00 00 00 00 D6 [07:29:42]Write i2c OK [07:29:42]MH_I2C_Read... [07:29:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:42]Read from MH i2c: E2 [07:29:42]MH_I2C_Read... [07:29:42]Read from MH i2c: E2 17 00 [07:29:42]MH_I2C_Read... [07:29:42]Read from MH i2c: E2 17 00 48 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2D [07:29:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:29:42]wFMCommunicate OK [07:29:42]CreateOFDProtocolMessage done [07:29:42]OFDSenderStorePacket 123496 [07:29:42]StoreOFDPacket docnum=123496 [07:29: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 41 D8 07 01 0F 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 1B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B8 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E8 1B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 F8 47 32 FF A4 2A E3 41 23 2E ED BF FF 58 [07:29:42]CheckFolder [07:29:42]dirname=/storage/ofd_packets [07:29:42]CheckFolder done [07:29:42]ProducePacketName [07:29:42]name=ofd_packets/00123496 [07:29:42]NVStorageSaveData ofd_packets/00123496 [07:29:42]File name is /storage/ofd_packets/00123496 [07:29:42]Write 301 bytes [07:29:42]NVStorageSaveData done [07:29:42]OFDSenderStorePacket done [07:29:42]KKMCreateOFDPacket done [07:29:42]NVStorageSaveData kkm_last_timestamp [07:29:42]File name is /storage/kkm_last_timestamp [07:29:42]Write 4 bytes [07:29:42]NVStorageSaveData done [07:29:42]ExternCall_PrintAddStr [07:29:42]wPrintStart [07:29:42]Write to MH i2c: 01 00 00 49 14 5D [07:29:42]Write i2c OK [07:29:42]MH_I2C_Read... [07:29:42]Read from MH i2c: 01 [07:29:42]MH_I2C_Read... [07:29:42]Read from MH i2c: 01 07 00 [07:29:42]MH_I2C_Read... [07:29:42]Read from MH i2c: 01 07 00 49 14 00 00 00 00 00 FF 0F 72 [07:29:42]RasterBufferAndPrint [07:29:42]line Счет N : (1)718328 [07:29:42]line ИНН: 02508201610067 [07:29:42]line Контрольно-Кассовый Чек [07:29:42]line ПРОДАЖА [07:29:42]line ТРК (МРК, ГНК) : 42 [07:29:42]line Товар: 2710124130 [07:29:42]line Аи-92-К-4 [07:29:42]line 7.130 * 67.40 [07:29:42]line = 480.56 [07:29:42]line НДС 12% НСП 1% [07:29:42]line > о реализуемом товаре [07:29:42]line ИТОГО: 480.56 [07:29:42]line НСП 1% : 4.25 [07:29:42]line НДС 12% : 51.03 [07:29:42]line Наличными: 0.00 [07:29:42]line Безнал.: 480.56 [07:29:42]line Место: АЗС № 64 "Партнер Нефть" [07:29:42]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [07:29:42]line СНО: Общий режим [07:29:42]line Чек 8 28.11.2024 07:29 [07:29:42]line Смена: 559 ФФД: 1.0 [07:29:42]line ЗНМ: 0300000033 [07:29:42]line РНМ: 0000000000092681 [07:29:42]line Версия ККМ: 001 [07:29:42]line Платежная система: O! деньги [07:29:42]line ФМ: 0000000000874881 [07:29:42]line ФД: 123496 [07:29:42]line ФПД: 272984681980970 [07:29:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T072944&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123496&fm=272984681980970&tin=02508201610067®Number=0000000000092681&sum=48056 [07:29:42]written 0, free lines is 4095 [07:29:42]OFD Sender: Processing packet 123496 [packets to send 7, broken 6] [07:29:42]ProducePacketName [07:29:42]name=ofd_packets/00123496 [07:29:42]OFD Sender: To server: pG, [07:29:42]CommunicateWithHost lk.salyk.kg:30040 [07:29:42]ConnectInit lk.salyk.kg [07:29:42]Connected sock=10 [07:29: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 41 D8 07 01 0F 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 1B 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B8 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E8 1B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 F8 47 32 FF A4 2A E3 41 23 2E ED BF FF 58 [07:29: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 5A 27 47 00 3F 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 68 E2 01 00 F4 03 04 00 AE C7 47 67 B6 04 01 00 00 BD 09 44 B4 5C 76 FC CE [07:29:42]CommunicateWithHost err = 0 [07:29:42]CheckOFDResponse [07:29:42]1017 (14) - 77093643461234 [07:29:42]1041 (16) - 0000000000874881 [07:29:42]1040 (4) - 123496 [07:29:42]1012 (4) - 28.11.2024 01:30 [07:29:42]1206 (1) - 0 [07:29:42]OFD Sender: Remove packet 123496 [07:29:42]ProducePacketName [07:29:42]name=ofd_packets/00123496 [07:29:42]NVStorageDeleteData [07:29:42]Write to MH i2c: 01 00 00 73 14 87 [07:29:42]Write i2c OK [07:29:42]MH_I2C_Read... [07:29:42]Read from MH i2c: 01 [07:29:42]MH_I2C_Read... [07:29:42]Read from MH i2c: 01 07 00 [07:29:42]MH_I2C_Read... [07:29:42]Read from MH i2c: 01 07 00 73 14 00 00 00 00 00 62 0C FC [07:29:42]RasterBufferAndPrint [07:29:42]line [07:29:42]line [07:29:42]line [07:29:42]line [07:29:42]line [07:29:42]written 0, free lines is 3174 [07:29:42]MH_Cut [07:29:42]Write to MH i2c: D1 01 00 7A 14 01 60 [07:29:42]Write i2c OK [07:29:42]MH_I2C_Read... [07:29:42]Read from MH i2c: D1 [07:29:42]MH_I2C_Read... [07:29:42]Read from MH i2c: D1 01 00 [07:29:42]MH_I2C_Read... [07:29:42]Read from MH i2c: D1 01 00 7A 14 00 5F [07:29:42]Write to MH i2c: 01 00 00 7B 14 8F [07:29:42]Write i2c OK [07:29:42]MH_I2C_Read... [07:29:43]OFD Sender: No OFD packet to send [07:29:44]*** Cut start [07:29:44]*** Partial cut [07:29:44]*** CUTSNS_PIN = 1 [07:29:44]*** CUTSNS_PIN = 0 [07:29:44]*** Brake cut motor [07:29:44]Read from MH i2c: 01 [07:29:44]MH_I2C_Read... [07:29:44]*** Stop cut motor [07:29:44]*** Cut end [07:29:44]Read from MH i2c: 01 07 00 [07:29:44]MH_I2C_Read... [07:29:44]Read from MH i2c: 01 07 00 7B 14 00 00 00 00 00 FF 0F A4 [07:29:44]process_action close_receipt done [07:29:44]requested_data is exist [07:29:44]produce_requested_data [07:29:44]requested_item fm.sn is exist - process it [07:29:44]wFMCommunicate request_size=4 [07:29:44]MH_SAM_APDU [07:29:44]CAPDU: 80 11 00 00 [07:29:44]Write to MH i2c: E2 08 00 7C 14 80 11 00 00 00 00 00 00 0A [07:29:44]Write i2c OK [07:29:44]MH_I2C_Read... [07:29:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:44]Read from MH i2c: E2 [07:29:44]MH_I2C_Read... [07:29:44]Read from MH i2c: E2 17 00 [07:29:44]MH_I2C_Read... [07:29:44]Read from MH i2c: E2 17 00 7C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 61 [07:29:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:29:44]wFMCommunicate OK [07:29:44]requested_item fd.num is exist - process it [07:29:44]SAM_PROTO_GetFieldsCounters [07:29:44]wFMCommunicate request_size=4 [07:29:44]MH_SAM_APDU [07:29:44]CAPDU: 80 13 00 00 [07:29:44]Write to MH i2c: E2 08 00 7D 14 80 13 00 00 00 00 00 00 0D [07:29:44]Write i2c OK [07:29:44]MH_I2C_Read... [07:29:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:29:44]Read from MH i2c: E2 [07:29:44]MH_I2C_Read... [07:29:44]Read from MH i2c: E2 62 00 [07:29:44]MH_I2C_Read... [07:29:44]Read from MH i2c: E2 62 00 7D 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 C7 [07:29: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 68 E2 01 00 0E 04 04 00 2F 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 [07:29:44]wFMCommunicate OK [07:29:44]SAM_PROTO_GetFieldsCounters done [07:29:44]requested_item shift.num is exist - process it [07:29:44]requested_item shift.opened is exist - process it [07:29:44]req_shift_opened [07:29:44]FM_GetShiftState [07:29:44]SAM_PROTO_GetShiftState [07:29:44]wFMCommunicate request_size=4 [07:29:44]MH_SAM_APDU [07:29:44]CAPDU: 80 13 01 00 [07:29:44]Write to MH i2c: E2 08 00 7E 14 80 13 01 00 00 00 00 00 0F [07:29:44]Write i2c OK [07:29:44]MH_I2C_Read... [07:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:45]Read from MH i2c: E2 [07:29:45]MH_I2C_Read... [07:29:45]Read from MH i2c: E2 0E 00 [07:29:45]MH_I2C_Read... [07:29:45]Read from MH i2c: E2 0E 00 7E 14 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 16 [07:29:45]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:29:45]wFMCommunicate OK [07:29:45]SAM_PROTO_GetShiftState done [07:29:45]FM_GetShiftState done [07:29:45]req_shift_opened done [07:29:45]requested_item shift.open_date is exist - process it [07:29:45]req_shift_open_date [07:29:45]req_shift_open_date done [07:29:45]produce_requested_data done [07:29:45]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123496,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [07:29:45]process_action_free close_receipt [07:29:45]json_value_free [07:29:45]json_value_free done [07:29:45]process_json_proto returns [07:29:45]Send response to host [07:29:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123496,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [07:29:45]free response buf [07:29:45]execute_script done [07:29:45]execute_script returns [07:29:45]free content buf [07:29:45]Sock 9.Close socket [07:29:45]Sock 9.Thread stoped [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:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:51]accept exits with 8 [07:48:51]New connection [07:48:51]New thread 3066862948 created [07:48:51]Thread 3066719588 joined [07:48:51]Waiting for new connection... [07:48:51] Sock 8.Parse request [07:48:51]Sock 8.Check first char [07:48:51]Sock 8.First char is OK [07:48:51]request: POST /json_proto HTTP/1.0 [07:48:51]Method: POST [07:48:51]URL: /json_proto [07:48:51]Method is POST - this is cgi request [07:48:51]url: /json_proto [07:48:51]query_string will be loaded in cgi processing [07:48:51]execute_cgi json_proto POST (null) [07:48:51]execute_cgi path=json_proto method=POST [07:48:51]POST find Content-Length [07:48:51]Host: 172.17.37.4:8080 [07:48:51]Content-Length: 682 [07:48:51]Content-Type: application/json [07:48:51] [07:48:51]POST finish read [07:48:51]Found Content-Length = 682 [07:48:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718329", "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" ] } } [07:48:51]execute_script... [07:48: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)718329", "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" ] } } [07:48:51]POST & json_proto [07:48:51]process_json_proto [07:48:51]json parsed OK: [07:48:51]protocol is kg_v1.0 [07:48:51]action value=close_receipt [07:48:51]process_action close_receipt [07:48:51]cmd_close_receipt [07:48:51]MH_GetDate [07:48:51]Write to MH i2c: F0 00 00 7F 14 82 [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: F0 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: F0 09 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: F0 09 00 7F 14 00 67 20 48 67 1D 3A 47 67 C6 [07:48:51]GetLastDocTimeStamp 1732778984 [07:48:51]current date 1732780135 [07:48:51]FM_GetShiftState [07:48:51]SAM_PROTO_GetShiftState [07:48:51]wFMCommunicate request_size=4 [07:48:51]MH_SAM_APDU [07:48:51]CAPDU: 80 13 01 00 [07:48:51]Write to MH i2c: E2 08 00 80 14 80 13 01 00 00 00 00 00 11 [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:51]Read from MH i2c: E2 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 0E 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 0E 00 80 14 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 18 [07:48:51]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:48:51]wFMCommunicate OK [07:48:51]SAM_PROTO_GetShiftState done [07:48:51]FM_GetShiftState done [07:48:51]opened in 1732752282 [07:48:51]opened+sec_in_day 1732838682 [07:48:51]quantity*price = 100021 [07:48:51]sum+1 = 100023 [07:48:51]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 СНО: Общий режим Чек 9 28.11.2024 07:48 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123497 ФПД: 249081506192741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T074855&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123497&fm=249081506192741&tin=02508201610067®Number=0000000000092681&sum=100000 [07:48:53]StoreToDocumentArchive [07:48:53]shift 559 fd 123497 [07:48:53]save to /storage/0559/doc_00123497 [07:48:53]save last doc name /storage/0559/doc_00123497 to /storage/kkm_last_doc_name [07:48:53]save OK [07:48:53]Clear old archive folders... [07:48:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:48:53]tlvbuf is 0149C070 [07:48:53]SAM_PROTO_ClearQueue [07:48:53]wFMCommunicate request_size=4 [07:48:53]MH_SAM_APDU [07:48:53]CAPDU: 80 09 00 00 [07:48:53]Write to MH i2c: E2 08 00 8D 14 80 09 00 00 00 00 00 00 13 [07:48:53]Write i2c OK [07:48:53]MH_I2C_Read... [07:48:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:53]Read from MH i2c: E2 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 03 00 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 03 00 8D 14 00 90 00 15 [07:48:53]RAPDU: 90 00 [07:48:53]wFMCommunicate OK [07:48:53]SAM_PROTO_ClearQueue done [07:48:53]KKMCreateOFDPacket [07:48:53]OFDProtocolAddRootSTLVToBuf [07:48:53]FM_MakeSignedData [07:48:53]FM_MakeSignedData [07:48:53]SAM_PROTO_SignData [07:48:53]wFMCommunicate request_size=4 [07:48:53]MH_SAM_APDU [07:48:53]CAPDU: 80 0D 01 02 [07:48:53]Write to MH i2c: E2 08 00 8E 14 80 0D 01 02 00 00 00 00 1B [07:48:53]Write i2c OK [07:48:53]MH_I2C_Read... [07:48:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:53]Read from MH i2c: E2 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 03 00 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 03 00 8E 14 00 90 00 16 [07:48:53]RAPDU: 90 00 [07:48:53]wFMCommunicate OK [07:48:53]wFMCommunicate request_size=255 [07:48:53]MH_SAM_APDU [07:48: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 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 09 00 00 00 F4 03 04 00 67 20 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E2 [07:48:53]Write to MH i2c: E2 02 01 8F 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 09 00 00 00 F4 03 04 00 67 20 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E2 00 00 10 [07:48:53]Write i2c OK [07:48:53]MH_I2C_Read... [07:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:53]Read from MH i2c: E2 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 03 00 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 03 00 8F 14 00 90 00 17 [07:48:53]RAPDU: 90 00 [07:48:53]wFMCommunicate OK [07:48:53]wFMCommunicate request_size=10 [07:48:53]MH_SAM_APDU [07:48:53]CAPDU: 80 0D 02 02 05 89 CE B2 5D 65 [07:48:53]Write to MH i2c: E2 0D 00 90 14 80 0D 02 02 05 00 89 CE B2 5D 65 00 00 F3 [07:48:53]Write i2c OK [07:48:53]MH_I2C_Read... [07:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:53]Read from MH i2c: E2 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 03 00 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 03 00 90 14 00 90 00 18 [07:48:53]RAPDU: 90 00 [07:48:53]wFMCommunicate OK [07:48:53]wFMCommunicate request_size=4 [07:48:53]MH_SAM_APDU [07:48:53]CAPDU: 80 0D 03 02 [07:48:53]Write to MH i2c: E2 08 00 91 14 80 0D 03 02 00 00 00 00 20 [07:48:53]Write i2c OK [07:48:53]MH_I2C_Read... [07:48:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:53]Read from MH i2c: E2 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 0B 00 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 0B 00 91 14 00 BE D6 14 F9 17 22 28 76 90 00 99 [07:48:53]RAPDU: BE D6 14 F9 17 22 28 76 90 00 [07:48:53]wFMCommunicate OK [07:48:53]SAM_PROTO_SignData done [07:48:53]FM_MakeSignedData done [07:48:53]CreateOFDProtocolMessage [07:48:53]wFMCommunicate request_size=4 [07:48:53]MH_SAM_APDU [07:48:53]CAPDU: 80 11 00 00 [07:48:53]Write to MH i2c: E2 08 00 92 14 80 11 00 00 00 00 00 00 20 [07:48:53]Write i2c OK [07:48:53]MH_I2C_Read... [07:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:53]Read from MH i2c: E2 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 17 00 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 17 00 92 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 77 [07:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:48:53]wFMCommunicate OK [07:48:53]CreateOFDProtocolMessage done [07:48:53]OFDSenderStorePacket 123497 [07:48:53]StoreOFDPacket docnum=123497 [07:48: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 E1 FA 07 01 C6 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 09 00 00 00 F4 03 04 00 67 20 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E2 89 CE B2 5D 65 BE D6 14 F9 17 22 28 76 [07:48:53]CheckFolder [07:48:53]dirname=/storage/ofd_packets [07:48:53]CheckFolder done [07:48:53]ProducePacketName [07:48:53]name=ofd_packets/00123497 [07:48:53]NVStorageSaveData ofd_packets/00123497 [07:48:53]File name is /storage/ofd_packets/00123497 [07:48:53]Write 301 bytes [07:48:53]NVStorageSaveData done [07:48:53]OFDSenderStorePacket done [07:48:53]KKMCreateOFDPacket done [07:48:53]NVStorageSaveData kkm_last_timestamp [07:48:53]File name is /storage/kkm_last_timestamp [07:48:53]Write 4 bytes [07:48:53]NVStorageSaveData done [07:48:53]ExternCall_PrintAddStr [07:48:53]wPrintStart [07:48:53]Write to MH i2c: 01 00 00 93 14 A7 [07:48:53]Write i2c OK [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: 01 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: 01 07 00 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: 01 07 00 93 14 00 00 00 00 00 FF 0F BC [07:48:53]RasterBufferAndPrint [07:48:53]line Счет N : (1)718329 [07:48:53]line ИНН: 02508201610067 [07:48:53]line Контрольно-Кассовый Чек [07:48:53]line ПРОДАЖА [07:48:53]line ТРК (МРК, ГНК) : 22 [07:48:53]line Товар: 2710124130 [07:48:53]line Аи-92-К-4 [07:48:53]line 14.840 * 67.40 [07:48:53]line = 1000.22 [07:48:53]line НДС 12% НСП 1% [07:48:53]line > о реализуемом товаре [07:48:53]line ОКРУГЛЕНИЕ: -0.22 [07:48:53]line ИТОГО: 1000.00 [07:48:53]line Внесено: 1000.00 [07:48:53]line СДАЧА: 0.00 [07:48:53]line НСП 1% : 8.85 [07:48:53]line НДС 12% : 106.22 [07:48:53]line Наличными: 1000.00 [07:48:53]line Безнал.: 0.00 [07:48:53]line Место: АЗС № 64 "Партнер Нефть" [07:48:53]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [07:48:53]line СНО: Общий режим [07:48:53]line Чек 9 28.11.2024 07:48 [07:48:53]line Смена: 559 ФФД: 1.0 [07:48:53]line ЗНМ: 0300000033 [07:48:53]line РНМ: 0000000000092681 [07:48:53]line Версия ККМ: 001 [07:48:53]line ФМ: 0000000000874881 [07:48:53]line ФД: 123497 [07:48:53]line ФПД: 249081506192741 [07:48:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T074855&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123497&fm=249081506192741&tin=02508201610067®Number=0000000000092681&sum=100000 [07:48:53]OFD Sender: Processing packet 123497 [packets to send 7, broken 6] [07:48:53]ProducePacketName [07:48:53]name=ofd_packets/00123497 [07:48:53]OFD Sender: To server: pG, [07:48:53]CommunicateWithHost lk.salyk.kg:30040 [07:48:53]ConnectInit lk.salyk.kg [07:48:53]written 0, free lines is 4095 [07:48:54]Connected sock=11 [07: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 E1 FA 07 01 C6 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 09 00 00 00 F4 03 04 00 67 20 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E2 89 CE B2 5D 65 BE D6 14 F9 17 22 28 76 [07: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 4F 43 47 00 D6 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 69 E2 01 00 F4 03 04 00 2E CC 47 67 B6 04 01 00 00 8B 5B 4D 23 07 E4 62 7E [07:48:54]CommunicateWithHost err = 0 [07:48:54]CheckOFDResponse [07:48:54]1017 (14) - 77093643461234 [07:48:54]1041 (16) - 0000000000874881 [07:48:54]1040 (4) - 123497 [07:48:54]1012 (4) - 28.11.2024 01:49 [07:48:54]1206 (1) - 0 [07:48:54]OFD Sender: Remove packet 123497 [07:48:54]ProducePacketName [07:48:54]name=ofd_packets/00123497 [07:48:54]NVStorageDeleteData [07:48:54]Write to MH i2c: 01 00 00 BE 14 D2 [07:48:54]Write i2c OK [07:48:54]MH_I2C_Read... [07:48:54]Read from MH i2c: 01 [07:48:54]MH_I2C_Read... [07:48:54]Read from MH i2c: 01 07 00 [07:48:54]MH_I2C_Read... [07:48:54]Read from MH i2c: 01 07 00 BE 14 00 00 00 00 00 46 0C 2B [07:48:54]RasterBufferAndPrint [07:48:54]line [07:48:54]line [07:48:54]line [07:48:54]line [07:48:54]line [07:48:54]written 0, free lines is 3145 [07:48:54]MH_Cut [07:48:54]Write to MH i2c: D1 01 00 C5 14 01 AB [07:48:54]Write i2c OK [07:48:54]MH_I2C_Read... [07:48:54]Read from MH i2c: D1 [07:48:54]MH_I2C_Read... [07:48:54]Read from MH i2c: D1 01 00 [07:48:54]MH_I2C_Read... [07:48:54]Read from MH i2c: D1 01 00 C5 14 00 AA [07:48:54]Write to MH i2c: 01 00 00 C6 14 DA [07:48:54]Write i2c OK [07:48:54]MH_I2C_Read... [07:48:54]OFD Sender: No OFD packet to send [07:48:55]*** Cut start [07:48:55]*** Partial cut [07:48:55]*** CUTSNS_PIN = 1 [07:48:55]*** CUTSNS_PIN = 0 [07:48:56]*** Brake cut motor [07:48:56]Read from MH i2c: 01 [07:48:56]MH_I2C_Read... [07:48:56]*** Stop cut motor [07:48:56]*** Cut end [07:48:56]Read from MH i2c: 01 07 00 [07:48:56]MH_I2C_Read... [07:48:56]Read from MH i2c: 01 07 00 C6 14 00 00 00 00 00 FF 0F EF [07:48:56]process_action close_receipt done [07:48:56]requested_data is exist [07:48:56]produce_requested_data [07:48:56]requested_item fm.sn is exist - process it [07:48:56]wFMCommunicate request_size=4 [07:48:56]MH_SAM_APDU [07:48:56]CAPDU: 80 11 00 00 [07:48:56]Write to MH i2c: E2 08 00 C7 14 80 11 00 00 00 00 00 00 55 [07:48:56]Write i2c OK [07:48:56]MH_I2C_Read... [07:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:56]Read from MH i2c: E2 [07:48:56]MH_I2C_Read... [07:48:56]Read from MH i2c: E2 17 00 [07:48:56]MH_I2C_Read... [07:48:56]Read from MH i2c: E2 17 00 C7 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AC [07: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 [07:48:56]wFMCommunicate OK [07:48:56]requested_item fd.num is exist - process it [07:48:56]SAM_PROTO_GetFieldsCounters [07:48:56]wFMCommunicate request_size=4 [07:48:56]MH_SAM_APDU [07:48:56]CAPDU: 80 13 00 00 [07:48:56]Write to MH i2c: E2 08 00 C8 14 80 13 00 00 00 00 00 00 58 [07:48:56]Write i2c OK [07:48:56]MH_I2C_Read... [07:48:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:56]Read from MH i2c: E2 [07:48:56]MH_I2C_Read... [07:48:56]Read from MH i2c: E2 62 00 [07:48:56]MH_I2C_Read... [07:48:56]Read from MH i2c: E2 62 00 C8 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 16 [07:48: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 69 E2 01 00 0E 04 04 00 2F 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 [07:48:56]wFMCommunicate OK [07:48:56]SAM_PROTO_GetFieldsCounters done [07:48:56]requested_item shift.num is exist - process it [07:48:56]requested_item shift.opened is exist - process it [07:48:56]req_shift_opened [07:48:56]FM_GetShiftState [07:48:56]SAM_PROTO_GetShiftState [07:48:56]wFMCommunicate request_size=4 [07:48:56]MH_SAM_APDU [07:48:56]CAPDU: 80 13 01 00 [07:48:56]Write to MH i2c: E2 08 00 C9 14 80 13 01 00 00 00 00 00 5A [07:48:56]Write i2c OK [07:48:56]MH_I2C_Read... [07:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:56]Read from MH i2c: E2 [07:48:56]MH_I2C_Read... [07:48:56]Read from MH i2c: E2 0E 00 [07:48:56]MH_I2C_Read... [07:48:56]Read from MH i2c: E2 0E 00 C9 14 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 61 [07:48:56]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:48:56]wFMCommunicate OK [07:48:56]SAM_PROTO_GetShiftState done [07:48:56]FM_GetShiftState done [07:48:56]req_shift_opened done [07:48:56]requested_item shift.open_date is exist - process it [07:48:56]req_shift_open_date [07:48:56]req_shift_open_date done [07:48:56]produce_requested_data done [07:48:56]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123497,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [07:48:56]process_action_free close_receipt [07:48:56]json_value_free [07:48:56]json_value_free done [07:48:56]process_json_proto returns [07:48:56]Send response to host [07:48:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123497,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [07:48:56]free response buf [07:48:56]execute_script done [07:48:56]execute_script returns [07:48:56]free content buf [07:48:56]Sock 8.Close socket [07:48:56]Sock 8.Thread stoped [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:35]accept exits with 9 [07:50:35]New connection [07:50:35]New thread 3066719588 created [07:50:35]Thread 3066862948 joined [07:50:35]Waiting for new connection... [07:50:35] Sock 9.Parse request [07:50:35]Sock 9.Check first char [07:50:35]Sock 9.First char is OK [07:50:35]request: POST /json_proto HTTP/1.0 [07:50:35]Method: POST [07:50:35]URL: /json_proto [07:50:35]Method is POST - this is cgi request [07:50:35]url: /json_proto [07:50:35]query_string will be loaded in cgi processing [07:50:35]execute_cgi json_proto POST (null) [07:50:35]execute_cgi path=json_proto method=POST [07:50:35]POST find Content-Length [07:50:35]Host: 172.17.37.4:8080 [07:50:35]Content-Length: 807 [07:50:35]Content-Type: application/json [07:50:35] [07:50:35]POST finish read [07:50:35]Found Content-Length = 807 [07:50:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718330", "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 }]} ], "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" ] } } [07:50:35]execute_script... [07:50: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)718330", "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 }]} ], "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" ] } } [07:50:35]POST & json_proto [07:50:35]process_json_proto [07:50:35]json parsed OK: [07:50:35]protocol is kg_v1.0 [07:50:35]action value=close_receipt [07:50:35]process_action close_receipt [07:50:35]cmd_close_receipt [07:50:35]MH_GetDate [07:50:35]Write to MH i2c: F0 00 00 CA 14 CD [07:50:35]Write i2c OK [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: F0 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: F0 09 00 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: F0 09 00 CA 14 00 CF 20 48 67 1D 3A 47 67 79 [07:50:35]GetLastDocTimeStamp 1732780135 [07:50:35]current date 1732780239 [07:50:35]FM_GetShiftState [07:50:35]SAM_PROTO_GetShiftState [07:50:35]wFMCommunicate request_size=4 [07:50:35]MH_SAM_APDU [07:50:35]CAPDU: 80 13 01 00 [07:50:35]Write to MH i2c: E2 08 00 CB 14 80 13 01 00 00 00 00 00 5C [07:50:35]Write i2c OK [07:50:35]MH_I2C_Read... [07:50:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:35]Read from MH i2c: E2 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 0E 00 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 0E 00 CB 14 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 63 [07:50:35]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:50:35]wFMCommunicate OK [07:50:35]SAM_PROTO_GetShiftState done [07:50:35]FM_GetShiftState done [07:50:35]opened in 1732752282 [07:50:35]opened+sec_in_day 1732838682 [07:50:35]quantity*price = 200057 [07:50:35]sum+1 = 200059 [07:50:35]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 СНО: Общий режим Чек 10 28.11.2024 07:50 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123498 ФПД: 62172496154870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T075039&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123498&fm=62172496154870&tin=02508201610067®Number=0000000000092681&sum=200058 [07:50:36]StoreToDocumentArchive [07:50:36]shift 559 fd 123498 [07:50:36]save to /storage/0559/doc_00123498 [07:50:36]save last doc name /storage/0559/doc_00123498 to /storage/kkm_last_doc_name [07:50:36]save OK [07:50:36]Clear old archive folders... [07:50:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:50:36]tlvbuf is 0149C0C0 [07:50:36]SAM_PROTO_ClearQueue [07:50:36]wFMCommunicate request_size=4 [07:50:36]MH_SAM_APDU [07:50:36]CAPDU: 80 09 00 00 [07:50:36]Write to MH i2c: E2 08 00 D8 14 80 09 00 00 00 00 00 00 5E [07:50:36]Write i2c OK [07:50:36]MH_I2C_Read... [07:50:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:36]Read from MH i2c: E2 [07:50:36]MH_I2C_Read... [07:50:36]Read from MH i2c: E2 03 00 [07:50:36]MH_I2C_Read... [07:50:36]Read from MH i2c: E2 03 00 D8 14 00 90 00 60 [07:50:36]RAPDU: 90 00 [07:50:36]wFMCommunicate OK [07:50:36]SAM_PROTO_ClearQueue done [07:50:36]KKMCreateOFDPacket [07:50:36]OFDProtocolAddRootSTLVToBuf [07:50:36]FM_MakeSignedData [07:50:36]FM_MakeSignedData [07:50:36]SAM_PROTO_SignData [07:50:36]wFMCommunicate request_size=4 [07:50:36]MH_SAM_APDU [07:50:36]CAPDU: 80 0D 01 02 [07:50:36]Write to MH i2c: E2 08 00 D9 14 80 0D 01 02 00 00 00 00 66 [07:50:36]Write i2c OK [07:50:36]MH_I2C_Read... [07:50:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:36]Read from MH i2c: E2 [07:50:36]MH_I2C_Read... [07:50:36]Read from MH i2c: E2 03 00 [07:50:36]MH_I2C_Read... [07:50:36]Read from MH i2c: E2 03 00 D9 14 00 90 00 61 [07:50:36]RAPDU: 90 00 [07:50:36]wFMCommunicate OK [07:50:36]wFMCommunicate request_size=255 [07:50:36]MH_SAM_APDU [07:50:36]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 0A 00 00 00 F4 03 04 00 CF 20 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 [07:50:36]Write to MH i2c: E2 02 01 DA 14 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 0A 00 00 00 F4 03 04 00 CF 20 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 00 00 D0 [07:50:36]Write i2c OK [07:50:36]MH_I2C_Read... [07:50:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:37]Read from MH i2c: E2 [07:50:37]MH_I2C_Read... [07:50:37]Read from MH i2c: E2 03 00 [07:50:37]MH_I2C_Read... [07:50:37]Read from MH i2c: E2 03 00 DA 14 00 90 00 62 [07:50:37]RAPDU: 90 00 [07:50:37]wFMCommunicate OK [07:50:37]wFMCommunicate request_size=11 [07:50:37]MH_SAM_APDU [07:50:37]CAPDU: 80 0D 02 02 06 38 8B A9 8C 50 F6 [07:50:37]Write to MH i2c: E2 0E 00 DB 14 80 0D 02 02 06 00 38 8B A9 8C 50 F6 00 00 B3 [07:50:37]Write i2c OK [07:50:37]MH_I2C_Read... [07:50:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:37]Read from MH i2c: E2 [07:50:37]MH_I2C_Read... [07:50:37]Read from MH i2c: E2 03 00 [07:50:37]MH_I2C_Read... [07:50:37]Read from MH i2c: E2 03 00 DB 14 00 90 00 63 [07:50:37]RAPDU: 90 00 [07:50:37]wFMCommunicate OK [07:50:37]wFMCommunicate request_size=4 [07:50:37]MH_SAM_APDU [07:50:37]CAPDU: 80 0D 03 02 [07:50:37]Write to MH i2c: E2 08 00 DC 14 80 0D 03 02 00 00 00 00 6B [07:50:37]Write i2c OK [07:50:37]MH_I2C_Read... [07:50:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:37]Read from MH i2c: E2 [07:50:37]MH_I2C_Read... [07:50:37]Read from MH i2c: E2 0B 00 [07:50:37]MH_I2C_Read... [07:50:37]Read from MH i2c: E2 0B 00 DC 14 00 3C ED 47 20 EB 81 41 7B 90 00 24 [07:50:37]RAPDU: 3C ED 47 20 EB 81 41 7B 90 00 [07:50:37]wFMCommunicate OK [07:50:37]SAM_PROTO_SignData done [07:50:37]FM_MakeSignedData done [07:50:37]CreateOFDProtocolMessage [07:50:37]wFMCommunicate request_size=4 [07:50:37]MH_SAM_APDU [07:50:37]CAPDU: 80 11 00 00 [07:50:37]Write to MH i2c: E2 08 00 DD 14 80 11 00 00 00 00 00 00 6B [07:50:37]Write i2c OK [07:50:37]MH_I2C_Read... [07:50:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:37]Read from MH i2c: E2 [07:50:37]MH_I2C_Read... [07:50:37]Read from MH i2c: E2 17 00 [07:50:37]MH_I2C_Read... [07:50:37]Read from MH i2c: E2 17 00 DD 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C2 [07:50:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:50:37]wFMCommunicate OK [07:50:37]CreateOFDProtocolMessage done [07:50:37]OFDSenderStorePacket 123498 [07:50:37]StoreOFDPacket docnum=123498 [07:50: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 F1 C6 08 01 5F 96 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 0A 00 00 00 F4 03 04 00 CF 20 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 38 8B A9 8C 50 F6 3C ED 47 20 EB 81 41 7B [07:50:37]CheckFolder [07:50:37]dirname=/storage/ofd_packets [07:50:37]CheckFolder done [07:50:37]ProducePacketName [07:50:37]name=ofd_packets/00123498 [07:50:37]NVStorageSaveData ofd_packets/00123498 [07:50:37]File name is /storage/ofd_packets/00123498 [07:50:37]Write 302 bytes [07:50:37]NVStorageSaveData done [07:50:37]OFDSenderStorePacket done [07:50:37]KKMCreateOFDPacket done [07:50:37]NVStorageSaveData kkm_last_timestamp [07:50:37]File name is /storage/kkm_last_timestamp [07:50:37]Write 4 bytes [07:50:37]NVStorageSaveData done [07:50:37]ExternCall_PrintAddStr [07:50:37]wPrintStart [07:50:37]Write to MH i2c: 01 00 00 DE 14 F2 [07:50:37]Write i2c OK [07:50:37]MH_I2C_Read... [07:50:37]Read from MH i2c: 01 [07:50:37]MH_I2C_Read... [07:50:37]Read from MH i2c: 01 07 00 [07:50:37]MH_I2C_Read... [07:50:37]Read from MH i2c: 01 07 00 DE 14 00 00 00 00 00 FF 0F 07 [07:50:37]RasterBufferAndPrint [07:50:37]line Счет N : (1)718330 [07:50:37]line ИНН: 02508201610067 [07:50:37]line Контрольно-Кассовый Чек [07:50:37]line ПРОДАЖА [07:50:37]line ТРК (МРК, ГНК) : 6 [07:50:37]line Товар: 2710194210 [07:50:37]line ДТ(л)-К-5 [07:50:37]line 26.710 * 74.90 [07:50:37]line = 2000.58 [07:50:37]line НДС 12% НСП 1% [07:50:37]line > о реализуемом товаре [07:50:37]line ИТОГО: 2000.58 [07:50:37]line НСП 1% : 17.70 [07:50:37]line НДС 12% : 212.45 [07:50:37]line Наличными: 0.00 [07:50:37]line Безнал.: 2000.58 [07:50:37]line Место: АЗС № 64 "Партнер Нефть" [07:50:37]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [07:50:37]line СНО: Общий режим [07:50:37]line Чек 10 28.11.2024 07:50 [07:50:37]line Смена: 559 ФФД: 1.0 [07:50:37]line ЗНМ: 0300000033 [07:50:37]line РНМ: 0000000000092681 [07:50:37]line Версия ККМ: 001 [07:50:37]line Платежная система: O! деньги [07:50:37]line ФМ: 0000000000874881 [07:50:37]line ФД: 123498 [07:50:37]line ФПД: 62172496154870 [07:50:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T075039&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123498&fm=62172496154870&tin=02508201610067®Number=0000000000092681&sum=200058 [07:50:37]written 0, free lines is 4095 [07:50:37]OFD Sender: Processing packet 123498 [packets to send 7, broken 6] [07:50:37]ProducePacketName [07:50:37]name=ofd_packets/00123498 [07:50:37]OFD Sender: To server: pG, [07:50:37]CommunicateWithHost lk.salyk.kg:30040 [07:50:37]ConnectInit lk.salyk.kg [07:50:37]Connected sock=10 [07:50:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 F1 C6 08 01 5F 96 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 0A 00 00 00 F4 03 04 00 CF 20 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 38 8B A9 8C 50 F6 3C ED 47 20 EB 81 41 7B [07:50: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 EC 0D 47 00 FD 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 6A E2 01 00 F4 03 04 00 96 CC 47 67 B6 04 01 00 00 19 8D 6F B8 30 A0 D3 63 [07:50:37]CommunicateWithHost err = 0 [07:50:37]CheckOFDResponse [07:50:37]1017 (14) - 77093643461234 [07:50:37]1041 (16) - 0000000000874881 [07:50:37]1040 (4) - 123498 [07:50:37]1012 (4) - 28.11.2024 01:51 [07:50:37]1206 (1) - 0 [07:50:37]OFD Sender: Remove packet 123498 [07:50:37]ProducePacketName [07:50:37]name=ofd_packets/00123498 [07:50:37]NVStorageDeleteData [07:50:38]Write to MH i2c: 01 00 00 08 15 1D [07:50:38]Write i2c OK [07:50:38]MH_I2C_Read... [07:50:38]Read from MH i2c: 01 [07:50:38]MH_I2C_Read... [07:50:38]Read from MH i2c: 01 07 00 [07:50:38]MH_I2C_Read... [07:50:38]Read from MH i2c: 01 07 00 08 15 00 00 00 00 00 55 0C 85 [07:50:38]RasterBufferAndPrint [07:50:38]line [07:50:38]line [07:50:38]line [07:50:38]line [07:50:38]line [07:50:38]written 0, free lines is 3163 [07:50:38]MH_Cut [07:50:38]Write to MH i2c: D1 01 00 0F 15 01 F6 [07:50:38]Write i2c OK [07:50:38]MH_I2C_Read... [07:50:38]Read from MH i2c: D1 [07:50:38]MH_I2C_Read... [07:50:38]Read from MH i2c: D1 01 00 [07:50:38]MH_I2C_Read... [07:50:38]Read from MH i2c: D1 01 00 0F 15 00 F5 [07:50:38]Write to MH i2c: 01 00 00 10 15 25 [07:50:38]Write i2c OK [07:50:38]MH_I2C_Read... [07:50:38]OFD Sender: No OFD packet to send [07:50:39]*** Cut start [07:50:39]*** Partial cut [07:50:39]*** CUTSNS_PIN = 1 [07:50:39]*** CUTSNS_PIN = 0 [07:50:39]*** Brake cut motor [07:50:40]Read from MH i2c: 01 [07:50:40]MH_I2C_Read... [07:50:40]*** Stop cut motor [07:50:40]*** Cut end [07:50:40]Read from MH i2c: 01 07 00 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: 01 07 00 10 15 00 00 00 00 00 FF 0F 3A [07:50:40]process_action close_receipt done [07:50:40]requested_data is exist [07:50:40]produce_requested_data [07:50:40]requested_item fm.sn is exist - process it [07:50:40]wFMCommunicate request_size=4 [07:50:40]MH_SAM_APDU [07:50:40]CAPDU: 80 11 00 00 [07:50:40]Write to MH i2c: E2 08 00 11 15 80 11 00 00 00 00 00 00 A0 [07:50:40]Write i2c OK [07:50:40]MH_I2C_Read... [07:50:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:40]Read from MH i2c: E2 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: E2 17 00 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: E2 17 00 11 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F7 [07:50:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:50:40]wFMCommunicate OK [07:50:40]requested_item fd.num is exist - process it [07:50:40]SAM_PROTO_GetFieldsCounters [07:50:40]wFMCommunicate request_size=4 [07:50:40]MH_SAM_APDU [07:50:40]CAPDU: 80 13 00 00 [07:50:40]Write to MH i2c: E2 08 00 12 15 80 13 00 00 00 00 00 00 A3 [07:50:40]Write i2c OK [07:50:40]MH_I2C_Read... [07:50:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:40]Read from MH i2c: E2 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: E2 62 00 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: E2 62 00 12 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 65 [07:50: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 6A E2 01 00 0E 04 04 00 2F 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 [07:50:40]wFMCommunicate OK [07:50:40]SAM_PROTO_GetFieldsCounters done [07:50:40]requested_item shift.num is exist - process it [07:50:40]requested_item shift.opened is exist - process it [07:50:40]req_shift_opened [07:50:40]FM_GetShiftState [07:50:40]SAM_PROTO_GetShiftState [07:50:40]wFMCommunicate request_size=4 [07:50:40]MH_SAM_APDU [07:50:40]CAPDU: 80 13 01 00 [07:50:40]Write to MH i2c: E2 08 00 13 15 80 13 01 00 00 00 00 00 A5 [07:50:40]Write i2c OK [07:50:40]MH_I2C_Read... [07:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:40]Read from MH i2c: E2 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: E2 0E 00 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: E2 0E 00 13 15 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 AC [07:50:40]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:50:40]wFMCommunicate OK [07:50:40]SAM_PROTO_GetShiftState done [07:50:40]FM_GetShiftState done [07:50:40]req_shift_opened done [07:50:40]requested_item shift.open_date is exist - process it [07:50:40]req_shift_open_date [07:50:40]req_shift_open_date done [07:50:40]produce_requested_data done [07:50:40]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123498,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [07:50:40]process_action_free close_receipt [07:50:40]json_value_free [07:50:40]json_value_free done [07:50:40]process_json_proto returns [07:50:40]Send response to host [07:50:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123498,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [07:50:40]free response buf [07:50:40]execute_script done [07:50:40]execute_script returns [07:50:40]free content buf [07:50:40]Sock 9.Close socket [07:50:40]Sock 9.Thread stoped [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:10]accept exits with 8 [07:52:10]New connection [07:52:10]New thread 3066862948 created [07:52:10]Thread 3066719588 joined [07:52:10]Waiting for new connection... [07:52:10] Sock 8.Parse request [07:52:10]Sock 8.Check first char [07:52:10]Sock 8.First char is OK [07:52:10]request: POST /json_proto HTTP/1.0 [07:52:10]Method: POST [07:52:10]URL: /json_proto [07:52:10]Method is POST - this is cgi request [07:52:10]url: /json_proto [07:52:10]query_string will be loaded in cgi processing [07:52:10]execute_cgi json_proto POST (null) [07:52:10]execute_cgi path=json_proto method=POST [07:52:10]POST find Content-Length [07:52:10]Host: 172.17.37.4:8080 [07:52:10]Content-Length: 677 [07:52:10]Content-Type: application/json [07:52:10] [07:52:10]POST finish read [07:52:10]Found Content-Length = 677 [07:52:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718331", "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 }]} ], "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" ] } } [07:52:10]execute_script... [07:52: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)718331", "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 }]} ], "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" ] } } [07:52:10]POST & json_proto [07:52:10]process_json_proto [07:52:10]json parsed OK: [07:52:10]protocol is kg_v1.0 [07:52:10]action value=close_receipt [07:52:10]process_action close_receipt [07:52:10]cmd_close_receipt [07:52:10]MH_GetDate [07:52:10]Write to MH i2c: F0 00 00 14 15 18 [07:52:10]Write i2c OK [07:52:10]MH_I2C_Read... [07:52:10]Read from MH i2c: F0 [07:52:10]MH_I2C_Read... [07:52:10]Read from MH i2c: F0 09 00 [07:52:10]MH_I2C_Read... [07:52:10]Read from MH i2c: F0 09 00 14 15 00 2D 21 48 67 1D 3A 47 67 23 [07:52:10]GetLastDocTimeStamp 1732780239 [07:52:10]current date 1732780333 [07:52:10]FM_GetShiftState [07:52:10]SAM_PROTO_GetShiftState [07:52:10]wFMCommunicate request_size=4 [07:52:10]MH_SAM_APDU [07:52:10]CAPDU: 80 13 01 00 [07:52:10]Write to MH i2c: E2 08 00 15 15 80 13 01 00 00 00 00 00 A7 [07:52:10]Write i2c OK [07:52:10]MH_I2C_Read... [07:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:10]Read from MH i2c: E2 [07:52:10]MH_I2C_Read... [07:52:10]Read from MH i2c: E2 0E 00 [07:52:10]MH_I2C_Read... [07:52:10]Read from MH i2c: E2 0E 00 15 15 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 AE [07:52:10]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:52:10]wFMCommunicate OK [07:52:10]SAM_PROTO_GetShiftState done [07:52:10]FM_GetShiftState done [07:52:10]opened in 1732752282 [07:52:10]opened+sec_in_day 1732838682 [07:52:10]quantity*price = 30060 [07:52:10]sum+1 = 30061 [07:52:10]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 СНО: Общий режим Чек 11 28.11.2024 07:52 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123499 ФПД: 107337040667642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T075213&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123499&fm=107337040667642&tin=02508201610067®Number=0000000000092681&sum=30000 [07:52:11]StoreToDocumentArchive [07:52:11]shift 559 fd 123499 [07:52:11]save to /storage/0559/doc_00123499 [07:52:11]save last doc name /storage/0559/doc_00123499 to /storage/kkm_last_doc_name [07:52:11]save OK [07:52:11]Clear old archive folders... [07:52:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:52:11]tlvbuf is 01496210 [07:52:11]SAM_PROTO_ClearQueue [07:52:11]wFMCommunicate request_size=4 [07:52:11]MH_SAM_APDU [07:52:11]CAPDU: 80 09 00 00 [07:52:11]Write to MH i2c: E2 08 00 22 15 80 09 00 00 00 00 00 00 A9 [07:52:11]Write i2c OK [07:52:11]MH_I2C_Read... [07:52:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:11]Read from MH i2c: E2 [07:52:11]MH_I2C_Read... [07:52:11]Read from MH i2c: E2 03 00 [07:52:11]MH_I2C_Read... [07:52:11]Read from MH i2c: E2 03 00 22 15 00 90 00 AB [07:52:11]RAPDU: 90 00 [07:52:11]wFMCommunicate OK [07:52:11]SAM_PROTO_ClearQueue done [07:52:11]KKMCreateOFDPacket [07:52:11]OFDProtocolAddRootSTLVToBuf [07:52:11]FM_MakeSignedData [07:52:11]FM_MakeSignedData [07:52:11]SAM_PROTO_SignData [07:52:11]wFMCommunicate request_size=4 [07:52:11]MH_SAM_APDU [07:52:11]CAPDU: 80 0D 01 02 [07:52:11]Write to MH i2c: E2 08 00 23 15 80 0D 01 02 00 00 00 00 B1 [07:52:11]Write i2c OK [07:52:11]MH_I2C_Read... [07:52:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:11]Read from MH i2c: E2 [07:52:11]MH_I2C_Read... [07:52:11]Read from MH i2c: E2 03 00 [07:52:11]MH_I2C_Read... [07:52:11]Read from MH i2c: E2 03 00 23 15 00 90 00 AC [07:52:11]RAPDU: 90 00 [07:52:11]wFMCommunicate OK [07:52:11]wFMCommunicate request_size=255 [07:52:11]MH_SAM_APDU [07:52: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 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 0B 00 00 00 F4 03 04 00 2D 21 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 61 [07:52:11]Write to MH i2c: E2 02 01 24 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0B 00 00 00 F4 03 04 00 2D 21 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 61 00 00 4C [07:52:11]Write i2c OK [07:52:11]MH_I2C_Read... [07:52:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:11]Read from MH i2c: E2 [07:52:11]MH_I2C_Read... [07:52:11]Read from MH i2c: E2 03 00 [07:52:11]MH_I2C_Read... [07:52:11]Read from MH i2c: E2 03 00 24 15 00 90 00 AD [07:52:11]RAPDU: 90 00 [07:52:11]wFMCommunicate OK [07:52:11]wFMCommunicate request_size=10 [07:52:11]MH_SAM_APDU [07:52:11]CAPDU: 80 0D 02 02 05 9F 5A 2E 23 FA [07:52:11]Write to MH i2c: E2 0D 00 25 15 80 0D 02 02 05 00 9F 5A 2E 23 FA 00 00 02 [07:52:11]Write i2c OK [07:52:11]MH_I2C_Read... [07:52:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:11]Read from MH i2c: E2 [07:52:11]MH_I2C_Read... [07:52:11]Read from MH i2c: E2 03 00 [07:52:11]MH_I2C_Read... [07:52:11]Read from MH i2c: E2 03 00 25 15 00 90 00 AE [07:52:11]RAPDU: 90 00 [07:52:11]wFMCommunicate OK [07:52:11]wFMCommunicate request_size=4 [07:52:11]MH_SAM_APDU [07:52:11]CAPDU: 80 0D 03 02 [07:52:11]Write to MH i2c: E2 08 00 26 15 80 0D 03 02 00 00 00 00 B6 [07:52:11]Write i2c OK [07:52:11]MH_I2C_Read... [07:52:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:11]Read from MH i2c: E2 [07:52:11]MH_I2C_Read... [07:52:11]Read from MH i2c: E2 0B 00 [07:52:11]MH_I2C_Read... [07:52:11]Read from MH i2c: E2 0B 00 26 15 00 5F 2D 46 AB B2 A7 4A 65 90 00 3C [07:52:11]RAPDU: 5F 2D 46 AB B2 A7 4A 65 90 00 [07:52:11]wFMCommunicate OK [07:52:11]SAM_PROTO_SignData done [07:52:11]FM_MakeSignedData done [07:52:11]CreateOFDProtocolMessage [07:52:11]wFMCommunicate request_size=4 [07:52:11]MH_SAM_APDU [07:52:11]CAPDU: 80 11 00 00 [07:52:11]Write to MH i2c: E2 08 00 27 15 80 11 00 00 00 00 00 00 B6 [07:52:11]Write i2c OK [07:52:11]MH_I2C_Read... [07:52:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:11]Read from MH i2c: E2 [07:52:11]MH_I2C_Read... [07:52:11]Read from MH i2c: E2 17 00 [07:52:11]MH_I2C_Read... [07:52:11]Read from MH i2c: E2 17 00 27 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0D [07:52:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:52:11]wFMCommunicate OK [07:52:11]CreateOFDProtocolMessage done [07:52:11]OFDSenderStorePacket 123499 [07:52:11]StoreOFDPacket docnum=123499 [07:52: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 13 32 07 01 D0 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 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 0B 00 00 00 F4 03 04 00 2D 21 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 61 9F 5A 2E 23 FA 5F 2D 46 AB B2 A7 4A 65 [07:52:11]CheckFolder [07:52:11]dirname=/storage/ofd_packets [07:52:11]CheckFolder done [07:52:11]ProducePacketName [07:52:11]name=ofd_packets/00123499 [07:52:11]NVStorageSaveData ofd_packets/00123499 [07:52:11]File name is /storage/ofd_packets/00123499 [07:52:11]Write 301 bytes [07:52:11]NVStorageSaveData done [07:52:11]OFDSenderStorePacket done [07:52:11]KKMCreateOFDPacket done [07:52:11]NVStorageSaveData kkm_last_timestamp [07:52:11]File name is /storage/kkm_last_timestamp [07:52:11]Write 4 bytes [07:52:11]NVStorageSaveData done [07:52:11]ExternCall_PrintAddStr [07:52:11]wPrintStart [07:52:11]Write to MH i2c: 01 00 00 28 15 3D [07:52:11]Write i2c OK [07:52:11]MH_I2C_Read... [07:52:11]Read from MH i2c: 01 [07:52:11]MH_I2C_Read... [07:52:11]Read from MH i2c: 01 07 00 [07:52:11]MH_I2C_Read... [07:52:11]Read from MH i2c: 01 07 00 28 15 00 00 00 00 00 FF 0F 52 [07:52:11]RasterBufferAndPrint [07:52:11]line Счет N : (1)718331 [07:52:11]line ИНН: 02508201610067 [07:52:11]line Контрольно-Кассовый Чек [07:52:11]line ПРОДАЖА [07:52:11]line ТРК (МРК, ГНК) : 22 [07:52:11]line Товар: 2710124130 [07:52:11]line Аи-92-К-4 [07:52:11]line 4.460 * 67.40 [07:52:11]line = 300.60 [07:52:11]line НДС 12% НСП 1% [07:52:11]line > о реализуемом товаре [07:52:11]line ОКРУГЛЕНИЕ: -0.60 [07:52:11]line ИТОГО: 300.00 [07:52:11]line Внесено: 300.00 [07:52:11]line СДАЧА: 0.00 [07:52:11]line НСП 1% : 2.66 [07:52:11]line НДС 12% : 31.92 [07:52:11]line Наличными: 300.00 [07:52:11]line Безнал.: 0.00 [07:52:11]line Место: АЗС № 64 "Партнер Нефть" [07:52:11]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [07:52:11]line СНО: Общий режим [07:52:11]line Чек 11 28.11.2024 07:52 [07:52:11]line Смена: 559 ФФД: 1.0 [07:52:11]line ЗНМ: 0300000033 [07:52:11]line РНМ: 0000000000092681 [07:52:11]line Версия ККМ: 001 [07:52:11]line ФМ: 0000000000874881 [07:52:11]line ФД: 123499 [07:52:11]line ФПД: 107337040667642 [07:52:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T075213&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123499&fm=107337040667642&tin=02508201610067®Number=0000000000092681&sum=30000 [07:52:12]OFD Sender: Processing packet 123499 [packets to send 7, broken 6] [07:52:12]ProducePacketName [07:52:12]name=ofd_packets/00123499 [07:52:12]OFD Sender: To server: pG, [07:52:12]CommunicateWithHost lk.salyk.kg:30040 [07:52:12]ConnectInit lk.salyk.kg [07:52:12]written 0, free lines is 4095 [07:52:12]Connected sock=10 [07:52: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 13 32 07 01 D0 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 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 0B 00 00 00 F4 03 04 00 2D 21 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 61 9F 5A 2E 23 FA 5F 2D 46 AB B2 A7 4A 65 [07:52: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 12 9A 47 00 12 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6B E2 01 00 F4 03 04 00 F4 CC 47 67 B6 04 01 00 00 2D E6 91 2F DB 74 51 8A [07:52:12]CommunicateWithHost err = 0 [07:52:12]CheckOFDResponse [07:52:12]1017 (14) - 77093643461234 [07:52:12]1041 (16) - 0000000000874881 [07:52:12]1040 (4) - 123499 [07:52:12]1012 (4) - 28.11.2024 01:52 [07:52:12]1206 (1) - 0 [07:52:12]OFD Sender: Remove packet 123499 [07:52:12]ProducePacketName [07:52:12]name=ofd_packets/00123499 [07:52:12]NVStorageDeleteData [07:52:12]Write to MH i2c: 01 00 00 53 15 68 [07:52:12]Write i2c OK [07:52:12]MH_I2C_Read... [07:52:12]Read from MH i2c: 01 [07:52:12]MH_I2C_Read... [07:52:12]Read from MH i2c: 01 07 00 [07:52:12]MH_I2C_Read... [07:52:12]Read from MH i2c: 01 07 00 53 15 00 00 00 00 00 3F 0C BA [07:52:12]RasterBufferAndPrint [07:52:12]line [07:52:12]line [07:52:12]line [07:52:12]line [07:52:12]line [07:52:12]written 0, free lines is 3140 [07:52:12]MH_Cut [07:52:12]Write to MH i2c: D1 01 00 5A 15 01 41 [07:52:12]Write i2c OK [07:52:12]MH_I2C_Read... [07:52:12]Read from MH i2c: D1 [07:52:12]MH_I2C_Read... [07:52:12]Read from MH i2c: D1 01 00 [07:52:12]MH_I2C_Read... [07:52:12]Read from MH i2c: D1 01 00 5A 15 00 40 [07:52:12]Write to MH i2c: 01 00 00 5B 15 70 [07:52:12]Write i2c OK [07:52:12]MH_I2C_Read... [07:52:12]OFD Sender: No OFD packet to send [07:52:13]*** Cut start [07:52:13]*** Partial cut [07:52:13]*** CUTSNS_PIN = 1 [07:52:14]*** CUTSNS_PIN = 0 [07:52:14]*** Brake cut motor [07:52:14]Read from MH i2c: 01 [07:52:14]MH_I2C_Read... [07:52:14]*** Stop cut motor [07:52:14]*** Cut end [07:52:14]Read from MH i2c: 01 07 00 [07:52:14]MH_I2C_Read... [07:52:14]Read from MH i2c: 01 07 00 5B 15 00 00 00 00 00 FF 0F 85 [07:52:14]process_action close_receipt done [07:52:14]requested_data is exist [07:52:14]produce_requested_data [07:52:14]requested_item fm.sn is exist - process it [07:52:14]wFMCommunicate request_size=4 [07:52:14]MH_SAM_APDU [07:52:14]CAPDU: 80 11 00 00 [07:52:14]Write to MH i2c: E2 08 00 5C 15 80 11 00 00 00 00 00 00 EB [07:52:14]Write i2c OK [07:52:14]MH_I2C_Read... [07:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:14]Read from MH i2c: E2 [07:52:14]MH_I2C_Read... [07:52:14]Read from MH i2c: E2 17 00 [07:52:14]MH_I2C_Read... [07:52:14]Read from MH i2c: E2 17 00 5C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 42 [07: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 [07:52:14]wFMCommunicate OK [07:52:14]requested_item fd.num is exist - process it [07:52:14]SAM_PROTO_GetFieldsCounters [07:52:14]wFMCommunicate request_size=4 [07:52:14]MH_SAM_APDU [07:52:14]CAPDU: 80 13 00 00 [07:52:14]Write to MH i2c: E2 08 00 5D 15 80 13 00 00 00 00 00 00 EE [07:52:14]Write i2c OK [07:52:14]MH_I2C_Read... [07:52:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:14]Read from MH i2c: E2 [07:52:14]MH_I2C_Read... [07:52:14]Read from MH i2c: E2 62 00 [07:52:14]MH_I2C_Read... [07:52:14]Read from MH i2c: E2 62 00 5D 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 B4 [07:52: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 6B E2 01 00 0E 04 04 00 2F 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 [07:52:14]wFMCommunicate OK [07:52:14]SAM_PROTO_GetFieldsCounters done [07:52:14]requested_item shift.num is exist - process it [07:52:14]requested_item shift.opened is exist - process it [07:52:14]req_shift_opened [07:52:14]FM_GetShiftState [07:52:14]SAM_PROTO_GetShiftState [07:52:14]wFMCommunicate request_size=4 [07:52:14]MH_SAM_APDU [07:52:14]CAPDU: 80 13 01 00 [07:52:14]Write to MH i2c: E2 08 00 5E 15 80 13 01 00 00 00 00 00 F0 [07:52:14]Write i2c OK [07:52:14]MH_I2C_Read... [07:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:14]Read from MH i2c: E2 [07:52:14]MH_I2C_Read... [07:52:14]Read from MH i2c: E2 0E 00 [07:52:14]MH_I2C_Read... [07:52:14]Read from MH i2c: E2 0E 00 5E 15 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 F7 [07:52:14]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:52:14]wFMCommunicate OK [07:52:14]SAM_PROTO_GetShiftState done [07:52:14]FM_GetShiftState done [07:52:14]req_shift_opened done [07:52:14]requested_item shift.open_date is exist - process it [07:52:14]req_shift_open_date [07:52:14]req_shift_open_date done [07:52:14]produce_requested_data done [07:52:14]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123499,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [07:52:14]process_action_free close_receipt [07:52:14]json_value_free [07:52:14]json_value_free done [07:52:14]process_json_proto returns [07:52:14]Send response to host [07:52:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123499,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [07:52:14]free response buf [07:52:14]execute_script done [07:52:14]execute_script returns [07:52:14]free content buf [07:52:14]Sock 8.Close socket [07:52:14]Sock 8.Thread stoped [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:45]accept exits with 9 [07:52:45]New connection [07:52:45]New thread 3066719588 created [07:52:45]Thread 3066862948 joined [07:52:45]Waiting for new connection... [07:52:45] Sock 9.Parse request [07:52:45]Sock 9.Check first char [07:52:45]Sock 9.First char is OK [07:52:45]request: POST /json_proto HTTP/1.0 [07:52:45]Method: POST [07:52:45]URL: /json_proto [07:52:45]Method is POST - this is cgi request [07:52:45]url: /json_proto [07:52:45]query_string will be loaded in cgi processing [07:52:45]execute_cgi json_proto POST (null) [07:52:45]execute_cgi path=json_proto method=POST [07:52:45]POST find Content-Length [07:52:45]Host: 172.17.37.4:8080 [07:52:45]Content-Length: 682 [07:52:45]Content-Type: application/json [07:52:45] [07:52:45]POST finish read [07:52:45]Found Content-Length = 682 [07:52:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718332", "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" ] } } [07:52:45]execute_script... [07:52: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)718332", "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" ] } } [07:52:45]POST & json_proto [07:52:45]process_json_proto [07:52:45]json parsed OK: [07:52:45]protocol is kg_v1.0 [07:52:45]action value=close_receipt [07:52:45]process_action close_receipt [07:52:45]cmd_close_receipt [07:52:45]MH_GetDate [07:52:45]Write to MH i2c: F0 00 00 5F 15 63 [07:52:45]Write i2c OK [07:52:45]MH_I2C_Read... [07:52:45]Read from MH i2c: F0 [07:52:45]MH_I2C_Read... [07:52:45]Read from MH i2c: F0 09 00 [07:52:45]MH_I2C_Read... [07:52:45]Read from MH i2c: F0 09 00 5F 15 00 51 21 48 67 1D 3A 47 67 92 [07:52:45]GetLastDocTimeStamp 1732780333 [07:52:45]current date 1732780369 [07:52:45]FM_GetShiftState [07:52:45]SAM_PROTO_GetShiftState [07:52:45]wFMCommunicate request_size=4 [07:52:45]MH_SAM_APDU [07:52:45]CAPDU: 80 13 01 00 [07:52:45]Write to MH i2c: E2 08 00 60 15 80 13 01 00 00 00 00 00 F2 [07:52:45]Write i2c OK [07:52:45]MH_I2C_Read... [07:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:45]Read from MH i2c: E2 [07:52:45]MH_I2C_Read... [07:52:45]Read from MH i2c: E2 0E 00 [07:52:45]MH_I2C_Read... [07:52:45]Read from MH i2c: E2 0E 00 60 15 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 F9 [07:52:45]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:52:45]wFMCommunicate OK [07:52:45]SAM_PROTO_GetShiftState done [07:52:45]FM_GetShiftState done [07:52:45]opened in 1732752282 [07:52:45]opened+sec_in_day 1732838682 [07:52:45]quantity*price = 100021 [07:52:45]sum+1 = 100023 [07:52:45]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 СНО: Общий режим Чек 12 28.11.2024 07:52 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123500 ФПД: 152173992611208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T075249&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123500&fm=152173992611208&tin=02508201610067®Number=0000000000092681&sum=100000 [07:52:46]StoreToDocumentArchive [07:52:46]shift 559 fd 123500 [07:52:46]save to /storage/0559/doc_00123500 [07:52:46]save last doc name /storage/0559/doc_00123500 to /storage/kkm_last_doc_name [07:52:46]save OK [07:52:46]Clear old archive folders... [07:52:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:52:46]tlvbuf is 0148D040 [07:52:46]SAM_PROTO_ClearQueue [07:52:46]wFMCommunicate request_size=4 [07:52:46]MH_SAM_APDU [07:52:46]CAPDU: 80 09 00 00 [07:52:46]Write to MH i2c: E2 08 00 6D 15 80 09 00 00 00 00 00 00 F4 [07:52:46]Write i2c OK [07:52:46]MH_I2C_Read... [07:52:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:47]Read from MH i2c: E2 [07:52:47]MH_I2C_Read... [07:52:47]Read from MH i2c: E2 03 00 [07:52:47]MH_I2C_Read... [07:52:47]Read from MH i2c: E2 03 00 6D 15 00 90 00 F6 [07:52:47]RAPDU: 90 00 [07:52:47]wFMCommunicate OK [07:52:47]SAM_PROTO_ClearQueue done [07:52:47]KKMCreateOFDPacket [07:52:47]OFDProtocolAddRootSTLVToBuf [07:52:47]FM_MakeSignedData [07:52:47]FM_MakeSignedData [07:52:47]SAM_PROTO_SignData [07:52:47]wFMCommunicate request_size=4 [07:52:47]MH_SAM_APDU [07:52:47]CAPDU: 80 0D 01 02 [07:52:47]Write to MH i2c: E2 08 00 6E 15 80 0D 01 02 00 00 00 00 FC [07:52:47]Write i2c OK [07:52:47]MH_I2C_Read... [07:52:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:47]Read from MH i2c: E2 [07:52:47]MH_I2C_Read... [07:52:47]Read from MH i2c: E2 03 00 [07:52:47]MH_I2C_Read... [07:52:47]Read from MH i2c: E2 03 00 6E 15 00 90 00 F7 [07:52:47]RAPDU: 90 00 [07:52:47]wFMCommunicate OK [07:52:47]wFMCommunicate request_size=255 [07:52:47]MH_SAM_APDU [07:52:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0C 00 00 00 F4 03 04 00 51 21 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8A [07:52:47]Write to MH i2c: E2 02 01 6F 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0C 00 00 00 F4 03 04 00 51 21 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8A 00 00 8A [07:52:47]Write i2c OK [07:52:47]MH_I2C_Read... [07:52:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:47]Read from MH i2c: E2 [07:52:47]MH_I2C_Read... [07:52:47]Read from MH i2c: E2 03 00 [07:52:47]MH_I2C_Read... [07:52:47]Read from MH i2c: E2 03 00 6F 15 00 90 00 F8 [07:52:47]RAPDU: 90 00 [07:52:47]wFMCommunicate OK [07:52:47]wFMCommunicate request_size=10 [07:52:47]MH_SAM_APDU [07:52:47]CAPDU: 80 0D 02 02 05 66 C4 C6 0D 88 [07:52:47]Write to MH i2c: E2 0D 00 70 15 80 0D 02 02 05 00 66 C4 C6 0D 88 00 00 8E [07:52:47]Write i2c OK [07:52:47]MH_I2C_Read... [07:52:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:47]Read from MH i2c: E2 [07:52:47]MH_I2C_Read... [07:52:47]Read from MH i2c: E2 03 00 [07:52:47]MH_I2C_Read... [07:52:47]Read from MH i2c: E2 03 00 70 15 00 90 00 F9 [07:52:47]RAPDU: 90 00 [07:52:47]wFMCommunicate OK [07:52:47]wFMCommunicate request_size=4 [07:52:47]MH_SAM_APDU [07:52:47]CAPDU: 80 0D 03 02 [07:52:47]Write to MH i2c: E2 08 00 71 15 80 0D 03 02 00 00 00 00 01 [07:52:47]Write i2c OK [07:52:47]MH_I2C_Read... [07:52:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:47]Read from MH i2c: E2 [07:52:47]MH_I2C_Read... [07:52:47]Read from MH i2c: E2 0B 00 [07:52:47]MH_I2C_Read... [07:52:47]Read from MH i2c: E2 0B 00 71 15 00 98 AF E6 4C F7 DC FE 67 90 00 B3 [07:52:47]RAPDU: 98 AF E6 4C F7 DC FE 67 90 00 [07:52:47]wFMCommunicate OK [07:52:47]SAM_PROTO_SignData done [07:52:47]FM_MakeSignedData done [07:52:47]CreateOFDProtocolMessage [07:52:47]wFMCommunicate request_size=4 [07:52:47]MH_SAM_APDU [07:52:47]CAPDU: 80 11 00 00 [07:52:47]Write to MH i2c: E2 08 00 72 15 80 11 00 00 00 00 00 00 01 [07:52:47]Write i2c OK [07:52:47]MH_I2C_Read... [07:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:47]Read from MH i2c: E2 [07:52:47]MH_I2C_Read... [07:52:47]Read from MH i2c: E2 17 00 [07:52:47]MH_I2C_Read... [07:52:47]Read from MH i2c: E2 17 00 72 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 58 [07:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:52:47]wFMCommunicate OK [07:52:47]CreateOFDProtocolMessage done [07:52:47]OFDSenderStorePacket 123500 [07:52:47]StoreOFDPacket docnum=123500 [07:52: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 03 8D 07 01 0B 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 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 0C 00 00 00 F4 03 04 00 51 21 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8A 66 C4 C6 0D 88 98 AF E6 4C F7 DC FE 67 [07:52:47]CheckFolder [07:52:47]dirname=/storage/ofd_packets [07:52:47]CheckFolder done [07:52:47]ProducePacketName [07:52:47]name=ofd_packets/00123500 [07:52:47]NVStorageSaveData ofd_packets/00123500 [07:52:47]File name is /storage/ofd_packets/00123500 [07:52:47]Write 301 bytes [07:52:47]NVStorageSaveData done [07:52:47]OFDSenderStorePacket done [07:52:47]KKMCreateOFDPacket done [07:52:47]NVStorageSaveData kkm_last_timestamp [07:52:47]File name is /storage/kkm_last_timestamp [07:52:47]Write 4 bytes [07:52:47]NVStorageSaveData done [07:52:47]ExternCall_PrintAddStr [07:52:47]wPrintStart [07:52:47]Write to MH i2c: 01 00 00 73 15 88 [07:52:47]Write i2c OK [07:52:47]MH_I2C_Read... [07:52:47]Read from MH i2c: 01 [07:52:47]MH_I2C_Read... [07:52:47]Read from MH i2c: 01 07 00 [07:52:47]MH_I2C_Read... [07:52:47]Read from MH i2c: 01 07 00 73 15 00 00 00 00 00 FF 0F 9D [07:52:47]RasterBufferAndPrint [07:52:47]line Счет N : (1)718332 [07:52:47]line ИНН: 02508201610067 [07:52:47]line Контрольно-Кассовый Чек [07:52:47]line ПРОДАЖА [07:52:47]line ТРК (МРК, ГНК) : 12 [07:52:47]line Товар: 2710124130 [07:52:47]line Аи-92-К-4 [07:52:47]line 14.840 * 67.40 [07:52:47]line = 1000.22 [07:52:47]line НДС 12% НСП 1% [07:52:47]line > о реализуемом товаре [07:52:47]line ОКРУГЛЕНИЕ: -0.22 [07:52:47]line ИТОГО: 1000.00 [07:52:47]line Внесено: 1000.00 [07:52:47]line СДАЧА: 0.00 [07:52:47]line НСП 1% : 8.85 [07:52:47]line НДС 12% : 106.22 [07:52:47]line Наличными: 1000.00 [07:52:47]line Безнал.: 0.00 [07:52:47]line Место: АЗС № 64 "Партнер Нефть" [07:52:47]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [07:52:47]line СНО: Общий режим [07:52:47]line Чек 12 28.11.2024 07:52 [07:52:47]line Смена: 559 ФФД: 1.0 [07:52:47]line ЗНМ: 0300000033 [07:52:47]line РНМ: 0000000000092681 [07:52:47]line Версия ККМ: 001 [07:52:47]line ФМ: 0000000000874881 [07:52:47]line ФД: 123500 [07:52:47]line ФПД: 152173992611208 [07:52:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T075249&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123500&fm=152173992611208&tin=02508201610067®Number=0000000000092681&sum=100000 [07:52:47]OFD Sender: Processing packet 123500 [packets to send 7, broken 6] [07:52:47]ProducePacketName [07:52:47]name=ofd_packets/00123500 [07:52:47]OFD Sender: To server: pG, [07:52:47]CommunicateWithHost lk.salyk.kg:30040 [07:52:47]ConnectInit lk.salyk.kg [07:52:47]written 0, free lines is 4095 [07:52:47]Connected sock=10 [07:52: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 0F 01 00 00 03 8D 07 01 0B 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 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 0C 00 00 00 F4 03 04 00 51 21 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8A 66 C4 C6 0D 88 98 AF E6 4C F7 DC FE 67 [07:52: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 6C BE 47 00 6C 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 6C E2 01 00 F4 03 04 00 18 CD 47 67 B6 04 01 00 00 B5 0B 5F A9 DA BB 93 43 [07:52:48]CommunicateWithHost err = 0 [07:52:48]CheckOFDResponse [07:52:48]1017 (14) - 77093643461234 [07:52:48]1041 (16) - 0000000000874881 [07:52:48]1040 (4) - 123500 [07:52:48]1012 (4) - 28.11.2024 01:53 [07:52:48]1206 (1) - 0 [07:52:48]OFD Sender: Remove packet 123500 [07:52:48]ProducePacketName [07:52:48]name=ofd_packets/00123500 [07:52:48]NVStorageDeleteData [07:52:48]Write to MH i2c: 01 00 00 9E 15 B3 [07:52:48]Write i2c OK [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: 01 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: 01 07 00 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: 01 07 00 9E 15 00 00 00 00 00 47 0C 0D [07:52:48]RasterBufferAndPrint [07:52:48]line [07:52:48]line [07:52:48]line [07:52:48]line [07:52:48]line [07:52:48]written 0, free lines is 3148 [07:52:48]MH_Cut [07:52:48]Write to MH i2c: D1 01 00 A5 15 01 8C [07:52:48]Write i2c OK [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: D1 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: D1 01 00 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: D1 01 00 A5 15 00 8B [07:52:48]Write to MH i2c: 01 00 00 A6 15 BB [07:52:48]Write i2c OK [07:52:48]MH_I2C_Read... [07:52:48]OFD Sender: No OFD packet to send [07:52:49]*** Cut start [07:52:49]*** Partial cut [07:52:49]*** CUTSNS_PIN = 1 [07:52:49]*** CUTSNS_PIN = 0 [07:52:49]*** Brake cut motor [07:52:50]Read from MH i2c: 01 [07:52:50]MH_I2C_Read... [07:52:50]*** Stop cut motor [07:52:50]Read from MH i2c: 01 07 00 [07:52:50]MH_I2C_Read... [07:52:50]*** Cut end [07:52:50]Read from MH i2c: 01 07 00 A6 15 00 00 00 00 00 FF 0F D0 [07:52:50]process_action close_receipt done [07:52:50]requested_data is exist [07:52:50]produce_requested_data [07:52:50]requested_item fm.sn is exist - process it [07:52:50]wFMCommunicate request_size=4 [07:52:50]MH_SAM_APDU [07:52:50]CAPDU: 80 11 00 00 [07:52:50]Write to MH i2c: E2 08 00 A7 15 80 11 00 00 00 00 00 00 36 [07:52:50]Write i2c OK [07:52:50]MH_I2C_Read... [07:52:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:50]Read from MH i2c: E2 [07:52:50]MH_I2C_Read... [07:52:50]Read from MH i2c: E2 17 00 [07:52:50]MH_I2C_Read... [07:52:50]Read from MH i2c: E2 17 00 A7 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8D [07:52:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:52:50]wFMCommunicate OK [07:52:50]requested_item fd.num is exist - process it [07:52:50]SAM_PROTO_GetFieldsCounters [07:52:50]wFMCommunicate request_size=4 [07:52:50]MH_SAM_APDU [07:52:50]CAPDU: 80 13 00 00 [07:52:50]Write to MH i2c: E2 08 00 A8 15 80 13 00 00 00 00 00 00 39 [07:52:50]Write i2c OK [07:52:50]MH_I2C_Read... [07:52:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:50]Read from MH i2c: E2 [07:52:50]MH_I2C_Read... [07:52:50]Read from MH i2c: E2 62 00 [07:52:50]MH_I2C_Read... [07:52:50]Read from MH i2c: E2 62 00 A8 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 03 [07:52: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 6C E2 01 00 0E 04 04 00 2F 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 [07:52:50]wFMCommunicate OK [07:52:50]SAM_PROTO_GetFieldsCounters done [07:52:50]requested_item shift.num is exist - process it [07:52:50]requested_item shift.opened is exist - process it [07:52:50]req_shift_opened [07:52:50]FM_GetShiftState [07:52:50]SAM_PROTO_GetShiftState [07:52:50]wFMCommunicate request_size=4 [07:52:50]MH_SAM_APDU [07:52:50]CAPDU: 80 13 01 00 [07:52:50]Write to MH i2c: E2 08 00 A9 15 80 13 01 00 00 00 00 00 3B [07:52:50]Write i2c OK [07:52:50]MH_I2C_Read... [07:52:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:50]Read from MH i2c: E2 [07:52:50]MH_I2C_Read... [07:52:50]Read from MH i2c: E2 0E 00 [07:52:50]MH_I2C_Read... [07:52:50]Read from MH i2c: E2 0E 00 A9 15 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 42 [07:52:50]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:52:50]wFMCommunicate OK [07:52:50]SAM_PROTO_GetShiftState done [07:52:50]FM_GetShiftState done [07:52:50]req_shift_opened done [07:52:50]requested_item shift.open_date is exist - process it [07:52:50]req_shift_open_date [07:52:50]req_shift_open_date done [07:52:50]produce_requested_data done [07:52:50]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123500,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [07:52:50]process_action_free close_receipt [07:52:50]json_value_free [07:52:50]json_value_free done [07:52:50]process_json_proto returns [07:52:50]Send response to host [07:52:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123500,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [07:52:50]free response buf [07:52:50]execute_script done [07:52:50]execute_script returns [07:52:50]free content buf [07:52:50]Sock 9.Close socket [07:52:50]Sock 9.Thread stoped [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:12]accept exits with 8 [07:56:12]New connection [07:56:12]New thread 3066862948 created [07:56:12]Thread 3066719588 joined [07:56:12]Waiting for new connection... [07:56:12] Sock 8.Parse request [07:56:12]Sock 8.Check first char [07:56:12]Sock 8.First char is OK [07:56:12]request: POST /json_proto HTTP/1.0 [07:56:12]Method: POST [07:56:12]URL: /json_proto [07:56:12]Method is POST - this is cgi request [07:56:12]url: /json_proto [07:56:12]query_string will be loaded in cgi processing [07:56:12]execute_cgi json_proto POST (null) [07:56:12]execute_cgi path=json_proto method=POST [07:56:12]POST find Content-Length [07:56:12]Host: 172.17.37.4:8080 [07:56:12]Content-Length: 678 [07:56:12]Content-Type: application/json [07:56:12] [07:56:12]POST finish read [07:56:12]Found Content-Length = 678 [07:56:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718333", "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" : 11.870, "sum" : 800.04, "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" ] } } [07:56:12]execute_script... [07:56: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)718333", "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" : 11.870, "sum" : 800.04, "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" ] } } [07:56:12]POST & json_proto [07:56:12]process_json_proto [07:56:12]json parsed OK: [07:56:12]protocol is kg_v1.0 [07:56:12]action value=close_receipt [07:56:12]process_action close_receipt [07:56:12]cmd_close_receipt [07:56:12]MH_GetDate [07:56:12]Write to MH i2c: F0 00 00 AA 15 AE [07:56:12]Write i2c OK [07:56:12]MH_I2C_Read... [07:56:12]Read from MH i2c: F0 [07:56:12]MH_I2C_Read... [07:56:12]Read from MH i2c: F0 09 00 [07:56:12]MH_I2C_Read... [07:56:12]Read from MH i2c: F0 09 00 AA 15 00 20 22 48 67 1D 3A 47 67 AD [07:56:12]GetLastDocTimeStamp 1732780369 [07:56:12]current date 1732780576 [07:56:12]FM_GetShiftState [07:56:12]SAM_PROTO_GetShiftState [07:56:12]wFMCommunicate request_size=4 [07:56:12]MH_SAM_APDU [07:56:12]CAPDU: 80 13 01 00 [07:56:12]Write to MH i2c: E2 08 00 AB 15 80 13 01 00 00 00 00 00 3D [07:56:12]Write i2c OK [07:56:12]MH_I2C_Read... [07:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:12]Read from MH i2c: E2 [07:56:12]MH_I2C_Read... [07:56:12]Read from MH i2c: E2 0E 00 [07:56:12]MH_I2C_Read... [07:56:12]Read from MH i2c: E2 0E 00 AB 15 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 44 [07:56:12]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:56:12]wFMCommunicate OK [07:56:12]SAM_PROTO_GetShiftState done [07:56:12]FM_GetShiftState done [07:56:12]opened in 1732752282 [07:56:12]opened+sec_in_day 1732838682 [07:56:12]quantity*price = 80003 [07:56:12]sum+1 = 80005 [07:56:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 13 28.11.2024 07:56 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123501 ФПД: 219385947106481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T075616&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123501&fm=219385947106481&tin=02508201610067®Number=0000000000092681&sum=80000 [07:56:13]StoreToDocumentArchive [07:56:13]shift 559 fd 123501 [07:56:13]save to /storage/0559/doc_00123501 [07:56:13]save last doc name /storage/0559/doc_00123501 to /storage/kkm_last_doc_name [07:56:13]save OK [07:56:13]Clear old archive folders... [07:56:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:56:13]tlvbuf is 014B3C70 [07:56:13]SAM_PROTO_ClearQueue [07:56:13]wFMCommunicate request_size=4 [07:56:13]MH_SAM_APDU [07:56:13]CAPDU: 80 09 00 00 [07:56:13]Write to MH i2c: E2 08 00 B8 15 80 09 00 00 00 00 00 00 3F [07:56:13]Write i2c OK [07:56:13]MH_I2C_Read... [07:56:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:13]Read from MH i2c: E2 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 03 00 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 03 00 B8 15 00 90 00 41 [07:56:13]RAPDU: 90 00 [07:56:13]wFMCommunicate OK [07:56:13]SAM_PROTO_ClearQueue done [07:56:13]KKMCreateOFDPacket [07:56:13]OFDProtocolAddRootSTLVToBuf [07:56:13]FM_MakeSignedData [07:56:13]FM_MakeSignedData [07:56:13]SAM_PROTO_SignData [07:56:13]wFMCommunicate request_size=4 [07:56:13]MH_SAM_APDU [07:56:13]CAPDU: 80 0D 01 02 [07:56:13]Write to MH i2c: E2 08 00 B9 15 80 0D 01 02 00 00 00 00 47 [07:56:13]Write i2c OK [07:56:13]MH_I2C_Read... [07:56:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:13]Read from MH i2c: E2 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 03 00 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 03 00 B9 15 00 90 00 42 [07:56:13]RAPDU: 90 00 [07:56:13]wFMCommunicate OK [07:56:13]wFMCommunicate request_size=255 [07:56:13]MH_SAM_APDU [07:56: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 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 20 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 C7 [07:56:13]Write to MH i2c: E2 02 01 BA 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 20 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 C7 00 00 DB [07:56:13]Write i2c OK [07:56:13]MH_I2C_Read... [07:56:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:13]Read from MH i2c: E2 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 03 00 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 03 00 BA 15 00 90 00 43 [07:56:13]RAPDU: 90 00 [07:56:13]wFMCommunicate OK [07:56:13]wFMCommunicate request_size=10 [07:56:13]MH_SAM_APDU [07:56:13]CAPDU: 80 0D 02 02 05 87 C5 72 2C B1 [07:56:13]Write to MH i2c: E2 0D 00 BB 15 80 0D 02 02 05 00 87 C5 72 2C B1 00 00 EF [07:56:13]Write i2c OK [07:56:13]MH_I2C_Read... [07:56:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:13]Read from MH i2c: E2 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 03 00 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 03 00 BB 15 00 90 00 44 [07:56:13]RAPDU: 90 00 [07:56:13]wFMCommunicate OK [07:56:13]wFMCommunicate request_size=4 [07:56:13]MH_SAM_APDU [07:56:13]CAPDU: 80 0D 03 02 [07:56:13]Write to MH i2c: E2 08 00 BC 15 80 0D 03 02 00 00 00 00 4C [07:56:13]Write i2c OK [07:56:13]MH_I2C_Read... [07:56:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:13]OFD Sender: No OFD packet to send [07:56:13]Read from MH i2c: E2 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 0B 00 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 0B 00 BC 15 00 68 BC 00 8E C3 C4 71 E1 90 00 D8 [07:56:13]RAPDU: 68 BC 00 8E C3 C4 71 E1 90 00 [07:56:13]wFMCommunicate OK [07:56:13]SAM_PROTO_SignData done [07:56:13]FM_MakeSignedData done [07:56:13]CreateOFDProtocolMessage [07:56:13]wFMCommunicate request_size=4 [07:56:13]MH_SAM_APDU [07:56:13]CAPDU: 80 11 00 00 [07:56:13]Write to MH i2c: E2 08 00 BD 15 80 11 00 00 00 00 00 00 4C [07:56:13]Write i2c OK [07:56:13]MH_I2C_Read... [07:56:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:13]Read from MH i2c: E2 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 17 00 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: E2 17 00 BD 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A3 [07:56:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:56:13]wFMCommunicate OK [07:56:13]CreateOFDProtocolMessage done [07:56:13]OFDSenderStorePacket 123501 [07:56:13]StoreOFDPacket docnum=123501 [07:56: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 0F 01 00 00 E7 03 07 01 0F 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 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 20 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 C7 87 C5 72 2C B1 68 BC 00 8E C3 C4 71 E1 [07:56:13]CheckFolder [07:56:13]dirname=/storage/ofd_packets [07:56:13]CheckFolder done [07:56:13]ProducePacketName [07:56:13]name=ofd_packets/00123501 [07:56:13]NVStorageSaveData ofd_packets/00123501 [07:56:13]File name is /storage/ofd_packets/00123501 [07:56:13]Write 301 bytes [07:56:13]NVStorageSaveData done [07:56:13]OFDSenderStorePacket done [07:56:13]KKMCreateOFDPacket done [07:56:13]NVStorageSaveData kkm_last_timestamp [07:56:13]File name is /storage/kkm_last_timestamp [07:56:13]Write 4 bytes [07:56:13]NVStorageSaveData done [07:56:13]ExternCall_PrintAddStr [07:56:13]wPrintStart [07:56:13]Write to MH i2c: 01 00 00 BE 15 D3 [07:56:13]Write i2c OK [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: 01 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: 01 07 00 [07:56:13]MH_I2C_Read... [07:56:13]Read from MH i2c: 01 07 00 BE 15 00 00 00 00 00 FF 0F E8 [07:56:13]RasterBufferAndPrint [07:56:13]line Счет N : (1)718333 [07:56:13]line ИНН: 02508201610067 [07:56:13]line Контрольно-Кассовый Чек [07:56:13]line ПРОДАЖА [07:56:13]line ТРК (МРК, ГНК) : 12 [07:56:13]line Товар: 2710124130 [07:56:13]line Аи-92-К-4 [07:56:13]line 11.870 * 67.40 [07:56:13]line = 800.04 [07:56:13]line НДС 12% НСП 1% [07:56:13]line > о реализуемом товаре [07:56:13]line ОКРУГЛЕНИЕ: -0.04 [07:56:13]line ИТОГО: 800.00 [07:56:13]line Внесено: 800.00 [07:56:13]line СДАЧА: 0.00 [07:56:13]line НСП 1% : 7.08 [07:56:13]line НДС 12% : 84.96 [07:56:13]line Наличными: 800.00 [07:56:13]line Безнал.: 0.00 [07:56:13]line Место: АЗС № 64 "Партнер Нефть" [07:56:13]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [07:56:13]line СНО: Общий режим [07:56:13]line Чек 13 28.11.2024 07:56 [07:56:13]line Смена: 559 ФФД: 1.0 [07:56:13]line ЗНМ: 0300000033 [07:56:13]line РНМ: 0000000000092681 [07:56:13]line Версия ККМ: 001 [07:56:13]line ФМ: 0000000000874881 [07:56:13]line ФД: 123501 [07:56:13]line ФПД: 219385947106481 [07:56:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T075616&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123501&fm=219385947106481&tin=02508201610067®Number=0000000000092681&sum=80000 [07:56:14]OFD Sender: Processing packet 123501 [packets to send 7, broken 6] [07:56:14]ProducePacketName [07:56:14]name=ofd_packets/00123501 [07:56:14]OFD Sender: To server: pG, [07:56:14]CommunicateWithHost lk.salyk.kg:30040 [07:56:14]ConnectInit lk.salyk.kg [07:56:14]written 0, free lines is 4095 [07:56:14]Connected sock=10 [07:56: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 E7 03 07 01 0F 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 5E 2E 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 20 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 C7 87 C5 72 2C B1 68 BC 00 8E C3 C4 71 E1 [07:56: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 65 A9 47 00 EB 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6D E2 01 00 F4 03 04 00 E6 CD 47 67 B6 04 01 00 00 EB 90 5C 6C FB B7 D2 BD [07:56:14]CommunicateWithHost err = 0 [07:56:14]CheckOFDResponse [07:56:14]1017 (14) - 77093643461234 [07:56:14]1041 (16) - 0000000000874881 [07:56:14]1040 (4) - 123501 [07:56:14]1012 (4) - 28.11.2024 01:56 [07:56:14]1206 (1) - 0 [07:56:14]OFD Sender: Remove packet 123501 [07:56:14]ProducePacketName [07:56:14]name=ofd_packets/00123501 [07:56:14]NVStorageDeleteData [07:56:14]Write to MH i2c: 01 00 00 E9 15 FE [07:56:14]Write i2c OK [07:56:14]MH_I2C_Read... [07:56:14]Read from MH i2c: 01 [07:56:14]MH_I2C_Read... [07:56:14]Read from MH i2c: 01 07 00 [07:56:14]MH_I2C_Read... [07:56:14]Read from MH i2c: 01 07 00 E9 15 00 00 00 00 00 41 0C 52 [07:56:14]RasterBufferAndPrint [07:56:14]line [07:56:14]line [07:56:14]line [07:56:14]line [07:56:14]line [07:56:14]written 0, free lines is 3142 [07:56:14]MH_Cut [07:56:14]Write to MH i2c: D1 01 00 F0 15 01 D7 [07:56:14]Write i2c OK [07:56:14]MH_I2C_Read... [07:56:14]Read from MH i2c: D1 [07:56:14]MH_I2C_Read... [07:56:14]Read from MH i2c: D1 01 00 [07:56:14]MH_I2C_Read... [07:56:14]Read from MH i2c: D1 01 00 F0 15 00 D6 [07:56:14]Write to MH i2c: 01 00 00 F1 15 06 [07:56:14]Write i2c OK [07:56:14]MH_I2C_Read... [07:56:15]OFD Sender: No OFD packet to send [07:56:16]*** Cut start [07:56:16]*** Partial cut [07:56:16]*** CUTSNS_PIN = 1 [07:56:16]*** CUTSNS_PIN = 0 [07:56:16]*** Brake cut motor [07:56:16]Read from MH i2c: 01 [07:56:16]MH_I2C_Read... [07:56:16]*** Stop cut motor [07:56:16]*** Cut end [07:56:16]Read from MH i2c: 01 07 00 [07:56:16]MH_I2C_Read... [07:56:16]Read from MH i2c: 01 07 00 F1 15 00 00 00 00 00 FF 0F 1B [07:56:16]process_action close_receipt done [07:56:16]requested_data is exist [07:56:16]produce_requested_data [07:56:16]requested_item fm.sn is exist - process it [07:56:16]wFMCommunicate request_size=4 [07:56:16]MH_SAM_APDU [07:56:16]CAPDU: 80 11 00 00 [07:56:16]Write to MH i2c: E2 08 00 F2 15 80 11 00 00 00 00 00 00 81 [07:56:16]Write i2c OK [07:56:16]MH_I2C_Read... [07:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:16]Read from MH i2c: E2 [07:56:16]MH_I2C_Read... [07:56:16]Read from MH i2c: E2 17 00 [07:56:16]MH_I2C_Read... [07:56:16]Read from MH i2c: E2 17 00 F2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D8 [07:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:56:16]wFMCommunicate OK [07:56:16]requested_item fd.num is exist - process it [07:56:16]SAM_PROTO_GetFieldsCounters [07:56:16]wFMCommunicate request_size=4 [07:56:16]MH_SAM_APDU [07:56:16]CAPDU: 80 13 00 00 [07:56:16]Write to MH i2c: E2 08 00 F3 15 80 13 00 00 00 00 00 00 84 [07:56:16]Write i2c OK [07:56:16]MH_I2C_Read... [07:56:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:16]Read from MH i2c: E2 [07:56:16]MH_I2C_Read... [07:56:16]Read from MH i2c: E2 62 00 [07:56:16]MH_I2C_Read... [07:56:16]Read from MH i2c: E2 62 00 F3 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 52 [07:56: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 6D E2 01 00 0E 04 04 00 2F 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 [07:56:16]wFMCommunicate OK [07:56:16]SAM_PROTO_GetFieldsCounters done [07:56:16]requested_item shift.num is exist - process it [07:56:16]requested_item shift.opened is exist - process it [07:56:16]req_shift_opened [07:56:16]FM_GetShiftState [07:56:16]SAM_PROTO_GetShiftState [07:56:16]wFMCommunicate request_size=4 [07:56:16]MH_SAM_APDU [07:56:16]CAPDU: 80 13 01 00 [07:56:16]Write to MH i2c: E2 08 00 F4 15 80 13 01 00 00 00 00 00 86 [07:56:16]Write i2c OK [07:56:16]MH_I2C_Read... [07:56:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:16]Read from MH i2c: E2 [07:56:16]MH_I2C_Read... [07:56:16]Read from MH i2c: E2 0E 00 [07:56:16]MH_I2C_Read... [07:56:16]Read from MH i2c: E2 0E 00 F4 15 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 8D [07:56:16]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:56:16]wFMCommunicate OK [07:56:16]SAM_PROTO_GetShiftState done [07:56:16]FM_GetShiftState done [07:56:16]req_shift_opened done [07:56:16]requested_item shift.open_date is exist - process it [07:56:16]req_shift_open_date [07:56:16]req_shift_open_date done [07:56:16]produce_requested_data done [07:56:16]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123501,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [07:56:16]process_action_free close_receipt [07:56:16]json_value_free [07:56:16]json_value_free done [07:56:16]process_json_proto returns [07:56:16]Send response to host [07:56:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123501,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [07:56:16]free response buf [07:56:16]execute_script done [07:56:16]execute_script returns [07:56:16]free content buf [07:56:16]Sock 8.Close socket [07:56:16]Sock 8.Thread stoped [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:09]accept exits with 9 [07:57:09]New connection [07:57:09]New thread 3066719588 created [07:57:09]Thread 3066862948 joined [07:57:09]Waiting for new connection... [07:57:09] Sock 9.Parse request [07:57:09]Sock 9.Check first char [07:57:09]Sock 9.First char is OK [07:57:09]request: POST /json_proto HTTP/1.0 [07:57:09]Method: POST [07:57:09]URL: /json_proto [07:57:09]Method is POST - this is cgi request [07:57:09]url: /json_proto [07:57:09]query_string will be loaded in cgi processing [07:57:09]execute_cgi json_proto POST (null) [07:57:09]execute_cgi path=json_proto method=POST [07:57:09]POST find Content-Length [07:57:09]Host: 172.17.37.4:8080 [07:57:09]Content-Length: 682 [07:57:09]Content-Type: application/json [07:57:09] [07:57:09]POST finish read [07:57:09]Found Content-Length = 682 [07:57:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718334", "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" ] } } [07:57:09]execute_script... [07:57: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)718334", "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" ] } } [07:57:09]POST & json_proto [07:57:09]process_json_proto [07:57:09]json parsed OK: [07:57:09]protocol is kg_v1.0 [07:57:09]action value=close_receipt [07:57:09]process_action close_receipt [07:57:09]cmd_close_receipt [07:57:09]MH_GetDate [07:57:09]Write to MH i2c: F0 00 00 F5 15 F9 [07:57:09]Write i2c OK [07:57:09]MH_I2C_Read... [07:57:09]Read from MH i2c: F0 [07:57:09]MH_I2C_Read... [07:57:09]Read from MH i2c: F0 09 00 [07:57:09]MH_I2C_Read... [07:57:09]Read from MH i2c: F0 09 00 F5 15 00 59 22 48 67 1D 3A 47 67 31 [07:57:09]GetLastDocTimeStamp 1732780576 [07:57:09]current date 1732780633 [07:57:09]FM_GetShiftState [07:57:09]SAM_PROTO_GetShiftState [07:57:09]wFMCommunicate request_size=4 [07:57:09]MH_SAM_APDU [07:57:09]CAPDU: 80 13 01 00 [07:57:09]Write to MH i2c: E2 08 00 F6 15 80 13 01 00 00 00 00 00 88 [07:57:09]Write i2c OK [07:57:09]MH_I2C_Read... [07:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:09]Read from MH i2c: E2 [07:57:09]MH_I2C_Read... [07:57:09]Read from MH i2c: E2 0E 00 [07:57:09]MH_I2C_Read... [07:57:09]Read from MH i2c: E2 0E 00 F6 15 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 8F [07:57:09]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:57:09]wFMCommunicate OK [07:57:09]SAM_PROTO_GetShiftState done [07:57:09]FM_GetShiftState done [07:57:09]opened in 1732752282 [07:57:09]opened+sec_in_day 1732838682 [07:57:09]quantity*price = 100021 [07:57:09]sum+1 = 100023 [07:57:09]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 СНО: Общий режим Чек 14 28.11.2024 07:57 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123502 ФПД: 34234006085282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T075713&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123502&fm=34234006085282&tin=02508201610067®Number=0000000000092681&sum=100000 [07:57:11]StoreToDocumentArchive [07:57:11]shift 559 fd 123502 [07:57:11]save to /storage/0559/doc_00123502 [07:57:11]save last doc name /storage/0559/doc_00123502 to /storage/kkm_last_doc_name [07:57:11]save OK [07:57:11]Clear old archive folders... [07:57:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:57:11]tlvbuf is B6E929B0 [07:57:11]SAM_PROTO_ClearQueue [07:57:11]wFMCommunicate request_size=4 [07:57:11]MH_SAM_APDU [07:57:11]CAPDU: 80 09 00 00 [07:57:11]Write to MH i2c: E2 08 00 03 16 80 09 00 00 00 00 00 00 8B [07:57:11]Write i2c OK [07:57:11]MH_I2C_Read... [07:57:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:11]Read from MH i2c: E2 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: E2 03 00 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: E2 03 00 03 16 00 90 00 8D [07:57:11]RAPDU: 90 00 [07:57:11]wFMCommunicate OK [07:57:11]SAM_PROTO_ClearQueue done [07:57:11]KKMCreateOFDPacket [07:57:11]OFDProtocolAddRootSTLVToBuf [07:57:11]FM_MakeSignedData [07:57:11]FM_MakeSignedData [07:57:11]SAM_PROTO_SignData [07:57:11]wFMCommunicate request_size=4 [07:57:11]MH_SAM_APDU [07:57:11]CAPDU: 80 0D 01 02 [07:57:11]Write to MH i2c: E2 08 00 04 16 80 0D 01 02 00 00 00 00 93 [07:57:11]Write i2c OK [07:57:11]MH_I2C_Read... [07:57:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:11]Read from MH i2c: E2 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: E2 03 00 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: E2 03 00 04 16 00 90 00 8E [07:57:11]RAPDU: 90 00 [07:57:11]wFMCommunicate OK [07:57:11]wFMCommunicate request_size=255 [07:57:11]MH_SAM_APDU [07:57: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 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 0E 00 00 00 F4 03 04 00 59 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 1F [07:57:11]Write to MH i2c: E2 02 01 05 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0E 00 00 00 F4 03 04 00 59 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 1F 00 00 C3 [07:57:11]Write i2c OK [07:57:11]MH_I2C_Read... [07:57:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:11]Read from MH i2c: E2 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: E2 03 00 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: E2 03 00 05 16 00 90 00 8F [07:57:11]RAPDU: 90 00 [07:57:11]wFMCommunicate OK [07:57:11]wFMCommunicate request_size=10 [07:57:11]MH_SAM_APDU [07:57:11]CAPDU: 80 0D 02 02 05 22 B9 C5 9E A2 [07:57:11]Write to MH i2c: E2 0D 00 06 16 80 0D 02 02 05 00 22 B9 C5 9E A2 00 00 80 [07:57:11]Write i2c OK [07:57:11]MH_I2C_Read... [07:57:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:11]Read from MH i2c: E2 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: E2 03 00 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: E2 03 00 06 16 00 90 00 90 [07:57:11]RAPDU: 90 00 [07:57:11]wFMCommunicate OK [07:57:11]wFMCommunicate request_size=4 [07:57:11]MH_SAM_APDU [07:57:11]CAPDU: 80 0D 03 02 [07:57:11]Write to MH i2c: E2 08 00 07 16 80 0D 03 02 00 00 00 00 98 [07:57:11]Write i2c OK [07:57:11]MH_I2C_Read... [07:57:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:11]Read from MH i2c: E2 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: E2 0B 00 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: E2 0B 00 07 16 00 DA 74 4F C3 1E 18 B3 F0 90 00 D2 [07:57:11]RAPDU: DA 74 4F C3 1E 18 B3 F0 90 00 [07:57:11]wFMCommunicate OK [07:57:11]SAM_PROTO_SignData done [07:57:11]FM_MakeSignedData done [07:57:11]CreateOFDProtocolMessage [07:57:11]wFMCommunicate request_size=4 [07:57:11]MH_SAM_APDU [07:57:11]CAPDU: 80 11 00 00 [07:57:11]Write to MH i2c: E2 08 00 08 16 80 11 00 00 00 00 00 00 98 [07:57:11]Write i2c OK [07:57:11]MH_I2C_Read... [07:57:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:11]Read from MH i2c: E2 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: E2 17 00 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: E2 17 00 08 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EF [07:57:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:57:11]wFMCommunicate OK [07:57:11]CreateOFDProtocolMessage done [07:57:11]OFDSenderStorePacket 123502 [07:57:11]StoreOFDPacket docnum=123502 [07:57: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 7A B3 07 01 55 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0E 00 00 00 F4 03 04 00 59 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 1F 22 B9 C5 9E A2 DA 74 4F C3 1E 18 B3 F0 [07:57:11]CheckFolder [07:57:11]dirname=/storage/ofd_packets [07:57:11]CheckFolder done [07:57:11]ProducePacketName [07:57:11]name=ofd_packets/00123502 [07:57:11]NVStorageSaveData ofd_packets/00123502 [07:57:11]File name is /storage/ofd_packets/00123502 [07:57:11]Write 301 bytes [07:57:11]NVStorageSaveData done [07:57:11]OFDSenderStorePacket done [07:57:11]KKMCreateOFDPacket done [07:57:11]NVStorageSaveData kkm_last_timestamp [07:57:11]File name is /storage/kkm_last_timestamp [07:57:11]Write 4 bytes [07:57:11]NVStorageSaveData done [07:57:11]ExternCall_PrintAddStr [07:57:11]wPrintStart [07:57:11]Write to MH i2c: 01 00 00 09 16 1F [07:57:11]Write i2c OK [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: 01 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: 01 07 00 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: 01 07 00 09 16 00 00 00 00 00 FF 0F 34 [07:57:11]RasterBufferAndPrint [07:57:11]line Счет N : (1)718334 [07:57:11]line ИНН: 02508201610067 [07:57:11]line Контрольно-Кассовый Чек [07:57:11]line ПРОДАЖА [07:57:11]line ТРК (МРК, ГНК) : 32 [07:57:11]line Товар: 2710124130 [07:57:11]line Аи-92-К-4 [07:57:11]line 14.840 * 67.40 [07:57:11]line = 1000.22 [07:57:11]line НДС 12% НСП 1% [07:57:11]line > о реализуемом товаре [07:57:11]line ОКРУГЛЕНИЕ: -0.22 [07:57:11]line ИТОГО: 1000.00 [07:57:11]line Внесено: 1000.00 [07:57:11]line СДАЧА: 0.00 [07:57:11]line НСП 1% : 8.85 [07:57:11]line НДС 12% : 106.22 [07:57:11]line Наличными: 1000.00 [07:57:11]line Безнал.: 0.00 [07:57:11]line Место: АЗС № 64 "Партнер Нефть" [07:57:11]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [07:57:11]line СНО: Общий режим [07:57:11]line Чек 14 28.11.2024 07:57 [07:57:11]line Смена: 559 ФФД: 1.0 [07:57:11]line ЗНМ: 0300000033 [07:57:11]line РНМ: 0000000000092681 [07:57:11]line Версия ККМ: 001 [07:57:11]line ФМ: 0000000000874881 [07:57:11]line ФД: 123502 [07:57:11]line ФПД: 34234006085282 [07:57:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T075713&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123502&fm=34234006085282&tin=02508201610067®Number=0000000000092681&sum=100000 [07:57:11]OFD Sender: Processing packet 123502 [packets to send 7, broken 6] [07:57:11]ProducePacketName [07:57:11]name=ofd_packets/00123502 [07:57:11]OFD Sender: To server: pG, [07:57:11]CommunicateWithHost lk.salyk.kg:30040 [07:57:11]ConnectInit lk.salyk.kg [07:57:11]written 0, free lines is 4095 [07:57:12]Connected sock=10 [07:57: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 7A B3 07 01 55 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0E 00 00 00 F4 03 04 00 59 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 1F 22 B9 C5 9E A2 DA 74 4F C3 1E 18 B3 F0 [07:57: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 5B 1A 47 00 78 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 6E E2 01 00 F4 03 04 00 20 CE 47 67 B6 04 01 00 00 D3 3A A1 10 7F 20 1E 7F [07:57:12]CommunicateWithHost err = 0 [07:57:12]CheckOFDResponse [07:57:12]1017 (14) - 77093643461234 [07:57:12]1041 (16) - 0000000000874881 [07:57:12]1040 (4) - 123502 [07:57:12]1012 (4) - 28.11.2024 01:57 [07:57:12]1206 (1) - 0 [07:57:12]OFD Sender: Remove packet 123502 [07:57:12]ProducePacketName [07:57:12]name=ofd_packets/00123502 [07:57:12]NVStorageDeleteData [07:57:12]Write to MH i2c: 01 00 00 34 16 4A [07:57:12]Write i2c OK [07:57:12]MH_I2C_Read... [07:57:12]Read from MH i2c: 01 [07:57:12]MH_I2C_Read... [07:57:12]Read from MH i2c: 01 07 00 [07:57:12]MH_I2C_Read... [07:57:12]Read from MH i2c: 01 07 00 34 16 00 00 00 00 00 47 0C A4 [07:57:12]RasterBufferAndPrint [07:57:12]line [07:57:12]line [07:57:12]line [07:57:12]line [07:57:12]line [07:57:12]written 0, free lines is 3148 [07:57:12]MH_Cut [07:57:12]Write to MH i2c: D1 01 00 3B 16 01 23 [07:57:12]Write i2c OK [07:57:12]MH_I2C_Read... [07:57:12]Read from MH i2c: D1 [07:57:12]MH_I2C_Read... [07:57:12]Read from MH i2c: D1 01 00 [07:57:12]MH_I2C_Read... [07:57:12]Read from MH i2c: D1 01 00 3B 16 00 22 [07:57:12]Write to MH i2c: 01 00 00 3C 16 52 [07:57:12]Write i2c OK [07:57:12]MH_I2C_Read... [07:57:12]OFD Sender: No OFD packet to send [07:57:13]*** Cut start [07:57:13]*** Partial cut [07:57:13]*** CUTSNS_PIN = 1 [07:57:13]*** CUTSNS_PIN = 0 [07:57:14]*** Brake cut motor [07:57:14]Read from MH i2c: 01 [07:57:14]MH_I2C_Read... [07:57:14]*** Stop cut motor [07:57:14]*** Cut end [07:57:14]Read from MH i2c: 01 07 00 [07:57:14]MH_I2C_Read... [07:57:14]Read from MH i2c: 01 07 00 3C 16 00 00 00 00 00 FF 0F 67 [07:57:14]process_action close_receipt done [07:57:14]requested_data is exist [07:57:14]produce_requested_data [07:57:14]requested_item fm.sn is exist - process it [07:57:14]wFMCommunicate request_size=4 [07:57:14]MH_SAM_APDU [07:57:14]CAPDU: 80 11 00 00 [07:57:14]Write to MH i2c: E2 08 00 3D 16 80 11 00 00 00 00 00 00 CD [07:57:14]Write i2c OK [07:57:14]MH_I2C_Read... [07:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:14]Read from MH i2c: E2 [07:57:14]MH_I2C_Read... [07:57:14]Read from MH i2c: E2 17 00 [07:57:14]MH_I2C_Read... [07:57:14]Read from MH i2c: E2 17 00 3D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 24 [07:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:57:14]wFMCommunicate OK [07:57:14]requested_item fd.num is exist - process it [07:57:14]SAM_PROTO_GetFieldsCounters [07:57:14]wFMCommunicate request_size=4 [07:57:14]MH_SAM_APDU [07:57:14]CAPDU: 80 13 00 00 [07:57:14]Write to MH i2c: E2 08 00 3E 16 80 13 00 00 00 00 00 00 D0 [07:57:14]Write i2c OK [07:57:14]MH_I2C_Read... [07:57:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:14]Read from MH i2c: E2 [07:57:14]MH_I2C_Read... [07:57:14]Read from MH i2c: E2 62 00 [07:57:14]MH_I2C_Read... [07:57:14]Read from MH i2c: E2 62 00 3E 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 A2 [07:57: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 6E E2 01 00 0E 04 04 00 2F 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 [07:57:14]wFMCommunicate OK [07:57:14]SAM_PROTO_GetFieldsCounters done [07:57:14]requested_item shift.num is exist - process it [07:57:14]requested_item shift.opened is exist - process it [07:57:14]req_shift_opened [07:57:14]FM_GetShiftState [07:57:14]SAM_PROTO_GetShiftState [07:57:14]wFMCommunicate request_size=4 [07:57:14]MH_SAM_APDU [07:57:14]CAPDU: 80 13 01 00 [07:57:14]Write to MH i2c: E2 08 00 3F 16 80 13 01 00 00 00 00 00 D2 [07:57:14]Write i2c OK [07:57:14]MH_I2C_Read... [07:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:14]Read from MH i2c: E2 [07:57:14]MH_I2C_Read... [07:57:14]Read from MH i2c: E2 0E 00 [07:57:14]MH_I2C_Read... [07:57:14]Read from MH i2c: E2 0E 00 3F 16 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 D9 [07:57:14]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:57:14]wFMCommunicate OK [07:57:14]SAM_PROTO_GetShiftState done [07:57:14]FM_GetShiftState done [07:57:14]req_shift_opened done [07:57:14]requested_item shift.open_date is exist - process it [07:57:14]req_shift_open_date [07:57:14]req_shift_open_date done [07:57:14]produce_requested_data done [07:57:14]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123502,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [07:57:14]process_action_free close_receipt [07:57:14]json_value_free [07:57:14]json_value_free done [07:57:14]process_json_proto returns [07:57:14]Send response to host [07:57:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123502,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [07:57:14]free response buf [07:57:14]execute_script done [07:57:14]execute_script returns [07:57:14]free content buf [07:57:14]Sock 9.Close socket [07:57:14]Sock 9.Thread stoped [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:50]accept exits with 8 [07:58:50]New connection [07:58:50]New thread 3066862948 created [07:58:50]Thread 3066719588 joined [07:58:50]Waiting for new connection... [07:58:50] Sock 8.Parse request [07:58:50]Sock 8.Check first char [07:58:50]Sock 8.First char is OK [07:58:50]request: POST /json_proto HTTP/1.0 [07:58:50]Method: POST [07:58:50]URL: /json_proto [07:58:50]Method is POST - this is cgi request [07:58:50]url: /json_proto [07:58:50]query_string will be loaded in cgi processing [07:58:50]execute_cgi json_proto POST (null) [07:58:50]execute_cgi path=json_proto method=POST [07:58:50]POST find Content-Length [07:58:50]Host: 172.17.37.4:8080 [07:58:50]Content-Length: 819 [07:58:50]Content-Type: application/json [07:58:50] [07:58:50]POST finish read [07:58:50]Found Content-Length = 819 [07:58:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718335", "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 }]} ], "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" ] } } [07:58:50]execute_script... [07:58:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718335", "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 }]} ], "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" ] } } [07:58:50]POST & json_proto [07:58:50]process_json_proto [07:58:50]json parsed OK: [07:58:50]protocol is kg_v1.0 [07:58:50]action value=close_receipt [07:58:50]process_action close_receipt [07:58:50]cmd_close_receipt [07:58:50]MH_GetDate [07:58:50]Write to MH i2c: F0 00 00 40 16 45 [07:58:50]Write i2c OK [07:58:50]MH_I2C_Read... [07:58:50]Read from MH i2c: F0 [07:58:50]MH_I2C_Read... [07:58:50]Read from MH i2c: F0 09 00 [07:58:50]MH_I2C_Read... [07:58:50]Read from MH i2c: F0 09 00 40 16 00 BE 22 48 67 1D 3A 47 67 E2 [07:58:50]GetLastDocTimeStamp 1732780633 [07:58:50]current date 1732780734 [07:58:50]FM_GetShiftState [07:58:50]SAM_PROTO_GetShiftState [07:58:50]wFMCommunicate request_size=4 [07:58:50]MH_SAM_APDU [07:58:50]CAPDU: 80 13 01 00 [07:58:50]Write to MH i2c: E2 08 00 41 16 80 13 01 00 00 00 00 00 D4 [07:58:50]Write i2c OK [07:58:50]MH_I2C_Read... [07:58:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:50]Read from MH i2c: E2 [07:58:50]MH_I2C_Read... [07:58:50]Read from MH i2c: E2 0E 00 [07:58:50]MH_I2C_Read... [07:58:50]Read from MH i2c: E2 0E 00 41 16 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 DB [07:58:50]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:58:50]wFMCommunicate OK [07:58:50]SAM_PROTO_GetShiftState done [07:58:50]FM_GetShiftState done [07:58:50]opened in 1732752282 [07:58:50]opened+sec_in_day 1732838682 [07:58:50]quantity*price = 100021 [07:58:50]sum+1 = 100023 [07:58:50]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 СНО: Общий режим Чек 15 28.11.2024 07:58 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123503 ФПД: 4715565258165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T075854&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123503&fm=4715565258165&tin=02508201610067®Number=0000000000092681&sum=100022 [07:58:51]StoreToDocumentArchive [07:58:51]shift 559 fd 123503 [07:58:51]save to /storage/0559/doc_00123503 [07:58:51]save last doc name /storage/0559/doc_00123503 to /storage/kkm_last_doc_name [07:58:51]save OK [07:58:51]Clear old archive folders... [07:58:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:58:51]tlvbuf is B6E926E0 [07:58:51]SAM_PROTO_ClearQueue [07:58:51]wFMCommunicate request_size=4 [07:58:51]MH_SAM_APDU [07:58:51]CAPDU: 80 09 00 00 [07:58:51]Write to MH i2c: E2 08 00 4E 16 80 09 00 00 00 00 00 00 D6 [07:58:51]Write i2c OK [07:58:51]MH_I2C_Read... [07:58:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:51]Read from MH i2c: E2 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: E2 03 00 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: E2 03 00 4E 16 00 90 00 D8 [07:58:51]RAPDU: 90 00 [07:58:51]wFMCommunicate OK [07:58:51]SAM_PROTO_ClearQueue done [07:58:51]KKMCreateOFDPacket [07:58:51]OFDProtocolAddRootSTLVToBuf [07:58:51]FM_MakeSignedData [07:58:51]FM_MakeSignedData [07:58:51]SAM_PROTO_SignData [07:58:51]wFMCommunicate request_size=4 [07:58:51]MH_SAM_APDU [07:58:51]CAPDU: 80 0D 01 02 [07:58:51]Write to MH i2c: E2 08 00 4F 16 80 0D 01 02 00 00 00 00 DE [07:58:51]Write i2c OK [07:58:51]MH_I2C_Read... [07:58:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:51]Read from MH i2c: E2 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: E2 03 00 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: E2 03 00 4F 16 00 90 00 D9 [07:58:51]RAPDU: 90 00 [07:58:51]wFMCommunicate OK [07:58:51]wFMCommunicate request_size=255 [07:58:51]MH_SAM_APDU [07:58: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 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 0F 00 00 00 F4 03 04 00 BE 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 04 [07:58:51]Write to MH i2c: E2 02 01 50 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0F 00 00 00 F4 03 04 00 BE 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 04 00 00 86 [07:58:51]Write i2c OK [07:58:51]MH_I2C_Read... [07:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:51]Read from MH i2c: E2 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: E2 03 00 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: E2 03 00 50 16 00 90 00 DA [07:58:51]RAPDU: 90 00 [07:58:51]wFMCommunicate OK [07:58:51]wFMCommunicate request_size=10 [07:58:51]MH_SAM_APDU [07:58:51]CAPDU: 80 0D 02 02 05 49 ED 97 95 B5 [07:58:51]Write to MH i2c: E2 0D 00 51 16 80 0D 02 02 05 00 49 ED 97 95 B5 00 00 02 [07:58:51]Write i2c OK [07:58:51]MH_I2C_Read... [07:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:51]Read from MH i2c: E2 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: E2 03 00 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: E2 03 00 51 16 00 90 00 DB [07:58:51]RAPDU: 90 00 [07:58:51]wFMCommunicate OK [07:58:51]wFMCommunicate request_size=4 [07:58:51]MH_SAM_APDU [07:58:51]CAPDU: 80 0D 03 02 [07:58:51]Write to MH i2c: E2 08 00 52 16 80 0D 03 02 00 00 00 00 E3 [07:58:51]Write i2c OK [07:58:51]MH_I2C_Read... [07:58:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:52]Read from MH i2c: E2 [07:58:52]MH_I2C_Read... [07:58:52]Read from MH i2c: E2 0B 00 [07:58:52]MH_I2C_Read... [07:58:52]Read from MH i2c: E2 0B 00 52 16 00 23 81 67 AE 8A 30 B7 04 90 00 12 [07:58:52]RAPDU: 23 81 67 AE 8A 30 B7 04 90 00 [07:58:52]wFMCommunicate OK [07:58:52]SAM_PROTO_SignData done [07:58:52]FM_MakeSignedData done [07:58:52]CreateOFDProtocolMessage [07:58:52]wFMCommunicate request_size=4 [07:58:52]MH_SAM_APDU [07:58:52]CAPDU: 80 11 00 00 [07:58:52]Write to MH i2c: E2 08 00 53 16 80 11 00 00 00 00 00 00 E3 [07:58:52]Write i2c OK [07:58:52]MH_I2C_Read... [07:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:52]Read from MH i2c: E2 [07:58:52]MH_I2C_Read... [07:58:52]Read from MH i2c: E2 17 00 [07:58:52]MH_I2C_Read... [07:58:52]Read from MH i2c: E2 17 00 53 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3A [07:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:58:52]wFMCommunicate OK [07:58:52]CreateOFDProtocolMessage done [07:58:52]OFDSenderStorePacket 123503 [07:58:52]StoreOFDPacket docnum=123503 [07:58: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 F1 7C 07 01 19 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0F 00 00 00 F4 03 04 00 BE 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 04 49 ED 97 95 B5 23 81 67 AE 8A 30 B7 04 [07:58:52]CheckFolder [07:58:52]dirname=/storage/ofd_packets [07:58:52]CheckFolder done [07:58:52]ProducePacketName [07:58:52]name=ofd_packets/00123503 [07:58:52]NVStorageSaveData ofd_packets/00123503 [07:58:52]File name is /storage/ofd_packets/00123503 [07:58:52]Write 301 bytes [07:58:52]NVStorageSaveData done [07:58:52]OFDSenderStorePacket done [07:58:52]KKMCreateOFDPacket done [07:58:52]NVStorageSaveData kkm_last_timestamp [07:58:52]File name is /storage/kkm_last_timestamp [07:58:52]Write 4 bytes [07:58:52]NVStorageSaveData done [07:58:52]ExternCall_PrintAddStr [07:58:52]wPrintStart [07:58:52]Write to MH i2c: 01 00 00 54 16 6A [07:58:52]Write i2c OK [07:58:52]MH_I2C_Read... [07:58:52]Read from MH i2c: 01 [07:58:52]MH_I2C_Read... [07:58:52]Read from MH i2c: 01 07 00 [07:58:52]MH_I2C_Read... [07:58:52]Read from MH i2c: 01 07 00 54 16 00 00 00 00 00 FF 0F 7F [07:58:52]RasterBufferAndPrint [07:58:52]line Счет N : (1)718335 [07:58:52]line ИНН: 02508201610067 [07:58:52]line Контрольно-Кассовый Чек [07:58:52]line ПРОДАЖА [07:58:52]line ТРК (МРК, ГНК) : 22 [07:58:52]line Товар: 2710124130 [07:58:52]line Аи-92-К-4 [07:58:52]line 14.840 * 67.40 [07:58:52]line = 1000.22 [07:58:52]line НДС 12% НСП 1% [07:58:52]line > о реализуемом товаре [07:58:52]line ИТОГО: 1000.22 [07:58:52]line НСП 1% : 8.85 [07:58:52]line НДС 12% : 106.22 [07:58:52]line Наличными: 0.00 [07:58:52]line Безнал.: 1000.22 [07:58:52]line Место: АЗС № 64 "Партнер Нефть" [07:58:52]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [07:58:52]line СНО: Общий режим [07:58:52]line Чек 15 28.11.2024 07:58 [07:58:52]line Смена: 559 ФФД: 1.0 [07:58:52]line ЗНМ: 0300000033 [07:58:52]line РНМ: 0000000000092681 [07:58:52]line Версия ККМ: 001 [07:58:52]line Платежная система: Бакай Банк [07:58:52]line ФМ: 0000000000874881 [07:58:52]line ФД: 123503 [07:58:52]line ФПД: 4715565258165 [07:58:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T075854&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123503&fm=4715565258165&tin=02508201610067®Number=0000000000092681&sum=100022 [07:58:52]written 0, free lines is 4095 [07:58:52]OFD Sender: Processing packet 123503 [packets to send 7, broken 6] [07:58:52]ProducePacketName [07:58:52]name=ofd_packets/00123503 [07:58:52]OFD Sender: To server: pG, [07:58:52]CommunicateWithHost lk.salyk.kg:30040 [07:58:52]ConnectInit lk.salyk.kg [07:58:52]Connected sock=10 [07:58: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 F1 7C 07 01 19 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0F 00 00 00 F4 03 04 00 BE 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 04 49 ED 97 95 B5 23 81 67 AE 8A 30 B7 04 [07:58: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 CB 3E 47 00 E7 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 6F E2 01 00 F4 03 04 00 84 CE 47 67 B6 04 01 00 00 49 0E B3 E0 DB 84 63 78 [07:58:52]CommunicateWithHost err = 0 [07:58:52]CheckOFDResponse [07:58:52]1017 (14) - 77093643461234 [07:58:52]1041 (16) - 0000000000874881 [07:58:52]1040 (4) - 123503 [07:58:52]1012 (4) - 28.11.2024 01:59 [07:58:52]1206 (1) - 0 [07:58:52]OFD Sender: Remove packet 123503 [07:58:52]ProducePacketName [07:58:52]name=ofd_packets/00123503 [07:58:52]NVStorageDeleteData [07:58:52]Write to MH i2c: 01 00 00 7E 16 94 [07:58:52]Write i2c OK [07:58:52]MH_I2C_Read... [07:58:52]Read from MH i2c: 01 [07:58:52]MH_I2C_Read... [07:58:52]Read from MH i2c: 01 07 00 [07:58:52]MH_I2C_Read... [07:58:52]Read from MH i2c: 01 07 00 7E 16 00 00 00 00 00 5A 0C 01 [07:58:52]RasterBufferAndPrint [07:58:52]line [07:58:52]line [07:58:52]line [07:58:52]line [07:58:52]line [07:58:52]written 0, free lines is 3166 [07:58:52]MH_Cut [07:58:52]Write to MH i2c: D1 01 00 85 16 01 6D [07:58:52]Write i2c OK [07:58:52]MH_I2C_Read... [07:58:52]Read from MH i2c: D1 [07:58:52]MH_I2C_Read... [07:58:52]Read from MH i2c: D1 01 00 [07:58:52]MH_I2C_Read... [07:58:52]Read from MH i2c: D1 01 00 85 16 00 6C [07:58:52]Write to MH i2c: 01 00 00 86 16 9C [07:58:52]Write i2c OK [07:58:52]MH_I2C_Read... [07:58:53]OFD Sender: No OFD packet to send [07:58:54]*** Cut start [07:58:54]*** Partial cut [07:58:54]*** CUTSNS_PIN = 1 [07:58:54]*** CUTSNS_PIN = 0 [07:58:54]*** Brake cut motor [07:58:54]Read from MH i2c: 01 [07:58:54]MH_I2C_Read... [07:58:54]*** Stop cut motor [07:58:54]*** Cut end [07:58:54]Read from MH i2c: 01 07 00 [07:58:54]MH_I2C_Read... [07:58:54]Read from MH i2c: 01 07 00 86 16 00 00 00 00 00 FF 0F B1 [07:58:54]process_action close_receipt done [07:58:54]requested_data is exist [07:58:54]produce_requested_data [07:58:54]requested_item fm.sn is exist - process it [07:58:54]wFMCommunicate request_size=4 [07:58:54]MH_SAM_APDU [07:58:54]CAPDU: 80 11 00 00 [07:58:54]Write to MH i2c: E2 08 00 87 16 80 11 00 00 00 00 00 00 17 [07:58:54]Write i2c OK [07:58:54]MH_I2C_Read... [07:58:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:54]Read from MH i2c: E2 [07:58:54]MH_I2C_Read... [07:58:54]Read from MH i2c: E2 17 00 [07:58:54]MH_I2C_Read... [07:58:54]Read from MH i2c: E2 17 00 87 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6E [07:58:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:58:54]wFMCommunicate OK [07:58:54]requested_item fd.num is exist - process it [07:58:54]SAM_PROTO_GetFieldsCounters [07:58:54]wFMCommunicate request_size=4 [07:58:54]MH_SAM_APDU [07:58:54]CAPDU: 80 13 00 00 [07:58:54]Write to MH i2c: E2 08 00 88 16 80 13 00 00 00 00 00 00 1A [07:58:54]Write i2c OK [07:58:54]MH_I2C_Read... [07:58:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:55]Read from MH i2c: E2 [07:58:55]MH_I2C_Read... [07:58:55]Read from MH i2c: E2 62 00 [07:58:55]MH_I2C_Read... [07:58:55]Read from MH i2c: E2 62 00 88 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 F0 [07:58: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 6F E2 01 00 0E 04 04 00 2F 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 [07:58:55]wFMCommunicate OK [07:58:55]SAM_PROTO_GetFieldsCounters done [07:58:55]requested_item shift.num is exist - process it [07:58:55]requested_item shift.opened is exist - process it [07:58:55]req_shift_opened [07:58:55]FM_GetShiftState [07:58:55]SAM_PROTO_GetShiftState [07:58:55]wFMCommunicate request_size=4 [07:58:55]MH_SAM_APDU [07:58:55]CAPDU: 80 13 01 00 [07:58:55]Write to MH i2c: E2 08 00 89 16 80 13 01 00 00 00 00 00 1C [07:58:55]Write i2c OK [07:58:55]MH_I2C_Read... [07:58:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:55]Read from MH i2c: E2 [07:58:55]MH_I2C_Read... [07:58:55]Read from MH i2c: E2 0E 00 [07:58:55]MH_I2C_Read... [07:58:55]Read from MH i2c: E2 0E 00 89 16 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 23 [07:58:55]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:58:55]wFMCommunicate OK [07:58:55]SAM_PROTO_GetShiftState done [07:58:55]FM_GetShiftState done [07:58:55]req_shift_opened done [07:58:55]requested_item shift.open_date is exist - process it [07:58:55]req_shift_open_date [07:58:55]req_shift_open_date done [07:58:55]produce_requested_data done [07:58:55]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123503,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [07:58:55]process_action_free close_receipt [07:58:55]json_value_free [07:58:55]json_value_free done [07:58:55]process_json_proto returns [07:58:55]Send response to host [07:58:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123503,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [07:58:55]free response buf [07:58:55]execute_script done [07:58:55]execute_script returns [07:58:55]free content buf [07:58:55]Sock 8.Close socket [07:58:55]Sock 8.Thread stoped [07:58:58]OFD Sender: No OFD packet to send [07:59:03]OFD Sender: No OFD packet to send [07:59:08]OFD Sender: No OFD packet to send [07:59:13]OFD Sender: No OFD packet to send [07:59:18]OFD Sender: No OFD packet to send [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:29]accept exits with 9 [07:59:29]New connection [07:59:29]New thread 3066719588 created [07:59:29]Thread 3066862948 joined [07:59:29]Waiting for new connection... [07:59:29] Sock 9.Parse request [07:59:29]Sock 9.Check first char [07:59:29]Sock 9.First char is OK [07:59:29]request: POST /json_proto HTTP/1.0 [07:59:29]Method: POST [07:59:29]URL: /json_proto [07:59:29]Method is POST - this is cgi request [07:59:29]url: /json_proto [07:59:29]query_string will be loaded in cgi processing [07:59:29]execute_cgi json_proto POST (null) [07:59:29]execute_cgi path=json_proto method=POST [07:59:29]POST find Content-Length [07:59:29]Host: 172.17.37.4:8080 [07:59:29]Content-Length: 681 [07:59:29]Content-Type: application/json [07:59:29] [07:59:29]POST finish read [07:59:29]Found Content-Length = 681 [07:59:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718337", "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" ] } } [07:59:29]execute_script... [07:59: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)718337", "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" ] } } [07:59:29]POST & json_proto [07:59:29]process_json_proto [07:59:29]json parsed OK: [07:59:29]protocol is kg_v1.0 [07:59:29]action value=close_receipt [07:59:29]process_action close_receipt [07:59:29]cmd_close_receipt [07:59:29]MH_GetDate [07:59:29]Write to MH i2c: F0 00 00 8A 16 8F [07:59:29]Write i2c OK [07:59:29]MH_I2C_Read... [07:59:29]Read from MH i2c: F0 [07:59:29]MH_I2C_Read... [07:59:29]Read from MH i2c: F0 09 00 [07:59:29]MH_I2C_Read... [07:59:29]Read from MH i2c: F0 09 00 8A 16 00 E5 22 48 67 1D 3A 47 67 53 [07:59:29]GetLastDocTimeStamp 1732780734 [07:59:29]current date 1732780773 [07:59:29]FM_GetShiftState [07:59:29]SAM_PROTO_GetShiftState [07:59:29]wFMCommunicate request_size=4 [07:59:29]MH_SAM_APDU [07:59:29]CAPDU: 80 13 01 00 [07:59:29]Write to MH i2c: E2 08 00 8B 16 80 13 01 00 00 00 00 00 1E [07:59:29]Write i2c OK [07:59:29]MH_I2C_Read... [07:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:29]Read from MH i2c: E2 [07:59:29]MH_I2C_Read... [07:59:29]Read from MH i2c: E2 0E 00 [07:59:29]MH_I2C_Read... [07:59:29]Read from MH i2c: E2 0E 00 8B 16 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 25 [07:59:29]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:59:29]wFMCommunicate OK [07:59:29]SAM_PROTO_GetShiftState done [07:59:29]FM_GetShiftState done [07:59:29]opened in 1732752282 [07:59:29]opened+sec_in_day 1732838682 [07:59:29]quantity*price = 60069 [07:59:29]sum+1 = 60071 [07:59:29]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 СНО: Общий режим Чек 16 28.11.2024 07:59 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123504 ФПД: 231527782477984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T075933&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123504&fm=231527782477984&tin=02508201610067®Number=0000000000092681&sum=60000 [07:59:30]StoreToDocumentArchive [07:59:30]shift 559 fd 123504 [07:59:30]save to /storage/0559/doc_00123504 [07:59:30]save last doc name /storage/0559/doc_00123504 to /storage/kkm_last_doc_name [07:59:30]save OK [07:59:30]Clear old archive folders... [07:59:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:59:30]tlvbuf is 0148CB90 [07:59:30]SAM_PROTO_ClearQueue [07:59:30]wFMCommunicate request_size=4 [07:59:30]MH_SAM_APDU [07:59:30]CAPDU: 80 09 00 00 [07:59:30]Write to MH i2c: E2 08 00 98 16 80 09 00 00 00 00 00 00 20 [07:59:30]Write i2c OK [07:59:30]MH_I2C_Read... [07:59:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:30]Read from MH i2c: E2 [07:59:30]MH_I2C_Read... [07:59:30]Read from MH i2c: E2 03 00 [07:59:30]MH_I2C_Read... [07:59:30]Read from MH i2c: E2 03 00 98 16 00 90 00 22 [07:59:30]RAPDU: 90 00 [07:59:30]wFMCommunicate OK [07:59:30]SAM_PROTO_ClearQueue done [07:59:30]KKMCreateOFDPacket [07:59:30]OFDProtocolAddRootSTLVToBuf [07:59:30]FM_MakeSignedData [07:59:30]FM_MakeSignedData [07:59:30]SAM_PROTO_SignData [07:59:30]wFMCommunicate request_size=4 [07:59:30]MH_SAM_APDU [07:59:30]CAPDU: 80 0D 01 02 [07:59:30]Write to MH i2c: E2 08 00 99 16 80 0D 01 02 00 00 00 00 28 [07:59:30]Write i2c OK [07:59:30]MH_I2C_Read... [07:59:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:30]Read from MH i2c: E2 [07:59:30]MH_I2C_Read... [07:59:30]Read from MH i2c: E2 03 00 [07:59:30]MH_I2C_Read... [07:59:30]Read from MH i2c: E2 03 00 99 16 00 90 00 23 [07:59:30]RAPDU: 90 00 [07:59:30]wFMCommunicate OK [07:59:30]wFMCommunicate request_size=255 [07:59:30]MH_SAM_APDU [07:59: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 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 10 00 00 00 F4 03 04 00 E5 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 [07:59:30]Write to MH i2c: E2 02 01 9A 16 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 10 00 00 00 F4 03 04 00 E5 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 00 00 CB [07:59:30]Write i2c OK [07:59:30]MH_I2C_Read... [07:59:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:30]Read from MH i2c: E2 [07:59:30]MH_I2C_Read... [07:59:30]Read from MH i2c: E2 03 00 [07:59:30]MH_I2C_Read... [07:59:30]Read from MH i2c: E2 03 00 9A 16 00 90 00 24 [07:59:30]RAPDU: 90 00 [07:59:30]wFMCommunicate OK [07:59:30]wFMCommunicate request_size=11 [07:59:30]MH_SAM_APDU [07:59:30]CAPDU: 80 0D 02 02 06 D2 92 C3 3A F0 A0 [07:59:30]Write to MH i2c: E2 0E 00 9B 16 80 0D 02 02 06 00 D2 92 C3 3A F0 A0 00 00 28 [07:59:30]Write i2c OK [07:59:30]MH_I2C_Read... [07:59:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:30]Read from MH i2c: E2 [07:59:30]MH_I2C_Read... [07:59:30]Read from MH i2c: E2 03 00 [07:59:30]MH_I2C_Read... [07:59:30]Read from MH i2c: E2 03 00 9B 16 00 90 00 25 [07:59:30]RAPDU: 90 00 [07:59:30]wFMCommunicate OK [07:59:30]wFMCommunicate request_size=4 [07:59:30]MH_SAM_APDU [07:59:30]CAPDU: 80 0D 03 02 [07:59:30]Write to MH i2c: E2 08 00 9C 16 80 0D 03 02 00 00 00 00 2D [07:59:30]Write i2c OK [07:59:30]MH_I2C_Read... [07:59:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:30]Read from MH i2c: E2 [07:59:30]MH_I2C_Read... [07:59:30]Read from MH i2c: E2 0B 00 [07:59:30]MH_I2C_Read... [07:59:30]Read from MH i2c: E2 0B 00 9C 16 00 CE 09 E5 42 A8 A9 79 91 90 00 87 [07:59:30]RAPDU: CE 09 E5 42 A8 A9 79 91 90 00 [07:59:30]wFMCommunicate OK [07:59:30]SAM_PROTO_SignData done [07:59:30]FM_MakeSignedData done [07:59:30]CreateOFDProtocolMessage [07:59:30]wFMCommunicate request_size=4 [07:59:30]MH_SAM_APDU [07:59:30]CAPDU: 80 11 00 00 [07:59:30]Write to MH i2c: E2 08 00 9D 16 80 11 00 00 00 00 00 00 2D [07:59:30]Write i2c OK [07:59:30]MH_I2C_Read... [07:59:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:30]Read from MH i2c: E2 [07:59:30]MH_I2C_Read... [07:59:30]Read from MH i2c: E2 17 00 [07:59:30]MH_I2C_Read... [07:59:30]Read from MH i2c: E2 17 00 9D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 84 [07:59:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:59:30]wFMCommunicate OK [07:59:30]CreateOFDProtocolMessage done [07:59:30]OFDSenderStorePacket 123504 [07:59:30]StoreOFDPacket docnum=123504 [07:59: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 10 01 00 00 0D B4 08 01 CF 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 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 10 00 00 00 F4 03 04 00 E5 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D2 92 C3 3A F0 A0 CE 09 E5 42 A8 A9 79 91 [07:59:30]CheckFolder [07:59:30]dirname=/storage/ofd_packets [07:59:30]CheckFolder done [07:59:30]ProducePacketName [07:59:30]name=ofd_packets/00123504 [07:59:30]NVStorageSaveData ofd_packets/00123504 [07:59:30]File name is /storage/ofd_packets/00123504 [07:59:30]Write 302 bytes [07:59:30]NVStorageSaveData done [07:59:30]OFDSenderStorePacket done [07:59:30]KKMCreateOFDPacket done [07:59:30]NVStorageSaveData kkm_last_timestamp [07:59:30]File name is /storage/kkm_last_timestamp [07:59:30]Write 4 bytes [07:59:30]NVStorageSaveData done [07:59:30]ExternCall_PrintAddStr [07:59:30]wPrintStart [07:59:30]Write to MH i2c: 01 00 00 9E 16 B4 [07:59:30]Write i2c OK [07:59:30]MH_I2C_Read... [07:59:30]Read from MH i2c: 01 [07:59:30]MH_I2C_Read... [07:59:30]Read from MH i2c: 01 07 00 [07:59:30]MH_I2C_Read... [07:59:30]Read from MH i2c: 01 07 00 9E 16 00 00 00 00 00 FF 0F C9 [07:59:30]RasterBufferAndPrint [07:59:30]line Счет N : (1)718337 [07:59:30]line ИНН: 02508201610067 [07:59:30]line Контрольно-Кассовый Чек [07:59:30]line ПРОДАЖА [07:59:30]line ТРК (МРК, ГНК) : 6 [07:59:30]line Товар: 2710194210 [07:59:30]line ДТ(л)-К-5 [07:59:30]line 8.020 * 74.90 [07:59:30]line = 600.70 [07:59:30]line НДС 12% НСП 1% [07:59:30]line > о реализуемом товаре [07:59:30]line ОКРУГЛЕНИЕ: -0.70 [07:59:30]line ИТОГО: 600.00 [07:59:30]line Внесено: 600.00 [07:59:30]line СДАЧА: 0.00 [07:59:30]line НСП 1% : 5.32 [07:59:30]line НДС 12% : 63.79 [07:59:30]line Наличными: 600.00 [07:59:30]line Безнал.: 0.00 [07:59:30]line Место: АЗС № 64 "Партнер Нефть" [07:59:30]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [07:59:30]line СНО: Общий режим [07:59:30]line Чек 16 28.11.2024 07:59 [07:59:30]line Смена: 559 ФФД: 1.0 [07:59:30]line ЗНМ: 0300000033 [07:59:30]line РНМ: 0000000000092681 [07:59:30]line Версия ККМ: 001 [07:59:30]line ФМ: 0000000000874881 [07:59:31]line ФД: 123504 [07:59:31]line ФПД: 231527782477984 [07:59:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T075933&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123504&fm=231527782477984&tin=02508201610067®Number=0000000000092681&sum=60000 [07:59:31]OFD Sender: Processing packet 123504 [packets to send 7, broken 6] [07:59:31]ProducePacketName [07:59:31]name=ofd_packets/00123504 [07:59:31]OFD Sender: To server: pG, [07:59:31]CommunicateWithHost lk.salyk.kg:30040 [07:59:31]ConnectInit lk.salyk.kg [07:59:31]written 0, free lines is 4095 [07:59:31]Connected sock=10 [07:59: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 0D B4 08 01 CF 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 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 10 00 00 00 F4 03 04 00 E5 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D2 92 C3 3A F0 A0 CE 09 E5 42 A8 A9 79 91 [07:59: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 4A 79 47 00 C0 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 70 E2 01 00 F4 03 04 00 AB CE 47 67 B6 04 01 00 00 53 A3 95 A3 FD B3 CE 76 [07:59:31]CommunicateWithHost err = 0 [07:59:31]CheckOFDResponse [07:59:31]1017 (14) - 77093643461234 [07:59:31]1041 (16) - 0000000000874881 [07:59:31]1040 (4) - 123504 [07:59:31]1012 (4) - 28.11.2024 02:00 [07:59:31]1206 (1) - 0 [07:59:31]OFD Sender: Remove packet 123504 [07:59:31]ProducePacketName [07:59:31]name=ofd_packets/00123504 [07:59:31]NVStorageDeleteData [07:59:31]Write to MH i2c: 01 00 00 C9 16 DF [07:59:31]Write i2c OK [07:59:31]MH_I2C_Read... [07:59:31]Read from MH i2c: 01 [07:59:31]MH_I2C_Read... [07:59:31]Read from MH i2c: 01 07 00 [07:59:31]MH_I2C_Read... [07:59:31]Read from MH i2c: 01 07 00 C9 16 00 00 00 00 00 4B 0C 3D [07:59:31]RasterBufferAndPrint [07:59:31]line [07:59:31]line [07:59:31]line [07:59:31]line [07:59:31]line [07:59:31]written 0, free lines is 3150 [07:59:31]MH_Cut [07:59:31]Write to MH i2c: D1 01 00 D0 16 01 B8 [07:59:31]Write i2c OK [07:59:31]MH_I2C_Read... [07:59:31]Read from MH i2c: D1 [07:59:31]MH_I2C_Read... [07:59:31]Read from MH i2c: D1 01 00 [07:59:31]MH_I2C_Read... [07:59:31]Read from MH i2c: D1 01 00 D0 16 00 B7 [07:59:31]Write to MH i2c: 01 00 00 D1 16 E7 [07:59:31]Write i2c OK [07:59:31]MH_I2C_Read... [07:59:31]OFD Sender: No OFD packet to send [07:59:32]*** Cut start [07:59:32]*** Partial cut [07:59:32]*** CUTSNS_PIN = 1 [07:59:33]*** CUTSNS_PIN = 0 [07:59:33]*** Brake cut motor [07:59:33]Read from MH i2c: 01 [07:59:33]MH_I2C_Read... [07:59:33]*** Stop cut motor [07:59:33]*** Cut end [07:59:33]Read from MH i2c: 01 07 00 [07:59:33]MH_I2C_Read... [07:59:33]Read from MH i2c: 01 07 00 D1 16 00 00 00 00 00 FF 0F FC [07:59:33]process_action close_receipt done [07:59:33]requested_data is exist [07:59:33]produce_requested_data [07:59:33]requested_item fm.sn is exist - process it [07:59:33]wFMCommunicate request_size=4 [07:59:33]MH_SAM_APDU [07:59:33]CAPDU: 80 11 00 00 [07:59:33]Write to MH i2c: E2 08 00 D2 16 80 11 00 00 00 00 00 00 62 [07:59:33]Write i2c OK [07:59:33]MH_I2C_Read... [07:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:33]Read from MH i2c: E2 [07:59:33]MH_I2C_Read... [07:59:33]Read from MH i2c: E2 17 00 [07:59:33]MH_I2C_Read... [07:59:33]Read from MH i2c: E2 17 00 D2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B9 [07:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:59:33]wFMCommunicate OK [07:59:33]requested_item fd.num is exist - process it [07:59:33]SAM_PROTO_GetFieldsCounters [07:59:33]wFMCommunicate request_size=4 [07:59:33]MH_SAM_APDU [07:59:33]CAPDU: 80 13 00 00 [07:59:33]Write to MH i2c: E2 08 00 D3 16 80 13 00 00 00 00 00 00 65 [07:59:33]Write i2c OK [07:59:33]MH_I2C_Read... [07:59:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:33]Read from MH i2c: E2 [07:59:33]MH_I2C_Read... [07:59:33]Read from MH i2c: E2 62 00 [07:59:33]MH_I2C_Read... [07:59:33]Read from MH i2c: E2 62 00 D3 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 3F [07:59: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 E2 01 00 0E 04 04 00 2F 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 [07:59:33]wFMCommunicate OK [07:59:33]SAM_PROTO_GetFieldsCounters done [07:59:33]requested_item shift.num is exist - process it [07:59:33]requested_item shift.opened is exist - process it [07:59:33]req_shift_opened [07:59:33]FM_GetShiftState [07:59:33]SAM_PROTO_GetShiftState [07:59:33]wFMCommunicate request_size=4 [07:59:33]MH_SAM_APDU [07:59:33]CAPDU: 80 13 01 00 [07:59:33]Write to MH i2c: E2 08 00 D4 16 80 13 01 00 00 00 00 00 67 [07:59:33]Write i2c OK [07:59:33]MH_I2C_Read... [07:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:33]Read from MH i2c: E2 [07:59:33]MH_I2C_Read... [07:59:33]Read from MH i2c: E2 0E 00 [07:59:33]MH_I2C_Read... [07:59:33]Read from MH i2c: E2 0E 00 D4 16 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 6E [07:59:33]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:59:33]wFMCommunicate OK [07:59:33]SAM_PROTO_GetShiftState done [07:59:33]FM_GetShiftState done [07:59:33]req_shift_opened done [07:59:33]requested_item shift.open_date is exist - process it [07:59:33]req_shift_open_date [07:59:33]req_shift_open_date done [07:59:33]produce_requested_data done [07:59:33]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123504,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [07:59:33]process_action_free close_receipt [07:59:33]json_value_free [07:59:33]json_value_free done [07:59:33]process_json_proto returns [07:59:33]Send response to host [07:59:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123504,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [07:59:33]free response buf [07:59:33]execute_script done [07:59:33]execute_script returns [07:59:33]free content buf [07:59:33]Sock 9.Close socket [07:59:33]Sock 9.Thread stoped [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:45]accept exits with 8 [07:59:45]New connection [07:59:45]New thread 3066862948 created [07:59:45]Thread 3066719588 joined [07:59:45]Waiting for new connection... [07:59:45] Sock 8.Parse request [07:59:45]Sock 8.Check first char [07:59:45]Sock 8.First char is OK [07:59:45]request: POST /json_proto HTTP/1.0 [07:59:45]Method: POST [07:59:45]URL: /json_proto [07:59:45]Method is POST - this is cgi request [07:59:45]url: /json_proto [07:59:45]query_string will be loaded in cgi processing [07:59:45]execute_cgi json_proto POST (null) [07:59:45]execute_cgi path=json_proto method=POST [07:59:45]POST find Content-Length [07:59:45]Host: 172.17.37.4:8080 [07:59:45]Content-Length: 677 [07:59:45]Content-Type: application/json [07:59:45] [07:59:45]POST finish read [07:59:45]Found Content-Length = 677 [07:59:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718338", "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" ] } } [07:59:45]execute_script... [07:59: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)718338", "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" ] } } [07:59:45]POST & json_proto [07:59:45]process_json_proto [07:59:45]json parsed OK: [07:59:45]protocol is kg_v1.0 [07:59:45]action value=close_receipt [07:59:45]process_action close_receipt [07:59:45]cmd_close_receipt [07:59:45]MH_GetDate [07:59:45]Write to MH i2c: F0 00 00 D5 16 DA [07:59:45]Write i2c OK [07:59:45]MH_I2C_Read... [07:59:45]Read from MH i2c: F0 [07:59:45]MH_I2C_Read... [07:59:45]Read from MH i2c: F0 09 00 [07:59:45]MH_I2C_Read... [07:59:45]Read from MH i2c: F0 09 00 D5 16 00 F5 22 48 67 1D 3A 47 67 AE [07:59:45]GetLastDocTimeStamp 1732780773 [07:59:45]current date 1732780789 [07:59:45]FM_GetShiftState [07:59:45]SAM_PROTO_GetShiftState [07:59:45]wFMCommunicate request_size=4 [07:59:45]MH_SAM_APDU [07:59:45]CAPDU: 80 13 01 00 [07:59:45]Write to MH i2c: E2 08 00 D6 16 80 13 01 00 00 00 00 00 69 [07:59:45]Write i2c OK [07:59:45]MH_I2C_Read... [07:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:45]Read from MH i2c: E2 [07:59:45]MH_I2C_Read... [07:59:45]Read from MH i2c: E2 0E 00 [07:59:45]MH_I2C_Read... [07:59:45]Read from MH i2c: E2 0E 00 D6 16 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 70 [07:59:45]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:59:45]wFMCommunicate OK [07:59:45]SAM_PROTO_GetShiftState done [07:59:45]FM_GetShiftState done [07:59:45]opened in 1732752282 [07:59:45]opened+sec_in_day 1732838682 [07:59:45]quantity*price = 50010 [07:59:45]sum+1 = 50012 [07:59:45]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 СНО: Общий режим Чек 17 28.11.2024 07:59 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123505 ФПД: 139871466222752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T075949&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123505&fm=139871466222752&tin=02508201610067®Number=0000000000092681&sum=50000 [07:59:46]StoreToDocumentArchive [07:59:46]shift 559 fd 123505 [07:59:46]save to /storage/0559/doc_00123505 [07:59:46]save last doc name /storage/0559/doc_00123505 to /storage/kkm_last_doc_name [07:59:46]save OK [07:59:46]Clear old archive folders... [07:59:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:59:46]tlvbuf is 014F0930 [07:59:46]SAM_PROTO_ClearQueue [07:59:46]wFMCommunicate request_size=4 [07:59:46]MH_SAM_APDU [07:59:46]CAPDU: 80 09 00 00 [07:59:46]Write to MH i2c: E2 08 00 E3 16 80 09 00 00 00 00 00 00 6B [07:59:46]Write i2c OK [07:59:46]MH_I2C_Read... [07:59:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:47]OFD Sender: No OFD packet to send [07:59:47]Read from MH i2c: E2 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 03 00 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 03 00 E3 16 00 90 00 6D [07:59:47]RAPDU: 90 00 [07:59:47]wFMCommunicate OK [07:59:47]SAM_PROTO_ClearQueue done [07:59:47]KKMCreateOFDPacket [07:59:47]OFDProtocolAddRootSTLVToBuf [07:59:47]FM_MakeSignedData [07:59:47]FM_MakeSignedData [07:59:47]SAM_PROTO_SignData [07:59:47]wFMCommunicate request_size=4 [07:59:47]MH_SAM_APDU [07:59:47]CAPDU: 80 0D 01 02 [07:59:47]Write to MH i2c: E2 08 00 E4 16 80 0D 01 02 00 00 00 00 73 [07:59:47]Write i2c OK [07:59:47]MH_I2C_Read... [07:59:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:47]Read from MH i2c: E2 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 03 00 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 03 00 E4 16 00 90 00 6E [07:59:47]RAPDU: 90 00 [07:59:47]wFMCommunicate OK [07:59:47]wFMCommunicate request_size=255 [07:59:47]MH_SAM_APDU [07:59:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 11 00 00 00 F4 03 04 00 F5 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 7F [07:59:47]Write to MH i2c: E2 02 01 E5 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 11 00 00 00 F4 03 04 00 F5 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 7F 00 00 B5 [07:59:47]Write i2c OK [07:59:47]MH_I2C_Read... [07:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:47]Read from MH i2c: E2 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 03 00 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 03 00 E5 16 00 90 00 6F [07:59:47]RAPDU: 90 00 [07:59:47]wFMCommunicate OK [07:59:47]wFMCommunicate request_size=10 [07:59:47]MH_SAM_APDU [07:59:47]CAPDU: 80 0D 02 02 05 36 5D 0E F4 A0 [07:59:47]Write to MH i2c: E2 0D 00 E6 16 80 0D 02 02 05 00 36 5D 0E F4 A0 00 00 B5 [07:59:47]Write i2c OK [07:59:47]MH_I2C_Read... [07:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:47]Read from MH i2c: E2 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 03 00 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 03 00 E6 16 00 90 00 70 [07:59:47]RAPDU: 90 00 [07:59:47]wFMCommunicate OK [07:59:47]wFMCommunicate request_size=4 [07:59:47]MH_SAM_APDU [07:59:47]CAPDU: 80 0D 03 02 [07:59:47]Write to MH i2c: E2 08 00 E7 16 80 0D 03 02 00 00 00 00 78 [07:59:47]Write i2c OK [07:59:47]MH_I2C_Read... [07:59:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:47]Read from MH i2c: E2 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 0B 00 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 0B 00 E7 16 00 15 91 30 4B 8D 3C 61 4B 90 00 0F [07:59:47]RAPDU: 15 91 30 4B 8D 3C 61 4B 90 00 [07:59:47]wFMCommunicate OK [07:59:47]SAM_PROTO_SignData done [07:59:47]FM_MakeSignedData done [07:59:47]CreateOFDProtocolMessage [07:59:47]wFMCommunicate request_size=4 [07:59:47]MH_SAM_APDU [07:59:47]CAPDU: 80 11 00 00 [07:59:47]Write to MH i2c: E2 08 00 E8 16 80 11 00 00 00 00 00 00 78 [07:59:47]Write i2c OK [07:59:47]MH_I2C_Read... [07:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:47]Read from MH i2c: E2 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 17 00 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 17 00 E8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CF [07:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:59:47]wFMCommunicate OK [07:59:47]CreateOFDProtocolMessage done [07:59:47]OFDSenderStorePacket 123505 [07:59:47]StoreOFDPacket docnum=123505 [07:59: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 9A E7 07 01 6C 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 11 00 00 00 F4 03 04 00 F5 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 7F 36 5D 0E F4 A0 15 91 30 4B 8D 3C 61 4B [07:59:47]CheckFolder [07:59:47]dirname=/storage/ofd_packets [07:59:47]CheckFolder done [07:59:47]ProducePacketName [07:59:47]name=ofd_packets/00123505 [07:59:47]NVStorageSaveData ofd_packets/00123505 [07:59:47]File name is /storage/ofd_packets/00123505 [07:59:47]Write 301 bytes [07:59:47]NVStorageSaveData done [07:59:47]OFDSenderStorePacket done [07:59:47]KKMCreateOFDPacket done [07:59:47]NVStorageSaveData kkm_last_timestamp [07:59:47]File name is /storage/kkm_last_timestamp [07:59:47]Write 4 bytes [07:59:47]NVStorageSaveData done [07:59:47]ExternCall_PrintAddStr [07:59:47]wPrintStart [07:59:47]Write to MH i2c: 01 00 00 E9 16 FF [07:59:47]Write i2c OK [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: 01 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: 01 07 00 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: 01 07 00 E9 16 00 00 00 00 00 FF 0F 14 [07:59:47]RasterBufferAndPrint [07:59:47]line Счет N : (1)718338 [07:59:47]line ИНН: 02508201610067 [07:59:47]line Контрольно-Кассовый Чек [07:59:47]line ПРОДАЖА [07:59:47]line ТРК (МРК, ГНК) : 12 [07:59:47]line Товар: 2710124130 [07:59:47]line Аи-92-К-4 [07:59:47]line 7.420 * 67.40 [07:59:47]line = 500.11 [07:59:47]line НДС 12% НСП 1% [07:59:47]line > о реализуемом товаре [07:59:47]line ОКРУГЛЕНИЕ: -0.11 [07:59:47]line ИТОГО: 500.00 [07:59:47]line Внесено: 500.00 [07:59:47]line СДАЧА: 0.00 [07:59:47]line НСП 1% : 4.43 [07:59:47]line НДС 12% : 53.11 [07:59:47]line Наличными: 500.00 [07:59:47]line Безнал.: 0.00 [07:59:47]line Место: АЗС № 64 "Партнер Нефть" [07:59:47]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [07:59:47]line СНО: Общий режим [07:59:47]line Чек 17 28.11.2024 07:59 [07:59:47]line Смена: 559 ФФД: 1.0 [07:59:47]line ЗНМ: 0300000033 [07:59:47]line РНМ: 0000000000092681 [07:59:47]line Версия ККМ: 001 [07:59:47]line ФМ: 0000000000874881 [07:59:47]line ФД: 123505 [07:59:47]line ФПД: 139871466222752 [07:59:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T075949&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123505&fm=139871466222752&tin=02508201610067®Number=0000000000092681&sum=50000 [07:59:47]OFD Sender: Processing packet 123505 [packets to send 7, broken 6] [07:59:47]ProducePacketName [07:59:47]name=ofd_packets/00123505 [07:59:47]OFD Sender: To server: pG, [07:59:47]CommunicateWithHost lk.salyk.kg:30040 [07:59:47]ConnectInit lk.salyk.kg [07:59:47]written 0, free lines is 4095 [07:59:47]Connected sock=10 [07:59: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 0F 01 00 00 9A E7 07 01 6C 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 11 00 00 00 F4 03 04 00 F5 22 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 7F 36 5D 0E F4 A0 15 91 30 4B 8D 3C 61 4B [07:59: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 3F 99 47 00 FB 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 71 E2 01 00 F4 03 04 00 BC CE 47 67 B6 04 01 00 00 EC B7 95 0E ED 3D BC C6 [07:59:48]CommunicateWithHost err = 0 [07:59:48]CheckOFDResponse [07:59:48]1017 (14) - 77093643461234 [07:59:48]1041 (16) - 0000000000874881 [07:59:48]1040 (4) - 123505 [07:59:48]1012 (4) - 28.11.2024 02:00 [07:59:48]1206 (1) - 0 [07:59:48]OFD Sender: Remove packet 123505 [07:59:48]ProducePacketName [07:59:48]name=ofd_packets/00123505 [07:59:48]NVStorageDeleteData [07:59:48]Write to MH i2c: 01 00 00 14 17 2B [07:59:48]Write i2c OK [07:59:48]MH_I2C_Read... [07:59:48]Read from MH i2c: 01 [07:59:48]MH_I2C_Read... [07:59:48]Read from MH i2c: 01 07 00 [07:59:48]MH_I2C_Read... [07:59:48]Read from MH i2c: 01 07 00 14 17 00 00 00 00 00 4B 0C 89 [07:59:48]RasterBufferAndPrint [07:59:48]line [07:59:48]line [07:59:48]line [07:59:48]line [07:59:48]line [07:59:48]written 0, free lines is 3151 [07:59:48]MH_Cut [07:59:48]Write to MH i2c: D1 01 00 1B 17 01 04 [07:59:48]Write i2c OK [07:59:48]MH_I2C_Read... [07:59:48]Read from MH i2c: D1 [07:59:48]MH_I2C_Read... [07:59:48]Read from MH i2c: D1 01 00 [07:59:48]MH_I2C_Read... [07:59:48]Read from MH i2c: D1 01 00 1B 17 00 03 [07:59:48]Write to MH i2c: 01 00 00 1C 17 33 [07:59:48]Write i2c OK [07:59:48]MH_I2C_Read... [07:59:48]OFD Sender: No OFD packet to send [07:59:49]*** Cut start [07:59:49]*** Partial cut [07:59:49]*** CUTSNS_PIN = 1 [07:59:49]*** CUTSNS_PIN = 0 [07:59:49]*** Brake cut motor [07:59:50]Read from MH i2c: 01 [07:59:50]MH_I2C_Read... [07:59:50]*** Stop cut motor [07:59:50]*** Cut end [07:59:50]Read from MH i2c: 01 07 00 [07:59:50]MH_I2C_Read... [07:59:50]Read from MH i2c: 01 07 00 1C 17 00 00 00 00 00 FF 0F 48 [07:59:50]process_action close_receipt done [07:59:50]requested_data is exist [07:59:50]produce_requested_data [07:59:50]requested_item fm.sn is exist - process it [07:59:50]wFMCommunicate request_size=4 [07:59:50]MH_SAM_APDU [07:59:50]CAPDU: 80 11 00 00 [07:59:50]Write to MH i2c: E2 08 00 1D 17 80 11 00 00 00 00 00 00 AE [07:59:50]Write i2c OK [07:59:50]MH_I2C_Read... [07:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:50]Read from MH i2c: E2 [07:59:50]MH_I2C_Read... [07:59:50]Read from MH i2c: E2 17 00 [07:59:50]MH_I2C_Read... [07:59:50]Read from MH i2c: E2 17 00 1D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 05 [07:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [07:59:50]wFMCommunicate OK [07:59:50]requested_item fd.num is exist - process it [07:59:50]SAM_PROTO_GetFieldsCounters [07:59:50]wFMCommunicate request_size=4 [07:59:50]MH_SAM_APDU [07:59:50]CAPDU: 80 13 00 00 [07:59:50]Write to MH i2c: E2 08 00 1E 17 80 13 00 00 00 00 00 00 B1 [07:59:50]Write i2c OK [07:59:50]MH_I2C_Read... [07:59:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:50]Read from MH i2c: E2 [07:59:50]MH_I2C_Read... [07:59:50]Read from MH i2c: E2 62 00 [07:59:50]MH_I2C_Read... [07:59:50]Read from MH i2c: E2 62 00 1E 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 8F [07:59: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 71 E2 01 00 0E 04 04 00 2F 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 [07:59:50]wFMCommunicate OK [07:59:50]SAM_PROTO_GetFieldsCounters done [07:59:50]requested_item shift.num is exist - process it [07:59:50]requested_item shift.opened is exist - process it [07:59:50]req_shift_opened [07:59:50]FM_GetShiftState [07:59:50]SAM_PROTO_GetShiftState [07:59:50]wFMCommunicate request_size=4 [07:59:50]MH_SAM_APDU [07:59:50]CAPDU: 80 13 01 00 [07:59:50]Write to MH i2c: E2 08 00 1F 17 80 13 01 00 00 00 00 00 B3 [07:59:50]Write i2c OK [07:59:50]MH_I2C_Read... [07:59:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:50]Read from MH i2c: E2 [07:59:50]MH_I2C_Read... [07:59:50]Read from MH i2c: E2 0E 00 [07:59:50]MH_I2C_Read... [07:59:50]Read from MH i2c: E2 0E 00 1F 17 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 BA [07:59:50]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [07:59:50]wFMCommunicate OK [07:59:50]SAM_PROTO_GetShiftState done [07:59:50]FM_GetShiftState done [07:59:50]req_shift_opened done [07:59:50]requested_item shift.open_date is exist - process it [07:59:50]req_shift_open_date [07:59:50]req_shift_open_date done [07:59:50]produce_requested_data done [07:59:50]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123505,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [07:59:50]process_action_free close_receipt [07:59:50]json_value_free [07:59:50]json_value_free done [07:59:50]process_json_proto returns [07:59:50]Send response to host [07:59:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123505,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [07:59:50]free response buf [07:59:50]execute_script done [07:59:50]execute_script returns [07:59:50]free content buf [07:59:50]Sock 8.Close socket [07:59:50]Sock 8.Thread stoped [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:53]OFD Sender: No OFD packet to send [08:00:58]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:18]OFD Sender: No OFD packet to send [08:02:23]OFD Sender: No OFD packet to send [08:02:28]OFD Sender: No OFD packet to send [08:02:33]OFD Sender: No OFD packet to send [08:02:38]OFD Sender: No OFD packet to send [08:02:43]OFD Sender: No OFD packet to send [08:02:48]OFD Sender: No OFD packet to send [08:02:53]OFD Sender: No OFD packet to send [08:02:58]OFD Sender: No OFD packet to send [08:03:03]OFD Sender: No OFD packet to send [08:03:08]OFD Sender: No OFD packet to send [08:03:13]OFD Sender: No OFD packet to send [08:03:16]accept exits with 9 [08:03:16]New connection [08:03:16]New thread 3066719588 created [08:03:16]Thread 3066862948 joined [08:03:16]Waiting for new connection... [08:03:16] Sock 9.Parse request [08:03:16]Sock 9.Check first char [08:03:16]Sock 9.First char is OK [08:03:16]request: POST /json_proto HTTP/1.0 [08:03:16]Method: POST [08:03:16]URL: /json_proto [08:03:16]Method is POST - this is cgi request [08:03:16]url: /json_proto [08:03:16]query_string will be loaded in cgi processing [08:03:16]execute_cgi json_proto POST (null) [08:03:16]execute_cgi path=json_proto method=POST [08:03:16]POST find Content-Length [08:03:16]Host: 172.17.37.4:8080 [08:03:16]Content-Length: 819 [08:03:16]Content-Type: application/json [08:03:16] [08:03:16]POST finish read [08:03:16]Found Content-Length = 819 [08:03:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718339", "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" ] } } [08:03:16]execute_script... [08:03: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)718339", "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" ] } } [08:03:16]POST & json_proto [08:03:16]process_json_proto [08:03:16]json parsed OK: [08:03:16]protocol is kg_v1.0 [08:03:16]action value=close_receipt [08:03:16]process_action close_receipt [08:03:16]cmd_close_receipt [08:03:16]MH_GetDate [08:03:16]Write to MH i2c: F0 00 00 20 17 26 [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: F0 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: F0 09 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: F0 09 00 20 17 00 C8 23 48 67 1D 3A 47 67 CE [08:03:16]GetLastDocTimeStamp 1732780789 [08:03:16]current date 1732781000 [08:03:16]FM_GetShiftState [08:03:16]SAM_PROTO_GetShiftState [08:03:16]wFMCommunicate request_size=4 [08:03:16]MH_SAM_APDU [08:03:16]CAPDU: 80 13 01 00 [08:03:16]Write to MH i2c: E2 08 00 21 17 80 13 01 00 00 00 00 00 B5 [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:16]Read from MH i2c: E2 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 0E 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 0E 00 21 17 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 BC [08:03:16]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:03:16]wFMCommunicate OK [08:03:16]SAM_PROTO_GetShiftState done [08:03:16]FM_GetShiftState done [08:03:16]opened in 1732752282 [08:03:16]opened+sec_in_day 1732838682 [08:03:16]quantity*price = 100021 [08:03:16]sum+1 = 100023 [08:03:16]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 СНО: Общий режим Чек 18 28.11.2024 08:03 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123506 ФПД: 49081941519759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T080320&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123506&fm=49081941519759&tin=02508201610067®Number=0000000000092681&sum=100022 [08:03:17]StoreToDocumentArchive [08:03:17]shift 559 fd 123506 [08:03:17]save to /storage/0559/doc_00123506 [08:03:17]save last doc name /storage/0559/doc_00123506 to /storage/kkm_last_doc_name [08:03:17]save OK [08:03:17]Clear old archive folders... [08:03:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:03:17]tlvbuf is B6E92090 [08:03:17]SAM_PROTO_ClearQueue [08:03:17]wFMCommunicate request_size=4 [08:03:17]MH_SAM_APDU [08:03:17]CAPDU: 80 09 00 00 [08:03:17]Write to MH i2c: E2 08 00 2E 17 80 09 00 00 00 00 00 00 B7 [08:03:18]Write i2c OK [08:03:18]MH_I2C_Read... [08:03:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:18]Read from MH i2c: E2 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 03 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 03 00 2E 17 00 90 00 B9 [08:03:18]RAPDU: 90 00 [08:03:18]wFMCommunicate OK [08:03:18]SAM_PROTO_ClearQueue done [08:03:18]KKMCreateOFDPacket [08:03:18]OFDProtocolAddRootSTLVToBuf [08:03:18]FM_MakeSignedData [08:03:18]FM_MakeSignedData [08:03:18]SAM_PROTO_SignData [08:03:18]wFMCommunicate request_size=4 [08:03:18]MH_SAM_APDU [08:03:18]CAPDU: 80 0D 01 02 [08:03:18]Write to MH i2c: E2 08 00 2F 17 80 0D 01 02 00 00 00 00 BF [08:03:18]Write i2c OK [08:03:18]MH_I2C_Read... [08:03:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:18]Read from MH i2c: E2 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 03 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 03 00 2F 17 00 90 00 BA [08:03:18]RAPDU: 90 00 [08:03:18]wFMCommunicate OK [08:03:18]wFMCommunicate request_size=255 [08:03:18]MH_SAM_APDU [08:03: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 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 12 00 00 00 F4 03 04 00 C8 23 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2C [08:03:18]Write to MH i2c: E2 02 01 30 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 12 00 00 00 F4 03 04 00 C8 23 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2C 00 00 A0 [08:03:18]Write i2c OK [08:03:18]MH_I2C_Read... [08:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:18]Read from MH i2c: E2 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 03 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 03 00 30 17 00 90 00 BB [08:03:18]RAPDU: 90 00 [08:03:18]wFMCommunicate OK [08:03:18]wFMCommunicate request_size=10 [08:03:18]MH_SAM_APDU [08:03:18]CAPDU: 80 0D 02 02 05 A3 C7 B0 6D 8F [08:03:18]Write to MH i2c: E2 0D 00 31 17 80 0D 02 02 05 00 A3 C7 B0 6D 8F 00 00 E2 [08:03:18]Write i2c OK [08:03:18]MH_I2C_Read... [08:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:18]Read from MH i2c: E2 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 03 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 03 00 31 17 00 90 00 BC [08:03:18]RAPDU: 90 00 [08:03:18]wFMCommunicate OK [08:03:18]wFMCommunicate request_size=4 [08:03:18]MH_SAM_APDU [08:03:18]CAPDU: 80 0D 03 02 [08:03:18]Write to MH i2c: E2 08 00 32 17 80 0D 03 02 00 00 00 00 C4 [08:03:18]Write i2c OK [08:03:18]MH_I2C_Read... [08:03:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:18]Read from MH i2c: E2 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 0B 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 0B 00 32 17 00 45 D3 E6 80 26 36 14 D4 90 00 87 [08:03:18]RAPDU: 45 D3 E6 80 26 36 14 D4 90 00 [08:03:18]wFMCommunicate OK [08:03:18]SAM_PROTO_SignData done [08:03:18]FM_MakeSignedData done [08:03:18]CreateOFDProtocolMessage [08:03:18]wFMCommunicate request_size=4 [08:03:18]MH_SAM_APDU [08:03:18]CAPDU: 80 11 00 00 [08:03:18]Write to MH i2c: E2 08 00 33 17 80 11 00 00 00 00 00 00 C4 [08:03:18]Write i2c OK [08:03:18]MH_I2C_Read... [08:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:18]Read from MH i2c: E2 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 17 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 17 00 33 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1B [08:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:03:18]wFMCommunicate OK [08:03:18]CreateOFDProtocolMessage done [08:03:18]OFDSenderStorePacket 123506 [08:03:18]StoreOFDPacket docnum=123506 [08:03: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 76 A4 07 01 49 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 12 00 00 00 F4 03 04 00 C8 23 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2C A3 C7 B0 6D 8F 45 D3 E6 80 26 36 14 D4 [08:03:18]CheckFolder [08:03:18]dirname=/storage/ofd_packets [08:03:18]CheckFolder done [08:03:18]ProducePacketName [08:03:18]name=ofd_packets/00123506 [08:03:18]NVStorageSaveData ofd_packets/00123506 [08:03:18]File name is /storage/ofd_packets/00123506 [08:03:18]Write 301 bytes [08:03:18]NVStorageSaveData done [08:03:18]OFDSenderStorePacket done [08:03:18]KKMCreateOFDPacket done [08:03:18]NVStorageSaveData kkm_last_timestamp [08:03:18]File name is /storage/kkm_last_timestamp [08:03:18]Write 4 bytes [08:03:18]NVStorageSaveData done [08:03:18]ExternCall_PrintAddStr [08:03:18]wPrintStart [08:03:18]Write to MH i2c: 01 00 00 34 17 4B [08:03:18]Write i2c OK [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: 01 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: 01 07 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: 01 07 00 34 17 00 00 00 00 00 FF 0F 60 [08:03:18]RasterBufferAndPrint [08:03:18]line Счет N : (1)718339 [08:03:18]line ИНН: 02508201610067 [08:03:18]line Контрольно-Кассовый Чек [08:03:18]line ПРОДАЖА [08:03:18]line ТРК (МРК, ГНК) : 32 [08:03:18]line Товар: 2710124130 [08:03:18]line Аи-92-К-4 [08:03:18]line 14.840 * 67.40 [08:03:18]line = 1000.22 [08:03:18]line НДС 12% НСП 1% [08:03:18]line > о реализуемом товаре [08:03:18]line ИТОГО: 1000.22 [08:03:18]line НСП 1% : 8.85 [08:03:18]line НДС 12% : 106.22 [08:03:18]line Наличными: 0.00 [08:03:18]line Безнал.: 1000.22 [08:03:18]line Место: АЗС № 64 "Партнер Нефть" [08:03:18]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [08:03:18]line СНО: Общий режим [08:03:18]line Чек 18 28.11.2024 08:03 [08:03:18]line Смена: 559 ФФД: 1.0 [08:03:18]line ЗНМ: 0300000033 [08:03:18]line РНМ: 0000000000092681 [08:03:18]line Версия ККМ: 001 [08:03:18]line Платежная система: Бакай Банк [08:03:18]line ФМ: 0000000000874881 [08:03:18]line ФД: 123506 [08:03:18]line ФПД: 49081941519759 [08:03:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T080320&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123506&fm=49081941519759&tin=02508201610067®Number=0000000000092681&sum=100022 [08:03:18]written 0, free lines is 4095 [08:03:18]OFD Sender: Processing packet 123506 [packets to send 7, broken 6] [08:03:18]ProducePacketName [08:03:18]name=ofd_packets/00123506 [08:03:18]OFD Sender: To server: pG, [08:03:18]CommunicateWithHost lk.salyk.kg:30040 [08:03:18]ConnectInit lk.salyk.kg [08:03:18]Connected sock=10 [08:03: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 76 A4 07 01 49 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 12 00 00 00 F4 03 04 00 C8 23 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2C A3 C7 B0 6D 8F 45 D3 E6 80 26 36 14 D4 [08:03: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 16 67 47 00 2A 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 72 E2 01 00 F4 03 04 00 8F CF 47 67 B6 04 01 00 00 6A 77 11 05 6A C4 30 04 [08:03:19]CommunicateWithHost err = 0 [08:03:19]CheckOFDResponse [08:03:19]1017 (14) - 77093643461234 [08:03:19]1041 (16) - 0000000000874881 [08:03:19]1040 (4) - 123506 [08:03:19]1012 (4) - 28.11.2024 02:03 [08:03:19]1206 (1) - 0 [08:03:19]OFD Sender: Remove packet 123506 [08:03:19]ProducePacketName [08:03:19]name=ofd_packets/00123506 [08:03:19]NVStorageDeleteData [08:03:19]Write to MH i2c: 01 00 00 5E 17 75 [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: 01 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: 01 07 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: 01 07 00 5E 17 00 00 00 00 00 56 0C DE [08:03:19]RasterBufferAndPrint [08:03:19]line [08:03:19]line [08:03:19]line [08:03:19]line [08:03:19]line [08:03:19]written 0, free lines is 3162 [08:03:19]MH_Cut [08:03:19]Write to MH i2c: D1 01 00 65 17 01 4E [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: D1 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: D1 01 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: D1 01 00 65 17 00 4D [08:03:19]Write to MH i2c: 01 00 00 66 17 7D [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]OFD Sender: No OFD packet to send [08:03:20]*** Cut start [08:03:20]*** Partial cut [08:03:20]*** CUTSNS_PIN = 1 [08:03:20]*** CUTSNS_PIN = 0 [08:03:20]*** Brake cut motor [08:03:21]Read from MH i2c: 01 [08:03:21]MH_I2C_Read... [08:03:21]*** Stop cut motor [08:03:21]*** Cut end [08:03:21]Read from MH i2c: 01 07 00 [08:03:21]MH_I2C_Read... [08:03:21]Read from MH i2c: 01 07 00 66 17 00 00 00 00 00 FF 0F 92 [08:03:21]process_action close_receipt done [08:03:21]requested_data is exist [08:03:21]produce_requested_data [08:03:21]requested_item fm.sn is exist - process it [08:03:21]wFMCommunicate request_size=4 [08:03:21]MH_SAM_APDU [08:03:21]CAPDU: 80 11 00 00 [08:03:21]Write to MH i2c: E2 08 00 67 17 80 11 00 00 00 00 00 00 F8 [08:03:21]Write i2c OK [08:03:21]MH_I2C_Read... [08:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:21]Read from MH i2c: E2 [08:03:21]MH_I2C_Read... [08:03:21]Read from MH i2c: E2 17 00 [08:03:21]MH_I2C_Read... [08:03:21]Read from MH i2c: E2 17 00 67 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 4F [08:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:03:21]wFMCommunicate OK [08:03:21]requested_item fd.num is exist - process it [08:03:21]SAM_PROTO_GetFieldsCounters [08:03:21]wFMCommunicate request_size=4 [08:03:21]MH_SAM_APDU [08:03:21]CAPDU: 80 13 00 00 [08:03:21]Write to MH i2c: E2 08 00 68 17 80 13 00 00 00 00 00 00 FB [08:03:21]Write i2c OK [08:03:21]MH_I2C_Read... [08:03:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:21]Read from MH i2c: E2 [08:03:21]MH_I2C_Read... [08:03:21]Read from MH i2c: E2 62 00 [08:03:21]MH_I2C_Read... [08:03:21]Read from MH i2c: E2 62 00 68 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 DD [08:03: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 72 E2 01 00 0E 04 04 00 2F 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 [08:03:21]wFMCommunicate OK [08:03:21]SAM_PROTO_GetFieldsCounters done [08:03:21]requested_item shift.num is exist - process it [08:03:21]requested_item shift.opened is exist - process it [08:03:21]req_shift_opened [08:03:21]FM_GetShiftState [08:03:21]SAM_PROTO_GetShiftState [08:03:21]wFMCommunicate request_size=4 [08:03:21]MH_SAM_APDU [08:03:21]CAPDU: 80 13 01 00 [08:03:21]Write to MH i2c: E2 08 00 69 17 80 13 01 00 00 00 00 00 FD [08:03:21]Write i2c OK [08:03:21]MH_I2C_Read... [08:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:21]Read from MH i2c: E2 [08:03:21]MH_I2C_Read... [08:03:21]Read from MH i2c: E2 0E 00 [08:03:21]MH_I2C_Read... [08:03:21]Read from MH i2c: E2 0E 00 69 17 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 04 [08:03:21]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:03:21]wFMCommunicate OK [08:03:21]SAM_PROTO_GetShiftState done [08:03:21]FM_GetShiftState done [08:03:21]req_shift_opened done [08:03:21]requested_item shift.open_date is exist - process it [08:03:21]req_shift_open_date [08:03:21]req_shift_open_date done [08:03:21]produce_requested_data done [08:03:21]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123506,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [08:03:21]process_action_free close_receipt [08:03:21]json_value_free [08:03:21]json_value_free done [08:03:21]process_json_proto returns [08:03:21]Send response to host [08:03:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123506,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [08:03:21]free response buf [08:03:21]execute_script done [08:03:21]execute_script returns [08:03:21]free content buf [08:03:21]Sock 9.Close socket [08:03:21]Sock 9.Thread stoped [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:40]accept exits with 8 [08:03:40]New connection [08:03:40]New thread 3066862948 created [08:03:40]Thread 3066719588 joined [08:03:40]Waiting for new connection... [08:03:40] Sock 8.Parse request [08:03:40]Sock 8.Check first char [08:03:40]Sock 8.First char is OK [08:03:40]request: POST /json_proto HTTP/1.0 [08:03:40]Method: POST [08:03:40]URL: /json_proto [08:03:40]Method is POST - this is cgi request [08:03:40]url: /json_proto [08:03:40]query_string will be loaded in cgi processing [08:03:40]execute_cgi json_proto POST (null) [08:03:40]execute_cgi path=json_proto method=POST [08:03:40]POST find Content-Length [08:03:40]Host: 172.17.37.4:8080 [08:03:40]Content-Length: 823 [08:03:40]Content-Type: application/json [08:03:40] [08:03:40]POST finish read [08:03:40]Found Content-Length = 823 [08:03:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718336", "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 }]} ], "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" : 5000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:40]execute_script... [08:03: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)718336", "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 }]} ], "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" : 5000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:40]POST & json_proto [08:03:40]process_json_proto [08:03:40]json parsed OK: [08:03:40]protocol is kg_v1.0 [08:03:40]action value=close_receipt [08:03:40]process_action close_receipt [08:03:40]cmd_close_receipt [08:03:40]MH_GetDate [08:03:40]Write to MH i2c: F0 00 00 6A 17 70 [08:03:40]Write i2c OK [08:03:40]MH_I2C_Read... [08:03:40]Read from MH i2c: F0 [08:03:40]MH_I2C_Read... [08:03:40]Read from MH i2c: F0 09 00 [08:03:40]MH_I2C_Read... [08:03:40]Read from MH i2c: F0 09 00 6A 17 00 E0 23 48 67 1D 3A 47 67 30 [08:03:40]GetLastDocTimeStamp 1732781000 [08:03:40]current date 1732781024 [08:03:40]FM_GetShiftState [08:03:40]SAM_PROTO_GetShiftState [08:03:40]wFMCommunicate request_size=4 [08:03:40]MH_SAM_APDU [08:03:40]CAPDU: 80 13 01 00 [08:03:40]Write to MH i2c: E2 08 00 6B 17 80 13 01 00 00 00 00 00 FF [08:03:40]Write i2c OK [08:03:40]MH_I2C_Read... [08:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:41]Read from MH i2c: E2 [08:03:41]MH_I2C_Read... [08:03:41]Read from MH i2c: E2 0E 00 [08:03:41]MH_I2C_Read... [08:03:41]Read from MH i2c: E2 0E 00 6B 17 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 06 [08:03:41]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:03:41]wFMCommunicate OK [08:03:41]SAM_PROTO_GetShiftState done [08:03:41]FM_GetShiftState done [08:03:41]opened in 1732752282 [08:03:41]opened+sec_in_day 1732838682 [08:03:41]quantity*price = 500032 [08:03:41]sum+1 = 500033 [08:03:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.32 НСП 1% : 44.25 НДС 12% : 531.01 Наличными: 0.00 Безнал.: 5000.32 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 19 28.11.2024 08:03 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123507 ФПД: 90760192565655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T080344&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123507&fm=90760192565655&tin=02508201610067®Number=0000000000092681&sum=500032 [08:03:42]StoreToDocumentArchive [08:03:42]shift 559 fd 123507 [08:03:42]save to /storage/0559/doc_00123507 [08:03:42]save last doc name /storage/0559/doc_00123507 to /storage/kkm_last_doc_name [08:03:42]save OK [08:03:42]Clear old archive folders... [08:03:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:03:42]tlvbuf is 0149C8F0 [08:03:42]SAM_PROTO_ClearQueue [08:03:42]wFMCommunicate request_size=4 [08:03:42]MH_SAM_APDU [08:03:42]CAPDU: 80 09 00 00 [08:03:42]Write to MH i2c: E2 08 00 78 17 80 09 00 00 00 00 00 00 01 [08:03:42]Write i2c OK [08:03:42]MH_I2C_Read... [08:03:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:42]Read from MH i2c: E2 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 03 00 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 03 00 78 17 00 90 00 03 [08:03:42]RAPDU: 90 00 [08:03:42]wFMCommunicate OK [08:03:42]SAM_PROTO_ClearQueue done [08:03:42]KKMCreateOFDPacket [08:03:42]OFDProtocolAddRootSTLVToBuf [08:03:42]FM_MakeSignedData [08:03:42]FM_MakeSignedData [08:03:42]SAM_PROTO_SignData [08:03:42]wFMCommunicate request_size=4 [08:03:42]MH_SAM_APDU [08:03:42]CAPDU: 80 0D 01 02 [08:03:42]Write to MH i2c: E2 08 00 79 17 80 0D 01 02 00 00 00 00 09 [08:03:42]Write i2c OK [08:03:42]MH_I2C_Read... [08:03:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:42]Read from MH i2c: E2 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 03 00 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 03 00 79 17 00 90 00 04 [08:03:42]RAPDU: 90 00 [08:03:42]wFMCommunicate OK [08:03:42]wFMCommunicate request_size=255 [08:03:42]MH_SAM_APDU [08:03: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 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 40 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 00 00 00 00 00 00 39 04 06 00 40 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E0 23 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 [08:03:42]Write to MH i2c: E2 02 01 7A 17 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 40 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 00 00 00 00 00 00 39 04 06 00 40 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E0 23 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 00 00 19 [08:03:42]Write i2c OK [08:03:42]MH_I2C_Read... [08:03:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:42]Read from MH i2c: E2 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 03 00 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 03 00 7A 17 00 90 00 05 [08:03:42]RAPDU: 90 00 [08:03:42]wFMCommunicate OK [08:03:42]wFMCommunicate request_size=11 [08:03:42]MH_SAM_APDU [08:03:42]CAPDU: 80 0D 02 02 06 52 8B C1 09 A1 97 [08:03:42]Write to MH i2c: E2 0E 00 7B 17 80 0D 02 02 06 00 52 8B C1 09 A1 97 00 00 F7 [08:03:42]Write i2c OK [08:03:42]MH_I2C_Read... [08:03:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:42]Read from MH i2c: E2 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 03 00 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 03 00 7B 17 00 90 00 06 [08:03:42]RAPDU: 90 00 [08:03:42]wFMCommunicate OK [08:03:42]wFMCommunicate request_size=4 [08:03:42]MH_SAM_APDU [08:03:42]CAPDU: 80 0D 03 02 [08:03:42]Write to MH i2c: E2 08 00 7C 17 80 0D 03 02 00 00 00 00 0E [08:03:42]Write i2c OK [08:03:42]MH_I2C_Read... [08:03:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:42]Read from MH i2c: E2 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 0B 00 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 0B 00 7C 17 00 86 C9 A1 97 B2 CA BF B1 90 00 82 [08:03:42]RAPDU: 86 C9 A1 97 B2 CA BF B1 90 00 [08:03:42]wFMCommunicate OK [08:03:42]SAM_PROTO_SignData done [08:03:42]FM_MakeSignedData done [08:03:42]CreateOFDProtocolMessage [08:03:42]wFMCommunicate request_size=4 [08:03:42]MH_SAM_APDU [08:03:42]CAPDU: 80 11 00 00 [08:03:42]Write to MH i2c: E2 08 00 7D 17 80 11 00 00 00 00 00 00 0E [08:03:42]Write i2c OK [08:03:42]MH_I2C_Read... [08:03:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:42]Read from MH i2c: E2 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 17 00 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 17 00 7D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 65 [08:03:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:03:42]wFMCommunicate OK [08:03:42]CreateOFDProtocolMessage done [08:03:42]OFDSenderStorePacket 123507 [08:03:42]StoreOFDPacket docnum=123507 [08:03: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 10 01 00 00 5E 56 08 01 56 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 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 40 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 00 00 00 00 00 00 39 04 06 00 40 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E0 23 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 52 8B C1 09 A1 97 86 C9 A1 97 B2 CA BF B1 [08:03:42]CheckFolder [08:03:42]dirname=/storage/ofd_packets [08:03:42]CheckFolder done [08:03:42]ProducePacketName [08:03:42]name=ofd_packets/00123507 [08:03:42]NVStorageSaveData ofd_packets/00123507 [08:03:42]File name is /storage/ofd_packets/00123507 [08:03:42]Write 302 bytes [08:03:42]NVStorageSaveData done [08:03:42]OFDSenderStorePacket done [08:03:42]KKMCreateOFDPacket done [08:03:42]NVStorageSaveData kkm_last_timestamp [08:03:42]File name is /storage/kkm_last_timestamp [08:03:42]Write 4 bytes [08:03:42]NVStorageSaveData done [08:03:42]ExternCall_PrintAddStr [08:03:42]wPrintStart [08:03:42]Write to MH i2c: 01 00 00 7E 17 95 [08:03:42]Write i2c OK [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: 01 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: 01 07 00 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: 01 07 00 7E 17 00 00 00 00 00 FF 0F AA [08:03:42]RasterBufferAndPrint [08:03:42]line Счет N : (1)718336 [08:03:42]line ИНН: 02508201610067 [08:03:42]line Контрольно-Кассовый Чек [08:03:42]line ПРОДАЖА [08:03:42]line ТРК (МРК, ГНК) : 5 [08:03:42]line Товар: 2710194210 [08:03:42]line ДТ(л)-К-5 [08:03:42]line 66.760 * 74.90 [08:03:42]line = 5000.32 [08:03:42]line НДС 12% НСП 1% [08:03:42]line > о реализуемом товаре [08:03:42]line ИТОГО: 5000.32 [08:03:42]line НСП 1% : 44.25 [08:03:42]line НДС 12% : 531.01 [08:03:42]line Наличными: 0.00 [08:03:42]line Безнал.: 5000.32 [08:03:42]line Место: АЗС № 64 "Партнер Нефть" [08:03:42]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [08:03:42]line СНО: Общий режим [08:03:42]line Чек 19 28.11.2024 08:03 [08:03:42]line Смена: 559 ФФД: 1.0 [08:03:42]line ЗНМ: 0300000033 [08:03:42]line РНМ: 0000000000092681 [08:03:42]line Версия ККМ: 001 [08:03:42]line Платежная система: Бакай Банк [08:03:42]line ФМ: 0000000000874881 [08:03:42]line ФД: 123507 [08:03:42]line ФПД: 90760192565655 [08:03:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T080344&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123507&fm=90760192565655&tin=02508201610067®Number=0000000000092681&sum=500032 [08:03:43]OFD Sender: Processing packet 123507 [packets to send 7, broken 6] [08:03:43]ProducePacketName [08:03:43]name=ofd_packets/00123507 [08:03:43]OFD Sender: To server: pG, [08:03:43]CommunicateWithHost lk.salyk.kg:30040 [08:03:43]ConnectInit lk.salyk.kg [08:03:43]written 0, free lines is 4095 [08:03:43]Connected sock=10 [08:03: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 5E 56 08 01 56 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 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 40 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 00 00 00 00 00 00 39 04 06 00 40 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E0 23 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 52 8B C1 09 A1 97 86 C9 A1 97 B2 CA BF B1 [08:03: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 E6 62 47 00 30 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 73 E2 01 00 F4 03 04 00 A7 CF 47 67 B6 04 01 00 00 D3 C6 0C 07 EF 5D 95 03 [08:03:43]CommunicateWithHost err = 0 [08:03:43]CheckOFDResponse [08:03:43]1017 (14) - 77093643461234 [08:03:43]1041 (16) - 0000000000874881 [08:03:43]1040 (4) - 123507 [08:03:43]1012 (4) - 28.11.2024 02:04 [08:03:43]1206 (1) - 0 [08:03:43]OFD Sender: Remove packet 123507 [08:03:43]ProducePacketName [08:03:43]name=ofd_packets/00123507 [08:03:43]NVStorageDeleteData [08:03:43]Write to MH i2c: 01 00 00 A8 17 BF [08:03:43]Write i2c OK [08:03:43]MH_I2C_Read... [08:03:43]Read from MH i2c: 01 [08:03:43]MH_I2C_Read... [08:03:43]Read from MH i2c: 01 07 00 [08:03:43]MH_I2C_Read... [08:03:43]Read from MH i2c: 01 07 00 A8 17 00 00 00 00 00 62 0C 34 [08:03:43]RasterBufferAndPrint [08:03:43]line [08:03:43]line [08:03:43]line [08:03:43]line [08:03:43]line [08:03:43]written 0, free lines is 3174 [08:03:43]MH_Cut [08:03:43]Write to MH i2c: D1 01 00 AF 17 01 98 [08:03:43]Write i2c OK [08:03:43]MH_I2C_Read... [08:03:43]Read from MH i2c: D1 [08:03:43]MH_I2C_Read... [08:03:43]Read from MH i2c: D1 01 00 [08:03:43]MH_I2C_Read... [08:03:43]Read from MH i2c: D1 01 00 AF 17 00 97 [08:03:43]Write to MH i2c: 01 00 00 B0 17 C7 [08:03:43]Write i2c OK [08:03:43]MH_I2C_Read... [08:03:43]OFD Sender: No OFD packet to send [08:03:44]*** Cut start [08:03:44]*** Partial cut [08:03:44]*** CUTSNS_PIN = 1 [08:03:44]*** CUTSNS_PIN = 0 [08:03:45]*** Brake cut motor [08:03:45]Read from MH i2c: 01 [08:03:45]MH_I2C_Read... [08:03:45]*** Stop cut motor [08:03:45]*** Cut end [08:03:45]Read from MH i2c: 01 07 00 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: 01 07 00 B0 17 00 00 00 00 00 FF 0F DC [08:03:45]process_action close_receipt done [08:03:45]requested_data is exist [08:03:45]produce_requested_data [08:03:45]requested_item fm.sn is exist - process it [08:03:45]wFMCommunicate request_size=4 [08:03:45]MH_SAM_APDU [08:03:45]CAPDU: 80 11 00 00 [08:03:45]Write to MH i2c: E2 08 00 B1 17 80 11 00 00 00 00 00 00 42 [08:03:45]Write i2c OK [08:03:45]MH_I2C_Read... [08:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:45]Read from MH i2c: E2 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: E2 17 00 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: E2 17 00 B1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 99 [08: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 [08:03:45]wFMCommunicate OK [08:03:45]requested_item fd.num is exist - process it [08:03:45]SAM_PROTO_GetFieldsCounters [08:03:45]wFMCommunicate request_size=4 [08:03:45]MH_SAM_APDU [08:03:45]CAPDU: 80 13 00 00 [08:03:45]Write to MH i2c: E2 08 00 B2 17 80 13 00 00 00 00 00 00 45 [08:03:45]Write i2c OK [08:03:45]MH_I2C_Read... [08:03:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:45]Read from MH i2c: E2 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: E2 62 00 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: E2 62 00 B2 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 2B [08: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 73 E2 01 00 0E 04 04 00 2F 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 [08:03:45]wFMCommunicate OK [08:03:45]SAM_PROTO_GetFieldsCounters done [08:03:45]requested_item shift.num is exist - process it [08:03:45]requested_item shift.opened is exist - process it [08:03:45]req_shift_opened [08:03:45]FM_GetShiftState [08:03:45]SAM_PROTO_GetShiftState [08:03:45]wFMCommunicate request_size=4 [08:03:45]MH_SAM_APDU [08:03:45]CAPDU: 80 13 01 00 [08:03:45]Write to MH i2c: E2 08 00 B3 17 80 13 01 00 00 00 00 00 47 [08:03:45]Write i2c OK [08:03:45]MH_I2C_Read... [08:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:45]Read from MH i2c: E2 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: E2 0E 00 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: E2 0E 00 B3 17 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 4E [08:03:45]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:03:45]wFMCommunicate OK [08:03:45]SAM_PROTO_GetShiftState done [08:03:45]FM_GetShiftState done [08:03:45]req_shift_opened done [08:03:45]requested_item shift.open_date is exist - process it [08:03:45]req_shift_open_date [08:03:45]req_shift_open_date done [08:03:45]produce_requested_data done [08:03:45]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123507,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [08:03:45]process_action_free close_receipt [08:03:45]json_value_free [08:03:45]json_value_free done [08:03:45]process_json_proto returns [08:03:45]Send response to host [08:03:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123507,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [08:03:45]free response buf [08:03:45]execute_script done [08:03:45]execute_script returns [08:03:45]free content buf [08:03:45]Sock 8.Close socket [08:03:45]Sock 8.Thread stoped [08:03:48]OFD Sender: No OFD packet to send [08:03:53]OFD Sender: No OFD packet to send [08:03:58]OFD Sender: No OFD packet to send [08:04:03]OFD Sender: No OFD packet to send [08:04:08]OFD Sender: No OFD packet to send [08:04:13]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]accept exits with 9 [08:04:28]New connection [08:04:28]New thread 3066719588 created [08:04:28]Thread 3066862948 joined [08:04:28]Waiting for new connection... [08:04:28] Sock 9.Parse request [08:04:28]Sock 9.Check first char [08:04:28]Sock 9.First char is OK [08:04:28]request: POST /json_proto HTTP/1.0 [08:04:28]Method: POST [08:04:28]URL: /json_proto [08:04:28]Method is POST - this is cgi request [08:04:28]url: /json_proto [08:04:28]query_string will be loaded in cgi processing [08:04:28]execute_cgi json_proto POST (null) [08:04:28]execute_cgi path=json_proto method=POST [08:04:28]POST find Content-Length [08:04:28]Host: 172.17.37.4:8080 [08:04:28]Content-Length: 800 [08:04:28]Content-Type: application/json [08:04:28] [08:04:28]POST finish read [08:04:28]Found Content-Length = 800 [08:04:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718341", "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" : 4.430, "sum" : 298.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" : 298.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:28]execute_script... [08:04: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)718341", "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" : 4.430, "sum" : 298.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" : 298.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:28]POST & json_proto [08:04:28]process_json_proto [08:04:28]json parsed OK: [08:04:28]protocol is kg_v1.0 [08:04:28]action value=close_receipt [08:04:28]process_action close_receipt [08:04:28]cmd_close_receipt [08:04:28]MH_GetDate [08:04:28]Write to MH i2c: F0 00 00 B4 17 BA [08:04:28]Write i2c OK [08:04:28]MH_I2C_Read... [08:04:28]Read from MH i2c: F0 [08:04:28]MH_I2C_Read... [08:04:28]Read from MH i2c: F0 09 00 [08:04:28]MH_I2C_Read... [08:04:28]Read from MH i2c: F0 09 00 B4 17 00 10 24 48 67 1D 3A 47 67 AB [08:04:28]GetLastDocTimeStamp 1732781024 [08:04:28]current date 1732781072 [08:04:28]FM_GetShiftState [08:04:28]SAM_PROTO_GetShiftState [08:04:28]wFMCommunicate request_size=4 [08:04:28]MH_SAM_APDU [08:04:28]CAPDU: 80 13 01 00 [08:04:28]Write to MH i2c: E2 08 00 B5 17 80 13 01 00 00 00 00 00 49 [08:04:28]Write i2c OK [08:04:28]MH_I2C_Read... [08:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:28]Read from MH i2c: E2 [08:04:28]MH_I2C_Read... [08:04:28]Read from MH i2c: E2 0E 00 [08:04:28]MH_I2C_Read... [08:04:28]Read from MH i2c: E2 0E 00 B5 17 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 50 [08:04:28]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:04:28]wFMCommunicate OK [08:04:28]SAM_PROTO_GetShiftState done [08:04:28]FM_GetShiftState done [08:04:28]opened in 1732752282 [08:04:28]opened+sec_in_day 1732838682 [08:04:28]quantity*price = 29858 [08:04:28]sum+1 = 29859 [08:04:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 298.58 НСП 1% : 2.64 НДС 12% : 31.71 Наличными: 0.00 Безнал.: 298.58 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 20 28.11.2024 08:04 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123508 ФПД: 100539063322356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T080432&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123508&fm=100539063322356&tin=02508201610067®Number=0000000000092681&sum=29858 [08:04:29]StoreToDocumentArchive [08:04:29]shift 559 fd 123508 [08:04:29]save to /storage/0559/doc_00123508 [08:04:29]save last doc name /storage/0559/doc_00123508 to /storage/kkm_last_doc_name [08:04:29]save OK [08:04:29]Clear old archive folders... [08:04:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:04:29]tlvbuf is 0148D080 [08:04:29]SAM_PROTO_ClearQueue [08:04:29]wFMCommunicate request_size=4 [08:04:29]MH_SAM_APDU [08:04:29]CAPDU: 80 09 00 00 [08:04:29]Write to MH i2c: E2 08 00 C2 17 80 09 00 00 00 00 00 00 4B [08:04:29]Write i2c OK [08:04:29]MH_I2C_Read... [08:04:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:29]Read from MH i2c: E2 [08:04:29]MH_I2C_Read... [08:04:29]Read from MH i2c: E2 03 00 [08:04:29]MH_I2C_Read... [08:04:29]Read from MH i2c: E2 03 00 C2 17 00 90 00 4D [08:04:29]RAPDU: 90 00 [08:04:29]wFMCommunicate OK [08:04:29]SAM_PROTO_ClearQueue done [08:04:29]KKMCreateOFDPacket [08:04:29]OFDProtocolAddRootSTLVToBuf [08:04:29]FM_MakeSignedData [08:04:29]FM_MakeSignedData [08:04:29]SAM_PROTO_SignData [08:04:29]wFMCommunicate request_size=4 [08:04:29]MH_SAM_APDU [08:04:29]CAPDU: 80 0D 01 02 [08:04:29]Write to MH i2c: E2 08 00 C3 17 80 0D 01 02 00 00 00 00 53 [08:04:29]Write i2c OK [08:04:29]MH_I2C_Read... [08:04:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:29]Read from MH i2c: E2 [08:04:29]MH_I2C_Read... [08:04:29]Read from MH i2c: E2 03 00 [08:04:29]MH_I2C_Read... [08:04:29]Read from MH i2c: E2 03 00 C3 17 00 90 00 4E [08:04:29]RAPDU: 90 00 [08:04:29]wFMCommunicate OK [08:04:29]wFMCommunicate request_size=255 [08:04:29]MH_SAM_APDU [08:04: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 4E 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A2 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 10 24 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 5B [08:04:29]Write to MH i2c: E2 02 01 C4 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A2 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 10 24 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 5B 00 00 C2 [08:04:29]Write i2c OK [08:04:29]MH_I2C_Read... [08:04:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:30]Read from MH i2c: E2 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: E2 03 00 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: E2 03 00 C4 17 00 90 00 4F [08:04:30]RAPDU: 90 00 [08:04:30]wFMCommunicate OK [08:04:30]wFMCommunicate request_size=10 [08:04:30]MH_SAM_APDU [08:04:30]CAPDU: 80 0D 02 02 05 70 93 27 C6 F4 [08:04:30]Write to MH i2c: E2 0D 00 C5 17 80 0D 02 02 05 00 70 93 27 C6 F4 00 00 44 [08:04:30]Write i2c OK [08:04:30]MH_I2C_Read... [08:04:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:30]Read from MH i2c: E2 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: E2 03 00 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: E2 03 00 C5 17 00 90 00 50 [08:04:30]RAPDU: 90 00 [08:04:30]wFMCommunicate OK [08:04:30]wFMCommunicate request_size=4 [08:04:30]MH_SAM_APDU [08:04:30]CAPDU: 80 0D 03 02 [08:04:30]Write to MH i2c: E2 08 00 C6 17 80 0D 03 02 00 00 00 00 58 [08:04:30]Write i2c OK [08:04:30]MH_I2C_Read... [08:04:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:30]Read from MH i2c: E2 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: E2 0B 00 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: E2 0B 00 C6 17 00 2D BE 20 9C 31 B0 B9 82 90 00 1C [08:04:30]RAPDU: 2D BE 20 9C 31 B0 B9 82 90 00 [08:04:30]wFMCommunicate OK [08:04:30]SAM_PROTO_SignData done [08:04:30]FM_MakeSignedData done [08:04:30]CreateOFDProtocolMessage [08:04:30]wFMCommunicate request_size=4 [08:04:30]MH_SAM_APDU [08:04:30]CAPDU: 80 11 00 00 [08:04:30]Write to MH i2c: E2 08 00 C7 17 80 11 00 00 00 00 00 00 58 [08:04:30]Write i2c OK [08:04:30]MH_I2C_Read... [08:04:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:30]Read from MH i2c: E2 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: E2 17 00 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: E2 17 00 C7 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AF [08:04:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:04:30]wFMCommunicate OK [08:04:30]CreateOFDProtocolMessage done [08:04:30]OFDSenderStorePacket 123508 [08:04:30]StoreOFDPacket docnum=123508 [08:04: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 90 AA 07 01 5A 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A2 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 10 24 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 5B 70 93 27 C6 F4 2D BE 20 9C 31 B0 B9 82 [08:04:30]CheckFolder [08:04:30]dirname=/storage/ofd_packets [08:04:30]CheckFolder done [08:04:30]ProducePacketName [08:04:30]name=ofd_packets/00123508 [08:04:30]NVStorageSaveData ofd_packets/00123508 [08:04:30]File name is /storage/ofd_packets/00123508 [08:04:30]Write 301 bytes [08:04:30]NVStorageSaveData done [08:04:30]OFDSenderStorePacket done [08:04:30]KKMCreateOFDPacket done [08:04:30]NVStorageSaveData kkm_last_timestamp [08:04:30]File name is /storage/kkm_last_timestamp [08:04:30]Write 4 bytes [08:04:30]NVStorageSaveData done [08:04:30]ExternCall_PrintAddStr [08:04:30]wPrintStart [08:04:30]Write to MH i2c: 01 00 00 C8 17 DF [08:04:30]Write i2c OK [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: 01 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: 01 07 00 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: 01 07 00 C8 17 00 00 00 00 00 FF 0F F4 [08:04:30]RasterBufferAndPrint [08:04:30]line Счет N : (1)718341 [08:04:30]line ИНН: 02508201610067 [08:04:30]line Контрольно-Кассовый Чек [08:04:30]line ПРОДАЖА [08:04:30]line ТРК (МРК, ГНК) : 42 [08:04:30]line Товар: 2710124130 [08:04:30]line Аи-92-К-4 [08:04:30]line 4.430 * 67.40 [08:04:30]line = 298.58 [08:04:30]line НДС 12% НСП 1% [08:04:30]line > о реализуемом товаре [08:04:30]line ИТОГО: 298.58 [08:04:30]line НСП 1% : 2.64 [08:04:30]line НДС 12% : 31.71 [08:04:30]line Наличными: 0.00 [08:04:30]line Безнал.: 298.58 [08:04:30]line Место: АЗС № 64 "Партнер Нефть" [08:04:30]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [08:04:30]line СНО: Общий режим [08:04:30]line Чек 20 28.11.2024 08:04 [08:04:30]line Смена: 559 ФФД: 1.0 [08:04:30]line ЗНМ: 0300000033 [08:04:30]line РНМ: 0000000000092681 [08:04:30]line Версия ККМ: 001 [08:04:30]line Платежная система: O! деньги [08:04:30]line ФМ: 0000000000874881 [08:04:30]line ФД: 123508 [08:04:30]line ФПД: 100539063322356 [08:04:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T080432&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123508&fm=100539063322356&tin=02508201610067®Number=0000000000092681&sum=29858 [08:04:30]written 0, free lines is 4095 [08:04:30]OFD Sender: Processing packet 123508 [packets to send 7, broken 6] [08:04:30]ProducePacketName [08:04:30]name=ofd_packets/00123508 [08:04:30]OFD Sender: To server: pG, [08:04:30]CommunicateWithHost lk.salyk.kg:30040 [08:04:30]ConnectInit lk.salyk.kg [08:04:30]Connected sock=10 [08:04: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 90 AA 07 01 5A 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 A2 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 10 24 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 5B 70 93 27 C6 F4 2D BE 20 9C 31 B0 B9 82 [08:04:30]Write to MH i2c: 01 00 00 F2 17 09 [08:04:30]Write i2c OK [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: 01 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: 01 07 00 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: 01 07 00 F2 17 00 00 00 00 00 5F 0C 7B [08:04:30]RasterBufferAndPrint [08:04:30]line [08:04:30]line [08:04:30]line [08:04:30]line [08:04:30]line [08:04:30]written 0, free lines is 3172 [08:04:30]MH_Cut [08:04:30]Write to MH i2c: D1 01 00 F9 17 01 E2 [08:04:30]Write i2c OK [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: D1 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: D1 01 00 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: D1 01 00 F9 17 00 E1 [08:04:30]Write to MH i2c: 01 00 00 FA 17 11 [08:04:30]Write i2c OK [08:04:30]MH_I2C_Read... [08:04: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 8D 8B 47 00 AD 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 74 E2 01 00 F4 03 04 00 D6 CF 47 67 B6 04 01 00 00 DC 8F E2 50 26 DF 30 A1 [08:04:30]CommunicateWithHost err = 0 [08:04:30]CheckOFDResponse [08:04:30]1017 (14) - 77093643461234 [08:04:30]1041 (16) - 0000000000874881 [08:04:30]1040 (4) - 123508 [08:04:30]1012 (4) - 28.11.2024 02:05 [08:04:30]1206 (1) - 0 [08:04:30]OFD Sender: Remove packet 123508 [08:04:30]ProducePacketName [08:04:30]name=ofd_packets/00123508 [08:04:30]NVStorageDeleteData [08:04:31]OFD Sender: No OFD packet to send [08:04:32]*** Cut start [08:04:32]*** Partial cut [08:04:32]*** CUTSNS_PIN = 1 [08:04:32]*** CUTSNS_PIN = 0 [08:04:32]*** Brake cut motor [08:04:32]Read from MH i2c: 01 [08:04:32]MH_I2C_Read... [08:04:32]*** Stop cut motor [08:04:32]*** Cut end [08:04:32]Read from MH i2c: 01 07 00 [08:04:32]MH_I2C_Read... [08:04:32]Read from MH i2c: 01 07 00 FA 17 00 00 00 00 00 FF 0F 26 [08:04:32]process_action close_receipt done [08:04:32]requested_data is exist [08:04:32]produce_requested_data [08:04:32]requested_item fm.sn is exist - process it [08:04:32]wFMCommunicate request_size=4 [08:04:32]MH_SAM_APDU [08:04:32]CAPDU: 80 11 00 00 [08:04:32]Write to MH i2c: E2 08 00 FB 17 80 11 00 00 00 00 00 00 8C [08:04:32]Write i2c OK [08:04:32]MH_I2C_Read... [08:04:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:32]Read from MH i2c: E2 [08:04:32]MH_I2C_Read... [08:04:32]Read from MH i2c: E2 17 00 [08:04:32]MH_I2C_Read... [08:04:32]Read from MH i2c: E2 17 00 FB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E3 [08:04:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:04:32]wFMCommunicate OK [08:04:32]requested_item fd.num is exist - process it [08:04:32]SAM_PROTO_GetFieldsCounters [08:04:32]wFMCommunicate request_size=4 [08:04:32]MH_SAM_APDU [08:04:32]CAPDU: 80 13 00 00 [08:04:32]Write to MH i2c: E2 08 00 FC 17 80 13 00 00 00 00 00 00 8F [08:04:32]Write i2c OK [08:04:32]MH_I2C_Read... [08:04:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:32]Read from MH i2c: E2 [08:04:32]MH_I2C_Read... [08:04:32]Read from MH i2c: E2 62 00 [08:04:32]MH_I2C_Read... [08:04:32]Read from MH i2c: E2 62 00 FC 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 79 [08:04: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 74 E2 01 00 0E 04 04 00 2F 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 [08:04:32]wFMCommunicate OK [08:04:32]SAM_PROTO_GetFieldsCounters done [08:04:32]requested_item shift.num is exist - process it [08:04:32]requested_item shift.opened is exist - process it [08:04:32]req_shift_opened [08:04:32]FM_GetShiftState [08:04:32]SAM_PROTO_GetShiftState [08:04:32]wFMCommunicate request_size=4 [08:04:32]MH_SAM_APDU [08:04:32]CAPDU: 80 13 01 00 [08:04:32]Write to MH i2c: E2 08 00 FD 17 80 13 01 00 00 00 00 00 91 [08:04:32]Write i2c OK [08:04:32]MH_I2C_Read... [08:04:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:32]Read from MH i2c: E2 [08:04:32]MH_I2C_Read... [08:04:32]Read from MH i2c: E2 0E 00 [08:04:32]MH_I2C_Read... [08:04:32]Read from MH i2c: E2 0E 00 FD 17 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 98 [08:04:32]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:04:32]wFMCommunicate OK [08:04:32]SAM_PROTO_GetShiftState done [08:04:32]FM_GetShiftState done [08:04:32]req_shift_opened done [08:04:32]requested_item shift.open_date is exist - process it [08:04:32]req_shift_open_date [08:04:32]req_shift_open_date done [08:04:32]produce_requested_data done [08:04:32]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123508,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [08:04:32]process_action_free close_receipt [08:04:32]json_value_free [08:04:32]json_value_free done [08:04:32]process_json_proto returns [08:04:32]Send response to host [08:04:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123508,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [08:04:32]free response buf [08:04:32]execute_script done [08:04:32]execute_script returns [08:04:32]free content buf [08:04:32]Sock 9.Close socket [08:04:32]Sock 9.Thread stoped [08:04:36]OFD Sender: No OFD packet to send [08:04:40]accept exits with 8 [08:04:40]New connection [08:04:40]New thread 3066862948 created [08:04:40]Thread 3066719588 joined [08:04:40]Waiting for new connection... [08:04:40] Sock 8.Parse request [08:04:40]Sock 8.Check first char [08:04:40]Sock 8.First char is OK [08:04:40]request: POST /json_proto HTTP/1.0 [08:04:40]Method: POST [08:04:40]URL: /json_proto [08:04:40]Method is POST - this is cgi request [08:04:40]url: /json_proto [08:04:40]query_string will be loaded in cgi processing [08:04:40]execute_cgi json_proto POST (null) [08:04:40]execute_cgi path=json_proto method=POST [08:04:40]POST find Content-Length [08:04:40]Host: 172.17.37.4:8080 [08:04:40]Content-Length: 792 [08:04:40]Content-Type: application/json [08:04:40] [08:04:40]POST finish read [08:04:40]Found Content-Length = 792 [08:04:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718340", "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" : 17.060, "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" ] } } [08:04:40]execute_script... [08:04: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)718340", "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" : 17.060, "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" ] } } [08:04:40]POST & json_proto [08:04:40]process_json_proto [08:04:40]json parsed OK: [08:04:40]protocol is kg_v1.0 [08:04:40]action value=close_receipt [08:04:40]process_action close_receipt [08:04:40]cmd_close_receipt [08:04:40]MH_GetDate [08:04:40]Write to MH i2c: F0 00 00 FE 17 04 [08:04:40]Write i2c OK [08:04:40]MH_I2C_Read... [08:04:40]Read from MH i2c: F0 [08:04:40]MH_I2C_Read... [08:04:40]Read from MH i2c: F0 09 00 [08:04:40]MH_I2C_Read... [08:04:40]Read from MH i2c: F0 09 00 FE 17 00 1C 24 48 67 1D 3A 47 67 01 [08:04:40]GetLastDocTimeStamp 1732781072 [08:04:40]current date 1732781084 [08:04:40]FM_GetShiftState [08:04:40]SAM_PROTO_GetShiftState [08:04:40]wFMCommunicate request_size=4 [08:04:40]MH_SAM_APDU [08:04:40]CAPDU: 80 13 01 00 [08:04:40]Write to MH i2c: E2 08 00 FF 17 80 13 01 00 00 00 00 00 93 [08:04:40]Write i2c OK [08:04:40]MH_I2C_Read... [08:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:40]Read from MH i2c: E2 [08:04:40]MH_I2C_Read... [08:04:40]Read from MH i2c: E2 0E 00 [08:04:40]MH_I2C_Read... [08:04:40]Read from MH i2c: E2 0E 00 FF 17 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 9A [08:04:40]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:04:40]wFMCommunicate OK [08:04:40]SAM_PROTO_GetShiftState done [08:04:40]FM_GetShiftState done [08:04:40]opened in 1732752282 [08:04:40]opened+sec_in_day 1732838682 [08:04:40]quantity*price = 0 [08:04:40]sum+1 = 1 [08:04: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 СНО: Общий режим Чек 21 28.11.2024 08:04 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 53217 ФМ: 0000000000874881 ФД: 123509 ФПД: 152613441516174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T080444&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123509&fm=152613441516174&tin=02508201610067®Number=0000000000092681&sum=0 [08:04:41]StoreToDocumentArchive [08:04:41]shift 559 fd 123509 [08:04:41]save to /storage/0559/doc_00123509 [08:04:41]save last doc name /storage/0559/doc_00123509 to /storage/kkm_last_doc_name [08:04:41]save OK [08:04:41]Clear old archive folders... [08:04:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:04:41]tlvbuf is 014B3EE0 [08:04:41]SAM_PROTO_ClearQueue [08:04:41]wFMCommunicate request_size=4 [08:04:41]MH_SAM_APDU [08:04:41]CAPDU: 80 09 00 00 [08:04:41]Write to MH i2c: E2 08 00 0C 18 80 09 00 00 00 00 00 00 96 [08:04:41]Write i2c OK [08:04:41]MH_I2C_Read... [08:04:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:41]Read from MH i2c: E2 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 03 00 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 03 00 0C 18 00 90 00 98 [08:04:41]RAPDU: 90 00 [08:04:41]wFMCommunicate OK [08:04:41]SAM_PROTO_ClearQueue done [08:04:41]KKMCreateOFDPacket [08:04:41]OFDProtocolAddRootSTLVToBuf [08:04:41]FM_MakeSignedData [08:04:41]FM_MakeSignedData [08:04:41]SAM_PROTO_SignData [08:04:41]wFMCommunicate request_size=4 [08:04:41]MH_SAM_APDU [08:04:41]CAPDU: 80 0D 01 02 [08:04:41]Write to MH i2c: E2 08 00 0D 18 80 0D 01 02 00 00 00 00 9E [08:04:41]Write i2c OK [08:04:41]MH_I2C_Read... [08:04:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:41]Read from MH i2c: E2 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 03 00 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 03 00 0D 18 00 90 00 99 [08:04:41]RAPDU: 90 00 [08:04:41]wFMCommunicate OK [08:04:41]wFMCommunicate request_size=255 [08:04:41]MH_SAM_APDU [08:04: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 A4 42 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 15 00 00 00 F4 03 04 00 1C 24 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8A [08:04:41]Write to MH i2c: E2 02 01 0E 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A4 42 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 15 00 00 00 F4 03 04 00 1C 24 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8A 00 00 A9 [08:04:41]Write i2c OK [08:04:41]MH_I2C_Read... [08:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:41]Read from MH i2c: E2 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 03 00 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 03 00 0E 18 00 90 00 9A [08:04:41]RAPDU: 90 00 [08:04:41]wFMCommunicate OK [08:04:41]wFMCommunicate request_size=10 [08:04:41]MH_SAM_APDU [08:04:41]CAPDU: 80 0D 02 02 05 CD 15 F8 32 8E [08:04:41]Write to MH i2c: E2 0D 00 0F 18 80 0D 02 02 05 00 CD 15 F8 32 8E 00 00 45 [08:04:41]Write i2c OK [08:04:41]MH_I2C_Read... [08:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:41]Read from MH i2c: E2 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 03 00 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 03 00 0F 18 00 90 00 9B [08:04:41]RAPDU: 90 00 [08:04:41]wFMCommunicate OK [08:04:41]wFMCommunicate request_size=4 [08:04:41]MH_SAM_APDU [08:04:41]CAPDU: 80 0D 03 02 [08:04:41]Write to MH i2c: E2 08 00 10 18 80 0D 03 02 00 00 00 00 A3 [08:04:41]Write i2c OK [08:04:41]MH_I2C_Read... [08:04:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:42]Read from MH i2c: E2 [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: E2 0B 00 [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: E2 0B 00 10 18 00 D2 82 E6 40 71 B1 46 A2 90 00 28 [08:04:42]RAPDU: D2 82 E6 40 71 B1 46 A2 90 00 [08:04:42]wFMCommunicate OK [08:04:42]SAM_PROTO_SignData done [08:04:42]FM_MakeSignedData done [08:04:42]CreateOFDProtocolMessage [08:04:42]wFMCommunicate request_size=4 [08:04:42]MH_SAM_APDU [08:04:42]CAPDU: 80 11 00 00 [08:04:42]Write to MH i2c: E2 08 00 11 18 80 11 00 00 00 00 00 00 A3 [08:04:42]Write i2c OK [08:04:42]MH_I2C_Read... [08:04:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:42]Read from MH i2c: E2 [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: E2 17 00 [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: E2 17 00 11 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FA [08:04:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:04:42]wFMCommunicate OK [08:04:42]CreateOFDProtocolMessage done [08:04:42]OFDSenderStorePacket 123509 [08:04:42]StoreOFDPacket docnum=123509 [08:04: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 8A AE 07 01 CC DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A4 42 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 15 00 00 00 F4 03 04 00 1C 24 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8A CD 15 F8 32 8E D2 82 E6 40 71 B1 46 A2 [08:04:42]CheckFolder [08:04:42]dirname=/storage/ofd_packets [08:04:42]CheckFolder done [08:04:42]ProducePacketName [08:04:42]name=ofd_packets/00123509 [08:04:42]NVStorageSaveData ofd_packets/00123509 [08:04:42]File name is /storage/ofd_packets/00123509 [08:04:42]Write 301 bytes [08:04:42]NVStorageSaveData done [08:04:42]OFDSenderStorePacket done [08:04:42]KKMCreateOFDPacket done [08:04:42]NVStorageSaveData kkm_last_timestamp [08:04:42]File name is /storage/kkm_last_timestamp [08:04:42]Write 4 bytes [08:04:42]NVStorageSaveData done [08:04:42]ExternCall_PrintAddStr [08:04:42]wPrintStart [08:04:42]Write to MH i2c: 01 00 00 12 18 2A [08:04:42]Write i2c OK [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: 01 [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: 01 07 00 [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: 01 07 00 12 18 00 00 00 00 00 FF 0F 3F [08:04:42]RasterBufferAndPrint [08:04:42]line Счет N : (1)718340 [08:04:42]line ИНН: 02508201610067 [08:04:42]line Контрольно-Кассовый Чек [08:04:42]line ПРОДАЖА [08:04:42]line ТРК (МРК, ГНК) : 22 [08:04:42]line Товар: 2710124130 [08:04:42]line Аи-92-К-4 [08:04:42]line 17.060 * 0.00 [08:04:42]line = 0.00 [08:04:42]line НДС 12% НСП 1% [08:04:42]line > о реализуемом товаре [08:04:42]line ИТОГО: 0.00 [08:04:42]line НСП 1% : 0.00 [08:04:42]line НДС 12% : 0.00 [08:04:42]line Наличными: 0.00 [08:04:42]line Безнал.: 0.00 [08:04:42]line Место: АЗС № 64 "Партнер Нефть" [08:04:42]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [08:04:42]line СНО: Общий режим [08:04:42]line Чек 21 28.11.2024 08:04 [08:04:42]line Смена: 559 ФФД: 1.0 [08:04:42]line ЗНМ: 0300000033 [08:04:42]line РНМ: 0000000000092681 [08:04:42]line Версия ККМ: 001 [08:04:42]line Талоны: Топливная Карта [08:04:42]line 53217 [08:04:42]line ФМ: 0000000000874881 [08:04:42]line ФД: 123509 [08:04:42]line ФПД: 152613441516174 [08:04:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T080444&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123509&fm=152613441516174&tin=02508201610067®Number=0000000000092681&sum=0 [08:04:42]written 0, free lines is 4095 [08:04:42]OFD Sender: Processing packet 123509 [packets to send 7, broken 6] [08:04:42]ProducePacketName [08:04:42]name=ofd_packets/00123509 [08:04:42]OFD Sender: To server: pG, [08:04:42]CommunicateWithHost lk.salyk.kg:30040 [08:04:42]ConnectInit lk.salyk.kg [08:04:42]Connected sock=9 [08:04: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 8A AE 07 01 CC DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A4 42 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 15 00 00 00 F4 03 04 00 1C 24 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8A CD 15 F8 32 8E D2 82 E6 40 71 B1 46 A2 [08:04: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 B3 B5 47 00 75 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 75 E2 01 00 F4 03 04 00 E2 CF 47 67 B6 04 01 00 00 F0 9C A1 2F 6F 5D 9C AD [08:04:42]CommunicateWithHost err = 0 [08:04:42]CheckOFDResponse [08:04:42]1017 (14) - 77093643461234 [08:04:42]1041 (16) - 0000000000874881 [08:04:42]1040 (4) - 123509 [08:04:42]1012 (4) - 28.11.2024 02:05 [08:04:42]1206 (1) - 0 [08:04:42]OFD Sender: Remove packet 123509 [08:04:42]ProducePacketName [08:04:42]name=ofd_packets/00123509 [08:04:42]NVStorageDeleteData [08:04:42]Write to MH i2c: 01 00 00 3C 18 54 [08:04:42]Write i2c OK [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: 01 [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: 01 07 00 [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: 01 07 00 3C 18 00 00 00 00 00 62 0C C9 [08:04:42]RasterBufferAndPrint [08:04:42]line [08:04:42]line [08:04:42]line [08:04:42]line [08:04:42]line [08:04:42]written 0, free lines is 3175 [08:04:42]MH_Cut [08:04:42]Write to MH i2c: D1 01 00 43 18 01 2D [08:04:42]Write i2c OK [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: D1 [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: D1 01 00 [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: D1 01 00 43 18 00 2C [08:04:42]Write to MH i2c: 01 00 00 44 18 5C [08:04:42]Write i2c OK [08:04:42]MH_I2C_Read... [08:04:43]OFD Sender: No OFD packet to send [08:04:44]*** Cut start [08:04:44]*** Partial cut [08:04:44]*** CUTSNS_PIN = 1 [08:04:44]*** CUTSNS_PIN = 0 [08:04:44]*** Brake cut motor [08:04:44]Read from MH i2c: 01 [08:04:44]MH_I2C_Read... [08:04:44]*** Stop cut motor [08:04:44]*** Cut end [08:04:44]Read from MH i2c: 01 07 00 [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: 01 07 00 44 18 00 00 00 00 00 FF 0F 71 [08:04:44]process_action close_receipt done [08:04:44]requested_data is exist [08:04:44]produce_requested_data [08:04:44]requested_item fm.sn is exist - process it [08:04:44]wFMCommunicate request_size=4 [08:04:44]MH_SAM_APDU [08:04:44]CAPDU: 80 11 00 00 [08:04:44]Write to MH i2c: E2 08 00 45 18 80 11 00 00 00 00 00 00 D7 [08:04:44]Write i2c OK [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: E2 [08:04:44]MH_I2C_Read... [08:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:44]Read from MH i2c: E2 17 00 [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: E2 17 00 45 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2E [08:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:04:44]wFMCommunicate OK [08:04:44]requested_item fd.num is exist - process it [08:04:44]SAM_PROTO_GetFieldsCounters [08:04:44]wFMCommunicate request_size=4 [08:04:44]MH_SAM_APDU [08:04:44]CAPDU: 80 13 00 00 [08:04:44]Write to MH i2c: E2 08 00 46 18 80 13 00 00 00 00 00 00 DA [08:04:44]Write i2c OK [08:04:44]MH_I2C_Read... [08:04:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:44]Read from MH i2c: E2 [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: E2 62 00 [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: E2 62 00 46 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 C8 [08:04: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 75 E2 01 00 0E 04 04 00 2F 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 [08:04:44]wFMCommunicate OK [08:04:44]SAM_PROTO_GetFieldsCounters done [08:04:44]requested_item shift.num is exist - process it [08:04:44]requested_item shift.opened is exist - process it [08:04:44]req_shift_opened [08:04:44]FM_GetShiftState [08:04:44]SAM_PROTO_GetShiftState [08:04:44]wFMCommunicate request_size=4 [08:04:44]MH_SAM_APDU [08:04:44]CAPDU: 80 13 01 00 [08:04:44]Write to MH i2c: E2 08 00 47 18 80 13 01 00 00 00 00 00 DC [08:04:44]Write i2c OK [08:04:44]MH_I2C_Read... [08:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:45]Read from MH i2c: E2 [08:04:45]MH_I2C_Read... [08:04:45]Read from MH i2c: E2 0E 00 [08:04:45]MH_I2C_Read... [08:04:45]Read from MH i2c: E2 0E 00 47 18 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 E3 [08:04:45]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:04:45]wFMCommunicate OK [08:04:45]SAM_PROTO_GetShiftState done [08:04:45]FM_GetShiftState done [08:04:45]req_shift_opened done [08:04:45]requested_item shift.open_date is exist - process it [08:04:45]req_shift_open_date [08:04:45]req_shift_open_date done [08:04:45]produce_requested_data done [08:04:45]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123509,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [08:04:45]process_action_free close_receipt [08:04:45]json_value_free [08:04:45]json_value_free done [08:04:45]process_json_proto returns [08:04:45]Send response to host [08:04:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123509,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [08:04:45]free response buf [08:04:45]execute_script done [08:04:45]execute_script returns [08:04:45]free content buf [08:04:45]Sock 8.Close socket [08:04:45]Sock 8.Thread stoped [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:44]accept exits with 10 [08:16:44]New connection [08:16:44]New thread 3066719588 created [08:16:44]Thread 3066862948 joined [08:16:44]Waiting for new connection... [08:16:44] Sock 10.Parse request [08:16:44]Sock 10.Check first char [08:16:44]Sock 10.First char is OK [08:16:44]request: POST /json_proto HTTP/1.0 [08:16:44]Method: POST [08:16:44]URL: /json_proto [08:16:44]Method is POST - this is cgi request [08:16:44]url: /json_proto [08:16:44]query_string will be loaded in cgi processing [08:16:44]execute_cgi json_proto POST (null) [08:16:44]execute_cgi path=json_proto method=POST [08:16:44]POST find Content-Length [08:16:44]Host: 172.17.37.4:8080 [08:16:44]Content-Length: 682 [08:16:44]Content-Type: application/json [08:16:44] [08:16:44]POST finish read [08:16:44]Found Content-Length = 682 [08:16:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718342", "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.570, "sum" : 941.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 941.00, "total" : 941.00, "payments": [ { "type": 0, "sum" : 941.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:44]execute_script... [08:16: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)718342", "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.570, "sum" : 941.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 941.00, "total" : 941.00, "payments": [ { "type": 0, "sum" : 941.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:44]POST & json_proto [08:16:44]process_json_proto [08:16:44]json parsed OK: [08:16:44]protocol is kg_v1.0 [08:16:44]action value=close_receipt [08:16:44]process_action close_receipt [08:16:44]cmd_close_receipt [08:16:44]MH_GetDate [08:16:44]Write to MH i2c: F0 00 00 48 18 4F [08:16:44]Write i2c OK [08:16:44]MH_I2C_Read... [08:16:44]Read from MH i2c: F0 [08:16:44]MH_I2C_Read... [08:16:44]Read from MH i2c: F0 09 00 [08:16:44]MH_I2C_Read... [08:16:44]Read from MH i2c: F0 09 00 48 18 00 F0 26 48 67 1D 3A 47 67 22 [08:16:44]GetLastDocTimeStamp 1732781084 [08:16:44]current date 1732781808 [08:16:44]FM_GetShiftState [08:16:44]SAM_PROTO_GetShiftState [08:16:44]wFMCommunicate request_size=4 [08:16:44]MH_SAM_APDU [08:16:44]CAPDU: 80 13 01 00 [08:16:44]Write to MH i2c: E2 08 00 49 18 80 13 01 00 00 00 00 00 DE [08:16:44]Write i2c OK [08:16:44]MH_I2C_Read... [08:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:44]Read from MH i2c: E2 [08:16:44]MH_I2C_Read... [08:16:44]Read from MH i2c: E2 0E 00 [08:16:44]MH_I2C_Read... [08:16:44]Read from MH i2c: E2 0E 00 49 18 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 E5 [08:16:44]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:16:44]wFMCommunicate OK [08:16:44]SAM_PROTO_GetShiftState done [08:16:44]FM_GetShiftState done [08:16:44]opened in 1732752282 [08:16:44]opened+sec_in_day 1732838682 [08:16:44]quantity*price = 94149 [08:16:44]sum+1 = 94150 [08:16:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 941.00 Внесено: 941.00 СДАЧА: 0.00 НСП 1% : 8.33 НДС 12% : 99.98 Наличными: 941.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 22 28.11.2024 08:16 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123510 ФПД: 251792406945695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T081648&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123510&fm=251792406945695&tin=02508201610067®Number=0000000000092681&sum=94100 [08:16:45]StoreToDocumentArchive [08:16:45]shift 559 fd 123510 [08:16:45]save to /storage/0559/doc_00123510 [08:16:45]save last doc name /storage/0559/doc_00123510 to /storage/kkm_last_doc_name [08:16:45]save OK [08:16:45]Clear old archive folders... [08:16:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:16:45]tlvbuf is 0149C8A0 [08:16:45]SAM_PROTO_ClearQueue [08:16:45]wFMCommunicate request_size=4 [08:16:45]MH_SAM_APDU [08:16:45]CAPDU: 80 09 00 00 [08:16:45]Write to MH i2c: E2 08 00 56 18 80 09 00 00 00 00 00 00 E0 [08:16:45]Write i2c OK [08:16:45]MH_I2C_Read... [08:16:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:45]Read from MH i2c: E2 [08:16:45]MH_I2C_Read... [08:16:45]Read from MH i2c: E2 03 00 [08:16:45]MH_I2C_Read... [08:16:45]Read from MH i2c: E2 03 00 56 18 00 90 00 E2 [08:16:45]RAPDU: 90 00 [08:16:45]wFMCommunicate OK [08:16:45]SAM_PROTO_ClearQueue done [08:16:45]KKMCreateOFDPacket [08:16:45]OFDProtocolAddRootSTLVToBuf [08:16:45]FM_MakeSignedData [08:16:45]FM_MakeSignedData [08:16:45]SAM_PROTO_SignData [08:16:45]wFMCommunicate request_size=4 [08:16:45]MH_SAM_APDU [08:16:45]CAPDU: 80 0D 01 02 [08:16:45]Write to MH i2c: E2 08 00 57 18 80 0D 01 02 00 00 00 00 E8 [08:16:45]Write i2c OK [08:16:45]MH_I2C_Read... [08:16:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:45]Read from MH i2c: E2 [08:16:45]MH_I2C_Read... [08:16:45]Read from MH i2c: E2 03 00 [08:16:45]MH_I2C_Read... [08:16:45]Read from MH i2c: E2 03 00 57 18 00 90 00 E3 [08:16:45]RAPDU: 90 00 [08:16:45]wFMCommunicate OK [08:16:45]wFMCommunicate request_size=255 [08:16:45]MH_SAM_APDU [08:16: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 1A 31 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 C5 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 27 00 00 00 00 07 04 06 00 94 6F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F0 26 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 [08:16:45]Write to MH i2c: E2 02 01 58 18 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1A 31 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 C5 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 27 00 00 00 00 07 04 06 00 94 6F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F0 26 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 00 00 F7 [08:16:45]Write i2c OK [08:16:45]MH_I2C_Read... [08:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:45]Read from MH i2c: E2 [08:16:45]MH_I2C_Read... [08:16:45]Read from MH i2c: E2 03 00 [08:16:45]MH_I2C_Read... [08:16:45]Read from MH i2c: E2 03 00 58 18 00 90 00 E4 [08:16:45]RAPDU: 90 00 [08:16:45]wFMCommunicate OK [08:16:45]wFMCommunicate request_size=11 [08:16:45]MH_SAM_APDU [08:16:45]CAPDU: 80 0D 02 02 06 E5 00 FC F9 1F 9F [08:16:45]Write to MH i2c: E2 0E 00 59 18 80 0D 02 02 06 00 E5 00 FC F9 1F 9F 00 00 8F [08:16:45]Write i2c OK [08:16:45]MH_I2C_Read... [08:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:45]Read from MH i2c: E2 [08:16:45]MH_I2C_Read... [08:16:45]Read from MH i2c: E2 03 00 [08:16:45]MH_I2C_Read... [08:16:45]Read from MH i2c: E2 03 00 59 18 00 90 00 E5 [08:16:45]RAPDU: 90 00 [08:16:45]wFMCommunicate OK [08:16:45]wFMCommunicate request_size=4 [08:16:45]MH_SAM_APDU [08:16:45]CAPDU: 80 0D 03 02 [08:16:45]Write to MH i2c: E2 08 00 5A 18 80 0D 03 02 00 00 00 00 ED [08:16:45]Write i2c OK [08:16:45]MH_I2C_Read... [08:16:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:46]Read from MH i2c: E2 [08:16:46]MH_I2C_Read... [08:16:46]Read from MH i2c: E2 0B 00 [08:16:46]MH_I2C_Read... [08:16:46]Read from MH i2c: E2 0B 00 5A 18 00 14 22 52 36 F5 86 AE 4A 90 00 1F [08:16:46]RAPDU: 14 22 52 36 F5 86 AE 4A 90 00 [08:16:46]wFMCommunicate OK [08:16:46]SAM_PROTO_SignData done [08:16:46]FM_MakeSignedData done [08:16:46]CreateOFDProtocolMessage [08:16:46]wFMCommunicate request_size=4 [08:16:46]MH_SAM_APDU [08:16:46]CAPDU: 80 11 00 00 [08:16:46]Write to MH i2c: E2 08 00 5B 18 80 11 00 00 00 00 00 00 ED [08:16:46]Write i2c OK [08:16:46]MH_I2C_Read... [08:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:46]Read from MH i2c: E2 [08:16:46]MH_I2C_Read... [08:16:46]Read from MH i2c: E2 17 00 [08:16:46]MH_I2C_Read... [08:16:46]Read from MH i2c: E2 17 00 5B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 44 [08:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:16:46]wFMCommunicate OK [08:16:46]CreateOFDProtocolMessage done [08:16:46]OFDSenderStorePacket 123510 [08:16:46]StoreOFDPacket docnum=123510 [08:16: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 B6 D4 08 01 9F 23 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 1A 31 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 C5 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 27 00 00 00 00 07 04 06 00 94 6F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F0 26 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E5 00 FC F9 1F 9F 14 22 52 36 F5 86 AE 4A [08:16:46]CheckFolder [08:16:46]dirname=/storage/ofd_packets [08:16:46]CheckFolder done [08:16:46]ProducePacketName [08:16:46]name=ofd_packets/00123510 [08:16:46]NVStorageSaveData ofd_packets/00123510 [08:16:46]File name is /storage/ofd_packets/00123510 [08:16:46]Write 302 bytes [08:16:46]NVStorageSaveData done [08:16:46]OFDSenderStorePacket done [08:16:46]KKMCreateOFDPacket done [08:16:46]NVStorageSaveData kkm_last_timestamp [08:16:46]File name is /storage/kkm_last_timestamp [08:16:46]Write 4 bytes [08:16:46]NVStorageSaveData done [08:16:46]ExternCall_PrintAddStr [08:16:46]wPrintStart [08:16:46]Write to MH i2c: 01 00 00 5C 18 74 [08:16:46]Write i2c OK [08:16:46]MH_I2C_Read... [08:16:46]Read from MH i2c: 01 [08:16:46]MH_I2C_Read... [08:16:46]Read from MH i2c: 01 07 00 [08:16:46]MH_I2C_Read... [08:16:46]Read from MH i2c: 01 07 00 5C 18 00 00 00 00 00 FF 0F 89 [08:16:46]RasterBufferAndPrint [08:16:46]line Счет N : (1)718342 [08:16:46]line ИНН: 02508201610067 [08:16:46]line Контрольно-Кассовый Чек [08:16:46]line ПРОДАЖА [08:16:46]line ТРК (МРК, ГНК) : 5 [08:16:46]line Товар: 2710194210 [08:16:46]line ДТ(л)-К-5 [08:16:46]line 12.570 * 74.90 [08:16:46]line = 941.49 [08:16:46]line НДС 12% НСП 1% [08:16:46]line > о реализуемом товаре [08:16:46]line ОКРУГЛЕНИЕ: -0.49 [08:16:46]line ИТОГО: 941.00 [08:16:46]line Внесено: 941.00 [08:16:46]line СДАЧА: 0.00 [08:16:46]line НСП 1% : 8.33 [08:16:46]line НДС 12% : 99.98 [08:16:46]line Наличными: 941.00 [08:16:46]line Безнал.: 0.00 [08:16:46]line Место: АЗС № 64 "Партнер Нефть" [08:16:46]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [08:16:46]line СНО: Общий режим [08:16:46]line Чек 22 28.11.2024 08:16 [08:16:46]line Смена: 559 ФФД: 1.0 [08:16:46]line ЗНМ: 0300000033 [08:16:46]line РНМ: 0000000000092681 [08:16:46]line Версия ККМ: 001 [08:16:46]line ФМ: 0000000000874881 [08:16:46]line ФД: 123510 [08:16:46]line ФПД: 251792406945695 [08:16:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T081648&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123510&fm=251792406945695&tin=02508201610067®Number=0000000000092681&sum=94100 [08:16:46]OFD Sender: Processing packet 123510 [packets to send 7, broken 6] [08:16:46]ProducePacketName [08:16:46]name=ofd_packets/00123510 [08:16:46]OFD Sender: To server: pG, [08:16:46]CommunicateWithHost lk.salyk.kg:30040 [08:16:46]ConnectInit lk.salyk.kg [08:16:46]written 0, free lines is 4095 [08:16:46]Connected sock=11 [08:16: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 B6 D4 08 01 9F 23 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 1A 31 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 C5 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 27 00 00 00 00 07 04 06 00 94 6F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F0 26 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E5 00 FC F9 1F 9F 14 22 52 36 F5 86 AE 4A [08:16: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 AC 81 47 00 B7 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 76 E2 01 00 F4 03 04 00 B6 D2 47 67 B6 04 01 00 00 70 ED D3 00 E3 95 23 9B [08:16:46]CommunicateWithHost err = 0 [08:16:46]CheckOFDResponse [08:16:46]1017 (14) - 77093643461234 [08:16:46]1041 (16) - 0000000000874881 [08:16:46]1040 (4) - 123510 [08:16:46]1012 (4) - 28.11.2024 02:17 [08:16:46]1206 (1) - 0 [08:16:46]OFD Sender: Remove packet 123510 [08:16:46]ProducePacketName [08:16:46]name=ofd_packets/00123510 [08:16:46]NVStorageDeleteData [08:16:46]Write to MH i2c: 01 00 00 87 18 9F [08:16:46]Write i2c OK [08:16:46]MH_I2C_Read... [08:16:46]Read from MH i2c: 01 [08:16:46]MH_I2C_Read... [08:16:46]Read from MH i2c: 01 07 00 [08:16:46]MH_I2C_Read... [08:16:46]Read from MH i2c: 01 07 00 87 18 00 00 00 00 00 41 0C F3 [08:16:46]RasterBufferAndPrint [08:16:46]line [08:16:46]line [08:16:46]line [08:16:46]line [08:16:46]line [08:16:46]written 0, free lines is 3142 [08:16:46]MH_Cut [08:16:46]Write to MH i2c: D1 01 00 8E 18 01 78 [08:16:46]Write i2c OK [08:16:46]MH_I2C_Read... [08:16:46]Read from MH i2c: D1 [08:16:46]MH_I2C_Read... [08:16:46]Read from MH i2c: D1 01 00 [08:16:46]MH_I2C_Read... [08:16:46]Read from MH i2c: D1 01 00 8E 18 00 77 [08:16:46]Write to MH i2c: 01 00 00 8F 18 A7 [08:16:46]Write i2c OK [08:16:46]MH_I2C_Read... [08:16:47]OFD Sender: No OFD packet to send [08:16:48]*** Cut start [08:16:48]*** Partial cut [08:16:48]*** CUTSNS_PIN = 1 [08:16:48]*** CUTSNS_PIN = 0 [08:16:48]*** Brake cut motor [08:16:48]Read from MH i2c: 01 [08:16:48]MH_I2C_Read... [08:16:48]*** Stop cut motor [08:16:48]*** Cut end [08:16:48]Read from MH i2c: 01 07 00 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: 01 07 00 8F 18 00 00 00 00 00 FF 0F BC [08:16:48]process_action close_receipt done [08:16:48]requested_data is exist [08:16:48]produce_requested_data [08:16:48]requested_item fm.sn is exist - process it [08:16:48]wFMCommunicate request_size=4 [08:16:48]MH_SAM_APDU [08:16:48]CAPDU: 80 11 00 00 [08:16:48]Write to MH i2c: E2 08 00 90 18 80 11 00 00 00 00 00 00 22 [08:16:48]Write i2c OK [08:16:48]MH_I2C_Read... [08:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:48]Read from MH i2c: E2 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: E2 17 00 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: E2 17 00 90 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 79 [08:16:48]RAPDU: 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]wFMCommunicate OK [08:16:48]requested_item fd.num is exist - process it [08:16:48]SAM_PROTO_GetFieldsCounters [08:16:48]wFMCommunicate request_size=4 [08:16:48]MH_SAM_APDU [08:16:48]CAPDU: 80 13 00 00 [08:16:48]Write to MH i2c: E2 08 00 91 18 80 13 00 00 00 00 00 00 25 [08:16:48]Write i2c OK [08:16:48]MH_I2C_Read... [08:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:49]Read from MH i2c: E2 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 62 00 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 62 00 91 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 17 [08:16: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 76 E2 01 00 0E 04 04 00 2F 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 [08:16:49]wFMCommunicate OK [08:16:49]SAM_PROTO_GetFieldsCounters done [08:16:49]requested_item shift.num is exist - process it [08:16:49]requested_item shift.opened is exist - process it [08:16:49]req_shift_opened [08:16:49]FM_GetShiftState [08:16:49]SAM_PROTO_GetShiftState [08:16:49]wFMCommunicate request_size=4 [08:16:49]MH_SAM_APDU [08:16:49]CAPDU: 80 13 01 00 [08:16:49]Write to MH i2c: E2 08 00 92 18 80 13 01 00 00 00 00 00 27 [08:16:49]Write i2c OK [08:16:49]MH_I2C_Read... [08:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:49]Read from MH i2c: E2 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 0E 00 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 0E 00 92 18 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 2E [08:16:49]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:16:49]wFMCommunicate OK [08:16:49]SAM_PROTO_GetShiftState done [08:16:49]FM_GetShiftState done [08:16:49]req_shift_opened done [08:16:49]requested_item shift.open_date is exist - process it [08:16:49]req_shift_open_date [08:16:49]req_shift_open_date done [08:16:49]produce_requested_data done [08:16:49]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123510,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [08:16:49]process_action_free close_receipt [08:16:49]json_value_free [08:16:49]json_value_free done [08:16:49]process_json_proto returns [08:16:49]Send response to host [08:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123510,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [08:16:49]free response buf [08:16:49]execute_script done [08:16:49]execute_script returns [08:16:49]free content buf [08:16:49]Sock 10.Close socket [08:16:49]Sock 10.Thread stoped [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:40]accept exits with 8 [08:19:40]New connection [08:19:40]New thread 3066862948 created [08:19:40]Thread 3066719588 joined [08:19:40]Waiting for new connection... [08:19:40] Sock 8.Parse request [08:19:40]Sock 8.Check first char [08:19:40]Sock 8.First char is OK [08:19:40]request: POST /json_proto HTTP/1.0 [08:19:40]Method: POST [08:19:40]URL: /json_proto [08:19:40]Method is POST - this is cgi request [08:19:40]url: /json_proto [08:19:40]query_string will be loaded in cgi processing [08:19:40]execute_cgi json_proto POST (null) [08:19:40]execute_cgi path=json_proto method=POST [08:19:40]POST find Content-Length [08:19:40]Host: 172.17.37.4:8080 [08:19:40]Content-Length: 682 [08:19:40]Content-Type: application/json [08:19:40] [08:19:40]POST finish read [08:19:40]Found Content-Length = 682 [08:19:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718343", "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" ] } } [08:19:40]execute_script... [08:19: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)718343", "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" ] } } [08:19:40]POST & json_proto [08:19:40]process_json_proto [08:19:40]json parsed OK: [08:19:40]protocol is kg_v1.0 [08:19:40]action value=close_receipt [08:19:40]process_action close_receipt [08:19:40]cmd_close_receipt [08:19:40]MH_GetDate [08:19:40]Write to MH i2c: F0 00 00 93 18 9A [08:19:40]Write i2c OK [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: F0 [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: F0 09 00 [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: F0 09 00 93 18 00 A0 27 48 67 1D 3A 47 67 1E [08:19:40]GetLastDocTimeStamp 1732781808 [08:19:40]current date 1732781984 [08:19:40]FM_GetShiftState [08:19:40]SAM_PROTO_GetShiftState [08:19:40]wFMCommunicate request_size=4 [08:19:40]MH_SAM_APDU [08:19:40]CAPDU: 80 13 01 00 [08:19:40]Write to MH i2c: E2 08 00 94 18 80 13 01 00 00 00 00 00 29 [08:19:40]Write i2c OK [08:19:40]MH_I2C_Read... [08:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:40]Read from MH i2c: E2 [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: E2 0E 00 [08:19:40]MH_I2C_Read... [08:19:40]Read from MH i2c: E2 0E 00 94 18 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 30 [08:19:40]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:19:40]wFMCommunicate OK [08:19:40]SAM_PROTO_GetShiftState done [08:19:40]FM_GetShiftState done [08:19:40]opened in 1732752282 [08:19:40]opened+sec_in_day 1732838682 [08:19:40]quantity*price = 100021 [08:19:40]sum+1 = 100023 [08:19:40]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 СНО: Общий режим Чек 23 28.11.2024 08:19 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123511 ФПД: 219939440740607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T081944&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123511&fm=219939440740607&tin=02508201610067®Number=0000000000092681&sum=100000 [08:19:41]StoreToDocumentArchive [08:19:41]shift 559 fd 123511 [08:19:41]save to /storage/0559/doc_00123511 [08:19:41]save last doc name /storage/0559/doc_00123511 to /storage/kkm_last_doc_name [08:19:41]save OK [08:19:41]Clear old archive folders... [08:19:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:41]tlvbuf is B6E92210 [08:19:41]SAM_PROTO_ClearQueue [08:19:41]wFMCommunicate request_size=4 [08:19:41]MH_SAM_APDU [08:19:41]CAPDU: 80 09 00 00 [08:19:41]Write to MH i2c: E2 08 00 A1 18 80 09 00 00 00 00 00 00 2B [08:19:41]Write i2c OK [08:19:41]MH_I2C_Read... [08:19:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:41]Read from MH i2c: E2 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 A1 18 00 90 00 2D [08:19:41]RAPDU: 90 00 [08:19:41]wFMCommunicate OK [08:19:41]SAM_PROTO_ClearQueue done [08:19:41]KKMCreateOFDPacket [08:19:41]OFDProtocolAddRootSTLVToBuf [08:19:41]FM_MakeSignedData [08:19:41]FM_MakeSignedData [08:19:41]SAM_PROTO_SignData [08:19:41]wFMCommunicate request_size=4 [08:19:41]MH_SAM_APDU [08:19:41]CAPDU: 80 0D 01 02 [08:19:41]Write to MH i2c: E2 08 00 A2 18 80 0D 01 02 00 00 00 00 33 [08:19:41]Write i2c OK [08:19:41]MH_I2C_Read... [08:19:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:41]Read from MH i2c: E2 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 A2 18 00 90 00 2E [08:19:41]RAPDU: 90 00 [08:19:41]wFMCommunicate OK [08:19:41]wFMCommunicate request_size=255 [08:19:41]MH_SAM_APDU [08:19: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 17 00 00 00 F4 03 04 00 A0 27 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 C8 [08:19:41]Write to MH i2c: E2 02 01 A3 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 17 00 00 00 F4 03 04 00 A0 27 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 C8 00 00 6A [08:19:41]Write i2c OK [08:19:41]MH_I2C_Read... [08:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:41]Read from MH i2c: E2 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 A3 18 00 90 00 2F [08:19:41]RAPDU: 90 00 [08:19:41]wFMCommunicate OK [08:19:41]wFMCommunicate request_size=10 [08:19:41]MH_SAM_APDU [08:19:41]CAPDU: 80 0D 02 02 05 08 A4 3C C8 FF [08:19:41]Write to MH i2c: E2 0D 00 A4 18 80 0D 02 02 05 00 08 A4 3C C8 FF 00 00 EF [08:19:41]Write i2c OK [08:19:41]MH_I2C_Read... [08:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:41]Read from MH i2c: E2 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 03 00 A4 18 00 90 00 30 [08:19:41]RAPDU: 90 00 [08:19:41]wFMCommunicate OK [08:19:41]wFMCommunicate request_size=4 [08:19:41]MH_SAM_APDU [08:19:41]CAPDU: 80 0D 03 02 [08:19:41]Write to MH i2c: E2 08 00 A5 18 80 0D 03 02 00 00 00 00 38 [08:19:41]Write i2c OK [08:19:41]MH_I2C_Read... [08:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:41]Read from MH i2c: E2 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 0B 00 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 0B 00 A5 18 00 F2 70 22 CF D1 C7 C6 85 90 00 6F [08:19:41]RAPDU: F2 70 22 CF D1 C7 C6 85 90 00 [08:19:41]wFMCommunicate OK [08:19:41]SAM_PROTO_SignData done [08:19:41]FM_MakeSignedData done [08:19:41]CreateOFDProtocolMessage [08:19:41]wFMCommunicate request_size=4 [08:19:41]MH_SAM_APDU [08:19:41]CAPDU: 80 11 00 00 [08:19:41]Write to MH i2c: E2 08 00 A6 18 80 11 00 00 00 00 00 00 38 [08:19:41]Write i2c OK [08:19:41]MH_I2C_Read... [08:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:42]Read from MH i2c: E2 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: E2 17 00 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: E2 17 00 A6 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8F [08: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 [08:19:42]wFMCommunicate OK [08:19:42]CreateOFDProtocolMessage done [08:19:42]OFDSenderStorePacket 123511 [08:19:42]StoreOFDPacket docnum=123511 [08:19: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 46 68 07 01 69 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 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 17 00 00 00 F4 03 04 00 A0 27 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 C8 08 A4 3C C8 FF F2 70 22 CF D1 C7 C6 85 [08:19:42]CheckFolder [08:19:42]dirname=/storage/ofd_packets [08:19:42]CheckFolder done [08:19:42]ProducePacketName [08:19:42]name=ofd_packets/00123511 [08:19:42]NVStorageSaveData ofd_packets/00123511 [08:19:42]File name is /storage/ofd_packets/00123511 [08:19:42]Write 301 bytes [08:19:42]NVStorageSaveData done [08:19:42]OFDSenderStorePacket done [08:19:42]KKMCreateOFDPacket done [08:19:42]NVStorageSaveData kkm_last_timestamp [08:19:42]File name is /storage/kkm_last_timestamp [08:19:42]Write 4 bytes [08:19:42]NVStorageSaveData done [08:19:42]ExternCall_PrintAddStr [08:19:42]wPrintStart [08:19:42]Write to MH i2c: 01 00 00 A7 18 BF [08:19:42]Write i2c OK [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: 01 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: 01 07 00 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: 01 07 00 A7 18 00 00 00 00 00 FF 0F D4 [08:19:42]RasterBufferAndPrint [08:19:42]line Счет N : (1)718343 [08:19:42]line ИНН: 02508201610067 [08:19:42]line Контрольно-Кассовый Чек [08:19:42]line ПРОДАЖА [08:19:42]line ТРК (МРК, ГНК) : 22 [08:19:42]line Товар: 2710124130 [08:19:42]line Аи-92-К-4 [08:19:42]line 14.840 * 67.40 [08:19:42]line = 1000.22 [08:19:42]line НДС 12% НСП 1% [08:19:42]line > о реализуемом товаре [08:19:42]line ОКРУГЛЕНИЕ: -0.22 [08:19:42]line ИТОГО: 1000.00 [08:19:42]line Внесено: 1000.00 [08:19:42]line СДАЧА: 0.00 [08:19:42]line НСП 1% : 8.85 [08:19:42]line НДС 12% : 106.22 [08:19:42]line Наличными: 1000.00 [08:19:42]line Безнал.: 0.00 [08:19:42]line Место: АЗС № 64 "Партнер Нефть" [08:19:42]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [08:19:42]line СНО: Общий режим [08:19:42]line Чек 23 28.11.2024 08:19 [08:19:42]line Смена: 559 ФФД: 1.0 [08:19:42]line ЗНМ: 0300000033 [08:19:42]line РНМ: 0000000000092681 [08:19:42]line Версия ККМ: 001 [08:19:42]line ФМ: 0000000000874881 [08:19:42]line ФД: 123511 [08:19:42]line ФПД: 219939440740607 [08:19:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T081944&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123511&fm=219939440740607&tin=02508201610067®Number=0000000000092681&sum=100000 [08:19:42]OFD Sender: Processing packet 123511 [packets to send 7, broken 6] [08:19:42]ProducePacketName [08:19:42]name=ofd_packets/00123511 [08:19:42]OFD Sender: To server: pG, [08:19:42]CommunicateWithHost lk.salyk.kg:30040 [08:19:42]ConnectInit lk.salyk.kg [08:19:42]written 0, free lines is 4095 [08:19:42]Connected sock=10 [08:19: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 46 68 07 01 69 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 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 17 00 00 00 F4 03 04 00 A0 27 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 C8 08 A4 3C C8 FF F2 70 22 CF D1 C7 C6 85 [08:19: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 F4 FB 47 00 03 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 77 E2 01 00 F4 03 04 00 66 D3 47 67 B6 04 01 00 00 0C 02 40 12 58 A5 93 98 [08:19:42]CommunicateWithHost err = 0 [08:19:42]CheckOFDResponse [08:19:42]1017 (14) - 77093643461234 [08:19:42]1041 (16) - 0000000000874881 [08:19:42]1040 (4) - 123511 [08:19:42]1012 (4) - 28.11.2024 02:20 [08:19:42]1206 (1) - 0 [08:19:42]OFD Sender: Remove packet 123511 [08:19:42]ProducePacketName [08:19:42]name=ofd_packets/00123511 [08:19:42]NVStorageDeleteData [08:19:42]Write to MH i2c: 01 00 00 D2 18 EA [08:19:42]Write i2c OK [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: 01 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: 01 07 00 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: 01 07 00 D2 18 00 00 00 00 00 4D 0C 4A [08:19:42]RasterBufferAndPrint [08:19:42]line [08:19:42]line [08:19:42]line [08:19:42]line [08:19:42]line [08:19:42]written 0, free lines is 3152 [08:19:42]MH_Cut [08:19:42]Write to MH i2c: D1 01 00 D9 18 01 C3 [08:19:42]Write i2c OK [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: D1 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: D1 01 00 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: D1 01 00 D9 18 00 C2 [08:19:42]Write to MH i2c: 01 00 00 DA 18 F2 [08:19:42]Write i2c OK [08:19:42]MH_I2C_Read... [08:19:43]OFD Sender: No OFD packet to send [08:19:44]*** Cut start [08:19:44]*** Partial cut [08:19:44]*** CUTSNS_PIN = 1 [08:19:44]*** CUTSNS_PIN = 0 [08:19:44]*** Brake cut motor [08:19:44]Read from MH i2c: 01 [08:19:44]MH_I2C_Read... [08:19:44]*** Stop cut motor [08:19:44]*** Cut end [08:19:44]Read from MH i2c: 01 07 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: 01 07 00 DA 18 00 00 00 00 00 FF 0F 07 [08:19:44]process_action close_receipt done [08:19:44]requested_data is exist [08:19:44]produce_requested_data [08:19:44]requested_item fm.sn is exist - process it [08:19:44]wFMCommunicate request_size=4 [08:19:44]MH_SAM_APDU [08:19:44]CAPDU: 80 11 00 00 [08:19:44]Write to MH i2c: E2 08 00 DB 18 80 11 00 00 00 00 00 00 6D [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:44]Read from MH i2c: E2 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 17 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 17 00 DB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C4 [08:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:19:44]wFMCommunicate OK [08:19:44]requested_item fd.num is exist - process it [08:19:44]SAM_PROTO_GetFieldsCounters [08:19:44]wFMCommunicate request_size=4 [08:19:44]MH_SAM_APDU [08:19:44]CAPDU: 80 13 00 00 [08:19:44]Write to MH i2c: E2 08 00 DC 18 80 13 00 00 00 00 00 00 70 [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:45]Read from MH i2c: E2 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 62 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 62 00 DC 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 66 [08:19: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 77 E2 01 00 0E 04 04 00 2F 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 [08:19:45]wFMCommunicate OK [08:19:45]SAM_PROTO_GetFieldsCounters done [08:19:45]requested_item shift.num is exist - process it [08:19:45]requested_item shift.opened is exist - process it [08:19:45]req_shift_opened [08:19:45]FM_GetShiftState [08:19:45]SAM_PROTO_GetShiftState [08:19:45]wFMCommunicate request_size=4 [08:19:45]MH_SAM_APDU [08:19:45]CAPDU: 80 13 01 00 [08:19:45]Write to MH i2c: E2 08 00 DD 18 80 13 01 00 00 00 00 00 72 [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:45]Read from MH i2c: E2 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 0E 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 0E 00 DD 18 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 79 [08:19:45]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:19:45]wFMCommunicate OK [08:19:45]SAM_PROTO_GetShiftState done [08:19:45]FM_GetShiftState done [08:19:45]req_shift_opened done [08:19:45]requested_item shift.open_date is exist - process it [08:19:45]req_shift_open_date [08:19:45]req_shift_open_date done [08:19:45]produce_requested_data done [08:19:45]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123511,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [08:19:45]process_action_free close_receipt [08:19:45]json_value_free [08:19:45]json_value_free done [08:19:45]process_json_proto returns [08:19:45]Send response to host [08:19:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123511,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [08:19:45]free response buf [08:19:45]execute_script done [08:19:45]execute_script returns [08:19:45]free content buf [08:19:45]Sock 8.Close socket [08:19:45]Sock 8.Thread stoped [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:30]accept exits with 9 [08:22:30]New connection [08:22:30]New thread 3066719588 created [08:22:30]Thread 3066862948 joined [08:22:30]Waiting for new connection... [08:22:30] Sock 9.Parse request [08:22:30]Sock 9.Check first char [08:22:30]Sock 9.First char is OK [08:22:30]request: POST /json_proto HTTP/1.0 [08:22:30]Method: POST [08:22:30]URL: /json_proto [08:22:30]Method is POST - this is cgi request [08:22:30]url: /json_proto [08:22:30]query_string will be loaded in cgi processing [08:22:30]execute_cgi json_proto POST (null) [08:22:30]execute_cgi path=json_proto method=POST [08:22:30]POST find Content-Length [08:22:30]Host: 172.17.37.4:8080 [08:22:30]Content-Length: 677 [08:22:30]Content-Type: application/json [08:22:30] [08:22:30]POST finish read [08:22:30]Found Content-Length = 677 [08:22:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718344", "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" ] } } [08:22:30]execute_script... [08:22: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)718344", "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" ] } } [08:22:30]POST & json_proto [08:22:30]process_json_proto [08:22:30]json parsed OK: [08:22:30]protocol is kg_v1.0 [08:22:30]action value=close_receipt [08:22:30]process_action close_receipt [08:22:30]cmd_close_receipt [08:22:30]MH_GetDate [08:22:30]Write to MH i2c: F0 00 00 DE 18 E5 [08:22:30]Write i2c OK [08:22:30]MH_I2C_Read... [08:22:30]Read from MH i2c: F0 [08:22:30]MH_I2C_Read... [08:22:30]Read from MH i2c: F0 09 00 [08:22:30]MH_I2C_Read... [08:22:30]Read from MH i2c: F0 09 00 DE 18 00 4A 28 48 67 1D 3A 47 67 14 [08:22:30]GetLastDocTimeStamp 1732781984 [08:22:30]current date 1732782154 [08:22:30]FM_GetShiftState [08:22:30]SAM_PROTO_GetShiftState [08:22:30]wFMCommunicate request_size=4 [08:22:30]MH_SAM_APDU [08:22:30]CAPDU: 80 13 01 00 [08:22:30]Write to MH i2c: E2 08 00 DF 18 80 13 01 00 00 00 00 00 74 [08:22:30]Write i2c OK [08:22:30]MH_I2C_Read... [08:22:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:30]Read from MH i2c: E2 [08:22:30]MH_I2C_Read... [08:22:30]Read from MH i2c: E2 0E 00 [08:22:30]MH_I2C_Read... [08:22:30]Read from MH i2c: E2 0E 00 DF 18 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 7B [08:22:30]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:22:30]wFMCommunicate OK [08:22:30]SAM_PROTO_GetShiftState done [08:22:30]FM_GetShiftState done [08:22:30]opened in 1732752282 [08:22:30]opened+sec_in_day 1732838682 [08:22:30]quantity*price = 20017 [08:22:30]sum+1 = 20019 [08:22:30]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 СНО: Общий режим Чек 24 28.11.2024 08:22 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123512 ФПД: 234029370309514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T082234&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123512&fm=234029370309514&tin=02508201610067®Number=0000000000092681&sum=20000 [08:22:31]StoreToDocumentArchive [08:22:31]shift 559 fd 123512 [08:22:31]save to /storage/0559/doc_00123512 [08:22:31]save last doc name /storage/0559/doc_00123512 to /storage/kkm_last_doc_name [08:22:31]save OK [08:22:31]Clear old archive folders... [08:22:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:31]tlvbuf is B6EAB260 [08:22:31]SAM_PROTO_ClearQueue [08:22:31]wFMCommunicate request_size=4 [08:22:31]MH_SAM_APDU [08:22:31]CAPDU: 80 09 00 00 [08:22:31]Write to MH i2c: E2 08 00 EC 18 80 09 00 00 00 00 00 00 76 [08:22:31]Write i2c OK [08:22:31]MH_I2C_Read... [08:22:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:31]Read from MH i2c: E2 [08:22:31]MH_I2C_Read... [08:22:31]Read from MH i2c: E2 03 00 [08:22:31]MH_I2C_Read... [08:22:31]Read from MH i2c: E2 03 00 EC 18 00 90 00 78 [08:22:31]RAPDU: 90 00 [08:22:31]wFMCommunicate OK [08:22:31]SAM_PROTO_ClearQueue done [08:22:31]KKMCreateOFDPacket [08:22:31]OFDProtocolAddRootSTLVToBuf [08:22:31]FM_MakeSignedData [08:22:31]FM_MakeSignedData [08:22:31]SAM_PROTO_SignData [08:22:31]wFMCommunicate request_size=4 [08:22:31]MH_SAM_APDU [08:22:31]CAPDU: 80 0D 01 02 [08:22:31]Write to MH i2c: E2 08 00 ED 18 80 0D 01 02 00 00 00 00 7E [08:22:31]Write i2c OK [08:22:31]MH_I2C_Read... [08:22:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:31]Read from MH i2c: E2 [08:22:31]MH_I2C_Read... [08:22:31]Read from MH i2c: E2 03 00 [08:22:31]MH_I2C_Read... [08:22:31]Read from MH i2c: E2 03 00 ED 18 00 90 00 79 [08:22:31]RAPDU: 90 00 [08:22:31]wFMCommunicate OK [08:22:31]wFMCommunicate request_size=255 [08:22:31]MH_SAM_APDU [08:22: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 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 18 00 00 00 F4 03 04 00 4A 28 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D4 [08:22:31]Write to MH i2c: E2 02 01 EE 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 18 00 00 00 F4 03 04 00 4A 28 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D4 00 00 9B [08:22:31]Write i2c OK [08:22:31]MH_I2C_Read... [08:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:32]Read from MH i2c: E2 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 03 00 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 03 00 EE 18 00 90 00 7A [08:22:32]RAPDU: 90 00 [08:22:32]wFMCommunicate OK [08:22:32]wFMCommunicate request_size=10 [08:22:32]MH_SAM_APDU [08:22:32]CAPDU: 80 0D 02 02 05 D9 35 7B FB 8A [08:22:32]Write to MH i2c: E2 0D 00 EF 18 80 0D 02 02 05 00 D9 35 7B FB 8A 00 00 99 [08:22:32]Write i2c OK [08:22:32]MH_I2C_Read... [08:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:32]Read from MH i2c: E2 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 03 00 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 03 00 EF 18 00 90 00 7B [08:22:32]RAPDU: 90 00 [08:22:32]wFMCommunicate OK [08:22:32]wFMCommunicate request_size=4 [08:22:32]MH_SAM_APDU [08:22:32]CAPDU: 80 0D 03 02 [08:22:32]Write to MH i2c: E2 08 00 F0 18 80 0D 03 02 00 00 00 00 83 [08:22:32]Write i2c OK [08:22:32]MH_I2C_Read... [08:22:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:32]Read from MH i2c: E2 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 0B 00 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 0B 00 F0 18 00 13 BC 27 32 2D EB C3 AD 90 00 34 [08:22:32]RAPDU: 13 BC 27 32 2D EB C3 AD 90 00 [08:22:32]wFMCommunicate OK [08:22:32]SAM_PROTO_SignData done [08:22:32]FM_MakeSignedData done [08:22:32]CreateOFDProtocolMessage [08:22:32]wFMCommunicate request_size=4 [08:22:32]MH_SAM_APDU [08:22:32]CAPDU: 80 11 00 00 [08:22:32]Write to MH i2c: E2 08 00 F1 18 80 11 00 00 00 00 00 00 83 [08:22:32]Write i2c OK [08:22:32]MH_I2C_Read... [08:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:32]Read from MH i2c: E2 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 17 00 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 17 00 F1 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DA [08:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:22:32]wFMCommunicate OK [08:22:32]CreateOFDProtocolMessage done [08:22:32]OFDSenderStorePacket 123512 [08:22:32]StoreOFDPacket docnum=123512 [08:22: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 68 7C 07 01 DE 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 18 00 00 00 F4 03 04 00 4A 28 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D4 D9 35 7B FB 8A 13 BC 27 32 2D EB C3 AD [08:22:32]CheckFolder [08:22:32]dirname=/storage/ofd_packets [08:22:32]CheckFolder done [08:22:32]ProducePacketName [08:22:32]name=ofd_packets/00123512 [08:22:32]NVStorageSaveData ofd_packets/00123512 [08:22:32]File name is /storage/ofd_packets/00123512 [08:22:32]Write 301 bytes [08:22:32]NVStorageSaveData done [08:22:32]OFDSenderStorePacket done [08:22:32]KKMCreateOFDPacket done [08:22:32]NVStorageSaveData kkm_last_timestamp [08:22:32]File name is /storage/kkm_last_timestamp [08:22:32]Write 4 bytes [08:22:32]NVStorageSaveData done [08:22:32]ExternCall_PrintAddStr [08:22:32]wPrintStart [08:22:32]Write to MH i2c: 01 00 00 F2 18 0A [08:22:32]Write i2c OK [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: 01 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: 01 07 00 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: 01 07 00 F2 18 00 00 00 00 00 FF 0F 1F [08:22:32]RasterBufferAndPrint [08:22:32]line Счет N : (1)718344 [08:22:32]line ИНН: 02508201610067 [08:22:32]line Контрольно-Кассовый Чек [08:22:32]line ПРОДАЖА [08:22:32]line ТРК (МРК, ГНК) : 32 [08:22:32]line Товар: 2710124130 [08:22:32]line Аи-92-К-4 [08:22:32]line 2.970 * 67.40 [08:22:32]line = 200.18 [08:22:32]line НДС 12% НСП 1% [08:22:32]line > о реализуемом товаре [08:22:32]line ОКРУГЛЕНИЕ: -0.18 [08:22:32]line ИТОГО: 200.00 [08:22:32]line Внесено: 200.00 [08:22:32]line СДАЧА: 0.00 [08:22:32]line НСП 1% : 1.77 [08:22:32]line НДС 12% : 21.26 [08:22:32]line Наличными: 200.00 [08:22:32]line Безнал.: 0.00 [08:22:32]line Место: АЗС № 64 "Партнер Нефть" [08:22:32]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [08:22:32]line СНО: Общий режим [08:22:32]line Чек 24 28.11.2024 08:22 [08:22:32]line Смена: 559 ФФД: 1.0 [08:22:32]line ЗНМ: 0300000033 [08:22:32]line РНМ: 0000000000092681 [08:22:32]line Версия ККМ: 001 [08:22:32]line ФМ: 0000000000874881 [08:22:32]line ФД: 123512 [08:22:32]line ФПД: 234029370309514 [08:22:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T082234&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123512&fm=234029370309514&tin=02508201610067®Number=0000000000092681&sum=20000 [08:22:32]OFD Sender: Processing packet 123512 [packets to send 7, broken 6] [08:22:32]ProducePacketName [08:22:32]name=ofd_packets/00123512 [08:22:32]OFD Sender: To server: pG, [08:22:32]CommunicateWithHost lk.salyk.kg:30040 [08:22:32]ConnectInit lk.salyk.kg [08:22:32]written 0, free lines is 4095 [08:22:32]Connected sock=10 [08:22: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 68 7C 07 01 DE 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 18 00 00 00 F4 03 04 00 4A 28 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D4 D9 35 7B FB 8A 13 BC 27 32 2D EB C3 AD [08:22: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 56 D7 47 00 51 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 78 E2 01 00 F4 03 04 00 11 D4 47 67 B6 04 01 00 00 C4 BE CB 3D 3D CB 0C 4D [08:22:32]CommunicateWithHost err = 0 [08:22:32]CheckOFDResponse [08:22:32]1017 (14) - 77093643461234 [08:22:32]1041 (16) - 0000000000874881 [08:22:32]1040 (4) - 123512 [08:22:32]1012 (4) - 28.11.2024 02:23 [08:22:32]1206 (1) - 0 [08:22:32]OFD Sender: Remove packet 123512 [08:22:32]ProducePacketName [08:22:32]name=ofd_packets/00123512 [08:22:32]NVStorageDeleteData [08:22:33]Write to MH i2c: 01 00 00 1D 19 36 [08:22:33]Write i2c OK [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: 01 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: 01 07 00 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: 01 07 00 1D 19 00 00 00 00 00 47 0C 90 [08:22:33]RasterBufferAndPrint [08:22:33]line [08:22:33]line [08:22:33]line [08:22:33]line [08:22:33]line [08:22:33]written 0, free lines is 3148 [08:22:33]MH_Cut [08:22:33]Write to MH i2c: D1 01 00 24 19 01 0F [08:22:33]Write i2c OK [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: D1 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: D1 01 00 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: D1 01 00 24 19 00 0E [08:22:33]Write to MH i2c: 01 00 00 25 19 3E [08:22:33]Write i2c OK [08:22:33]MH_I2C_Read... [08:22:33]OFD Sender: No OFD packet to send [08:22:34]*** Cut start [08:22:34]*** Partial cut [08:22:34]*** CUTSNS_PIN = 1 [08:22:34]*** CUTSNS_PIN = 0 [08:22:34]*** Brake cut motor [08:22:35]Read from MH i2c: 01 [08:22:35]MH_I2C_Read... [08:22:35]*** Stop cut motor [08:22:35]*** Cut end [08:22:35]Read from MH i2c: 01 07 00 [08:22:35]MH_I2C_Read... [08:22:35]Read from MH i2c: 01 07 00 25 19 00 00 00 00 00 FF 0F 53 [08:22:35]process_action close_receipt done [08:22:35]requested_data is exist [08:22:35]produce_requested_data [08:22:35]requested_item fm.sn is exist - process it [08:22:35]wFMCommunicate request_size=4 [08:22:35]MH_SAM_APDU [08:22:35]CAPDU: 80 11 00 00 [08:22:35]Write to MH i2c: E2 08 00 26 19 80 11 00 00 00 00 00 00 B9 [08:22:35]Write i2c OK [08:22:35]MH_I2C_Read... [08:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:35]Read from MH i2c: E2 [08:22:35]MH_I2C_Read... [08:22:35]Read from MH i2c: E2 17 00 [08:22:35]MH_I2C_Read... [08:22:35]Read from MH i2c: E2 17 00 26 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 10 [08:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:22:35]wFMCommunicate OK [08:22:35]requested_item fd.num is exist - process it [08:22:35]SAM_PROTO_GetFieldsCounters [08:22:35]wFMCommunicate request_size=4 [08:22:35]MH_SAM_APDU [08:22:35]CAPDU: 80 13 00 00 [08:22:35]Write to MH i2c: E2 08 00 27 19 80 13 00 00 00 00 00 00 BC [08:22:35]Write i2c OK [08:22:35]MH_I2C_Read... [08:22:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:35]Read from MH i2c: E2 [08:22:35]MH_I2C_Read... [08:22:35]Read from MH i2c: E2 62 00 [08:22:35]MH_I2C_Read... [08:22:35]Read from MH i2c: E2 62 00 27 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 B6 [08:22:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 [08:22:35]wFMCommunicate OK [08:22:35]SAM_PROTO_GetFieldsCounters done [08:22:35]requested_item shift.num is exist - process it [08:22:35]requested_item shift.opened is exist - process it [08:22:35]req_shift_opened [08:22:35]FM_GetShiftState [08:22:35]SAM_PROTO_GetShiftState [08:22:35]wFMCommunicate request_size=4 [08:22:35]MH_SAM_APDU [08:22:35]CAPDU: 80 13 01 00 [08:22:35]Write to MH i2c: E2 08 00 28 19 80 13 01 00 00 00 00 00 BE [08:22:35]Write i2c OK [08:22:35]MH_I2C_Read... [08:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:35]Read from MH i2c: E2 [08:22:35]MH_I2C_Read... [08:22:35]Read from MH i2c: E2 0E 00 [08:22:35]MH_I2C_Read... [08:22:35]Read from MH i2c: E2 0E 00 28 19 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 C5 [08:22:35]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:22:35]wFMCommunicate OK [08:22:35]SAM_PROTO_GetShiftState done [08:22:35]FM_GetShiftState done [08:22:35]req_shift_opened done [08:22:35]requested_item shift.open_date is exist - process it [08:22:35]req_shift_open_date [08:22:35]req_shift_open_date done [08:22:35]produce_requested_data done [08:22:35]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123512,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [08:22:35]process_action_free close_receipt [08:22:35]json_value_free [08:22:35]json_value_free done [08:22:35]process_json_proto returns [08:22:35]Send response to host [08:22:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123512,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [08:22:35]free response buf [08:22:35]execute_script done [08:22:35]execute_script returns [08:22:35]free content buf [08:22:35]Sock 9.Close socket [08:22:35]Sock 9.Thread stoped [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]OFD Sender: No OFD packet to send [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]OFD Sender: No OFD packet to send [08:24:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:28]OFD Sender: No OFD packet to send [08:25:33]OFD Sender: No OFD packet to send [08:25:38]OFD Sender: No OFD packet to send [08:25:43]OFD Sender: No OFD packet to send [08:25:48]OFD Sender: No OFD packet to send [08:25:53]OFD Sender: No OFD packet to send [08:25:58]OFD Sender: No OFD packet to send [08:26:03]OFD Sender: No OFD packet to send [08:26:08]OFD Sender: No OFD packet to send [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:28]OFD Sender: No OFD packet to send [08:26:33]OFD Sender: No OFD packet to send [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:09]OFD Sender: No OFD packet to send [08:34:11]accept exits with 8 [08:34:11]New connection [08:34:11]New thread 3066862948 created [08:34:11]Thread 3066719588 joined [08:34:11]Waiting for new connection... [08:34:11] Sock 8.Parse request [08:34:11]Sock 8.Check first char [08:34:11]Sock 8.First char is OK [08:34:11]request: POST /json_proto HTTP/1.0 [08:34:11]Method: POST [08:34:11]URL: /json_proto [08:34:11]Method is POST - this is cgi request [08:34:11]url: /json_proto [08:34:11]query_string will be loaded in cgi processing [08:34:11]execute_cgi json_proto POST (null) [08:34:11]execute_cgi path=json_proto method=POST [08:34:11]POST find Content-Length [08:34:11]Host: 172.17.37.4:8080 [08:34:11]Content-Length: 677 [08:34:11]Content-Type: application/json [08:34:11] [08:34:11]POST finish read [08:34:11]Found Content-Length = 677 [08:34:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718345", "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" : 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" ] } } [08:34:11]execute_script... [08:34: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)718345", "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" : 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" ] } } [08:34:11]POST & json_proto [08:34:11]process_json_proto [08:34:11]json parsed OK: [08:34:11]protocol is kg_v1.0 [08:34:11]action value=close_receipt [08:34:11]process_action close_receipt [08:34:11]cmd_close_receipt [08:34:11]MH_GetDate [08:34:11]Write to MH i2c: F0 00 00 29 19 31 [08:34:11]Write i2c OK [08:34:11]MH_I2C_Read... [08:34:11]Read from MH i2c: F0 [08:34:11]MH_I2C_Read... [08:34:11]Read from MH i2c: F0 09 00 [08:34:11]MH_I2C_Read... [08:34:11]Read from MH i2c: F0 09 00 29 19 00 07 2B 48 67 1D 3A 47 67 20 [08:34:11]GetLastDocTimeStamp 1732782154 [08:34:11]current date 1732782855 [08:34:11]FM_GetShiftState [08:34:11]SAM_PROTO_GetShiftState [08:34:11]wFMCommunicate request_size=4 [08:34:11]MH_SAM_APDU [08:34:11]CAPDU: 80 13 01 00 [08:34:11]Write to MH i2c: E2 08 00 2A 19 80 13 01 00 00 00 00 00 C0 [08:34:11]Write i2c OK [08:34:11]MH_I2C_Read... [08:34:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:11]Read from MH i2c: E2 [08:34:11]MH_I2C_Read... [08:34:11]Read from MH i2c: E2 0E 00 [08:34:11]MH_I2C_Read... [08:34:11]Read from MH i2c: E2 0E 00 2A 19 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 C7 [08:34:11]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:34:11]wFMCommunicate OK [08:34:11]SAM_PROTO_GetShiftState done [08:34:11]FM_GetShiftState done [08:34:11]opened in 1732752282 [08:34:11]opened+sec_in_day 1732838682 [08:34:11]quantity*price = 60053 [08:34:11]sum+1 = 60054 [08:34:11]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 СНО: Общий режим Чек 25 28.11.2024 08:34 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123513 ФПД: 28409626181833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T083415&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123513&fm=28409626181833&tin=02508201610067®Number=0000000000092681&sum=60000 [08:34:12]StoreToDocumentArchive [08:34:12]shift 559 fd 123513 [08:34:12]save to /storage/0559/doc_00123513 [08:34:12]save last doc name /storage/0559/doc_00123513 to /storage/kkm_last_doc_name [08:34:12]save OK [08:34:12]Clear old archive folders... [08:34:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:34:12]tlvbuf is B6EAB140 [08:34:12]SAM_PROTO_ClearQueue [08:34:12]wFMCommunicate request_size=4 [08:34:12]MH_SAM_APDU [08:34:12]CAPDU: 80 09 00 00 [08:34:12]Write to MH i2c: E2 08 00 37 19 80 09 00 00 00 00 00 00 C2 [08:34:12]Write i2c OK [08:34:12]MH_I2C_Read... [08:34:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:12]Read from MH i2c: E2 [08:34:12]MH_I2C_Read... [08:34:12]Read from MH i2c: E2 03 00 [08:34:12]MH_I2C_Read... [08:34:12]Read from MH i2c: E2 03 00 37 19 00 90 00 C4 [08:34:12]RAPDU: 90 00 [08:34:12]wFMCommunicate OK [08:34:12]SAM_PROTO_ClearQueue done [08:34:12]KKMCreateOFDPacket [08:34:12]OFDProtocolAddRootSTLVToBuf [08:34:12]FM_MakeSignedData [08:34:12]FM_MakeSignedData [08:34:12]SAM_PROTO_SignData [08:34:12]wFMCommunicate request_size=4 [08:34:12]MH_SAM_APDU [08:34:12]CAPDU: 80 0D 01 02 [08:34:12]Write to MH i2c: E2 08 00 38 19 80 0D 01 02 00 00 00 00 CA [08:34:12]Write i2c OK [08:34:12]MH_I2C_Read... [08:34:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:13]Read from MH i2c: E2 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: E2 03 00 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: E2 03 00 38 19 00 90 00 C5 [08:34:13]RAPDU: 90 00 [08:34:13]wFMCommunicate OK [08:34:13]wFMCommunicate request_size=255 [08:34:13]MH_SAM_APDU [08:34: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 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 19 00 00 00 F4 03 04 00 07 2B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 19 [08:34:13]Write to MH i2c: E2 02 01 39 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 19 00 00 00 F4 03 04 00 07 2B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 19 00 00 FF [08:34:13]Write i2c OK [08:34:13]MH_I2C_Read... [08:34:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:13]Read from MH i2c: E2 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: E2 03 00 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: E2 03 00 39 19 00 90 00 C6 [08:34:13]RAPDU: 90 00 [08:34:13]wFMCommunicate OK [08:34:13]wFMCommunicate request_size=10 [08:34:13]MH_SAM_APDU [08:34:13]CAPDU: 80 0D 02 02 05 D6 A1 AD 40 C9 [08:34:13]Write to MH i2c: E2 0D 00 3A 19 80 0D 02 02 05 00 D6 A1 AD 40 C9 00 00 04 [08:34:13]Write i2c OK [08:34:13]MH_I2C_Read... [08:34:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:13]Read from MH i2c: E2 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: E2 03 00 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: E2 03 00 3A 19 00 90 00 C7 [08:34:13]RAPDU: 90 00 [08:34:13]wFMCommunicate OK [08:34:13]wFMCommunicate request_size=4 [08:34:13]MH_SAM_APDU [08:34:13]CAPDU: 80 0D 03 02 [08:34:13]Write to MH i2c: E2 08 00 3B 19 80 0D 03 02 00 00 00 00 CF [08:34:13]Write i2c OK [08:34:13]MH_I2C_Read... [08:34:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:13]Read from MH i2c: E2 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: E2 0B 00 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: E2 0B 00 3B 19 00 70 B0 9A 56 DA 01 35 24 90 00 14 [08:34:13]RAPDU: 70 B0 9A 56 DA 01 35 24 90 00 [08:34:13]wFMCommunicate OK [08:34:13]SAM_PROTO_SignData done [08:34:13]FM_MakeSignedData done [08:34:13]CreateOFDProtocolMessage [08:34:13]wFMCommunicate request_size=4 [08:34:13]MH_SAM_APDU [08:34:13]CAPDU: 80 11 00 00 [08:34:13]Write to MH i2c: E2 08 00 3C 19 80 11 00 00 00 00 00 00 CF [08:34:13]Write i2c OK [08:34:13]MH_I2C_Read... [08:34:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:13]Read from MH i2c: E2 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: E2 17 00 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: E2 17 00 3C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 26 [08: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 [08:34:13]wFMCommunicate OK [08:34:13]CreateOFDProtocolMessage done [08:34:13]OFDSenderStorePacket 123513 [08:34:13]StoreOFDPacket docnum=123513 [08:34: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 0F 01 00 00 7C 94 07 01 3D 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 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 19 00 00 00 F4 03 04 00 07 2B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 19 D6 A1 AD 40 C9 70 B0 9A 56 DA 01 35 24 [08:34:13]CheckFolder [08:34:13]dirname=/storage/ofd_packets [08:34:13]CheckFolder done [08:34:13]ProducePacketName [08:34:13]name=ofd_packets/00123513 [08:34:13]NVStorageSaveData ofd_packets/00123513 [08:34:13]File name is /storage/ofd_packets/00123513 [08:34:13]Write 301 bytes [08:34:13]NVStorageSaveData done [08:34:13]OFDSenderStorePacket done [08:34:13]KKMCreateOFDPacket done [08:34:13]NVStorageSaveData kkm_last_timestamp [08:34:13]File name is /storage/kkm_last_timestamp [08:34:13]Write 4 bytes [08:34:13]NVStorageSaveData done [08:34:13]ExternCall_PrintAddStr [08:34:13]wPrintStart [08:34:13]Write to MH i2c: 01 00 00 3D 19 56 [08:34:13]Write i2c OK [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: 01 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: 01 07 00 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: 01 07 00 3D 19 00 00 00 00 00 FF 0F 6B [08:34:13]RasterBufferAndPrint [08:34:13]line Счет N : (1)718345 [08:34:13]line ИНН: 02508201610067 [08:34:13]line Контрольно-Кассовый Чек [08:34:13]line ПРОДАЖА [08:34:13]line ТРК (МРК, ГНК) : 22 [08:34:13]line Товар: 2710124130 [08:34:13]line Аи-92-К-4 [08:34:13]line 8.910 * 67.40 [08:34:13]line = 600.53 [08:34:13]line НДС 12% НСП 1% [08:34:13]line > о реализуемом товаре [08:34:13]line ОКРУГЛЕНИЕ: -0.53 [08:34:13]line ИТОГО: 600.00 [08:34:13]line Внесено: 600.00 [08:34:13]line СДАЧА: 0.00 [08:34:13]line НСП 1% : 5.31 [08:34:13]line НДС 12% : 63.77 [08:34:13]line Наличными: 600.00 [08:34:13]line Безнал.: 0.00 [08:34:13]line Место: АЗС № 64 "Партнер Нефть" [08:34:13]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [08:34:13]line СНО: Общий режим [08:34:13]line Чек 25 28.11.2024 08:34 [08:34:13]line Смена: 559 ФФД: 1.0 [08:34:13]line ЗНМ: 0300000033 [08:34:13]line РНМ: 0000000000092681 [08:34:13]line Версия ККМ: 001 [08:34:13]line ФМ: 0000000000874881 [08:34:13]line ФД: 123513 [08:34:13]line ФПД: 28409626181833 [08:34:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T083415&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123513&fm=28409626181833&tin=02508201610067®Number=0000000000092681&sum=60000 [08:34:13]OFD Sender: Processing packet 123513 [packets to send 7, broken 6] [08:34:13]ProducePacketName [08:34:13]name=ofd_packets/00123513 [08:34:13]OFD Sender: To server: pG, [08:34:13]CommunicateWithHost lk.salyk.kg:30040 [08:34:13]ConnectInit lk.salyk.kg [08:34:13]written 0, free lines is 4095 [08:34:13]Connected sock=10 [08:34:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 7C 94 07 01 3D 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 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 19 00 00 00 F4 03 04 00 07 2B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 19 D6 A1 AD 40 C9 70 B0 9A 56 DA 01 35 24 [08:34: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 84 59 47 00 C0 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 79 E2 01 00 F4 03 04 00 CE D6 47 67 B6 04 01 00 00 37 03 43 3A A6 4B A4 C7 [08:34:14]CommunicateWithHost err = 0 [08:34:14]CheckOFDResponse [08:34:14]1017 (14) - 77093643461234 [08:34:14]1041 (16) - 0000000000874881 [08:34:14]1040 (4) - 123513 [08:34:14]1012 (4) - 28.11.2024 02:34 [08:34:14]1206 (1) - 0 [08:34:14]OFD Sender: Remove packet 123513 [08:34:14]ProducePacketName [08:34:14]name=ofd_packets/00123513 [08:34:14]NVStorageDeleteData [08:34:14]Write to MH i2c: 01 00 00 68 19 81 [08:34:14]Write i2c OK [08:34:14]MH_I2C_Read... [08:34:14]Read from MH i2c: 01 [08:34:14]MH_I2C_Read... [08:34:14]Read from MH i2c: 01 07 00 [08:34:14]MH_I2C_Read... [08:34:14]Read from MH i2c: 01 07 00 68 19 00 00 00 00 00 3F 0C D3 [08:34:14]RasterBufferAndPrint [08:34:14]line [08:34:14]line [08:34:14]line [08:34:14]line [08:34:14]line [08:34:14]written 0, free lines is 3139 [08:34:14]MH_Cut [08:34:14]Write to MH i2c: D1 01 00 6F 19 01 5A [08:34:14]Write i2c OK [08:34:14]MH_I2C_Read... [08:34:14]Read from MH i2c: D1 [08:34:14]MH_I2C_Read... [08:34:14]Read from MH i2c: D1 01 00 [08:34:14]MH_I2C_Read... [08:34:14]Read from MH i2c: D1 01 00 6F 19 00 59 [08:34:14]Write to MH i2c: 01 00 00 70 19 89 [08:34:14]Write i2c OK [08:34:14]MH_I2C_Read... [08:34:14]OFD Sender: No OFD packet to send [08:34:15]*** Cut start [08:34:15]*** Partial cut [08:34:15]*** CUTSNS_PIN = 1 [08:34:15]*** CUTSNS_PIN = 0 [08:34:15]*** Brake cut motor [08:34:16]Read from MH i2c: 01 [08:34:16]MH_I2C_Read... [08:34:16]*** Stop cut motor [08:34:16]*** Cut end [08:34:16]Read from MH i2c: 01 07 00 [08:34:16]MH_I2C_Read... [08:34:16]Read from MH i2c: 01 07 00 70 19 00 00 00 00 00 FF 0F 9E [08:34:16]process_action close_receipt done [08:34:16]requested_data is exist [08:34:16]produce_requested_data [08:34:16]requested_item fm.sn is exist - process it [08:34:16]wFMCommunicate request_size=4 [08:34:16]MH_SAM_APDU [08:34:16]CAPDU: 80 11 00 00 [08:34:16]Write to MH i2c: E2 08 00 71 19 80 11 00 00 00 00 00 00 04 [08:34:16]Write i2c OK [08:34:16]MH_I2C_Read... [08:34:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:16]Read from MH i2c: E2 [08:34:16]MH_I2C_Read... [08:34:16]Read from MH i2c: E2 17 00 [08:34:16]MH_I2C_Read... [08:34:16]Read from MH i2c: E2 17 00 71 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5B [08:34:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:34:16]wFMCommunicate OK [08:34:16]requested_item fd.num is exist - process it [08:34:16]SAM_PROTO_GetFieldsCounters [08:34:16]wFMCommunicate request_size=4 [08:34:16]MH_SAM_APDU [08:34:16]CAPDU: 80 13 00 00 [08:34:16]Write to MH i2c: E2 08 00 72 19 80 13 00 00 00 00 00 00 07 [08:34:16]Write i2c OK [08:34:16]MH_I2C_Read... [08:34:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:16]Read from MH i2c: E2 [08:34:16]MH_I2C_Read... [08:34:16]Read from MH i2c: E2 62 00 [08:34:16]MH_I2C_Read... [08:34:16]Read from MH i2c: E2 62 00 72 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 05 [08:34:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 [08:34:16]wFMCommunicate OK [08:34:16]SAM_PROTO_GetFieldsCounters done [08:34:16]requested_item shift.num is exist - process it [08:34:16]requested_item shift.opened is exist - process it [08:34:16]req_shift_opened [08:34:16]FM_GetShiftState [08:34:16]SAM_PROTO_GetShiftState [08:34:16]wFMCommunicate request_size=4 [08:34:16]MH_SAM_APDU [08:34:16]CAPDU: 80 13 01 00 [08:34:16]Write to MH i2c: E2 08 00 73 19 80 13 01 00 00 00 00 00 09 [08:34:16]Write i2c OK [08:34:16]MH_I2C_Read... [08:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:16]Read from MH i2c: E2 [08:34:16]MH_I2C_Read... [08:34:16]Read from MH i2c: E2 0E 00 [08:34:16]MH_I2C_Read... [08:34:16]Read from MH i2c: E2 0E 00 73 19 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 10 [08:34:16]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:34:16]wFMCommunicate OK [08:34:16]SAM_PROTO_GetShiftState done [08:34:16]FM_GetShiftState done [08:34:16]req_shift_opened done [08:34:16]requested_item shift.open_date is exist - process it [08:34:16]req_shift_open_date [08:34:16]req_shift_open_date done [08:34:16]produce_requested_data done [08:34:16]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123513,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [08:34:16]process_action_free close_receipt [08:34:16]json_value_free [08:34:16]json_value_free done [08:34:16]process_json_proto returns [08:34:16]Send response to host [08:34:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123513,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [08:34:16]free response buf [08:34:16]execute_script done [08:34:16]execute_script returns [08:34:16]free content buf [08:34:16]Sock 8.Close socket [08:34:16]Sock 8.Thread stoped [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:01]accept exits with 9 [08:39:01]New connection [08:39:01]New thread 3066719588 created [08:39:01]Thread 3066862948 joined [08:39:01]Waiting for new connection... [08:39:01] Sock 9.Parse request [08:39:01]Sock 9.Check first char [08:39:01]Sock 9.First char is OK [08:39:01]request: POST /json_proto HTTP/1.0 [08:39:01]Method: POST [08:39:01]URL: /json_proto [08:39:01]Method is POST - this is cgi request [08:39:01]url: /json_proto [08:39:01]query_string will be loaded in cgi processing [08:39:01]execute_cgi json_proto POST (null) [08:39:01]execute_cgi path=json_proto method=POST [08:39:01]POST find Content-Length [08:39:01]Host: 172.17.37.4:8080 [08:39:01]Content-Length: 792 [08:39:01]Content-Type: application/json [08:39:01] [08:39:01]POST finish read [08:39:01]Found Content-Length = 792 [08:39:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718346", "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" : 14.840, "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" ] } } [08:39:01]execute_script... [08:39: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)718346", "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" : 14.840, "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" ] } } [08:39:01]POST & json_proto [08:39:01]process_json_proto [08:39:01]json parsed OK: [08:39:01]protocol is kg_v1.0 [08:39:01]action value=close_receipt [08:39:01]process_action close_receipt [08:39:01]cmd_close_receipt [08:39:01]MH_GetDate [08:39:01]Write to MH i2c: F0 00 00 74 19 7C [08:39:01]Write i2c OK [08:39:01]MH_I2C_Read... [08:39:01]Read from MH i2c: F0 [08:39:01]MH_I2C_Read... [08:39:01]Read from MH i2c: F0 09 00 [08:39:01]MH_I2C_Read... [08:39:01]Read from MH i2c: F0 09 00 74 19 00 29 2C 48 67 1D 3A 47 67 8E [08:39:01]GetLastDocTimeStamp 1732782855 [08:39:01]current date 1732783145 [08:39:01]FM_GetShiftState [08:39:01]SAM_PROTO_GetShiftState [08:39:01]wFMCommunicate request_size=4 [08:39:01]MH_SAM_APDU [08:39:01]CAPDU: 80 13 01 00 [08:39:01]Write to MH i2c: E2 08 00 75 19 80 13 01 00 00 00 00 00 0B [08:39:01]Write i2c OK [08:39:01]MH_I2C_Read... [08:39:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:01]Read from MH i2c: E2 [08:39:01]MH_I2C_Read... [08:39:01]Read from MH i2c: E2 0E 00 [08:39:01]MH_I2C_Read... [08:39:01]Read from MH i2c: E2 0E 00 75 19 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 12 [08:39:01]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:39:01]wFMCommunicate OK [08:39:01]SAM_PROTO_GetShiftState done [08:39:01]FM_GetShiftState done [08:39:01]opened in 1732752282 [08:39:01]opened+sec_in_day 1732838682 [08:39:01]quantity*price = 0 [08:39:01]sum+1 = 1 [08:39: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 СНО: Общий режим Чек 26 28.11.2024 08:39 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 02992 ФМ: 0000000000874881 ФД: 123514 ФПД: 144755706338237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T083905&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123514&fm=144755706338237&tin=02508201610067®Number=0000000000092681&sum=0 [08:39:02]StoreToDocumentArchive [08:39:02]shift 559 fd 123514 [08:39:02]save to /storage/0559/doc_00123514 [08:39:02]save last doc name /storage/0559/doc_00123514 to /storage/kkm_last_doc_name [08:39:02]save OK [08:39:02]Clear old archive folders... [08:39:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:39:02]tlvbuf is B6EAB1D0 [08:39:02]SAM_PROTO_ClearQueue [08:39:02]wFMCommunicate request_size=4 [08:39:02]MH_SAM_APDU [08:39:02]CAPDU: 80 09 00 00 [08:39:02]Write to MH i2c: E2 08 00 82 19 80 09 00 00 00 00 00 00 0D [08:39:02]Write i2c OK [08:39:02]MH_I2C_Read... [08:39:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:39:02]Read from MH i2c: E2 [08:39:02]MH_I2C_Read... [08:39:02]Read from MH i2c: E2 03 00 [08:39:02]MH_I2C_Read... [08:39:02]Read from MH i2c: E2 03 00 82 19 00 90 00 0F [08:39:02]RAPDU: 90 00 [08:39:02]wFMCommunicate OK [08:39:02]SAM_PROTO_ClearQueue done [08:39:02]KKMCreateOFDPacket [08:39:02]OFDProtocolAddRootSTLVToBuf [08:39:02]FM_MakeSignedData [08:39:02]FM_MakeSignedData [08:39:02]SAM_PROTO_SignData [08:39:02]wFMCommunicate request_size=4 [08:39:02]MH_SAM_APDU [08:39:02]CAPDU: 80 0D 01 02 [08:39:02]Write to MH i2c: E2 08 00 83 19 80 0D 01 02 00 00 00 00 15 [08:39:02]Write i2c OK [08:39:02]MH_I2C_Read... [08:39:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:39:02]Read from MH i2c: E2 [08:39:02]MH_I2C_Read... [08:39:02]Read from MH i2c: E2 03 00 [08:39:02]MH_I2C_Read... [08:39:02]Read from MH i2c: E2 03 00 83 19 00 90 00 10 [08:39:02]RAPDU: 90 00 [08:39:02]wFMCommunicate OK [08:39:02]wFMCommunicate request_size=255 [08:39:02]MH_SAM_APDU [08:39: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 F8 39 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 29 2C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 83 [08:39:02]Write to MH i2c: E2 02 01 84 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 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 29 2C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 83 00 00 83 [08:39:02]Write i2c OK [08:39:02]MH_I2C_Read... [08:39:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:02]Read from MH i2c: E2 [08:39:02]MH_I2C_Read... [08:39:02]Read from MH i2c: E2 03 00 [08:39:02]MH_I2C_Read... [08:39:02]Read from MH i2c: E2 03 00 84 19 00 90 00 11 [08:39:02]RAPDU: 90 00 [08:39:02]wFMCommunicate OK [08:39:02]wFMCommunicate request_size=10 [08:39:02]MH_SAM_APDU [08:39:02]CAPDU: 80 0D 02 02 05 A7 90 74 9B BD [08:39:02]Write to MH i2c: E2 0D 00 85 19 80 0D 02 02 05 00 A7 90 74 9B BD 00 00 25 [08:39:02]Write i2c OK [08:39:02]MH_I2C_Read... [08:39:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:02]Read from MH i2c: E2 [08:39:02]MH_I2C_Read... [08:39:02]Read from MH i2c: E2 03 00 [08:39:02]MH_I2C_Read... [08:39:02]Read from MH i2c: E2 03 00 85 19 00 90 00 12 [08:39:02]RAPDU: 90 00 [08:39:02]wFMCommunicate OK [08:39:02]wFMCommunicate request_size=4 [08:39:02]MH_SAM_APDU [08:39:02]CAPDU: 80 0D 03 02 [08:39:02]Write to MH i2c: E2 08 00 86 19 80 0D 03 02 00 00 00 00 1A [08:39:02]Write i2c OK [08:39:02]MH_I2C_Read... [08:39:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:39:02]Read from MH i2c: E2 [08:39:02]MH_I2C_Read... [08:39:02]Read from MH i2c: E2 0B 00 [08:39:02]MH_I2C_Read... [08:39:02]Read from MH i2c: E2 0B 00 86 19 00 C6 49 57 1F 31 2C 07 95 90 00 99 [08:39:02]RAPDU: C6 49 57 1F 31 2C 07 95 90 00 [08:39:02]wFMCommunicate OK [08:39:02]SAM_PROTO_SignData done [08:39:02]FM_MakeSignedData done [08:39:02]CreateOFDProtocolMessage [08:39:02]wFMCommunicate request_size=4 [08:39:02]MH_SAM_APDU [08:39:02]CAPDU: 80 11 00 00 [08:39:02]Write to MH i2c: E2 08 00 87 19 80 11 00 00 00 00 00 00 1A [08:39:02]Write i2c OK [08:39:02]MH_I2C_Read... [08:39:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:02]Read from MH i2c: E2 [08:39:02]MH_I2C_Read... [08:39:02]Read from MH i2c: E2 17 00 [08:39:02]MH_I2C_Read... [08:39:02]Read from MH i2c: E2 17 00 87 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 71 [08:39:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:39:02]wFMCommunicate OK [08:39:02]CreateOFDProtocolMessage done [08:39:02]OFDSenderStorePacket 123514 [08:39:02]StoreOFDPacket docnum=123514 [08:39: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 0F 01 00 00 66 88 07 01 03 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 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 29 2C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 83 A7 90 74 9B BD C6 49 57 1F 31 2C 07 95 [08:39:02]CheckFolder [08:39:02]dirname=/storage/ofd_packets [08:39:02]CheckFolder done [08:39:02]ProducePacketName [08:39:02]name=ofd_packets/00123514 [08:39:02]NVStorageSaveData ofd_packets/00123514 [08:39:02]File name is /storage/ofd_packets/00123514 [08:39:02]Write 301 bytes [08:39:02]NVStorageSaveData done [08:39:02]OFDSenderStorePacket done [08:39:02]KKMCreateOFDPacket done [08:39:02]NVStorageSaveData kkm_last_timestamp [08:39:02]File name is /storage/kkm_last_timestamp [08:39:02]Write 4 bytes [08:39:02]NVStorageSaveData done [08:39:02]ExternCall_PrintAddStr [08:39:02]wPrintStart [08:39:02]Write to MH i2c: 01 00 00 88 19 A1 [08:39:02]Write i2c OK [08:39:02]MH_I2C_Read... [08:39:02]Read from MH i2c: 01 [08:39:02]MH_I2C_Read... [08:39:02]Read from MH i2c: 01 07 00 [08:39:02]MH_I2C_Read... [08:39:02]Read from MH i2c: 01 07 00 88 19 00 00 00 00 00 FF 0F B6 [08:39:02]RasterBufferAndPrint [08:39:02]line Счет N : (1)718346 [08:39:02]line ИНН: 02508201610067 [08:39:02]line Контрольно-Кассовый Чек [08:39:02]line ПРОДАЖА [08:39:02]line ТРК (МРК, ГНК) : 22 [08:39:02]line Товар: 2710124130 [08:39:02]line Аи-92-К-4 [08:39:02]line 14.840 * 0.00 [08:39:02]line = 0.00 [08:39:02]line НДС 12% НСП 1% [08:39:02]line > о реализуемом товаре [08:39:02]line ИТОГО: 0.00 [08:39:02]line НСП 1% : 0.00 [08:39:02]line НДС 12% : 0.00 [08:39:02]line Наличными: 0.00 [08:39:02]line Безнал.: 0.00 [08:39:02]line Место: АЗС № 64 "Партнер Нефть" [08:39:02]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [08:39:02]line СНО: Общий режим [08:39:02]line Чек 26 28.11.2024 08:39 [08:39:02]line Смена: 559 ФФД: 1.0 [08:39:02]line ЗНМ: 0300000033 [08:39:02]line РНМ: 0000000000092681 [08:39:02]line Версия ККМ: 001 [08:39:02]line Талоны: Топливная Карта [08:39:02]line 02992 [08:39:02]line ФМ: 0000000000874881 [08:39:02]line ФД: 123514 [08:39:02]line ФПД: 144755706338237 [08:39:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T083905&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123514&fm=144755706338237&tin=02508201610067®Number=0000000000092681&sum=0 [08:39:02]written 0, free lines is 4095 [08:39:02]OFD Sender: Processing packet 123514 [packets to send 7, broken 6] [08:39:02]ProducePacketName [08:39:02]name=ofd_packets/00123514 [08:39:02]OFD Sender: To server: pG, [08:39:02]CommunicateWithHost lk.salyk.kg:30040 [08:39:02]ConnectInit lk.salyk.kg [08:39:02]Connected sock=10 [08:39: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 66 88 07 01 03 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 39 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 29 2C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 83 A7 90 74 9B BD C6 49 57 1F 31 2C 07 95 [08:39: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 1D D7 47 00 FF F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7A E2 01 00 F4 03 04 00 EF D7 47 67 B6 04 01 00 00 C9 32 5B 10 BB 64 96 23 [08:39:03]CommunicateWithHost err = 0 [08:39:03]CheckOFDResponse [08:39:03]1017 (14) - 77093643461234 [08:39:03]1041 (16) - 0000000000874881 [08:39:03]1040 (4) - 123514 [08:39:03]1012 (4) - 28.11.2024 02:39 [08:39:03]1206 (1) - 0 [08:39:03]OFD Sender: Remove packet 123514 [08:39:03]ProducePacketName [08:39:03]name=ofd_packets/00123514 [08:39:03]NVStorageDeleteData [08:39:03]Write to MH i2c: 01 00 00 B2 19 CB [08:39:03]Write i2c OK [08:39:03]MH_I2C_Read... [08:39:03]Read from MH i2c: 01 [08:39:03]MH_I2C_Read... [08:39:03]Read from MH i2c: 01 07 00 [08:39:03]MH_I2C_Read... [08:39:03]Read from MH i2c: 01 07 00 B2 19 00 00 00 00 00 6E 0C 4C [08:39:03]RasterBufferAndPrint [08:39:03]line [08:39:03]line [08:39:03]line [08:39:03]line [08:39:03]line [08:39:03]written 0, free lines is 3186 [08:39:03]MH_Cut [08:39:03]Write to MH i2c: D1 01 00 B9 19 01 A4 [08:39:03]Write i2c OK [08:39:03]MH_I2C_Read... [08:39:03]Read from MH i2c: D1 [08:39:03]MH_I2C_Read... [08:39:03]Read from MH i2c: D1 01 00 [08:39:03]MH_I2C_Read... [08:39:03]Read from MH i2c: D1 01 00 B9 19 00 A3 [08:39:03]Write to MH i2c: 01 00 00 BA 19 D3 [08:39:03]Write i2c OK [08:39:03]MH_I2C_Read... [08:39:03]OFD Sender: No OFD packet to send [08:39:04]*** Cut start [08:39:04]*** Partial cut [08:39:04]*** CUTSNS_PIN = 1 [08:39:04]*** CUTSNS_PIN = 0 [08:39:04]*** Brake cut motor [08:39:05]Read from MH i2c: 01 [08:39:05]MH_I2C_Read... [08:39:05]*** Stop cut motor [08:39:05]*** Cut end [08:39:05]Read from MH i2c: 01 07 00 [08:39:05]MH_I2C_Read... [08:39:05]Read from MH i2c: 01 07 00 BA 19 00 00 00 00 00 FF 0F E8 [08:39:05]process_action close_receipt done [08:39:05]requested_data is exist [08:39:05]produce_requested_data [08:39:05]requested_item fm.sn is exist - process it [08:39:05]wFMCommunicate request_size=4 [08:39:05]MH_SAM_APDU [08:39:05]CAPDU: 80 11 00 00 [08:39:05]Write to MH i2c: E2 08 00 BB 19 80 11 00 00 00 00 00 00 4E [08:39:05]Write i2c OK [08:39:05]MH_I2C_Read... [08:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:05]Read from MH i2c: E2 [08:39:05]MH_I2C_Read... [08:39:05]Read from MH i2c: E2 17 00 [08:39:05]MH_I2C_Read... [08:39:05]Read from MH i2c: E2 17 00 BB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A5 [08:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:39:05]wFMCommunicate OK [08:39:05]requested_item fd.num is exist - process it [08:39:05]SAM_PROTO_GetFieldsCounters [08:39:05]wFMCommunicate request_size=4 [08:39:05]MH_SAM_APDU [08:39:05]CAPDU: 80 13 00 00 [08:39:05]Write to MH i2c: E2 08 00 BC 19 80 13 00 00 00 00 00 00 51 [08:39:05]Write i2c OK [08:39:05]MH_I2C_Read... [08:39:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:05]Read from MH i2c: E2 [08:39:05]MH_I2C_Read... [08:39:05]Read from MH i2c: E2 62 00 [08:39:05]MH_I2C_Read... [08:39:05]Read from MH i2c: E2 62 00 BC 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 53 [08:39: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 7A E2 01 00 0E 04 04 00 2F 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 [08:39:05]wFMCommunicate OK [08:39:05]SAM_PROTO_GetFieldsCounters done [08:39:05]requested_item shift.num is exist - process it [08:39:05]requested_item shift.opened is exist - process it [08:39:05]req_shift_opened [08:39:05]FM_GetShiftState [08:39:05]SAM_PROTO_GetShiftState [08:39:05]wFMCommunicate request_size=4 [08:39:05]MH_SAM_APDU [08:39:05]CAPDU: 80 13 01 00 [08:39:05]Write to MH i2c: E2 08 00 BD 19 80 13 01 00 00 00 00 00 53 [08:39:05]Write i2c OK [08:39:05]MH_I2C_Read... [08:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:05]Read from MH i2c: E2 [08:39:05]MH_I2C_Read... [08:39:05]Read from MH i2c: E2 0E 00 [08:39:05]MH_I2C_Read... [08:39:05]Read from MH i2c: E2 0E 00 BD 19 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 5A [08:39:05]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:39:05]wFMCommunicate OK [08:39:05]SAM_PROTO_GetShiftState done [08:39:05]FM_GetShiftState done [08:39:05]req_shift_opened done [08:39:05]requested_item shift.open_date is exist - process it [08:39:05]req_shift_open_date [08:39:05]req_shift_open_date done [08:39:05]produce_requested_data done [08:39:05]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123514,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [08:39:05]process_action_free close_receipt [08:39:05]json_value_free [08:39:05]json_value_free done [08:39:05]process_json_proto returns [08:39:05]Send response to host [08:39:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123514,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [08:39:05]free response buf [08:39:05]execute_script done [08:39:05]execute_script returns [08:39:05]free content buf [08:39:05]Sock 9.Close socket [08:39:05]Sock 9.Thread stoped [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:04]accept exits with 8 [08:40:04]New connection [08:40:04]New thread 3066862948 created [08:40:04]Thread 3066719588 joined [08:40:04]Waiting for new connection... [08:40:04] Sock 8.Parse request [08:40:04]Sock 8.Check first char [08:40:04]Sock 8.First char is OK [08:40:04]request: POST /json_proto HTTP/1.0 [08:40:04]Method: POST [08:40:04]URL: /json_proto [08:40:04]Method is POST - this is cgi request [08:40:04]url: /json_proto [08:40:04]query_string will be loaded in cgi processing [08:40:04]execute_cgi json_proto POST (null) [08:40:04]execute_cgi path=json_proto method=POST [08:40:04]POST find Content-Length [08:40:04]Host: 172.17.37.4:8080 [08:40:04]Content-Length: 753 [08:40:04]Content-Type: application/json [08:40:04] [08:40:04]POST finish read [08:40:04]Found Content-Length = 753 [08:40:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718347", "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" : 7.420, "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\u000A30155560", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:04]execute_script... [08: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)718347", "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" : 7.420, "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\u000A30155560", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:04]POST & json_proto [08:40:04]process_json_proto [08:40:04]json parsed OK: [08:40:04]protocol is kg_v1.0 [08:40:04]action value=close_receipt [08:40:04]process_action close_receipt [08:40:04]cmd_close_receipt [08:40:04]MH_GetDate [08:40:04]Write to MH i2c: F0 00 00 BE 19 C6 [08:40:04]Write i2c OK [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: F0 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: F0 09 00 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: F0 09 00 BE 19 00 68 2C 48 67 1D 3A 47 67 17 [08:40:04]GetLastDocTimeStamp 1732783145 [08:40:04]current date 1732783208 [08:40:04]FM_GetShiftState [08:40:04]SAM_PROTO_GetShiftState [08:40:04]wFMCommunicate request_size=4 [08:40:04]MH_SAM_APDU [08:40:04]CAPDU: 80 13 01 00 [08:40:04]Write to MH i2c: E2 08 00 BF 19 80 13 01 00 00 00 00 00 55 [08:40:04]Write i2c OK [08:40:04]MH_I2C_Read... [08:40:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:04]Read from MH i2c: E2 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 0E 00 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 0E 00 BF 19 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 5C [08:40:04]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:40:04]wFMCommunicate OK [08:40:04]SAM_PROTO_GetShiftState done [08:40:04]FM_GetShiftState done [08:40:04]opened in 1732752282 [08:40:04]opened+sec_in_day 1732838682 [08:40:04]quantity*price = 0 [08:40:04]sum+1 = 1 [08:40:04]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 СНО: Общий режим Чек 27 28.11.2024 08:40 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: ТК ГПНА Online 30155560 ФМ: 0000000000874881 ФД: 123515 ФПД: 239681124968880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T084008&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123515&fm=239681124968880&tin=02508201610067®Number=0000000000092681&sum=0 [08:40:05]StoreToDocumentArchive [08:40:05]shift 559 fd 123515 [08:40:05]save to /storage/0559/doc_00123515 [08:40:05]save last doc name /storage/0559/doc_00123515 to /storage/kkm_last_doc_name [08:40:05]save OK [08:40:05]Clear old archive folders... [08:40:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:05]tlvbuf is 0149CFA0 [08:40:05]SAM_PROTO_ClearQueue [08:40:05]wFMCommunicate request_size=4 [08:40:05]MH_SAM_APDU [08:40:05]CAPDU: 80 09 00 00 [08:40:05]Write to MH i2c: E2 08 00 CC 19 80 09 00 00 00 00 00 00 57 [08:40:05]Write i2c OK [08:40:05]MH_I2C_Read... [08:40:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:05]Read from MH i2c: E2 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: E2 03 00 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: E2 03 00 CC 19 00 90 00 59 [08:40:05]RAPDU: 90 00 [08:40:05]wFMCommunicate OK [08:40:05]SAM_PROTO_ClearQueue done [08:40:05]KKMCreateOFDPacket [08:40:05]OFDProtocolAddRootSTLVToBuf [08:40:05]FM_MakeSignedData [08:40:05]FM_MakeSignedData [08:40:05]SAM_PROTO_SignData [08:40:05]wFMCommunicate request_size=4 [08:40:05]MH_SAM_APDU [08:40:05]CAPDU: 80 0D 01 02 [08:40:05]Write to MH i2c: E2 08 00 CD 19 80 0D 01 02 00 00 00 00 5F [08:40:05]Write i2c OK [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: E2 [08:40:05]MH_I2C_Read... [08:40:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:05]Read from MH i2c: E2 03 00 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: E2 03 00 CD 19 00 90 00 5A [08:40:05]RAPDU: 90 00 [08:40:05]wFMCommunicate OK [08:40:05]wFMCommunicate request_size=255 [08:40:05]MH_SAM_APDU [08:40: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 FC 1C 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 1B 00 00 00 F4 03 04 00 68 2C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D9 [08:40:05]Write to MH i2c: E2 02 01 CE 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 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 1B 00 00 00 F4 03 04 00 68 2C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D9 00 00 4B [08:40:05]Write i2c OK [08:40:05]MH_I2C_Read... [08:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:05]Read from MH i2c: E2 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: E2 03 00 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: E2 03 00 CE 19 00 90 00 5B [08:40:05]RAPDU: 90 00 [08:40:05]wFMCommunicate OK [08:40:05]wFMCommunicate request_size=10 [08:40:05]MH_SAM_APDU [08:40:05]CAPDU: 80 0D 02 02 05 FD 1C 50 29 B0 [08:40:05]Write to MH i2c: E2 0D 00 CF 19 80 0D 02 02 05 00 FD 1C 50 29 B0 00 00 AE [08:40:05]Write i2c OK [08:40:05]MH_I2C_Read... [08:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:05]Read from MH i2c: E2 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: E2 03 00 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: E2 03 00 CF 19 00 90 00 5C [08:40:05]RAPDU: 90 00 [08:40:05]wFMCommunicate OK [08:40:05]wFMCommunicate request_size=4 [08:40:05]MH_SAM_APDU [08:40:05]CAPDU: 80 0D 03 02 [08:40:05]Write to MH i2c: E2 08 00 D0 19 80 0D 03 02 00 00 00 00 64 [08:40:05]Write i2c OK [08:40:05]MH_I2C_Read... [08:40:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:05]Read from MH i2c: E2 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: E2 0B 00 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: E2 0B 00 D0 19 00 0A B3 10 75 7B 9D C4 1C 90 00 9F [08:40:05]RAPDU: 0A B3 10 75 7B 9D C4 1C 90 00 [08:40:05]wFMCommunicate OK [08:40:05]SAM_PROTO_SignData done [08:40:05]FM_MakeSignedData done [08:40:05]CreateOFDProtocolMessage [08:40:05]wFMCommunicate request_size=4 [08:40:05]MH_SAM_APDU [08:40:05]CAPDU: 80 11 00 00 [08:40:05]Write to MH i2c: E2 08 00 D1 19 80 11 00 00 00 00 00 00 64 [08:40:05]Write i2c OK [08:40:05]MH_I2C_Read... [08:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:05]Read from MH i2c: E2 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: E2 17 00 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: E2 17 00 D1 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BB [08: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 [08:40:05]wFMCommunicate OK [08:40:05]CreateOFDProtocolMessage done [08:40:05]OFDSenderStorePacket 123515 [08:40:05]StoreOFDPacket docnum=123515 [08: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 0F 01 00 00 99 17 07 01 57 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 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 1B 00 00 00 F4 03 04 00 68 2C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D9 FD 1C 50 29 B0 0A B3 10 75 7B 9D C4 1C [08:40:05]CheckFolder [08:40:05]dirname=/storage/ofd_packets [08:40:05]CheckFolder done [08:40:05]ProducePacketName [08:40:05]name=ofd_packets/00123515 [08:40:05]NVStorageSaveData ofd_packets/00123515 [08:40:05]File name is /storage/ofd_packets/00123515 [08:40:05]Write 301 bytes [08:40:05]NVStorageSaveData done [08:40:05]OFDSenderStorePacket done [08:40:05]KKMCreateOFDPacket done [08:40:05]NVStorageSaveData kkm_last_timestamp [08:40:05]File name is /storage/kkm_last_timestamp [08:40:05]Write 4 bytes [08:40:05]NVStorageSaveData done [08:40:05]ExternCall_PrintAddStr [08:40:05]wPrintStart [08:40:05]Write to MH i2c: 01 00 00 D2 19 EB [08:40:05]Write i2c OK [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: 01 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: 01 07 00 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: 01 07 00 D2 19 00 00 00 00 00 FF 0F 00 [08:40:05]RasterBufferAndPrint [08:40:05]line Счет N : (1)718347 [08:40:05]line ИНН: 02508201610067 [08:40:05]line Контрольно-Кассовый Чек [08:40:05]line ПРОДАЖА [08:40:05]line ТРК (МРК, ГНК) : 32 [08:40:05]line Товар: 2710124130 [08:40:05]line Аи-92-К-4 [08:40:05]line 7.420 * 0.00 [08:40:05]line = 0.00 [08:40:05]line НДС 12% НСП 1% [08:40:05]line > о реализуемом товаре [08:40:05]line ИТОГО: 0.00 [08:40:05]line НСП 1% : 0.00 [08:40:05]line НДС 12% : 0.00 [08:40:05]line Наличными: 0.00 [08:40:05]line Безнал.: 0.00 [08:40:05]line Место: АЗС № 64 "Партнер Нефть" [08:40:05]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [08:40:05]line СНО: Общий режим [08:40:05]line Чек 27 28.11.2024 08:40 [08:40:05]line Смена: 559 ФФД: 1.0 [08:40:05]line ЗНМ: 0300000033 [08:40:05]line РНМ: 0000000000092681 [08:40:05]line Версия ККМ: 001 [08:40:05]line Талоны: ТК ГПНА Online [08:40:05]line 30155560 [08:40:05]line ФМ: 0000000000874881 [08:40:05]line ФД: 123515 [08:40:05]line ФПД: 239681124968880 [08:40:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T084008&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123515&fm=239681124968880&tin=02508201610067®Number=0000000000092681&sum=0 [08:40:06]OFD Sender: Processing packet 123515 [packets to send 7, broken 6] [08:40:06]ProducePacketName [08:40:06]name=ofd_packets/00123515 [08:40:06]OFD Sender: To server: pG, [08:40:06]CommunicateWithHost lk.salyk.kg:30040 [08:40:06]ConnectInit lk.salyk.kg [08:40:06]written 0, free lines is 4095 [08:40:06]Connected sock=10 [08: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 0F 01 00 00 99 17 07 01 57 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 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 1B 00 00 00 F4 03 04 00 68 2C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D9 FD 1C 50 29 B0 0A B3 10 75 7B 9D C4 1C [08: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 47 AC 47 00 99 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 7B E2 01 00 F4 03 04 00 2E D8 47 67 B6 04 01 00 00 F0 F1 E3 E0 2F 9E 3C 36 [08:40:06]CommunicateWithHost err = 0 [08:40:06]CheckOFDResponse [08:40:06]1017 (14) - 77093643461234 [08:40:06]1041 (16) - 0000000000874881 [08:40:06]1040 (4) - 123515 [08:40:06]1012 (4) - 28.11.2024 02:40 [08:40:06]1206 (1) - 0 [08:40:06]OFD Sender: Remove packet 123515 [08:40:06]ProducePacketName [08:40:06]name=ofd_packets/00123515 [08:40:06]NVStorageDeleteData [08:40:06]Write to MH i2c: 01 00 00 FC 19 15 [08:40:06]Write i2c OK [08:40:06]MH_I2C_Read... [08:40:06]Read from MH i2c: 01 [08:40:06]MH_I2C_Read... [08:40:06]Read from MH i2c: 01 07 00 [08:40:06]MH_I2C_Read... [08:40:06]Read from MH i2c: 01 07 00 FC 19 00 00 00 00 00 6C 0C 94 [08:40:06]RasterBufferAndPrint [08:40:06]line [08:40:06]line [08:40:06]line [08:40:06]line [08:40:06]line [08:40:06]written 0, free lines is 3184 [08:40:06]MH_Cut [08:40:06]Write to MH i2c: D1 01 00 03 1A 01 EF [08:40:06]Write i2c OK [08:40:06]MH_I2C_Read... [08:40:06]Read from MH i2c: D1 [08:40:06]MH_I2C_Read... [08:40:06]Read from MH i2c: D1 01 00 [08:40:06]MH_I2C_Read... [08:40:06]Read from MH i2c: D1 01 00 03 1A 00 EE [08:40:06]Write to MH i2c: 01 00 00 04 1A 1E [08:40:06]Write i2c OK [08:40:06]MH_I2C_Read... [08:40:07]OFD Sender: No OFD packet to send [08:40:08]*** Cut start [08:40:08]*** Partial cut [08:40:08]*** CUTSNS_PIN = 1 [08:40:08]*** CUTSNS_PIN = 0 [08:40:08]*** Brake cut motor [08:40:08]Read from MH i2c: 01 [08:40:08]MH_I2C_Read... [08:40:08]*** Stop cut motor [08:40:08]*** Cut end [08:40:08]Read from MH i2c: 01 07 00 [08:40:08]MH_I2C_Read... [08:40:08]Read from MH i2c: 01 07 00 04 1A 00 00 00 00 00 FF 0F 33 [08:40:08]process_action close_receipt done [08:40:08]requested_data is exist [08:40:08]produce_requested_data [08:40:08]requested_item fm.sn is exist - process it [08:40:08]wFMCommunicate request_size=4 [08:40:08]MH_SAM_APDU [08:40:08]CAPDU: 80 11 00 00 [08:40:08]Write to MH i2c: E2 08 00 05 1A 80 11 00 00 00 00 00 00 99 [08:40:08]Write i2c OK [08:40:08]MH_I2C_Read... [08:40:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:08]Read from MH i2c: E2 [08:40:08]MH_I2C_Read... [08:40:08]Read from MH i2c: E2 17 00 [08:40:08]MH_I2C_Read... [08:40:08]Read from MH i2c: E2 17 00 05 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F0 [08: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 [08:40:08]wFMCommunicate OK [08:40:08]requested_item fd.num is exist - process it [08:40:08]SAM_PROTO_GetFieldsCounters [08:40:08]wFMCommunicate request_size=4 [08:40:08]MH_SAM_APDU [08:40:08]CAPDU: 80 13 00 00 [08:40:08]Write to MH i2c: E2 08 00 06 1A 80 13 00 00 00 00 00 00 9C [08:40:08]Write i2c OK [08:40:08]MH_I2C_Read... [08:40:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:08]Read from MH i2c: E2 [08:40:08]MH_I2C_Read... [08:40:08]Read from MH i2c: E2 62 00 [08:40:08]MH_I2C_Read... [08:40:08]Read from MH i2c: E2 62 00 06 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 A2 [08: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 7B E2 01 00 0E 04 04 00 2F 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 [08:40:08]wFMCommunicate OK [08:40:08]SAM_PROTO_GetFieldsCounters done [08:40:08]requested_item shift.num is exist - process it [08:40:08]requested_item shift.opened is exist - process it [08:40:08]req_shift_opened [08:40:08]FM_GetShiftState [08:40:08]SAM_PROTO_GetShiftState [08:40:08]wFMCommunicate request_size=4 [08:40:08]MH_SAM_APDU [08:40:08]CAPDU: 80 13 01 00 [08:40:08]Write to MH i2c: E2 08 00 07 1A 80 13 01 00 00 00 00 00 9E [08:40:08]Write i2c OK [08:40:08]MH_I2C_Read... [08:40:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:08]Read from MH i2c: E2 [08:40:08]MH_I2C_Read... [08:40:08]Read from MH i2c: E2 0E 00 [08:40:08]MH_I2C_Read... [08:40:08]Read from MH i2c: E2 0E 00 07 1A 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 A5 [08:40:08]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:40:08]wFMCommunicate OK [08:40:08]SAM_PROTO_GetShiftState done [08:40:08]FM_GetShiftState done [08:40:08]req_shift_opened done [08:40:08]requested_item shift.open_date is exist - process it [08:40:08]req_shift_open_date [08:40:08]req_shift_open_date done [08:40:08]produce_requested_data done [08:40:08]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123515,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [08:40:08]process_action_free close_receipt [08:40:08]json_value_free [08:40:08]json_value_free done [08:40:08]process_json_proto returns [08:40:08]Send response to host [08:40:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123515,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [08:40:08]free response buf [08:40:08]execute_script done [08:40:08]execute_script returns [08:40:08]free content buf [08:40:08]Sock 8.Close socket [08:40:08]Sock 8.Thread stoped [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]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:55]accept exits with 9 [08:42:55]New connection [08:42:55]New thread 3066719588 created [08:42:55]Thread 3066862948 joined [08:42:55]Waiting for new connection... [08:42:55] Sock 9.Parse request [08:42:55]Sock 9.Check first char [08:42:55]Sock 9.First char is OK [08:42:55]request: POST /json_proto HTTP/1.0 [08:42:55]Method: POST [08:42:55]URL: /json_proto [08:42:55]Method is POST - this is cgi request [08:42:55]url: /json_proto [08:42:55]query_string will be loaded in cgi processing [08:42:55]execute_cgi json_proto POST (null) [08:42:55]execute_cgi path=json_proto method=POST [08:42:55]POST find Content-Length [08:42:55]Host: 172.17.37.4:8080 [08:42:55]Content-Length: 753 [08:42:55]Content-Type: application/json [08:42:55] [08:42:55]POST finish read [08:42:55]Found Content-Length = 753 [08:42:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718348", "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" : 8.910, "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\u000A30155560", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:55]execute_script... [08:42: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)718348", "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" : 8.910, "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\u000A30155560", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:55]POST & json_proto [08:42:55]process_json_proto [08:42:55]json parsed OK: [08:42:55]protocol is kg_v1.0 [08:42:55]action value=close_receipt [08:42:55]process_action close_receipt [08:42:55]cmd_close_receipt [08:42:55]MH_GetDate [08:42:55]Write to MH i2c: F0 00 00 08 1A 11 [08:42:55]Write i2c OK [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: F0 [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: F0 09 00 [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: F0 09 00 08 1A 00 13 2D 48 67 1D 3A 47 67 0E [08:42:55]GetLastDocTimeStamp 1732783208 [08:42:55]current date 1732783379 [08:42:55]FM_GetShiftState [08:42:55]SAM_PROTO_GetShiftState [08:42:55]wFMCommunicate request_size=4 [08:42:55]MH_SAM_APDU [08:42:55]CAPDU: 80 13 01 00 [08:42:55]Write to MH i2c: E2 08 00 09 1A 80 13 01 00 00 00 00 00 A0 [08:42:55]Write i2c OK [08:42:55]MH_I2C_Read... [08:42:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:55]Read from MH i2c: E2 [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: E2 0E 00 [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: E2 0E 00 09 1A 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 A7 [08:42:55]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:42:55]wFMCommunicate OK [08:42:55]SAM_PROTO_GetShiftState done [08:42:55]FM_GetShiftState done [08:42:55]opened in 1732752282 [08:42:55]opened+sec_in_day 1732838682 [08:42:55]quantity*price = 0 [08:42:55]sum+1 = 1 [08:42:55]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 28.11.2024 08:42 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: ТК ГПНА Online 30155560 ФМ: 0000000000874881 ФД: 123516 ФПД: 27728161756680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T084259&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123516&fm=27728161756680&tin=02508201610067®Number=0000000000092681&sum=0 [08:42:56]StoreToDocumentArchive [08:42:56]shift 559 fd 123516 [08:42:56]save to /storage/0559/doc_00123516 [08:42:56]save last doc name /storage/0559/doc_00123516 to /storage/kkm_last_doc_name [08:42:56]save OK [08:42:56]Clear old archive folders... [08:42:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:56]tlvbuf is 014E0A10 [08:42:56]SAM_PROTO_ClearQueue [08:42:56]wFMCommunicate request_size=4 [08:42:56]MH_SAM_APDU [08:42:56]CAPDU: 80 09 00 00 [08:42:56]Write to MH i2c: E2 08 00 16 1A 80 09 00 00 00 00 00 00 A2 [08:42:56]Write i2c OK [08:42:56]MH_I2C_Read... [08:42:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:56]Read from MH i2c: E2 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 03 00 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 03 00 16 1A 00 90 00 A4 [08:42:56]RAPDU: 90 00 [08:42:56]wFMCommunicate OK [08:42:56]SAM_PROTO_ClearQueue done [08:42:56]KKMCreateOFDPacket [08:42:56]OFDProtocolAddRootSTLVToBuf [08:42:56]FM_MakeSignedData [08:42:56]FM_MakeSignedData [08:42:56]SAM_PROTO_SignData [08:42:56]wFMCommunicate request_size=4 [08:42:56]MH_SAM_APDU [08:42:56]CAPDU: 80 0D 01 02 [08:42:56]Write to MH i2c: E2 08 00 17 1A 80 0D 01 02 00 00 00 00 AA [08:42:56]Write i2c OK [08:42:56]MH_I2C_Read... [08:42:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:56]Read from MH i2c: E2 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 03 00 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 03 00 17 1A 00 90 00 A5 [08:42:56]RAPDU: 90 00 [08:42:56]wFMCommunicate OK [08:42:56]wFMCommunicate request_size=255 [08:42:56]MH_SAM_APDU [08:42: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 CE 22 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 1C 00 00 00 F4 03 04 00 13 2D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 19 [08:42:56]Write to MH i2c: E2 02 01 18 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CE 22 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 1C 00 00 00 F4 03 04 00 13 2D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 19 00 00 5C [08:42:56]Write i2c OK [08:42:56]MH_I2C_Read... [08:42:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:56]Read from MH i2c: E2 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 03 00 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 03 00 18 1A 00 90 00 A6 [08:42:56]RAPDU: 90 00 [08:42:56]wFMCommunicate OK [08:42:56]wFMCommunicate request_size=10 [08:42:56]MH_SAM_APDU [08:42:56]CAPDU: 80 0D 02 02 05 37 F7 3B 56 08 [08:42:56]Write to MH i2c: E2 0D 00 19 1A 80 0D 02 02 05 00 37 F7 3B 56 08 00 00 7E [08:42:56]Write i2c OK [08:42:56]MH_I2C_Read... [08:42:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:56]Read from MH i2c: E2 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 03 00 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 03 00 19 1A 00 90 00 A7 [08:42:56]RAPDU: 90 00 [08:42:56]wFMCommunicate OK [08:42:56]wFMCommunicate request_size=4 [08:42:56]MH_SAM_APDU [08:42:56]CAPDU: 80 0D 03 02 [08:42:56]Write to MH i2c: E2 08 00 1A 1A 80 0D 03 02 00 00 00 00 AF [08:42:56]Write i2c OK [08:42:56]MH_I2C_Read... [08:42:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:56]Read from MH i2c: E2 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 0B 00 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 0B 00 1A 1A 00 6D C0 D9 8F 9E AB 39 41 90 00 08 [08:42:56]RAPDU: 6D C0 D9 8F 9E AB 39 41 90 00 [08:42:56]wFMCommunicate OK [08:42:56]SAM_PROTO_SignData done [08:42:56]FM_MakeSignedData done [08:42:56]CreateOFDProtocolMessage [08:42:56]wFMCommunicate request_size=4 [08:42:56]MH_SAM_APDU [08:42:56]CAPDU: 80 11 00 00 [08:42:56]Write to MH i2c: E2 08 00 1B 1A 80 11 00 00 00 00 00 00 AF [08:42:56]Write i2c OK [08:42:56]MH_I2C_Read... [08:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:56]Read from MH i2c: E2 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 17 00 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 17 00 1B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 06 [08:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:42:56]wFMCommunicate OK [08:42:56]CreateOFDProtocolMessage done [08:42:56]OFDSenderStorePacket 123516 [08:42:56]StoreOFDPacket docnum=123516 [08:42: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 0F 01 00 00 66 C6 07 01 2D F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 13 2D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 19 37 F7 3B 56 08 6D C0 D9 8F 9E AB 39 41 [08:42:56]CheckFolder [08:42:56]dirname=/storage/ofd_packets [08:42:56]CheckFolder done [08:42:56]ProducePacketName [08:42:56]name=ofd_packets/00123516 [08:42:56]NVStorageSaveData ofd_packets/00123516 [08:42:56]File name is /storage/ofd_packets/00123516 [08:42:56]Write 301 bytes [08:42:56]NVStorageSaveData done [08:42:56]OFDSenderStorePacket done [08:42:56]KKMCreateOFDPacket done [08:42:56]NVStorageSaveData kkm_last_timestamp [08:42:56]File name is /storage/kkm_last_timestamp [08:42:56]Write 4 bytes [08:42:56]NVStorageSaveData done [08:42:56]ExternCall_PrintAddStr [08:42:56]wPrintStart [08:42:56]Write to MH i2c: 01 00 00 1C 1A 36 [08:42:56]Write i2c OK [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: 01 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: 01 07 00 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: 01 07 00 1C 1A 00 00 00 00 00 FF 0F 4B [08:42:56]RasterBufferAndPrint [08:42:56]line Счет N : (1)718348 [08:42:56]line ИНН: 02508201610067 [08:42:56]line Контрольно-Кассовый Чек [08:42:56]line ПРОДАЖА [08:42:56]line ТРК (МРК, ГНК) : 12 [08:42:56]line Товар: 2710124130 [08:42:56]line Аи-92-К-4 [08:42:56]line 8.910 * 0.00 [08:42:56]line = 0.00 [08:42:56]line НДС 12% НСП 1% [08:42:56]line > о реализуемом товаре [08:42:56]line ИТОГО: 0.00 [08:42:56]line НСП 1% : 0.00 [08:42:56]line НДС 12% : 0.00 [08:42:56]line Наличными: 0.00 [08:42:56]line Безнал.: 0.00 [08:42:56]line Место: АЗС № 64 "Партнер Нефть" [08:42:56]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [08:42:56]line СНО: Общий режим [08:42:56]line Чек 28 28.11.2024 08:42 [08:42:56]line Смена: 559 ФФД: 1.0 [08:42:56]line ЗНМ: 0300000033 [08:42:56]line РНМ: 0000000000092681 [08:42:56]line Версия ККМ: 001 [08:42:56]line Талоны: ТК ГПНА Online [08:42:56]line 30155560 [08:42:56]line ФМ: 0000000000874881 [08:42:56]line ФД: 123516 [08:42:56]line ФПД: 27728161756680 [08:42:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T084259&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123516&fm=27728161756680&tin=02508201610067®Number=0000000000092681&sum=0 [08:42:56]written 0, free lines is 4095 [08:42:56]OFD Sender: Processing packet 123516 [packets to send 7, broken 6] [08:42:56]ProducePacketName [08:42:56]name=ofd_packets/00123516 [08:42:56]OFD Sender: To server: pG, [08:42:56]CommunicateWithHost lk.salyk.kg:30040 [08:42:56]ConnectInit lk.salyk.kg [08:42:57]Connected sock=10 [08:42: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 66 C6 07 01 2D F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 13 2D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 19 37 F7 3B 56 08 6D C0 D9 8F 9E AB 39 41 [08:42: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 52 D3 47 00 91 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 7C E2 01 00 F4 03 04 00 D9 D8 47 67 B6 04 01 00 00 7F 1A 6C 5A F6 3A 7B 97 [08:42:57]CommunicateWithHost err = 0 [08:42:57]CheckOFDResponse [08:42:57]1017 (14) - 77093643461234 [08:42:57]1041 (16) - 0000000000874881 [08:42:57]1040 (4) - 123516 [08:42:57]1012 (4) - 28.11.2024 02:43 [08:42:57]1206 (1) - 0 [08:42:57]OFD Sender: Remove packet 123516 [08:42:57]ProducePacketName [08:42:57]name=ofd_packets/00123516 [08:42:57]NVStorageDeleteData [08:42:57]Write to MH i2c: 01 00 00 46 1A 60 [08:42:57]Write i2c OK [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: 01 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: 01 07 00 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: 01 07 00 46 1A 00 00 00 00 00 6F 0C E2 [08:42:57]RasterBufferAndPrint [08:42:57]line [08:42:57]line [08:42:57]line [08:42:57]line [08:42:57]line [08:42:57]written 0, free lines is 3190 [08:42:57]MH_Cut [08:42:57]Write to MH i2c: D1 01 00 4D 1A 01 39 [08:42:57]Write i2c OK [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: D1 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: D1 01 00 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: D1 01 00 4D 1A 00 38 [08:42:57]Write to MH i2c: 01 00 00 4E 1A 68 [08:42:57]Write i2c OK [08:42:57]MH_I2C_Read... [08:42:57]OFD Sender: No OFD packet to send [08:42:58]*** Cut start [08:42:58]*** Partial cut [08:42:58]*** CUTSNS_PIN = 1 [08:42:58]*** CUTSNS_PIN = 0 [08:42:59]*** Brake cut motor [08:42:59]Read from MH i2c: 01 [08:42:59]MH_I2C_Read... [08:42:59]*** Stop cut motor [08:42:59]*** Cut end [08:42:59]Read from MH i2c: 01 07 00 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: 01 07 00 4E 1A 00 00 00 00 00 FF 0F 7D [08:42:59]process_action close_receipt done [08:42:59]requested_data is exist [08:42:59]produce_requested_data [08:42:59]requested_item fm.sn is exist - process it [08:42:59]wFMCommunicate request_size=4 [08:42:59]MH_SAM_APDU [08:42:59]CAPDU: 80 11 00 00 [08:42:59]Write to MH i2c: E2 08 00 4F 1A 80 11 00 00 00 00 00 00 E3 [08:42:59]Write i2c OK [08:42:59]MH_I2C_Read... [08:42:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:59]Read from MH i2c: E2 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 17 00 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 17 00 4F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3A [08:42:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:42:59]wFMCommunicate OK [08:42:59]requested_item fd.num is exist - process it [08:42:59]SAM_PROTO_GetFieldsCounters [08:42:59]wFMCommunicate request_size=4 [08:42:59]MH_SAM_APDU [08:42:59]CAPDU: 80 13 00 00 [08:42:59]Write to MH i2c: E2 08 00 50 1A 80 13 00 00 00 00 00 00 E6 [08:42:59]Write i2c OK [08:42:59]MH_I2C_Read... [08:42:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:59]Read from MH i2c: E2 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 62 00 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 62 00 50 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 F0 [08:42: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 7C E2 01 00 0E 04 04 00 2F 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 [08:42:59]wFMCommunicate OK [08:42:59]SAM_PROTO_GetFieldsCounters done [08:42:59]requested_item shift.num is exist - process it [08:42:59]requested_item shift.opened is exist - process it [08:42:59]req_shift_opened [08:42:59]FM_GetShiftState [08:42:59]SAM_PROTO_GetShiftState [08:42:59]wFMCommunicate request_size=4 [08:42:59]MH_SAM_APDU [08:42:59]CAPDU: 80 13 01 00 [08:42:59]Write to MH i2c: E2 08 00 51 1A 80 13 01 00 00 00 00 00 E8 [08:42:59]Write i2c OK [08:42:59]MH_I2C_Read... [08:42:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:59]Read from MH i2c: E2 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 0E 00 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 0E 00 51 1A 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 EF [08:42:59]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:42:59]wFMCommunicate OK [08:42:59]SAM_PROTO_GetShiftState done [08:42:59]FM_GetShiftState done [08:42:59]req_shift_opened done [08:42:59]requested_item shift.open_date is exist - process it [08:42:59]req_shift_open_date [08:42:59]req_shift_open_date done [08:42:59]produce_requested_data done [08:42:59]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123516,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [08:42:59]process_action_free close_receipt [08:42:59]json_value_free [08:42:59]json_value_free done [08:42:59]process_json_proto returns [08:42:59]Send response to host [08:42:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123516,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [08:42:59]free response buf [08:42:59]execute_script done [08:42:59]execute_script returns [08:42:59]free content buf [08:42:59]Sock 9.Close socket [08:42:59]Sock 9.Thread stoped [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:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:38]OFD Sender: No OFD packet to send [08:48:43]OFD Sender: No OFD packet to send [08:48:48]OFD Sender: No OFD packet to send [08:48:53]OFD Sender: No OFD packet to send [08:48:58]OFD Sender: No OFD packet to send [08:49:03]OFD Sender: No OFD packet to send [08:49:08]OFD Sender: No OFD packet to send [08:49:13]OFD Sender: No OFD packet to send [08:49:18]OFD Sender: No OFD packet to send [08:49:23]OFD Sender: No OFD packet to send [08:49:28]OFD Sender: No OFD packet to send [08:49:33]OFD Sender: No OFD packet to send [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:43]OFD Sender: No OFD packet to send [08:50:48]OFD Sender: No OFD packet to send [08:50:53]OFD Sender: No OFD packet to send [08:50:58]OFD Sender: No OFD packet to send [08:51:03]OFD Sender: No OFD packet to send [08:51:08]OFD Sender: No OFD packet to send [08:51:13]OFD Sender: No OFD packet to send [08:51:18]OFD Sender: No OFD packet to send [08:51:23]OFD Sender: No OFD packet to send [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:54]accept exits with 8 [08:54:54]New connection [08:54:54]New thread 3066862948 created [08:54:54]Thread 3066719588 joined [08:54:54]Waiting for new connection... [08:54:54] Sock 8.Parse request [08:54:54]Sock 8.Check first char [08:54:54]Sock 8.First char is OK [08:54:54]request: POST /json_proto HTTP/1.0 [08:54:54]Method: POST [08:54:54]URL: /json_proto [08:54:54]Method is POST - this is cgi request [08:54:54]url: /json_proto [08:54:54]query_string will be loaded in cgi processing [08:54:54]execute_cgi json_proto POST (null) [08:54:54]execute_cgi path=json_proto method=POST [08:54:54]POST find Content-Length [08:54:54]Host: 172.17.37.4:8080 [08:54:54]Content-Length: 677 [08:54:54]Content-Type: application/json [08:54:54] [08:54:54]POST finish read [08:54:54]Found Content-Length = 677 [08:54:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718349", "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" ] } } [08:54:54]execute_script... [08:54: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)718349", "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" ] } } [08:54:54]POST & json_proto [08:54:54]process_json_proto [08:54:54]json parsed OK: [08:54:54]protocol is kg_v1.0 [08:54:54]action value=close_receipt [08:54:54]process_action close_receipt [08:54:54]cmd_close_receipt [08:54:54]MH_GetDate [08:54:54]Write to MH i2c: F0 00 00 52 1A 5B [08:54:54]Write i2c OK [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: F0 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: F0 09 00 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: F0 09 00 52 1A 00 E2 2F 48 67 1D 3A 47 67 29 [08:54:54]GetLastDocTimeStamp 1732783379 [08:54:54]current date 1732784098 [08:54:54]FM_GetShiftState [08:54:54]SAM_PROTO_GetShiftState [08:54:54]wFMCommunicate request_size=4 [08:54:54]MH_SAM_APDU [08:54:54]CAPDU: 80 13 01 00 [08:54:54]Write to MH i2c: E2 08 00 53 1A 80 13 01 00 00 00 00 00 EA [08:54:54]Write i2c OK [08:54:54]MH_I2C_Read... [08:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:54]Read from MH i2c: E2 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: E2 0E 00 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: E2 0E 00 53 1A 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 F1 [08:54:54]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:54:54]wFMCommunicate OK [08:54:54]SAM_PROTO_GetShiftState done [08:54:54]FM_GetShiftState done [08:54:54]opened in 1732752282 [08:54:54]opened+sec_in_day 1732838682 [08:54:54]quantity*price = 50010 [08:54:54]sum+1 = 50012 [08:54:54]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 СНО: Общий режим Чек 29 28.11.2024 08:54 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123517 ФПД: 54683647666599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T085458&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123517&fm=54683647666599&tin=02508201610067®Number=0000000000092681&sum=50000 [08:54:55]StoreToDocumentArchive [08:54:55]shift 559 fd 123517 [08:54:55]save to /storage/0559/doc_00123517 [08:54:55]save last doc name /storage/0559/doc_00123517 to /storage/kkm_last_doc_name [08:54:55]save OK [08:54:55]Clear old archive folders... [08:54:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:55]tlvbuf is B6E929B0 [08:54:55]SAM_PROTO_ClearQueue [08:54:55]wFMCommunicate request_size=4 [08:54:55]MH_SAM_APDU [08:54:55]CAPDU: 80 09 00 00 [08:54:55]Write to MH i2c: E2 08 00 60 1A 80 09 00 00 00 00 00 00 EC [08:54:55]Write i2c OK [08:54:55]MH_I2C_Read... [08:54:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:55]Read from MH i2c: E2 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 03 00 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 03 00 60 1A 00 90 00 EE [08:54:55]RAPDU: 90 00 [08:54:55]wFMCommunicate OK [08:54:55]SAM_PROTO_ClearQueue done [08:54:55]KKMCreateOFDPacket [08:54:55]OFDProtocolAddRootSTLVToBuf [08:54:55]FM_MakeSignedData [08:54:55]FM_MakeSignedData [08:54:55]SAM_PROTO_SignData [08:54:55]wFMCommunicate request_size=4 [08:54:55]MH_SAM_APDU [08:54:55]CAPDU: 80 0D 01 02 [08:54:55]Write to MH i2c: E2 08 00 61 1A 80 0D 01 02 00 00 00 00 F4 [08:54:55]Write i2c OK [08:54:55]MH_I2C_Read... [08:54:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:55]Read from MH i2c: E2 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 03 00 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 03 00 61 1A 00 90 00 EF [08:54:55]RAPDU: 90 00 [08:54:55]wFMCommunicate OK [08:54:55]wFMCommunicate request_size=255 [08:54:55]MH_SAM_APDU [08:54: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 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 1D 00 00 00 F4 03 04 00 E2 2F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 31 [08:54:55]Write to MH i2c: E2 02 01 62 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1D 00 00 00 F4 03 04 00 E2 2F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 31 00 00 FA [08:54:55]Write i2c OK [08:54:55]MH_I2C_Read... [08:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:56]Read from MH i2c: E2 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 03 00 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 03 00 62 1A 00 90 00 F0 [08:54:56]RAPDU: 90 00 [08:54:56]wFMCommunicate OK [08:54:56]wFMCommunicate request_size=10 [08:54:56]MH_SAM_APDU [08:54:56]CAPDU: 80 0D 02 02 05 BC 07 64 E9 A7 [08:54:56]Write to MH i2c: E2 0D 00 63 1A 80 0D 02 02 05 00 BC 07 64 E9 A7 00 00 B8 [08:54:56]Write i2c OK [08:54:56]MH_I2C_Read... [08:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:56]Read from MH i2c: E2 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 03 00 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 03 00 63 1A 00 90 00 F1 [08:54:56]RAPDU: 90 00 [08:54:56]wFMCommunicate OK [08:54:56]wFMCommunicate request_size=4 [08:54:56]MH_SAM_APDU [08:54:56]CAPDU: 80 0D 03 02 [08:54:56]Write to MH i2c: E2 08 00 64 1A 80 0D 03 02 00 00 00 00 F9 [08:54:56]Write i2c OK [08:54:56]MH_I2C_Read... [08:54:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:56]Read from MH i2c: E2 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 0B 00 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 0B 00 64 1A 00 CC 46 CC 22 78 4B 18 53 90 00 28 [08:54:56]RAPDU: CC 46 CC 22 78 4B 18 53 90 00 [08:54:56]wFMCommunicate OK [08:54:56]SAM_PROTO_SignData done [08:54:56]FM_MakeSignedData done [08:54:56]CreateOFDProtocolMessage [08:54:56]wFMCommunicate request_size=4 [08:54:56]MH_SAM_APDU [08:54:56]CAPDU: 80 11 00 00 [08:54:56]Write to MH i2c: E2 08 00 65 1A 80 11 00 00 00 00 00 00 F9 [08:54:56]Write i2c OK [08:54:56]MH_I2C_Read... [08:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:56]Read from MH i2c: E2 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 17 00 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 17 00 65 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 50 [08:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:54:56]wFMCommunicate OK [08:54:56]CreateOFDProtocolMessage done [08:54:56]OFDSenderStorePacket 123517 [08:54:56]StoreOFDPacket docnum=123517 [08:54: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 0F 01 00 00 5E FB 07 01 0A 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 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 1D 00 00 00 F4 03 04 00 E2 2F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 31 BC 07 64 E9 A7 CC 46 CC 22 78 4B 18 53 [08:54:56]CheckFolder [08:54:56]dirname=/storage/ofd_packets [08:54:56]CheckFolder done [08:54:56]ProducePacketName [08:54:56]name=ofd_packets/00123517 [08:54:56]NVStorageSaveData ofd_packets/00123517 [08:54:56]File name is /storage/ofd_packets/00123517 [08:54:56]Write 301 bytes [08:54:56]NVStorageSaveData done [08:54:56]OFDSenderStorePacket done [08:54:56]KKMCreateOFDPacket done [08:54:56]NVStorageSaveData kkm_last_timestamp [08:54:56]File name is /storage/kkm_last_timestamp [08:54:56]Write 4 bytes [08:54:56]NVStorageSaveData done [08:54:56]ExternCall_PrintAddStr [08:54:56]wPrintStart [08:54:56]Write to MH i2c: 01 00 00 66 1A 80 [08:54:56]Write i2c OK [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: 01 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: 01 07 00 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: 01 07 00 66 1A 00 00 00 00 00 FF 0F 95 [08:54:56]RasterBufferAndPrint [08:54:56]line Счет N : (1)718349 [08:54:56]line ИНН: 02508201610067 [08:54:56]line Контрольно-Кассовый Чек [08:54:56]line ПРОДАЖА [08:54:56]line ТРК (МРК, ГНК) : 12 [08:54:56]line Товар: 2710124130 [08:54:56]line Аи-92-К-4 [08:54:56]line 7.420 * 67.40 [08:54:56]line = 500.11 [08:54:56]line НДС 12% НСП 1% [08:54:56]line > о реализуемом товаре [08:54:56]line ОКРУГЛЕНИЕ: -0.11 [08:54:56]line ИТОГО: 500.00 [08:54:56]line Внесено: 500.00 [08:54:56]line СДАЧА: 0.00 [08:54:56]line НСП 1% : 4.43 [08:54:56]line НДС 12% : 53.11 [08:54:56]line Наличными: 500.00 [08:54:56]line Безнал.: 0.00 [08:54:56]line Место: АЗС № 64 "Партнер Нефть" [08:54:56]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [08:54:56]line СНО: Общий режим [08:54:56]line Чек 29 28.11.2024 08:54 [08:54:56]line Смена: 559 ФФД: 1.0 [08:54:56]line ЗНМ: 0300000033 [08:54:56]line РНМ: 0000000000092681 [08:54:56]line Версия ККМ: 001 [08:54:56]line ФМ: 0000000000874881 [08:54:56]line ФД: 123517 [08:54:56]line ФПД: 54683647666599 [08:54:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T085458&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123517&fm=54683647666599&tin=02508201610067®Number=0000000000092681&sum=50000 [08:54:56]OFD Sender: Processing packet 123517 [packets to send 7, broken 6] [08:54:56]ProducePacketName [08:54:56]name=ofd_packets/00123517 [08:54:56]OFD Sender: To server: pG, [08:54:56]CommunicateWithHost lk.salyk.kg:30040 [08:54:56]ConnectInit lk.salyk.kg [08:54:56]written 0, free lines is 4095 [08:54:56]Connected sock=10 [08:54: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 5E FB 07 01 0A 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 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 1D 00 00 00 F4 03 04 00 E2 2F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 31 BC 07 64 E9 A7 CC 46 CC 22 78 4B 18 53 [08:54: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 85 38 47 00 4D 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 7D E2 01 00 F4 03 04 00 A9 DB 47 67 B6 04 01 00 00 EC 93 71 03 50 FA E7 D3 [08:54:56]CommunicateWithHost err = 0 [08:54:56]CheckOFDResponse [08:54:56]1017 (14) - 77093643461234 [08:54:56]1041 (16) - 0000000000874881 [08:54:56]1040 (4) - 123517 [08:54:56]1012 (4) - 28.11.2024 02:55 [08:54:56]1206 (1) - 0 [08:54:56]OFD Sender: Remove packet 123517 [08:54:56]ProducePacketName [08:54:56]name=ofd_packets/00123517 [08:54:56]NVStorageDeleteData [08:54:57]Write to MH i2c: 01 00 00 91 1A AB [08:54:57]Write i2c OK [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: 01 [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: 01 07 00 [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: 01 07 00 91 1A 00 00 00 00 00 3B 0C F9 [08:54:57]RasterBufferAndPrint [08:54:57]line [08:54:57]line [08:54:57]line [08:54:57]line [08:54:57]line [08:54:57]written 0, free lines is 3136 [08:54:57]MH_Cut [08:54:57]Write to MH i2c: D1 01 00 98 1A 01 84 [08:54:57]Write i2c OK [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: D1 [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: D1 01 00 [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: D1 01 00 98 1A 00 83 [08:54:57]Write to MH i2c: 01 00 00 99 1A B3 [08:54:57]Write i2c OK [08:54:57]MH_I2C_Read... [08:54:57]OFD Sender: No OFD packet to send [08:54:58]*** Cut start [08:54:58]*** Partial cut [08:54:58]*** CUTSNS_PIN = 1 [08:54:58]*** CUTSNS_PIN = 0 [08:54:58]*** Brake cut motor [08:54:59]Read from MH i2c: 01 [08:54:59]MH_I2C_Read... [08:54:59]*** Stop cut motor [08:54:59]*** Cut end [08:54:59]Read from MH i2c: 01 07 00 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: 01 07 00 99 1A 00 00 00 00 00 FF 0F C8 [08:54:59]process_action close_receipt done [08:54:59]requested_data is exist [08:54:59]produce_requested_data [08:54:59]requested_item fm.sn is exist - process it [08:54:59]wFMCommunicate request_size=4 [08:54:59]MH_SAM_APDU [08:54:59]CAPDU: 80 11 00 00 [08:54:59]Write to MH i2c: E2 08 00 9A 1A 80 11 00 00 00 00 00 00 2E [08:54:59]Write i2c OK [08:54:59]MH_I2C_Read... [08:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:59]Read from MH i2c: E2 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: E2 17 00 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: E2 17 00 9A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 85 [08:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [08:54:59]wFMCommunicate OK [08:54:59]requested_item fd.num is exist - process it [08:54:59]SAM_PROTO_GetFieldsCounters [08:54:59]wFMCommunicate request_size=4 [08:54:59]MH_SAM_APDU [08:54:59]CAPDU: 80 13 00 00 [08:54:59]Write to MH i2c: E2 08 00 9B 1A 80 13 00 00 00 00 00 00 31 [08:54:59]Write i2c OK [08:54:59]MH_I2C_Read... [08:54:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:59]Read from MH i2c: E2 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: E2 62 00 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: E2 62 00 9B 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 3F [08:54: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 7D E2 01 00 0E 04 04 00 2F 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 [08:54:59]wFMCommunicate OK [08:54:59]SAM_PROTO_GetFieldsCounters done [08:54:59]requested_item shift.num is exist - process it [08:54:59]requested_item shift.opened is exist - process it [08:54:59]req_shift_opened [08:54:59]FM_GetShiftState [08:54:59]SAM_PROTO_GetShiftState [08:54:59]wFMCommunicate request_size=4 [08:54:59]MH_SAM_APDU [08:54:59]CAPDU: 80 13 01 00 [08:54:59]Write to MH i2c: E2 08 00 9C 1A 80 13 01 00 00 00 00 00 33 [08:54:59]Write i2c OK [08:54:59]MH_I2C_Read... [08:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:59]Read from MH i2c: E2 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: E2 0E 00 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: E2 0E 00 9C 1A 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 3A [08:54:59]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [08:54:59]wFMCommunicate OK [08:54:59]SAM_PROTO_GetShiftState done [08:54:59]FM_GetShiftState done [08:54:59]req_shift_opened done [08:54:59]requested_item shift.open_date is exist - process it [08:54:59]req_shift_open_date [08:54:59]req_shift_open_date done [08:54:59]produce_requested_data done [08:54:59]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123517,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [08:54:59]process_action_free close_receipt [08:54:59]json_value_free [08:54:59]json_value_free done [08:54:59]process_json_proto returns [08:54:59]Send response to host [08:54:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123517,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [08:54:59]free response buf [08:54:59]execute_script done [08:54:59]execute_script returns [08:54:59]free content buf [08:54:59]Sock 8.Close socket [08:54:59]Sock 8.Thread stoped [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:26]accept exits with 9 [09:01:26]New connection [09:01:26]New thread 3066719588 created [09:01:26]Thread 3066862948 joined [09:01:26]Waiting for new connection... [09:01:26] Sock 9.Parse request [09:01:26]Sock 9.Check first char [09:01:26]Sock 9.First char is OK [09:01:26]request: POST /json_proto HTTP/1.0 [09:01:26]Method: POST [09:01:26]URL: /json_proto [09:01:26]Method is POST - this is cgi request [09:01:26]url: /json_proto [09:01:26]query_string will be loaded in cgi processing [09:01:26]execute_cgi json_proto POST (null) [09:01:26]execute_cgi path=json_proto method=POST [09:01:26]POST find Content-Length [09:01:26]Host: 172.17.37.4:8080 [09:01:26]Content-Length: 677 [09:01:26]Content-Type: application/json [09:01:26] [09:01:26]POST finish read [09:01:26]Found Content-Length = 677 [09:01:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718352", "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" : 4.310, "sum" : 290.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:26]execute_script... [09:01:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718352", "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" : 4.310, "sum" : 290.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:26]POST & json_proto [09:01:26]process_json_proto [09:01:26]json parsed OK: [09:01:26]protocol is kg_v1.0 [09:01:26]action value=close_receipt [09:01:26]process_action close_receipt [09:01:26]cmd_close_receipt [09:01:26]MH_GetDate [09:01:26]Write to MH i2c: F0 00 00 9D 1A A6 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: F0 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: F0 09 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: F0 09 00 9D 1A 00 6A 31 48 67 1D 3A 47 67 FE [09:01:26]GetLastDocTimeStamp 1732784098 [09:01:26]current date 1732784490 [09:01:26]FM_GetShiftState [09:01:26]SAM_PROTO_GetShiftState [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 13 01 00 [09:01:26]Write to MH i2c: E2 08 00 9E 1A 80 13 01 00 00 00 00 00 35 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:26]Read from MH i2c: E2 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 0E 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 0E 00 9E 1A 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 3C [09:01:26]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:01:26]wFMCommunicate OK [09:01:26]SAM_PROTO_GetShiftState done [09:01:26]FM_GetShiftState done [09:01:26]opened in 1732752282 [09:01:26]opened+sec_in_day 1732838682 [09:01:26]quantity*price = 29049 [09:01:26]sum+1 = 29050 [09:01:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.85 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 30 28.11.2024 09:01 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123518 ФПД: 179498240384510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T090130&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123518&fm=179498240384510&tin=02508201610067®Number=0000000000092681&sum=29000 [09:01:27]StoreToDocumentArchive [09:01:27]shift 559 fd 123518 [09:01:27]save to /storage/0559/doc_00123518 [09:01:27]save last doc name /storage/0559/doc_00123518 to /storage/kkm_last_doc_name [09:01:27]save OK [09:01:27]Clear old archive folders... [09:01:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:27]tlvbuf is 014FC8A0 [09:01:27]SAM_PROTO_ClearQueue [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 09 00 00 [09:01:27]Write to MH i2c: E2 08 00 AB 1A 80 09 00 00 00 00 00 00 37 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 03 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 03 00 AB 1A 00 90 00 39 [09:01:27]RAPDU: 90 00 [09:01:27]wFMCommunicate OK [09:01:27]SAM_PROTO_ClearQueue done [09:01:27]KKMCreateOFDPacket [09:01:27]OFDProtocolAddRootSTLVToBuf [09:01:27]FM_MakeSignedData [09:01:27]FM_MakeSignedData [09:01:27]SAM_PROTO_SignData [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 0D 01 02 [09:01:27]Write to MH i2c: E2 08 00 AC 1A 80 0D 01 02 00 00 00 00 3F [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 03 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 03 00 AC 1A 00 90 00 3A [09:01:27]RAPDU: 90 00 [09:01:27]wFMCommunicate OK [09:01:27]wFMCommunicate request_size=255 [09:01:27]MH_SAM_APDU [09:01: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 D6 10 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 79 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 6A 31 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 A3 [09:01:27]Write to MH i2c: E2 02 01 AD 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D6 10 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 79 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 6A 31 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 A3 00 00 B5 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 03 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 03 00 AD 1A 00 90 00 3B [09:01:27]RAPDU: 90 00 [09:01:27]wFMCommunicate OK [09:01:27]wFMCommunicate request_size=10 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 0D 02 02 05 40 B0 DB 1D FE [09:01:27]Write to MH i2c: E2 0D 00 AE 1A 80 0D 02 02 05 00 40 B0 DB 1D FE 00 00 32 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 03 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 03 00 AE 1A 00 90 00 3C [09:01:27]RAPDU: 90 00 [09:01:27]wFMCommunicate OK [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 0D 03 02 [09:01:27]Write to MH i2c: E2 08 00 AF 1A 80 0D 03 02 00 00 00 00 44 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 0B 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 0B 00 AF 1A 00 B5 75 3D 5A 70 C8 EA 2D 90 00 55 [09:01:27]RAPDU: B5 75 3D 5A 70 C8 EA 2D 90 00 [09:01:27]wFMCommunicate OK [09:01:27]SAM_PROTO_SignData done [09:01:27]FM_MakeSignedData done [09:01:27]CreateOFDProtocolMessage [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 11 00 00 [09:01:27]Write to MH i2c: E2 08 00 B0 1A 80 11 00 00 00 00 00 00 44 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 17 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 17 00 B0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 9B [09:01: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:01:27]wFMCommunicate OK [09:01:27]CreateOFDProtocolMessage done [09:01:27]OFDSenderStorePacket 123518 [09:01:27]StoreOFDPacket docnum=123518 [09:01: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 58 AE 07 01 ED 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 D6 10 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 79 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 6A 31 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 A3 40 B0 DB 1D FE B5 75 3D 5A 70 C8 EA 2D [09:01:27]CheckFolder [09:01:27]dirname=/storage/ofd_packets [09:01:27]CheckFolder done [09:01:27]ProducePacketName [09:01:27]name=ofd_packets/00123518 [09:01:27]NVStorageSaveData ofd_packets/00123518 [09:01:27]File name is /storage/ofd_packets/00123518 [09:01:27]Write 301 bytes [09:01:27]NVStorageSaveData done [09:01:27]OFDSenderStorePacket done [09:01:27]KKMCreateOFDPacket done [09:01:27]NVStorageSaveData kkm_last_timestamp [09:01:27]File name is /storage/kkm_last_timestamp [09:01:27]Write 4 bytes [09:01:27]NVStorageSaveData done [09:01:27]ExternCall_PrintAddStr [09:01:27]wPrintStart [09:01:27]Write to MH i2c: 01 00 00 B1 1A CB [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: 01 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: 01 07 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: 01 07 00 B1 1A 00 00 00 00 00 FF 0F E0 [09:01:27]RasterBufferAndPrint [09:01:27]line Счет N : (1)718352 [09:01:27]line ИНН: 02508201610067 [09:01:27]line Контрольно-Кассовый Чек [09:01:27]line ПРОДАЖА [09:01:27]line ТРК (МРК, ГНК) : 42 [09:01:27]line Товар: 2710124130 [09:01:27]line Аи-92-К-4 [09:01:27]line 4.310 * 67.40 [09:01:27]line = 290.49 [09:01:27]line НДС 12% НСП 1% [09:01:27]line > о реализуемом товаре [09:01:27]line ОКРУГЛЕНИЕ: -0.49 [09:01:27]line ИТОГО: 290.00 [09:01:27]line Внесено: 290.00 [09:01:27]line СДАЧА: 0.00 [09:01:27]line НСП 1% : 2.57 [09:01:27]line НДС 12% : 30.85 [09:01:27]line Наличными: 290.00 [09:01:27]line Безнал.: 0.00 [09:01:27]line Место: АЗС № 64 "Партнер Нефть" [09:01:27]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:01:27]line СНО: Общий режим [09:01:27]line Чек 30 28.11.2024 09:01 [09:01:27]line Смена: 559 ФФД: 1.0 [09:01:27]line ЗНМ: 0300000033 [09:01:27]line РНМ: 0000000000092681 [09:01:27]line Версия ККМ: 001 [09:01:27]line ФМ: 0000000000874881 [09:01:27]line ФД: 123518 [09:01:27]line ФПД: 179498240384510 [09:01:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T090130&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123518&fm=179498240384510&tin=02508201610067®Number=0000000000092681&sum=29000 [09:01:28]OFD Sender: Processing packet 123518 [packets to send 7, broken 6] [09:01:28]ProducePacketName [09:01:28]name=ofd_packets/00123518 [09:01:28]OFD Sender: To server: pG, [09:01:28]CommunicateWithHost lk.salyk.kg:30040 [09:01:28]ConnectInit lk.salyk.kg [09:01:28]written 0, free lines is 4095 [09:01:28]Connected sock=10 [09:01: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 58 AE 07 01 ED 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 D6 10 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 79 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 6A 31 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 A3 40 B0 DB 1D FE B5 75 3D 5A 70 C8 EA 2D [09:01: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 49 80 47 00 9C 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7E E2 01 00 F4 03 04 00 30 DD 47 67 B6 04 01 00 00 59 C1 5E 40 9F 2E B0 21 [09:01:28]CommunicateWithHost err = 0 [09:01:28]CheckOFDResponse [09:01:28]1017 (14) - 77093643461234 [09:01:28]1041 (16) - 0000000000874881 [09:01:28]1040 (4) - 123518 [09:01:28]1012 (4) - 28.11.2024 03:02 [09:01:28]1206 (1) - 0 [09:01:28]OFD Sender: Remove packet 123518 [09:01:28]ProducePacketName [09:01:28]name=ofd_packets/00123518 [09:01:28]NVStorageDeleteData [09:01:28]Write to MH i2c: 01 00 00 DC 1A F6 [09:01:28]Write i2c OK [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: 01 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: 01 07 00 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: 01 07 00 DC 1A 00 00 00 00 00 43 0C 4C [09:01:28]RasterBufferAndPrint [09:01:28]line [09:01:28]line [09:01:28]line [09:01:28]line [09:01:28]line [09:01:28]written 0, free lines is 3144 [09:01:28]MH_Cut [09:01:28]Write to MH i2c: D1 01 00 E3 1A 01 CF [09:01:28]Write i2c OK [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: D1 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: D1 01 00 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: D1 01 00 E3 1A 00 CE [09:01:28]Write to MH i2c: 01 00 00 E4 1A FE [09:01:28]Write i2c OK [09:01:28]MH_I2C_Read... [09:01:28]OFD Sender: No OFD packet to send [09:01:29]*** Cut start [09:01:29]*** Partial cut [09:01:29]*** CUTSNS_PIN = 1 [09:01:30]*** CUTSNS_PIN = 0 [09:01:30]*** Brake cut motor [09:01:30]Read from MH i2c: 01 [09:01:30]MH_I2C_Read... [09:01:30]*** Stop cut motor [09:01:30]*** Cut end [09:01:30]Read from MH i2c: 01 07 00 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: 01 07 00 E4 1A 00 00 00 00 00 FF 0F 13 [09:01:30]process_action close_receipt done [09:01:30]requested_data is exist [09:01:30]produce_requested_data [09:01:30]requested_item fm.sn is exist - process it [09:01:30]wFMCommunicate request_size=4 [09:01:30]MH_SAM_APDU [09:01:30]CAPDU: 80 11 00 00 [09:01:30]Write to MH i2c: E2 08 00 E5 1A 80 11 00 00 00 00 00 00 79 [09:01:30]Write i2c OK [09:01:30]MH_I2C_Read... [09:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:30]Read from MH i2c: E2 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: E2 17 00 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: E2 17 00 E5 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D0 [09:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:01:30]wFMCommunicate OK [09:01:30]requested_item fd.num is exist - process it [09:01:30]SAM_PROTO_GetFieldsCounters [09:01:30]wFMCommunicate request_size=4 [09:01:30]MH_SAM_APDU [09:01:30]CAPDU: 80 13 00 00 [09:01:30]Write to MH i2c: E2 08 00 E6 1A 80 13 00 00 00 00 00 00 7C [09:01:30]Write i2c OK [09:01:30]MH_I2C_Read... [09:01:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:30]Read from MH i2c: E2 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: E2 62 00 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: E2 62 00 E6 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 8E [09:01: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 7E E2 01 00 0E 04 04 00 2F 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 [09:01:30]wFMCommunicate OK [09:01:30]SAM_PROTO_GetFieldsCounters done [09:01:30]requested_item shift.num is exist - process it [09:01:30]requested_item shift.opened is exist - process it [09:01:30]req_shift_opened [09:01:30]FM_GetShiftState [09:01:30]SAM_PROTO_GetShiftState [09:01:30]wFMCommunicate request_size=4 [09:01:30]MH_SAM_APDU [09:01:30]CAPDU: 80 13 01 00 [09:01:30]Write to MH i2c: E2 08 00 E7 1A 80 13 01 00 00 00 00 00 7E [09:01:30]Write i2c OK [09:01:30]MH_I2C_Read... [09:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:30]Read from MH i2c: E2 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: E2 0E 00 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: E2 0E 00 E7 1A 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 85 [09:01:30]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:01:30]wFMCommunicate OK [09:01:30]SAM_PROTO_GetShiftState done [09:01:30]FM_GetShiftState done [09:01:30]req_shift_opened done [09:01:30]requested_item shift.open_date is exist - process it [09:01:30]req_shift_open_date [09:01:30]req_shift_open_date done [09:01:30]produce_requested_data done [09:01:30]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123518,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [09:01:30]process_action_free close_receipt [09:01:30]json_value_free [09:01:30]json_value_free done [09:01:30]process_json_proto returns [09:01:30]Send response to host [09:01:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123518,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [09:01:30]free response buf [09:01:30]execute_script done [09:01:30]execute_script returns [09:01:30]free content buf [09:01:30]Sock 9.Close socket [09:01:30]Sock 9.Thread stoped [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:17]accept exits with 8 [09:02:17]New connection [09:02:17]New thread 3066862948 created [09:02:17]Thread 3066719588 joined [09:02:17]Waiting for new connection... [09:02:17] Sock 8.Parse request [09:02:17]Sock 8.Check first char [09:02:17]Sock 8.First char is OK [09:02:17]request: POST /json_proto HTTP/1.0 [09:02:17]Method: POST [09:02:17]URL: /json_proto [09:02:17]Method is POST - this is cgi request [09:02:17]url: /json_proto [09:02:17]query_string will be loaded in cgi processing [09:02:17]execute_cgi json_proto POST (null) [09:02:17]execute_cgi path=json_proto method=POST [09:02:17]POST find Content-Length [09:02:17]Host: 172.17.37.4:8080 [09:02:17]Content-Length: 800 [09:02:17]Content-Type: application/json [09:02:17] [09:02:17]POST finish read [09:02:17]Found Content-Length = 800 [09:02:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718351", "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" ] } } [09:02:17]execute_script... [09:02: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)718351", "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" ] } } [09:02:17]POST & json_proto [09:02:17]process_json_proto [09:02:17]json parsed OK: [09:02:17]protocol is kg_v1.0 [09:02:17]action value=close_receipt [09:02:17]process_action close_receipt [09:02:17]cmd_close_receipt [09:02:17]MH_GetDate [09:02:17]Write to MH i2c: F0 00 00 E8 1A F1 [09:02:17]Write i2c OK [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: F0 [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: F0 09 00 [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: F0 09 00 E8 1A 00 9E 31 48 67 1D 3A 47 67 7D [09:02:17]GetLastDocTimeStamp 1732784490 [09:02:17]current date 1732784542 [09:02:17]FM_GetShiftState [09:02:17]SAM_PROTO_GetShiftState [09:02:17]wFMCommunicate request_size=4 [09:02:17]MH_SAM_APDU [09:02:17]CAPDU: 80 13 01 00 [09:02:17]Write to MH i2c: E2 08 00 E9 1A 80 13 01 00 00 00 00 00 80 [09:02:17]Write i2c OK [09:02:17]MH_I2C_Read... [09:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:17]Read from MH i2c: E2 [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: E2 0E 00 [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: E2 0E 00 E9 1A 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 87 [09:02:17]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:02:17]wFMCommunicate OK [09:02:17]SAM_PROTO_GetShiftState done [09:02:17]FM_GetShiftState done [09:02:17]opened in 1732752282 [09:02:17]opened+sec_in_day 1732838682 [09:02:17]quantity*price = 30060 [09:02:17]sum+1 = 30061 [09:02:17]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 СНО: Общий режим Чек 31 28.11.2024 09:02 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123519 ФПД: 167000644321042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T090222&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123519&fm=167000644321042&tin=02508201610067®Number=0000000000092681&sum=30060 [09:02:19]StoreToDocumentArchive [09:02:19]shift 559 fd 123519 [09:02:19]save to /storage/0559/doc_00123519 [09:02:19]save last doc name /storage/0559/doc_00123519 to /storage/kkm_last_doc_name [09:02:19]save OK [09:02:19]Clear old archive folders... [09:02:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:02:19]tlvbuf is B6E92860 [09:02:19]SAM_PROTO_ClearQueue [09:02:19]wFMCommunicate request_size=4 [09:02:19]MH_SAM_APDU [09:02:19]CAPDU: 80 09 00 00 [09:02:19]Write to MH i2c: E2 08 00 F6 1A 80 09 00 00 00 00 00 00 82 [09:02:19]Write i2c OK [09:02:19]MH_I2C_Read... [09:02:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:19]Read from MH i2c: E2 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: E2 03 00 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: E2 03 00 F6 1A 00 90 00 84 [09:02:19]RAPDU: 90 00 [09:02:19]wFMCommunicate OK [09:02:19]SAM_PROTO_ClearQueue done [09:02:19]KKMCreateOFDPacket [09:02:19]OFDProtocolAddRootSTLVToBuf [09:02:19]FM_MakeSignedData [09:02:19]FM_MakeSignedData [09:02:19]SAM_PROTO_SignData [09:02:19]wFMCommunicate request_size=4 [09:02:19]MH_SAM_APDU [09:02:19]CAPDU: 80 0D 01 02 [09:02:19]Write to MH i2c: E2 08 00 F7 1A 80 0D 01 02 00 00 00 00 8A [09:02:19]Write i2c OK [09:02:19]MH_I2C_Read... [09:02:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:19]Read from MH i2c: E2 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: E2 03 00 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: E2 03 00 F7 1A 00 90 00 85 [09:02:19]RAPDU: 90 00 [09:02:19]wFMCommunicate OK [09:02:19]wFMCommunicate request_size=255 [09:02:19]MH_SAM_APDU [09:02: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 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 1F 00 00 00 F4 03 04 00 9E 31 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 97 [09:02:19]Write to MH i2c: E2 02 01 F8 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1F 00 00 00 F4 03 04 00 9E 31 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 97 00 00 7C [09:02:19]Write i2c OK [09:02:19]MH_I2C_Read... [09:02:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:19]Read from MH i2c: E2 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: E2 03 00 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: E2 03 00 F8 1A 00 90 00 86 [09:02:19]RAPDU: 90 00 [09:02:19]wFMCommunicate OK [09:02:19]wFMCommunicate request_size=10 [09:02:19]MH_SAM_APDU [09:02:19]CAPDU: 80 0D 02 02 05 E2 DE 14 FF 12 [09:02:19]Write to MH i2c: E2 0D 00 F9 1A 80 0D 02 02 05 00 E2 DE 14 FF 12 00 00 7C [09:02:19]Write i2c OK [09:02:19]MH_I2C_Read... [09:02:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:19]Read from MH i2c: E2 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: E2 03 00 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: E2 03 00 F9 1A 00 90 00 87 [09:02:19]RAPDU: 90 00 [09:02:19]wFMCommunicate OK [09:02:19]wFMCommunicate request_size=4 [09:02:19]MH_SAM_APDU [09:02:19]CAPDU: 80 0D 03 02 [09:02:19]Write to MH i2c: E2 08 00 FA 1A 80 0D 03 02 00 00 00 00 8F [09:02:19]Write i2c OK [09:02:19]MH_I2C_Read... [09:02:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:19]Read from MH i2c: E2 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: E2 0B 00 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: E2 0B 00 FA 1A 00 BB 2B E9 C7 99 3E E1 5F 90 00 3D [09:02:19]RAPDU: BB 2B E9 C7 99 3E E1 5F 90 00 [09:02:19]wFMCommunicate OK [09:02:19]SAM_PROTO_SignData done [09:02:19]FM_MakeSignedData done [09:02:19]CreateOFDProtocolMessage [09:02:19]wFMCommunicate request_size=4 [09:02:19]MH_SAM_APDU [09:02:19]CAPDU: 80 11 00 00 [09:02:19]Write to MH i2c: E2 08 00 FB 1A 80 11 00 00 00 00 00 00 8F [09:02:19]Write i2c OK [09:02:19]MH_I2C_Read... [09:02:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:19]Read from MH i2c: E2 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: E2 17 00 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: E2 17 00 FB 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E6 [09:02:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:02:19]wFMCommunicate OK [09:02:19]CreateOFDProtocolMessage done [09:02:19]OFDSenderStorePacket 123519 [09:02:19]StoreOFDPacket docnum=123519 [09:02: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 E4 7B 07 01 94 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 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 1F 00 00 00 F4 03 04 00 9E 31 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 97 E2 DE 14 FF 12 BB 2B E9 C7 99 3E E1 5F [09:02:19]CheckFolder [09:02:19]dirname=/storage/ofd_packets [09:02:19]CheckFolder done [09:02:19]ProducePacketName [09:02:19]name=ofd_packets/00123519 [09:02:19]NVStorageSaveData ofd_packets/00123519 [09:02:19]File name is /storage/ofd_packets/00123519 [09:02:19]Write 301 bytes [09:02:19]NVStorageSaveData done [09:02:19]OFDSenderStorePacket done [09:02:19]KKMCreateOFDPacket done [09:02:19]NVStorageSaveData kkm_last_timestamp [09:02:19]File name is /storage/kkm_last_timestamp [09:02:19]Write 4 bytes [09:02:19]NVStorageSaveData done [09:02:19]ExternCall_PrintAddStr [09:02:19]wPrintStart [09:02:19]Write to MH i2c: 01 00 00 FC 1A 16 [09:02:19]Write i2c OK [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: 01 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: 01 07 00 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: 01 07 00 FC 1A 00 00 00 00 00 FF 0F 2B [09:02:19]RasterBufferAndPrint [09:02:19]line Счет N : (1)718351 [09:02:19]line ИНН: 02508201610067 [09:02:19]line Контрольно-Кассовый Чек [09:02:19]line ПРОДАЖА [09:02:19]line ТРК (МРК, ГНК) : 22 [09:02:19]line Товар: 2710124130 [09:02:19]line Аи-92-К-4 [09:02:19]line 4.460 * 67.40 [09:02:19]line = 300.60 [09:02:19]line НДС 12% НСП 1% [09:02:19]line > о реализуемом товаре [09:02:19]line ИТОГО: 300.60 [09:02:19]line НСП 1% : 2.66 [09:02:19]line НДС 12% : 31.92 [09:02:19]line Наличными: 0.00 [09:02:19]line Безнал.: 300.60 [09:02:19]line Место: АЗС № 64 "Партнер Нефть" [09:02:19]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:02:19]line СНО: Общий режим [09:02:19]line Чек 31 28.11.2024 09:02 [09:02:19]line Смена: 559 ФФД: 1.0 [09:02:19]line ЗНМ: 0300000033 [09:02:19]line РНМ: 0000000000092681 [09:02:19]line Версия ККМ: 001 [09:02:19]line Платежная система: O! деньги [09:02:19]line ФМ: 0000000000874881 [09:02:19]line ФД: 123519 [09:02:19]line ФПД: 167000644321042 [09:02:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T090222&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123519&fm=167000644321042&tin=02508201610067®Number=0000000000092681&sum=30060 [09:02:19]written 0, free lines is 4095 [09:02:19]OFD Sender: Processing packet 123519 [packets to send 7, broken 6] [09:02:19]ProducePacketName [09:02:19]name=ofd_packets/00123519 [09:02:19]OFD Sender: To server: pG, [09:02:19]CommunicateWithHost lk.salyk.kg:30040 [09:02:19]ConnectInit lk.salyk.kg [09:02:20]Connected sock=10 [09:02: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 E4 7B 07 01 94 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 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 1F 00 00 00 F4 03 04 00 9E 31 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 97 E2 DE 14 FF 12 BB 2B E9 C7 99 3E E1 5F [09:02: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 00 4B 47 00 A3 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 7F E2 01 00 F4 03 04 00 64 DD 47 67 B6 04 01 00 00 F1 4F 51 34 10 3E A0 02 [09:02:20]CommunicateWithHost err = 0 [09:02:20]CheckOFDResponse [09:02:20]1017 (14) - 77093643461234 [09:02:20]1041 (16) - 0000000000874881 [09:02:20]1040 (4) - 123519 [09:02:20]1012 (4) - 28.11.2024 03:03 [09:02:20]1206 (1) - 0 [09:02:20]OFD Sender: Remove packet 123519 [09:02:20]ProducePacketName [09:02:20]name=ofd_packets/00123519 [09:02:20]NVStorageDeleteData [09:02:20]Write to MH i2c: 01 00 00 26 1B 41 [09:02:20]Write i2c OK [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: 01 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: 01 07 00 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: 01 07 00 26 1B 00 00 00 00 00 51 0C A5 [09:02:20]RasterBufferAndPrint [09:02:20]line [09:02:20]line [09:02:20]line [09:02:20]line [09:02:20]line [09:02:20]written 0, free lines is 3158 [09:02:20]MH_Cut [09:02:20]Write to MH i2c: D1 01 00 2D 1B 01 1A [09:02:20]Write i2c OK [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: D1 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: D1 01 00 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: D1 01 00 2D 1B 00 19 [09:02:20]Write to MH i2c: 01 00 00 2E 1B 49 [09:02:20]Write i2c OK [09:02:20]MH_I2C_Read... [09:02:20]OFD Sender: No OFD packet to send [09:02:21]*** Cut start [09:02:21]*** Partial cut [09:02:21]*** CUTSNS_PIN = 1 [09:02:21]*** CUTSNS_PIN = 0 [09:02:22]*** Brake cut motor [09:02:22]Read from MH i2c: 01 [09:02:22]MH_I2C_Read... [09:02:22]*** Stop cut motor [09:02:22]*** Cut end [09:02:22]Read from MH i2c: 01 07 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: 01 07 00 2E 1B 00 00 00 00 00 FF 0F 5E [09:02:22]process_action close_receipt done [09:02:22]requested_data is exist [09:02:22]produce_requested_data [09:02:22]requested_item fm.sn is exist - process it [09:02:22]wFMCommunicate request_size=4 [09:02:22]MH_SAM_APDU [09:02:22]CAPDU: 80 11 00 00 [09:02:22]Write to MH i2c: E2 08 00 2F 1B 80 11 00 00 00 00 00 00 C4 [09:02:22]Write i2c OK [09:02:22]MH_I2C_Read... [09:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:22]Read from MH i2c: E2 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 17 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 17 00 2F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1B [09:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:02:22]wFMCommunicate OK [09:02:22]requested_item fd.num is exist - process it [09:02:22]SAM_PROTO_GetFieldsCounters [09:02:22]wFMCommunicate request_size=4 [09:02:22]MH_SAM_APDU [09:02:22]CAPDU: 80 13 00 00 [09:02:22]Write to MH i2c: E2 08 00 30 1B 80 13 00 00 00 00 00 00 C7 [09:02:22]Write i2c OK [09:02:22]MH_I2C_Read... [09:02:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:22]Read from MH i2c: E2 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 62 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 62 00 30 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 DD [09:02: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 7F E2 01 00 0E 04 04 00 2F 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 [09:02:22]wFMCommunicate OK [09:02:22]SAM_PROTO_GetFieldsCounters done [09:02:22]requested_item shift.num is exist - process it [09:02:22]requested_item shift.opened is exist - process it [09:02:22]req_shift_opened [09:02:22]FM_GetShiftState [09:02:22]SAM_PROTO_GetShiftState [09:02:22]wFMCommunicate request_size=4 [09:02:22]MH_SAM_APDU [09:02:22]CAPDU: 80 13 01 00 [09:02:22]Write to MH i2c: E2 08 00 31 1B 80 13 01 00 00 00 00 00 C9 [09:02:22]Write i2c OK [09:02:22]MH_I2C_Read... [09:02:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:22]Read from MH i2c: E2 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 0E 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 0E 00 31 1B 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 D0 [09:02:22]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:02:22]wFMCommunicate OK [09:02:22]SAM_PROTO_GetShiftState done [09:02:22]FM_GetShiftState done [09:02:22]req_shift_opened done [09:02:22]requested_item shift.open_date is exist - process it [09:02:22]req_shift_open_date [09:02:22]req_shift_open_date done [09:02:22]produce_requested_data done [09:02:22]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123519,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [09:02:22]process_action_free close_receipt [09:02:22]json_value_free [09:02:22]json_value_free done [09:02:22]process_json_proto returns [09:02:22]Send response to host [09:02:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123519,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [09:02:22]free response buf [09:02:22]execute_script done [09:02:22]execute_script returns [09:02:22]free content buf [09:02:22]Sock 8.Close socket [09:02:22]Sock 8.Thread stoped [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]accept exits with 9 [09:03:25]New connection [09:03:25]New thread 3066719588 created [09:03:25]Thread 3066862948 joined [09:03:25]Waiting for new connection... [09:03:25] Sock 9.Parse request [09:03:25]Sock 9.Check first char [09:03:25]Sock 9.First char is OK [09:03:25]request: POST /json_proto HTTP/1.0 [09:03:25]Method: POST [09:03:25]URL: /json_proto [09:03:25]Method is POST - this is cgi request [09:03:25]url: /json_proto [09:03:25]query_string will be loaded in cgi processing [09:03:25]execute_cgi json_proto POST (null) [09:03:25]execute_cgi path=json_proto method=POST [09:03:25]POST find Content-Length [09:03:25]Host: 172.17.37.4:8080 [09:03:25]Content-Length: 796 [09:03:25]Content-Type: application/json [09:03:25] [09:03:25]POST finish read [09:03:25]Found Content-Length = 796 [09:03:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718350", "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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32287", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:25]execute_script... [09:03: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)718350", "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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32287", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:25]POST & json_proto [09:03:25]process_json_proto [09:03:25]json parsed OK: [09:03:25]protocol is kg_v1.0 [09:03:25]action value=close_receipt [09:03:25]process_action close_receipt [09:03:25]cmd_close_receipt [09:03:25]MH_GetDate [09:03:25]Write to MH i2c: F0 00 00 32 1B 3C [09:03:25]Write i2c OK [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: F0 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: F0 09 00 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: F0 09 00 32 1B 00 E1 31 48 67 1D 3A 47 67 0B [09:03:25]GetLastDocTimeStamp 1732784542 [09:03:25]current date 1732784609 [09:03:25]FM_GetShiftState [09:03:25]SAM_PROTO_GetShiftState [09:03:25]wFMCommunicate request_size=4 [09:03:25]MH_SAM_APDU [09:03:25]CAPDU: 80 13 01 00 [09:03:25]Write to MH i2c: E2 08 00 33 1B 80 13 01 00 00 00 00 00 CB [09:03:25]Write i2c OK [09:03:25]MH_I2C_Read... [09:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:25]Read from MH i2c: E2 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 0E 00 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 0E 00 33 1B 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 D2 [09:03:25]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:03:25]wFMCommunicate OK [09:03:25]SAM_PROTO_GetShiftState done [09:03:25]FM_GetShiftState done [09:03:25]opened in 1732752282 [09:03:25]opened+sec_in_day 1732838682 [09:03:25]quantity*price = 0 [09:03:25]sum+1 = 1 [09:03:25]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 СНО: Общий режим Чек 32 28.11.2024 09:03 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 32287 ФМ: 0000000000874881 ФД: 123520 ФПД: 79256394186165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T090329&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123520&fm=79256394186165&tin=02508201610067®Number=0000000000092681&sum=0 [09:03:26]StoreToDocumentArchive [09:03:26]shift 559 fd 123520 [09:03:26]save to /storage/0559/doc_00123520 [09:03:26]save last doc name /storage/0559/doc_00123520 to /storage/kkm_last_doc_name [09:03:26]save OK [09:03:26]Clear old archive folders... [09:03:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:03:26]tlvbuf is B6EAB3D0 [09:03:26]SAM_PROTO_ClearQueue [09:03:26]wFMCommunicate request_size=4 [09:03:26]MH_SAM_APDU [09:03:26]CAPDU: 80 09 00 00 [09:03:26]Write to MH i2c: E2 08 00 40 1B 80 09 00 00 00 00 00 00 CD [09:03:26]Write i2c OK [09:03:26]MH_I2C_Read... [09:03:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:26]Read from MH i2c: E2 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 03 00 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 03 00 40 1B 00 90 00 CF [09:03:26]RAPDU: 90 00 [09:03:26]wFMCommunicate OK [09:03:26]SAM_PROTO_ClearQueue done [09:03:26]KKMCreateOFDPacket [09:03:26]OFDProtocolAddRootSTLVToBuf [09:03:26]FM_MakeSignedData [09:03:26]FM_MakeSignedData [09:03:26]SAM_PROTO_SignData [09:03:26]wFMCommunicate request_size=4 [09:03:26]MH_SAM_APDU [09:03:26]CAPDU: 80 0D 01 02 [09:03:26]Write to MH i2c: E2 08 00 41 1B 80 0D 01 02 00 00 00 00 D5 [09:03:26]Write i2c OK [09:03:26]MH_I2C_Read... [09:03:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:26]Read from MH i2c: E2 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 03 00 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 03 00 41 1B 00 90 00 D0 [09:03:26]RAPDU: 90 00 [09:03:26]wFMCommunicate OK [09:03:26]wFMCommunicate request_size=255 [09:03:26]MH_SAM_APDU [09:03:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 20 00 00 00 F4 03 04 00 E1 31 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 [09:03:26]Write to MH i2c: E2 02 01 42 1B 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 20 00 00 00 F4 03 04 00 E1 31 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 00 00 70 [09:03:26]Write i2c OK [09:03:26]MH_I2C_Read... [09:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:26]Read from MH i2c: E2 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 03 00 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 03 00 42 1B 00 90 00 D1 [09:03:26]RAPDU: 90 00 [09:03:26]wFMCommunicate OK [09:03:26]wFMCommunicate request_size=11 [09:03:26]MH_SAM_APDU [09:03:26]CAPDU: 80 0D 02 02 06 48 15 51 38 BD B5 [09:03:26]Write to MH i2c: E2 0E 00 43 1B 80 0D 02 02 06 00 48 15 51 38 BD B5 00 00 3C [09:03:26]Write i2c OK [09:03:26]MH_I2C_Read... [09:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:26]Read from MH i2c: E2 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 03 00 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 03 00 43 1B 00 90 00 D2 [09:03:26]RAPDU: 90 00 [09:03:26]wFMCommunicate OK [09:03:26]wFMCommunicate request_size=4 [09:03:26]MH_SAM_APDU [09:03:26]CAPDU: 80 0D 03 02 [09:03:26]Write to MH i2c: E2 08 00 44 1B 80 0D 03 02 00 00 00 00 DA [09:03:26]Write i2c OK [09:03:26]MH_I2C_Read... [09:03:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:26]Read from MH i2c: E2 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 0B 00 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 0B 00 44 1B 00 51 E5 9C F6 70 58 54 62 90 00 21 [09:03:26]RAPDU: 51 E5 9C F6 70 58 54 62 90 00 [09:03:26]wFMCommunicate OK [09:03:26]SAM_PROTO_SignData done [09:03:26]FM_MakeSignedData done [09:03:26]CreateOFDProtocolMessage [09:03:26]wFMCommunicate request_size=4 [09:03:26]MH_SAM_APDU [09:03:26]CAPDU: 80 11 00 00 [09:03:26]Write to MH i2c: E2 08 00 45 1B 80 11 00 00 00 00 00 00 DA [09:03:26]Write i2c OK [09:03:26]MH_I2C_Read... [09:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:26]Read from MH i2c: E2 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 17 00 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 17 00 45 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 31 [09:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:03:26]wFMCommunicate OK [09:03:26]CreateOFDProtocolMessage done [09:03:26]OFDSenderStorePacket 123520 [09:03:26]StoreOFDPacket docnum=123520 [09:03: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 10 01 00 00 3C 8A 08 01 09 48 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 20 00 00 00 F4 03 04 00 E1 31 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 48 15 51 38 BD B5 51 E5 9C F6 70 58 54 62 [09:03:26]CheckFolder [09:03:26]dirname=/storage/ofd_packets [09:03:26]CheckFolder done [09:03:26]ProducePacketName [09:03:26]name=ofd_packets/00123520 [09:03:26]NVStorageSaveData ofd_packets/00123520 [09:03:26]File name is /storage/ofd_packets/00123520 [09:03:26]Write 302 bytes [09:03:26]NVStorageSaveData done [09:03:26]OFDSenderStorePacket done [09:03:26]KKMCreateOFDPacket done [09:03:26]NVStorageSaveData kkm_last_timestamp [09:03:26]File name is /storage/kkm_last_timestamp [09:03:26]Write 4 bytes [09:03:26]NVStorageSaveData done [09:03:26]ExternCall_PrintAddStr [09:03:26]wPrintStart [09:03:26]Write to MH i2c: 01 00 00 46 1B 61 [09:03:26]Write i2c OK [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: 01 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: 01 07 00 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: 01 07 00 46 1B 00 00 00 00 00 FF 0F 76 [09:03:26]RasterBufferAndPrint [09:03:26]line Счет N : (1)718350 [09:03:26]line ИНН: 02508201610067 [09:03:26]line Контрольно-Кассовый Чек [09:03:26]line ПРОДАЖА [09:03:26]line ТРК (МРК, ГНК) : 6 [09:03:26]line Товар: 2710194210 [09:03:26]line ДТ(л)-К-5 [09:03:26]line 40.000 * 0.00 [09:03:26]line = 0.00 [09:03:26]line НДС 12% НСП 1% [09:03:26]line > о реализуемом товаре [09:03:26]line ИТОГО: 0.00 [09:03:26]line НСП 1% : 0.00 [09:03:26]line НДС 12% : 0.00 [09:03:26]line Наличными: 0.00 [09:03:26]line Безнал.: 0.00 [09:03:26]line Место: АЗС № 64 "Партнер Нефть" [09:03:26]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:03:26]line СНО: Общий режим [09:03:26]line Чек 32 28.11.2024 09:03 [09:03:26]line Смена: 559 ФФД: 1.0 [09:03:26]line ЗНМ: 0300000033 [09:03:26]line РНМ: 0000000000092681 [09:03:26]line Версия ККМ: 001 [09:03:26]line Талоны: Топливная Карта [09:03:26]line 32287 [09:03:26]line ФМ: 0000000000874881 [09:03:26]line ФД: 123520 [09:03:26]line ФПД: 79256394186165 [09:03:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T090329&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123520&fm=79256394186165&tin=02508201610067®Number=0000000000092681&sum=0 [09:03:27]written 0, free lines is 4095 [09:03:27]OFD Sender: Processing packet 123520 [packets to send 7, broken 6] [09:03:27]ProducePacketName [09:03:27]name=ofd_packets/00123520 [09:03:27]OFD Sender: To server: pG, [09:03:27]CommunicateWithHost lk.salyk.kg:30040 [09:03:27]ConnectInit lk.salyk.kg [09:03:27]Connected sock=10 [09:03: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 10 01 00 00 3C 8A 08 01 09 48 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 20 00 00 00 F4 03 04 00 E1 31 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 48 15 51 38 BD B5 51 E5 9C F6 70 58 54 62 [09:03: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 53 7B 47 00 ED 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 80 E2 01 00 F4 03 04 00 A7 DD 47 67 B6 04 01 00 00 15 F7 95 BF 53 C4 D3 96 [09:03:27]CommunicateWithHost err = 0 [09:03:27]CheckOFDResponse [09:03:27]1017 (14) - 77093643461234 [09:03:27]1041 (16) - 0000000000874881 [09:03:27]1040 (4) - 123520 [09:03:27]1012 (4) - 28.11.2024 03:04 [09:03:27]1206 (1) - 0 [09:03:27]OFD Sender: Remove packet 123520 [09:03:27]ProducePacketName [09:03:27]name=ofd_packets/00123520 [09:03:27]NVStorageDeleteData [09:03:27]Write to MH i2c: 01 00 00 70 1B 8B [09:03:27]Write i2c OK [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: 01 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: 01 07 00 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: 01 07 00 70 1B 00 00 00 00 00 63 0C 01 [09:03:27]RasterBufferAndPrint [09:03:27]line [09:03:27]line [09:03:27]line [09:03:27]line [09:03:27]line [09:03:27]written 0, free lines is 3178 [09:03:27]MH_Cut [09:03:27]Write to MH i2c: D1 01 00 77 1B 01 64 [09:03:27]Write i2c OK [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: D1 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: D1 01 00 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: D1 01 00 77 1B 00 63 [09:03:27]Write to MH i2c: 01 00 00 78 1B 93 [09:03:27]Write i2c OK [09:03:27]MH_I2C_Read... [09:03:27]OFD Sender: No OFD packet to send [09:03:28]*** Cut start [09:03:28]*** Partial cut [09:03:28]*** CUTSNS_PIN = 1 [09:03:28]*** CUTSNS_PIN = 0 [09:03:29]*** Brake cut motor [09:03:29]Read from MH i2c: 01 [09:03:29]MH_I2C_Read... [09:03:29]*** Stop cut motor [09:03:29]*** Cut end [09:03:29]Read from MH i2c: 01 07 00 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: 01 07 00 78 1B 00 00 00 00 00 FF 0F A8 [09:03:29]process_action close_receipt done [09:03:29]requested_data is exist [09:03:29]produce_requested_data [09:03:29]requested_item fm.sn is exist - process it [09:03:29]wFMCommunicate request_size=4 [09:03:29]MH_SAM_APDU [09:03:29]CAPDU: 80 11 00 00 [09:03:29]Write to MH i2c: E2 08 00 79 1B 80 11 00 00 00 00 00 00 0E [09:03:29]Write i2c OK [09:03:29]MH_I2C_Read... [09:03:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:29]Read from MH i2c: E2 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: E2 17 00 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: E2 17 00 79 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 65 [09:03:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:03:29]wFMCommunicate OK [09:03:29]requested_item fd.num is exist - process it [09:03:29]SAM_PROTO_GetFieldsCounters [09:03:29]wFMCommunicate request_size=4 [09:03:29]MH_SAM_APDU [09:03:29]CAPDU: 80 13 00 00 [09:03:29]Write to MH i2c: E2 08 00 7A 1B 80 13 00 00 00 00 00 00 11 [09:03:29]Write i2c OK [09:03:29]MH_I2C_Read... [09:03:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:29]Read from MH i2c: E2 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: E2 62 00 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: E2 62 00 7A 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 2B [09:03: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 80 E2 01 00 0E 04 04 00 2F 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 [09:03:29]wFMCommunicate OK [09:03:29]SAM_PROTO_GetFieldsCounters done [09:03:29]requested_item shift.num is exist - process it [09:03:29]requested_item shift.opened is exist - process it [09:03:29]req_shift_opened [09:03:29]FM_GetShiftState [09:03:29]SAM_PROTO_GetShiftState [09:03:29]wFMCommunicate request_size=4 [09:03:29]MH_SAM_APDU [09:03:29]CAPDU: 80 13 01 00 [09:03:29]Write to MH i2c: E2 08 00 7B 1B 80 13 01 00 00 00 00 00 13 [09:03:29]Write i2c OK [09:03:29]MH_I2C_Read... [09:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:29]Read from MH i2c: E2 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: E2 0E 00 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: E2 0E 00 7B 1B 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 1A [09:03:29]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:03:29]wFMCommunicate OK [09:03:29]SAM_PROTO_GetShiftState done [09:03:29]FM_GetShiftState done [09:03:29]req_shift_opened done [09:03:29]requested_item shift.open_date is exist - process it [09:03:29]req_shift_open_date [09:03:29]req_shift_open_date done [09:03:29]produce_requested_data done [09:03:29]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123520,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [09:03:29]process_action_free close_receipt [09:03:29]json_value_free [09:03:29]json_value_free done [09:03:29]process_json_proto returns [09:03:29]Send response to host [09:03:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123520,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [09:03:29]free response buf [09:03:29]execute_script done [09:03:29]execute_script returns [09:03:29]free content buf [09:03:29]Sock 9.Close socket [09:03:29]Sock 9.Thread stoped [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:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]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:06:59]accept exits with 8 [09:06:59]New connection [09:06:59]New thread 3066862948 created [09:06:59]Thread 3066719588 joined [09:06:59]Waiting for new connection... [09:06:59] Sock 8.Parse request [09:06:59]Sock 8.Check first char [09:06:59]Sock 8.First char is OK [09:06:59]request: POST /json_proto HTTP/1.0 [09:06:59]Method: POST [09:06:59]URL: /json_proto [09:06:59]Method is POST - this is cgi request [09:06:59]url: /json_proto [09:06:59]query_string will be loaded in cgi processing [09:06:59]execute_cgi json_proto POST (null) [09:06:59]execute_cgi path=json_proto method=POST [09:06:59]POST find Content-Length [09:06:59]Host: 172.17.37.4:8080 [09:06:59]Content-Length: 677 [09:06:59]Content-Type: application/json [09:06:59] [09:06:59]POST finish read [09:06:59]Found Content-Length = 677 [09:06:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718353", "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" ] } } [09:06:59]execute_script... [09:06: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)718353", "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" ] } } [09:06:59]POST & json_proto [09:06:59]process_json_proto [09:06:59]json parsed OK: [09:06:59]protocol is kg_v1.0 [09:06:59]action value=close_receipt [09:06:59]process_action close_receipt [09:06:59]cmd_close_receipt [09:06:59]MH_GetDate [09:06:59]Write to MH i2c: F0 00 00 7C 1B 86 [09:06:59]Write i2c OK [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: F0 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: F0 09 00 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: F0 09 00 7C 1B 00 B8 32 48 67 1D 3A 47 67 2D [09:06:59]GetLastDocTimeStamp 1732784609 [09:06:59]current date 1732784824 [09:06:59]FM_GetShiftState [09:06:59]SAM_PROTO_GetShiftState [09:06:59]wFMCommunicate request_size=4 [09:06:59]MH_SAM_APDU [09:06:59]CAPDU: 80 13 01 00 [09:06:59]Write to MH i2c: E2 08 00 7D 1B 80 13 01 00 00 00 00 00 15 [09:06:59]Write i2c OK [09:06:59]MH_I2C_Read... [09:06:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:59]Read from MH i2c: E2 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: E2 0E 00 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: E2 0E 00 7D 1B 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 1C [09:06:59]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:06:59]wFMCommunicate OK [09:06:59]SAM_PROTO_GetShiftState done [09:06:59]FM_GetShiftState done [09:06:59]opened in 1732752282 [09:06:59]opened+sec_in_day 1732838682 [09:06:59]quantity*price = 30060 [09:06:59]sum+1 = 30061 [09:06:59]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 28.11.2024 09:07 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123521 ФПД: 38337407073981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T090704&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123521&fm=38337407073981&tin=02508201610067®Number=0000000000092681&sum=30000 [09:07:01]StoreToDocumentArchive [09:07:01]shift 559 fd 123521 [09:07:01]save to /storage/0559/doc_00123521 [09:07:01]save last doc name /storage/0559/doc_00123521 to /storage/kkm_last_doc_name [09:07:01]save OK [09:07:01]Clear old archive folders... [09:07:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:07:01]tlvbuf is B6E92090 [09:07:01]SAM_PROTO_ClearQueue [09:07:01]wFMCommunicate request_size=4 [09:07:01]MH_SAM_APDU [09:07:01]CAPDU: 80 09 00 00 [09:07:01]Write to MH i2c: E2 08 00 8A 1B 80 09 00 00 00 00 00 00 17 [09:07:01]Write i2c OK [09:07:01]MH_I2C_Read... [09:07:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:01]Read from MH i2c: E2 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 03 00 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 03 00 8A 1B 00 90 00 19 [09:07:01]RAPDU: 90 00 [09:07:01]wFMCommunicate OK [09:07:01]SAM_PROTO_ClearQueue done [09:07:01]KKMCreateOFDPacket [09:07:01]OFDProtocolAddRootSTLVToBuf [09:07:01]FM_MakeSignedData [09:07:01]FM_MakeSignedData [09:07:01]SAM_PROTO_SignData [09:07:01]wFMCommunicate request_size=4 [09:07:01]MH_SAM_APDU [09:07:01]CAPDU: 80 0D 01 02 [09:07:01]Write to MH i2c: E2 08 00 8B 1B 80 0D 01 02 00 00 00 00 1F [09:07:01]Write i2c OK [09:07:01]MH_I2C_Read... [09:07:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:01]Read from MH i2c: E2 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 03 00 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 03 00 8B 1B 00 90 00 1A [09:07:01]RAPDU: 90 00 [09:07:01]wFMCommunicate OK [09:07:01]wFMCommunicate request_size=255 [09:07:01]MH_SAM_APDU [09:07:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B8 32 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 22 [09:07:01]Write to MH i2c: E2 02 01 8C 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B8 32 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 22 00 00 43 [09:07:01]Write i2c OK [09:07:01]MH_I2C_Read... [09:07:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:01]Read from MH i2c: E2 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 03 00 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 03 00 8C 1B 00 90 00 1B [09:07:01]RAPDU: 90 00 [09:07:01]wFMCommunicate OK [09:07:01]wFMCommunicate request_size=10 [09:07:01]MH_SAM_APDU [09:07:01]CAPDU: 80 0D 02 02 05 DE 1F 87 BE BD [09:07:01]Write to MH i2c: E2 0D 00 8D 1B 80 0D 02 02 05 00 DE 1F 87 BE BD 00 00 2B [09:07:01]Write i2c OK [09:07:01]MH_I2C_Read... [09:07:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:01]Read from MH i2c: E2 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 03 00 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 03 00 8D 1B 00 90 00 1C [09:07:01]RAPDU: 90 00 [09:07:01]wFMCommunicate OK [09:07:01]wFMCommunicate request_size=4 [09:07:01]MH_SAM_APDU [09:07:01]CAPDU: 80 0D 03 02 [09:07:01]Write to MH i2c: E2 08 00 8E 1B 80 0D 03 02 00 00 00 00 24 [09:07:01]Write i2c OK [09:07:01]MH_I2C_Read... [09:07:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:01]Read from MH i2c: E2 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 0B 00 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 0B 00 8E 1B 00 88 2C B9 63 43 2E 94 16 90 00 10 [09:07:01]RAPDU: 88 2C B9 63 43 2E 94 16 90 00 [09:07:01]wFMCommunicate OK [09:07:01]SAM_PROTO_SignData done [09:07:01]FM_MakeSignedData done [09:07:01]CreateOFDProtocolMessage [09:07:01]wFMCommunicate request_size=4 [09:07:01]MH_SAM_APDU [09:07:01]CAPDU: 80 11 00 00 [09:07:01]Write to MH i2c: E2 08 00 8F 1B 80 11 00 00 00 00 00 00 24 [09:07:01]Write i2c OK [09:07:01]MH_I2C_Read... [09:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:01]Read from MH i2c: E2 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 17 00 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 17 00 8F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 7B [09:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:07:01]wFMCommunicate OK [09:07:01]CreateOFDProtocolMessage done [09:07:01]OFDSenderStorePacket 123521 [09:07:01]StoreOFDPacket docnum=123521 [09:07: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 09 1D 07 01 05 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B8 32 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 22 DE 1F 87 BE BD 88 2C B9 63 43 2E 94 16 [09:07:01]CheckFolder [09:07:01]dirname=/storage/ofd_packets [09:07:01]CheckFolder done [09:07:01]ProducePacketName [09:07:01]name=ofd_packets/00123521 [09:07:01]NVStorageSaveData ofd_packets/00123521 [09:07:01]File name is /storage/ofd_packets/00123521 [09:07:01]Write 301 bytes [09:07:01]NVStorageSaveData done [09:07:01]OFDSenderStorePacket done [09:07:01]KKMCreateOFDPacket done [09:07:01]NVStorageSaveData kkm_last_timestamp [09:07:01]File name is /storage/kkm_last_timestamp [09:07:01]Write 4 bytes [09:07:01]NVStorageSaveData done [09:07:01]ExternCall_PrintAddStr [09:07:01]wPrintStart [09:07:01]Write to MH i2c: 01 00 00 90 1B AB [09:07:01]Write i2c OK [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: 01 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: 01 07 00 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: 01 07 00 90 1B 00 00 00 00 00 FF 0F C0 [09:07:01]RasterBufferAndPrint [09:07:01]line Счет N : (1)718353 [09:07:01]line ИНН: 02508201610067 [09:07:01]line Контрольно-Кассовый Чек [09:07:01]line ПРОДАЖА [09:07:01]line ТРК (МРК, ГНК) : 12 [09:07:01]line Товар: 2710124130 [09:07:01]line Аи-92-К-4 [09:07:01]line 4.460 * 67.40 [09:07:01]line = 300.60 [09:07:01]line НДС 12% НСП 1% [09:07:01]line > о реализуемом товаре [09:07:01]line ОКРУГЛЕНИЕ: -0.60 [09:07:01]line ИТОГО: 300.00 [09:07:01]line Внесено: 300.00 [09:07:01]line СДАЧА: 0.00 [09:07:01]line НСП 1% : 2.66 [09:07:01]line НДС 12% : 31.92 [09:07:01]line Наличными: 300.00 [09:07:01]line Безнал.: 0.00 [09:07:01]line Место: АЗС № 64 "Партнер Нефть" [09:07:01]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:07:01]line СНО: Общий режим [09:07:01]line Чек 33 28.11.2024 09:07 [09:07:01]line Смена: 559 ФФД: 1.0 [09:07:01]line ЗНМ: 0300000033 [09:07:01]line РНМ: 0000000000092681 [09:07:01]line Версия ККМ: 001 [09:07:01]line ФМ: 0000000000874881 [09:07:01]line ФД: 123521 [09:07:01]line ФПД: 38337407073981 [09:07:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T090704&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123521&fm=38337407073981&tin=02508201610067®Number=0000000000092681&sum=30000 [09:07:01]OFD Sender: Processing packet 123521 [packets to send 7, broken 6] [09:07:01]ProducePacketName [09:07:01]name=ofd_packets/00123521 [09:07:01]OFD Sender: To server: pG, [09:07:01]CommunicateWithHost lk.salyk.kg:30040 [09:07:01]ConnectInit lk.salyk.kg [09:07:01]written 0, free lines is 4095 [09:07:02]Connected sock=10 [09:07: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 09 1D 07 01 05 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B8 32 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 22 DE 1F 87 BE BD 88 2C B9 63 43 2E 94 16 [09:07: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 5E 68 47 00 AA 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 81 E2 01 00 F4 03 04 00 7E DE 47 67 B6 04 01 00 00 CC 6F 17 FB 98 7F 30 43 [09:07:02]CommunicateWithHost err = 0 [09:07:02]CheckOFDResponse [09:07:02]1017 (14) - 77093643461234 [09:07:02]1041 (16) - 0000000000874881 [09:07:02]1040 (4) - 123521 [09:07:02]1012 (4) - 28.11.2024 03:07 [09:07:02]1206 (1) - 0 [09:07:02]OFD Sender: Remove packet 123521 [09:07:02]ProducePacketName [09:07:02]name=ofd_packets/00123521 [09:07:02]NVStorageDeleteData [09:07:02]Write to MH i2c: 01 00 00 BB 1B D6 [09:07:02]Write i2c OK [09:07:02]MH_I2C_Read... [09:07:02]Read from MH i2c: 01 [09:07:02]MH_I2C_Read... [09:07:02]Read from MH i2c: 01 07 00 [09:07:02]MH_I2C_Read... [09:07:02]Read from MH i2c: 01 07 00 BB 1B 00 00 00 00 00 37 0C 20 [09:07:02]RasterBufferAndPrint [09:07:02]line [09:07:02]line [09:07:02]line [09:07:02]line [09:07:02]line [09:07:02]written 0, free lines is 3131 [09:07:02]MH_Cut [09:07:02]Write to MH i2c: D1 01 00 C2 1B 01 AF [09:07:02]Write i2c OK [09:07:02]MH_I2C_Read... [09:07:02]Read from MH i2c: D1 [09:07:02]MH_I2C_Read... [09:07:02]Read from MH i2c: D1 01 00 [09:07:02]MH_I2C_Read... [09:07:02]Read from MH i2c: D1 01 00 C2 1B 00 AE [09:07:02]Write to MH i2c: 01 00 00 C3 1B DE [09:07:02]Write i2c OK [09:07:02]MH_I2C_Read... [09:07:02]OFD Sender: No OFD packet to send [09:07:03]*** Cut start [09:07:03]*** Partial cut [09:07:03]*** CUTSNS_PIN = 1 [09:07:03]*** CUTSNS_PIN = 0 [09:07:04]*** Brake cut motor [09:07:04]Read from MH i2c: 01 [09:07:04]MH_I2C_Read... [09:07:04]*** Stop cut motor [09:07:04]*** Cut end [09:07:04]Read from MH i2c: 01 07 00 [09:07:04]MH_I2C_Read... [09:07:04]Read from MH i2c: 01 07 00 C3 1B 00 00 00 00 00 FF 0F F3 [09:07:04]process_action close_receipt done [09:07:04]requested_data is exist [09:07:04]produce_requested_data [09:07:04]requested_item fm.sn is exist - process it [09:07:04]wFMCommunicate request_size=4 [09:07:04]MH_SAM_APDU [09:07:04]CAPDU: 80 11 00 00 [09:07:04]Write to MH i2c: E2 08 00 C4 1B 80 11 00 00 00 00 00 00 59 [09:07:04]Write i2c OK [09:07:04]MH_I2C_Read... [09:07:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:04]Read from MH i2c: E2 [09:07:04]MH_I2C_Read... [09:07:04]Read from MH i2c: E2 17 00 [09:07:04]MH_I2C_Read... [09:07:04]Read from MH i2c: E2 17 00 C4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B0 [09:07:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:07:04]wFMCommunicate OK [09:07:04]requested_item fd.num is exist - process it [09:07:04]SAM_PROTO_GetFieldsCounters [09:07:04]wFMCommunicate request_size=4 [09:07:04]MH_SAM_APDU [09:07:04]CAPDU: 80 13 00 00 [09:07:04]Write to MH i2c: E2 08 00 C5 1B 80 13 00 00 00 00 00 00 5C [09:07:04]Write i2c OK [09:07:04]MH_I2C_Read... [09:07:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:04]Read from MH i2c: E2 [09:07:04]MH_I2C_Read... [09:07:04]Read from MH i2c: E2 62 00 [09:07:04]MH_I2C_Read... [09:07:04]Read from MH i2c: E2 62 00 C5 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 7A [09:07: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 81 E2 01 00 0E 04 04 00 2F 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 [09:07:04]wFMCommunicate OK [09:07:04]SAM_PROTO_GetFieldsCounters done [09:07:04]requested_item shift.num is exist - process it [09:07:04]requested_item shift.opened is exist - process it [09:07:04]req_shift_opened [09:07:04]FM_GetShiftState [09:07:04]SAM_PROTO_GetShiftState [09:07:04]wFMCommunicate request_size=4 [09:07:04]MH_SAM_APDU [09:07:04]CAPDU: 80 13 01 00 [09:07:04]Write to MH i2c: E2 08 00 C6 1B 80 13 01 00 00 00 00 00 5E [09:07:04]Write i2c OK [09:07:04]MH_I2C_Read... [09:07:04]Read from MH i2c: E2 [09:07:04]MH_I2C_Read... [09:07:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:04]Read from MH i2c: E2 0E 00 [09:07:04]MH_I2C_Read... [09:07:04]Read from MH i2c: E2 0E 00 C6 1B 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 65 [09:07:04]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:07:04]wFMCommunicate OK [09:07:04]SAM_PROTO_GetShiftState done [09:07:04]FM_GetShiftState done [09:07:04]req_shift_opened done [09:07:04]requested_item shift.open_date is exist - process it [09:07:04]req_shift_open_date [09:07:04]req_shift_open_date done [09:07:04]produce_requested_data done [09:07:04]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123521,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [09:07:04]process_action_free close_receipt [09:07:04]json_value_free [09:07:04]json_value_free done [09:07:04]process_json_proto returns [09:07:04]Send response to host [09:07:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123521,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [09:07:04]free response buf [09:07:04]execute_script done [09:07:04]execute_script returns [09:07:04]free content buf [09:07:04]Sock 8.Close socket [09:07:04]Sock 8.Thread stoped [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:17]accept exits with 9 [09:08:17]New connection [09:08:17]New thread 3066719588 created [09:08:17]Thread 3066862948 joined [09:08:17]Waiting for new connection... [09:08:17] Sock 9.Parse request [09:08:17]Sock 9.Check first char [09:08:17]Sock 9.First char is OK [09:08:17]request: POST /json_proto HTTP/1.0 [09:08:17]Method: POST [09:08:17]URL: /json_proto [09:08:17]Method is POST - this is cgi request [09:08:17]url: /json_proto [09:08:17]query_string will be loaded in cgi processing [09:08:17]execute_cgi json_proto POST (null) [09:08:17]execute_cgi path=json_proto method=POST [09:08:17]POST find Content-Length [09:08:17]Host: 172.17.37.4:8080 [09:08:17]Content-Length: 686 [09:08:17]Content-Type: application/json [09:08:17] [09:08:17]POST finish read [09:08:17]Found Content-Length = 686 [09:08:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718354", "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" ] } } [09:08:17]execute_script... [09:08: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)718354", "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" ] } } [09:08:17]POST & json_proto [09:08:17]process_json_proto [09:08:17]json parsed OK: [09:08:17]protocol is kg_v1.0 [09:08:17]action value=close_receipt [09:08:17]process_action close_receipt [09:08:17]cmd_close_receipt [09:08:17]MH_GetDate [09:08:17]Write to MH i2c: F0 00 00 C7 1B D1 [09:08:17]Write i2c OK [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: F0 [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: F0 09 00 [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: F0 09 00 C7 1B 00 05 33 48 67 1D 3A 47 67 C6 [09:08:17]GetLastDocTimeStamp 1732784824 [09:08:17]current date 1732784901 [09:08:17]FM_GetShiftState [09:08:17]SAM_PROTO_GetShiftState [09:08:17]wFMCommunicate request_size=4 [09:08:17]MH_SAM_APDU [09:08:17]CAPDU: 80 13 01 00 [09:08:17]Write to MH i2c: E2 08 00 C8 1B 80 13 01 00 00 00 00 00 60 [09:08:17]Write i2c OK [09:08:17]MH_I2C_Read... [09:08:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:17]Read from MH i2c: E2 [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: E2 0E 00 [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: E2 0E 00 C8 1B 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 67 [09:08:17]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:08:17]wFMCommunicate OK [09:08:17]SAM_PROTO_GetShiftState done [09:08:17]FM_GetShiftState done [09:08:17]opened in 1732752282 [09:08:17]opened+sec_in_day 1732838682 [09:08:17]quantity*price = 100066 [09:08:17]sum+1 = 100067 [09:08:17]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 СНО: Общий режим Чек 34 28.11.2024 09:08 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123522 ФПД: 84030801024802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T090822&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123522&fm=84030801024802&tin=02508201610067®Number=0000000000092681&sum=100000 [09:08:18]StoreToDocumentArchive [09:08:18]shift 559 fd 123522 [09:08:18]save to /storage/0559/doc_00123522 [09:08:18]save last doc name /storage/0559/doc_00123522 to /storage/kkm_last_doc_name [09:08:18]save OK [09:08:18]Clear old archive folders... [09:08:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:08:19]tlvbuf is 014AFAE0 [09:08:19]SAM_PROTO_ClearQueue [09:08:19]wFMCommunicate request_size=4 [09:08:19]MH_SAM_APDU [09:08:19]CAPDU: 80 09 00 00 [09:08:19]Write to MH i2c: E2 08 00 D5 1B 80 09 00 00 00 00 00 00 62 [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:19]Read from MH i2c: E2 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 03 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 03 00 D5 1B 00 90 00 64 [09:08:19]RAPDU: 90 00 [09:08:19]wFMCommunicate OK [09:08:19]SAM_PROTO_ClearQueue done [09:08:19]KKMCreateOFDPacket [09:08:19]OFDProtocolAddRootSTLVToBuf [09:08:19]FM_MakeSignedData [09:08:19]FM_MakeSignedData [09:08:19]SAM_PROTO_SignData [09:08:19]wFMCommunicate request_size=4 [09:08:19]MH_SAM_APDU [09:08:19]CAPDU: 80 0D 01 02 [09:08:19]Write to MH i2c: E2 08 00 D6 1B 80 0D 01 02 00 00 00 00 6A [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:19]Read from MH i2c: E2 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 03 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 03 00 D6 1B 00 90 00 65 [09:08:19]RAPDU: 90 00 [09:08:19]wFMCommunicate OK [09:08:19]wFMCommunicate request_size=255 [09:08:19]MH_SAM_APDU [09:08:19]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 22 00 00 00 F4 03 04 00 06 33 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 [09:08:19]Write to MH i2c: E2 02 01 D7 1B 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 22 00 00 00 F4 03 04 00 06 33 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 00 00 F1 [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:19]Read from MH i2c: E2 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 03 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 03 00 D7 1B 00 90 00 66 [09:08:19]RAPDU: 90 00 [09:08:19]wFMCommunicate OK [09:08:19]wFMCommunicate request_size=11 [09:08:19]MH_SAM_APDU [09:08:19]CAPDU: 80 0D 02 02 06 4C 6C F2 0B 97 22 [09:08:19]Write to MH i2c: E2 0E 00 D8 1B 80 0D 02 02 06 00 4C 6C F2 0B 97 22 00 00 E7 [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:19]Read from MH i2c: E2 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 03 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 03 00 D8 1B 00 90 00 67 [09:08:19]RAPDU: 90 00 [09:08:19]wFMCommunicate OK [09:08:19]wFMCommunicate request_size=4 [09:08:19]MH_SAM_APDU [09:08:19]CAPDU: 80 0D 03 02 [09:08:19]Write to MH i2c: E2 08 00 D9 1B 80 0D 03 02 00 00 00 00 6F [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:19]Read from MH i2c: E2 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 0B 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 0B 00 D9 1B 00 4A CE 94 38 ED C9 0D 12 90 00 29 [09:08:19]RAPDU: 4A CE 94 38 ED C9 0D 12 90 00 [09:08:19]wFMCommunicate OK [09:08:19]SAM_PROTO_SignData done [09:08:19]FM_MakeSignedData done [09:08:19]CreateOFDProtocolMessage [09:08:19]wFMCommunicate request_size=4 [09:08:19]MH_SAM_APDU [09:08:19]CAPDU: 80 11 00 00 [09:08:19]Write to MH i2c: E2 08 00 DA 1B 80 11 00 00 00 00 00 00 6F [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:19]Read from MH i2c: E2 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 17 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 17 00 DA 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C6 [09:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:08:19]wFMCommunicate OK [09:08:19]CreateOFDProtocolMessage done [09:08:19]OFDSenderStorePacket 123522 [09:08:19]StoreOFDPacket docnum=123522 [09:08: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 10 01 00 00 44 25 08 01 64 23 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 22 00 00 00 F4 03 04 00 06 33 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 4C 6C F2 0B 97 22 4A CE 94 38 ED C9 0D 12 [09:08:19]CheckFolder [09:08:19]dirname=/storage/ofd_packets [09:08:19]CheckFolder done [09:08:19]ProducePacketName [09:08:19]name=ofd_packets/00123522 [09:08:19]NVStorageSaveData ofd_packets/00123522 [09:08:19]File name is /storage/ofd_packets/00123522 [09:08:19]Write 302 bytes [09:08:19]NVStorageSaveData done [09:08:19]OFDSenderStorePacket done [09:08:19]KKMCreateOFDPacket done [09:08:19]NVStorageSaveData kkm_last_timestamp [09:08:19]File name is /storage/kkm_last_timestamp [09:08:19]Write 4 bytes [09:08:19]NVStorageSaveData done [09:08:19]ExternCall_PrintAddStr [09:08:19]wPrintStart [09:08:19]Write to MH i2c: 01 00 00 DB 1B F6 [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: 01 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: 01 07 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: 01 07 00 DB 1B 00 00 00 00 00 FF 0F 0B [09:08:19]RasterBufferAndPrint [09:08:19]line Счет N : (1)718354 [09:08:19]line ИНН: 02508201610067 [09:08:19]line Контрольно-Кассовый Чек [09:08:19]line ПРОДАЖА [09:08:19]line ТРК (МРК, ГНК) : 5 [09:08:19]line Товар: 2710194210 [09:08:19]line ДТ(л)-К-5 [09:08:19]line 13.360 * 74.90 [09:08:19]line = 1000.66 [09:08:19]line НДС 12% НСП 1% [09:08:19]line > о реализуемом товаре [09:08:19]line ОКРУГЛЕНИЕ: -0.66 [09:08:19]line ИТОГО: 1000.00 [09:08:19]line Внесено: 1000.00 [09:08:19]line СДАЧА: 0.00 [09:08:19]line НСП 1% : 8.85 [09:08:19]line НДС 12% : 106.26 [09:08:19]line Наличными: 1000.00 [09:08:19]line Безнал.: 0.00 [09:08:19]line Место: АЗС № 64 "Партнер Нефть" [09:08:19]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:08:19]line СНО: Общий режим [09:08:19]line Чек 34 28.11.2024 09:08 [09:08:19]line Смена: 559 ФФД: 1.0 [09:08:19]line ЗНМ: 0300000033 [09:08:19]line РНМ: 0000000000092681 [09:08:19]line Версия ККМ: 001 [09:08:19]line ФМ: 0000000000874881 [09:08:19]line ФД: 123522 [09:08:19]line ФПД: 84030801024802 [09:08:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T090822&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123522&fm=84030801024802&tin=02508201610067®Number=0000000000092681&sum=100000 [09:08:19]OFD Sender: Processing packet 123522 [packets to send 7, broken 6] [09:08:19]ProducePacketName [09:08:19]name=ofd_packets/00123522 [09:08:19]OFD Sender: To server: pG, [09:08:19]CommunicateWithHost lk.salyk.kg:30040 [09:08:19]ConnectInit lk.salyk.kg [09:08:19]written 0, free lines is 4095 [09:08:19]Connected sock=10 [09:08: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 10 01 00 00 44 25 08 01 64 23 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 22 00 00 00 F4 03 04 00 06 33 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 4C 6C F2 0B 97 22 4A CE 94 38 ED C9 0D 12 [09:08: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 3C 82 47 00 F8 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 82 E2 01 00 F4 03 04 00 CC DE 47 67 B6 04 01 00 00 4C C3 BE 6F CC B3 13 2E [09:08:20]CommunicateWithHost err = 0 [09:08:20]CheckOFDResponse [09:08:20]1017 (14) - 77093643461234 [09:08:20]1041 (16) - 0000000000874881 [09:08:20]1040 (4) - 123522 [09:08:20]1012 (4) - 28.11.2024 03:09 [09:08:20]1206 (1) - 0 [09:08:20]OFD Sender: Remove packet 123522 [09:08:20]ProducePacketName [09:08:20]name=ofd_packets/00123522 [09:08:20]NVStorageDeleteData [09:08:20]Write to MH i2c: 01 00 00 06 1C 22 [09:08:20]Write i2c OK [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: 01 [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: 01 07 00 [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: 01 07 00 06 1C 00 00 00 00 00 42 0C 77 [09:08:20]RasterBufferAndPrint [09:08:20]line [09:08:20]line [09:08:20]line [09:08:20]line [09:08:20]line [09:08:20]written 0, free lines is 3142 [09:08:20]MH_Cut [09:08:20]Write to MH i2c: D1 01 00 0D 1C 01 FB [09:08:20]Write i2c OK [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: D1 [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: D1 01 00 [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: D1 01 00 0D 1C 00 FA [09:08:20]Write to MH i2c: 01 00 00 0E 1C 2A [09:08:20]Write i2c OK [09:08:20]MH_I2C_Read... [09:08:20]OFD Sender: No OFD packet to send [09:08:21]*** Cut start [09:08:21]*** Partial cut [09:08:21]*** CUTSNS_PIN = 1 [09:08:21]*** CUTSNS_PIN = 0 [09:08:21]*** Brake cut motor [09:08:22]Read from MH i2c: 01 [09:08:22]MH_I2C_Read... [09:08:22]*** Stop cut motor [09:08:22]*** Cut end [09:08:22]Read from MH i2c: 01 07 00 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: 01 07 00 0E 1C 00 00 00 00 00 FF 0F 3F [09:08:22]process_action close_receipt done [09:08:22]requested_data is exist [09:08:22]produce_requested_data [09:08:22]requested_item fm.sn is exist - process it [09:08:22]wFMCommunicate request_size=4 [09:08:22]MH_SAM_APDU [09:08:22]CAPDU: 80 11 00 00 [09:08:22]Write to MH i2c: E2 08 00 0F 1C 80 11 00 00 00 00 00 00 A5 [09:08:22]Write i2c OK [09:08:22]MH_I2C_Read... [09:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:22]Read from MH i2c: E2 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 17 00 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 17 00 0F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FC [09:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:08:22]wFMCommunicate OK [09:08:22]requested_item fd.num is exist - process it [09:08:22]SAM_PROTO_GetFieldsCounters [09:08:22]wFMCommunicate request_size=4 [09:08:22]MH_SAM_APDU [09:08:22]CAPDU: 80 13 00 00 [09:08:22]Write to MH i2c: E2 08 00 10 1C 80 13 00 00 00 00 00 00 A8 [09:08:22]Write i2c OK [09:08:22]MH_I2C_Read... [09:08:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:22]Read from MH i2c: E2 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 62 00 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 62 00 10 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 CA [09:08: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 82 E2 01 00 0E 04 04 00 2F 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 [09:08:22]wFMCommunicate OK [09:08:22]SAM_PROTO_GetFieldsCounters done [09:08:22]requested_item shift.num is exist - process it [09:08:22]requested_item shift.opened is exist - process it [09:08:22]req_shift_opened [09:08:22]FM_GetShiftState [09:08:22]SAM_PROTO_GetShiftState [09:08:22]wFMCommunicate request_size=4 [09:08:22]MH_SAM_APDU [09:08:22]CAPDU: 80 13 01 00 [09:08:22]Write to MH i2c: E2 08 00 11 1C 80 13 01 00 00 00 00 00 AA [09:08:22]Write i2c OK [09:08:22]MH_I2C_Read... [09:08:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:22]Read from MH i2c: E2 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 0E 00 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 0E 00 11 1C 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 B1 [09:08:22]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:08:22]wFMCommunicate OK [09:08:22]SAM_PROTO_GetShiftState done [09:08:22]FM_GetShiftState done [09:08:22]req_shift_opened done [09:08:22]requested_item shift.open_date is exist - process it [09:08:22]req_shift_open_date [09:08:22]req_shift_open_date done [09:08:22]produce_requested_data done [09:08:22]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123522,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [09:08:22]process_action_free close_receipt [09:08:22]json_value_free [09:08:22]json_value_free done [09:08:22]process_json_proto returns [09:08:22]Send response to host [09:08:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123522,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [09:08:22]free response buf [09:08:22]execute_script done [09:08:22]execute_script returns [09:08:22]free content buf [09:08:22]Sock 9.Close socket [09:08:22]Sock 9.Thread stoped [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:23]accept exits with 8 [09:09:23]New connection [09:09:23]New thread 3066862948 created [09:09:23]Thread 3066719588 joined [09:09:23]Waiting for new connection... [09:09:23] Sock 8.Parse request [09:09:23]Sock 8.Check first char [09:09:23]Sock 8.First char is OK [09:09:23]request: POST /json_proto HTTP/1.0 [09:09:23]Method: POST [09:09:23]URL: /json_proto [09:09:23]Method is POST - this is cgi request [09:09:23]url: /json_proto [09:09:23]query_string will be loaded in cgi processing [09:09:23]execute_cgi json_proto POST (null) [09:09:23]execute_cgi path=json_proto method=POST [09:09:23]POST find Content-Length [09:09:23]Host: 172.17.37.4:8080 [09:09:23]Content-Length: 677 [09:09:23]Content-Type: application/json [09:09:23] [09:09:23]POST finish read [09:09:23]Found Content-Length = 677 [09:09:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718355", "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" ] } } [09:09:23]execute_script... [09:09: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)718355", "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" ] } } [09:09:23]POST & json_proto [09:09:23]process_json_proto [09:09:23]json parsed OK: [09:09:23]protocol is kg_v1.0 [09:09:23]action value=close_receipt [09:09:23]process_action close_receipt [09:09:23]cmd_close_receipt [09:09:23]MH_GetDate [09:09:23]Write to MH i2c: F0 00 00 12 1C 1D [09:09:23]Write i2c OK [09:09:23]MH_I2C_Read... [09:09:23]Read from MH i2c: F0 [09:09:23]MH_I2C_Read... [09:09:23]Read from MH i2c: F0 09 00 [09:09:23]MH_I2C_Read... [09:09:23]Read from MH i2c: F0 09 00 12 1C 00 48 33 48 67 1D 3A 47 67 55 [09:09:23]GetLastDocTimeStamp 1732784902 [09:09:23]current date 1732784968 [09:09:23]FM_GetShiftState [09:09:23]SAM_PROTO_GetShiftState [09:09:23]wFMCommunicate request_size=4 [09:09:23]MH_SAM_APDU [09:09:23]CAPDU: 80 13 01 00 [09:09:23]Write to MH i2c: E2 08 00 13 1C 80 13 01 00 00 00 00 00 AC [09:09:23]Write i2c OK [09:09:23]MH_I2C_Read... [09:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:24]Read from MH i2c: E2 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 0E 00 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 0E 00 13 1C 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 B3 [09:09:24]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:09:24]wFMCommunicate OK [09:09:24]SAM_PROTO_GetShiftState done [09:09:24]FM_GetShiftState done [09:09:24]opened in 1732752282 [09:09:24]opened+sec_in_day 1732838682 [09:09:24]quantity*price = 50010 [09:09:24]sum+1 = 50012 [09:09: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 СНО: Общий режим Чек 35 28.11.2024 09:09 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123523 ФПД: 163386607261448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T090928&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123523&fm=163386607261448&tin=02508201610067®Number=0000000000092681&sum=50000 [09:09:25]StoreToDocumentArchive [09:09:25]shift 559 fd 123523 [09:09:25]save to /storage/0559/doc_00123523 [09:09:25]save last doc name /storage/0559/doc_00123523 to /storage/kkm_last_doc_name [09:09:25]save OK [09:09:25]Clear old archive folders... [09:09:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:25]tlvbuf is 01526040 [09:09:25]SAM_PROTO_ClearQueue [09:09:25]wFMCommunicate request_size=4 [09:09:25]MH_SAM_APDU [09:09:25]CAPDU: 80 09 00 00 [09:09:25]Write to MH i2c: E2 08 00 20 1C 80 09 00 00 00 00 00 00 AE [09:09:25]Write i2c OK [09:09:25]MH_I2C_Read... [09:09:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:25]Read from MH i2c: E2 [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: E2 03 00 [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: E2 03 00 20 1C 00 90 00 B0 [09:09:25]RAPDU: 90 00 [09:09:25]wFMCommunicate OK [09:09:25]SAM_PROTO_ClearQueue done [09:09:25]KKMCreateOFDPacket [09:09:25]OFDProtocolAddRootSTLVToBuf [09:09:25]FM_MakeSignedData [09:09:25]FM_MakeSignedData [09:09:25]SAM_PROTO_SignData [09:09:25]wFMCommunicate request_size=4 [09:09:25]MH_SAM_APDU [09:09:25]CAPDU: 80 0D 01 02 [09:09:25]Write to MH i2c: E2 08 00 21 1C 80 0D 01 02 00 00 00 00 B6 [09:09:25]Write i2c OK [09:09:25]MH_I2C_Read... [09:09:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:25]Read from MH i2c: E2 [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: E2 03 00 [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: E2 03 00 21 1C 00 90 00 B1 [09:09:25]RAPDU: 90 00 [09:09:25]wFMCommunicate OK [09:09:25]wFMCommunicate request_size=255 [09:09:25]MH_SAM_APDU [09:09: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 23 00 00 00 F4 03 04 00 48 33 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 94 [09:09:25]Write to MH i2c: E2 02 01 22 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 23 00 00 00 F4 03 04 00 48 33 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 94 00 00 95 [09:09:25]Write i2c OK [09:09:25]MH_I2C_Read... [09:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:25]Read from MH i2c: E2 [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: E2 03 00 [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: E2 03 00 22 1C 00 90 00 B2 [09:09:25]RAPDU: 90 00 [09:09:25]wFMCommunicate OK [09:09:25]wFMCommunicate request_size=10 [09:09:25]MH_SAM_APDU [09:09:25]CAPDU: 80 0D 02 02 05 99 68 AF D7 08 [09:09:25]Write to MH i2c: E2 0D 00 23 1C 80 0D 02 02 05 00 99 68 AF D7 08 00 00 52 [09:09:25]Write i2c OK [09:09:25]MH_I2C_Read... [09:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:25]Read from MH i2c: E2 [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: E2 03 00 [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: E2 03 00 23 1C 00 90 00 B3 [09:09:25]RAPDU: 90 00 [09:09:25]wFMCommunicate OK [09:09:25]wFMCommunicate request_size=4 [09:09:25]MH_SAM_APDU [09:09:25]CAPDU: 80 0D 03 02 [09:09:25]Write to MH i2c: E2 08 00 24 1C 80 0D 03 02 00 00 00 00 BB [09:09:25]Write i2c OK [09:09:25]MH_I2C_Read... [09:09:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:25]Read from MH i2c: E2 [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: E2 0B 00 [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: E2 0B 00 24 1C 00 06 51 97 84 35 7C 85 28 90 00 8C [09:09:25]RAPDU: 06 51 97 84 35 7C 85 28 90 00 [09:09:25]wFMCommunicate OK [09:09:25]SAM_PROTO_SignData done [09:09:25]FM_MakeSignedData done [09:09:25]CreateOFDProtocolMessage [09:09:25]wFMCommunicate request_size=4 [09:09:25]MH_SAM_APDU [09:09:25]CAPDU: 80 11 00 00 [09:09:25]Write to MH i2c: E2 08 00 25 1C 80 11 00 00 00 00 00 00 BB [09:09:25]Write i2c OK [09:09:25]MH_I2C_Read... [09:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:25]Read from MH i2c: E2 [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: E2 17 00 [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: E2 17 00 25 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 12 [09:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:09:25]wFMCommunicate OK [09:09:25]CreateOFDProtocolMessage done [09:09:25]OFDSenderStorePacket 123523 [09:09:25]StoreOFDPacket docnum=123523 [09:09: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 88 81 07 01 EB 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 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 23 00 00 00 F4 03 04 00 48 33 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 94 99 68 AF D7 08 06 51 97 84 35 7C 85 28 [09:09:25]CheckFolder [09:09:25]dirname=/storage/ofd_packets [09:09:25]CheckFolder done [09:09:25]ProducePacketName [09:09:25]name=ofd_packets/00123523 [09:09:25]NVStorageSaveData ofd_packets/00123523 [09:09:25]File name is /storage/ofd_packets/00123523 [09:09:25]Write 301 bytes [09:09:25]NVStorageSaveData done [09:09:25]OFDSenderStorePacket done [09:09:25]KKMCreateOFDPacket done [09:09:25]NVStorageSaveData kkm_last_timestamp [09:09:25]File name is /storage/kkm_last_timestamp [09:09:25]Write 4 bytes [09:09:25]NVStorageSaveData done [09:09:25]ExternCall_PrintAddStr [09:09:25]wPrintStart [09:09:25]Write to MH i2c: 01 00 00 26 1C 42 [09:09:25]Write i2c OK [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: 01 [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: 01 07 00 [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: 01 07 00 26 1C 00 00 00 00 00 FF 0F 57 [09:09:25]RasterBufferAndPrint [09:09:25]line Счет N : (1)718355 [09:09:25]line ИНН: 02508201610067 [09:09:25]line Контрольно-Кассовый Чек [09:09:25]line ПРОДАЖА [09:09:25]line ТРК (МРК, ГНК) : 32 [09:09:25]line Товар: 2710124130 [09:09:25]line Аи-92-К-4 [09:09:25]line 7.420 * 67.40 [09:09:25]line = 500.11 [09:09:25]line НДС 12% НСП 1% [09:09:25]line > о реализуемом товаре [09:09:25]line ОКРУГЛЕНИЕ: -0.11 [09:09:25]line ИТОГО: 500.00 [09:09:25]line Внесено: 500.00 [09:09:25]line СДАЧА: 0.00 [09:09:25]line НСП 1% : 4.43 [09:09:25]line НДС 12% : 53.11 [09:09:25]line Наличными: 500.00 [09:09:25]line Безнал.: 0.00 [09:09:25]line Место: АЗС № 64 "Партнер Нефть" [09:09:25]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:09:25]line СНО: Общий режим [09:09:25]line Чек 35 28.11.2024 09:09 [09:09:25]line Смена: 559 ФФД: 1.0 [09:09:25]line ЗНМ: 0300000033 [09:09:25]line РНМ: 0000000000092681 [09:09:25]line Версия ККМ: 001 [09:09:25]line ФМ: 0000000000874881 [09:09:25]line ФД: 123523 [09:09:25]line ФПД: 163386607261448 [09:09:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T090928&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123523&fm=163386607261448&tin=02508201610067®Number=0000000000092681&sum=50000 [09:09:26]OFD Sender: Processing packet 123523 [packets to send 7, broken 6] [09:09:26]ProducePacketName [09:09:26]name=ofd_packets/00123523 [09:09:26]OFD Sender: To server: pG, [09:09:26]CommunicateWithHost lk.salyk.kg:30040 [09:09:26]ConnectInit lk.salyk.kg [09:09:26]written 0, free lines is 4095 [09:09:26]Connected sock=10 [09:09: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 88 81 07 01 EB 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 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 23 00 00 00 F4 03 04 00 48 33 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 94 99 68 AF D7 08 06 51 97 84 35 7C 85 28 [09:09: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 19 A4 47 00 78 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 83 E2 01 00 F4 03 04 00 0E DF 47 67 B6 04 01 00 00 E9 C5 39 B4 59 4E F9 93 [09:09:26]CommunicateWithHost err = 0 [09:09:26]CheckOFDResponse [09:09:26]1017 (14) - 77093643461234 [09:09:26]1041 (16) - 0000000000874881 [09:09:26]1040 (4) - 123523 [09:09:26]1012 (4) - 28.11.2024 03:10 [09:09:26]1206 (1) - 0 [09:09:26]OFD Sender: Remove packet 123523 [09:09:26]ProducePacketName [09:09:26]name=ofd_packets/00123523 [09:09:26]NVStorageDeleteData [09:09:26]Write to MH i2c: 01 00 00 51 1C 6D [09:09:26]Write i2c OK [09:09:26]MH_I2C_Read... [09:09:26]Read from MH i2c: 01 [09:09:26]MH_I2C_Read... [09:09:26]Read from MH i2c: 01 07 00 [09:09:26]MH_I2C_Read... [09:09:26]Read from MH i2c: 01 07 00 51 1C 00 00 00 00 00 47 0C C7 [09:09:26]RasterBufferAndPrint [09:09:26]line [09:09:26]line [09:09:26]line [09:09:26]line [09:09:26]line [09:09:26]written 0, free lines is 3147 [09:09:26]MH_Cut [09:09:26]Write to MH i2c: D1 01 00 58 1C 01 46 [09:09:26]Write i2c OK [09:09:26]MH_I2C_Read... [09:09:26]Read from MH i2c: D1 [09:09:26]MH_I2C_Read... [09:09:26]Read from MH i2c: D1 01 00 [09:09:26]MH_I2C_Read... [09:09:26]Read from MH i2c: D1 01 00 58 1C 00 45 [09:09:26]Write to MH i2c: 01 00 00 59 1C 75 [09:09:26]Write i2c OK [09:09:26]MH_I2C_Read... [09:09:26]OFD Sender: No OFD packet to send [09:09:27]*** Cut start [09:09:27]*** Partial cut [09:09:27]*** CUTSNS_PIN = 1 [09:09:27]*** CUTSNS_PIN = 0 [09:09:28]*** Brake cut motor [09:09:28]Read from MH i2c: 01 [09:09:28]MH_I2C_Read... [09:09:28]*** Stop cut motor [09:09:28]*** Cut end [09:09:28]Read from MH i2c: 01 07 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: 01 07 00 59 1C 00 00 00 00 00 FF 0F 8A [09:09:28]process_action close_receipt done [09:09:28]requested_data is exist [09:09:28]produce_requested_data [09:09:28]requested_item fm.sn is exist - process it [09:09:28]wFMCommunicate request_size=4 [09:09:28]MH_SAM_APDU [09:09:28]CAPDU: 80 11 00 00 [09:09:28]Write to MH i2c: E2 08 00 5A 1C 80 11 00 00 00 00 00 00 F0 [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 17 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 17 00 5A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 47 [09:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:09:28]wFMCommunicate OK [09:09:28]requested_item fd.num is exist - process it [09:09:28]SAM_PROTO_GetFieldsCounters [09:09:28]wFMCommunicate request_size=4 [09:09:28]MH_SAM_APDU [09:09:28]CAPDU: 80 13 00 00 [09:09:28]Write to MH i2c: E2 08 00 5B 1C 80 13 00 00 00 00 00 00 F3 [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 62 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 62 00 5B 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 19 [09:09: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 83 E2 01 00 0E 04 04 00 2F 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 [09:09:28]wFMCommunicate OK [09:09:28]SAM_PROTO_GetFieldsCounters done [09:09:28]requested_item shift.num is exist - process it [09:09:28]requested_item shift.opened is exist - process it [09:09:28]req_shift_opened [09:09:28]FM_GetShiftState [09:09:28]SAM_PROTO_GetShiftState [09:09:28]wFMCommunicate request_size=4 [09:09:28]MH_SAM_APDU [09:09:28]CAPDU: 80 13 01 00 [09:09:28]Write to MH i2c: E2 08 00 5C 1C 80 13 01 00 00 00 00 00 F5 [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 0E 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 0E 00 5C 1C 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 FC [09:09:28]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:09:28]wFMCommunicate OK [09:09:28]SAM_PROTO_GetShiftState done [09:09:28]FM_GetShiftState done [09:09:28]req_shift_opened done [09:09:28]requested_item shift.open_date is exist - process it [09:09:28]req_shift_open_date [09:09:28]req_shift_open_date done [09:09:28]produce_requested_data done [09:09:28]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123523,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [09:09:28]process_action_free close_receipt [09:09:28]json_value_free [09:09:28]json_value_free done [09:09:28]process_json_proto returns [09:09:28]Send response to host [09:09:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123523,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [09:09:28]free response buf [09:09:28]execute_script done [09:09:28]execute_script returns [09:09:28]free content buf [09:09:28]Sock 8.Close socket [09:09:28]Sock 8.Thread stoped [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:23]accept exits with 9 [09:21:23]New connection [09:21:23]New thread 3066719588 created [09:21:23]Thread 3066862948 joined [09:21:23]Waiting for new connection... [09:21:23] Sock 9.Parse request [09:21:23]Sock 9.Check first char [09:21:23]Sock 9.First char is OK [09:21:23]request: POST /json_proto HTTP/1.0 [09:21:23]Method: POST [09:21:23]URL: /json_proto [09:21:23]Method is POST - this is cgi request [09:21:23]url: /json_proto [09:21:23]query_string will be loaded in cgi processing [09:21:23]execute_cgi json_proto POST (null) [09:21:23]execute_cgi path=json_proto method=POST [09:21:23]POST find Content-Length [09:21:23]Host: 172.17.37.4:8080 [09:21:23]Content-Length: 798 [09:21:23]Content-Type: application/json [09:21:23] [09:21:23]POST finish read [09:21:23]Found Content-Length = 798 [09:21:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718356", "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" : 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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4634120;4634121;4634123", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:23]execute_script... [09:21: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)718356", "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" : 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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4634120;4634121;4634123", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:23]POST & json_proto [09:21:23]process_json_proto [09:21:23]json parsed OK: [09:21:23]protocol is kg_v1.0 [09:21:23]action value=close_receipt [09:21:23]process_action close_receipt [09:21:23]cmd_close_receipt [09:21:23]MH_GetDate [09:21:23]Write to MH i2c: F0 00 00 5D 1C 68 [09:21:23]Write i2c OK [09:21:23]MH_I2C_Read... [09:21:23]Read from MH i2c: F0 [09:21:23]MH_I2C_Read... [09:21:23]Read from MH i2c: F0 09 00 [09:21:23]MH_I2C_Read... [09:21:23]Read from MH i2c: F0 09 00 5D 1C 00 17 36 48 67 1D 3A 47 67 72 [09:21:23]GetLastDocTimeStamp 1732784968 [09:21:23]current date 1732785687 [09:21:23]FM_GetShiftState [09:21:23]SAM_PROTO_GetShiftState [09:21:23]wFMCommunicate request_size=4 [09:21:23]MH_SAM_APDU [09:21:23]CAPDU: 80 13 01 00 [09:21:23]Write to MH i2c: E2 08 00 5E 1C 80 13 01 00 00 00 00 00 F7 [09:21:23]Write i2c OK [09:21:23]MH_I2C_Read... [09:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:23]Read from MH i2c: E2 [09:21:23]MH_I2C_Read... [09:21:23]Read from MH i2c: E2 0E 00 [09:21:23]MH_I2C_Read... [09:21:23]Read from MH i2c: E2 0E 00 5E 1C 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 FE [09:21:23]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:21:23]wFMCommunicate OK [09:21:23]SAM_PROTO_GetShiftState done [09:21:23]FM_GetShiftState done [09:21:23]opened in 1732752282 [09:21:23]opened+sec_in_day 1732838682 [09:21:23]quantity*price = 0 [09:21:23]sum+1 = 1 [09:21:23]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 28.11.2024 09:21 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Партнер нефть 4634120;4634121;4634123 ФМ: 0000000000874881 ФД: 123524 ФПД: 58179189101537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T092127&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123524&fm=58179189101537&tin=02508201610067®Number=0000000000092681&sum=0 [09:21:24]StoreToDocumentArchive [09:21:24]shift 559 fd 123524 [09:21:24]save to /storage/0559/doc_00123524 [09:21:24]save last doc name /storage/0559/doc_00123524 to /storage/kkm_last_doc_name [09:21:24]save OK [09:21:24]Clear old archive folders... [09:21:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:24]tlvbuf is 014FC820 [09:21:24]SAM_PROTO_ClearQueue [09:21:24]wFMCommunicate request_size=4 [09:21:24]MH_SAM_APDU [09:21:24]CAPDU: 80 09 00 00 [09:21:24]Write to MH i2c: E2 08 00 6B 1C 80 09 00 00 00 00 00 00 F9 [09:21:24]Write i2c OK [09:21:24]MH_I2C_Read... [09:21:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:24]Read from MH i2c: E2 [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: E2 03 00 [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: E2 03 00 6B 1C 00 90 00 FB [09:21:24]RAPDU: 90 00 [09:21:24]wFMCommunicate OK [09:21:24]SAM_PROTO_ClearQueue done [09:21:24]KKMCreateOFDPacket [09:21:24]OFDProtocolAddRootSTLVToBuf [09:21:24]FM_MakeSignedData [09:21:24]FM_MakeSignedData [09:21:24]SAM_PROTO_SignData [09:21:24]wFMCommunicate request_size=4 [09:21:24]MH_SAM_APDU [09:21:24]CAPDU: 80 0D 01 02 [09:21:24]Write to MH i2c: E2 08 00 6C 1C 80 0D 01 02 00 00 00 00 01 [09:21:24]Write i2c OK [09:21:24]MH_I2C_Read... [09:21:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:24]Read from MH i2c: E2 [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: E2 03 00 [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: E2 03 00 6C 1C 00 90 00 FC [09:21:24]RAPDU: 90 00 [09:21:24]wFMCommunicate OK [09:21:24]wFMCommunicate request_size=255 [09:21:24]MH_SAM_APDU [09:21: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 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 24 00 00 00 F4 03 04 00 17 36 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 34 [09:21:24]Write to MH i2c: E2 02 01 6D 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 24 00 00 00 F4 03 04 00 17 36 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 34 00 00 A0 [09:21:24]Write i2c OK [09:21:24]MH_I2C_Read... [09:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:24]Read from MH i2c: E2 [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: E2 03 00 [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: E2 03 00 6D 1C 00 90 00 FD [09:21:24]RAPDU: 90 00 [09:21:24]wFMCommunicate OK [09:21:24]wFMCommunicate request_size=10 [09:21:24]MH_SAM_APDU [09:21:24]CAPDU: 80 0D 02 02 05 E9 E5 E6 53 E1 [09:21:24]Write to MH i2c: E2 0D 00 6E 1C 80 0D 02 02 05 00 E9 E5 E6 53 E1 00 00 F6 [09:21:24]Write i2c OK [09:21:24]MH_I2C_Read... [09:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:24]Read from MH i2c: E2 [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: E2 03 00 [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: E2 03 00 6E 1C 00 90 00 FE [09:21:24]RAPDU: 90 00 [09:21:24]wFMCommunicate OK [09:21:24]wFMCommunicate request_size=4 [09:21:24]MH_SAM_APDU [09:21:24]CAPDU: 80 0D 03 02 [09:21:24]Write to MH i2c: E2 08 00 6F 1C 80 0D 03 02 00 00 00 00 06 [09:21:24]Write i2c OK [09:21:24]MH_I2C_Read... [09:21:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:24]Read from MH i2c: E2 [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: E2 0B 00 [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: E2 0B 00 6F 1C 00 1E 28 8C 54 87 46 87 99 90 00 1A [09:21:24]RAPDU: 1E 28 8C 54 87 46 87 99 90 00 [09:21:24]wFMCommunicate OK [09:21:24]SAM_PROTO_SignData done [09:21:24]FM_MakeSignedData done [09:21:24]CreateOFDProtocolMessage [09:21:24]wFMCommunicate request_size=4 [09:21:24]MH_SAM_APDU [09:21:24]CAPDU: 80 11 00 00 [09:21:24]Write to MH i2c: E2 08 00 70 1C 80 11 00 00 00 00 00 00 06 [09:21:24]Write i2c OK [09:21:24]MH_I2C_Read... [09:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:24]Read from MH i2c: E2 [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: E2 17 00 [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: E2 17 00 70 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5D [09:21: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:21:24]wFMCommunicate OK [09:21:24]CreateOFDProtocolMessage done [09:21:24]OFDSenderStorePacket 123524 [09:21:24]StoreOFDPacket docnum=123524 [09:21: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 37 25 07 01 F8 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 24 00 00 00 F4 03 04 00 17 36 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 34 E9 E5 E6 53 E1 1E 28 8C 54 87 46 87 99 [09:21:24]CheckFolder [09:21:24]dirname=/storage/ofd_packets [09:21:24]CheckFolder done [09:21:24]ProducePacketName [09:21:24]name=ofd_packets/00123524 [09:21:24]NVStorageSaveData ofd_packets/00123524 [09:21:24]File name is /storage/ofd_packets/00123524 [09:21:24]Write 301 bytes [09:21:24]NVStorageSaveData done [09:21:24]OFDSenderStorePacket done [09:21:24]KKMCreateOFDPacket done [09:21:24]NVStorageSaveData kkm_last_timestamp [09:21:24]File name is /storage/kkm_last_timestamp [09:21:24]Write 4 bytes [09:21:24]NVStorageSaveData done [09:21:24]ExternCall_PrintAddStr [09:21:24]wPrintStart [09:21:24]Write to MH i2c: 01 00 00 71 1C 8D [09:21:24]Write i2c OK [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: 01 [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: 01 07 00 [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: 01 07 00 71 1C 00 00 00 00 00 FF 0F A2 [09:21:24]RasterBufferAndPrint [09:21:24]line Счет N : (1)718356 [09:21:24]line ИНН: 02508201610067 [09:21:24]line Контрольно-Кассовый Чек [09:21:24]line ПРОДАЖА [09:21:24]line ТРК (МРК, ГНК) : 22 [09:21:24]line Товар: 2710124130 [09:21:24]line Аи-92-К-4 [09:21:24]line 30.000 * 0.00 [09:21:24]line = 0.00 [09:21:24]line НДС 12% НСП 1% [09:21:24]line > о реализуемом товаре [09:21:24]line ИТОГО: 0.00 [09:21:24]line НСП 1% : 0.00 [09:21:24]line НДС 12% : 0.00 [09:21:24]line Наличными: 0.00 [09:21:24]line Безнал.: 0.00 [09:21:24]line Место: АЗС № 64 "Партнер Нефть" [09:21:24]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:21:24]line СНО: Общий режим [09:21:24]line Чек 36 28.11.2024 09:21 [09:21:24]line Смена: 559 ФФД: 1.0 [09:21:24]line ЗНМ: 0300000033 [09:21:24]line РНМ: 0000000000092681 [09:21:24]line Версия ККМ: 001 [09:21:24]line Талоны: Партнер нефть [09:21:24]line 4634120;4634121;4634123 [09:21:24]line ФМ: 0000000000874881 [09:21:24]line ФД: 123524 [09:21:24]line ФПД: 58179189101537 [09:21:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T092127&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123524&fm=58179189101537&tin=02508201610067®Number=0000000000092681&sum=0 [09:21:25]written 0, free lines is 4095 [09:21:25]OFD Sender: Processing packet 123524 [packets to send 7, broken 6] [09:21:25]ProducePacketName [09:21:25]name=ofd_packets/00123524 [09:21:25]OFD Sender: To server: pG, [09:21:25]CommunicateWithHost lk.salyk.kg:30040 [09:21:25]ConnectInit lk.salyk.kg [09:21:25]Connected sock=8 [09:21: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 37 25 07 01 F8 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 24 00 00 00 F4 03 04 00 17 36 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 34 E9 E5 E6 53 E1 1E 28 8C 54 87 46 87 99 [09:21: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 D0 15 47 00 42 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 84 E2 01 00 F4 03 04 00 DD E1 47 67 B6 04 01 00 00 73 C0 9F 8D EC 45 A9 81 [09:21:25]CommunicateWithHost err = 0 [09:21:25]CheckOFDResponse [09:21:25]1017 (14) - 77093643461234 [09:21:25]1041 (16) - 0000000000874881 [09:21:25]1040 (4) - 123524 [09:21:25]1012 (4) - 28.11.2024 03:22 [09:21:25]1206 (1) - 0 [09:21:25]OFD Sender: Remove packet 123524 [09:21:25]ProducePacketName [09:21:25]name=ofd_packets/00123524 [09:21:25]NVStorageDeleteData [09:21:25]Write to MH i2c: 01 00 00 9B 1C B7 [09:21:25]Write i2c OK [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: 01 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: 01 07 00 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: 01 07 00 9B 1C 00 00 00 00 00 5A 0C 24 [09:21:25]RasterBufferAndPrint [09:21:25]line [09:21:25]line [09:21:25]line [09:21:25]line [09:21:25]line [09:21:25]written 0, free lines is 3166 [09:21:25]MH_Cut [09:21:25]Write to MH i2c: D1 01 00 A2 1C 01 90 [09:21:25]Write i2c OK [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: D1 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: D1 01 00 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: D1 01 00 A2 1C 00 8F [09:21:25]Write to MH i2c: 01 00 00 A3 1C BF [09:21:25]Write i2c OK [09:21:25]MH_I2C_Read... [09:21:25]OFD Sender: No OFD packet to send [09:21:26]*** Cut start [09:21:27]*** Partial cut [09:21:27]*** CUTSNS_PIN = 1 [09:21:27]*** CUTSNS_PIN = 0 [09:21:27]*** Brake cut motor [09:21:27]Read from MH i2c: 01 [09:21:27]MH_I2C_Read... [09:21:27]*** Stop cut motor [09:21:27]*** Cut end [09:21:27]Read from MH i2c: 01 07 00 [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: 01 07 00 A3 1C 00 00 00 00 00 FF 0F D4 [09:21:27]process_action close_receipt done [09:21:27]requested_data is exist [09:21:27]produce_requested_data [09:21:27]requested_item fm.sn is exist - process it [09:21:27]wFMCommunicate request_size=4 [09:21:27]MH_SAM_APDU [09:21:27]CAPDU: 80 11 00 00 [09:21:27]Write to MH i2c: E2 08 00 A4 1C 80 11 00 00 00 00 00 00 3A [09:21:27]Write i2c OK [09:21:27]MH_I2C_Read... [09:21:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:27]Read from MH i2c: E2 [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: E2 17 00 [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: E2 17 00 A4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 91 [09:21: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:21:27]wFMCommunicate OK [09:21:27]requested_item fd.num is exist - process it [09:21:27]SAM_PROTO_GetFieldsCounters [09:21:27]wFMCommunicate request_size=4 [09:21:27]MH_SAM_APDU [09:21:27]CAPDU: 80 13 00 00 [09:21:27]Write to MH i2c: E2 08 00 A5 1C 80 13 00 00 00 00 00 00 3D [09:21:27]Write i2c OK [09:21:27]MH_I2C_Read... [09:21:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:27]Read from MH i2c: E2 [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: E2 62 00 [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: E2 62 00 A5 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 67 [09:21: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 84 E2 01 00 0E 04 04 00 2F 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 [09:21:27]wFMCommunicate OK [09:21:27]SAM_PROTO_GetFieldsCounters done [09:21:27]requested_item shift.num is exist - process it [09:21:27]requested_item shift.opened is exist - process it [09:21:27]req_shift_opened [09:21:27]FM_GetShiftState [09:21:27]SAM_PROTO_GetShiftState [09:21:27]wFMCommunicate request_size=4 [09:21:27]MH_SAM_APDU [09:21:27]CAPDU: 80 13 01 00 [09:21:27]Write to MH i2c: E2 08 00 A6 1C 80 13 01 00 00 00 00 00 3F [09:21:27]Write i2c OK [09:21:27]MH_I2C_Read... [09:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:27]Read from MH i2c: E2 [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: E2 0E 00 [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: E2 0E 00 A6 1C 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 46 [09:21:27]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:21:27]wFMCommunicate OK [09:21:27]SAM_PROTO_GetShiftState done [09:21:27]FM_GetShiftState done [09:21:27]req_shift_opened done [09:21:27]requested_item shift.open_date is exist - process it [09:21:27]req_shift_open_date [09:21:27]req_shift_open_date done [09:21:27]produce_requested_data done [09:21:27]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123524,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [09:21:27]process_action_free close_receipt [09:21:27]json_value_free [09:21:27]json_value_free done [09:21:27]process_json_proto returns [09:21:27]Send response to host [09:21:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123524,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [09:21:27]free response buf [09:21:27]execute_script done [09:21:27]execute_script returns [09:21:27]free content buf [09:21:27]Sock 9.Close socket [09:21:27]Sock 9.Thread stoped [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [09:22:41]OFD Sender: No OFD packet to send [09:22:46]OFD Sender: No OFD packet to send [09:22:51]OFD Sender: No OFD packet to send [09:22:56]OFD Sender: No OFD packet to send [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:11]OFD Sender: No OFD packet to send [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:40]accept exits with 10 [09:23:40]New connection [09:23:40]New thread 3066862948 created [09:23:40]Thread 3066719588 joined [09:23:40]Waiting for new connection... [09:23:40] Sock 10.Parse request [09:23:40]Sock 10.Check first char [09:23:40]Sock 10.First char is OK [09:23:40]request: POST /json_proto HTTP/1.0 [09:23:40]Method: POST [09:23:40]URL: /json_proto [09:23:40]Method is POST - this is cgi request [09:23:40]url: /json_proto [09:23:40]query_string will be loaded in cgi processing [09:23:40]execute_cgi json_proto POST (null) [09:23:40]execute_cgi path=json_proto method=POST [09:23:40]POST find Content-Length [09:23:40]Host: 172.17.37.4:8080 [09:23:40]Content-Length: 682 [09:23:40]Content-Type: application/json [09:23:40] [09:23:40]POST finish read [09:23:40]Found Content-Length = 682 [09:23:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718357", "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" ] } } [09:23:40]execute_script... [09:23: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)718357", "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" ] } } [09:23:40]POST & json_proto [09:23:40]process_json_proto [09:23:40]json parsed OK: [09:23:40]protocol is kg_v1.0 [09:23:40]action value=close_receipt [09:23:40]process_action close_receipt [09:23:40]cmd_close_receipt [09:23:40]MH_GetDate [09:23:40]Write to MH i2c: F0 00 00 A7 1C B2 [09:23:40]Write i2c OK [09:23:40]MH_I2C_Read... [09:23:40]Read from MH i2c: F0 [09:23:40]MH_I2C_Read... [09:23:40]Read from MH i2c: F0 09 00 [09:23:40]MH_I2C_Read... [09:23:40]Read from MH i2c: F0 09 00 A7 1C 00 A0 36 48 67 1D 3A 47 67 45 [09:23:40]GetLastDocTimeStamp 1732785687 [09:23:40]current date 1732785824 [09:23:40]FM_GetShiftState [09:23:40]SAM_PROTO_GetShiftState [09:23:40]wFMCommunicate request_size=4 [09:23:40]MH_SAM_APDU [09:23:40]CAPDU: 80 13 01 00 [09:23:40]Write to MH i2c: E2 08 00 A8 1C 80 13 01 00 00 00 00 00 41 [09:23:40]Write i2c OK [09:23:40]MH_I2C_Read... [09:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:40]Read from MH i2c: E2 [09:23:40]MH_I2C_Read... [09:23:40]Read from MH i2c: E2 0E 00 [09:23:40]MH_I2C_Read... [09:23:40]Read from MH i2c: E2 0E 00 A8 1C 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 48 [09:23:40]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:23:40]wFMCommunicate OK [09:23:40]SAM_PROTO_GetShiftState done [09:23:40]FM_GetShiftState done [09:23:40]opened in 1732752282 [09:23:40]opened+sec_in_day 1732838682 [09:23:40]quantity*price = 100055 [09:23:40]sum+1 = 100057 [09:23:40]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 СНО: Общий режим Чек 37 28.11.2024 09:23 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123525 ФПД: 11323207193193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T092344&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123525&fm=11323207193193&tin=02508201610067®Number=0000000000092681&sum=100000 [09:23:41]StoreToDocumentArchive [09:23:41]shift 559 fd 123525 [09:23:41]save to /storage/0559/doc_00123525 [09:23:41]save last doc name /storage/0559/doc_00123525 to /storage/kkm_last_doc_name [09:23:41]save OK [09:23:41]Clear old archive folders... [09:23:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:41]tlvbuf is 015260A0 [09:23:41]SAM_PROTO_ClearQueue [09:23:41]wFMCommunicate request_size=4 [09:23:41]MH_SAM_APDU [09:23:41]CAPDU: 80 09 00 00 [09:23:41]Write to MH i2c: E2 08 00 B5 1C 80 09 00 00 00 00 00 00 43 [09:23:41]Write i2c OK [09:23:41]MH_I2C_Read... [09:23:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:41]Read from MH i2c: E2 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 03 00 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 03 00 B5 1C 00 90 00 45 [09:23:41]RAPDU: 90 00 [09:23:41]wFMCommunicate OK [09:23:41]SAM_PROTO_ClearQueue done [09:23:41]KKMCreateOFDPacket [09:23:41]OFDProtocolAddRootSTLVToBuf [09:23:41]FM_MakeSignedData [09:23:41]FM_MakeSignedData [09:23:41]SAM_PROTO_SignData [09:23:41]wFMCommunicate request_size=4 [09:23:41]MH_SAM_APDU [09:23:41]CAPDU: 80 0D 01 02 [09:23:41]Write to MH i2c: E2 08 00 B6 1C 80 0D 01 02 00 00 00 00 4B [09:23:41]Write i2c OK [09:23:41]MH_I2C_Read... [09:23:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:41]Read from MH i2c: E2 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 03 00 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 03 00 B6 1C 00 90 00 46 [09:23:41]RAPDU: 90 00 [09:23:41]wFMCommunicate OK [09:23:41]wFMCommunicate request_size=255 [09:23:41]MH_SAM_APDU [09:23:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 25 00 00 00 F4 03 04 00 A0 36 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 0A [09:23:41]Write to MH i2c: E2 02 01 B7 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 25 00 00 00 F4 03 04 00 A0 36 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 0A 00 00 14 [09:23:41]Write i2c OK [09:23:41]MH_I2C_Read... [09:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:41]Read from MH i2c: E2 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 03 00 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 03 00 B7 1C 00 90 00 47 [09:23:41]RAPDU: 90 00 [09:23:41]wFMCommunicate OK [09:23:41]wFMCommunicate request_size=10 [09:23:41]MH_SAM_APDU [09:23:41]CAPDU: 80 0D 02 02 05 4C 63 BE 12 69 [09:23:41]Write to MH i2c: E2 0D 00 B8 1C 80 0D 02 02 05 00 4C 63 BE 12 69 00 00 40 [09:23:41]Write i2c OK [09:23:41]MH_I2C_Read... [09:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:41]Read from MH i2c: E2 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 03 00 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 03 00 B8 1C 00 90 00 48 [09:23:41]RAPDU: 90 00 [09:23:41]wFMCommunicate OK [09:23:41]wFMCommunicate request_size=4 [09:23:41]MH_SAM_APDU [09:23:41]CAPDU: 80 0D 03 02 [09:23:41]Write to MH i2c: E2 08 00 B9 1C 80 0D 03 02 00 00 00 00 50 [09:23:41]Write i2c OK [09:23:41]MH_I2C_Read... [09:23:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:41]Read from MH i2c: E2 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 0B 00 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 0B 00 B9 1C 00 20 A1 F5 0C 57 93 F0 F9 90 00 E6 [09:23:41]RAPDU: 20 A1 F5 0C 57 93 F0 F9 90 00 [09:23:41]wFMCommunicate OK [09:23:41]SAM_PROTO_SignData done [09:23:41]FM_MakeSignedData done [09:23:41]CreateOFDProtocolMessage [09:23:41]wFMCommunicate request_size=4 [09:23:41]MH_SAM_APDU [09:23:41]CAPDU: 80 11 00 00 [09:23:41]Write to MH i2c: E2 08 00 BA 1C 80 11 00 00 00 00 00 00 50 [09:23:41]Write i2c OK [09:23:41]MH_I2C_Read... [09:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:41]Read from MH i2c: E2 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 17 00 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 17 00 BA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A7 [09:23: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:23:41]wFMCommunicate OK [09:23:41]CreateOFDProtocolMessage done [09:23:41]OFDSenderStorePacket 123525 [09:23:41]StoreOFDPacket docnum=123525 [09:23: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 B5 83 07 01 F7 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 25 00 00 00 F4 03 04 00 A0 36 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 0A 4C 63 BE 12 69 20 A1 F5 0C 57 93 F0 F9 [09:23:41]CheckFolder [09:23:41]dirname=/storage/ofd_packets [09:23:41]CheckFolder done [09:23:41]ProducePacketName [09:23:41]name=ofd_packets/00123525 [09:23:41]NVStorageSaveData ofd_packets/00123525 [09:23:41]File name is /storage/ofd_packets/00123525 [09:23:41]Write 301 bytes [09:23:41]NVStorageSaveData done [09:23:41]OFDSenderStorePacket done [09:23:41]KKMCreateOFDPacket done [09:23:41]NVStorageSaveData kkm_last_timestamp [09:23:41]File name is /storage/kkm_last_timestamp [09:23:41]Write 4 bytes [09:23:41]NVStorageSaveData done [09:23:41]ExternCall_PrintAddStr [09:23:41]wPrintStart [09:23:41]Write to MH i2c: 01 00 00 BB 1C D7 [09:23:41]Write i2c OK [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: 01 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: 01 07 00 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: 01 07 00 BB 1C 00 00 00 00 00 FF 0F EC [09:23:41]RasterBufferAndPrint [09:23:41]line Счет N : (1)718357 [09:23:41]line ИНН: 02508201610067 [09:23:41]line Контрольно-Кассовый Чек [09:23:41]line ПРОДАЖА [09:23:41]line ТРК (МРК, ГНК) : 21 [09:23:41]line Товар: 2710124500 [09:23:41]line Аи-95-К-5 [09:23:41]line 13.270 * 75.40 [09:23:41]line = 1000.56 [09:23:41]line НДС 12% НСП 1% [09:23:41]line > о реализуемом товаре [09:23:41]line ОКРУГЛЕНИЕ: -0.56 [09:23:41]line ИТОГО: 1000.00 [09:23:41]line Внесено: 1000.00 [09:23:41]line СДАЧА: 0.00 [09:23:41]line НСП 1% : 8.85 [09:23:41]line НДС 12% : 106.25 [09:23:41]line Наличными: 1000.00 [09:23:41]line Безнал.: 0.00 [09:23:41]line Место: АЗС № 64 "Партнер Нефть" [09:23:41]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:23:41]line СНО: Общий режим [09:23:41]line Чек 37 28.11.2024 09:23 [09:23:41]line Смена: 559 ФФД: 1.0 [09:23:41]line ЗНМ: 0300000033 [09:23:41]line РНМ: 0000000000092681 [09:23:41]line Версия ККМ: 001 [09:23:41]line ФМ: 0000000000874881 [09:23:41]line ФД: 123525 [09:23:41]line ФПД: 11323207193193 [09:23:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T092344&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123525&fm=11323207193193&tin=02508201610067®Number=0000000000092681&sum=100000 [09:23:42]OFD Sender: Processing packet 123525 [packets to send 7, broken 6] [09:23:42]ProducePacketName [09:23:42]name=ofd_packets/00123525 [09:23:42]OFD Sender: To server: pG, [09:23:42]CommunicateWithHost lk.salyk.kg:30040 [09:23:42]ConnectInit lk.salyk.kg [09:23:42]written 0, free lines is 4095 [09:23:42]Connected sock=9 [09:23: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 B5 83 07 01 F7 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 25 00 00 00 F4 03 04 00 A0 36 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 0A 4C 63 BE 12 69 20 A1 F5 0C 57 93 F0 F9 [09:23: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 30 B7 47 00 7C 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 85 E2 01 00 F4 03 04 00 66 E2 47 67 B6 04 01 00 00 B0 55 40 B9 0C E5 DF 04 [09:23:42]CommunicateWithHost err = 0 [09:23:42]CheckOFDResponse [09:23:42]1017 (14) - 77093643461234 [09:23:42]1041 (16) - 0000000000874881 [09:23:42]1040 (4) - 123525 [09:23:42]1012 (4) - 28.11.2024 03:24 [09:23:42]1206 (1) - 0 [09:23:42]OFD Sender: Remove packet 123525 [09:23:42]ProducePacketName [09:23:42]name=ofd_packets/00123525 [09:23:42]NVStorageDeleteData [09:23:42]Write to MH i2c: 01 00 00 E6 1C 02 [09:23:42]Write i2c OK [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: 01 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: 01 07 00 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: 01 07 00 E6 1C 00 00 00 00 00 3A 0C 4F [09:23:42]RasterBufferAndPrint [09:23:42]line [09:23:42]line [09:23:42]line [09:23:42]line [09:23:42]line [09:23:42]written 0, free lines is 3135 [09:23:42]MH_Cut [09:23:42]Write to MH i2c: D1 01 00 ED 1C 01 DB [09:23:42]Write i2c OK [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: D1 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: D1 01 00 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: D1 01 00 ED 1C 00 DA [09:23:42]Write to MH i2c: 01 00 00 EE 1C 0A [09:23:42]Write i2c OK [09:23:42]MH_I2C_Read... [09:23:43]OFD Sender: No OFD packet to send [09:23:44]*** Cut start [09:23:44]*** Partial cut [09:23:44]*** CUTSNS_PIN = 1 [09:23:44]*** CUTSNS_PIN = 0 [09:23:44]*** Brake cut motor [09:23:44]Read from MH i2c: 01 [09:23:44]MH_I2C_Read... [09:23:44]*** Stop cut motor [09:23:44]*** Cut end [09:23:44]Read from MH i2c: 01 07 00 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: 01 07 00 EE 1C 00 00 00 00 00 FF 0F 1F [09:23:44]process_action close_receipt done [09:23:44]requested_data is exist [09:23:44]produce_requested_data [09:23:44]requested_item fm.sn is exist - process it [09:23:44]wFMCommunicate request_size=4 [09:23:44]MH_SAM_APDU [09:23:44]CAPDU: 80 11 00 00 [09:23:44]Write to MH i2c: E2 08 00 EF 1C 80 11 00 00 00 00 00 00 85 [09:23:44]Write i2c OK [09:23:44]MH_I2C_Read... [09:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:44]Read from MH i2c: E2 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: E2 17 00 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: E2 17 00 EF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DC [09:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:23:44]wFMCommunicate OK [09:23:44]requested_item fd.num is exist - process it [09:23:44]SAM_PROTO_GetFieldsCounters [09:23:44]wFMCommunicate request_size=4 [09:23:44]MH_SAM_APDU [09:23:44]CAPDU: 80 13 00 00 [09:23:44]Write to MH i2c: E2 08 00 F0 1C 80 13 00 00 00 00 00 00 88 [09:23:44]Write i2c OK [09:23:44]MH_I2C_Read... [09:23:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:45]Read from MH i2c: E2 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 62 00 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 62 00 F0 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 B6 [09:23: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 85 E2 01 00 0E 04 04 00 2F 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 [09:23:45]wFMCommunicate OK [09:23:45]SAM_PROTO_GetFieldsCounters done [09:23:45]requested_item shift.num is exist - process it [09:23:45]requested_item shift.opened is exist - process it [09:23:45]req_shift_opened [09:23:45]FM_GetShiftState [09:23:45]SAM_PROTO_GetShiftState [09:23:45]wFMCommunicate request_size=4 [09:23:45]MH_SAM_APDU [09:23:45]CAPDU: 80 13 01 00 [09:23:45]Write to MH i2c: E2 08 00 F1 1C 80 13 01 00 00 00 00 00 8A [09:23:45]Write i2c OK [09:23:45]MH_I2C_Read... [09:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:45]Read from MH i2c: E2 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 0E 00 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 0E 00 F1 1C 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 91 [09:23:45]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:23:45]wFMCommunicate OK [09:23:45]SAM_PROTO_GetShiftState done [09:23:45]FM_GetShiftState done [09:23:45]req_shift_opened done [09:23:45]requested_item shift.open_date is exist - process it [09:23:45]req_shift_open_date [09:23:45]req_shift_open_date done [09:23:45]produce_requested_data done [09:23:45]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123525,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [09:23:45]process_action_free close_receipt [09:23:45]json_value_free [09:23:45]json_value_free done [09:23:45]process_json_proto returns [09:23:45]Send response to host [09:23:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123525,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [09:23:45]free response buf [09:23:45]execute_script done [09:23:45]execute_script returns [09:23:45]free content buf [09:23:45]Sock 10.Close socket [09:23:45]Sock 10.Thread stoped [09:23:45]accept exits with 8 [09:23:45]New connection [09:23:45]New thread 3066719588 created [09:23:45]Thread 3066862948 joined [09:23:45]Waiting for new connection... [09:23:45] Sock 8.Parse request [09:23:45]Sock 8.Check first char [09:23:45]Sock 8.First char is OK [09:23:45]request: POST /json_proto HTTP/1.0 [09:23:45]Method: POST [09:23:45]URL: /json_proto [09:23:45]Method is POST - this is cgi request [09:23:45]url: /json_proto [09:23:45]query_string will be loaded in cgi processing [09:23:45]execute_cgi json_proto POST (null) [09:23:45]execute_cgi path=json_proto method=POST [09:23:45]POST find Content-Length [09:23:45]Host: 172.17.37.4:8080 [09:23:45]Content-Length: 677 [09:23:45]Content-Type: application/json [09:23:45] [09:23:45]POST finish read [09:23:45]Found Content-Length = 677 [09:23:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718358", "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.800, "sum" : 323.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 323.00, "total" : 323.00, "payments": [ { "type": 0, "sum" : 323.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:45]execute_script... [09:23: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)718358", "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.800, "sum" : 323.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 323.00, "total" : 323.00, "payments": [ { "type": 0, "sum" : 323.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:45]POST & json_proto [09:23:45]process_json_proto [09:23:45]json parsed OK: [09:23:45]protocol is kg_v1.0 [09:23:45]action value=close_receipt [09:23:45]process_action close_receipt [09:23:45]cmd_close_receipt [09:23:45]MH_GetDate [09:23:45]Write to MH i2c: F0 00 00 F2 1C FD [09:23:45]Write i2c OK [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: F0 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: F0 09 00 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: F0 09 00 F2 1C 00 A5 36 48 67 1D 3A 47 67 95 [09:23:45]GetLastDocTimeStamp 1732785824 [09:23:45]current date 1732785829 [09:23:45]FM_GetShiftState [09:23:45]SAM_PROTO_GetShiftState [09:23:45]wFMCommunicate request_size=4 [09:23:45]MH_SAM_APDU [09:23:45]CAPDU: 80 13 01 00 [09:23:45]Write to MH i2c: E2 08 00 F3 1C 80 13 01 00 00 00 00 00 8C [09:23:45]Write i2c OK [09:23:45]MH_I2C_Read... [09:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:45]Read from MH i2c: E2 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 0E 00 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 0E 00 F3 1C 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 93 [09:23:45]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:23:45]wFMCommunicate OK [09:23:45]SAM_PROTO_GetShiftState done [09:23:45]FM_GetShiftState done [09:23:45]opened in 1732752282 [09:23:45]opened+sec_in_day 1732838682 [09:23:45]quantity*price = 32352 [09:23:45]sum+1 = 32353 [09:23:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 323.00 Внесено: 323.00 СДАЧА: 0.00 НСП 1% : 2.86 НДС 12% : 34.36 Наличными: 323.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 38 28.11.2024 09:23 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123526 ФПД: 69223057421101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T092349&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123526&fm=69223057421101&tin=02508201610067®Number=0000000000092681&sum=32300 [09:23:47]StoreToDocumentArchive [09:23:47]shift 559 fd 123526 [09:23:47]save to /storage/0559/doc_00123526 [09:23:47]save last doc name /storage/0559/doc_00123526 to /storage/kkm_last_doc_name [09:23:47]save OK [09:23:47]Clear old archive folders... [09:23:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:47]tlvbuf is 01535AC0 [09:23:47]SAM_PROTO_ClearQueue [09:23:47]wFMCommunicate request_size=4 [09:23:47]MH_SAM_APDU [09:23:47]CAPDU: 80 09 00 00 [09:23:47]Write to MH i2c: E2 08 00 00 1D 80 09 00 00 00 00 00 00 8F [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:47]Read from MH i2c: E2 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 03 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 03 00 00 1D 00 90 00 91 [09:23:47]RAPDU: 90 00 [09:23:47]wFMCommunicate OK [09:23:47]SAM_PROTO_ClearQueue done [09:23:47]KKMCreateOFDPacket [09:23:47]OFDProtocolAddRootSTLVToBuf [09:23:47]FM_MakeSignedData [09:23:47]FM_MakeSignedData [09:23:47]SAM_PROTO_SignData [09:23:47]wFMCommunicate request_size=4 [09:23:47]MH_SAM_APDU [09:23:47]CAPDU: 80 0D 01 02 [09:23:47]Write to MH i2c: E2 08 00 01 1D 80 0D 01 02 00 00 00 00 97 [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:47]Read from MH i2c: E2 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 03 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 03 00 01 1D 00 90 00 92 [09:23:47]RAPDU: 90 00 [09:23:47]wFMCommunicate OK [09:23:47]wFMCommunicate request_size=255 [09:23:47]MH_SAM_APDU [09:23:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C0 12 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 60 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 0D 00 00 00 00 07 04 06 00 2C 7E 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 A5 36 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 3E [09:23:47]Write to MH i2c: E2 02 01 02 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C0 12 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 60 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 0D 00 00 00 00 07 04 06 00 2C 7E 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 A5 36 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 3E 00 00 37 [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:47]Read from MH i2c: E2 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 03 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 03 00 02 1D 00 90 00 93 [09:23:47]RAPDU: 90 00 [09:23:47]wFMCommunicate OK [09:23:47]wFMCommunicate request_size=10 [09:23:47]MH_SAM_APDU [09:23:47]CAPDU: 80 0D 02 02 05 F5 3F BF 73 2D [09:23:47]Write to MH i2c: E2 0D 00 03 1D 80 0D 02 02 05 00 F5 3F BF 73 2D 00 00 37 [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:47]Read from MH i2c: E2 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 03 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 03 00 03 1D 00 90 00 94 [09:23:47]RAPDU: 90 00 [09:23:47]wFMCommunicate OK [09:23:47]wFMCommunicate request_size=4 [09:23:47]MH_SAM_APDU [09:23:47]CAPDU: 80 0D 03 02 [09:23:47]Write to MH i2c: E2 08 00 04 1D 80 0D 03 02 00 00 00 00 9C [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:47]Read from MH i2c: E2 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 0B 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 0B 00 04 1D 00 B5 DC 8A 37 B2 56 01 CB 90 00 C3 [09:23:47]RAPDU: B5 DC 8A 37 B2 56 01 CB 90 00 [09:23:47]wFMCommunicate OK [09:23:47]SAM_PROTO_SignData done [09:23:47]FM_MakeSignedData done [09:23:47]CreateOFDProtocolMessage [09:23:47]wFMCommunicate request_size=4 [09:23:47]MH_SAM_APDU [09:23:47]CAPDU: 80 11 00 00 [09:23:47]Write to MH i2c: E2 08 00 05 1D 80 11 00 00 00 00 00 00 9C [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:47]Read from MH i2c: E2 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 17 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 17 00 05 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F3 [09:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:23:47]wFMCommunicate OK [09:23:47]CreateOFDProtocolMessage done [09:23:47]OFDSenderStorePacket 123526 [09:23:47]StoreOFDPacket docnum=123526 [09:23: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 1B 53 07 01 DF 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C0 12 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 60 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 0D 00 00 00 00 07 04 06 00 2C 7E 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 A5 36 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 3E F5 3F BF 73 2D B5 DC 8A 37 B2 56 01 CB [09:23:47]CheckFolder [09:23:47]dirname=/storage/ofd_packets [09:23:47]CheckFolder done [09:23:47]ProducePacketName [09:23:47]name=ofd_packets/00123526 [09:23:47]NVStorageSaveData ofd_packets/00123526 [09:23:47]File name is /storage/ofd_packets/00123526 [09:23:47]Write 301 bytes [09:23:47]NVStorageSaveData done [09:23:47]OFDSenderStorePacket done [09:23:47]KKMCreateOFDPacket done [09:23:47]NVStorageSaveData kkm_last_timestamp [09:23:47]File name is /storage/kkm_last_timestamp [09:23:47]Write 4 bytes [09:23:47]NVStorageSaveData done [09:23:47]ExternCall_PrintAddStr [09:23:47]wPrintStart [09:23:47]Write to MH i2c: 01 00 00 06 1D 23 [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: 01 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: 01 07 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: 01 07 00 06 1D 00 00 00 00 00 FF 0F 38 [09:23:47]RasterBufferAndPrint [09:23:47]line Счет N : (1)718358 [09:23:47]line ИНН: 02508201610067 [09:23:47]line Контрольно-Кассовый Чек [09:23:47]line ПРОДАЖА [09:23:47]line ТРК (МРК, ГНК) : 12 [09:23:47]line Товар: 2710124130 [09:23:47]line Аи-92-К-4 [09:23:47]line 4.800 * 67.40 [09:23:47]line = 323.52 [09:23:47]line НДС 12% НСП 1% [09:23:47]line > о реализуемом товаре [09:23:47]line ОКРУГЛЕНИЕ: -0.52 [09:23:47]line ИТОГО: 323.00 [09:23:47]line Внесено: 323.00 [09:23:47]line СДАЧА: 0.00 [09:23:47]line НСП 1% : 2.86 [09:23:47]line НДС 12% : 34.36 [09:23:47]line Наличными: 323.00 [09:23:47]line Безнал.: 0.00 [09:23:47]line Место: АЗС № 64 "Партнер Нефть" [09:23:47]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:23:47]line СНО: Общий режим [09:23:47]line Чек 38 28.11.2024 09:23 [09:23:47]line Смена: 559 ФФД: 1.0 [09:23:47]line ЗНМ: 0300000033 [09:23:47]line РНМ: 0000000000092681 [09:23:47]line Версия ККМ: 001 [09:23:47]line ФМ: 0000000000874881 [09:23:47]line ФД: 123526 [09:23:47]line ФПД: 69223057421101 [09:23:47]OFD Sender: Processing packet 123526 [packets to send 7, broken 6] [09:23:47]ProducePacketName [09:23:47]name=ofd_packets/00123526 [09:23:47]OFD Sender: To server: pG, [09:23:47]CommunicateWithHost lk.salyk.kg:30040 [09:23:47]ConnectInit lk.salyk.kg [09:23:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T092349&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123526&fm=69223057421101&tin=02508201610067®Number=0000000000092681&sum=32300 [09:23:47]written 0, free lines is 4095 [09:23:47]Connected sock=10 [09:23: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 0F 01 00 00 1B 53 07 01 DF 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C0 12 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 60 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 0D 00 00 00 00 07 04 06 00 2C 7E 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 A5 36 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 3E F5 3F BF 73 2D B5 DC 8A 37 B2 56 01 CB [09:23: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 76 8F 47 00 3B 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 86 E2 01 00 F4 03 04 00 6C E2 47 67 B6 04 01 00 00 2E 6D 25 63 F2 E2 1E 7F [09:23:47]CommunicateWithHost err = 0 [09:23:47]CheckOFDResponse [09:23:47]1017 (14) - 77093643461234 [09:23:47]1041 (16) - 0000000000874881 [09:23:47]1040 (4) - 123526 [09:23:47]1012 (4) - 28.11.2024 03:24 [09:23:47]1206 (1) - 0 [09:23:47]OFD Sender: Remove packet 123526 [09:23:47]ProducePacketName [09:23:47]name=ofd_packets/00123526 [09:23:47]NVStorageDeleteData [09:23:48]Write to MH i2c: 01 00 00 31 1D 4E [09:23:48]Write i2c OK [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: 01 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: 01 07 00 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: 01 07 00 31 1D 00 00 00 00 00 58 0C B9 [09:23:48]RasterBufferAndPrint [09:23:48]line [09:23:48]line [09:23:48]line [09:23:48]line [09:23:48]line [09:23:48]written 0, free lines is 3169 [09:23:48]MH_Cut [09:23:48]Write to MH i2c: D1 01 00 38 1D 01 27 [09:23:48]Write i2c OK [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: D1 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: D1 01 00 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: D1 01 00 38 1D 00 26 [09:23:48]Write to MH i2c: 01 00 00 39 1D 56 [09:23:48]Write i2c OK [09:23:48]MH_I2C_Read... [09:23:48]OFD Sender: No OFD packet to send [09:23:49]*** Cut start [09:23:49]*** Partial cut [09:23:49]*** CUTSNS_PIN = 1 [09:23:49]*** CUTSNS_PIN = 0 [09:23:49]*** Brake cut motor [09:23:50]Read from MH i2c: 01 [09:23:50]MH_I2C_Read... [09:23:50]*** Stop cut motor [09:23:50]*** Cut end [09:23:50]Read from MH i2c: 01 07 00 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: 01 07 00 39 1D 00 00 00 00 00 FF 0F 6B [09:23:50]process_action close_receipt done [09:23:50]requested_data is exist [09:23:50]produce_requested_data [09:23:50]requested_item fm.sn is exist - process it [09:23:50]wFMCommunicate request_size=4 [09:23:50]MH_SAM_APDU [09:23:50]CAPDU: 80 11 00 00 [09:23:50]Write to MH i2c: E2 08 00 3A 1D 80 11 00 00 00 00 00 00 D1 [09:23:50]Write i2c OK [09:23:50]MH_I2C_Read... [09:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:50]Read from MH i2c: E2 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: E2 17 00 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: E2 17 00 3A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 28 [09:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:23:50]wFMCommunicate OK [09:23:50]requested_item fd.num is exist - process it [09:23:50]SAM_PROTO_GetFieldsCounters [09:23:50]wFMCommunicate request_size=4 [09:23:50]MH_SAM_APDU [09:23:50]CAPDU: 80 13 00 00 [09:23:50]Write to MH i2c: E2 08 00 3B 1D 80 13 00 00 00 00 00 00 D4 [09:23:50]Write i2c OK [09:23:50]MH_I2C_Read... [09:23:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:50]Read from MH i2c: E2 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: E2 62 00 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: E2 62 00 3B 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 06 [09:23: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 86 E2 01 00 0E 04 04 00 2F 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 [09:23:50]wFMCommunicate OK [09:23:50]SAM_PROTO_GetFieldsCounters done [09:23:50]requested_item shift.num is exist - process it [09:23:50]requested_item shift.opened is exist - process it [09:23:50]req_shift_opened [09:23:50]FM_GetShiftState [09:23:50]SAM_PROTO_GetShiftState [09:23:50]wFMCommunicate request_size=4 [09:23:50]MH_SAM_APDU [09:23:50]CAPDU: 80 13 01 00 [09:23:50]Write to MH i2c: E2 08 00 3C 1D 80 13 01 00 00 00 00 00 D6 [09:23:50]Write i2c OK [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: E2 [09:23:50]MH_I2C_Read... [09:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:50]Read from MH i2c: E2 0E 00 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: E2 0E 00 3C 1D 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 DD [09:23:50]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:23:50]wFMCommunicate OK [09:23:50]SAM_PROTO_GetShiftState done [09:23:50]FM_GetShiftState done [09:23:50]req_shift_opened done [09:23:50]requested_item shift.open_date is exist - process it [09:23:50]req_shift_open_date [09:23:50]req_shift_open_date done [09:23:50]produce_requested_data done [09:23:50]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123526,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [09:23:50]process_action_free close_receipt [09:23:50]json_value_free [09:23:50]json_value_free done [09:23:50]process_json_proto returns [09:23:50]Send response to host [09:23:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123526,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [09:23:50]free response buf [09:23:50]execute_script done [09:23:50]execute_script returns [09:23:50]free content buf [09:23:50]Sock 8.Close socket [09:23:50]Sock 8.Thread stoped [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]accept exits with 9 [09:25:58]New connection [09:25:58]New thread 3066862948 created [09:25:58]Thread 3066719588 joined [09:25:58]Waiting for new connection... [09:25:58] Sock 9.Parse request [09:25:58]Sock 9.Check first char [09:25:58]Sock 9.First char is OK [09:25:58]request: POST /json_proto HTTP/1.0 [09:25:58]Method: POST [09:25:58]URL: /json_proto [09:25:58]Method is POST - this is cgi request [09:25:58]url: /json_proto [09:25:58]query_string will be loaded in cgi processing [09:25:58]execute_cgi json_proto POST (null) [09:25:58]execute_cgi path=json_proto method=POST [09:25:58]POST find Content-Length [09:25:58]Host: 172.17.37.4:8080 [09:25:58]Content-Length: 682 [09:25:58]Content-Type: application/json [09:25:58] [09:25:58]POST finish read [09:25:58]Found Content-Length = 682 [09:25:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718359", "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" ] } } [09:25:58]execute_script... [09:25: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)718359", "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" ] } } [09:25:58]POST & json_proto [09:25:58]process_json_proto [09:25:58]json parsed OK: [09:25:58]protocol is kg_v1.0 [09:25:58]action value=close_receipt [09:25:58]process_action close_receipt [09:25:58]cmd_close_receipt [09:25:58]MH_GetDate [09:25:58]Write to MH i2c: F0 00 00 3D 1D 49 [09:25:58]Write i2c OK [09:25:58]MH_I2C_Read... [09:25:58]Read from MH i2c: F0 [09:25:58]MH_I2C_Read... [09:25:58]Read from MH i2c: F0 09 00 [09:25:58]MH_I2C_Read... [09:25:58]Read from MH i2c: F0 09 00 3D 1D 00 2A 37 48 67 1D 3A 47 67 67 [09:25:58]GetLastDocTimeStamp 1732785829 [09:25:58]current date 1732785962 [09:25:58]FM_GetShiftState [09:25:58]SAM_PROTO_GetShiftState [09:25:58]wFMCommunicate request_size=4 [09:25:58]MH_SAM_APDU [09:25:58]CAPDU: 80 13 01 00 [09:25:58]Write to MH i2c: E2 08 00 3E 1D 80 13 01 00 00 00 00 00 D8 [09:25:58]Write i2c OK [09:25:58]MH_I2C_Read... [09:25:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:58]Read from MH i2c: E2 [09:25:58]MH_I2C_Read... [09:25:58]Read from MH i2c: E2 0E 00 [09:25:58]MH_I2C_Read... [09:25:58]Read from MH i2c: E2 0E 00 3E 1D 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 DF [09:25:58]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:25:58]wFMCommunicate OK [09:25:58]SAM_PROTO_GetShiftState done [09:25:58]FM_GetShiftState done [09:25:58]opened in 1732752282 [09:25:58]opened+sec_in_day 1732838682 [09:25:58]quantity*price = 100021 [09:25:58]sum+1 = 100023 [09:25:58]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 СНО: Общий режим Чек 39 28.11.2024 09:26 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123527 ФПД: 231570377332124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T092602&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123527&fm=231570377332124&tin=02508201610067®Number=0000000000092681&sum=100000 [09:25:59]StoreToDocumentArchive [09:25:59]shift 559 fd 123527 [09:25:59]save to /storage/0559/doc_00123527 [09:25:59]save last doc name /storage/0559/doc_00123527 to /storage/kkm_last_doc_name [09:25:59]save OK [09:25:59]Clear old archive folders... [09:25:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:59]tlvbuf is 01528280 [09:25:59]SAM_PROTO_ClearQueue [09:25:59]wFMCommunicate request_size=4 [09:25:59]MH_SAM_APDU [09:25:59]CAPDU: 80 09 00 00 [09:25:59]Write to MH i2c: E2 08 00 4B 1D 80 09 00 00 00 00 00 00 DA [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:59]Read from MH i2c: E2 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 03 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 03 00 4B 1D 00 90 00 DC [09:25:59]RAPDU: 90 00 [09:25:59]wFMCommunicate OK [09:25:59]SAM_PROTO_ClearQueue done [09:25:59]KKMCreateOFDPacket [09:25:59]OFDProtocolAddRootSTLVToBuf [09:25:59]FM_MakeSignedData [09:25:59]FM_MakeSignedData [09:25:59]SAM_PROTO_SignData [09:25:59]wFMCommunicate request_size=4 [09:25:59]MH_SAM_APDU [09:25:59]CAPDU: 80 0D 01 02 [09:25:59]Write to MH i2c: E2 08 00 4C 1D 80 0D 01 02 00 00 00 00 E2 [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:59]Read from MH i2c: E2 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 03 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 03 00 4C 1D 00 90 00 DD [09:25:59]RAPDU: 90 00 [09:25:59]wFMCommunicate OK [09:25:59]wFMCommunicate request_size=255 [09:25:59]MH_SAM_APDU [09:25: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 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 27 00 00 00 F4 03 04 00 2A 37 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D2 [09:25:59]Write to MH i2c: E2 02 01 4D 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 27 00 00 00 F4 03 04 00 2A 37 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D2 00 00 DD [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:59]Read from MH i2c: E2 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 03 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 03 00 4D 1D 00 90 00 DE [09:25:59]RAPDU: 90 00 [09:25:59]wFMCommunicate OK [09:25:59]wFMCommunicate request_size=10 [09:25:59]MH_SAM_APDU [09:25:59]CAPDU: 80 0D 02 02 05 9C AE 14 D5 9C [09:25:59]Write to MH i2c: E2 0D 00 4E 1D 80 0D 02 02 05 00 9C AE 14 D5 9C 00 00 BE [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:59]Read from MH i2c: E2 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 03 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 03 00 4E 1D 00 90 00 DF [09:25:59]RAPDU: 90 00 [09:25:59]wFMCommunicate OK [09:25:59]wFMCommunicate request_size=4 [09:25:59]MH_SAM_APDU [09:25:59]CAPDU: 80 0D 03 02 [09:25:59]Write to MH i2c: E2 08 00 4F 1D 80 0D 03 02 00 00 00 00 E7 [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:59]Read from MH i2c: E2 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 0B 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 0B 00 4F 1D 00 28 5C 2F 9D 1E BA 30 71 90 00 B1 [09:25:59]RAPDU: 28 5C 2F 9D 1E BA 30 71 90 00 [09:25:59]wFMCommunicate OK [09:25:59]SAM_PROTO_SignData done [09:25:59]FM_MakeSignedData done [09:25:59]CreateOFDProtocolMessage [09:25:59]wFMCommunicate request_size=4 [09:25:59]MH_SAM_APDU [09:25:59]CAPDU: 80 11 00 00 [09:25:59]Write to MH i2c: E2 08 00 50 1D 80 11 00 00 00 00 00 00 E7 [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:59]Read from MH i2c: E2 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 17 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 17 00 50 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3E [09:25:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:25:59]wFMCommunicate OK [09:25:59]CreateOFDProtocolMessage done [09:25:59]OFDSenderStorePacket 123527 [09:25:59]StoreOFDPacket docnum=123527 [09:25: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 F2 3E 07 01 1F 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 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 27 00 00 00 F4 03 04 00 2A 37 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D2 9C AE 14 D5 9C 28 5C 2F 9D 1E BA 30 71 [09:25:59]CheckFolder [09:25:59]dirname=/storage/ofd_packets [09:25:59]CheckFolder done [09:25:59]ProducePacketName [09:25:59]name=ofd_packets/00123527 [09:25:59]NVStorageSaveData ofd_packets/00123527 [09:25:59]File name is /storage/ofd_packets/00123527 [09:25:59]Write 301 bytes [09:25:59]NVStorageSaveData done [09:25:59]OFDSenderStorePacket done [09:25:59]KKMCreateOFDPacket done [09:25:59]NVStorageSaveData kkm_last_timestamp [09:25:59]File name is /storage/kkm_last_timestamp [09:25:59]Write 4 bytes [09:25:59]NVStorageSaveData done [09:25:59]ExternCall_PrintAddStr [09:25:59]wPrintStart [09:25:59]Write to MH i2c: 01 00 00 51 1D 6E [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: 01 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: 01 07 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: 01 07 00 51 1D 00 00 00 00 00 FF 0F 83 [09:25:59]RasterBufferAndPrint [09:25:59]line Счет N : (1)718359 [09:25:59]line ИНН: 02508201610067 [09:25:59]line Контрольно-Кассовый Чек [09:25:59]line ПРОДАЖА [09:25:59]line ТРК (МРК, ГНК) : 22 [09:25:59]line Товар: 2710124130 [09:25:59]line Аи-92-К-4 [09:25:59]line 14.840 * 67.40 [09:25:59]line = 1000.22 [09:25:59]line НДС 12% НСП 1% [09:25:59]line > о реализуемом товаре [09:25:59]line ОКРУГЛЕНИЕ: -0.22 [09:25:59]line ИТОГО: 1000.00 [09:25:59]line Внесено: 1000.00 [09:25:59]line СДАЧА: 0.00 [09:25:59]line НСП 1% : 8.85 [09:25:59]line НДС 12% : 106.22 [09:25:59]line Наличными: 1000.00 [09:25:59]line Безнал.: 0.00 [09:25:59]line Место: АЗС № 64 "Партнер Нефть" [09:25:59]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:25:59]line СНО: Общий режим [09:25:59]line Чек 39 28.11.2024 09:26 [09:25:59]line Смена: 559 ФФД: 1.0 [09:25:59]line ЗНМ: 0300000033 [09:25:59]line РНМ: 0000000000092681 [09:25:59]line Версия ККМ: 001 [09:25:59]line ФМ: 0000000000874881 [09:25:59]line ФД: 123527 [09:25:59]line ФПД: 231570377332124 [09:25:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T092602&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123527&fm=231570377332124&tin=02508201610067®Number=0000000000092681&sum=100000 [09:26:00]OFD Sender: Processing packet 123527 [packets to send 7, broken 6] [09:26:00]ProducePacketName [09:26:00]name=ofd_packets/00123527 [09:26:00]OFD Sender: To server: pG, [09:26:00]CommunicateWithHost lk.salyk.kg:30040 [09:26:00]ConnectInit lk.salyk.kg [09:26:00]written 0, free lines is 4095 [09:26:00]Connected sock=10 [09:26: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 F2 3E 07 01 1F 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 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 27 00 00 00 F4 03 04 00 2A 37 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D2 9C AE 14 D5 9C 28 5C 2F 9D 1E BA 30 71 [09:26: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 75 E0 47 00 8B 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 87 E2 01 00 F4 03 04 00 F0 E2 47 67 B6 04 01 00 00 78 B7 7A 4A 1B 31 57 33 [09:26:00]CommunicateWithHost err = 0 [09:26:00]CheckOFDResponse [09:26:00]1017 (14) - 77093643461234 [09:26:00]1041 (16) - 0000000000874881 [09:26:00]1040 (4) - 123527 [09:26:00]1012 (4) - 28.11.2024 03:26 [09:26:00]1206 (1) - 0 [09:26:00]OFD Sender: Remove packet 123527 [09:26:00]ProducePacketName [09:26:00]name=ofd_packets/00123527 [09:26:00]NVStorageDeleteData [09:26:00]Write to MH i2c: 01 00 00 7C 1D 99 [09:26:00]Write i2c OK [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: 01 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: 01 07 00 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: 01 07 00 7C 1D 00 00 00 00 00 41 0C ED [09:26:00]RasterBufferAndPrint [09:26:00]line [09:26:00]line [09:26:00]line [09:26:00]line [09:26:00]line [09:26:00]written 0, free lines is 3141 [09:26:00]MH_Cut [09:26:00]Write to MH i2c: D1 01 00 83 1D 01 72 [09:26:00]Write i2c OK [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: D1 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: D1 01 00 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: D1 01 00 83 1D 00 71 [09:26:00]Write to MH i2c: 01 00 00 84 1D A1 [09:26:00]Write i2c OK [09:26:00]MH_I2C_Read... [09:26:01]OFD Sender: No OFD packet to send [09:26:02]*** Cut start [09:26:02]*** Partial cut [09:26:02]*** CUTSNS_PIN = 1 [09:26:02]*** CUTSNS_PIN = 0 [09:26:02]*** Brake cut motor [09:26:02]Read from MH i2c: 01 [09:26:02]MH_I2C_Read... [09:26:02]*** Stop cut motor [09:26:02]*** Cut end [09:26:02]Read from MH i2c: 01 07 00 [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: 01 07 00 84 1D 00 00 00 00 00 FF 0F B6 [09:26:02]process_action close_receipt done [09:26:02]requested_data is exist [09:26:02]produce_requested_data [09:26:02]requested_item fm.sn is exist - process it [09:26:02]wFMCommunicate request_size=4 [09:26:02]MH_SAM_APDU [09:26:02]CAPDU: 80 11 00 00 [09:26:02]Write to MH i2c: E2 08 00 85 1D 80 11 00 00 00 00 00 00 1C [09:26:02]Write i2c OK [09:26:02]MH_I2C_Read... [09:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:02]Read from MH i2c: E2 [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: E2 17 00 [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: E2 17 00 85 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 73 [09:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:26:02]wFMCommunicate OK [09:26:02]requested_item fd.num is exist - process it [09:26:02]SAM_PROTO_GetFieldsCounters [09:26:02]wFMCommunicate request_size=4 [09:26:02]MH_SAM_APDU [09:26:02]CAPDU: 80 13 00 00 [09:26:02]Write to MH i2c: E2 08 00 86 1D 80 13 00 00 00 00 00 00 1F [09:26:02]Write i2c OK [09:26:02]MH_I2C_Read... [09:26:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:02]Read from MH i2c: E2 [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: E2 62 00 [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: E2 62 00 86 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 55 [09:26: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 87 E2 01 00 0E 04 04 00 2F 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 [09:26:02]wFMCommunicate OK [09:26:02]SAM_PROTO_GetFieldsCounters done [09:26:02]requested_item shift.num is exist - process it [09:26:02]requested_item shift.opened is exist - process it [09:26:02]req_shift_opened [09:26:02]FM_GetShiftState [09:26:02]SAM_PROTO_GetShiftState [09:26:02]wFMCommunicate request_size=4 [09:26:02]MH_SAM_APDU [09:26:02]CAPDU: 80 13 01 00 [09:26:02]Write to MH i2c: E2 08 00 87 1D 80 13 01 00 00 00 00 00 21 [09:26:02]Write i2c OK [09:26:02]MH_I2C_Read... [09:26:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:02]Read from MH i2c: E2 [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: E2 0E 00 [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: E2 0E 00 87 1D 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 28 [09:26:02]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:26:02]wFMCommunicate OK [09:26:02]SAM_PROTO_GetShiftState done [09:26:02]FM_GetShiftState done [09:26:02]req_shift_opened done [09:26:02]requested_item shift.open_date is exist - process it [09:26:02]req_shift_open_date [09:26:02]req_shift_open_date done [09:26:02]produce_requested_data done [09:26:02]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123527,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [09:26:02]process_action_free close_receipt [09:26:02]json_value_free [09:26:02]json_value_free done [09:26:02]process_json_proto returns [09:26:03]Send response to host [09:26:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123527,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [09:26:03]free response buf [09:26:03]execute_script done [09:26:03]execute_script returns [09:26:03]free content buf [09:26:03]Sock 9.Close socket [09:26:03]Sock 9.Thread stoped [09:26:06]OFD Sender: No OFD packet to send [09:26:11]OFD Sender: No OFD packet to send [09:26:16]OFD Sender: No OFD packet to send [09:26:21]OFD Sender: No OFD packet to send [09:26:26]OFD Sender: No OFD packet to send [09:26:31]OFD Sender: No OFD packet to send [09:26:36]OFD Sender: No OFD packet to send [09:26:41]OFD Sender: No OFD packet to send [09:26:46]OFD Sender: No OFD packet to send [09:26:51]OFD Sender: No OFD packet to send [09:26:56]OFD Sender: No OFD packet to send [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:01]OFD Sender: No OFD packet to send [09:30:06]OFD Sender: No OFD packet to send [09:30:11]OFD Sender: No OFD packet to send [09:30:16]OFD Sender: No OFD packet to send [09:30:21]OFD Sender: No OFD packet to send [09:30:26]OFD Sender: No OFD packet to send [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:31]OFD Sender: No OFD packet to send [09:31:36]OFD Sender: No OFD packet to send [09:31:41]OFD Sender: No OFD packet to send [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]OFD Sender: No OFD packet to send [09:32:06]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]accept exits with 8 [09:37:26]New connection [09:37:26]New thread 3066719588 created [09:37:26]Thread 3066862948 joined [09:37:26]Waiting for new connection... [09:37:26] Sock 8.Parse request [09:37:26]Sock 8.Check first char [09:37:26]Sock 8.First char is OK [09:37:26]request: POST /json_proto HTTP/1.0 [09:37:26]Method: POST [09:37:26]URL: /json_proto [09:37:26]Method is POST - this is cgi request [09:37:26]url: /json_proto [09:37:26]query_string will be loaded in cgi processing [09:37:26]execute_cgi json_proto POST (null) [09:37:26]execute_cgi path=json_proto method=POST [09:37:26]POST find Content-Length [09:37:26]Host: 172.17.37.4:8080 [09:37:26]Content-Length: 677 [09:37:26]Content-Type: application/json [09:37:26] [09:37:26]POST finish read [09:37:26]Found Content-Length = 677 [09:37:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718360", "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" ] } } [09:37:26]execute_script... [09:37:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718360", "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" ] } } [09:37:26]POST & json_proto [09:37:26]process_json_proto [09:37:26]json parsed OK: [09:37:26]protocol is kg_v1.0 [09:37:26]action value=close_receipt [09:37:26]process_action close_receipt [09:37:26]cmd_close_receipt [09:37:26]MH_GetDate [09:37:26]Write to MH i2c: F0 00 00 88 1D 94 [09:37:26]Write i2c OK [09:37:26]MH_I2C_Read... [09:37:26]Read from MH i2c: F0 [09:37:26]MH_I2C_Read... [09:37:26]Read from MH i2c: F0 09 00 [09:37:26]MH_I2C_Read... [09:37:26]Read from MH i2c: F0 09 00 88 1D 00 DA 39 48 67 1D 3A 47 67 64 [09:37:26]GetLastDocTimeStamp 1732785962 [09:37:26]current date 1732786650 [09:37:26]FM_GetShiftState [09:37:26]SAM_PROTO_GetShiftState [09:37:26]wFMCommunicate request_size=4 [09:37:26]MH_SAM_APDU [09:37:26]CAPDU: 80 13 01 00 [09:37:26]Write to MH i2c: E2 08 00 89 1D 80 13 01 00 00 00 00 00 23 [09:37:26]Write i2c OK [09:37:26]MH_I2C_Read... [09:37:26]OFD Sender: No OFD packet to send [09:37:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:26]Read from MH i2c: E2 [09:37:26]MH_I2C_Read... [09:37:26]Read from MH i2c: E2 0E 00 [09:37:26]MH_I2C_Read... [09:37:26]Read from MH i2c: E2 0E 00 89 1D 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 2A [09:37:26]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:37:26]wFMCommunicate OK [09:37:26]SAM_PROTO_GetShiftState done [09:37:26]FM_GetShiftState done [09:37:26]opened in 1732752282 [09:37:26]opened+sec_in_day 1732838682 [09:37:26]quantity*price = 50010 [09:37:26]sum+1 = 50012 [09:37:26]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 СНО: Общий режим Чек 40 28.11.2024 09:37 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123528 ФПД: 60051503851880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T093730&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123528&fm=60051503851880&tin=02508201610067®Number=0000000000092681&sum=50000 [09:37:27]StoreToDocumentArchive [09:37:27]shift 559 fd 123528 [09:37:27]save to /storage/0559/doc_00123528 [09:37:27]save last doc name /storage/0559/doc_00123528 to /storage/kkm_last_doc_name [09:37:27]save OK [09:37:27]Clear old archive folders... [09:37:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:27]tlvbuf is 014F01D0 [09:37:27]SAM_PROTO_ClearQueue [09:37:27]wFMCommunicate request_size=4 [09:37:27]MH_SAM_APDU [09:37:27]CAPDU: 80 09 00 00 [09:37:27]Write to MH i2c: E2 08 00 96 1D 80 09 00 00 00 00 00 00 25 [09:37:27]Write i2c OK [09:37:27]MH_I2C_Read... [09:37:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:27]Read from MH i2c: E2 [09:37:27]MH_I2C_Read... [09:37:27]Read from MH i2c: E2 03 00 [09:37:27]MH_I2C_Read... [09:37:27]Read from MH i2c: E2 03 00 96 1D 00 90 00 27 [09:37:27]RAPDU: 90 00 [09:37:27]wFMCommunicate OK [09:37:27]SAM_PROTO_ClearQueue done [09:37:27]KKMCreateOFDPacket [09:37:27]OFDProtocolAddRootSTLVToBuf [09:37:27]FM_MakeSignedData [09:37:27]FM_MakeSignedData [09:37:27]SAM_PROTO_SignData [09:37:27]wFMCommunicate request_size=4 [09:37:27]MH_SAM_APDU [09:37:27]CAPDU: 80 0D 01 02 [09:37:27]Write to MH i2c: E2 08 00 97 1D 80 0D 01 02 00 00 00 00 2D [09:37:27]Write i2c OK [09:37:27]MH_I2C_Read... [09:37:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:27]Read from MH i2c: E2 [09:37:27]MH_I2C_Read... [09:37:27]Read from MH i2c: E2 03 00 [09:37:27]MH_I2C_Read... [09:37:27]Read from MH i2c: E2 03 00 97 1D 00 90 00 28 [09:37:27]RAPDU: 90 00 [09:37:27]wFMCommunicate OK [09:37:27]wFMCommunicate request_size=255 [09:37:27]MH_SAM_APDU [09:37: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 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 28 00 00 00 F4 03 04 00 DA 39 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 36 [09:37:27]Write to MH i2c: E2 02 01 98 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 28 00 00 00 F4 03 04 00 DA 39 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 36 00 00 50 [09:37:27]Write i2c OK [09:37:27]MH_I2C_Read... [09:37:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:28]Read from MH i2c: E2 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 98 1D 00 90 00 29 [09:37:28]RAPDU: 90 00 [09:37:28]wFMCommunicate OK [09:37:28]wFMCommunicate request_size=10 [09:37:28]MH_SAM_APDU [09:37:28]CAPDU: 80 0D 02 02 05 9D D4 8E 29 68 [09:37:28]Write to MH i2c: E2 0D 00 99 1D 80 0D 02 02 05 00 9D D4 8E 29 68 00 00 CA [09:37:28]Write i2c OK [09:37:28]MH_I2C_Read... [09:37:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:28]Read from MH i2c: E2 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 99 1D 00 90 00 2A [09:37:28]RAPDU: 90 00 [09:37:28]wFMCommunicate OK [09:37:28]wFMCommunicate request_size=4 [09:37:28]MH_SAM_APDU [09:37:28]CAPDU: 80 0D 03 02 [09:37:28]Write to MH i2c: E2 08 00 9A 1D 80 0D 03 02 00 00 00 00 32 [09:37:28]Write i2c OK [09:37:28]MH_I2C_Read... [09:37:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:28]Read from MH i2c: E2 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 0B 00 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 0B 00 9A 1D 00 03 B2 7A 43 33 18 E1 6F 90 00 40 [09:37:28]RAPDU: 03 B2 7A 43 33 18 E1 6F 90 00 [09:37:28]wFMCommunicate OK [09:37:28]SAM_PROTO_SignData done [09:37:28]FM_MakeSignedData done [09:37:28]CreateOFDProtocolMessage [09:37:28]wFMCommunicate request_size=4 [09:37:28]MH_SAM_APDU [09:37:28]CAPDU: 80 11 00 00 [09:37:28]Write to MH i2c: E2 08 00 9B 1D 80 11 00 00 00 00 00 00 32 [09:37:28]Write i2c OK [09:37:28]MH_I2C_Read... [09:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:28]Read from MH i2c: E2 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 17 00 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 17 00 9B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 89 [09: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 [09:37:28]wFMCommunicate OK [09:37:28]CreateOFDProtocolMessage done [09:37:28]OFDSenderStorePacket 123528 [09:37:28]StoreOFDPacket docnum=123528 [09:37:28]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 9C 90 07 01 39 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 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 28 00 00 00 F4 03 04 00 DA 39 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 36 9D D4 8E 29 68 03 B2 7A 43 33 18 E1 6F [09:37:28]CheckFolder [09:37:28]dirname=/storage/ofd_packets [09:37:28]CheckFolder done [09:37:28]ProducePacketName [09:37:28]name=ofd_packets/00123528 [09:37:28]NVStorageSaveData ofd_packets/00123528 [09:37:28]File name is /storage/ofd_packets/00123528 [09:37:28]Write 301 bytes [09:37:28]NVStorageSaveData done [09:37:28]OFDSenderStorePacket done [09:37:28]KKMCreateOFDPacket done [09:37:28]NVStorageSaveData kkm_last_timestamp [09:37:28]File name is /storage/kkm_last_timestamp [09:37:28]Write 4 bytes [09:37:28]NVStorageSaveData done [09:37:28]ExternCall_PrintAddStr [09:37:28]wPrintStart [09:37:28]Write to MH i2c: 01 00 00 9C 1D B9 [09:37:28]Write i2c OK [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: 01 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: 01 07 00 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: 01 07 00 9C 1D 00 00 00 00 00 FF 0F CE [09:37:28]RasterBufferAndPrint [09:37:28]line Счет N : (1)718360 [09:37:28]line ИНН: 02508201610067 [09:37:28]line Контрольно-Кассовый Чек [09:37:28]line ПРОДАЖА [09:37:28]line ТРК (МРК, ГНК) : 12 [09:37:28]line Товар: 2710124130 [09:37:28]line Аи-92-К-4 [09:37:28]line 7.420 * 67.40 [09:37:28]line = 500.11 [09:37:28]line НДС 12% НСП 1% [09:37:28]line > о реализуемом товаре [09:37:28]line ОКРУГЛЕНИЕ: -0.11 [09:37:28]line ИТОГО: 500.00 [09:37:28]line Внесено: 500.00 [09:37:28]line СДАЧА: 0.00 [09:37:28]line НСП 1% : 4.43 [09:37:28]line НДС 12% : 53.11 [09:37:28]line Наличными: 500.00 [09:37:28]line Безнал.: 0.00 [09:37:28]line Место: АЗС № 64 "Партнер Нефть" [09:37:28]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:37:28]line СНО: Общий режим [09:37:28]line Чек 40 28.11.2024 09:37 [09:37:28]line Смена: 559 ФФД: 1.0 [09:37:28]line ЗНМ: 0300000033 [09:37:28]line РНМ: 0000000000092681 [09:37:28]line Версия ККМ: 001 [09:37:28]line ФМ: 0000000000874881 [09:37:28]line ФД: 123528 [09:37:28]line ФПД: 60051503851880 [09:37:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T093730&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123528&fm=60051503851880&tin=02508201610067®Number=0000000000092681&sum=50000 [09:37:28]OFD Sender: Processing packet 123528 [packets to send 7, broken 6] [09:37:28]ProducePacketName [09:37:28]name=ofd_packets/00123528 [09:37:28]OFD Sender: To server: pG, [09:37:28]CommunicateWithHost lk.salyk.kg:30040 [09:37:28]ConnectInit lk.salyk.kg [09:37:28]written 0, free lines is 4095 [09:37:28]Connected sock=10 [09:37: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 9C 90 07 01 39 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 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 28 00 00 00 F4 03 04 00 DA 39 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 36 9D D4 8E 29 68 03 B2 7A 43 33 18 E1 6F [09:37: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 51 46 47 00 2D 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 88 E2 01 00 F4 03 04 00 A1 E5 47 67 B6 04 01 00 00 F3 EA 16 08 96 EE BE DE [09:37:28]CommunicateWithHost err = 0 [09:37:28]CheckOFDResponse [09:37:28]1017 (14) - 77093643461234 [09:37:28]1041 (16) - 0000000000874881 [09:37:28]1040 (4) - 123528 [09:37:28]1012 (4) - 28.11.2024 03:38 [09:37:28]1206 (1) - 0 [09:37:28]OFD Sender: Remove packet 123528 [09:37:28]ProducePacketName [09:37:28]name=ofd_packets/00123528 [09:37:28]NVStorageDeleteData [09:37:29]Write to MH i2c: 01 00 00 C7 1D E4 [09:37:29]Write i2c OK [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: 01 [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: 01 07 00 [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: 01 07 00 C7 1D 00 00 00 00 00 3C 0C 33 [09:37:29]RasterBufferAndPrint [09:37:29]line [09:37:29]line [09:37:29]line [09:37:29]line [09:37:29]line [09:37:29]written 0, free lines is 3137 [09:37:29]MH_Cut [09:37:29]Write to MH i2c: D1 01 00 CE 1D 01 BD [09:37:29]Write i2c OK [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: D1 [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: D1 01 00 [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: D1 01 00 CE 1D 00 BC [09:37:29]Write to MH i2c: 01 00 00 CF 1D EC [09:37:29]Write i2c OK [09:37:29]MH_I2C_Read... [09:37:29]OFD Sender: No OFD packet to send [09:37:30]*** Cut start [09:37:30]*** Partial cut [09:37:30]*** CUTSNS_PIN = 1 [09:37:30]*** CUTSNS_PIN = 0 [09:37:30]*** Brake cut motor [09:37:31]Read from MH i2c: 01 [09:37:31]MH_I2C_Read... [09:37:31]*** Stop cut motor [09:37:31]*** Cut end [09:37:31]Read from MH i2c: 01 07 00 [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: 01 07 00 CF 1D 00 00 00 00 00 FF 0F 01 [09:37:31]process_action close_receipt done [09:37:31]requested_data is exist [09:37:31]produce_requested_data [09:37:31]requested_item fm.sn is exist - process it [09:37:31]wFMCommunicate request_size=4 [09:37:31]MH_SAM_APDU [09:37:31]CAPDU: 80 11 00 00 [09:37:31]Write to MH i2c: E2 08 00 D0 1D 80 11 00 00 00 00 00 00 67 [09:37:31]Write i2c OK [09:37:31]MH_I2C_Read... [09:37:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:31]Read from MH i2c: E2 [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: E2 17 00 [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: E2 17 00 D0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BE [09:37:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:37:31]wFMCommunicate OK [09:37:31]requested_item fd.num is exist - process it [09:37:31]SAM_PROTO_GetFieldsCounters [09:37:31]wFMCommunicate request_size=4 [09:37:31]MH_SAM_APDU [09:37:31]CAPDU: 80 13 00 00 [09:37:31]Write to MH i2c: E2 08 00 D1 1D 80 13 00 00 00 00 00 00 6A [09:37:31]Write i2c OK [09:37:31]MH_I2C_Read... [09:37:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:31]Read from MH i2c: E2 [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: E2 62 00 [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: E2 62 00 D1 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 A4 [09:37: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 88 E2 01 00 0E 04 04 00 2F 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 [09:37:31]wFMCommunicate OK [09:37:31]SAM_PROTO_GetFieldsCounters done [09:37:31]requested_item shift.num is exist - process it [09:37:31]requested_item shift.opened is exist - process it [09:37:31]req_shift_opened [09:37:31]FM_GetShiftState [09:37:31]SAM_PROTO_GetShiftState [09:37:31]wFMCommunicate request_size=4 [09:37:31]MH_SAM_APDU [09:37:31]CAPDU: 80 13 01 00 [09:37:31]Write to MH i2c: E2 08 00 D2 1D 80 13 01 00 00 00 00 00 6C [09:37:31]Write i2c OK [09:37:31]MH_I2C_Read... [09:37:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:31]Read from MH i2c: E2 [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: E2 0E 00 [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: E2 0E 00 D2 1D 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 73 [09:37:31]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:37:31]wFMCommunicate OK [09:37:31]SAM_PROTO_GetShiftState done [09:37:31]FM_GetShiftState done [09:37:31]req_shift_opened done [09:37:31]requested_item shift.open_date is exist - process it [09:37:31]req_shift_open_date [09:37:31]req_shift_open_date done [09:37:31]produce_requested_data done [09:37:31]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123528,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [09:37:31]process_action_free close_receipt [09:37:31]json_value_free [09:37:31]json_value_free done [09:37:31]process_json_proto returns [09:37:31]Send response to host [09:37:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123528,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [09:37:31]free response buf [09:37:31]execute_script done [09:37:31]execute_script returns [09:37:31]free content buf [09:37:31]Sock 8.Close socket [09:37:31]Sock 8.Thread stoped [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:16]accept exits with 9 [09:40:16]New connection [09:40:16]New thread 3066862948 created [09:40:16]Thread 3066719588 joined [09:40:16]Waiting for new connection... [09:40:16] Sock 9.Parse request [09:40:16]Sock 9.Check first char [09:40:16]Sock 9.First char is OK [09:40:16]request: POST /json_proto HTTP/1.0 [09:40:16]Method: POST [09:40:16]URL: /json_proto [09:40:16]Method is POST - this is cgi request [09:40:16]url: /json_proto [09:40:16]query_string will be loaded in cgi processing [09:40:16]execute_cgi json_proto POST (null) [09:40:16]execute_cgi path=json_proto method=POST [09:40:16]POST find Content-Length [09:40:16]Host: 172.17.37.4:8080 [09:40:16]Content-Length: 677 [09:40:16]Content-Type: application/json [09:40:16] [09:40:16]POST finish read [09:40:16]Found Content-Length = 677 [09:40:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718361", "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" ] } } [09:40:16]execute_script... [09:40: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)718361", "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" ] } } [09:40:16]POST & json_proto [09:40:16]process_json_proto [09:40:16]json parsed OK: [09:40:16]protocol is kg_v1.0 [09:40:16]action value=close_receipt [09:40:16]process_action close_receipt [09:40:16]cmd_close_receipt [09:40:16]MH_GetDate [09:40:16]Write to MH i2c: F0 00 00 D3 1D DF [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: F0 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: F0 09 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: F0 09 00 D3 1D 00 84 3A 48 67 1D 3A 47 67 5A [09:40:16]GetLastDocTimeStamp 1732786650 [09:40:16]current date 1732786820 [09:40:16]FM_GetShiftState [09:40:16]SAM_PROTO_GetShiftState [09:40:16]wFMCommunicate request_size=4 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 13 01 00 [09:40:16]Write to MH i2c: E2 08 00 D4 1D 80 13 01 00 00 00 00 00 6E [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 0E 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 0E 00 D4 1D 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 75 [09:40:16]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:40:16]wFMCommunicate OK [09:40:16]SAM_PROTO_GetShiftState done [09:40:16]FM_GetShiftState done [09:40:16]opened in 1732752282 [09:40:16]opened+sec_in_day 1732838682 [09:40:16]quantity*price = 50010 [09:40:16]sum+1 = 50012 [09:40: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 СНО: Общий режим Чек 41 28.11.2024 09:40 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123529 ФПД: 50246585986496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T094020&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123529&fm=50246585986496&tin=02508201610067®Number=0000000000092681&sum=50000 [09:40:17]StoreToDocumentArchive [09:40:17]shift 559 fd 123529 [09:40:17]save to /storage/0559/doc_00123529 [09:40:17]save last doc name /storage/0559/doc_00123529 to /storage/kkm_last_doc_name [09:40:17]save OK [09:40:17]Clear old archive folders... [09:40:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:17]tlvbuf is 014DC890 [09:40:17]SAM_PROTO_ClearQueue [09:40:17]wFMCommunicate request_size=4 [09:40:17]MH_SAM_APDU [09:40:17]CAPDU: 80 09 00 00 [09:40:17]Write to MH i2c: E2 08 00 E1 1D 80 09 00 00 00 00 00 00 70 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:17]Read from MH i2c: E2 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 03 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 03 00 E1 1D 00 90 00 72 [09:40:17]RAPDU: 90 00 [09:40:17]wFMCommunicate OK [09:40:17]SAM_PROTO_ClearQueue done [09:40:17]KKMCreateOFDPacket [09:40:17]OFDProtocolAddRootSTLVToBuf [09:40:17]FM_MakeSignedData [09:40:17]FM_MakeSignedData [09:40:17]SAM_PROTO_SignData [09:40:17]wFMCommunicate request_size=4 [09:40:17]MH_SAM_APDU [09:40:17]CAPDU: 80 0D 01 02 [09:40:17]Write to MH i2c: E2 08 00 E2 1D 80 0D 01 02 00 00 00 00 78 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:17]Read from MH i2c: E2 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 03 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 03 00 E2 1D 00 90 00 73 [09:40:17]RAPDU: 90 00 [09:40:17]wFMCommunicate OK [09:40:17]wFMCommunicate request_size=255 [09:40:17]MH_SAM_APDU [09:40: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 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 29 00 00 00 F4 03 04 00 84 3A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2D [09:40:17]Write to MH i2c: E2 02 01 E3 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 29 00 00 00 F4 03 04 00 84 3A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2D 00 00 3F [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 E3 1D 00 90 00 74 [09:40:18]RAPDU: 90 00 [09:40:18]wFMCommunicate OK [09:40:18]wFMCommunicate request_size=10 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 0D 02 02 05 B2 F1 E8 AD C0 [09:40:18]Write to MH i2c: E2 0D 00 E4 1D 80 0D 02 02 05 00 B2 F1 E8 AD C0 00 00 7D [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 E4 1D 00 90 00 75 [09:40:18]RAPDU: 90 00 [09:40:18]wFMCommunicate OK [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 0D 03 02 [09:40:18]Write to MH i2c: E2 08 00 E5 1D 80 0D 03 02 00 00 00 00 7D [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 0B 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 0B 00 E5 1D 00 E3 77 66 4C 22 75 5B 05 90 00 81 [09:40:18]RAPDU: E3 77 66 4C 22 75 5B 05 90 00 [09:40:18]wFMCommunicate OK [09:40:18]SAM_PROTO_SignData done [09:40:18]FM_MakeSignedData done [09:40:18]CreateOFDProtocolMessage [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 11 00 00 [09:40:18]Write to MH i2c: E2 08 00 E6 1D 80 11 00 00 00 00 00 00 7D [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 17 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 17 00 E6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D4 [09:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:40:18]wFMCommunicate OK [09:40:18]CreateOFDProtocolMessage done [09:40:18]OFDSenderStorePacket 123529 [09:40:18]StoreOFDPacket docnum=123529 [09:40: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 82 A3 07 01 D8 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 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 29 00 00 00 F4 03 04 00 84 3A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2D B2 F1 E8 AD C0 E3 77 66 4C 22 75 5B 05 [09:40:18]CheckFolder [09:40:18]dirname=/storage/ofd_packets [09:40:18]CheckFolder done [09:40:18]ProducePacketName [09:40:18]name=ofd_packets/00123529 [09:40:18]NVStorageSaveData ofd_packets/00123529 [09:40:18]File name is /storage/ofd_packets/00123529 [09:40:18]Write 301 bytes [09:40:18]NVStorageSaveData done [09:40:18]OFDSenderStorePacket done [09:40:18]KKMCreateOFDPacket done [09:40:18]NVStorageSaveData kkm_last_timestamp [09:40:18]File name is /storage/kkm_last_timestamp [09:40:18]Write 4 bytes [09:40:18]NVStorageSaveData done [09:40:18]ExternCall_PrintAddStr [09:40:18]wPrintStart [09:40:18]Write to MH i2c: 01 00 00 E7 1D 04 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: 01 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: 01 07 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: 01 07 00 E7 1D 00 00 00 00 00 FF 0F 19 [09:40:18]RasterBufferAndPrint [09:40:18]line Счет N : (1)718361 [09:40:18]line ИНН: 02508201610067 [09:40:18]line Контрольно-Кассовый Чек [09:40:18]line ПРОДАЖА [09:40:18]line ТРК (МРК, ГНК) : 12 [09:40:18]line Товар: 2710124130 [09:40:18]line Аи-92-К-4 [09:40:18]line 7.420 * 67.40 [09:40:18]line = 500.11 [09:40:18]line НДС 12% НСП 1% [09:40:18]line > о реализуемом товаре [09:40:18]line ОКРУГЛЕНИЕ: -0.11 [09:40:18]line ИТОГО: 500.00 [09:40:18]line Внесено: 500.00 [09:40:18]line СДАЧА: 0.00 [09:40:18]line НСП 1% : 4.43 [09:40:18]line НДС 12% : 53.11 [09:40:18]line Наличными: 500.00 [09:40:18]line Безнал.: 0.00 [09:40:18]line Место: АЗС № 64 "Партнер Нефть" [09:40:18]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:40:18]line СНО: Общий режим [09:40:18]line Чек 41 28.11.2024 09:40 [09:40:18]line Смена: 559 ФФД: 1.0 [09:40:18]line ЗНМ: 0300000033 [09:40:18]line РНМ: 0000000000092681 [09:40:18]line Версия ККМ: 001 [09:40:18]line ФМ: 0000000000874881 [09:40:18]line ФД: 123529 [09:40:18]line ФПД: 50246585986496 [09:40:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T094020&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123529&fm=50246585986496&tin=02508201610067®Number=0000000000092681&sum=50000 [09:40:18]OFD Sender: Processing packet 123529 [packets to send 7, broken 6] [09:40:18]ProducePacketName [09:40:18]name=ofd_packets/00123529 [09:40:18]OFD Sender: To server: pG, [09:40:18]CommunicateWithHost lk.salyk.kg:30040 [09:40:18]ConnectInit lk.salyk.kg [09:40:18]written 0, free lines is 4095 [09:40:18]Connected sock=10 [09:40: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 82 A3 07 01 D8 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 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 29 00 00 00 F4 03 04 00 84 3A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2D B2 F1 E8 AD C0 E3 77 66 4C 22 75 5B 05 [09:40: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 72 1D 47 00 72 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 89 E2 01 00 F4 03 04 00 4B E6 47 67 B6 04 01 00 00 6E 4B DB 6C A6 A2 78 4A [09:40:18]CommunicateWithHost err = 0 [09:40:18]CheckOFDResponse [09:40:18]1017 (14) - 77093643461234 [09:40:18]1041 (16) - 0000000000874881 [09:40:18]1040 (4) - 123529 [09:40:18]1012 (4) - 28.11.2024 03:40 [09:40:18]1206 (1) - 0 [09:40:18]OFD Sender: Remove packet 123529 [09:40:18]ProducePacketName [09:40:18]name=ofd_packets/00123529 [09:40:18]NVStorageDeleteData [09:40:19]Write to MH i2c: 01 00 00 12 1E 30 [09:40:19]Write i2c OK [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: 01 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: 01 07 00 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: 01 07 00 12 1E 00 00 00 00 00 49 0C 8C [09:40:19]RasterBufferAndPrint [09:40:19]line [09:40:19]line [09:40:19]line [09:40:19]line [09:40:19]line [09:40:19]written 0, free lines is 3149 [09:40:19]MH_Cut [09:40:19]Write to MH i2c: D1 01 00 19 1E 01 09 [09:40:19]Write i2c OK [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: D1 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: D1 01 00 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: D1 01 00 19 1E 00 08 [09:40:19]Write to MH i2c: 01 00 00 1A 1E 38 [09:40:19]Write i2c OK [09:40:19]MH_I2C_Read... [09:40:19]OFD Sender: No OFD packet to send [09:40:20]*** Cut start [09:40:20]*** Partial cut [09:40:20]*** CUTSNS_PIN = 1 [09:40:20]*** CUTSNS_PIN = 0 [09:40:20]*** Brake cut motor [09:40:21]Read from MH i2c: 01 [09:40:21]MH_I2C_Read... [09:40:21]*** Stop cut motor [09:40:21]Read from MH i2c: *** Cut end [09:40:21]01 07 00 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: 01 07 00 1A 1E 00 00 00 00 00 FF 0F 4D [09:40:21]process_action close_receipt done [09:40:21]requested_data is exist [09:40:21]produce_requested_data [09:40:21]requested_item fm.sn is exist - process it [09:40:21]wFMCommunicate request_size=4 [09:40:21]MH_SAM_APDU [09:40:21]CAPDU: 80 11 00 00 [09:40:21]Write to MH i2c: E2 08 00 1B 1E 80 11 00 00 00 00 00 00 B3 [09:40:21]Write i2c OK [09:40:21]MH_I2C_Read... [09:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:21]Read from MH i2c: E2 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 17 00 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 17 00 1B 1E 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:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:40:21]wFMCommunicate OK [09:40:21]requested_item fd.num is exist - process it [09:40:21]SAM_PROTO_GetFieldsCounters [09:40:21]wFMCommunicate request_size=4 [09:40:21]MH_SAM_APDU [09:40:21]CAPDU: 80 13 00 00 [09:40:21]Write to MH i2c: E2 08 00 1C 1E 80 13 00 00 00 00 00 00 B6 [09:40:21]Write i2c OK [09:40:21]MH_I2C_Read... [09:40:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:21]Read from MH i2c: E2 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 62 00 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 62 00 1C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 F4 [09:40: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 89 E2 01 00 0E 04 04 00 2F 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 [09:40:21]wFMCommunicate OK [09:40:21]SAM_PROTO_GetFieldsCounters done [09:40:21]requested_item shift.num is exist - process it [09:40:21]requested_item shift.opened is exist - process it [09:40:21]req_shift_opened [09:40:21]FM_GetShiftState [09:40:21]SAM_PROTO_GetShiftState [09:40:21]wFMCommunicate request_size=4 [09:40:21]MH_SAM_APDU [09:40:21]CAPDU: 80 13 01 00 [09:40:21]Write to MH i2c: E2 08 00 1D 1E 80 13 01 00 00 00 00 00 B8 [09:40:21]Write i2c OK [09:40:21]MH_I2C_Read... [09:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:21]Read from MH i2c: E2 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 0E 00 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 0E 00 1D 1E 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 BF [09:40:21]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:40:21]wFMCommunicate OK [09:40:21]SAM_PROTO_GetShiftState done [09:40:21]FM_GetShiftState done [09:40:21]req_shift_opened done [09:40:21]requested_item shift.open_date is exist - process it [09:40:21]req_shift_open_date [09:40:21]req_shift_open_date done [09:40:21]produce_requested_data done [09:40:21]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123529,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [09:40:21]process_action_free close_receipt [09:40:21]json_value_free [09:40:21]json_value_free done [09:40:21]process_json_proto returns [09:40:21]Send response to host [09:40:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123529,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [09:40:21]free response buf [09:40:21]execute_script done [09:40:21]execute_script returns [09:40:21]free content buf [09:40:21]Sock 9.Close socket [09:40:21]Sock 9.Thread stoped [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:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]accept exits with 8 [09:50:24]New connection [09:50:24]New thread 3066719588 created [09:50:24]Thread 3066862948 joined [09:50:24]Waiting for new connection... [09:50:24] Sock 8.Parse request [09:50:24]Sock 8.Check first char [09:50:24]Sock 8.First char is OK [09:50:24]request: POST /json_proto HTTP/1.0 [09:50:24]Method: POST [09:50:24]URL: /json_proto [09:50:24]Method is POST - this is cgi request [09:50:24]url: /json_proto [09:50:24]query_string will be loaded in cgi processing [09:50:24]execute_cgi json_proto POST (null) [09:50:24]execute_cgi path=json_proto method=POST [09:50:24]POST find Content-Length [09:50:24]Host: 172.17.37.4:8080 [09:50:24]Content-Length: 677 [09:50:24]Content-Type: application/json [09:50:24] [09:50:24]POST finish read [09:50:24]Found Content-Length = 677 [09:50:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718362", "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" ] } } [09:50:24]execute_script... [09:50: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)718362", "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" ] } } [09:50:24]POST & json_proto [09:50:24]process_json_proto [09:50:24]json parsed OK: [09:50:24]protocol is kg_v1.0 [09:50:24]action value=close_receipt [09:50:24]process_action close_receipt [09:50:24]cmd_close_receipt [09:50:24]MH_GetDate [09:50:24]Write to MH i2c: F0 00 00 1E 1E 2B [09:50:24]Write i2c OK [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: F0 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: F0 09 00 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: F0 09 00 1E 1E 00 E5 3C 48 67 1D 3A 47 67 09 [09:50:24]GetLastDocTimeStamp 1732786820 [09:50:24]current date 1732787429 [09:50:24]FM_GetShiftState [09:50:24]SAM_PROTO_GetShiftState [09:50:24]wFMCommunicate request_size=4 [09:50:24]MH_SAM_APDU [09:50:24]CAPDU: 80 13 01 00 [09:50:24]Write to MH i2c: E2 08 00 1F 1E 80 13 01 00 00 00 00 00 BA [09:50:24]Write i2c OK [09:50:24]MH_I2C_Read... [09:50:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:24]Read from MH i2c: E2 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: E2 0E 00 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: E2 0E 00 1F 1E 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 C1 [09:50:24]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:50:24]wFMCommunicate OK [09:50:24]SAM_PROTO_GetShiftState done [09:50:24]FM_GetShiftState done [09:50:24]opened in 1732752282 [09:50:24]opened+sec_in_day 1732838682 [09:50:24]quantity*price = 50010 [09:50:24]sum+1 = 50012 [09:50: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 СНО: Общий режим Чек 42 28.11.2024 09:50 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123530 ФПД: 59540446112763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T095029&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123530&fm=59540446112763&tin=02508201610067®Number=0000000000092681&sum=50000 [09:50:25]StoreToDocumentArchive [09:50:25]shift 559 fd 123530 [09:50:25]save to /storage/0559/doc_00123530 [09:50:25]save last doc name /storage/0559/doc_00123530 to /storage/kkm_last_doc_name [09:50:25]save OK [09:50:25]Clear old archive folders... [09:50:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:25]tlvbuf is B6EC4AD0 [09:50:25]SAM_PROTO_ClearQueue [09:50:25]wFMCommunicate request_size=4 [09:50:25]MH_SAM_APDU [09:50:25]CAPDU: 80 09 00 00 [09:50:25]Write to MH i2c: E2 08 00 2C 1E 80 09 00 00 00 00 00 00 BC [09:50:25]Write i2c OK [09:50:25]MH_I2C_Read... [09:50:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:25]Read from MH i2c: E2 [09:50:25]MH_I2C_Read... [09:50:25]Read from MH i2c: E2 03 00 [09:50:25]MH_I2C_Read... [09:50:25]Read from MH i2c: E2 03 00 2C 1E 00 90 00 BE [09:50:25]RAPDU: 90 00 [09:50:25]wFMCommunicate OK [09:50:25]SAM_PROTO_ClearQueue done [09:50:25]KKMCreateOFDPacket [09:50:25]OFDProtocolAddRootSTLVToBuf [09:50:25]FM_MakeSignedData [09:50:25]FM_MakeSignedData [09:50:25]SAM_PROTO_SignData [09:50:25]wFMCommunicate request_size=4 [09:50:25]MH_SAM_APDU [09:50:25]CAPDU: 80 0D 01 02 [09:50:25]Write to MH i2c: E2 08 00 2D 1E 80 0D 01 02 00 00 00 00 C4 [09:50:25]Write i2c OK [09:50:25]MH_I2C_Read... [09:50:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:26]Read from MH i2c: E2 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 03 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 03 00 2D 1E 00 90 00 BF [09:50:26]RAPDU: 90 00 [09:50:26]wFMCommunicate OK [09:50:26]wFMCommunicate request_size=255 [09:50:26]MH_SAM_APDU [09:50:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2A 00 00 00 F4 03 04 00 E5 3C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 36 [09:50:26]Write to MH i2c: E2 02 01 2E 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2A 00 00 00 F4 03 04 00 E5 3C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 36 00 00 F9 [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:26]Read from MH i2c: E2 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 03 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 03 00 2E 1E 00 90 00 C0 [09:50:26]RAPDU: 90 00 [09:50:26]wFMCommunicate OK [09:50:26]wFMCommunicate request_size=10 [09:50:26]MH_SAM_APDU [09:50:26]CAPDU: 80 0D 02 02 05 26 D7 23 EB FB [09:50:26]Write to MH i2c: E2 0D 00 2F 1E 80 0D 02 02 05 00 26 D7 23 EB FB 00 00 D7 [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 [09:50:26]MH_I2C_Read... [09:50:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:26]Read from MH i2c: E2 03 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 03 00 2F 1E 00 90 00 C1 [09:50:26]RAPDU: 90 00 [09:50:26]wFMCommunicate OK [09:50:26]wFMCommunicate request_size=4 [09:50:26]MH_SAM_APDU [09:50:26]CAPDU: 80 0D 03 02 [09:50:26]Write to MH i2c: E2 08 00 30 1E 80 0D 03 02 00 00 00 00 C9 [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:26]Read from MH i2c: E2 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 0B 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 0B 00 30 1E 00 6B 5A 97 04 A3 4A 9C 8A 90 00 3D [09:50:26]RAPDU: 6B 5A 97 04 A3 4A 9C 8A 90 00 [09:50:26]wFMCommunicate OK [09:50:26]SAM_PROTO_SignData done [09:50:26]FM_MakeSignedData done [09:50:26]CreateOFDProtocolMessage [09:50:26]wFMCommunicate request_size=4 [09:50:26]MH_SAM_APDU [09:50:26]CAPDU: 80 11 00 00 [09:50:26]Write to MH i2c: E2 08 00 31 1E 80 11 00 00 00 00 00 00 C9 [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:26]Read from MH i2c: E2 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 17 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 17 00 31 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 20 [09:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:50:26]wFMCommunicate OK [09:50:26]CreateOFDProtocolMessage done [09:50:26]OFDSenderStorePacket 123530 [09:50:26]StoreOFDPacket docnum=123530 [09:50: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 58 61 07 01 15 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 F4 03 04 00 E5 3C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 36 26 D7 23 EB FB 6B 5A 97 04 A3 4A 9C 8A [09:50:26]CheckFolder [09:50:26]dirname=/storage/ofd_packets [09:50:26]CheckFolder done [09:50:26]ProducePacketName [09:50:26]name=ofd_packets/00123530 [09:50:26]NVStorageSaveData ofd_packets/00123530 [09:50:26]File name is /storage/ofd_packets/00123530 [09:50:26]Write 301 bytes [09:50:26]NVStorageSaveData done [09:50:26]OFDSenderStorePacket done [09:50:26]KKMCreateOFDPacket done [09:50:26]NVStorageSaveData kkm_last_timestamp [09:50:26]File name is /storage/kkm_last_timestamp [09:50:26]Write 4 bytes [09:50:26]NVStorageSaveData done [09:50:26]ExternCall_PrintAddStr [09:50:26]wPrintStart [09:50:26]Write to MH i2c: 01 00 00 32 1E 50 [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: 01 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: 01 07 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: 01 07 00 32 1E 00 00 00 00 00 FF 0F 65 [09:50:26]RasterBufferAndPrint [09:50:26]line Счет N : (1)718362 [09:50:26]line ИНН: 02508201610067 [09:50:26]line Контрольно-Кассовый Чек [09:50:26]line ПРОДАЖА [09:50:26]line ТРК (МРК, ГНК) : 42 [09:50:26]line Товар: 2710124130 [09:50:26]line Аи-92-К-4 [09:50:26]line 7.420 * 67.40 [09:50:26]line = 500.11 [09:50:26]line НДС 12% НСП 1% [09:50:26]line > о реализуемом товаре [09:50:26]line ОКРУГЛЕНИЕ: -0.11 [09:50:26]line ИТОГО: 500.00 [09:50:26]line Внесено: 500.00 [09:50:26]line СДАЧА: 0.00 [09:50:26]line НСП 1% : 4.43 [09:50:26]line НДС 12% : 53.11 [09:50:26]line Наличными: 500.00 [09:50:26]line Безнал.: 0.00 [09:50:26]line Место: АЗС № 64 "Партнер Нефть" [09:50:26]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:50:26]line СНО: Общий режим [09:50:26]line Чек 42 28.11.2024 09:50 [09:50:26]line Смена: 559 ФФД: 1.0 [09:50:26]line ЗНМ: 0300000033 [09:50:26]line РНМ: 0000000000092681 [09:50:26]line Версия ККМ: 001 [09:50:26]line ФМ: 0000000000874881 [09:50:26]line ФД: 123530 [09:50:26]line ФПД: 59540446112763 [09:50:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T095029&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123530&fm=59540446112763&tin=02508201610067®Number=0000000000092681&sum=50000 [09:50:26]written 0, free lines is 4095 [09:50:26]OFD Sender: Processing packet 123530 [packets to send 7, broken 6] [09:50:26]ProducePacketName [09:50:26]name=ofd_packets/00123530 [09:50:26]OFD Sender: To server: pG, [09:50:26]CommunicateWithHost lk.salyk.kg:30040 [09:50:26]ConnectInit lk.salyk.kg [09:50:26]Connected sock=10 [09:50: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 58 61 07 01 15 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 F4 03 04 00 E5 3C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 36 26 D7 23 EB FB 6B 5A 97 04 A3 4A 9C 8A [09:50: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 F5 96 47 00 D3 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 8A E2 01 00 F4 03 04 00 AB E8 47 67 B6 04 01 00 00 A1 CA F2 60 E6 0E 09 00 [09:50:26]CommunicateWithHost err = 0 [09:50:26]CheckOFDResponse [09:50:26]1017 (14) - 77093643461234 [09:50:26]1041 (16) - 0000000000874881 [09:50:26]1040 (4) - 123530 [09:50:26]1012 (4) - 28.11.2024 03:51 [09:50:26]1206 (1) - 0 [09:50:26]OFD Sender: Remove packet 123530 [09:50:26]ProducePacketName [09:50:26]name=ofd_packets/00123530 [09:50:26]NVStorageDeleteData [09:50:26]Write to MH i2c: 01 00 00 5D 1E 7B [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: 01 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: 01 07 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: 01 07 00 5D 1E 00 00 00 00 00 47 0C D5 [09:50:26]RasterBufferAndPrint [09:50:26]line [09:50:26]line [09:50:26]line [09:50:26]line [09:50:26]line [09:50:26]written 0, free lines is 3148 [09:50:26]MH_Cut [09:50:26]Write to MH i2c: D1 01 00 64 1E 01 54 [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: D1 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: D1 01 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: D1 01 00 64 1E 00 53 [09:50:26]Write to MH i2c: 01 00 00 65 1E 83 [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:27]OFD Sender: No OFD packet to send [09:50:28]*** Cut start [09:50:28]*** Partial cut [09:50:28]*** CUTSNS_PIN = 1 [09:50:28]*** CUTSNS_PIN = 0 [09:50:28]*** Brake cut motor [09:50:28]Read from MH i2c: 01 [09:50:28]MH_I2C_Read... [09:50:28]*** Stop cut motor [09:50:28]*** Cut end [09:50:28]Read from MH i2c: 01 07 00 [09:50:28]MH_I2C_Read... [09:50:28]Read from MH i2c: 01 07 00 65 1E 00 00 00 00 00 FF 0F 98 [09:50:28]process_action close_receipt done [09:50:28]requested_data is exist [09:50:28]produce_requested_data [09:50:28]requested_item fm.sn is exist - process it [09:50:28]wFMCommunicate request_size=4 [09:50:28]MH_SAM_APDU [09:50:28]CAPDU: 80 11 00 00 [09:50:28]Write to MH i2c: E2 08 00 66 1E 80 11 00 00 00 00 00 00 FE [09:50:28]Write i2c OK [09:50:28]MH_I2C_Read... [09:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:28]Read from MH i2c: E2 [09:50:28]MH_I2C_Read... [09:50:28]Read from MH i2c: E2 17 00 [09:50:28]MH_I2C_Read... [09:50:28]Read from MH i2c: E2 17 00 66 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 55 [09:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:50:28]wFMCommunicate OK [09:50:28]requested_item fd.num is exist - process it [09:50:28]SAM_PROTO_GetFieldsCounters [09:50:28]wFMCommunicate request_size=4 [09:50:28]MH_SAM_APDU [09:50:28]CAPDU: 80 13 00 00 [09:50:28]Write to MH i2c: E2 08 00 67 1E 80 13 00 00 00 00 00 00 01 [09:50:28]Write i2c OK [09:50:28]MH_I2C_Read... [09:50:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:29]Read from MH i2c: E2 [09:50:29]MH_I2C_Read... [09:50:29]Read from MH i2c: E2 62 00 [09:50:29]MH_I2C_Read... [09:50:29]Read from MH i2c: E2 62 00 67 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 43 [09:50: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 8A E2 01 00 0E 04 04 00 2F 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 [09:50:29]wFMCommunicate OK [09:50:29]SAM_PROTO_GetFieldsCounters done [09:50:29]requested_item shift.num is exist - process it [09:50:29]requested_item shift.opened is exist - process it [09:50:29]req_shift_opened [09:50:29]FM_GetShiftState [09:50:29]SAM_PROTO_GetShiftState [09:50:29]wFMCommunicate request_size=4 [09:50:29]MH_SAM_APDU [09:50:29]CAPDU: 80 13 01 00 [09:50:29]Write to MH i2c: E2 08 00 68 1E 80 13 01 00 00 00 00 00 03 [09:50:29]Write i2c OK [09:50:29]MH_I2C_Read... [09:50:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:29]Read from MH i2c: E2 [09:50:29]MH_I2C_Read... [09:50:29]Read from MH i2c: E2 0E 00 [09:50:29]MH_I2C_Read... [09:50:29]Read from MH i2c: E2 0E 00 68 1E 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 0A [09:50:29]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:50:29]wFMCommunicate OK [09:50:29]SAM_PROTO_GetShiftState done [09:50:29]FM_GetShiftState done [09:50:29]req_shift_opened done [09:50:29]requested_item shift.open_date is exist - process it [09:50:29]req_shift_open_date [09:50:29]req_shift_open_date done [09:50:29]produce_requested_data done [09:50:29]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123530,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [09:50:29]process_action_free close_receipt [09:50:29]json_value_free [09:50:29]json_value_free done [09:50:29]process_json_proto returns [09:50:29]Send response to host [09:50:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123530,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [09:50:29]free response buf [09:50:29]execute_script done [09:50:29]execute_script returns [09:50:29]free content buf [09:50:29]Sock 8.Close socket [09:50:29]Sock 8.Thread stoped [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:14]accept exits with 9 [09:51:14]New connection [09:51:14]New thread 3066862948 created [09:51:14]Thread 3066719588 joined [09:51:14]Waiting for new connection... [09:51:14] Sock 9.Parse request [09:51:14]Sock 9.Check first char [09:51:14]Sock 9.First char is OK [09:51:14]request: POST /json_proto HTTP/1.0 [09:51:14]Method: POST [09:51:14]URL: /json_proto [09:51:14]Method is POST - this is cgi request [09:51:14]url: /json_proto [09:51:14]query_string will be loaded in cgi processing [09:51:14]execute_cgi json_proto POST (null) [09:51:14]execute_cgi path=json_proto method=POST [09:51:14]POST find Content-Length [09:51:14]Host: 172.17.37.4:8080 [09:51:14]Content-Length: 682 [09:51:14]Content-Type: application/json [09:51:14] [09:51:14]POST finish read [09:51:14]Found Content-Length = 682 [09:51:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718363", "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" ] } } [09:51:14]execute_script... [09:51: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)718363", "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" ] } } [09:51:14]POST & json_proto [09:51:14]process_json_proto [09:51:14]json parsed OK: [09:51:14]protocol is kg_v1.0 [09:51:14]action value=close_receipt [09:51:14]process_action close_receipt [09:51:14]cmd_close_receipt [09:51:14]MH_GetDate [09:51:14]Write to MH i2c: F0 00 00 69 1E 76 [09:51:14]Write i2c OK [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: F0 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: F0 09 00 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: F0 09 00 69 1E 00 16 3D 48 67 1D 3A 47 67 86 [09:51:14]GetLastDocTimeStamp 1732787429 [09:51:14]current date 1732787478 [09:51:14]FM_GetShiftState [09:51:14]SAM_PROTO_GetShiftState [09:51:14]wFMCommunicate request_size=4 [09:51:14]MH_SAM_APDU [09:51:14]CAPDU: 80 13 01 00 [09:51:14]Write to MH i2c: E2 08 00 6A 1E 80 13 01 00 00 00 00 00 05 [09:51:14]Write i2c OK [09:51:14]MH_I2C_Read... [09:51:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:14]Read from MH i2c: E2 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: E2 0E 00 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: E2 0E 00 6A 1E 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 0C [09:51:14]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:51:14]wFMCommunicate OK [09:51:14]SAM_PROTO_GetShiftState done [09:51:14]FM_GetShiftState done [09:51:14]opened in 1732752282 [09:51:14]opened+sec_in_day 1732838682 [09:51:14]quantity*price = 100021 [09:51:14]sum+1 = 100023 [09:51: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 СНО: Общий режим Чек 43 28.11.2024 09:51 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123531 ФПД: 10310426285170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T095118&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123531&fm=10310426285170&tin=02508201610067®Number=0000000000092681&sum=100000 [09:51:15]StoreToDocumentArchive [09:51:15]shift 559 fd 123531 [09:51:15]save to /storage/0559/doc_00123531 [09:51:15]save last doc name /storage/0559/doc_00123531 to /storage/kkm_last_doc_name [09:51:15]save OK [09:51:15]Clear old archive folders... [09:51:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:15]tlvbuf is 0147D6C0 [09:51:15]SAM_PROTO_ClearQueue [09:51:15]wFMCommunicate request_size=4 [09:51:15]MH_SAM_APDU [09:51:15]CAPDU: 80 09 00 00 [09:51:15]Write to MH i2c: E2 08 00 77 1E 80 09 00 00 00 00 00 00 07 [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:15]Read from MH i2c: E2 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 03 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 03 00 77 1E 00 90 00 09 [09:51:15]RAPDU: 90 00 [09:51:15]wFMCommunicate OK [09:51:15]SAM_PROTO_ClearQueue done [09:51:15]KKMCreateOFDPacket [09:51:15]OFDProtocolAddRootSTLVToBuf [09:51:15]FM_MakeSignedData [09:51:15]FM_MakeSignedData [09:51:15]SAM_PROTO_SignData [09:51:15]wFMCommunicate request_size=4 [09:51:15]MH_SAM_APDU [09:51:15]CAPDU: 80 0D 01 02 [09:51:15]Write to MH i2c: E2 08 00 78 1E 80 0D 01 02 00 00 00 00 0F [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:15]Read from MH i2c: E2 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 03 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 03 00 78 1E 00 90 00 0A [09:51:15]RAPDU: 90 00 [09:51:15]wFMCommunicate OK [09:51:15]wFMCommunicate request_size=255 [09:51:15]MH_SAM_APDU [09:51:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2B 00 00 00 F4 03 04 00 16 3D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 09 [09:51:15]Write to MH i2c: E2 02 01 79 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2B 00 00 00 F4 03 04 00 16 3D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 09 00 00 3B [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:15]Read from MH i2c: E2 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 03 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 03 00 79 1E 00 90 00 0B [09:51:15]RAPDU: 90 00 [09:51:15]wFMCommunicate OK [09:51:15]wFMCommunicate request_size=10 [09:51:15]MH_SAM_APDU [09:51:15]CAPDU: 80 0D 02 02 05 60 95 4B D4 72 [09:51:15]Write to MH i2c: E2 0D 00 7A 1E 80 0D 02 02 05 00 60 95 4B D4 72 00 00 A2 [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:15]Read from MH i2c: E2 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 03 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 03 00 7A 1E 00 90 00 0C [09:51:15]RAPDU: 90 00 [09:51:15]wFMCommunicate OK [09:51:15]wFMCommunicate request_size=4 [09:51:15]MH_SAM_APDU [09:51:15]CAPDU: 80 0D 03 02 [09:51:15]Write to MH i2c: E2 08 00 7B 1E 80 0D 03 02 00 00 00 00 14 [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:15]Read from MH i2c: E2 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 0B 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 0B 00 7B 1E 00 AE F7 02 62 5F 93 1C 2D 90 00 59 [09:51:15]RAPDU: AE F7 02 62 5F 93 1C 2D 90 00 [09:51:15]wFMCommunicate OK [09:51:15]SAM_PROTO_SignData done [09:51:15]FM_MakeSignedData done [09:51:15]CreateOFDProtocolMessage [09:51:15]wFMCommunicate request_size=4 [09:51:15]MH_SAM_APDU [09:51:15]CAPDU: 80 11 00 00 [09:51:15]Write to MH i2c: E2 08 00 7C 1E 80 11 00 00 00 00 00 00 14 [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:15]Read from MH i2c: E2 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 17 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: E2 17 00 7C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6B [09:51:15]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:15]wFMCommunicate OK [09:51:15]CreateOFDProtocolMessage done [09:51:15]OFDSenderStorePacket 123531 [09:51:15]StoreOFDPacket docnum=123531 [09:51: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 0F 01 00 00 D3 FB 07 01 C1 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 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 2B 00 00 00 F4 03 04 00 16 3D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 09 60 95 4B D4 72 AE F7 02 62 5F 93 1C 2D [09:51:15]CheckFolder [09:51:15]dirname=/storage/ofd_packets [09:51:15]CheckFolder done [09:51:15]ProducePacketName [09:51:15]name=ofd_packets/00123531 [09:51:15]NVStorageSaveData ofd_packets/00123531 [09:51:15]File name is /storage/ofd_packets/00123531 [09:51:15]Write 301 bytes [09:51:15]NVStorageSaveData done [09:51:15]OFDSenderStorePacket done [09:51:15]KKMCreateOFDPacket done [09:51:15]NVStorageSaveData kkm_last_timestamp [09:51:15]File name is /storage/kkm_last_timestamp [09:51:15]Write 4 bytes [09:51:15]NVStorageSaveData done [09:51:15]ExternCall_PrintAddStr [09:51:15]wPrintStart [09:51:15]Write to MH i2c: 01 00 00 7D 1E 9B [09:51:15]Write i2c OK [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: 01 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: 01 07 00 [09:51:15]MH_I2C_Read... [09:51:15]Read from MH i2c: 01 07 00 7D 1E 00 00 00 00 00 FF 0F B0 [09:51:15]RasterBufferAndPrint [09:51:15]line Счет N : (1)718363 [09:51:15]line ИНН: 02508201610067 [09:51:15]line Контрольно-Кассовый Чек [09:51:15]line ПРОДАЖА [09:51:15]line ТРК (МРК, ГНК) : 22 [09:51:15]line Товар: 2710124130 [09:51:15]line Аи-92-К-4 [09:51:15]line 14.840 * 67.40 [09:51:15]line = 1000.22 [09:51:15]line НДС 12% НСП 1% [09:51:15]line > о реализуемом товаре [09:51:15]line ОКРУГЛЕНИЕ: -0.22 [09:51:15]line ИТОГО: 1000.00 [09:51:15]line Внесено: 1000.00 [09:51:15]line СДАЧА: 0.00 [09:51:15]line НСП 1% : 8.85 [09:51:15]line НДС 12% : 106.22 [09:51:15]line Наличными: 1000.00 [09:51:15]line Безнал.: 0.00 [09:51:15]line Место: АЗС № 64 "Партнер Нефть" [09:51:15]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:51:15]line СНО: Общий режим [09:51:15]line Чек 43 28.11.2024 09:51 [09:51:15]line Смена: 559 ФФД: 1.0 [09:51:15]line ЗНМ: 0300000033 [09:51:15]line РНМ: 0000000000092681 [09:51:15]line Версия ККМ: 001 [09:51:15]line ФМ: 0000000000874881 [09:51:16]line ФД: 123531 [09:51:16]line ФПД: 10310426285170 [09:51:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T095118&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123531&fm=10310426285170&tin=02508201610067®Number=0000000000092681&sum=100000 [09:51:16]OFD Sender: Processing packet 123531 [packets to send 7, broken 6] [09:51:16]ProducePacketName [09:51:16]name=ofd_packets/00123531 [09:51:16]OFD Sender: To server: pG, [09:51:16]CommunicateWithHost lk.salyk.kg:30040 [09:51:16]ConnectInit lk.salyk.kg [09:51:16]written 0, free lines is 4095 [09:51:16]Connected sock=10 [09:51: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 D3 FB 07 01 C1 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 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 2B 00 00 00 F4 03 04 00 16 3D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 09 60 95 4B D4 72 AE F7 02 62 5F 93 1C 2D [09:51: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 93 AA 47 00 72 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 8B E2 01 00 F4 03 04 00 DC E8 47 67 B6 04 01 00 00 17 61 4A B8 33 93 05 6E [09:51:16]CommunicateWithHost err = 0 [09:51:16]CheckOFDResponse [09:51:16]1017 (14) - 77093643461234 [09:51:16]1041 (16) - 0000000000874881 [09:51:16]1040 (4) - 123531 [09:51:16]1012 (4) - 28.11.2024 03:51 [09:51:16]1206 (1) - 0 [09:51:16]OFD Sender: Remove packet 123531 [09:51:16]ProducePacketName [09:51:16]name=ofd_packets/00123531 [09:51:16]NVStorageDeleteData [09:51:16]Write to MH i2c: 01 00 00 A8 1E C6 [09:51:16]Write i2c OK [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: 01 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: 01 07 00 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: 01 07 00 A8 1E 00 00 00 00 00 41 0C 1A [09:51:16]RasterBufferAndPrint [09:51:16]line [09:51:16]line [09:51:16]line [09:51:16]line [09:51:16]line [09:51:16]written 0, free lines is 3142 [09:51:16]MH_Cut [09:51:16]Write to MH i2c: D1 01 00 AF 1E 01 9F [09:51:16]Write i2c OK [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: D1 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: D1 01 00 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: D1 01 00 AF 1E 00 9E [09:51:16]Write to MH i2c: 01 00 00 B0 1E CE [09:51:16]Write i2c OK [09:51:16]MH_I2C_Read... [09:51:17]OFD Sender: No OFD packet to send [09:51:18]*** Cut start [09:51:18]*** Partial cut [09:51:18]*** CUTSNS_PIN = 1 [09:51:18]*** CUTSNS_PIN = 0 [09:51:18]*** Brake cut motor [09:51:18]Read from MH i2c: 01 [09:51:18]MH_I2C_Read... [09:51:18]*** Stop cut motor [09:51:18]*** Cut end [09:51:18]Read from MH i2c: 01 07 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: 01 07 00 B0 1E 00 00 00 00 00 FF 0F E3 [09:51:18]process_action close_receipt done [09:51:18]requested_data is exist [09:51:18]produce_requested_data [09:51:18]requested_item fm.sn is exist - process it [09:51:18]wFMCommunicate request_size=4 [09:51:18]MH_SAM_APDU [09:51:18]CAPDU: 80 11 00 00 [09:51:18]Write to MH i2c: E2 08 00 B1 1E 80 11 00 00 00 00 00 00 49 [09:51:18]Write i2c OK [09:51:18]MH_I2C_Read... [09:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:18]Read from MH i2c: E2 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 17 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 17 00 B1 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A0 [09: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 [09:51:18]wFMCommunicate OK [09:51:18]requested_item fd.num is exist - process it [09:51:18]SAM_PROTO_GetFieldsCounters [09:51:18]wFMCommunicate request_size=4 [09:51:18]MH_SAM_APDU [09:51:18]CAPDU: 80 13 00 00 [09:51:18]Write to MH i2c: E2 08 00 B2 1E 80 13 00 00 00 00 00 00 4C [09:51:18]Write i2c OK [09:51:18]MH_I2C_Read... [09:51:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:19]Read from MH i2c: E2 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 62 00 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 62 00 B2 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 92 [09:51: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 8B E2 01 00 0E 04 04 00 2F 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 [09:51:19]wFMCommunicate OK [09:51:19]SAM_PROTO_GetFieldsCounters done [09:51:19]requested_item shift.num is exist - process it [09:51:19]requested_item shift.opened is exist - process it [09:51:19]req_shift_opened [09:51:19]FM_GetShiftState [09:51:19]SAM_PROTO_GetShiftState [09:51:19]wFMCommunicate request_size=4 [09:51:19]MH_SAM_APDU [09:51:19]CAPDU: 80 13 01 00 [09:51:19]Write to MH i2c: E2 08 00 B3 1E 80 13 01 00 00 00 00 00 4E [09:51:19]Write i2c OK [09:51:19]MH_I2C_Read... [09:51:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:19]Read from MH i2c: E2 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 0E 00 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 0E 00 B3 1E 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 55 [09:51:19]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:51:19]wFMCommunicate OK [09:51:19]SAM_PROTO_GetShiftState done [09:51:19]FM_GetShiftState done [09:51:19]req_shift_opened done [09:51:19]requested_item shift.open_date is exist - process it [09:51:19]req_shift_open_date [09:51:19]req_shift_open_date done [09:51:19]produce_requested_data done [09:51:19]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123531,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [09:51:19]process_action_free close_receipt [09:51:19]json_value_free [09:51:19]json_value_free done [09:51:19]process_json_proto returns [09:51:19]Send response to host [09:51:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123531,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [09:51:19]free response buf [09:51:19]execute_script done [09:51:19]execute_script returns [09:51:19]free content buf [09:51:19]Sock 9.Close socket [09:51:19]Sock 9.Thread stoped [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:00]accept exits with 8 [09:57:00]New connection [09:57:00]New thread 3066719588 created [09:57:00]Thread 3066862948 joined [09:57:00]Waiting for new connection... [09:57:00] Sock 8.Parse request [09:57:00]Sock 8.Check first char [09:57:00]Sock 8.First char is OK [09:57:00]request: POST /json_proto HTTP/1.0 [09:57:00]Method: POST [09:57:00]URL: /json_proto [09:57:00]Method is POST - this is cgi request [09:57:00]url: /json_proto [09:57:00]query_string will be loaded in cgi processing [09:57:00]execute_cgi json_proto POST (null) [09:57:00]execute_cgi path=json_proto method=POST [09:57:00]POST find Content-Length [09:57:00]Host: 172.17.37.4:8080 [09:57:00]Content-Length: 800 [09:57:00]Content-Type: application/json [09:57:00] [09:57:00]POST finish read [09:57:00]Found Content-Length = 800 [09:57:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718366", "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 }]} ], "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" ] } } [09:57:00]execute_script... [09:57: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)718366", "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 }]} ], "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" ] } } [09:57:00]POST & json_proto [09:57:00]process_json_proto [09:57:00]json parsed OK: [09:57:00]protocol is kg_v1.0 [09:57:00]action value=close_receipt [09:57:00]process_action close_receipt [09:57:00]cmd_close_receipt [09:57:00]MH_GetDate [09:57:00]Write to MH i2c: F0 00 00 B4 1E C1 [09:57:00]Write i2c OK [09:57:00]MH_I2C_Read... [09:57:00]Read from MH i2c: F0 [09:57:00]MH_I2C_Read... [09:57:00]Read from MH i2c: F0 09 00 [09:57:00]MH_I2C_Read... [09:57:00]Read from MH i2c: F0 09 00 B4 1E 00 70 3E 48 67 1D 3A 47 67 2C [09:57:00]GetLastDocTimeStamp 1732787478 [09:57:00]current date 1732787824 [09:57:00]FM_GetShiftState [09:57:00]SAM_PROTO_GetShiftState [09:57:00]wFMCommunicate request_size=4 [09:57:00]MH_SAM_APDU [09:57:00]CAPDU: 80 13 01 00 [09:57:00]Write to MH i2c: E2 08 00 B5 1E 80 13 01 00 00 00 00 00 50 [09:57:00]Write i2c OK [09:57:00]MH_I2C_Read... [09:57:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:00]Read from MH i2c: E2 [09:57:00]MH_I2C_Read... [09:57:00]Read from MH i2c: E2 0E 00 [09:57:00]MH_I2C_Read... [09:57:00]Read from MH i2c: E2 0E 00 B5 1E 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 57 [09:57:00]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:57:00]wFMCommunicate OK [09:57:00]SAM_PROTO_GetShiftState done [09:57:00]FM_GetShiftState done [09:57:00]opened in 1732752282 [09:57:00]opened+sec_in_day 1732838682 [09:57:00]quantity*price = 50010 [09:57:00]sum+1 = 50012 [09:57:00]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 СНО: Общий режим Чек 44 28.11.2024 09:57 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123532 ФПД: 242788538346820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T095704&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123532&fm=242788538346820&tin=02508201610067®Number=0000000000092681&sum=50011 [09:57:01]StoreToDocumentArchive [09:57:01]shift 559 fd 123532 [09:57:01]save to /storage/0559/doc_00123532 [09:57:01]save last doc name /storage/0559/doc_00123532 to /storage/kkm_last_doc_name [09:57:01]save OK [09:57:01]Clear old archive folders... [09:57:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:01]tlvbuf is B6F3F010 [09:57:01]SAM_PROTO_ClearQueue [09:57:01]wFMCommunicate request_size=4 [09:57:01]MH_SAM_APDU [09:57:01]CAPDU: 80 09 00 00 [09:57:01]Write to MH i2c: E2 08 00 C2 1E 80 09 00 00 00 00 00 00 52 [09:57:01]Write i2c OK [09:57:01]MH_I2C_Read... [09:57:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:01]Read from MH i2c: E2 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: E2 03 00 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: E2 03 00 C2 1E 00 90 00 54 [09:57:01]RAPDU: 90 00 [09:57:01]wFMCommunicate OK [09:57:01]SAM_PROTO_ClearQueue done [09:57:01]KKMCreateOFDPacket [09:57:01]OFDProtocolAddRootSTLVToBuf [09:57:01]FM_MakeSignedData [09:57:01]FM_MakeSignedData [09:57:01]SAM_PROTO_SignData [09:57:01]wFMCommunicate request_size=4 [09:57:01]MH_SAM_APDU [09:57:01]CAPDU: 80 0D 01 02 [09:57:01]Write to MH i2c: E2 08 00 C3 1E 80 0D 01 02 00 00 00 00 5A [09:57:01]Write i2c OK [09:57:01]MH_I2C_Read... [09:57:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:01]Read from MH i2c: E2 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: E2 03 00 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: E2 03 00 C3 1E 00 90 00 55 [09:57:01]RAPDU: 90 00 [09:57:01]wFMCommunicate OK [09:57:01]wFMCommunicate request_size=255 [09:57:01]MH_SAM_APDU [09:57:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2C 00 00 00 F4 03 04 00 70 3E 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 DC [09:57:01]Write to MH i2c: E2 02 01 C4 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2C 00 00 00 F4 03 04 00 70 3E 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 DC 00 00 DC [09:57:01]Write i2c OK [09:57:01]MH_I2C_Read... [09:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:01]Read from MH i2c: E2 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: E2 03 00 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: E2 03 00 C4 1E 00 90 00 56 [09:57:01]RAPDU: 90 00 [09:57:01]wFMCommunicate OK [09:57:01]wFMCommunicate request_size=10 [09:57:01]MH_SAM_APDU [09:57:01]CAPDU: 80 0D 02 02 05 D0 9C 95 6D 44 [09:57:01]Write to MH i2c: E2 0D 00 C5 1E 80 0D 02 02 05 00 D0 9C 95 6D 44 00 00 19 [09:57:01]Write i2c OK [09:57:01]MH_I2C_Read... [09:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:01]Read from MH i2c: E2 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: E2 03 00 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: E2 03 00 C5 1E 00 90 00 57 [09:57:01]RAPDU: 90 00 [09:57:01]wFMCommunicate OK [09:57:01]wFMCommunicate request_size=4 [09:57:01]MH_SAM_APDU [09:57:01]CAPDU: 80 0D 03 02 [09:57:01]Write to MH i2c: E2 08 00 C6 1E 80 0D 03 02 00 00 00 00 5F [09:57:01]Write i2c OK [09:57:01]MH_I2C_Read... [09:57:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:02]Read from MH i2c: E2 [09:57:02]MH_I2C_Read... [09:57:02]Read from MH i2c: E2 0B 00 [09:57:02]MH_I2C_Read... [09:57:02]Read from MH i2c: E2 0B 00 C6 1E 00 00 9F 05 CD 5F 22 5F DD 90 00 8E [09:57:02]RAPDU: 00 9F 05 CD 5F 22 5F DD 90 00 [09:57:02]wFMCommunicate OK [09:57:02]SAM_PROTO_SignData done [09:57:02]FM_MakeSignedData done [09:57:02]CreateOFDProtocolMessage [09:57:02]wFMCommunicate request_size=4 [09:57:02]MH_SAM_APDU [09:57:02]CAPDU: 80 11 00 00 [09:57:02]Write to MH i2c: E2 08 00 C7 1E 80 11 00 00 00 00 00 00 5F [09:57:02]Write i2c OK [09:57:02]MH_I2C_Read... [09:57:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:02]Read from MH i2c: E2 [09:57:02]MH_I2C_Read... [09:57:02]Read from MH i2c: E2 17 00 [09:57:02]MH_I2C_Read... [09:57:02]Read from MH i2c: E2 17 00 C7 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B6 [09:57:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:57:02]wFMCommunicate OK [09:57:02]CreateOFDProtocolMessage done [09:57:02]OFDSenderStorePacket 123532 [09:57:02]StoreOFDPacket docnum=123532 [09:57: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 0F 01 00 00 B9 E9 07 01 A9 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2C 00 00 00 F4 03 04 00 70 3E 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 DC D0 9C 95 6D 44 00 9F 05 CD 5F 22 5F DD [09:57:02]CheckFolder [09:57:02]dirname=/storage/ofd_packets [09:57:02]CheckFolder done [09:57:02]ProducePacketName [09:57:02]name=ofd_packets/00123532 [09:57:02]NVStorageSaveData ofd_packets/00123532 [09:57:02]File name is /storage/ofd_packets/00123532 [09:57:02]Write 301 bytes [09:57:02]NVStorageSaveData done [09:57:02]OFDSenderStorePacket done [09:57:02]KKMCreateOFDPacket done [09:57:02]NVStorageSaveData kkm_last_timestamp [09:57:02]File name is /storage/kkm_last_timestamp [09:57:02]Write 4 bytes [09:57:02]NVStorageSaveData done [09:57:02]ExternCall_PrintAddStr [09:57:02]wPrintStart [09:57:02]Write to MH i2c: 01 00 00 C8 1E E6 [09:57:02]Write i2c OK [09:57:02]MH_I2C_Read... [09:57:02]Read from MH i2c: 01 [09:57:02]MH_I2C_Read... [09:57:02]Read from MH i2c: 01 07 00 [09:57:02]MH_I2C_Read... [09:57:02]Read from MH i2c: 01 07 00 C8 1E 00 00 00 00 00 FF 0F FB [09:57:02]RasterBufferAndPrint [09:57:02]line Счет N : (1)718366 [09:57:02]line ИНН: 02508201610067 [09:57:02]line Контрольно-Кассовый Чек [09:57:02]line ПРОДАЖА [09:57:02]line ТРК (МРК, ГНК) : 32 [09:57:02]line Товар: 2710124130 [09:57:02]line Аи-92-К-4 [09:57:02]line 7.420 * 67.40 [09:57:02]line = 500.11 [09:57:02]line НДС 12% НСП 1% [09:57:02]line > о реализуемом товаре [09:57:02]line ИТОГО: 500.11 [09:57:02]line НСП 1% : 4.43 [09:57:02]line НДС 12% : 53.11 [09:57:02]line Наличными: 0.00 [09:57:02]line Безнал.: 500.11 [09:57:02]line Место: АЗС № 64 "Партнер Нефть" [09:57:02]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [09:57:02]line СНО: Общий режим [09:57:02]line Чек 44 28.11.2024 09:57 [09:57:02]line Смена: 559 ФФД: 1.0 [09:57:02]line ЗНМ: 0300000033 [09:57:02]line РНМ: 0000000000092681 [09:57:02]line Версия ККМ: 001 [09:57:02]line Платежная система: O! деньги [09:57:02]line ФМ: 0000000000874881 [09:57:02]line ФД: 123532 [09:57:02]line ФПД: 242788538346820 [09:57:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T095704&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123532&fm=242788538346820&tin=02508201610067®Number=0000000000092681&sum=50011 [09:57:02]written 0, free lines is 4095 [09:57:02]OFD Sender: Processing packet 123532 [packets to send 7, broken 6] [09:57:02]ProducePacketName [09:57:02]name=ofd_packets/00123532 [09:57:02]OFD Sender: To server: pG, [09:57:02]CommunicateWithHost lk.salyk.kg:30040 [09:57:02]ConnectInit lk.salyk.kg [09:57:02]Connected sock=11 [09:57: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 B9 E9 07 01 A9 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2C 00 00 00 F4 03 04 00 70 3E 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 DC D0 9C 95 6D 44 00 9F 05 CD 5F 22 5F DD [09:57: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 C8 EF 47 00 C2 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8C E2 01 00 F4 03 04 00 37 EA 47 67 B6 04 01 00 00 94 10 A0 13 7C 66 F7 CE [09:57:02]CommunicateWithHost err = 0 [09:57:02]CheckOFDResponse [09:57:02]1017 (14) - 77093643461234 [09:57:02]1041 (16) - 0000000000874881 [09:57:02]1040 (4) - 123532 [09:57:02]1012 (4) - 28.11.2024 03:57 [09:57:02]1206 (1) - 0 [09:57:02]OFD Sender: Remove packet 123532 [09:57:02]ProducePacketName [09:57:02]name=ofd_packets/00123532 [09:57:02]NVStorageDeleteData [09:57:02]Write to MH i2c: 01 00 00 F2 1E 10 [09:57:02]Write i2c OK [09:57:02]MH_I2C_Read... [09:57:02]Read from MH i2c: 01 [09:57:02]MH_I2C_Read... [09:57:02]Read from MH i2c: 01 07 00 [09:57:02]MH_I2C_Read... [09:57:02]Read from MH i2c: 01 07 00 F2 1E 00 00 00 00 00 59 0C 7C [09:57:02]RasterBufferAndPrint [09:57:02]line [09:57:02]line [09:57:02]line [09:57:02]line [09:57:02]line [09:57:02]written 0, free lines is 3165 [09:57:02]MH_Cut [09:57:02]Write to MH i2c: D1 01 00 F9 1E 01 E9 [09:57:02]Write i2c OK [09:57:02]MH_I2C_Read... [09:57:02]Read from MH i2c: D1 [09:57:02]MH_I2C_Read... [09:57:02]Read from MH i2c: D1 01 00 [09:57:02]MH_I2C_Read... [09:57:02]Read from MH i2c: D1 01 00 F9 1E 00 E8 [09:57:02]Write to MH i2c: 01 00 00 FA 1E 18 [09:57:02]Write i2c OK [09:57:02]MH_I2C_Read... [09:57:03]OFD Sender: No OFD packet to send [09:57:04]*** Cut start [09:57:04]*** Partial cut [09:57:04]*** CUTSNS_PIN = 1 [09:57:04]*** CUTSNS_PIN = 0 [09:57:04]*** Brake cut motor [09:57:04]Read from MH i2c: 01 [09:57:04]MH_I2C_Read... [09:57:04]*** Stop cut motor [09:57:04]*** Cut end [09:57:04]Read from MH i2c: 01 07 00 [09:57:04]MH_I2C_Read... [09:57:04]Read from MH i2c: 01 07 00 FA 1E 00 00 00 00 00 FF 0F 2D [09:57:04]process_action close_receipt done [09:57:04]requested_data is exist [09:57:04]produce_requested_data [09:57:04]requested_item fm.sn is exist - process it [09:57:04]wFMCommunicate request_size=4 [09:57:04]MH_SAM_APDU [09:57:04]CAPDU: 80 11 00 00 [09:57:04]Write to MH i2c: E2 08 00 FB 1E 80 11 00 00 00 00 00 00 93 [09:57:04]Write i2c OK [09:57:04]MH_I2C_Read... [09:57:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:04]Read from MH i2c: E2 [09:57:04]MH_I2C_Read... [09:57:04]Read from MH i2c: E2 17 00 [09:57:04]MH_I2C_Read... [09:57:04]Read from MH i2c: E2 17 00 FB 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EA [09:57:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [09:57:04]wFMCommunicate OK [09:57:04]requested_item fd.num is exist - process it [09:57:04]SAM_PROTO_GetFieldsCounters [09:57:04]wFMCommunicate request_size=4 [09:57:04]MH_SAM_APDU [09:57:04]CAPDU: 80 13 00 00 [09:57:04]Write to MH i2c: E2 08 00 FC 1E 80 13 00 00 00 00 00 00 96 [09:57:04]Write i2c OK [09:57:04]MH_I2C_Read... [09:57:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:05]Read from MH i2c: E2 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 62 00 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 62 00 FC 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 E0 [09:57: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 8C E2 01 00 0E 04 04 00 2F 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 [09:57:05]wFMCommunicate OK [09:57:05]SAM_PROTO_GetFieldsCounters done [09:57:05]requested_item shift.num is exist - process it [09:57:05]requested_item shift.opened is exist - process it [09:57:05]req_shift_opened [09:57:05]FM_GetShiftState [09:57:05]SAM_PROTO_GetShiftState [09:57:05]wFMCommunicate request_size=4 [09:57:05]MH_SAM_APDU [09:57:05]CAPDU: 80 13 01 00 [09:57:05]Write to MH i2c: E2 08 00 FD 1E 80 13 01 00 00 00 00 00 98 [09:57:05]Write i2c OK [09:57:05]MH_I2C_Read... [09:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:05]Read from MH i2c: E2 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 0E 00 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 0E 00 FD 1E 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 9F [09:57:05]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [09:57:05]wFMCommunicate OK [09:57:05]SAM_PROTO_GetShiftState done [09:57:05]FM_GetShiftState done [09:57:05]req_shift_opened done [09:57:05]requested_item shift.open_date is exist - process it [09:57:05]req_shift_open_date [09:57:05]req_shift_open_date done [09:57:05]produce_requested_data done [09:57:05]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123532,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [09:57:05]process_action_free close_receipt [09:57:05]json_value_free [09:57:05]json_value_free done [09:57:05]process_json_proto returns [09:57:05]Send response to host [09:57:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123532,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [09:57:05]free response buf [09:57:05]execute_script done [09:57:05]execute_script returns [09:57:05]free content buf [09:57:05]Sock 8.Close socket [09:57:05]Sock 8.Thread stoped [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:22]accept exits with 9 [10:00:22]New connection [10:00:22]New thread 3066862948 created [10:00:22]Thread 3066719588 joined [10:00:22]Waiting for new connection... [10:00:22] Sock 9.Parse request [10:00:22]Sock 9.Check first char [10:00:22]Sock 9.First char is OK [10:00:22]request: POST /json_proto HTTP/1.0 [10:00:22]Method: POST [10:00:22]URL: /json_proto [10:00:22]Method is POST - this is cgi request [10:00:22]url: /json_proto [10:00:22]query_string will be loaded in cgi processing [10:00:22]execute_cgi json_proto POST (null) [10:00:22]execute_cgi path=json_proto method=POST [10:00:22]POST find Content-Length [10:00:22]Host: 172.17.37.4:8080 [10:00:22]Content-Length: 682 [10:00:22]Content-Type: application/json [10:00:22] [10:00:22]POST finish read [10:00:22]Found Content-Length = 682 [10:00:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718368", "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" ] } } [10:00:22]execute_script... [10:00: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)718368", "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" ] } } [10:00:22]POST & json_proto [10:00:22]process_json_proto [10:00:22]json parsed OK: [10:00:22]protocol is kg_v1.0 [10:00:22]action value=close_receipt [10:00:22]process_action close_receipt [10:00:22]cmd_close_receipt [10:00:22]MH_GetDate [10:00:22]Write to MH i2c: F0 00 00 FE 1E 0B [10:00:22]Write i2c OK [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: F0 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: F0 09 00 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: F0 09 00 FE 1E 00 3A 3F 48 67 1D 3A 47 67 41 [10:00:22]GetLastDocTimeStamp 1732787824 [10:00:22]current date 1732788026 [10:00:22]FM_GetShiftState [10:00:22]SAM_PROTO_GetShiftState [10:00:22]wFMCommunicate request_size=4 [10:00:22]MH_SAM_APDU [10:00:22]CAPDU: 80 13 01 00 [10:00:22]Write to MH i2c: E2 08 00 FF 1E 80 13 01 00 00 00 00 00 9A [10:00:22]Write i2c OK [10:00:22]MH_I2C_Read... [10:00:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:22]Read from MH i2c: E2 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: E2 0E 00 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: E2 0E 00 FF 1E 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 A1 [10:00:22]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:00:22]wFMCommunicate OK [10:00:22]SAM_PROTO_GetShiftState done [10:00:22]FM_GetShiftState done [10:00:22]opened in 1732752282 [10:00:22]opened+sec_in_day 1732838682 [10:00:22]quantity*price = 100021 [10:00:22]sum+1 = 100023 [10:00:22]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 СНО: Общий режим Чек 45 28.11.2024 10:00 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123533 ФПД: 131876205089794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T100026&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123533&fm=131876205089794&tin=02508201610067®Number=0000000000092681&sum=100000 [10:00:23]StoreToDocumentArchive [10:00:23]shift 559 fd 123533 [10:00:23]save to /storage/0559/doc_00123533 [10:00:23]save last doc name /storage/0559/doc_00123533 to /storage/kkm_last_doc_name [10:00:23]save OK [10:00:23]Clear old archive folders... [10:00:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:23]tlvbuf is 014F0350 [10:00:23]SAM_PROTO_ClearQueue [10:00:23]wFMCommunicate request_size=4 [10:00:23]MH_SAM_APDU [10:00:23]CAPDU: 80 09 00 00 [10:00:23]Write to MH i2c: E2 08 00 0C 1F 80 09 00 00 00 00 00 00 9D [10:00:23]Write i2c OK [10:00:23]MH_I2C_Read... [10:00:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:23]OFD Sender: No OFD packet to send [10:00:23]Read from MH i2c: E2 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: E2 03 00 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: E2 03 00 0C 1F 00 90 00 9F [10:00:23]RAPDU: 90 00 [10:00:23]wFMCommunicate OK [10:00:23]SAM_PROTO_ClearQueue done [10:00:23]KKMCreateOFDPacket [10:00:23]OFDProtocolAddRootSTLVToBuf [10:00:23]FM_MakeSignedData [10:00:23]FM_MakeSignedData [10:00:23]SAM_PROTO_SignData [10:00:23]wFMCommunicate request_size=4 [10:00:23]MH_SAM_APDU [10:00:23]CAPDU: 80 0D 01 02 [10:00:23]Write to MH i2c: E2 08 00 0D 1F 80 0D 01 02 00 00 00 00 A5 [10:00:23]Write i2c OK [10:00:23]MH_I2C_Read... [10:00:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:23]Read from MH i2c: E2 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: E2 03 00 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: E2 03 00 0D 1F 00 90 00 A0 [10:00:23]RAPDU: 90 00 [10:00:23]wFMCommunicate OK [10:00:23]wFMCommunicate request_size=255 [10:00:23]MH_SAM_APDU [10:00: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 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 2D 00 00 00 F4 03 04 00 3A 3F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 77 [10:00:23]Write to MH i2c: E2 02 01 0E 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2D 00 00 00 F4 03 04 00 3A 3F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 77 00 00 69 [10:00:23]Write i2c OK [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: E2 [10:00:23]MH_I2C_Read... [10:00:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:23]Read from MH i2c: E2 03 00 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: E2 03 00 0E 1F 00 90 00 A1 [10:00:23]RAPDU: 90 00 [10:00:23]wFMCommunicate OK [10:00:23]wFMCommunicate request_size=10 [10:00:23]MH_SAM_APDU [10:00:23]CAPDU: 80 0D 02 02 05 F0 D2 5B D4 02 [10:00:23]Write to MH i2c: E2 0D 00 0F 1F 80 0D 02 02 05 00 F0 D2 5B D4 02 00 00 A5 [10:00:23]Write i2c OK [10:00:23]MH_I2C_Read... [10:00:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:23]Read from MH i2c: E2 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: E2 03 00 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: E2 03 00 0F 1F 00 90 00 A2 [10:00:23]RAPDU: 90 00 [10:00:23]wFMCommunicate OK [10:00:23]wFMCommunicate request_size=4 [10:00:23]MH_SAM_APDU [10:00:23]CAPDU: 80 0D 03 02 [10:00:23]Write to MH i2c: E2 08 00 10 1F 80 0D 03 02 00 00 00 00 AA [10:00:23]Write i2c OK [10:00:23]MH_I2C_Read... [10:00:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:23]Read from MH i2c: E2 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: E2 0B 00 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: E2 0B 00 10 1F 00 BF B3 2E F9 29 70 D9 04 90 00 BA [10:00:23]RAPDU: BF B3 2E F9 29 70 D9 04 90 00 [10:00:23]wFMCommunicate OK [10:00:23]SAM_PROTO_SignData done [10:00:23]FM_MakeSignedData done [10:00:23]CreateOFDProtocolMessage [10:00:23]wFMCommunicate request_size=4 [10:00:23]MH_SAM_APDU [10:00:23]CAPDU: 80 11 00 00 [10:00:23]Write to MH i2c: E2 08 00 11 1F 80 11 00 00 00 00 00 00 AA [10:00:23]Write i2c OK [10:00:23]MH_I2C_Read... [10:00:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:23]Read from MH i2c: E2 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: E2 17 00 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: E2 17 00 11 1F 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:00: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:00:23]wFMCommunicate OK [10:00:23]CreateOFDProtocolMessage done [10:00:23]OFDSenderStorePacket 123533 [10:00:23]StoreOFDPacket docnum=123533 [10:00: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 3C 5C 07 01 A4 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 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 2D 00 00 00 F4 03 04 00 3A 3F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 77 F0 D2 5B D4 02 BF B3 2E F9 29 70 D9 04 [10:00:23]CheckFolder [10:00:23]dirname=/storage/ofd_packets [10:00:23]CheckFolder done [10:00:23]ProducePacketName [10:00:23]name=ofd_packets/00123533 [10:00:23]NVStorageSaveData ofd_packets/00123533 [10:00:23]File name is /storage/ofd_packets/00123533 [10:00:23]Write 301 bytes [10:00:23]NVStorageSaveData done [10:00:23]OFDSenderStorePacket done [10:00:23]KKMCreateOFDPacket done [10:00:23]NVStorageSaveData kkm_last_timestamp [10:00:23]File name is /storage/kkm_last_timestamp [10:00:23]Write 4 bytes [10:00:23]NVStorageSaveData done [10:00:23]ExternCall_PrintAddStr [10:00:23]wPrintStart [10:00:23]Write to MH i2c: 01 00 00 12 1F 31 [10:00:23]Write i2c OK [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: 01 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: 01 07 00 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: 01 07 00 12 1F 00 00 00 00 00 FF 0F 46 [10:00:23]RasterBufferAndPrint [10:00:23]line Счет N : (1)718368 [10:00:23]line ИНН: 02508201610067 [10:00:23]line Контрольно-Кассовый Чек [10:00:23]line ПРОДАЖА [10:00:23]line ТРК (МРК, ГНК) : 32 [10:00:23]line Товар: 2710124130 [10:00:23]line Аи-92-К-4 [10:00:23]line 14.840 * 67.40 [10:00:23]line = 1000.22 [10:00:23]line НДС 12% НСП 1% [10:00:23]line > о реализуемом товаре [10:00:23]line ОКРУГЛЕНИЕ: -0.22 [10:00:23]line ИТОГО: 1000.00 [10:00:23]line Внесено: 1000.00 [10:00:23]line СДАЧА: 0.00 [10:00:23]line НСП 1% : 8.85 [10:00:23]line НДС 12% : 106.22 [10:00:23]line Наличными: 1000.00 [10:00:23]line Безнал.: 0.00 [10:00:23]line Место: АЗС № 64 "Партнер Нефть" [10:00:23]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:00:23]line СНО: Общий режим [10:00:23]line Чек 45 28.11.2024 10:00 [10:00:23]line Смена: 559 ФФД: 1.0 [10:00:23]line ЗНМ: 0300000033 [10:00:23]line РНМ: 0000000000092681 [10:00:23]line Версия ККМ: 001 [10:00:23]line ФМ: 0000000000874881 [10:00:23]line ФД: 123533 [10:00:23]line ФПД: 131876205089794 [10:00:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T100026&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123533&fm=131876205089794&tin=02508201610067®Number=0000000000092681&sum=100000 [10:00:24]written 0, free lines is 4095 [10:00:24]OFD Sender: Processing packet 123533 [packets to send 7, broken 6] [10:00:24]ProducePacketName [10:00:24]name=ofd_packets/00123533 [10:00:24]OFD Sender: To server: pG, [10:00:24]CommunicateWithHost lk.salyk.kg:30040 [10:00:24]ConnectInit lk.salyk.kg [10:00:24]Connected sock=10 [10:00: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 3C 5C 07 01 A4 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 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 2D 00 00 00 F4 03 04 00 3A 3F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 77 F0 D2 5B D4 02 BF B3 2E F9 29 70 D9 04 [10:00: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 69 36 47 00 91 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8D E2 01 00 F4 03 04 00 00 EB 47 67 B6 04 01 00 00 6E 39 45 64 BB EE D4 E5 [10:00:24]CommunicateWithHost err = 0 [10:00:24]CheckOFDResponse [10:00:24]1017 (14) - 77093643461234 [10:00:24]1041 (16) - 0000000000874881 [10:00:24]1040 (4) - 123533 [10:00:24]1012 (4) - 28.11.2024 04:01 [10:00:24]1206 (1) - 0 [10:00:24]OFD Sender: Remove packet 123533 [10:00:24]ProducePacketName [10:00:24]name=ofd_packets/00123533 [10:00:24]NVStorageDeleteData [10:00:24]Write to MH i2c: 01 00 00 3D 1F 5C [10:00:24]Write i2c OK [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: 01 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: 01 07 00 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: 01 07 00 3D 1F 00 00 00 00 00 47 0C B6 [10:00:24]RasterBufferAndPrint [10:00:24]line [10:00:24]line [10:00:24]line [10:00:24]line [10:00:24]line [10:00:24]written 0, free lines is 3148 [10:00:24]MH_Cut [10:00:24]Write to MH i2c: D1 01 00 44 1F 01 35 [10:00:24]Write i2c OK [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: D1 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: D1 01 00 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: D1 01 00 44 1F 00 34 [10:00:24]Write to MH i2c: 01 00 00 45 1F 64 [10:00:24]Write i2c OK [10:00:24]MH_I2C_Read... [10:00:24]OFD Sender: No OFD packet to send [10:00:26]*** Cut start [10:00:26]*** Partial cut [10:00:26]*** CUTSNS_PIN = 1 [10:00:26]*** CUTSNS_PIN = 0 [10:00:26]*** Brake cut motor [10:00:26]Read from MH i2c: 01 [10:00:26]MH_I2C_Read... [10:00:26]*** Stop cut motor [10:00:26]*** Cut end [10:00:26]Read from MH i2c: 01 07 00 [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: 01 07 00 45 1F 00 00 00 00 00 FF 0F 79 [10:00:26]process_action close_receipt done [10:00:26]requested_data is exist [10:00:26]produce_requested_data [10:00:26]requested_item fm.sn is exist - process it [10:00:26]wFMCommunicate request_size=4 [10:00:26]MH_SAM_APDU [10:00:26]CAPDU: 80 11 00 00 [10:00:26]Write to MH i2c: E2 08 00 46 1F 80 11 00 00 00 00 00 00 DF [10:00:26]Write i2c OK [10:00:26]MH_I2C_Read... [10:00:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:26]Read from MH i2c: E2 [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: E2 17 00 [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: E2 17 00 46 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 36 [10:00: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:00:26]wFMCommunicate OK [10:00:26]requested_item fd.num is exist - process it [10:00:26]SAM_PROTO_GetFieldsCounters [10:00:26]wFMCommunicate request_size=4 [10:00:26]MH_SAM_APDU [10:00:26]CAPDU: 80 13 00 00 [10:00:26]Write to MH i2c: E2 08 00 47 1F 80 13 00 00 00 00 00 00 E2 [10:00:26]Write i2c OK [10:00:26]MH_I2C_Read... [10:00:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:26]Read from MH i2c: E2 [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: E2 62 00 [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: E2 62 00 47 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 30 [10:00: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 8D E2 01 00 0E 04 04 00 2F 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 [10:00:26]wFMCommunicate OK [10:00:26]SAM_PROTO_GetFieldsCounters done [10:00:26]requested_item shift.num is exist - process it [10:00:26]requested_item shift.opened is exist - process it [10:00:26]req_shift_opened [10:00:26]FM_GetShiftState [10:00:26]SAM_PROTO_GetShiftState [10:00:26]wFMCommunicate request_size=4 [10:00:26]MH_SAM_APDU [10:00:26]CAPDU: 80 13 01 00 [10:00:26]Write to MH i2c: E2 08 00 48 1F 80 13 01 00 00 00 00 00 E4 [10:00:26]Write i2c OK [10:00:26]MH_I2C_Read... [10:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:26]Read from MH i2c: E2 [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: E2 0E 00 [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: E2 0E 00 48 1F 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 EB [10:00:26]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:00:26]wFMCommunicate OK [10:00:26]SAM_PROTO_GetShiftState done [10:00:26]FM_GetShiftState done [10:00:26]req_shift_opened done [10:00:26]requested_item shift.open_date is exist - process it [10:00:26]req_shift_open_date [10:00:26]req_shift_open_date done [10:00:26]produce_requested_data done [10:00:26]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123533,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [10:00:26]process_action_free close_receipt [10:00:26]json_value_free [10:00:26]json_value_free done [10:00:26]process_json_proto returns [10:00:26]Send response to host [10:00:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123533,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [10:00:26]free response buf [10:00:26]execute_script done [10:00:26]execute_script returns [10:00:26]free content buf [10:00:26]Sock 9.Close socket [10:00:26]Sock 9.Thread stoped [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]accept exits with 8 [10:00:39]New connection [10:00:39]New thread 3066719588 created [10:00:39]Thread 3066862948 joined [10:00:39]Waiting for new connection... [10:00:39] Sock 8.Parse request [10:00:39]Sock 8.Check first char [10:00:39]Sock 8.First char is OK [10:00:39]request: POST /json_proto HTTP/1.0 [10:00:39]Method: POST [10:00:39]URL: /json_proto [10:00:39]Method is POST - this is cgi request [10:00:39]url: /json_proto [10:00:39]query_string will be loaded in cgi processing [10:00:39]execute_cgi json_proto POST (null) [10:00:39]execute_cgi path=json_proto method=POST [10:00:39]POST find Content-Length [10:00:39]Host: 172.17.37.4:8080 [10:00:39]Content-Length: 678 [10:00:39]Content-Type: application/json [10:00:39] [10:00:39]POST finish read [10:00:39]Found Content-Length = 678 [10:00:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718367", "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" ] } } [10:00:39]execute_script... [10:00: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)718367", "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" ] } } [10:00:39]POST & json_proto [10:00:39]process_json_proto [10:00:39]json parsed OK: [10:00:39]protocol is kg_v1.0 [10:00:39]action value=close_receipt [10:00:39]process_action close_receipt [10:00:39]cmd_close_receipt [10:00:39]MH_GetDate [10:00:39]Write to MH i2c: F0 00 00 49 1F 57 [10:00:39]Write i2c OK [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: F0 [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: F0 09 00 [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: F0 09 00 49 1F 00 4B 3F 48 67 1D 3A 47 67 9E [10:00:39]GetLastDocTimeStamp 1732788026 [10:00:39]current date 1732788043 [10:00:39]FM_GetShiftState [10:00:39]SAM_PROTO_GetShiftState [10:00:39]wFMCommunicate request_size=4 [10:00:39]MH_SAM_APDU [10:00:39]CAPDU: 80 13 01 00 [10:00:39]Write to MH i2c: E2 08 00 4A 1F 80 13 01 00 00 00 00 00 E6 [10:00:39]Write i2c OK [10:00:39]MH_I2C_Read... [10:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:39]Read from MH i2c: E2 [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: E2 0E 00 [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: E2 0E 00 4A 1F 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 ED [10:00:39]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:00:39]wFMCommunicate OK [10:00:39]SAM_PROTO_GetShiftState done [10:00:39]FM_GetShiftState done [10:00:39]opened in 1732752282 [10:00:39]opened+sec_in_day 1732838682 [10:00:39]quantity*price = 70028 [10:00:39]sum+1 = 70030 [10:00: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 СНО: Общий режим Чек 46 28.11.2024 10:00 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123534 ФПД: 130297973533293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T100043&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123534&fm=130297973533293&tin=02508201610067®Number=0000000000092681&sum=70000 [10:00:40]StoreToDocumentArchive [10:00:40]shift 559 fd 123534 [10:00:40]save to /storage/0559/doc_00123534 [10:00:40]save last doc name /storage/0559/doc_00123534 to /storage/kkm_last_doc_name [10:00:40]save OK [10:00:40]Clear old archive folders... [10:00:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:40]tlvbuf is 014FC6D0 [10:00:40]SAM_PROTO_ClearQueue [10:00:40]wFMCommunicate request_size=4 [10:00:40]MH_SAM_APDU [10:00:40]CAPDU: 80 09 00 00 [10:00:40]Write to MH i2c: E2 08 00 57 1F 80 09 00 00 00 00 00 00 E8 [10:00:40]Write i2c OK [10:00:40]MH_I2C_Read... [10:00:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:40]Read from MH i2c: E2 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 03 00 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 03 00 57 1F 00 90 00 EA [10:00:40]RAPDU: 90 00 [10:00:40]wFMCommunicate OK [10:00:40]SAM_PROTO_ClearQueue done [10:00:40]KKMCreateOFDPacket [10:00:40]OFDProtocolAddRootSTLVToBuf [10:00:40]FM_MakeSignedData [10:00:40]FM_MakeSignedData [10:00:40]SAM_PROTO_SignData [10:00:40]wFMCommunicate request_size=4 [10:00:40]MH_SAM_APDU [10:00:40]CAPDU: 80 0D 01 02 [10:00:40]Write to MH i2c: E2 08 00 58 1F 80 0D 01 02 00 00 00 00 F0 [10:00:40]Write i2c OK [10:00:40]MH_I2C_Read... [10:00:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:40]Read from MH i2c: E2 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 03 00 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 03 00 58 1F 00 90 00 EB [10:00:40]RAPDU: 90 00 [10:00:40]wFMCommunicate OK [10:00:40]wFMCommunicate request_size=255 [10:00:40]MH_SAM_APDU [10:00: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 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 2E 00 00 00 F4 03 04 00 4B 3F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 76 [10:00:40]Write to MH i2c: E2 02 01 59 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2E 00 00 00 F4 03 04 00 4B 3F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 76 00 00 E4 [10:00:40]Write i2c OK [10:00:40]MH_I2C_Read... [10:00:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:40]Read from MH i2c: E2 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 03 00 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 03 00 59 1F 00 90 00 EC [10:00:40]RAPDU: 90 00 [10:00:40]wFMCommunicate OK [10:00:40]wFMCommunicate request_size=10 [10:00:40]MH_SAM_APDU [10:00:40]CAPDU: 80 0D 02 02 05 81 5C 6D 6A 6D [10:00:40]Write to MH i2c: E2 0D 00 5A 1F 80 0D 02 02 05 00 81 5C 6D 6A 6D 00 00 1E [10:00:40]Write i2c OK [10:00:40]MH_I2C_Read... [10:00:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:40]Read from MH i2c: E2 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 03 00 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 03 00 5A 1F 00 90 00 ED [10:00:40]RAPDU: 90 00 [10:00:40]wFMCommunicate OK [10:00:40]wFMCommunicate request_size=4 [10:00:40]MH_SAM_APDU [10:00:40]CAPDU: 80 0D 03 02 [10:00:40]Write to MH i2c: E2 08 00 5B 1F 80 0D 03 02 00 00 00 00 F5 [10:00:40]Write i2c OK [10:00:40]MH_I2C_Read... [10:00:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 0B 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 0B 00 5B 1F 00 68 45 13 81 66 ED DA 66 90 00 CA [10:00:41]RAPDU: 68 45 13 81 66 ED DA 66 90 00 [10:00:41]wFMCommunicate OK [10:00:41]SAM_PROTO_SignData done [10:00:41]FM_MakeSignedData done [10:00:41]CreateOFDProtocolMessage [10:00:41]wFMCommunicate request_size=4 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 11 00 00 [10:00:41]Write to MH i2c: E2 08 00 5C 1F 80 11 00 00 00 00 00 00 F5 [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 17 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 17 00 5C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 4C [10:00:41]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:41]wFMCommunicate OK [10:00:41]CreateOFDProtocolMessage done [10:00:41]OFDSenderStorePacket 123534 [10:00:41]StoreOFDPacket docnum=123534 [10:00: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 B5 16 07 01 5A A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2E 00 00 00 F4 03 04 00 4B 3F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 76 81 5C 6D 6A 6D 68 45 13 81 66 ED DA 66 [10:00:41]CheckFolder [10:00:41]dirname=/storage/ofd_packets [10:00:41]CheckFolder done [10:00:41]ProducePacketName [10:00:41]name=ofd_packets/00123534 [10:00:41]NVStorageSaveData ofd_packets/00123534 [10:00:41]File name is /storage/ofd_packets/00123534 [10:00:41]Write 301 bytes [10:00:41]NVStorageSaveData done [10:00:41]OFDSenderStorePacket done [10:00:41]KKMCreateOFDPacket done [10:00:41]NVStorageSaveData kkm_last_timestamp [10:00:41]File name is /storage/kkm_last_timestamp [10:00:41]Write 4 bytes [10:00:41]NVStorageSaveData done [10:00:41]ExternCall_PrintAddStr [10:00:41]wPrintStart [10:00:41]Write to MH i2c: 01 00 00 5D 1F 7C [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: 01 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: 01 07 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: 01 07 00 5D 1F 00 00 00 00 00 FF 0F 91 [10:00:41]RasterBufferAndPrint [10:00:41]line Счет N : (1)718367 [10:00:41]line ИНН: 02508201610067 [10:00:41]line Контрольно-Кассовый Чек [10:00:41]line ПРОДАЖА [10:00:41]line ТРК (МРК, ГНК) : 12 [10:00:41]line Товар: 2710124130 [10:00:41]line Аи-92-К-4 [10:00:41]line 10.390 * 67.40 [10:00:41]line = 700.29 [10:00:41]line НДС 12% НСП 1% [10:00:41]line > о реализуемом товаре [10:00:41]line ОКРУГЛЕНИЕ: -0.29 [10:00:41]line ИТОГО: 700.00 [10:00:41]line Внесено: 700.00 [10:00:41]line СДАЧА: 0.00 [10:00:41]line НСП 1% : 6.20 [10:00:41]line НДС 12% : 74.37 [10:00:41]line Наличными: 700.00 [10:00:41]line Безнал.: 0.00 [10:00:41]line Место: АЗС № 64 "Партнер Нефть" [10:00:41]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:00:41]line СНО: Общий режим [10:00:41]line Чек 46 28.11.2024 10:00 [10:00:41]line Смена: 559 ФФД: 1.0 [10:00:41]line ЗНМ: 0300000033 [10:00:41]line РНМ: 0000000000092681 [10:00:41]line Версия ККМ: 001 [10:00:41]line ФМ: 0000000000874881 [10:00:41]line ФД: 123534 [10:00:41]line ФПД: 130297973533293 [10:00:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T100043&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123534&fm=130297973533293&tin=02508201610067®Number=0000000000092681&sum=70000 [10:00:41]OFD Sender: Processing packet 123534 [packets to send 7, broken 6] [10:00:41]ProducePacketName [10:00:41]name=ofd_packets/00123534 [10:00:41]OFD Sender: To server: pG, [10:00:41]CommunicateWithHost lk.salyk.kg:30040 [10:00:41]ConnectInit lk.salyk.kg [10:00:41]written 0, free lines is 4095 [10:00:41]Connected sock=10 [10: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 0F 01 00 00 B5 16 07 01 5A A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2E 00 00 00 F4 03 04 00 4B 3F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 76 81 5C 6D 6A 6D 68 45 13 81 66 ED DA 66 [10: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 E7 63 47 00 23 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 8E E2 01 00 F4 03 04 00 12 EB 47 67 B6 04 01 00 00 D9 0E 61 D2 2D A9 30 9A [10:00:41]CommunicateWithHost err = 0 [10:00:41]CheckOFDResponse [10:00:41]1017 (14) - 77093643461234 [10:00:41]1041 (16) - 0000000000874881 [10:00:41]1040 (4) - 123534 [10:00:41]1012 (4) - 28.11.2024 04:01 [10:00:41]1206 (1) - 0 [10:00:41]OFD Sender: Remove packet 123534 [10:00:41]ProducePacketName [10:00:41]name=ofd_packets/00123534 [10:00:41]NVStorageDeleteData [10:00:41]Write to MH i2c: 01 00 00 88 1F A7 [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: 01 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: 01 07 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: 01 07 00 88 1F 00 00 00 00 00 40 0C FA [10:00:41]RasterBufferAndPrint [10:00:41]line [10:00:41]line [10:00:41]line [10:00:41]line [10:00:41]line [10:00:41]written 0, free lines is 3142 [10:00:41]MH_Cut [10:00:41]Write to MH i2c: D1 01 00 8F 1F 01 80 [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: D1 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: D1 01 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: D1 01 00 8F 1F 00 7F [10:00:41]Write to MH i2c: 01 00 00 90 1F AF [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:42]OFD Sender: No OFD packet to send [10:00:43]*** Cut start [10:00:43]*** Partial cut [10:00:43]*** CUTSNS_PIN = 1 [10:00:43]*** CUTSNS_PIN = 0 [10:00:43]*** Brake cut motor [10:00:43]Read from MH i2c: 01 [10:00:43]MH_I2C_Read... [10:00:43]*** Stop cut motor [10:00:43]*** Cut end [10:00:43]Read from MH i2c: 01 07 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: 01 07 00 90 1F 00 00 00 00 00 FF 0F C4 [10:00:43]process_action close_receipt done [10:00:43]requested_data is exist [10:00:43]produce_requested_data [10:00:43]requested_item fm.sn is exist - process it [10:00:43]wFMCommunicate request_size=4 [10:00:43]MH_SAM_APDU [10:00:43]CAPDU: 80 11 00 00 [10:00:43]Write to MH i2c: E2 08 00 91 1F 80 11 00 00 00 00 00 00 2A [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:43]Read from MH i2c: E2 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 17 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 17 00 91 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 81 [10: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 [10:00:43]wFMCommunicate OK [10:00:43]requested_item fd.num is exist - process it [10:00:43]SAM_PROTO_GetFieldsCounters [10:00:43]wFMCommunicate request_size=4 [10:00:43]MH_SAM_APDU [10:00:43]CAPDU: 80 13 00 00 [10:00:43]Write to MH i2c: E2 08 00 92 1F 80 13 00 00 00 00 00 00 2D [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:44]Read from MH i2c: E2 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 62 00 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 62 00 92 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 7F [10:00: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 8E E2 01 00 0E 04 04 00 2F 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 [10:00:44]wFMCommunicate OK [10:00:44]SAM_PROTO_GetFieldsCounters done [10:00:44]requested_item shift.num is exist - process it [10:00:44]requested_item shift.opened is exist - process it [10:00:44]req_shift_opened [10:00:44]FM_GetShiftState [10:00:44]SAM_PROTO_GetShiftState [10:00:44]wFMCommunicate request_size=4 [10:00:44]MH_SAM_APDU [10:00:44]CAPDU: 80 13 01 00 [10:00:44]Write to MH i2c: E2 08 00 93 1F 80 13 01 00 00 00 00 00 2F [10:00:44]Write i2c OK [10:00:44]MH_I2C_Read... [10:00:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:44]Read from MH i2c: E2 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 0E 00 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 0E 00 93 1F 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 36 [10:00:44]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:00:44]wFMCommunicate OK [10:00:44]SAM_PROTO_GetShiftState done [10:00:44]FM_GetShiftState done [10:00:44]req_shift_opened done [10:00:44]requested_item shift.open_date is exist - process it [10:00:44]req_shift_open_date [10:00:44]req_shift_open_date done [10:00:44]produce_requested_data done [10:00:44]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123534,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [10:00:44]process_action_free close_receipt [10:00:44]json_value_free [10:00:44]json_value_free done [10:00:44]process_json_proto returns [10:00:44]Send response to host [10:00:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123534,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [10:00:44]free response buf [10:00:44]execute_script done [10:00:44]execute_script returns [10:00:44]free content buf [10:00:44]Sock 8.Close socket [10:00:44]Sock 8.Thread stoped [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:08]accept exits with 9 [10:01:08]New connection [10:01:08]New thread 3066862948 created [10:01:08]Thread 3066719588 joined [10:01:08]Waiting for new connection... [10:01:08] Sock 9.Parse request [10:01:08]Sock 9.Check first char [10:01:08]Sock 9.First char is OK [10:01:08]request: POST /json_proto HTTP/1.0 [10:01:08]Method: POST [10:01:08]URL: /json_proto [10:01:08]Method is POST - this is cgi request [10:01:08]url: /json_proto [10:01:08]query_string will be loaded in cgi processing [10:01:08]execute_cgi json_proto POST (null) [10:01:08]execute_cgi path=json_proto method=POST [10:01:08]POST find Content-Length [10:01:08]Host: 172.17.37.4:8080 [10:01:08]Content-Length: 682 [10:01:08]Content-Type: application/json [10:01:08] [10:01:08]POST finish read [10:01:08]Found Content-Length = 682 [10:01:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718369", "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" ] } } [10:01:08]execute_script... [10:01: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)718369", "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" ] } } [10:01:08]POST & json_proto [10:01:08]process_json_proto [10:01:08]json parsed OK: [10:01:08]protocol is kg_v1.0 [10:01:08]action value=close_receipt [10:01:08]process_action close_receipt [10:01:08]cmd_close_receipt [10:01:08]MH_GetDate [10:01:08]Write to MH i2c: F0 00 00 94 1F A2 [10:01:08]Write i2c OK [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: F0 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: F0 09 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: F0 09 00 94 1F 00 68 3F 48 67 1D 3A 47 67 06 [10:01:08]GetLastDocTimeStamp 1732788043 [10:01:08]current date 1732788072 [10:01:08]FM_GetShiftState [10:01:08]SAM_PROTO_GetShiftState [10:01:08]wFMCommunicate request_size=4 [10:01:08]MH_SAM_APDU [10:01:08]CAPDU: 80 13 01 00 [10:01:08]Write to MH i2c: E2 08 00 95 1F 80 13 01 00 00 00 00 00 31 [10:01:08]Write i2c OK [10:01:08]MH_I2C_Read... [10:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:08]Read from MH i2c: E2 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 0E 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 0E 00 95 1F 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 38 [10:01:08]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:01:08]wFMCommunicate OK [10:01:08]SAM_PROTO_GetShiftState done [10:01:08]FM_GetShiftState done [10:01:08]opened in 1732752282 [10:01:08]opened+sec_in_day 1732838682 [10:01:08]quantity*price = 100021 [10:01:08]sum+1 = 100023 [10:01:08]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 СНО: Общий режим Чек 47 28.11.2024 10:01 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123535 ФПД: 108699521294980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T100112&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123535&fm=108699521294980&tin=02508201610067®Number=0000000000092681&sum=100000 [10:01:09]StoreToDocumentArchive [10:01:09]shift 559 fd 123535 [10:01:09]save to /storage/0559/doc_00123535 [10:01:09]save last doc name /storage/0559/doc_00123535 to /storage/kkm_last_doc_name [10:01:09]save OK [10:01:09]Clear old archive folders... [10:01:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:09]tlvbuf is 014FCA10 [10:01:09]SAM_PROTO_ClearQueue [10:01:09]wFMCommunicate request_size=4 [10:01:09]MH_SAM_APDU [10:01:09]CAPDU: 80 09 00 00 [10:01:09]Write to MH i2c: E2 08 00 A2 1F 80 09 00 00 00 00 00 00 33 [10:01:09]Write i2c OK [10:01:09]MH_I2C_Read... [10:01:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:09]Read from MH i2c: E2 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 03 00 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 03 00 A2 1F 00 90 00 35 [10:01:09]RAPDU: 90 00 [10:01:09]wFMCommunicate OK [10:01:09]SAM_PROTO_ClearQueue done [10:01:09]KKMCreateOFDPacket [10:01:09]OFDProtocolAddRootSTLVToBuf [10:01:09]FM_MakeSignedData [10:01:09]FM_MakeSignedData [10:01:09]SAM_PROTO_SignData [10:01:09]wFMCommunicate request_size=4 [10:01:09]MH_SAM_APDU [10:01:09]CAPDU: 80 0D 01 02 [10:01:09]Write to MH i2c: E2 08 00 A3 1F 80 0D 01 02 00 00 00 00 3B [10:01:09]Write i2c OK [10:01:09]MH_I2C_Read... [10:01:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:09]Read from MH i2c: E2 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 03 00 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 03 00 A3 1F 00 90 00 36 [10:01:09]RAPDU: 90 00 [10:01:09]wFMCommunicate OK [10:01:09]wFMCommunicate request_size=255 [10:01:09]MH_SAM_APDU [10:01: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 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 2F 00 00 00 F4 03 04 00 68 3F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 62 [10:01:09]Write to MH i2c: E2 02 01 A4 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2F 00 00 00 F4 03 04 00 68 3F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 62 00 00 1C [10:01:09]Write i2c OK [10:01:09]MH_I2C_Read... [10:01:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:09]Read from MH i2c: E2 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 03 00 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 03 00 A4 1F 00 90 00 37 [10:01:09]RAPDU: 90 00 [10:01:09]wFMCommunicate OK [10:01:09]wFMCommunicate request_size=10 [10:01:09]MH_SAM_APDU [10:01:09]CAPDU: 80 0D 02 02 05 DC 94 5A A2 84 [10:01:09]Write to MH i2c: E2 0D 00 A5 1F 80 0D 02 02 05 00 DC 94 5A A2 84 00 00 38 [10:01:09]Write i2c OK [10:01:09]MH_I2C_Read... [10:01:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:09]Read from MH i2c: E2 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 03 00 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 03 00 A5 1F 00 90 00 38 [10:01:09]RAPDU: 90 00 [10:01:09]wFMCommunicate OK [10:01:09]wFMCommunicate request_size=4 [10:01:09]MH_SAM_APDU [10:01:09]CAPDU: 80 0D 03 02 [10:01:09]Write to MH i2c: E2 08 00 A6 1F 80 0D 03 02 00 00 00 00 40 [10:01:09]Write i2c OK [10:01:09]MH_I2C_Read... [10:01:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:09]Read from MH i2c: E2 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 0B 00 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 0B 00 A6 1F 00 BF C3 12 E9 53 3F FE 13 90 00 61 [10:01:09]RAPDU: BF C3 12 E9 53 3F FE 13 90 00 [10:01:09]wFMCommunicate OK [10:01:09]SAM_PROTO_SignData done [10:01:09]FM_MakeSignedData done [10:01:09]CreateOFDProtocolMessage [10:01:09]wFMCommunicate request_size=4 [10:01:09]MH_SAM_APDU [10:01:09]CAPDU: 80 11 00 00 [10:01:09]Write to MH i2c: E2 08 00 A7 1F 80 11 00 00 00 00 00 00 40 [10:01:09]Write i2c OK [10:01:09]MH_I2C_Read... [10:01:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:09]Read from MH i2c: E2 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 17 00 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 17 00 A7 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 97 [10:01: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:01:09]wFMCommunicate OK [10:01:09]CreateOFDProtocolMessage done [10:01:09]OFDSenderStorePacket 123535 [10:01:09]StoreOFDPacket docnum=123535 [10:01: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 3B F7 07 01 F3 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2F 00 00 00 F4 03 04 00 68 3F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 62 DC 94 5A A2 84 BF C3 12 E9 53 3F FE 13 [10:01:09]CheckFolder [10:01:09]dirname=/storage/ofd_packets [10:01:09]CheckFolder done [10:01:09]ProducePacketName [10:01:09]name=ofd_packets/00123535 [10:01:09]NVStorageSaveData ofd_packets/00123535 [10:01:09]File name is /storage/ofd_packets/00123535 [10:01:09]Write 301 bytes [10:01:09]NVStorageSaveData done [10:01:09]OFDSenderStorePacket done [10:01:09]KKMCreateOFDPacket done [10:01:09]NVStorageSaveData kkm_last_timestamp [10:01:09]File name is /storage/kkm_last_timestamp [10:01:09]Write 4 bytes [10:01:09]NVStorageSaveData done [10:01:09]ExternCall_PrintAddStr [10:01:09]wPrintStart [10:01:09]Write to MH i2c: 01 00 00 A8 1F C7 [10:01:09]Write i2c OK [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: 01 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: 01 07 00 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: 01 07 00 A8 1F 00 00 00 00 00 FF 0F DC [10:01:09]RasterBufferAndPrint [10:01:09]line Счет N : (1)718369 [10:01:09]line ИНН: 02508201610067 [10:01:09]line Контрольно-Кассовый Чек [10:01:09]line ПРОДАЖА [10:01:09]line ТРК (МРК, ГНК) : 22 [10:01:09]line Товар: 2710124130 [10:01:09]line Аи-92-К-4 [10:01:09]line 14.840 * 67.40 [10:01:09]line = 1000.22 [10:01:09]line НДС 12% НСП 1% [10:01:09]line > о реализуемом товаре [10:01:09]line ОКРУГЛЕНИЕ: -0.22 [10:01:09]line ИТОГО: 1000.00 [10:01:09]line Внесено: 1000.00 [10:01:09]line СДАЧА: 0.00 [10:01:09]line НСП 1% : 8.85 [10:01:09]line НДС 12% : 106.22 [10:01:09]line Наличными: 1000.00 [10:01:09]line Безнал.: 0.00 [10:01:09]line Место: АЗС № 64 "Партнер Нефть" [10:01:09]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:01:09]line СНО: Общий режим [10:01:09]line Чек 47 28.11.2024 10:01 [10:01:09]line Смена: 559 ФФД: 1.0 [10:01:09]line ЗНМ: 0300000033 [10:01:09]line РНМ: 0000000000092681 [10:01:09]line Версия ККМ: 001 [10:01:09]line ФМ: 0000000000874881 [10:01:09]line ФД: 123535 [10:01:09]line ФПД: 108699521294980 [10:01:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T100112&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123535&fm=108699521294980&tin=02508201610067®Number=0000000000092681&sum=100000 [10:01:10]OFD Sender: Processing packet 123535 [packets to send 7, broken 6] [10:01:10]ProducePacketName [10:01:10]name=ofd_packets/00123535 [10:01:10]OFD Sender: To server: pG, [10:01:10]CommunicateWithHost lk.salyk.kg:30040 [10:01:10]ConnectInit lk.salyk.kg [10:01:10]written 0, free lines is 4095 [10:01:10]Connected sock=10 [10:01: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 3B F7 07 01 F3 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2F 00 00 00 F4 03 04 00 68 3F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 62 DC 94 5A A2 84 BF C3 12 E9 53 3F FE 13 [10:01: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 6B D5 47 00 5A 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 8F E2 01 00 F4 03 04 00 2E EB 47 67 B6 04 01 00 00 BE F6 11 A9 E5 B3 87 C6 [10:01:10]CommunicateWithHost err = 0 [10:01:10]CheckOFDResponse [10:01:10]1017 (14) - 77093643461234 [10:01:10]1041 (16) - 0000000000874881 [10:01:10]1040 (4) - 123535 [10:01:10]1012 (4) - 28.11.2024 04:01 [10:01:10]1206 (1) - 0 [10:01:10]OFD Sender: Remove packet 123535 [10:01:10]ProducePacketName [10:01:10]name=ofd_packets/00123535 [10:01:10]NVStorageDeleteData [10:01:10]Write to MH i2c: 01 00 00 D3 1F F2 [10:01:10]Write i2c OK [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: 01 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: 01 07 00 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: 01 07 00 D3 1F 00 00 00 00 00 48 0C 4D [10:01:10]RasterBufferAndPrint [10:01:10]line [10:01:10]line [10:01:10]line [10:01:10]line [10:01:10]line [10:01:10]written 0, free lines is 3148 [10:01:10]MH_Cut [10:01:10]Write to MH i2c: D1 01 00 DA 1F 01 CB [10:01:10]Write i2c OK [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: D1 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: D1 01 00 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: D1 01 00 DA 1F 00 CA [10:01:10]Write to MH i2c: 01 00 00 DB 1F FA [10:01:10]Write i2c OK [10:01:10]MH_I2C_Read... [10:01:10]OFD Sender: No OFD packet to send [10:01:12]*** Cut start [10:01:12]*** Partial cut [10:01:12]*** CUTSNS_PIN = 1 [10:01:12]*** CUTSNS_PIN = 0 [10:01:12]*** Brake cut motor [10:01:12]Read from MH i2c: 01 [10:01:12]MH_I2C_Read... [10:01:12]*** Stop cut motor [10:01:12]*** Cut end [10:01:12]Read from MH i2c: 01 07 00 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: 01 07 00 DB 1F 00 00 00 00 00 FF 0F 0F [10:01:12]process_action close_receipt done [10:01:12]requested_data is exist [10:01:12]produce_requested_data [10:01:12]requested_item fm.sn is exist - process it [10:01:12]wFMCommunicate request_size=4 [10:01:12]MH_SAM_APDU [10:01:12]CAPDU: 80 11 00 00 [10:01:12]Write to MH i2c: E2 08 00 DC 1F 80 11 00 00 00 00 00 00 75 [10:01:12]Write i2c OK [10:01:12]MH_I2C_Read... [10:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:12]Read from MH i2c: E2 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 17 00 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 17 00 DC 1F 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:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:01:12]wFMCommunicate OK [10:01:12]requested_item fd.num is exist - process it [10:01:12]SAM_PROTO_GetFieldsCounters [10:01:12]wFMCommunicate request_size=4 [10:01:12]MH_SAM_APDU [10:01:12]CAPDU: 80 13 00 00 [10:01:12]Write to MH i2c: E2 08 00 DD 1F 80 13 00 00 00 00 00 00 78 [10:01:12]Write i2c OK [10:01:12]MH_I2C_Read... [10:01:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:12]Read from MH i2c: E2 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 62 00 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 62 00 DD 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 CE [10:01: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 8F E2 01 00 0E 04 04 00 2F 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 [10:01:12]wFMCommunicate OK [10:01:12]SAM_PROTO_GetFieldsCounters done [10:01:12]requested_item shift.num is exist - process it [10:01:12]requested_item shift.opened is exist - process it [10:01:12]req_shift_opened [10:01:12]FM_GetShiftState [10:01:12]SAM_PROTO_GetShiftState [10:01:12]wFMCommunicate request_size=4 [10:01:12]MH_SAM_APDU [10:01:12]CAPDU: 80 13 01 00 [10:01:12]Write to MH i2c: E2 08 00 DE 1F 80 13 01 00 00 00 00 00 7A [10:01:12]Write i2c OK [10:01:12]MH_I2C_Read... [10:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:12]Read from MH i2c: E2 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 0E 00 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 0E 00 DE 1F 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 81 [10:01:12]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:01:12]wFMCommunicate OK [10:01:12]SAM_PROTO_GetShiftState done [10:01:12]FM_GetShiftState done [10:01:12]req_shift_opened done [10:01:12]requested_item shift.open_date is exist - process it [10:01:12]req_shift_open_date [10:01:12]req_shift_open_date done [10:01:12]produce_requested_data done [10:01:12]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123535,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [10:01:12]process_action_free close_receipt [10:01:12]json_value_free [10:01:12]json_value_free done [10:01:12]process_json_proto returns [10:01:12]Send response to host [10:01:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123535,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [10:01:12]free response buf [10:01:12]execute_script done [10:01:12]execute_script returns [10:01:12]free content buf [10:01:12]Sock 9.Close socket [10:01:12]Sock 9.Thread stoped [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:03]accept exits with 8 [10:05:03]New connection [10:05:03]New thread 3066719588 created [10:05:03]Thread 3066862948 joined [10:05:03]Waiting for new connection... [10:05:03] Sock 8.Parse request [10:05:03]Sock 8.Check first char [10:05:03]Sock 8.First char is OK [10:05:03]request: POST /json_proto HTTP/1.0 [10:05:03]Method: POST [10:05:03]URL: /json_proto [10:05:03]Method is POST - this is cgi request [10:05:03]url: /json_proto [10:05:03]query_string will be loaded in cgi processing [10:05:03]execute_cgi json_proto POST (null) [10:05:03]execute_cgi path=json_proto method=POST [10:05:03]POST find Content-Length [10:05:03]Host: 172.17.37.4:8080 [10:05:03]Content-Length: 682 [10:05:03]Content-Type: application/json [10:05:03] [10:05:03]POST finish read [10:05:03]Found Content-Length = 682 [10:05:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718370", "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" ] } } [10:05:03]execute_script... [10:05: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)718370", "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" ] } } [10:05:03]POST & json_proto [10:05:03]process_json_proto [10:05:03]json parsed OK: [10:05:03]protocol is kg_v1.0 [10:05:03]action value=close_receipt [10:05:03]process_action close_receipt [10:05:03]cmd_close_receipt [10:05:03]MH_GetDate [10:05:03]Write to MH i2c: F0 00 00 DF 1F ED [10:05:03]Write i2c OK [10:05:03]MH_I2C_Read... [10:05:03]Read from MH i2c: F0 [10:05:03]MH_I2C_Read... [10:05:03]Read from MH i2c: F0 09 00 [10:05:03]MH_I2C_Read... [10:05:03]Read from MH i2c: F0 09 00 DF 1F 00 54 40 48 67 1D 3A 47 67 3E [10:05:03]GetLastDocTimeStamp 1732788072 [10:05:03]current date 1732788308 [10:05:03]FM_GetShiftState [10:05:03]SAM_PROTO_GetShiftState [10:05:03]wFMCommunicate request_size=4 [10:05:03]MH_SAM_APDU [10:05:03]CAPDU: 80 13 01 00 [10:05:03]Write to MH i2c: E2 08 00 E0 1F 80 13 01 00 00 00 00 00 7C [10:05:03]Write i2c OK [10:05:03]MH_I2C_Read... [10:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:04]Read from MH i2c: E2 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 0E 00 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 0E 00 E0 1F 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 83 [10:05:04]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:05:04]wFMCommunicate OK [10:05:04]SAM_PROTO_GetShiftState done [10:05:04]FM_GetShiftState done [10:05:04]opened in 1732752282 [10:05:04]opened+sec_in_day 1732838682 [10:05:04]quantity*price = 100021 [10:05:04]sum+1 = 100023 [10:05:04]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 СНО: Общий режим Чек 48 28.11.2024 10:05 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123536 ФПД: 142194229532086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T100508&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123536&fm=142194229532086&tin=02508201610067®Number=0000000000092681&sum=100000 [10:05:05]StoreToDocumentArchive [10:05:05]shift 559 fd 123536 [10:05:05]save to /storage/0559/doc_00123536 [10:05:05]save last doc name /storage/0559/doc_00123536 to /storage/kkm_last_doc_name [10:05:05]save OK [10:05:05]Clear old archive folders... [10:05:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:05]tlvbuf is B6EC4BD0 [10:05:05]SAM_PROTO_ClearQueue [10:05:05]wFMCommunicate request_size=4 [10:05:05]MH_SAM_APDU [10:05:05]CAPDU: 80 09 00 00 [10:05:05]Write to MH i2c: E2 08 00 ED 1F 80 09 00 00 00 00 00 00 7E [10:05:05]Write i2c OK [10:05:05]MH_I2C_Read... [10:05:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:05]Read from MH i2c: E2 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 03 00 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 03 00 ED 1F 00 90 00 80 [10:05:05]RAPDU: 90 00 [10:05:05]wFMCommunicate OK [10:05:05]SAM_PROTO_ClearQueue done [10:05:05]KKMCreateOFDPacket [10:05:05]OFDProtocolAddRootSTLVToBuf [10:05:05]FM_MakeSignedData [10:05:05]FM_MakeSignedData [10:05:05]SAM_PROTO_SignData [10:05:05]wFMCommunicate request_size=4 [10:05:05]MH_SAM_APDU [10:05:05]CAPDU: 80 0D 01 02 [10:05:05]Write to MH i2c: E2 08 00 EE 1F 80 0D 01 02 00 00 00 00 86 [10:05:05]Write i2c OK [10:05:05]MH_I2C_Read... [10:05:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:05]Read from MH i2c: E2 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 03 00 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 03 00 EE 1F 00 90 00 81 [10:05:05]RAPDU: 90 00 [10:05:05]wFMCommunicate OK [10:05:05]wFMCommunicate request_size=255 [10:05:05]MH_SAM_APDU [10:05: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 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 30 00 00 00 F4 03 04 00 54 40 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 81 [10:05:05]Write to MH i2c: E2 02 01 EF 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 30 00 00 00 F4 03 04 00 54 40 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 81 00 00 75 [10:05:05]Write i2c OK [10:05:05]MH_I2C_Read... [10:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:05]Read from MH i2c: E2 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 03 00 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 03 00 EF 1F 00 90 00 82 [10:05:05]RAPDU: 90 00 [10:05:05]wFMCommunicate OK [10:05:05]wFMCommunicate request_size=10 [10:05:05]MH_SAM_APDU [10:05:05]CAPDU: 80 0D 02 02 05 53 2C 8A 55 B6 [10:05:05]Write to MH i2c: E2 0D 00 F0 1F 80 0D 02 02 05 00 53 2C 8A 55 B6 00 00 A7 [10:05:05]Write i2c OK [10:05:05]MH_I2C_Read... [10:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:05]Read from MH i2c: E2 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 03 00 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 03 00 F0 1F 00 90 00 83 [10:05:05]RAPDU: 90 00 [10:05:05]wFMCommunicate OK [10:05:05]wFMCommunicate request_size=4 [10:05:05]MH_SAM_APDU [10:05:05]CAPDU: 80 0D 03 02 [10:05:05]Write to MH i2c: E2 08 00 F1 1F 80 0D 03 02 00 00 00 00 8B [10:05:05]Write i2c OK [10:05:05]MH_I2C_Read... [10:05:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:05]Read from MH i2c: E2 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 0B 00 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 0B 00 F1 1F 00 FA 96 34 3B 7A 22 CF C4 90 00 BA [10:05:05]RAPDU: FA 96 34 3B 7A 22 CF C4 90 00 [10:05:05]wFMCommunicate OK [10:05:05]SAM_PROTO_SignData done [10:05:05]FM_MakeSignedData done [10:05:05]CreateOFDProtocolMessage [10:05:05]wFMCommunicate request_size=4 [10:05:05]MH_SAM_APDU [10:05:05]CAPDU: 80 11 00 00 [10:05:05]Write to MH i2c: E2 08 00 F2 1F 80 11 00 00 00 00 00 00 8B [10:05:05]Write i2c OK [10:05:05]MH_I2C_Read... [10:05:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:05]Read from MH i2c: E2 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 17 00 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 17 00 F2 1F 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:05: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:05:05]wFMCommunicate OK [10:05:05]CreateOFDProtocolMessage done [10:05:05]OFDSenderStorePacket 123536 [10:05:05]StoreOFDPacket docnum=123536 [10:05: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 C8 97 07 01 54 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 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 30 00 00 00 F4 03 04 00 54 40 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 81 53 2C 8A 55 B6 FA 96 34 3B 7A 22 CF C4 [10:05:05]CheckFolder [10:05:05]dirname=/storage/ofd_packets [10:05:05]CheckFolder done [10:05:05]ProducePacketName [10:05:05]name=ofd_packets/00123536 [10:05:05]NVStorageSaveData ofd_packets/00123536 [10:05:05]File name is /storage/ofd_packets/00123536 [10:05:05]Write 301 bytes [10:05:05]NVStorageSaveData done [10:05:05]OFDSenderStorePacket done [10:05:05]KKMCreateOFDPacket done [10:05:05]NVStorageSaveData kkm_last_timestamp [10:05:05]File name is /storage/kkm_last_timestamp [10:05:05]Write 4 bytes [10:05:05]NVStorageSaveData done [10:05:05]ExternCall_PrintAddStr [10:05:05]wPrintStart [10:05:05]Write to MH i2c: 01 00 00 F3 1F 12 [10:05:05]Write i2c OK [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: 01 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: 01 07 00 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: 01 07 00 F3 1F 00 00 00 00 00 FF 0F 27 [10:05:05]RasterBufferAndPrint [10:05:05]line Счет N : (1)718370 [10:05:05]line ИНН: 02508201610067 [10:05:05]line Контрольно-Кассовый Чек [10:05:05]line ПРОДАЖА [10:05:05]line ТРК (МРК, ГНК) : 22 [10:05:05]line Товар: 2710124130 [10:05:05]line Аи-92-К-4 [10:05:05]line 14.840 * 67.40 [10:05:05]line = 1000.22 [10:05:05]line НДС 12% НСП 1% [10:05:05]line > о реализуемом товаре [10:05:05]line ОКРУГЛЕНИЕ: -0.22 [10:05:05]line ИТОГО: 1000.00 [10:05:05]line Внесено: 1000.00 [10:05:05]line СДАЧА: 0.00 [10:05:05]line НСП 1% : 8.85 [10:05:05]line НДС 12% : 106.22 [10:05:05]line Наличными: 1000.00 [10:05:05]line Безнал.: 0.00 [10:05:05]line Место: АЗС № 64 "Партнер Нефть" [10:05:05]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:05:05]line СНО: Общий режим [10:05:05]line Чек 48 28.11.2024 10:05 [10:05:05]line Смена: 559 ФФД: 1.0 [10:05:05]line ЗНМ: 0300000033 [10:05:05]line РНМ: 0000000000092681 [10:05:05]line Версия ККМ: 001 [10:05:05]line ФМ: 0000000000874881 [10:05:05]line ФД: 123536 [10:05:05]line ФПД: 142194229532086 [10:05:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T100508&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123536&fm=142194229532086&tin=02508201610067®Number=0000000000092681&sum=100000 [10:05:06]OFD Sender: Processing packet 123536 [packets to send 7, broken 6] [10:05:06]ProducePacketName [10:05:06]name=ofd_packets/00123536 [10:05:06]OFD Sender: To server: pG, [10:05:06]CommunicateWithHost lk.salyk.kg:30040 [10:05:06]ConnectInit lk.salyk.kg [10:05:06]written 0, free lines is 4095 [10:05:06]Connected sock=10 [10:05: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 C8 97 07 01 54 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 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 30 00 00 00 F4 03 04 00 54 40 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 81 53 2C 8A 55 B6 FA 96 34 3B 7A 22 CF C4 [10:05: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 5F 59 47 00 F6 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 90 E2 01 00 F4 03 04 00 1A EC 47 67 B6 04 01 00 00 64 41 EA 6D FA E7 13 5D [10:05:06]CommunicateWithHost err = 0 [10:05:06]CheckOFDResponse [10:05:06]1017 (14) - 77093643461234 [10:05:06]1041 (16) - 0000000000874881 [10:05:06]1040 (4) - 123536 [10:05:06]1012 (4) - 28.11.2024 04:05 [10:05:06]1206 (1) - 0 [10:05:06]OFD Sender: Remove packet 123536 [10:05:06]ProducePacketName [10:05:06]name=ofd_packets/00123536 [10:05:06]NVStorageDeleteData [10:05:06]Write to MH i2c: 01 00 00 1E 20 3E [10:05:06]Write i2c OK [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: 01 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: 01 07 00 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: 01 07 00 1E 20 00 00 00 00 00 43 0C 94 [10:05:06]RasterBufferAndPrint [10:05:06]line [10:05:06]line [10:05:06]line [10:05:06]line [10:05:06]line [10:05:06]written 0, free lines is 3144 [10:05:06]MH_Cut [10:05:06]Write to MH i2c: D1 01 00 25 20 01 17 [10:05:06]Write i2c OK [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: D1 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: D1 01 00 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: D1 01 00 25 20 00 16 [10:05:06]Write to MH i2c: 01 00 00 26 20 46 [10:05:06]Write i2c OK [10:05:06]MH_I2C_Read... [10:05:06]OFD Sender: No OFD packet to send [10:05:07]*** Cut start [10:05:07]*** Partial cut [10:05:07]*** CUTSNS_PIN = 1 [10:05:07]*** CUTSNS_PIN = 0 [10:05:08]*** Brake cut motor [10:05:08]Read from MH i2c: 01 [10:05:08]MH_I2C_Read... [10:05:08]*** Stop cut motor [10:05:08]*** Cut end [10:05:08]Read from MH i2c: 01 07 00 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: 01 07 00 26 20 00 00 00 00 00 FF 0F 5B [10:05:08]process_action close_receipt done [10:05:08]requested_data is exist [10:05:08]produce_requested_data [10:05:08]requested_item fm.sn is exist - process it [10:05:08]wFMCommunicate request_size=4 [10:05:08]MH_SAM_APDU [10:05:08]CAPDU: 80 11 00 00 [10:05:08]Write to MH i2c: E2 08 00 27 20 80 11 00 00 00 00 00 00 C1 [10:05:08]Write i2c OK [10:05:08]MH_I2C_Read... [10:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:08]Read from MH i2c: E2 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 17 00 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 17 00 27 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 18 [10:05: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:05:08]wFMCommunicate OK [10:05:08]requested_item fd.num is exist - process it [10:05:08]SAM_PROTO_GetFieldsCounters [10:05:08]wFMCommunicate request_size=4 [10:05:08]MH_SAM_APDU [10:05:08]CAPDU: 80 13 00 00 [10:05:08]Write to MH i2c: E2 08 00 28 20 80 13 00 00 00 00 00 00 C4 [10:05:08]Write i2c OK [10:05:08]MH_I2C_Read... [10:05:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:08]Read from MH i2c: E2 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 62 00 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 62 00 28 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 1E [10:05: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 90 E2 01 00 0E 04 04 00 2F 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 [10:05:08]wFMCommunicate OK [10:05:08]SAM_PROTO_GetFieldsCounters done [10:05:08]requested_item shift.num is exist - process it [10:05:08]requested_item shift.opened is exist - process it [10:05:08]req_shift_opened [10:05:08]FM_GetShiftState [10:05:08]SAM_PROTO_GetShiftState [10:05:08]wFMCommunicate request_size=4 [10:05:08]MH_SAM_APDU [10:05:08]CAPDU: 80 13 01 00 [10:05:08]Write to MH i2c: E2 08 00 29 20 80 13 01 00 00 00 00 00 C6 [10:05:08]Write i2c OK [10:05:08]MH_I2C_Read... [10:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:08]Read from MH i2c: E2 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 0E 00 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 0E 00 29 20 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 CD [10:05:08]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:05:08]wFMCommunicate OK [10:05:08]SAM_PROTO_GetShiftState done [10:05:08]FM_GetShiftState done [10:05:08]req_shift_opened done [10:05:08]requested_item shift.open_date is exist - process it [10:05:08]req_shift_open_date [10:05:08]req_shift_open_date done [10:05:08]produce_requested_data done [10:05:08]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123536,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [10:05:08]process_action_free close_receipt [10:05:08]json_value_free [10:05:08]json_value_free done [10:05:08]process_json_proto returns [10:05:08]Send response to host [10:05:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123536,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [10:05:08]free response buf [10:05:08]execute_script done [10:05:08]execute_script returns [10:05:08]free content buf [10:05:08]Sock 8.Close socket [10:05:08]Sock 8.Thread stoped [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:56]OFD Sender: No OFD packet to send [10:09:01]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:16]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:30]accept exits with 9 [10:11:30]New connection [10:11:30]New thread 3066862948 created [10:11:30]Thread 3066719588 joined [10:11:30]Waiting for new connection... [10:11:30] Sock 9.Parse request [10:11:30]Sock 9.Check first char [10:11:30]Sock 9.First char is OK [10:11:30]request: POST /json_proto HTTP/1.0 [10:11:30]Method: POST [10:11:30]URL: /json_proto [10:11:30]Method is POST - this is cgi request [10:11:30]url: /json_proto [10:11:30]query_string will be loaded in cgi processing [10:11:30]execute_cgi json_proto POST (null) [10:11:30]execute_cgi path=json_proto method=POST [10:11:30]POST find Content-Length [10:11:30]Host: 172.17.37.4:8080 [10:11:30]Content-Length: 800 [10:11:30]Content-Type: application/json [10:11:30] [10:11:30]POST finish read [10:11:30]Found Content-Length = 800 [10:11:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718372", "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:11:30]execute_script... [10:11: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)718372", "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:11:30]POST & json_proto [10:11:30]process_json_proto [10:11:30]json parsed OK: [10:11:30]protocol is kg_v1.0 [10:11:30]action value=close_receipt [10:11:30]process_action close_receipt [10:11:30]cmd_close_receipt [10:11:30]MH_GetDate [10:11:30]Write to MH i2c: F0 00 00 2A 20 39 [10:11:30]Write i2c OK [10:11:30]MH_I2C_Read... [10:11:30]Read from MH i2c: F0 [10:11:30]MH_I2C_Read... [10:11:30]Read from MH i2c: F0 09 00 [10:11:30]MH_I2C_Read... [10:11:30]Read from MH i2c: F0 09 00 2A 20 00 D6 41 48 67 1D 3A 47 67 0D [10:11:30]GetLastDocTimeStamp 1732788308 [10:11:30]current date 1732788694 [10:11:30]FM_GetShiftState [10:11:30]SAM_PROTO_GetShiftState [10:11:30]wFMCommunicate request_size=4 [10:11:30]MH_SAM_APDU [10:11:30]CAPDU: 80 13 01 00 [10:11:30]Write to MH i2c: E2 08 00 2B 20 80 13 01 00 00 00 00 00 C8 [10:11:30]Write i2c OK [10:11:30]MH_I2C_Read... [10:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:30]Read from MH i2c: E2 [10:11:30]MH_I2C_Read... [10:11:30]Read from MH i2c: E2 0E 00 [10:11:30]MH_I2C_Read... [10:11:30]Read from MH i2c: E2 0E 00 2B 20 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 CF [10:11:30]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:11:30]wFMCommunicate OK [10:11:30]SAM_PROTO_GetShiftState done [10:11:30]FM_GetShiftState done [10:11:30]opened in 1732752282 [10:11:30]opened+sec_in_day 1732838682 [10:11:30]quantity*price = 35048 [10:11:30]sum+1 = 35049 [10:11:30]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 СНО: Общий режим Чек 49 28.11.2024 10:11 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123537 ФПД: 130746564061096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T101134&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123537&fm=130746564061096&tin=02508201610067®Number=0000000000092681&sum=35048 [10:11:31]StoreToDocumentArchive [10:11:31]shift 559 fd 123537 [10:11:31]save to /storage/0559/doc_00123537 [10:11:31]save last doc name /storage/0559/doc_00123537 to /storage/kkm_last_doc_name [10:11:31]save OK [10:11:31]Clear old archive folders... [10:11:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:31]tlvbuf is B6EC44A0 [10:11:31]SAM_PROTO_ClearQueue [10:11:31]wFMCommunicate request_size=4 [10:11:31]MH_SAM_APDU [10:11:31]CAPDU: 80 09 00 00 [10:11:31]Write to MH i2c: E2 08 00 38 20 80 09 00 00 00 00 00 00 CA [10:11:31]Write i2c OK [10:11:31]MH_I2C_Read... [10:11:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:31]Read from MH i2c: E2 [10:11:31]MH_I2C_Read... [10:11:31]Read from MH i2c: E2 03 00 [10:11:31]MH_I2C_Read... [10:11:31]Read from MH i2c: E2 03 00 38 20 00 90 00 CC [10:11:31]RAPDU: 90 00 [10:11:31]wFMCommunicate OK [10:11:31]SAM_PROTO_ClearQueue done [10:11:31]KKMCreateOFDPacket [10:11:31]OFDProtocolAddRootSTLVToBuf [10:11:31]FM_MakeSignedData [10:11:31]FM_MakeSignedData [10:11:31]SAM_PROTO_SignData [10:11:31]wFMCommunicate request_size=4 [10:11:31]MH_SAM_APDU [10:11:31]CAPDU: 80 0D 01 02 [10:11:31]Write to MH i2c: E2 08 00 39 20 80 0D 01 02 00 00 00 00 D2 [10:11:31]Write i2c OK [10:11:31]MH_I2C_Read... [10:11:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:31]Read from MH i2c: E2 [10:11:31]MH_I2C_Read... [10:11:31]Read from MH i2c: E2 03 00 [10:11:31]MH_I2C_Read... [10:11:31]Read from MH i2c: E2 03 00 39 20 00 90 00 CD [10:11:31]RAPDU: 90 00 [10:11:31]wFMCommunicate OK [10:11:31]wFMCommunicate request_size=255 [10:11:31]MH_SAM_APDU [10:11: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 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 31 00 00 00 F4 03 04 00 D6 41 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 76 [10:11:31]Write to MH i2c: E2 02 01 3A 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 31 00 00 00 F4 03 04 00 D6 41 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 76 00 00 E3 [10:11:31]Write i2c OK [10:11:31]MH_I2C_Read... [10:11:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:31]Read from MH i2c: E2 [10:11:31]MH_I2C_Read... [10:11:31]Read from MH i2c: E2 03 00 [10:11:31]MH_I2C_Read... [10:11:31]Read from MH i2c: E2 03 00 3A 20 00 90 00 CE [10:11:31]RAPDU: 90 00 [10:11:31]wFMCommunicate OK [10:11:31]wFMCommunicate request_size=10 [10:11:31]MH_SAM_APDU [10:11:31]CAPDU: 80 0D 02 02 05 E9 CE 81 A7 A8 [10:11:31]Write to MH i2c: E2 0D 00 3B 20 80 0D 02 02 05 00 E9 CE 81 A7 A8 00 00 66 [10:11:31]Write i2c OK [10:11:31]MH_I2C_Read... [10:11:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:31]Read from MH i2c: E2 [10:11:31]MH_I2C_Read... [10:11:31]Read from MH i2c: E2 03 00 [10:11:31]MH_I2C_Read... [10:11:31]Read from MH i2c: E2 03 00 3B 20 00 90 00 CF [10:11:31]RAPDU: 90 00 [10:11:31]wFMCommunicate OK [10:11:31]wFMCommunicate request_size=4 [10:11:31]MH_SAM_APDU [10:11:31]CAPDU: 80 0D 03 02 [10:11:31]Write to MH i2c: E2 08 00 3C 20 80 0D 03 02 00 00 00 00 D7 [10:11:31]Write i2c OK [10:11:31]MH_I2C_Read... [10:11:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:31]Read from MH i2c: E2 [10:11:31]MH_I2C_Read... [10:11:31]Read from MH i2c: E2 0B 00 [10:11:31]MH_I2C_Read... [10:11:31]Read from MH i2c: E2 0B 00 3C 20 00 14 E2 47 AB 36 DA 80 82 90 00 D2 [10:11:31]RAPDU: 14 E2 47 AB 36 DA 80 82 90 00 [10:11:31]wFMCommunicate OK [10:11:31]SAM_PROTO_SignData done [10:11:31]FM_MakeSignedData done [10:11:31]CreateOFDProtocolMessage [10:11:31]wFMCommunicate request_size=4 [10:11:31]MH_SAM_APDU [10:11:31]CAPDU: 80 11 00 00 [10:11:31]Write to MH i2c: E2 08 00 3D 20 80 11 00 00 00 00 00 00 D7 [10:11:31]Write i2c OK [10:11:31]MH_I2C_Read... [10:11:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:31]Read from MH i2c: E2 [10:11:31]MH_I2C_Read... [10:11:31]Read from MH i2c: E2 17 00 [10:11:31]MH_I2C_Read... [10:11:31]Read from MH i2c: E2 17 00 3D 20 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:11:31]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:31]wFMCommunicate OK [10:11:31]CreateOFDProtocolMessage done [10:11:31]OFDSenderStorePacket 123537 [10:11:31]StoreOFDPacket docnum=123537 [10:11: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 E8 EB 07 01 E5 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 31 00 00 00 F4 03 04 00 D6 41 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 76 E9 CE 81 A7 A8 14 E2 47 AB 36 DA 80 82 [10:11:31]CheckFolder [10:11:31]dirname=/storage/ofd_packets [10:11:31]CheckFolder done [10:11:31]ProducePacketName [10:11:31]name=ofd_packets/00123537 [10:11:31]NVStorageSaveData ofd_packets/00123537 [10:11:31]File name is /storage/ofd_packets/00123537 [10:11:31]Write 301 bytes [10:11:31]NVStorageSaveData done [10:11:31]OFDSenderStorePacket done [10:11:31]KKMCreateOFDPacket done [10:11:31]NVStorageSaveData kkm_last_timestamp [10:11:31]File name is /storage/kkm_last_timestamp [10:11:31]Write 4 bytes [10:11:31]NVStorageSaveData done [10:11:31]ExternCall_PrintAddStr [10:11:31]wPrintStart [10:11:31]Write to MH i2c: 01 00 00 3E 20 5E [10:11:31]Write i2c OK [10:11:31]MH_I2C_Read... [10:11:31]Read from MH i2c: 01 [10:11:31]MH_I2C_Read... [10:11:31]Read from MH i2c: 01 07 00 [10:11:31]MH_I2C_Read... [10:11:31]Read from MH i2c: 01 07 00 3E 20 00 00 00 00 00 FF 0F 73 [10:11:31]RasterBufferAndPrint [10:11:31]line Счет N : (1)718372 [10:11:31]line ИНН: 02508201610067 [10:11:31]line Контрольно-Кассовый Чек [10:11:31]line ПРОДАЖА [10:11:31]line ТРК (МРК, ГНК) : 12 [10:11:31]line Товар: 2710124130 [10:11:31]line Аи-92-К-4 [10:11:31]line 5.200 * 67.40 [10:11:31]line = 350.48 [10:11:31]line НДС 12% НСП 1% [10:11:31]line > о реализуемом товаре [10:11:31]line ИТОГО: 350.48 [10:11:31]line НСП 1% : 3.10 [10:11:31]line НДС 12% : 37.22 [10:11:31]line Наличными: 0.00 [10:11:31]line Безнал.: 350.48 [10:11:31]line Место: АЗС № 64 "Партнер Нефть" [10:11:31]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:11:31]line СНО: Общий режим [10:11:31]line Чек 49 28.11.2024 10:11 [10:11:31]line Смена: 559 ФФД: 1.0 [10:11:31]line ЗНМ: 0300000033 [10:11:31]line РНМ: 0000000000092681 [10:11:31]line Версия ККМ: 001 [10:11:31]line Платежная система: O! деньги [10:11:31]line ФМ: 0000000000874881 [10:11:31]line ФД: 123537 [10:11:31]line ФПД: 130746564061096 [10:11:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T101134&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123537&fm=130746564061096&tin=02508201610067®Number=0000000000092681&sum=35048 [10:11:32]written 0, free lines is 4095 [10:11:32]OFD Sender: Processing packet 123537 [packets to send 7, broken 6] [10:11:32]ProducePacketName [10:11:32]name=ofd_packets/00123537 [10:11:32]OFD Sender: To server: pG, [10:11:32]CommunicateWithHost lk.salyk.kg:30040 [10:11:32]ConnectInit lk.salyk.kg [10:11:32]Connected sock=10 [10:11: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 E8 EB 07 01 E5 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 31 00 00 00 F4 03 04 00 D6 41 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 76 E9 CE 81 A7 A8 14 E2 47 AB 36 DA 80 82 [10:11: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 1E 2E 47 00 A3 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 91 E2 01 00 F4 03 04 00 9C ED 47 67 B6 04 01 00 00 65 AA 0B 77 F8 7A 4C 4F [10:11:32]CommunicateWithHost err = 0 [10:11:32]CheckOFDResponse [10:11:32]1017 (14) - 77093643461234 [10:11:32]1041 (16) - 0000000000874881 [10:11:32]1040 (4) - 123537 [10:11:32]1012 (4) - 28.11.2024 04:12 [10:11:32]1206 (1) - 0 [10:11:32]OFD Sender: Remove packet 123537 [10:11:32]ProducePacketName [10:11:32]name=ofd_packets/00123537 [10:11:32]NVStorageDeleteData [10:11:32]Write to MH i2c: 01 00 00 68 20 88 [10:11:32]Write i2c OK [10:11:32]MH_I2C_Read... [10:11:32]Read from MH i2c: 01 [10:11:32]MH_I2C_Read... [10:11:32]Read from MH i2c: 01 07 00 [10:11:32]MH_I2C_Read... [10:11:32]Read from MH i2c: 01 07 00 68 20 00 00 00 00 00 6D 0C 08 [10:11:32]RasterBufferAndPrint [10:11:32]line [10:11:32]line [10:11:32]line [10:11:32]line [10:11:32]line [10:11:32]written 0, free lines is 3183 [10:11:32]MH_Cut [10:11:32]Write to MH i2c: D1 01 00 6F 20 01 61 [10:11:32]Write i2c OK [10:11:32]MH_I2C_Read... [10:11:32]Read from MH i2c: D1 [10:11:32]MH_I2C_Read... [10:11:32]Read from MH i2c: D1 01 00 [10:11:32]MH_I2C_Read... [10:11:32]Read from MH i2c: D1 01 00 6F 20 00 60 [10:11:32]Write to MH i2c: 01 00 00 70 20 90 [10:11:32]Write i2c OK [10:11:32]MH_I2C_Read... [10:11:32]OFD Sender: No OFD packet to send [10:11:34]*** Cut start [10:11:34]*** Partial cut [10:11:34]*** CUTSNS_PIN = 1 [10:11:34]*** CUTSNS_PIN = 0 [10:11:34]*** Brake cut motor [10:11:34]Read from MH i2c: 01 [10:11:34]MH_I2C_Read... [10:11:34]*** Stop cut motor [10:11:34]*** Cut end [10:11:34]Read from MH i2c: 01 07 00 [10:11:34]MH_I2C_Read... [10:11:34]Read from MH i2c: 01 07 00 70 20 00 00 00 00 00 FF 0F A5 [10:11:34]process_action close_receipt done [10:11:34]requested_data is exist [10:11:34]produce_requested_data [10:11:34]requested_item fm.sn is exist - process it [10:11:34]wFMCommunicate request_size=4 [10:11:34]MH_SAM_APDU [10:11:34]CAPDU: 80 11 00 00 [10:11:34]Write to MH i2c: E2 08 00 71 20 80 11 00 00 00 00 00 00 0B [10:11:34]Write i2c OK [10:11:34]MH_I2C_Read... [10:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:34]Read from MH i2c: E2 [10:11:34]MH_I2C_Read... [10:11:34]Read from MH i2c: E2 17 00 [10:11:34]MH_I2C_Read... [10:11:34]Read from MH i2c: E2 17 00 71 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 62 [10:11:34]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:34]wFMCommunicate OK [10:11:34]requested_item fd.num is exist - process it [10:11:34]SAM_PROTO_GetFieldsCounters [10:11:34]wFMCommunicate request_size=4 [10:11:34]MH_SAM_APDU [10:11:34]CAPDU: 80 13 00 00 [10:11:34]Write to MH i2c: E2 08 00 72 20 80 13 00 00 00 00 00 00 0E [10:11:34]Write i2c OK [10:11:34]MH_I2C_Read... [10:11:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:34]Read from MH i2c: E2 [10:11:34]MH_I2C_Read... [10:11:34]Read from MH i2c: E2 62 00 [10:11:34]MH_I2C_Read... [10:11:34]Read from MH i2c: E2 62 00 72 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 6C [10:11: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 91 E2 01 00 0E 04 04 00 2F 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 [10:11:34]wFMCommunicate OK [10:11:34]SAM_PROTO_GetFieldsCounters done [10:11:34]requested_item shift.num is exist - process it [10:11:34]requested_item shift.opened is exist - process it [10:11:34]req_shift_opened [10:11:34]FM_GetShiftState [10:11:34]SAM_PROTO_GetShiftState [10:11:34]wFMCommunicate request_size=4 [10:11:34]MH_SAM_APDU [10:11:34]CAPDU: 80 13 01 00 [10:11:34]Write to MH i2c: E2 08 00 73 20 80 13 01 00 00 00 00 00 10 [10:11:34]Write i2c OK [10:11:34]MH_I2C_Read... [10:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:34]Read from MH i2c: E2 [10:11:34]MH_I2C_Read... [10:11:34]Read from MH i2c: E2 0E 00 [10:11:34]MH_I2C_Read... [10:11:34]Read from MH i2c: E2 0E 00 73 20 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 17 [10:11:34]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:11:34]wFMCommunicate OK [10:11:34]SAM_PROTO_GetShiftState done [10:11:34]FM_GetShiftState done [10:11:34]req_shift_opened done [10:11:34]requested_item shift.open_date is exist - process it [10:11:34]req_shift_open_date [10:11:34]req_shift_open_date done [10:11:34]produce_requested_data done [10:11:34]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123537,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [10:11:34]process_action_free close_receipt [10:11:34]json_value_free [10:11:34]json_value_free done [10:11:34]process_json_proto returns [10:11:34]Send response to host [10:11:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123537,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [10:11:34]free response buf [10:11:34]execute_script done [10:11:34]execute_script returns [10:11:34]free content buf [10:11:34]Sock 9.Close socket [10:11:34]Sock 9.Thread stoped [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:22]accept exits with 8 [10:25:22]New connection [10:25:22]New thread 3066719588 created [10:25:22]Thread 3066862948 joined [10:25:22]Waiting for new connection... [10:25:22] Sock 8.Parse request [10:25:22]Sock 8.Check first char [10:25:22]Sock 8.First char is OK [10:25:22]request: POST /json_proto HTTP/1.0 [10:25:22]Method: POST [10:25:22]URL: /json_proto [10:25:22]Method is POST - this is cgi request [10:25:22]url: /json_proto [10:25:22]query_string will be loaded in cgi processing [10:25:22]execute_cgi json_proto POST (null) [10:25:22]execute_cgi path=json_proto method=POST [10:25:22]POST find Content-Length [10:25:22]Host: 172.17.37.4:8080 [10:25:22]Content-Length: 800 [10:25:22]Content-Type: application/json [10:25:22] [10:25:22]POST finish read [10:25:22]Found Content-Length = 800 [10:25:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718375", "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 }]} ], "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:25:22]execute_script... [10:25: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)718375", "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 }]} ], "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:25:22]POST & json_proto [10:25:22]process_json_proto [10:25:22]json parsed OK: [10:25:22]protocol is kg_v1.0 [10:25:22]action value=close_receipt [10:25:22]process_action close_receipt [10:25:22]cmd_close_receipt [10:25:22]MH_GetDate [10:25:22]Write to MH i2c: F0 00 00 74 20 83 [10:25:22]Write i2c OK [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: F0 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: F0 09 00 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: F0 09 00 74 20 00 17 45 48 67 1D 3A 47 67 9C [10:25:22]GetLastDocTimeStamp 1732788694 [10:25:22]current date 1732789527 [10:25:22]FM_GetShiftState [10:25:22]SAM_PROTO_GetShiftState [10:25:22]wFMCommunicate request_size=4 [10:25:22]MH_SAM_APDU [10:25:22]CAPDU: 80 13 01 00 [10:25:22]Write to MH i2c: E2 08 00 75 20 80 13 01 00 00 00 00 00 12 [10:25:22]Write i2c OK [10:25:22]MH_I2C_Read... [10:25:22]*** iso7816_exchange 80 13 01 00... Exchange failed -2850! [10:25:22]Read from MH i2c: E2 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E2 05 00 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E2 05 00 75 20 10 DE F4 FF FF 5B [10:25:22]Error from MH - 10 [10:25:22]res=8208 [10:25:22]FM_DeInit [10:25:22]wFMDisconnect [10:25:22]MH_SAM_Off [10:25:22]Write to MH i2c: E1 00 00 76 20 76 [10:25:22]Write i2c OK [10:25:22]MH_I2C_Read... [10:25:22]*** Shut down ICC! [10:25:22]Read from MH i2c: E1 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E1 01 00 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: E1 01 00 76 20 00 77 [10:25:22]FM_Init [10:25:22]wFMConnect [10:25:22]MH_SAM_On [10:25:22]Write to MH i2c: E0 00 00 77 20 76 [10:25:22]Write i2c OK [10:25:22]MH_I2C_Read... [10:25:23]*** iso7816_init finished! [10:25:23]*** atr: [10:25:23]*** 0F 3B D5 18 FF 81 91 FE [10:25:23]*** 1F C3 80 73 C8 21 10 0A [10:25:23]*** 00 00 00 00 00 00 00 00 [10:25:23]*** 00 00 00 00 00 00 00 00 [10:25:23]*** 00 00 00 00 00 00 00 00 [10:25:23]*** 00 00 00 00 00 00 00 00 [10:25:23]*** 00 00 00 00 00 00 00 00 [10:25:23]*** 00 00 00 00 00 00 00 00 [10:25:23]Read from MH i2c: E0 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E0 10 00 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E0 10 00 77 20 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 95 [10:25:23]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [10:25:23]wFMCommunicate request_size=10 [10:25:23]MH_SAM_APDU [10:25:23]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [10:25:23]Write to MH i2c: E2 0D 00 78 20 00 A4 04 00 05 00 01 02 03 04 05 00 00 42 [10:25:23]Write i2c OK [10:25:23]MH_I2C_Read... [10:25:23]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [10:25:23]Read from MH i2c: E2 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 03 00 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 03 00 78 20 00 90 00 0C [10:25:23]RAPDU: 90 00 [10:25:23]wFMCommunicate OK [10:25:23]wFMCommunicate request_size=4 [10:25:23]MH_SAM_APDU [10:25:23]CAPDU: 80 11 00 00 [10:25:23]Write to MH i2c: E2 08 00 79 20 80 11 00 00 00 00 00 00 13 [10:25:23]Write i2c OK [10:25:23]MH_I2C_Read... [10:25:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:23]Read from MH i2c: E2 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 17 00 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 17 00 79 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6A [10:25: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:25:23]wFMCommunicate OK [10:25:23]Detected FM SN is 0000000000874881 [10:25:23]Stored FM SN is 0000000000874881 [10:25:23]wFMCommunicate request_size=9 [10:25:23]MH_SAM_APDU [10:25:23]CAPDU: 80 16 00 00 04 1A 55 00 00 [10:25:23]Write to MH i2c: E2 0C 00 7A 20 80 16 00 00 04 00 1A 55 00 00 00 00 90 [10:25:23]Write i2c OK [10:25:23]MH_I2C_Read... [10:25:23]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [10:25:23]Read from MH i2c: E2 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 03 00 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 03 00 7A 20 00 90 00 0E [10:25:23]RAPDU: 90 00 [10:25:23]wFMCommunicate OK [10:25:23]FM PIN OK [10:25:23]wFMCommunicate request_size=8 [10:25:23]MH_SAM_APDU [10:25:23]CAPDU: 80 14 04 00 03 02 00 01 [10:25:23]Write to MH i2c: E2 0B 00 7B 20 80 14 04 00 03 00 02 00 01 00 00 25 [10:25:23]Write i2c OK [10:25:23]MH_I2C_Read... [10:25:23]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [10:25:23]Read from MH i2c: E2 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 03 00 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 03 00 7B 20 00 90 00 0F [10:25:23]RAPDU: 90 00 [10:25:23]wFMCommunicate OK [10:25:23]wFMCommunicate request_size=13 [10:25:23]MH_SAM_APDU [10:25:23]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [10:25:23]Write to MH i2c: E2 10 00 7C 20 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 4A [10:25:23]Write i2c OK [10:25:23]MH_I2C_Read... [10:25:23]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [10:25:23]Read from MH i2c: E2 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 03 00 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 03 00 7C 20 00 90 00 10 [10:25:23]RAPDU: 90 00 [10:25:23]wFMCommunicate OK [10:25:23]wFMCommunicate request_size=4 [10:25:23]MH_SAM_APDU [10:25:23]CAPDU: 80 11 00 00 [10:25:23]Write to MH i2c: E2 08 00 7D 20 80 11 00 00 00 00 00 00 17 [10:25:23]Write i2c OK [10:25:23]MH_I2C_Read... [10:25:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:23]Read from MH i2c: E2 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 17 00 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 17 00 7D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6E [10:25: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:25:23]wFMCommunicate OK [10:25:23]FM_GetShiftState [10:25:23]SAM_PROTO_GetShiftState [10:25:23]wFMCommunicate request_size=4 [10:25:23]MH_SAM_APDU [10:25:23]CAPDU: 80 13 01 00 [10:25:23]Write to MH i2c: E2 08 00 7E 20 80 13 01 00 00 00 00 00 1B [10:25:23]Write i2c OK [10:25:23]MH_I2C_Read... [10:25:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:23]Read from MH i2c: E2 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 0E 00 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 0E 00 7E 20 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 22 [10:25:23]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:25:23]wFMCommunicate OK [10:25:23]SAM_PROTO_GetShiftState done [10:25:23]FM_GetShiftState done [10:25:23]opened in 1732752282 [10:25:23]opened+sec_in_day 1732838682 [10:25:23]quantity*price = 50010 [10:25:23]sum+1 = 50012 [10:25:23]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 СНО: Общий режим Чек 50 28.11.2024 10:25 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123538 ФПД: 121831099214230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T102527&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123538&fm=121831099214230&tin=02508201610067®Number=0000000000092681&sum=50011 [10:25:24]StoreToDocumentArchive [10:25:24]shift 559 fd 123538 [10:25:24]save to /storage/0559/doc_00123538 [10:25:24]save last doc name /storage/0559/doc_00123538 to /storage/kkm_last_doc_name [10:25:24]save OK [10:25:24]Clear old archive folders... [10:25:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:24]tlvbuf is 01513BD0 [10:25:24]SAM_PROTO_ClearQueue [10:25:24]wFMCommunicate request_size=4 [10:25:24]MH_SAM_APDU [10:25:24]CAPDU: 80 09 00 00 [10:25:24]Write to MH i2c: E2 08 00 8B 20 80 09 00 00 00 00 00 00 1D [10:25:24]Write i2c OK [10:25:24]MH_I2C_Read... [10:25:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:24]Read from MH i2c: E2 [10:25:24]MH_I2C_Read... [10:25:24]Read from MH i2c: E2 03 00 [10:25:24]MH_I2C_Read... [10:25:24]Read from MH i2c: E2 03 00 8B 20 00 90 00 1F [10:25:24]RAPDU: 90 00 [10:25:24]wFMCommunicate OK [10:25:24]SAM_PROTO_ClearQueue done [10:25:24]KKMCreateOFDPacket [10:25:24]OFDProtocolAddRootSTLVToBuf [10:25:24]FM_MakeSignedData [10:25:24]FM_MakeSignedData [10:25:24]SAM_PROTO_SignData [10:25:24]wFMCommunicate request_size=4 [10:25:24]MH_SAM_APDU [10:25:24]CAPDU: 80 0D 01 02 [10:25:24]Write to MH i2c: E2 08 00 8C 20 80 0D 01 02 00 00 00 00 25 [10:25:24]Write i2c OK [10:25:24]MH_I2C_Read... [10:25:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:24]Read from MH i2c: E2 [10:25:24]MH_I2C_Read... [10:25:24]Read from MH i2c: E2 03 00 [10:25:24]MH_I2C_Read... [10:25:24]Read from MH i2c: E2 03 00 8C 20 00 90 00 20 [10:25:24]RAPDU: 90 00 [10:25:24]wFMCommunicate OK [10:25:24]wFMCommunicate request_size=255 [10:25:24]MH_SAM_APDU [10:25: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 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 32 00 00 00 F4 03 04 00 17 45 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 6E [10:25:24]Write to MH i2c: E2 02 01 8D 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 32 00 00 00 F4 03 04 00 17 45 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 6E 00 00 F3 [10:25:24]Write i2c OK [10:25:24]MH_I2C_Read... [10:25:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:24]Read from MH i2c: E2 [10:25:24]MH_I2C_Read... [10:25:24]Read from MH i2c: E2 03 00 [10:25:24]MH_I2C_Read... [10:25:24]Read from MH i2c: E2 03 00 8D 20 00 90 00 21 [10:25:24]RAPDU: 90 00 [10:25:24]wFMCommunicate OK [10:25:24]wFMCommunicate request_size=10 [10:25:24]MH_SAM_APDU [10:25:24]CAPDU: 80 0D 02 02 05 CE 03 64 29 96 [10:25:24]Write to MH i2c: E2 0D 00 8E 20 80 0D 02 02 05 00 CE 03 64 29 96 00 00 26 [10:25:24]Write i2c OK [10:25:24]MH_I2C_Read... [10:25:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:24]Read from MH i2c: E2 [10:25:24]MH_I2C_Read... [10:25:24]Read from MH i2c: E2 03 00 [10:25:24]MH_I2C_Read... [10:25:24]Read from MH i2c: E2 03 00 8E 20 00 90 00 22 [10:25:24]RAPDU: 90 00 [10:25:24]wFMCommunicate OK [10:25:24]wFMCommunicate request_size=4 [10:25:24]MH_SAM_APDU [10:25:24]CAPDU: 80 0D 03 02 [10:25:24]Write to MH i2c: E2 08 00 8F 20 80 0D 03 02 00 00 00 00 2A [10:25:24]Write i2c OK [10:25:24]MH_I2C_Read... [10:25:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:25]Read from MH i2c: E2 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: E2 0B 00 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: E2 0B 00 8F 20 00 65 A9 2B F4 88 CC 61 02 90 00 0F [10:25:25]RAPDU: 65 A9 2B F4 88 CC 61 02 90 00 [10:25:25]wFMCommunicate OK [10:25:25]SAM_PROTO_SignData done [10:25:25]FM_MakeSignedData done [10:25:25]CreateOFDProtocolMessage [10:25:25]wFMCommunicate request_size=4 [10:25:25]MH_SAM_APDU [10:25:25]CAPDU: 80 11 00 00 [10:25:25]Write to MH i2c: E2 08 00 90 20 80 11 00 00 00 00 00 00 2A [10:25:25]Write i2c OK [10:25:25]MH_I2C_Read... [10:25:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:25]Read from MH i2c: E2 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: E2 17 00 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: E2 17 00 90 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 81 [10:25: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:25:25]wFMCommunicate OK [10:25:25]CreateOFDProtocolMessage done [10:25:25]OFDSenderStorePacket 123538 [10:25:25]StoreOFDPacket docnum=123538 [10:25: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 33 FF 07 01 C5 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 32 00 00 00 F4 03 04 00 17 45 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 6E CE 03 64 29 96 65 A9 2B F4 88 CC 61 02 [10:25:25]CheckFolder [10:25:25]dirname=/storage/ofd_packets [10:25:25]CheckFolder done [10:25:25]ProducePacketName [10:25:25]name=ofd_packets/00123538 [10:25:25]NVStorageSaveData ofd_packets/00123538 [10:25:25]File name is /storage/ofd_packets/00123538 [10:25:25]Write 301 bytes [10:25:25]NVStorageSaveData done [10:25:25]OFDSenderStorePacket done [10:25:25]KKMCreateOFDPacket done [10:25:25]NVStorageSaveData kkm_last_timestamp [10:25:25]File name is /storage/kkm_last_timestamp [10:25:25]Write 4 bytes [10:25:25]NVStorageSaveData done [10:25:25]ExternCall_PrintAddStr [10:25:25]wPrintStart [10:25:25]Write to MH i2c: 01 00 00 91 20 B1 [10:25:25]Write i2c OK [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: 01 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: 01 07 00 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: 01 07 00 91 20 00 00 00 00 00 FF 0F C6 [10:25:25]RasterBufferAndPrint [10:25:25]line Счет N : (1)718375 [10:25:25]line ИНН: 02508201610067 [10:25:25]line Контрольно-Кассовый Чек [10:25:25]line ПРОДАЖА [10:25:25]line ТРК (МРК, ГНК) : 12 [10:25:25]line Товар: 2710124130 [10:25:25]line Аи-92-К-4 [10:25:25]line 7.420 * 67.40 [10:25:25]line = 500.11 [10:25:25]line НДС 12% НСП 1% [10:25:25]line > о реализуемом товаре [10:25:25]line ИТОГО: 500.11 [10:25:25]line НСП 1% : 4.43 [10:25:25]line НДС 12% : 53.11 [10:25:25]line Наличными: 0.00 [10:25:25]line Безнал.: 500.11 [10:25:25]line Место: АЗС № 64 "Партнер Нефть" [10:25:25]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:25:25]line СНО: Общий режим [10:25:25]line Чек 50 28.11.2024 10:25 [10:25:25]line Смена: 559 ФФД: 1.0 [10:25:25]line ЗНМ: 0300000033 [10:25:25]line РНМ: 0000000000092681 [10:25:25]line Версия ККМ: 001 [10:25:25]line Платежная система: O! деньги [10:25:25]line ФМ: 0000000000874881 [10:25:25]line ФД: 123538 [10:25:25]line ФПД: 121831099214230 [10:25:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T102527&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123538&fm=121831099214230&tin=02508201610067®Number=0000000000092681&sum=50011 [10:25:25]written 0, free lines is 4095 [10:25:25]OFD Sender: Processing packet 123538 [packets to send 7, broken 6] [10:25:25]ProducePacketName [10:25:25]name=ofd_packets/00123538 [10:25:25]OFD Sender: To server: pG, [10:25:25]CommunicateWithHost lk.salyk.kg:30040 [10:25:25]ConnectInit lk.salyk.kg [10:25:25]Connected sock=10 [10:25: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 33 FF 07 01 C5 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 32 00 00 00 F4 03 04 00 17 45 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 6E CE 03 64 29 96 65 A9 2B F4 88 CC 61 02 [10:25: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 EB EB 47 00 A3 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 92 E2 01 00 F4 03 04 00 DD F0 47 67 B6 04 01 00 00 BE 59 F6 54 B4 51 34 C4 [10:25:25]CommunicateWithHost err = 0 [10:25:25]CheckOFDResponse [10:25:25]1017 (14) - 77093643461234 [10:25:25]1041 (16) - 0000000000874881 [10:25:25]1040 (4) - 123538 [10:25:25]1012 (4) - 28.11.2024 04:26 [10:25:25]1206 (1) - 0 [10:25:25]OFD Sender: Remove packet 123538 [10:25:25]ProducePacketName [10:25:25]name=ofd_packets/00123538 [10:25:25]NVStorageDeleteData [10:25:25]Write to MH i2c: 01 00 00 BB 20 DB [10:25:25]Write i2c OK [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: 01 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: 01 07 00 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: 01 07 00 BB 20 00 00 00 00 00 59 0C 47 [10:25:25]RasterBufferAndPrint [10:25:25]line [10:25:25]line [10:25:25]line [10:25:25]line [10:25:25]line [10:25:25]written 0, free lines is 3168 [10:25:25]MH_Cut [10:25:25]Write to MH i2c: D1 01 00 C2 20 01 B4 [10:25:25]Write i2c OK [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: D1 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: D1 01 00 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: D1 01 00 C2 20 00 B3 [10:25:25]Write to MH i2c: 01 00 00 C3 20 E3 [10:25:25]Write i2c OK [10:25:25]MH_I2C_Read... [10:25:25]OFD Sender: No OFD packet to send [10:25:26]*** Cut start [10:25:26]*** Partial cut [10:25:26]*** CUTSNS_PIN = 1 [10:25:26]*** CUTSNS_PIN = 0 [10:25:27]*** Brake cut motor [10:25:27]Read from MH i2c: 01 [10:25:27]MH_I2C_Read... [10:25:27]*** Stop cut motor [10:25:27]*** Cut end [10:25:27]Read from MH i2c: 01 07 00 [10:25:27]MH_I2C_Read... [10:25:27]Read from MH i2c: 01 07 00 C3 20 00 00 00 00 00 FF 0F F8 [10:25:27]process_action close_receipt done [10:25:27]requested_data is exist [10:25:27]produce_requested_data [10:25:27]requested_item fm.sn is exist - process it [10:25:27]wFMCommunicate request_size=4 [10:25:27]MH_SAM_APDU [10:25:27]CAPDU: 80 11 00 00 [10:25:27]Write to MH i2c: E2 08 00 C4 20 80 11 00 00 00 00 00 00 5E [10:25:27]Write i2c OK [10:25:27]MH_I2C_Read... [10:25:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:27]Read from MH i2c: E2 [10:25:27]MH_I2C_Read... [10:25:27]Read from MH i2c: E2 17 00 [10:25:27]MH_I2C_Read... [10:25:27]Read from MH i2c: E2 17 00 C4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B5 [10:25:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:25:27]wFMCommunicate OK [10:25:27]requested_item fd.num is exist - process it [10:25:27]SAM_PROTO_GetFieldsCounters [10:25:27]wFMCommunicate request_size=4 [10:25:27]MH_SAM_APDU [10:25:27]CAPDU: 80 13 00 00 [10:25:27]Write to MH i2c: E2 08 00 C5 20 80 13 00 00 00 00 00 00 61 [10:25:27]Write i2c OK [10:25:27]MH_I2C_Read... [10:25:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:27]Read from MH i2c: E2 [10:25:27]MH_I2C_Read... [10:25:27]Read from MH i2c: E2 62 00 [10:25:27]MH_I2C_Read... [10:25:27]Read from MH i2c: E2 62 00 C5 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 C3 [10:25: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 92 E2 01 00 0E 04 04 00 2F 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 [10:25:27]wFMCommunicate OK [10:25:27]SAM_PROTO_GetFieldsCounters done [10:25:27]requested_item shift.num is exist - process it [10:25:27]requested_item shift.opened is exist - process it [10:25:27]req_shift_opened [10:25:27]FM_GetShiftState [10:25:27]SAM_PROTO_GetShiftState [10:25:27]wFMCommunicate request_size=4 [10:25:27]MH_SAM_APDU [10:25:27]CAPDU: 80 13 01 00 [10:25:27]Write to MH i2c: E2 08 00 C6 20 80 13 01 00 00 00 00 00 63 [10:25:27]Write i2c OK [10:25:27]MH_I2C_Read... [10:25:27]Read from MH i2c: E2 [10:25:27]MH_I2C_Read... [10:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:27]Read from MH i2c: E2 0E 00 [10:25:27]MH_I2C_Read... [10:25:27]Read from MH i2c: E2 0E 00 C6 20 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 6A [10:25:27]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:25:27]wFMCommunicate OK [10:25:27]SAM_PROTO_GetShiftState done [10:25:27]FM_GetShiftState done [10:25:27]req_shift_opened done [10:25:27]requested_item shift.open_date is exist - process it [10:25:27]req_shift_open_date [10:25:27]req_shift_open_date done [10:25:27]produce_requested_data done [10:25:27]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123538,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [10:25:27]process_action_free close_receipt [10:25:27]json_value_free [10:25:27]json_value_free done [10:25:27]process_json_proto returns [10:25:27]Send response to host [10:25:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123538,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [10:25:27]free response buf [10:25:27]execute_script done [10:25:27]execute_script returns [10:25:27]free content buf [10:25:27]Sock 8.Close socket [10:25:27]Sock 8.Thread stoped [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:49]accept exits with 9 [10:26:49]New connection [10:26:49]New thread 3066862948 created [10:26:49]Thread 3066719588 joined [10:26:49]Waiting for new connection... [10:26:49] Sock 9.Parse request [10:26:49]Sock 9.Check first char [10:26:49]Sock 9.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: 803 [10:26:49]Content-Type: application/json [10:26:49] [10:26:49]POST finish read [10:26:49]Found Content-Length = 803 [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)718376", "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 }]} ], "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.22 } ] } , "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)718376", "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 }]} ], "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.22 } ] } , "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 C7 20 D6 [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 C7 20 00 6E 45 48 67 1D 3A 47 67 46 [10:26:49]GetLastDocTimeStamp 1732789527 [10:26:49]current date 1732789614 [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 C8 20 80 13 01 00 00 00 00 00 65 [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 C8 20 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 6C [10:26:49]RAPDU: 09 00 01 9A B3 47 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 1732752282 [10:26:49]opened+sec_in_day 1732838682 [10:26:49]quantity*price = 100021 [10:26:49]sum+1 = 100023 [10:26:49]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 СНО: Общий режим Чек 51 28.11.2024 10:26 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123539 ФПД: 40305678777401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T102654&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123539&fm=40305678777401&tin=02508201610067®Number=0000000000092681&sum=100022 [10:26:50]StoreToDocumentArchive [10:26:50]shift 559 fd 123539 [10:26:50]save to /storage/0559/doc_00123539 [10:26:50]save last doc name /storage/0559/doc_00123539 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 0153B0E0 [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 D5 20 80 09 00 00 00 00 00 00 67 [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 D5 20 00 90 00 69 [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 D6 20 80 0D 01 02 00 00 00 00 6F [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 D6 20 00 90 00 6A [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 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 33 00 00 00 F4 03 04 00 6E 45 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 24 [10:26:50]Write to MH i2c: E2 02 01 D7 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 33 00 00 00 F4 03 04 00 6E 45 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 24 00 00 52 [10:26:50]Write i2c OK [10:26:50]MH_I2C_Read... [10:26:51]OFD Sender: No OFD packet to send [10:26:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:51]Read from MH i2c: E2 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 03 00 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 03 00 D7 20 00 90 00 6B [10:26:51]RAPDU: 90 00 [10:26:51]wFMCommunicate OK [10:26:51]wFMCommunicate request_size=10 [10:26:51]MH_SAM_APDU [10:26:51]CAPDU: 80 0D 02 02 05 A8 65 AA 7C 39 [10:26:51]Write to MH i2c: E2 0D 00 D8 20 80 0D 02 02 05 00 A8 65 AA 7C 39 00 00 E8 [10:26:51]Write i2c OK [10:26:51]MH_I2C_Read... [10:26:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:51]Read from MH i2c: E2 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 03 00 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 03 00 D8 20 00 90 00 6C [10:26:51]RAPDU: 90 00 [10:26:51]wFMCommunicate OK [10:26:51]wFMCommunicate request_size=4 [10:26:51]MH_SAM_APDU [10:26:51]CAPDU: 80 0D 03 02 [10:26:51]Write to MH i2c: E2 08 00 D9 20 80 0D 03 02 00 00 00 00 74 [10:26:51]Write i2c OK [10:26:51]MH_I2C_Read... [10:26:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:51]Read from MH i2c: E2 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 0B 00 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 0B 00 D9 20 00 F9 62 F5 E0 1A 86 DC EA 90 00 0B [10:26:51]RAPDU: F9 62 F5 E0 1A 86 DC EA 90 00 [10:26:51]wFMCommunicate OK [10:26:51]SAM_PROTO_SignData done [10:26:51]FM_MakeSignedData done [10:26:51]CreateOFDProtocolMessage [10:26:51]wFMCommunicate request_size=4 [10:26:51]MH_SAM_APDU [10:26:51]CAPDU: 80 11 00 00 [10:26:51]Write to MH i2c: E2 08 00 DA 20 80 11 00 00 00 00 00 00 74 [10:26:51]Write i2c OK [10:26:51]MH_I2C_Read... [10:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:51]Read from MH i2c: E2 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 17 00 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 17 00 DA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CB [10:26:51]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:51]wFMCommunicate OK [10:26:51]CreateOFDProtocolMessage done [10:26:51]OFDSenderStorePacket 123539 [10:26:51]StoreOFDPacket docnum=123539 [10:26: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 CC 56 07 01 58 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 33 00 00 00 F4 03 04 00 6E 45 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 24 A8 65 AA 7C 39 F9 62 F5 E0 1A 86 DC EA [10:26:51]CheckFolder [10:26:51]dirname=/storage/ofd_packets [10:26:51]CheckFolder done [10:26:51]ProducePacketName [10:26:51]name=ofd_packets/00123539 [10:26:51]NVStorageSaveData ofd_packets/00123539 [10:26:51]File name is /storage/ofd_packets/00123539 [10:26:51]Write 301 bytes [10:26:51]NVStorageSaveData done [10:26:51]OFDSenderStorePacket done [10:26:51]KKMCreateOFDPacket done [10:26:51]NVStorageSaveData kkm_last_timestamp [10:26:51]File name is /storage/kkm_last_timestamp [10:26:51]Write 4 bytes [10:26:51]NVStorageSaveData done [10:26:51]ExternCall_PrintAddStr [10:26:51]wPrintStart [10:26:51]Write to MH i2c: 01 00 00 DB 20 FB [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 DB 20 00 00 00 00 00 FF 0F 10 [10:26:51]RasterBufferAndPrint [10:26:51]line Счет N : (1)718376 [10:26:51]line ИНН: 02508201610067 [10:26:51]line Контрольно-Кассовый Чек [10:26:51]line ПРОДАЖА [10:26:51]line ТРК (МРК, ГНК) : 22 [10:26:51]line Товар: 2710124130 [10:26:51]line Аи-92-К-4 [10:26:51]line 14.840 * 67.40 [10:26:51]line = 1000.22 [10:26:51]line НДС 12% НСП 1% [10:26:51]line > о реализуемом товаре [10:26:51]line ИТОГО: 1000.22 [10:26:51]line НСП 1% : 8.85 [10:26:51]line НДС 12% : 106.22 [10:26:51]line Наличными: 0.00 [10:26:51]line Безнал.: 1000.22 [10:26:51]line Место: АЗС № 64 "Партнер Нефть" [10:26:51]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:26:51]line СНО: Общий режим [10:26:51]line Чек 51 28.11.2024 10:26 [10:26:51]line Смена: 559 ФФД: 1.0 [10:26:51]line ЗНМ: 0300000033 [10:26:51]line РНМ: 0000000000092681 [10:26:51]line Версия ККМ: 001 [10:26:51]line Платежная система: O! деньги [10:26:51]line ФМ: 0000000000874881 [10:26:51]line ФД: 123539 [10:26:51]line ФПД: 40305678777401 [10:26:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T102654&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123539&fm=40305678777401&tin=02508201610067®Number=0000000000092681&sum=100022 [10:26:51]OFD Sender: Processing packet 123539 [packets to send 7, broken 6] [10:26:51]ProducePacketName [10:26:51]name=ofd_packets/00123539 [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 CC 56 07 01 58 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 33 00 00 00 F4 03 04 00 6E 45 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 24 A8 65 AA 7C 39 F9 62 F5 E0 1A 86 DC EA [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 17 69 47 00 B3 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 93 E2 01 00 F4 03 04 00 34 F1 47 67 B6 04 01 00 00 E4 37 F6 97 6B 71 9D B2 [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) - 123539 [10:26:51]1012 (4) - 28.11.2024 04:27 [10:26:51]1206 (1) - 0 [10:26:51]OFD Sender: Remove packet 123539 [10:26:51]ProducePacketName [10:26:51]name=ofd_packets/00123539 [10:26:51]NVStorageDeleteData [10:26:52]Write to MH i2c: 01 00 00 05 21 26 [10:26:52]Write i2c OK [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: 01 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: 01 07 00 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: 01 07 00 05 21 00 00 00 00 00 5A 0C 93 [10:26:52]RasterBufferAndPrint [10:26:52]line [10:26:52]line [10:26:52]line [10:26:52]line [10:26:52]line [10:26:52]written 0, free lines is 3166 [10:26:52]MH_Cut [10:26:52]Write to MH i2c: D1 01 00 0C 21 01 FF [10:26:52]Write i2c OK [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: D1 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: D1 01 00 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: D1 01 00 0C 21 00 FE [10:26:52]Write to MH i2c: 01 00 00 0D 21 2E [10:26:52]Write i2c OK [10:26:52]MH_I2C_Read... [10:26:52]OFD Sender: No OFD packet to send [10:26:53]*** Cut start [10:26:53]*** Partial cut [10:26:53]*** CUTSNS_PIN = 1 [10:26:53]*** CUTSNS_PIN = 0 [10:26:53]*** Brake cut motor [10:26:54]Read from MH i2c: 01 [10:26:54]MH_I2C_Read... [10:26:54]*** Stop cut motor [10:26:54]*** Cut end [10:26:54]Read from MH i2c: 01 07 00 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: 01 07 00 0D 21 00 00 00 00 00 FF 0F 43 [10:26:54]process_action close_receipt done [10:26:54]requested_data is exist [10:26:54]produce_requested_data [10:26:54]requested_item fm.sn is exist - process it [10:26:54]wFMCommunicate request_size=4 [10:26:54]MH_SAM_APDU [10:26:54]CAPDU: 80 11 00 00 [10:26:54]Write to MH i2c: E2 08 00 0E 21 80 11 00 00 00 00 00 00 A9 [10:26:54]Write i2c OK [10:26:54]MH_I2C_Read... [10:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:54]Read from MH i2c: E2 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 17 00 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 17 00 0E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 00 [10:26:54]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:54]wFMCommunicate OK [10:26:54]requested_item fd.num is exist - process it [10:26:54]SAM_PROTO_GetFieldsCounters [10:26:54]wFMCommunicate request_size=4 [10:26:54]MH_SAM_APDU [10:26:54]CAPDU: 80 13 00 00 [10:26:54]Write to MH i2c: E2 08 00 0F 21 80 13 00 00 00 00 00 00 AC [10:26:54]Write i2c OK [10:26:54]MH_I2C_Read... [10:26:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:54]Read from MH i2c: E2 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 62 00 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 62 00 0F 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 [10:26:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 [10:26:54]wFMCommunicate OK [10:26:54]SAM_PROTO_GetFieldsCounters done [10:26:54]requested_item shift.num is exist - process it [10:26:54]requested_item shift.opened is exist - process it [10:26:54]req_shift_opened [10:26:54]FM_GetShiftState [10:26:54]SAM_PROTO_GetShiftState [10:26:54]wFMCommunicate request_size=4 [10:26:54]MH_SAM_APDU [10:26:54]CAPDU: 80 13 01 00 [10:26:54]Write to MH i2c: E2 08 00 10 21 80 13 01 00 00 00 00 00 AE [10:26:54]Write i2c OK [10:26:54]MH_I2C_Read... [10:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:54]Read from MH i2c: E2 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 0E 00 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 0E 00 10 21 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 B5 [10:26:54]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:26:54]wFMCommunicate OK [10:26:54]SAM_PROTO_GetShiftState done [10:26:54]FM_GetShiftState done [10:26:54]req_shift_opened done [10:26:54]requested_item shift.open_date is exist - process it [10:26:54]req_shift_open_date [10:26:54]req_shift_open_date done [10:26:54]produce_requested_data done [10:26:54]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123539,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [10:26:54]process_action_free close_receipt [10:26:54]json_value_free [10:26:54]json_value_free done [10:26:54]process_json_proto returns [10:26:54]Send response to host [10:26:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123539,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [10:26:54]free response buf [10:26:54]execute_script done [10:26:54]execute_script returns [10:26:54]free content buf [10:26:54]Sock 9.Close socket [10:26:54]Sock 9.Thread stoped [10:26:57]OFD Sender: No OFD packet to send [10:27:02]OFD Sender: No OFD packet to send [10:27:07]OFD Sender: No OFD packet to send [10:27:12]OFD Sender: No OFD packet to send [10:27:17]OFD Sender: No OFD packet to send [10:27:22]OFD Sender: No OFD packet to send [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:47]OFD Sender: No OFD packet to send [10:27:52]OFD Sender: No OFD packet to send [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:05]accept exits with 8 [10:28:05]New connection [10:28:05]New thread 3066719588 created [10:28:05]Thread 3066862948 joined [10:28:05]Waiting for new connection... [10:28:05] Sock 8.Parse request [10:28:05]Sock 8.Check first char [10:28:05]Sock 8.First char is OK [10:28:05]request: POST /json_proto HTTP/1.0 [10:28:05]Method: POST [10:28:05]URL: /json_proto [10:28:05]Method is POST - this is cgi request [10:28:05]url: /json_proto [10:28:05]query_string will be loaded in cgi processing [10:28:05]execute_cgi json_proto POST (null) [10:28:05]execute_cgi path=json_proto method=POST [10:28:05]POST find Content-Length [10:28:05]Host: 172.17.37.4:8080 [10:28:05]Content-Length: 804 [10:28:05]Content-Type: application/json [10:28:05] [10:28:05]POST finish read [10:28:05]Found Content-Length = 804 [10:28:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718377", "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.880, "sum" : 740.01, "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" : 740.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:05]execute_script... [10:28: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)718377", "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.880, "sum" : 740.01, "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" : 740.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:05]POST & json_proto [10:28:05]process_json_proto [10:28:05]json parsed OK: [10:28:05]protocol is kg_v1.0 [10:28:05]action value=close_receipt [10:28:05]process_action close_receipt [10:28:05]cmd_close_receipt [10:28:05]MH_GetDate [10:28:05]Write to MH i2c: F0 00 00 11 21 21 [10:28:05]Write i2c OK [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: F0 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: F0 09 00 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: F0 09 00 11 21 00 B9 45 48 67 1D 3A 47 67 DC [10:28:05]GetLastDocTimeStamp 1732789614 [10:28:05]current date 1732789689 [10:28:05]FM_GetShiftState [10:28:05]SAM_PROTO_GetShiftState [10:28:05]wFMCommunicate request_size=4 [10:28:05]MH_SAM_APDU [10:28:05]CAPDU: 80 13 01 00 [10:28:05]Write to MH i2c: E2 08 00 12 21 80 13 01 00 00 00 00 00 B0 [10:28:05]Write i2c OK [10:28:05]MH_I2C_Read... [10:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:05]Read from MH i2c: E2 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 0E 00 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 0E 00 12 21 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 B7 [10:28:05]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:28:05]wFMCommunicate OK [10:28:05]SAM_PROTO_GetShiftState done [10:28:05]FM_GetShiftState done [10:28:05]opened in 1732752282 [10:28:05]opened+sec_in_day 1732838682 [10:28:05]quantity*price = 74001 [10:28:05]sum+1 = 74002 [10:28:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 740.01 НСП 1% : 6.55 НДС 12% : 78.58 Наличными: 0.00 Безнал.: 740.01 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 52 28.11.2024 10:28 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123540 ФПД: 116377935463192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T102809&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123540&fm=116377935463192&tin=02508201610067®Number=0000000000092681&sum=74001 [10:28:06]StoreToDocumentArchive [10:28:06]shift 559 fd 123540 [10:28:06]save to /storage/0559/doc_00123540 [10:28:06]save last doc name /storage/0559/doc_00123540 to /storage/kkm_last_doc_name [10:28:06]save OK [10:28:06]Clear old archive folders... [10:28:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:28:06]tlvbuf is 0150CAB0 [10:28:06]SAM_PROTO_ClearQueue [10:28:06]wFMCommunicate request_size=4 [10:28:06]MH_SAM_APDU [10:28:06]CAPDU: 80 09 00 00 [10:28:06]Write to MH i2c: E2 08 00 1F 21 80 09 00 00 00 00 00 00 B2 [10:28:06]Write i2c OK [10:28:06]MH_I2C_Read... [10:28:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:06]Read from MH i2c: E2 [10:28:06]MH_I2C_Read... [10:28:06]Read from MH i2c: E2 03 00 [10:28:06]MH_I2C_Read... [10:28:06]Read from MH i2c: E2 03 00 1F 21 00 90 00 B4 [10:28:06]RAPDU: 90 00 [10:28:06]wFMCommunicate OK [10:28:06]SAM_PROTO_ClearQueue done [10:28:06]KKMCreateOFDPacket [10:28:06]OFDProtocolAddRootSTLVToBuf [10:28:06]FM_MakeSignedData [10:28:06]FM_MakeSignedData [10:28:06]SAM_PROTO_SignData [10:28:06]wFMCommunicate request_size=4 [10:28:06]MH_SAM_APDU [10:28:06]CAPDU: 80 0D 01 02 [10:28:06]Write to MH i2c: E2 08 00 20 21 80 0D 01 02 00 00 00 00 BA [10:28:06]Write i2c OK [10:28:06]MH_I2C_Read... [10:28:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:06]Read from MH i2c: E2 [10:28:06]MH_I2C_Read... [10:28:06]Read from MH i2c: E2 03 00 [10:28:06]MH_I2C_Read... [10:28:06]Read from MH i2c: E2 03 00 20 21 00 90 00 B5 [10:28:06]RAPDU: 90 00 [10:28:06]wFMCommunicate OK [10:28:06]wFMCommunicate request_size=255 [10:28:06]MH_SAM_APDU [10:28: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 98 26 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B9 45 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 [10:28:06]Write to MH i2c: E2 02 01 21 21 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B9 45 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 00 00 A4 [10:28:06]Write i2c OK [10:28:06]MH_I2C_Read... [10:28:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:06]Read from MH i2c: E2 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 03 00 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 03 00 21 21 00 90 00 B6 [10:28:07]RAPDU: 90 00 [10:28:07]wFMCommunicate OK [10:28:07]wFMCommunicate request_size=11 [10:28:07]MH_SAM_APDU [10:28:07]CAPDU: 80 0D 02 02 06 69 D8 59 80 C3 18 [10:28:07]Write to MH i2c: E2 0E 00 22 21 80 0D 02 02 06 00 69 D8 59 80 C3 18 00 00 BE [10:28:07]Write i2c OK [10:28:07]MH_I2C_Read... [10:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:07]Read from MH i2c: E2 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 03 00 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 03 00 22 21 00 90 00 B7 [10:28:07]RAPDU: 90 00 [10:28:07]wFMCommunicate OK [10:28:07]wFMCommunicate request_size=4 [10:28:07]MH_SAM_APDU [10:28:07]CAPDU: 80 0D 03 02 [10:28:07]Write to MH i2c: E2 08 00 23 21 80 0D 03 02 00 00 00 00 BF [10:28:07]Write i2c OK [10:28:07]MH_I2C_Read... [10:28:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:07]Read from MH i2c: E2 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 0B 00 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 0B 00 23 21 00 96 45 29 30 58 9B 4F 4A 90 00 80 [10:28:07]RAPDU: 96 45 29 30 58 9B 4F 4A 90 00 [10:28:07]wFMCommunicate OK [10:28:07]SAM_PROTO_SignData done [10:28:07]FM_MakeSignedData done [10:28:07]CreateOFDProtocolMessage [10:28:07]wFMCommunicate request_size=4 [10:28:07]MH_SAM_APDU [10:28:07]CAPDU: 80 11 00 00 [10:28:07]Write to MH i2c: E2 08 00 24 21 80 11 00 00 00 00 00 00 BF [10:28:07]Write i2c OK [10:28:07]MH_I2C_Read... [10:28:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:07]Read from MH i2c: E2 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 17 00 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 17 00 24 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 16 [10:28:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:28:07]wFMCommunicate OK [10:28:07]CreateOFDProtocolMessage done [10:28:07]OFDSenderStorePacket 123540 [10:28:07]StoreOFDPacket docnum=123540 [10:28: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 10 01 00 00 EA 5A 08 01 31 D0 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 98 26 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B9 45 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 69 D8 59 80 C3 18 96 45 29 30 58 9B 4F 4A [10:28:07]CheckFolder [10:28:07]dirname=/storage/ofd_packets [10:28:07]CheckFolder done [10:28:07]ProducePacketName [10:28:07]name=ofd_packets/00123540 [10:28:07]NVStorageSaveData ofd_packets/00123540 [10:28:07]File name is /storage/ofd_packets/00123540 [10:28:07]Write 302 bytes [10:28:07]NVStorageSaveData done [10:28:07]OFDSenderStorePacket done [10:28:07]KKMCreateOFDPacket done [10:28:07]NVStorageSaveData kkm_last_timestamp [10:28:07]File name is /storage/kkm_last_timestamp [10:28:07]Write 4 bytes [10:28:07]NVStorageSaveData done [10:28:07]ExternCall_PrintAddStr [10:28:07]wPrintStart [10:28:07]Write to MH i2c: 01 00 00 25 21 46 [10:28:07]Write i2c OK [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: 01 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: 01 07 00 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: 01 07 00 25 21 00 00 00 00 00 FF 0F 5B [10:28:07]RasterBufferAndPrint [10:28:07]line Счет N : (1)718377 [10:28:07]line ИНН: 02508201610067 [10:28:07]line Контрольно-Кассовый Чек [10:28:07]line ПРОДАЖА [10:28:07]line ТРК (МРК, ГНК) : 6 [10:28:07]line Товар: 2710194210 [10:28:07]line ДТ(л)-К-5 [10:28:07]line 9.880 * 74.90 [10:28:07]line = 740.01 [10:28:07]line НДС 12% НСП 1% [10:28:07]line > о реализуемом товаре [10:28:07]line ИТОГО: 740.01 [10:28:07]line НСП 1% : 6.55 [10:28:07]line НДС 12% : 78.58 [10:28:07]line Наличными: 0.00 [10:28:07]line Безнал.: 740.01 [10:28:07]line Место: АЗС № 64 "Партнер Нефть" [10:28:07]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:28:07]line СНО: Общий режим [10:28:07]line Чек 52 28.11.2024 10:28 [10:28:07]line Смена: 559 ФФД: 1.0 [10:28:07]line ЗНМ: 0300000033 [10:28:07]line РНМ: 0000000000092681 [10:28:07]line Версия ККМ: 001 [10:28:07]line Платежная система: O! деньги [10:28:07]line ФМ: 0000000000874881 [10:28:07]line ФД: 123540 [10:28:07]line ФПД: 116377935463192 [10:28:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T102809&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123540&fm=116377935463192&tin=02508201610067®Number=0000000000092681&sum=74001 [10:28:07]written 0, free lines is 4095 [10:28:07]OFD Sender: Processing packet 123540 [packets to send 7, broken 6] [10:28:07]ProducePacketName [10:28:07]name=ofd_packets/00123540 [10:28:07]OFD Sender: To server: pG, [10:28:07]CommunicateWithHost lk.salyk.kg:30040 [10:28:07]ConnectInit lk.salyk.kg [10:28:07]Connected sock=10 [10:28:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 EA 5A 08 01 31 D0 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 98 26 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 11 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B9 45 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 69 D8 59 80 C3 18 96 45 29 30 58 9B 4F 4A [10:28: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 12 95 47 00 FD 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 94 E2 01 00 F4 03 04 00 80 F1 47 67 B6 04 01 00 00 9A E0 CE 3C D4 C9 70 15 [10:28:07]CommunicateWithHost err = 0 [10:28:07]CheckOFDResponse [10:28:07]1017 (14) - 77093643461234 [10:28:07]1041 (16) - 0000000000874881 [10:28:07]1040 (4) - 123540 [10:28:07]1012 (4) - 28.11.2024 04:28 [10:28:07]1206 (1) - 0 [10:28:07]OFD Sender: Remove packet 123540 [10:28:07]ProducePacketName [10:28:07]name=ofd_packets/00123540 [10:28:07]NVStorageDeleteData [10:28:07]Write to MH i2c: 01 00 00 4F 21 70 [10:28:07]Write i2c OK [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: 01 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: 01 07 00 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: 01 07 00 4F 21 00 00 00 00 00 66 0C E9 [10:28:07]RasterBufferAndPrint [10:28:07]line [10:28:07]line [10:28:07]line [10:28:07]line [10:28:07]line [10:28:07]written 0, free lines is 3178 [10:28:07]MH_Cut [10:28:07]Write to MH i2c: D1 01 00 56 21 01 49 [10:28:07]Write i2c OK [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: D1 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: D1 01 00 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: D1 01 00 56 21 00 48 [10:28:07]Write to MH i2c: 01 00 00 57 21 78 [10:28:07]Write i2c OK [10:28:07]MH_I2C_Read... [10:28:08]OFD Sender: No OFD packet to send [10:28:09]*** Cut start [10:28:09]*** Partial cut [10:28:09]*** CUTSNS_PIN = 1 [10:28:09]*** CUTSNS_PIN = 0 [10:28:09]*** Brake cut motor [10:28:09]Read from MH i2c: 01 [10:28:09]MH_I2C_Read... [10:28:09]*** Stop cut motor [10:28:09]*** Cut end [10:28:09]Read from MH i2c: 01 07 00 [10:28:09]MH_I2C_Read... [10:28:09]Read from MH i2c: 01 07 00 57 21 00 00 00 00 00 FF 0F 8D [10:28:09]process_action close_receipt done [10:28:09]requested_data is exist [10:28:09]produce_requested_data [10:28:09]requested_item fm.sn is exist - process it [10:28:09]wFMCommunicate request_size=4 [10:28:09]MH_SAM_APDU [10:28:09]CAPDU: 80 11 00 00 [10:28:09]Write to MH i2c: E2 08 00 58 21 80 11 00 00 00 00 00 00 F3 [10:28:09]Write i2c OK [10:28:09]MH_I2C_Read... [10:28:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:10]Read from MH i2c: E2 [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: E2 17 00 [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: E2 17 00 58 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 4A [10:28:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:28:10]wFMCommunicate OK [10:28:10]requested_item fd.num is exist - process it [10:28:10]SAM_PROTO_GetFieldsCounters [10:28:10]wFMCommunicate request_size=4 [10:28:10]MH_SAM_APDU [10:28:10]CAPDU: 80 13 00 00 [10:28:10]Write to MH i2c: E2 08 00 59 21 80 13 00 00 00 00 00 00 F6 [10:28:10]Write i2c OK [10:28:10]MH_I2C_Read... [10:28:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:10]Read from MH i2c: E2 [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: E2 62 00 [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: E2 62 00 59 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 60 [10:28: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 94 E2 01 00 0E 04 04 00 2F 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 [10:28:10]wFMCommunicate OK [10:28:10]SAM_PROTO_GetFieldsCounters done [10:28:10]requested_item shift.num is exist - process it [10:28:10]requested_item shift.opened is exist - process it [10:28:10]req_shift_opened [10:28:10]FM_GetShiftState [10:28:10]SAM_PROTO_GetShiftState [10:28:10]wFMCommunicate request_size=4 [10:28:10]MH_SAM_APDU [10:28:10]CAPDU: 80 13 01 00 [10:28:10]Write to MH i2c: E2 08 00 5A 21 80 13 01 00 00 00 00 00 F8 [10:28:10]Write i2c OK [10:28:10]MH_I2C_Read... [10:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:10]Read from MH i2c: E2 [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: E2 0E 00 [10:28:10]MH_I2C_Read... [10:28:10]Read from MH i2c: E2 0E 00 5A 21 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 FF [10:28:10]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:28:10]wFMCommunicate OK [10:28:10]SAM_PROTO_GetShiftState done [10:28:10]FM_GetShiftState done [10:28:10]req_shift_opened done [10:28:10]requested_item shift.open_date is exist - process it [10:28:10]req_shift_open_date [10:28:10]req_shift_open_date done [10:28:10]produce_requested_data done [10:28:10]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123540,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [10:28:10]process_action_free close_receipt [10:28:10]json_value_free [10:28:10]json_value_free done [10:28:10]process_json_proto returns [10:28:10]Send response to host [10:28:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123540,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [10:28:10]free response buf [10:28:10]execute_script done [10:28:10]execute_script returns [10:28:10]free content buf [10:28:10]Sock 8.Close socket [10:28:10]Sock 8.Thread stoped [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:03]accept exits with 9 [10:30:03]New connection [10:30:03]New thread 3066862948 created [10:30:03]Thread 3066719588 joined [10:30:03]Waiting for new connection... [10:30:03] Sock 9.Parse request [10:30:03]Sock 9.Check first char [10:30:03]Sock 9.First char is OK [10:30:03]request: POST /json_proto HTTP/1.0 [10:30:03]Method: POST [10:30:03]URL: /json_proto [10:30:03]Method is POST - this is cgi request [10:30:03]url: /json_proto [10:30:03]query_string will be loaded in cgi processing [10:30:03]execute_cgi json_proto POST (null) [10:30:03]execute_cgi path=json_proto method=POST [10:30:03]POST find Content-Length [10:30:03]Host: 172.17.37.4:8080 [10:30:03]Content-Length: 678 [10:30:03]Content-Type: application/json [10:30:03] [10:30:03]POST finish read [10:30:03]Found Content-Length = 678 [10:30:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718378", "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" ] } } [10:30:03]execute_script... [10:30: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)718378", "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" ] } } [10:30:03]POST & json_proto [10:30:03]process_json_proto [10:30:03]json parsed OK: [10:30:03]protocol is kg_v1.0 [10:30:03]action value=close_receipt [10:30:03]process_action close_receipt [10:30:03]cmd_close_receipt [10:30:03]MH_GetDate [10:30:03]Write to MH i2c: F0 00 00 5B 21 6B [10:30:03]Write i2c OK [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: F0 [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: F0 09 00 [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: F0 09 00 5B 21 00 2F 46 48 67 1D 3A 47 67 9D [10:30:03]GetLastDocTimeStamp 1732789689 [10:30:03]current date 1732789807 [10:30:03]FM_GetShiftState [10:30:03]SAM_PROTO_GetShiftState [10:30:03]wFMCommunicate request_size=4 [10:30:03]MH_SAM_APDU [10:30:03]CAPDU: 80 13 01 00 [10:30:03]Write to MH i2c: E2 08 00 5C 21 80 13 01 00 00 00 00 00 FA [10:30:03]Write i2c OK [10:30:03]MH_I2C_Read... [10:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:03]Read from MH i2c: E2 [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: E2 0E 00 [10:30:03]MH_I2C_Read... [10:30:03]Read from MH i2c: E2 0E 00 5C 21 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 01 [10:30:03]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:30:03]wFMCommunicate OK [10:30:03]SAM_PROTO_GetShiftState done [10:30:03]FM_GetShiftState done [10:30:03]opened in 1732752282 [10:30:03]opened+sec_in_day 1732838682 [10:30:03]quantity*price = 70028 [10:30:03]sum+1 = 70030 [10:30:03]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 СНО: Общий режим Чек 53 28.11.2024 10:30 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123541 ФПД: 246905068223779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T103007&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123541&fm=246905068223779&tin=02508201610067®Number=0000000000092681&sum=70000 [10:30:04]StoreToDocumentArchive [10:30:04]shift 559 fd 123541 [10:30:04]save to /storage/0559/doc_00123541 [10:30:04]save last doc name /storage/0559/doc_00123541 to /storage/kkm_last_doc_name [10:30:04]save OK [10:30:04]Clear old archive folders... [10:30:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:04]tlvbuf is 014AF5F0 [10:30:04]SAM_PROTO_ClearQueue [10:30:04]wFMCommunicate request_size=4 [10:30:04]MH_SAM_APDU [10:30:04]CAPDU: 80 09 00 00 [10:30:04]Write to MH i2c: E2 08 00 69 21 80 09 00 00 00 00 00 00 FC [10:30:04]Write i2c OK [10:30:04]MH_I2C_Read... [10:30:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:04]Read from MH i2c: E2 [10:30:04]MH_I2C_Read... [10:30:04]Read from MH i2c: E2 03 00 [10:30:04]MH_I2C_Read... [10:30:04]Read from MH i2c: E2 03 00 69 21 00 90 00 FE [10:30:04]RAPDU: 90 00 [10:30:04]wFMCommunicate OK [10:30:04]SAM_PROTO_ClearQueue done [10:30:04]KKMCreateOFDPacket [10:30:04]OFDProtocolAddRootSTLVToBuf [10:30:04]FM_MakeSignedData [10:30:04]FM_MakeSignedData [10:30:04]SAM_PROTO_SignData [10:30:04]wFMCommunicate request_size=4 [10:30:04]MH_SAM_APDU [10:30:04]CAPDU: 80 0D 01 02 [10:30:04]Write to MH i2c: E2 08 00 6A 21 80 0D 01 02 00 00 00 00 04 [10:30:04]Write i2c OK [10:30:04]MH_I2C_Read... [10:30:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:04]Read from MH i2c: E2 [10:30:04]MH_I2C_Read... [10:30:04]Read from MH i2c: E2 03 00 [10:30:04]MH_I2C_Read... [10:30:04]Read from MH i2c: E2 03 00 6A 21 00 90 00 FF [10:30:04]RAPDU: 90 00 [10:30:04]wFMCommunicate OK [10:30:04]wFMCommunicate request_size=255 [10:30:04]MH_SAM_APDU [10:30: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 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 35 00 00 00 F4 03 04 00 2F 46 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E0 [10:30:04]Write to MH i2c: E2 02 01 6B 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 35 00 00 00 F4 03 04 00 2F 46 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E0 00 00 5B [10:30:04]Write i2c OK [10:30:04]MH_I2C_Read... [10:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:05]Read from MH i2c: E2 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 03 00 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 03 00 6B 21 00 90 00 00 [10:30:05]RAPDU: 90 00 [10:30:05]wFMCommunicate OK [10:30:05]wFMCommunicate request_size=10 [10:30:05]MH_SAM_APDU [10:30:05]CAPDU: 80 0D 02 02 05 8F 10 E2 7D 23 [10:30:05]Write to MH i2c: E2 0D 00 6C 21 80 0D 02 02 05 00 8F 10 E2 7D 23 00 00 32 [10:30:05]Write i2c OK [10:30:05]MH_I2C_Read... [10:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:05]Read from MH i2c: E2 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 03 00 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 03 00 6C 21 00 90 00 01 [10:30:05]RAPDU: 90 00 [10:30:05]wFMCommunicate OK [10:30:05]wFMCommunicate request_size=4 [10:30:05]MH_SAM_APDU [10:30:05]CAPDU: 80 0D 03 02 [10:30:05]Write to MH i2c: E2 08 00 6D 21 80 0D 03 02 00 00 00 00 09 [10:30:05]Write i2c OK [10:30:05]MH_I2C_Read... [10:30:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:05]Read from MH i2c: E2 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 0B 00 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: E2 0B 00 6D 21 00 79 4F 0D A2 43 20 51 EF 90 00 24 [10:30:05]RAPDU: 79 4F 0D A2 43 20 51 EF 90 00 [10:30:05]wFMCommunicate OK [10:30:05]SAM_PROTO_SignData done [10:30:05]FM_MakeSignedData done [10:30:05]CreateOFDProtocolMessage [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 6E 21 80 11 00 00 00 00 00 00 09 [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 6E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 60 [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]CreateOFDProtocolMessage done [10:30:05]OFDSenderStorePacket 123541 [10:30:05]StoreOFDPacket docnum=123541 [10:30: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 A0 DD 07 01 31 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 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 35 00 00 00 F4 03 04 00 2F 46 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E0 8F 10 E2 7D 23 79 4F 0D A2 43 20 51 EF [10:30:05]CheckFolder [10:30:05]dirname=/storage/ofd_packets [10:30:05]CheckFolder done [10:30:05]ProducePacketName [10:30:05]name=ofd_packets/00123541 [10:30:05]NVStorageSaveData ofd_packets/00123541 [10:30:05]File name is /storage/ofd_packets/00123541 [10:30:05]Write 301 bytes [10:30:05]NVStorageSaveData done [10:30:05]OFDSenderStorePacket done [10:30:05]KKMCreateOFDPacket done [10:30:05]NVStorageSaveData kkm_last_timestamp [10:30:05]File name is /storage/kkm_last_timestamp [10:30:05]Write 4 bytes [10:30:05]NVStorageSaveData done [10:30:05]ExternCall_PrintAddStr [10:30:05]wPrintStart [10:30:05]Write to MH i2c: 01 00 00 6F 21 90 [10:30:05]Write i2c OK [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: 01 [10:30:05]MH_I2C_Read... [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 6F 21 00 00 00 00 00 FF 0F A5 [10:30:05]RasterBufferAndPrint [10:30:05]line Счет N : (1)718378 [10:30:05]line ИНН: 02508201610067 [10:30:05]line Контрольно-Кассовый Чек [10:30:05]line ПРОДАЖА [10:30:05]line ТРК (МРК, ГНК) : 12 [10:30:05]line Товар: 2710124130 [10:30:05]line Аи-92-К-4 [10:30:05]line 10.390 * 67.40 [10:30:05]line = 700.29 [10:30:05]line НДС 12% НСП 1% [10:30:05]line > о реализуемом товаре [10:30:05]line ОКРУГЛЕНИЕ: -0.29 [10:30:05]line ИТОГО: 700.00 [10:30:05]line Внесено: 700.00 [10:30:05]line СДАЧА: 0.00 [10:30:05]line НСП 1% : 6.20 [10:30:05]line НДС 12% : 74.37 [10:30:05]line Наличными: 700.00 [10:30:05]line Безнал.: 0.00 [10:30:05]line Место: АЗС № 64 "Партнер Нефть" [10:30:05]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:30:05]line СНО: Общий режим [10:30:05]line Чек 53 28.11.2024 10:30 [10:30:05]line Смена: 559 ФФД: 1.0 [10:30:05]line ЗНМ: 0300000033 [10:30:05]line РНМ: 0000000000092681 [10:30:05]line Версия ККМ: 001 [10:30:05]line ФМ: 0000000000874881 [10:30:05]line ФД: 123541 [10:30:05]line ФПД: 246905068223779 [10:30:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T103007&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123541&fm=246905068223779&tin=02508201610067®Number=0000000000092681&sum=70000 [10:30:05]written 0, free lines is 4095 [10:30:05]OFD Sender: Processing packet 123541 [packets to send 7, broken 6] [10:30:05]ProducePacketName [10:30:05]name=ofd_packets/00123541 [10:30:05]OFD Sender: To server: pG, [10:30:05]CommunicateWithHost lk.salyk.kg:30040 [10:30:05]ConnectInit lk.salyk.kg [10:30:05]Connected sock=11 [10:30: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 A0 DD 07 01 31 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 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 35 00 00 00 F4 03 04 00 2F 46 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E0 8F 10 E2 7D 23 79 4F 0D A2 43 20 51 EF [10:30: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 61 EA 47 00 46 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 95 E2 01 00 F4 03 04 00 F6 F1 47 67 B6 04 01 00 00 3A 70 19 F4 00 13 2D 78 [10:30:05]CommunicateWithHost err = 0 [10:30:05]CheckOFDResponse [10:30:05]1017 (14) - 77093643461234 [10:30:05]1041 (16) - 0000000000874881 [10:30:05]1040 (4) - 123541 [10:30:05]1012 (4) - 28.11.2024 04:30 [10:30:05]1206 (1) - 0 [10:30:05]OFD Sender: Remove packet 123541 [10:30:05]ProducePacketName [10:30:05]name=ofd_packets/00123541 [10:30:05]NVStorageDeleteData [10:30:05]Write to MH i2c: 01 00 00 9A 21 BB [10:30:05]Write i2c OK [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: 01 [10:30:05]MH_I2C_Read... [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 9A 21 00 00 00 00 00 4D 0C 1B [10:30:05]RasterBufferAndPrint [10:30:05]line [10:30:05]line [10:30:05]line [10:30:05]line [10:30:05]line [10:30:05]written 0, free lines is 3152 [10:30:05]MH_Cut [10:30:05]Write to MH i2c: D1 01 00 A1 21 01 94 [10:30:05]Write i2c OK [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: D1 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: D1 01 00 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: D1 01 00 A1 21 00 93 [10:30:05]Write to MH i2c: 01 00 00 A2 21 C3 [10:30:05]Write i2c OK [10:30:05]MH_I2C_Read... [10:30:06]OFD Sender: No OFD packet to send [10:30:07]*** Cut start [10:30:07]*** Partial cut [10:30:07]*** CUTSNS_PIN = 1 [10:30:07]*** CUTSNS_PIN = 0 [10:30:07]*** Brake cut motor [10:30:07]Read from MH i2c: 01 [10:30:07]MH_I2C_Read... [10:30:07]*** Stop cut motor [10:30:07]*** Cut end [10:30:07]Read from MH i2c: 01 07 00 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: 01 07 00 A2 21 00 00 00 00 00 FF 0F D8 [10:30:07]process_action close_receipt done [10:30:07]requested_data is exist [10:30:07]produce_requested_data [10:30:07]requested_item fm.sn is exist - process it [10:30:07]wFMCommunicate request_size=4 [10:30:07]MH_SAM_APDU [10:30:07]CAPDU: 80 11 00 00 [10:30:07]Write to MH i2c: E2 08 00 A3 21 80 11 00 00 00 00 00 00 3E [10:30:07]Write i2c OK [10:30:07]MH_I2C_Read... [10:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:07]Read from MH i2c: E2 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: E2 17 00 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: E2 17 00 A3 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 95 [10:30:07]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:07]wFMCommunicate OK [10:30:07]requested_item fd.num is exist - process it [10:30:07]SAM_PROTO_GetFieldsCounters [10:30:07]wFMCommunicate request_size=4 [10:30:07]MH_SAM_APDU [10:30:07]CAPDU: 80 13 00 00 [10:30:07]Write to MH i2c: E2 08 00 A4 21 80 13 00 00 00 00 00 00 41 [10:30:07]Write i2c OK [10:30:07]MH_I2C_Read... [10:30:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:07]Read from MH i2c: E2 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: E2 62 00 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: E2 62 00 A4 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 AF [10:30: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 95 E2 01 00 0E 04 04 00 2F 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 [10:30:07]wFMCommunicate OK [10:30:07]SAM_PROTO_GetFieldsCounters done [10:30:07]requested_item shift.num is exist - process it [10:30:07]requested_item shift.opened is exist - process it [10:30:07]req_shift_opened [10:30:07]FM_GetShiftState [10:30:07]SAM_PROTO_GetShiftState [10:30:07]wFMCommunicate request_size=4 [10:30:07]MH_SAM_APDU [10:30:07]CAPDU: 80 13 01 00 [10:30:07]Write to MH i2c: E2 08 00 A5 21 80 13 01 00 00 00 00 00 43 [10:30:07]Write i2c OK [10:30:07]MH_I2C_Read... [10:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:07]Read from MH i2c: E2 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: E2 0E 00 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: E2 0E 00 A5 21 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 4A [10:30:07]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:30:07]wFMCommunicate OK [10:30:07]SAM_PROTO_GetShiftState done [10:30:07]FM_GetShiftState done [10:30:07]req_shift_opened done [10:30:07]requested_item shift.open_date is exist - process it [10:30:07]req_shift_open_date [10:30:07]req_shift_open_date done [10:30:07]produce_requested_data done [10:30:07]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123541,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [10:30:07]process_action_free close_receipt [10:30:07]json_value_free [10:30:07]json_value_free done [10:30:07]process_json_proto returns [10:30:07]Send response to host [10:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123541,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [10:30:07]free response buf [10:30:07]execute_script done [10:30:07]execute_script returns [10:30:07]free content buf [10:30:07]Sock 9.Close socket [10:30:07]Sock 9.Thread stoped [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:36]accept exits with 8 [10:31:36]New connection [10:31:36]New thread 3066719588 created [10:31:36]Thread 3066862948 joined [10:31:36]Waiting for new connection... [10:31:36] Sock 8.Parse request [10:31:36]Sock 8.Check first char [10:31:36]Sock 8.First char is OK [10:31:36]request: POST /json_proto HTTP/1.0 [10:31:36]Method: POST [10:31:36]URL: /json_proto [10:31:36]Method is POST - this is cgi request [10:31:36]url: /json_proto [10:31:36]query_string will be loaded in cgi processing [10:31:36]execute_cgi json_proto POST (null) [10:31:36]execute_cgi path=json_proto method=POST [10:31:36]POST find Content-Length [10:31:36]Host: 172.17.37.4:8080 [10:31:36]Content-Length: 682 [10:31:36]Content-Type: application/json [10:31:36] [10:31:36]POST finish read [10:31:36]Found Content-Length = 682 [10:31:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718379", "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" : 29.680, "sum" : 2000.43, "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" ] } } [10:31:36]execute_script... [10:31: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)718379", "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" : 29.680, "sum" : 2000.43, "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" ] } } [10:31:36]POST & json_proto [10:31:36]process_json_proto [10:31:36]json parsed OK: [10:31:36]protocol is kg_v1.0 [10:31:36]action value=close_receipt [10:31:36]process_action close_receipt [10:31:36]cmd_close_receipt [10:31:36]MH_GetDate [10:31:36]Write to MH i2c: F0 00 00 A6 21 B6 [10:31:36]Write i2c OK [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: F0 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: F0 09 00 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: F0 09 00 A6 21 00 8D 46 48 67 1D 3A 47 67 46 [10:31:36]GetLastDocTimeStamp 1732789807 [10:31:36]current date 1732789901 [10:31:36]FM_GetShiftState [10:31:36]SAM_PROTO_GetShiftState [10:31:36]wFMCommunicate request_size=4 [10:31:36]MH_SAM_APDU [10:31:36]CAPDU: 80 13 01 00 [10:31:36]Write to MH i2c: E2 08 00 A7 21 80 13 01 00 00 00 00 00 45 [10:31:36]Write i2c OK [10:31:36]MH_I2C_Read... [10:31:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:36]Read from MH i2c: E2 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 0E 00 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 0E 00 A7 21 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 4C [10:31:36]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:31:36]wFMCommunicate OK [10:31:36]SAM_PROTO_GetShiftState done [10:31:36]FM_GetShiftState done [10:31:36]opened in 1732752282 [10:31:36]opened+sec_in_day 1732838682 [10:31:36]quantity*price = 200043 [10:31:36]sum+1 = 200044 [10:31:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 54 28.11.2024 10:31 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123542 ФПД: 154486699768136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T103141&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123542&fm=154486699768136&tin=02508201610067®Number=0000000000092681&sum=200000 [10:31:38]StoreToDocumentArchive [10:31:38]shift 559 fd 123542 [10:31:38]save to /storage/0559/doc_00123542 [10:31:38]save last doc name /storage/0559/doc_00123542 to /storage/kkm_last_doc_name [10:31:38]save OK [10:31:38]Clear old archive folders... [10:31:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:38]tlvbuf is 014E0D10 [10:31:38]SAM_PROTO_ClearQueue [10:31:38]wFMCommunicate request_size=4 [10:31:38]MH_SAM_APDU [10:31:38]CAPDU: 80 09 00 00 [10:31:38]Write to MH i2c: E2 08 00 B4 21 80 09 00 00 00 00 00 00 47 [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:38]Read from MH i2c: E2 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 03 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 03 00 B4 21 00 90 00 49 [10:31:38]RAPDU: 90 00 [10:31:38]wFMCommunicate OK [10:31:38]SAM_PROTO_ClearQueue done [10:31:38]KKMCreateOFDPacket [10:31:38]OFDProtocolAddRootSTLVToBuf [10:31:38]FM_MakeSignedData [10:31:38]FM_MakeSignedData [10:31:38]SAM_PROTO_SignData [10:31:38]wFMCommunicate request_size=4 [10:31:38]MH_SAM_APDU [10:31:38]CAPDU: 80 0D 01 02 [10:31:38]Write to MH i2c: E2 08 00 B5 21 80 0D 01 02 00 00 00 00 4F [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:38]Read from MH i2c: E2 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 03 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 03 00 B5 21 00 90 00 4A [10:31:38]RAPDU: 90 00 [10:31:38]wFMCommunicate OK [10:31:38]wFMCommunicate request_size=255 [10:31:38]MH_SAM_APDU [10:31: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 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 8D 46 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8C [10:31:38]Write to MH i2c: E2 02 01 B6 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 8D 46 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8C 00 00 74 [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:38]Read from MH i2c: E2 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 03 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 03 00 B6 21 00 90 00 4B [10:31:38]RAPDU: 90 00 [10:31:38]wFMCommunicate OK [10:31:38]wFMCommunicate request_size=10 [10:31:38]MH_SAM_APDU [10:31:38]CAPDU: 80 0D 02 02 05 81 3C DC B9 48 [10:31:38]Write to MH i2c: E2 0D 00 B7 21 80 0D 02 02 05 00 81 3C DC B9 48 00 00 F6 [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:38]Read from MH i2c: E2 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 03 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 03 00 B7 21 00 90 00 4C [10:31:38]RAPDU: 90 00 [10:31:38]wFMCommunicate OK [10:31:38]wFMCommunicate request_size=4 [10:31:38]MH_SAM_APDU [10:31:38]CAPDU: 80 0D 03 02 [10:31:38]Write to MH i2c: E2 08 00 B8 21 80 0D 03 02 00 00 00 00 54 [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:38]Read from MH i2c: E2 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 0B 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 0B 00 B8 21 00 95 C5 CA 74 99 8C EB 98 90 00 95 [10:31:38]RAPDU: 95 C5 CA 74 99 8C EB 98 90 00 [10:31:38]wFMCommunicate OK [10:31:38]SAM_PROTO_SignData done [10:31:38]FM_MakeSignedData done [10:31:38]CreateOFDProtocolMessage [10:31:38]wFMCommunicate request_size=4 [10:31:38]MH_SAM_APDU [10:31:38]CAPDU: 80 11 00 00 [10:31:38]Write to MH i2c: E2 08 00 B9 21 80 11 00 00 00 00 00 00 54 [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:38]Read from MH i2c: E2 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 17 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 17 00 B9 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AB [10:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:31:38]wFMCommunicate OK [10:31:38]CreateOFDProtocolMessage done [10:31:38]OFDSenderStorePacket 123542 [10:31:38]StoreOFDPacket docnum=123542 [10:31: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 F8 DA 07 01 A2 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 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 8D 46 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8C 81 3C DC B9 48 95 C5 CA 74 99 8C EB 98 [10:31:38]CheckFolder [10:31:38]dirname=/storage/ofd_packets [10:31:38]CheckFolder done [10:31:38]ProducePacketName [10:31:38]name=ofd_packets/00123542 [10:31:38]NVStorageSaveData ofd_packets/00123542 [10:31:38]File name is /storage/ofd_packets/00123542 [10:31:38]Write 301 bytes [10:31:38]NVStorageSaveData done [10:31:38]OFDSenderStorePacket done [10:31:38]KKMCreateOFDPacket done [10:31:38]NVStorageSaveData kkm_last_timestamp [10:31:38]File name is /storage/kkm_last_timestamp [10:31:38]Write 4 bytes [10:31:38]NVStorageSaveData done [10:31:38]ExternCall_PrintAddStr [10:31:38]wPrintStart [10:31:38]Write to MH i2c: 01 00 00 BA 21 DB [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: 01 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: 01 07 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: 01 07 00 BA 21 00 00 00 00 00 FF 0F F0 [10:31:38]RasterBufferAndPrint [10:31:38]line Счет N : (1)718379 [10:31:38]line ИНН: 02508201610067 [10:31:38]line Контрольно-Кассовый Чек [10:31:38]line ПРОДАЖА [10:31:38]line ТРК (МРК, ГНК) : 32 [10:31:38]line Товар: 2710124130 [10:31:38]line Аи-92-К-4 [10:31:38]line 29.680 * 67.40 [10:31:38]line = 2000.43 [10:31:38]line НДС 12% НСП 1% [10:31:38]line > о реализуемом товаре [10:31:38]line ОКРУГЛЕНИЕ: -0.43 [10:31:38]line ИТОГО: 2000.00 [10:31:38]line Внесено: 2000.00 [10:31:38]line СДАЧА: 0.00 [10:31:38]line НСП 1% : 17.70 [10:31:38]line НДС 12% : 212.43 [10:31:38]line Наличными: 2000.00 [10:31:38]line Безнал.: 0.00 [10:31:38]line Место: АЗС № 64 "Партнер Нефть" [10:31:38]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:31:38]line СНО: Общий режим [10:31:38]line Чек 54 28.11.2024 10:31 [10:31:38]line Смена: 559 ФФД: 1.0 [10:31:38]line ЗНМ: 0300000033 [10:31:38]line РНМ: 0000000000092681 [10:31:38]line Версия ККМ: 001 [10:31:38]line ФМ: 0000000000874881 [10:31:38]line ФД: 123542 [10:31:38]line ФПД: 154486699768136 [10:31:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T103141&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123542&fm=154486699768136&tin=02508201610067®Number=0000000000092681&sum=200000 [10:31:38]OFD Sender: Processing packet 123542 [packets to send 7, broken 6] [10:31:38]ProducePacketName [10:31:38]name=ofd_packets/00123542 [10:31:38]OFD Sender: To server: pG, [10:31:38]CommunicateWithHost lk.salyk.kg:30040 [10:31:38]ConnectInit lk.salyk.kg [10:31:38]written 0, free lines is 4095 [10:31:38]Connected sock=10 [10:31: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 F8 DA 07 01 A2 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 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 8D 46 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8C 81 3C DC B9 48 95 C5 CA 74 99 8C EB 98 [10:31: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 D0 98 47 00 09 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 96 E2 01 00 F4 03 04 00 53 F2 47 67 B6 04 01 00 00 91 37 70 7F 91 CD 23 C7 [10:31:39]CommunicateWithHost err = 0 [10:31:39]CheckOFDResponse [10:31:39]1017 (14) - 77093643461234 [10:31:39]1041 (16) - 0000000000874881 [10:31:39]1040 (4) - 123542 [10:31:39]1012 (4) - 28.11.2024 04:32 [10:31:39]1206 (1) - 0 [10:31:39]OFD Sender: Remove packet 123542 [10:31:39]ProducePacketName [10:31:39]name=ofd_packets/00123542 [10:31:39]NVStorageDeleteData [10:31:39]Write to MH i2c: 01 00 00 E5 21 06 [10:31:39]Write i2c OK [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: 01 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: 01 07 00 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: 01 07 00 E5 21 00 00 00 00 00 4A 0C 63 [10:31:39]RasterBufferAndPrint [10:31:39]line [10:31:39]line [10:31:39]line [10:31:39]line [10:31:39]line [10:31:39]written 0, free lines is 3150 [10:31:39]MH_Cut [10:31:39]Write to MH i2c: D1 01 00 EC 21 01 DF [10:31:39]Write i2c OK [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: D1 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: D1 01 00 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: D1 01 00 EC 21 00 DE [10:31:39]Write to MH i2c: 01 00 00 ED 21 0E [10:31:39]Write i2c OK [10:31:39]MH_I2C_Read... [10:31:39]OFD Sender: No OFD packet to send [10:31:40]*** Cut start [10:31:40]*** Partial cut [10:31:40]*** CUTSNS_PIN = 1 [10:31:40]*** CUTSNS_PIN = 0 [10:31:41]*** Brake cut motor [10:31:41]Read from MH i2c: 01 [10:31:41]MH_I2C_Read... [10:31:41]*** Stop cut motor [10:31:41]*** Cut end [10:31:41]Read from MH i2c: 01 07 00 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: 01 07 00 ED 21 00 00 00 00 00 FF 0F 23 [10:31:41]process_action close_receipt done [10:31:41]requested_data is exist [10:31:41]produce_requested_data [10:31:41]requested_item fm.sn is exist - process it [10:31:41]wFMCommunicate request_size=4 [10:31:41]MH_SAM_APDU [10:31:41]CAPDU: 80 11 00 00 [10:31:41]Write to MH i2c: E2 08 00 EE 21 80 11 00 00 00 00 00 00 89 [10:31:41]Write i2c OK [10:31:41]MH_I2C_Read... [10:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:41]Read from MH i2c: E2 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 17 00 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 17 00 EE 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E0 [10:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:31:41]wFMCommunicate OK [10:31:41]requested_item fd.num is exist - process it [10:31:41]SAM_PROTO_GetFieldsCounters [10:31:41]wFMCommunicate request_size=4 [10:31:41]MH_SAM_APDU [10:31:41]CAPDU: 80 13 00 00 [10:31:41]Write to MH i2c: E2 08 00 EF 21 80 13 00 00 00 00 00 00 8C [10:31:41]Write i2c OK [10:31:41]MH_I2C_Read... [10:31:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:41]Read from MH i2c: E2 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 62 00 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 62 00 EF 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 FE [10:31: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 96 E2 01 00 0E 04 04 00 2F 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 [10:31:41]wFMCommunicate OK [10:31:41]SAM_PROTO_GetFieldsCounters done [10:31:41]requested_item shift.num is exist - process it [10:31:41]requested_item shift.opened is exist - process it [10:31:41]req_shift_opened [10:31:41]FM_GetShiftState [10:31:41]SAM_PROTO_GetShiftState [10:31:41]wFMCommunicate request_size=4 [10:31:41]MH_SAM_APDU [10:31:41]CAPDU: 80 13 01 00 [10:31:41]Write to MH i2c: E2 08 00 F0 21 80 13 01 00 00 00 00 00 8E [10:31:41]Write i2c OK [10:31:41]MH_I2C_Read... [10:31:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:41]Read from MH i2c: E2 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 0E 00 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 0E 00 F0 21 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 95 [10:31:41]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:31:41]wFMCommunicate OK [10:31:41]SAM_PROTO_GetShiftState done [10:31:41]FM_GetShiftState done [10:31:41]req_shift_opened done [10:31:41]requested_item shift.open_date is exist - process it [10:31:41]req_shift_open_date [10:31:41]req_shift_open_date done [10:31:41]produce_requested_data done [10:31:41]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123542,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [10:31:41]process_action_free close_receipt [10:31:41]json_value_free [10:31:41]json_value_free done [10:31:41]process_json_proto returns [10:31:41]Send response to host [10:31:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123542,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [10:31:41]free response buf [10:31:41]execute_script done [10:31:41]execute_script returns [10:31:41]free content buf [10:31:41]Sock 8.Close socket [10:31:41]Sock 8.Thread stoped [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36: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:38:00]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:34]accept exits with 9 [10:38:34]New connection [10:38:34]New thread 3066862948 created [10:38:34]Thread 3066719588 joined [10:38:34]Waiting for new connection... [10:38:34] Sock 9.Parse request [10:38:34]Sock 9.Check first char [10:38:34]Sock 9.First char is OK [10:38:34]request: POST /json_proto HTTP/1.0 [10:38:34]Method: POST [10:38:34]URL: /json_proto [10:38:34]Method is POST - this is cgi request [10:38:34]url: /json_proto [10:38:34]query_string will be loaded in cgi processing [10:38:34]execute_cgi json_proto POST (null) [10:38:34]execute_cgi path=json_proto method=POST [10:38:34]POST find Content-Length [10:38:34]Host: 172.17.37.4:8080 [10:38:34]Content-Length: 677 [10:38:34]Content-Type: application/json [10:38:34] [10:38:34]POST finish read [10:38:34]Found Content-Length = 677 [10:38:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718381", "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.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" ] } } [10:38:34]execute_script... [10: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)718381", "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.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" ] } } [10:38:34]POST & json_proto [10:38:34]process_json_proto [10:38:34]json parsed OK: [10:38:34]protocol is kg_v1.0 [10:38:34]action value=close_receipt [10:38:34]process_action close_receipt [10:38:34]cmd_close_receipt [10:38:34]MH_GetDate [10:38:34]Write to MH i2c: F0 00 00 F1 21 01 [10:38:34]Write i2c OK [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: F0 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: F0 09 00 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: F0 09 00 F1 21 00 2F 48 48 67 1D 3A 47 67 35 [10:38:34]GetLastDocTimeStamp 1732789901 [10:38:34]current date 1732790319 [10:38:34]FM_GetShiftState [10:38:34]SAM_PROTO_GetShiftState [10:38:34]wFMCommunicate request_size=4 [10:38:34]MH_SAM_APDU [10:38:34]CAPDU: 80 13 01 00 [10:38:34]Write to MH i2c: E2 08 00 F2 21 80 13 01 00 00 00 00 00 90 [10:38:34]Write i2c OK [10:38:34]MH_I2C_Read... [10:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:34]Read from MH i2c: E2 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: E2 0E 00 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: E2 0E 00 F2 21 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 97 [10:38:34]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:38:34]wFMCommunicate OK [10:38:34]SAM_PROTO_GetShiftState done [10:38:34]FM_GetShiftState done [10:38:34]opened in 1732752282 [10:38:34]opened+sec_in_day 1732838682 [10:38:34]quantity*price = 35048 [10:38:34]sum+1 = 35049 [10:38:34]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 СНО: Общий режим Чек 55 28.11.2024 10:38 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123543 ФПД: 196994267370836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T103839&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123543&fm=196994267370836&tin=02508201610067®Number=0000000000092681&sum=35000 [10:38:35]StoreToDocumentArchive [10:38:35]shift 559 fd 123543 [10:38:35]save to /storage/0559/doc_00123543 [10:38:35]save last doc name /storage/0559/doc_00123543 to /storage/kkm_last_doc_name [10:38:35]save OK [10:38:35]Clear old archive folders... [10:38:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:35]tlvbuf is 014FC500 [10:38:35]SAM_PROTO_ClearQueue [10:38:35]wFMCommunicate request_size=4 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 09 00 00 [10:38:35]Write to MH i2c: E2 08 00 FF 21 80 09 00 00 00 00 00 00 92 [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 FF 21 00 90 00 94 [10:38:35]RAPDU: 90 00 [10:38:35]wFMCommunicate OK [10:38:35]SAM_PROTO_ClearQueue done [10:38:35]KKMCreateOFDPacket [10:38:35]OFDProtocolAddRootSTLVToBuf [10:38:35]FM_MakeSignedData [10:38:35]FM_MakeSignedData [10:38:35]SAM_PROTO_SignData [10:38:35]wFMCommunicate request_size=4 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 0D 01 02 [10:38:35]Write to MH i2c: E2 08 00 00 22 80 0D 01 02 00 00 00 00 9B [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 00 22 00 90 00 96 [10:38:36]RAPDU: 90 00 [10:38:36]wFMCommunicate OK [10:38:36]wFMCommunicate request_size=255 [10:38:36]MH_SAM_APDU [10:38: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 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 37 00 00 00 F4 03 04 00 2F 48 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B3 [10:38:36]Write to MH i2c: E2 02 01 01 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 37 00 00 00 F4 03 04 00 2F 48 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B3 00 00 F5 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 01 22 00 90 00 97 [10:38:36]RAPDU: 90 00 [10:38:36]wFMCommunicate OK [10:38:36]wFMCommunicate request_size=10 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 0D 02 02 05 2A 4D 54 55 54 [10:38:36]Write to MH i2c: E2 0D 00 02 22 80 0D 02 02 05 00 2A 4D 54 55 54 00 00 1C [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 02 22 00 90 00 98 [10:38:36]RAPDU: 90 00 [10:38:36]wFMCommunicate OK [10:38:36]wFMCommunicate request_size=4 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 0D 03 02 [10:38:36]Write to MH i2c: E2 08 00 03 22 80 0D 03 02 00 00 00 00 A0 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 0B 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 0B 00 03 22 00 91 D3 25 D9 A2 7C F4 31 90 00 46 [10:38:36]RAPDU: 91 D3 25 D9 A2 7C F4 31 90 00 [10:38:36]wFMCommunicate OK [10:38:36]SAM_PROTO_SignData done [10:38:36]FM_MakeSignedData done [10:38:36]CreateOFDProtocolMessage [10:38:36]wFMCommunicate request_size=4 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 11 00 00 [10:38:36]Write to MH i2c: E2 08 00 04 22 80 11 00 00 00 00 00 00 A0 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 17 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 17 00 04 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F7 [10:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:38:36]wFMCommunicate OK [10:38:36]CreateOFDProtocolMessage done [10:38:36]OFDSenderStorePacket 123543 [10:38:36]StoreOFDPacket docnum=123543 [10:38: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 93 A0 07 01 4E 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 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 37 00 00 00 F4 03 04 00 2F 48 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B3 2A 4D 54 55 54 91 D3 25 D9 A2 7C F4 31 [10:38:36]CheckFolder [10:38:36]dirname=/storage/ofd_packets [10:38:36]CheckFolder done [10:38:36]ProducePacketName [10:38:36]name=ofd_packets/00123543 [10:38:36]NVStorageSaveData ofd_packets/00123543 [10:38:36]File name is /storage/ofd_packets/00123543 [10:38:36]Write 301 bytes [10:38:36]NVStorageSaveData done [10:38:36]OFDSenderStorePacket done [10:38:36]KKMCreateOFDPacket done [10:38:36]NVStorageSaveData kkm_last_timestamp [10:38:36]File name is /storage/kkm_last_timestamp [10:38:36]Write 4 bytes [10:38:36]NVStorageSaveData done [10:38:36]ExternCall_PrintAddStr [10:38:36]wPrintStart [10:38:36]Write to MH i2c: 01 00 00 05 22 27 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 07 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 07 00 05 22 00 00 00 00 00 FF 0F 3C [10:38:36]RasterBufferAndPrint [10:38:36]line Счет N : (1)718381 [10:38:36]line ИНН: 02508201610067 [10:38:36]line Контрольно-Кассовый Чек [10:38:36]line ПРОДАЖА [10:38:36]line ТРК (МРК, ГНК) : 42 [10:38:36]line Товар: 2710124130 [10:38:36]line Аи-92-К-4 [10:38:36]line 5.200 * 67.40 [10:38:36]line = 350.48 [10:38:36]line НДС 12% НСП 1% [10:38:36]line > о реализуемом товаре [10:38:36]line ОКРУГЛЕНИЕ: -0.48 [10:38:36]line ИТОГО: 350.00 [10:38:36]line Внесено: 350.00 [10:38:36]line СДАЧА: 0.00 [10:38:36]line НСП 1% : 3.10 [10:38:36]line НДС 12% : 37.22 [10:38:36]line Наличными: 350.00 [10:38:36]line Безнал.: 0.00 [10:38:36]line Место: АЗС № 64 "Партнер Нефть" [10:38:36]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:38:36]line СНО: Общий режим [10:38:36]line Чек 55 28.11.2024 10:38 [10:38:36]line Смена: 559 ФФД: 1.0 [10:38:36]line ЗНМ: 0300000033 [10:38:36]line РНМ: 0000000000092681 [10:38:36]line Версия ККМ: 001 [10:38:36]line ФМ: 0000000000874881 [10:38:36]line ФД: 123543 [10:38:36]line ФПД: 196994267370836 [10:38:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T103839&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123543&fm=196994267370836&tin=02508201610067®Number=0000000000092681&sum=35000 [10:38:36]OFD Sender: Processing packet 123543 [packets to send 7, broken 6] [10:38:36]ProducePacketName [10:38:36]name=ofd_packets/00123543 [10:38:36]OFD Sender: To server: pG, [10:38:36]CommunicateWithHost lk.salyk.kg:30040 [10:38:36]ConnectInit lk.salyk.kg [10:38:36]written 0, free lines is 4095 [10:38:36]Connected sock=10 [10: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 0F 01 00 00 93 A0 07 01 4E 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 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 37 00 00 00 F4 03 04 00 2F 48 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B3 2A 4D 54 55 54 91 D3 25 D9 A2 7C F4 31 [10:38: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 B5 DF 47 00 73 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 E2 01 00 F4 03 04 00 F5 F3 47 67 B6 04 01 00 00 66 64 C4 D2 07 0D 83 7C [10:38:37]CommunicateWithHost err = 0 [10:38:37]CheckOFDResponse [10:38:37]1017 (14) - 77093643461234 [10:38:37]1041 (16) - 0000000000874881 [10:38:37]1040 (4) - 123543 [10:38:37]1012 (4) - 28.11.2024 04:39 [10:38:37]1206 (1) - 0 [10:38:37]OFD Sender: Remove packet 123543 [10:38:37]ProducePacketName [10:38:37]name=ofd_packets/00123543 [10:38:37]NVStorageDeleteData [10:38:37]Write to MH i2c: 01 00 00 30 22 52 [10:38:37]Write i2c OK [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: 01 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: 01 07 00 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: 01 07 00 30 22 00 00 00 00 00 50 0C B5 [10:38:37]RasterBufferAndPrint [10:38:37]line [10:38:37]line [10:38:37]line [10:38:37]line [10:38:37]line [10:38:37]written 0, free lines is 3154 [10:38:37]MH_Cut [10:38:37]Write to MH i2c: D1 01 00 37 22 01 2B [10:38:37]Write i2c OK [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: D1 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: D1 01 00 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: D1 01 00 37 22 00 2A [10:38:37]Write to MH i2c: 01 00 00 38 22 5A [10:38:37]Write i2c OK [10:38:37]MH_I2C_Read... [10:38:37]OFD Sender: No OFD packet to send [10:38:38]*** Cut start [10:38:38]*** Partial cut [10:38:38]*** CUTSNS_PIN = 1 [10:38:38]*** CUTSNS_PIN = 0 [10:38:38]*** Brake cut motor [10:38:39]Read from MH i2c: 01 [10:38:39]MH_I2C_Read... [10:38:39]*** Stop cut motor [10:38:39]*** Cut end [10:38:39]Read from MH i2c: 01 07 00 [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: 01 07 00 38 22 00 00 00 00 00 FF 0F 6F [10:38:39]process_action close_receipt done [10:38:39]requested_data is exist [10:38:39]produce_requested_data [10:38:39]requested_item fm.sn is exist - process it [10:38:39]wFMCommunicate request_size=4 [10:38:39]MH_SAM_APDU [10:38:39]CAPDU: 80 11 00 00 [10:38:39]Write to MH i2c: E2 08 00 39 22 80 11 00 00 00 00 00 00 D5 [10:38:39]Write i2c OK [10:38:39]MH_I2C_Read... [10:38:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:39]Read from MH i2c: E2 [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: E2 17 00 [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: E2 17 00 39 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2C [10:38: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:38:39]wFMCommunicate OK [10:38:39]requested_item fd.num is exist - process it [10:38:39]SAM_PROTO_GetFieldsCounters [10:38:39]wFMCommunicate request_size=4 [10:38:39]MH_SAM_APDU [10:38:39]CAPDU: 80 13 00 00 [10:38:39]Write to MH i2c: E2 08 00 3A 22 80 13 00 00 00 00 00 00 D8 [10:38:39]Write i2c OK [10:38:39]MH_I2C_Read... [10:38:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:39]Read from MH i2c: E2 [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: E2 62 00 [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: E2 62 00 3A 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 4E [10:38: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 97 E2 01 00 0E 04 04 00 2F 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 [10:38:39]wFMCommunicate OK [10:38:39]SAM_PROTO_GetFieldsCounters done [10:38:39]requested_item shift.num is exist - process it [10:38:39]requested_item shift.opened is exist - process it [10:38:39]req_shift_opened [10:38:39]FM_GetShiftState [10:38:39]SAM_PROTO_GetShiftState [10:38:39]wFMCommunicate request_size=4 [10:38:39]MH_SAM_APDU [10:38:39]CAPDU: 80 13 01 00 [10:38:39]Write to MH i2c: E2 08 00 3B 22 80 13 01 00 00 00 00 00 DA [10:38:39]Write i2c OK [10:38:39]MH_I2C_Read... [10:38:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:39]Read from MH i2c: E2 [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: E2 0E 00 [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: E2 0E 00 3B 22 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 E1 [10:38:39]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:38:39]wFMCommunicate OK [10:38:39]SAM_PROTO_GetShiftState done [10:38:39]FM_GetShiftState done [10:38:39]req_shift_opened done [10:38:39]requested_item shift.open_date is exist - process it [10:38:39]req_shift_open_date [10:38:39]req_shift_open_date done [10:38:39]produce_requested_data done [10:38:39]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123543,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [10:38:39]process_action_free close_receipt [10:38:39]json_value_free [10:38:39]json_value_free done [10:38:39]process_json_proto returns [10:38:39]Send response to host [10:38:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123543,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [10:38:39]free response buf [10:38:39]execute_script done [10:38:39]execute_script returns [10:38:39]free content buf [10:38:39]Sock 9.Close socket [10:38:39]Sock 9.Thread stoped [10:38:39]accept exits with 8 [10:38:39]New connection [10:38:39]New thread 3066719588 created [10:38:39]Thread 3066862948 joined [10:38:39]Waiting for new connection... [10:38:39] Sock 8.Parse request [10:38:39]Sock 8.Check first char [10:38:39]Sock 8.First char is OK [10:38:39]request: POST /json_proto HTTP/1.0 [10:38:39]Method: POST [10:38:39]URL: /json_proto [10:38:39]Method is POST - this is cgi request [10:38:39]url: /json_proto [10:38:39]query_string will be loaded in cgi processing [10:38:39]execute_cgi json_proto POST (null) [10:38:39]execute_cgi path=json_proto method=POST [10:38:39]POST find Content-Length [10:38:39]Host: 172.17.37.4:8080 [10:38:39]Content-Length: 800 [10:38:39]Content-Type: application/json [10:38:39] [10:38:39]POST finish read [10:38:39]Found Content-Length = 800 [10:38:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718380", "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" : 6.680, "sum" : 450.23, "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" : 450.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:39]execute_script... [10:38: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)718380", "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" : 6.680, "sum" : 450.23, "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" : 450.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:39]POST & json_proto [10:38:39]process_json_proto [10:38:39]json parsed OK: [10:38:39]protocol is kg_v1.0 [10:38:39]action value=close_receipt [10:38:39]process_action close_receipt [10:38:39]cmd_close_receipt [10:38:39]MH_GetDate [10:38:39]Write to MH i2c: F0 00 00 3C 22 4D [10:38:39]Write i2c OK [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: F0 [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: F0 09 00 [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: F0 09 00 3C 22 00 34 48 48 67 1D 3A 47 67 86 [10:38:39]GetLastDocTimeStamp 1732790319 [10:38:39]current date 1732790324 [10:38:39]FM_GetShiftState [10:38:39]SAM_PROTO_GetShiftState [10:38:39]wFMCommunicate request_size=4 [10:38:39]MH_SAM_APDU [10:38:39]CAPDU: 80 13 01 00 [10:38:39]Write to MH i2c: E2 08 00 3D 22 80 13 01 00 00 00 00 00 DC [10:38:39]Write i2c OK [10:38:39]MH_I2C_Read... [10:38:40]Read from MH i2c: E2 [10:38:40]MH_I2C_Read... [10:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:40]Read from MH i2c: E2 0E 00 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: E2 0E 00 3D 22 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 E3 [10:38:40]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:38:40]wFMCommunicate OK [10:38:40]SAM_PROTO_GetShiftState done [10:38:40]FM_GetShiftState done [10:38:40]opened in 1732752282 [10:38:40]opened+sec_in_day 1732838682 [10:38:40]quantity*price = 45023 [10:38:40]sum+1 = 45024 [10:38:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.23 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 0.00 Безнал.: 450.23 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 56 28.11.2024 10:38 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123544 ФПД: 138387671143235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T103844&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123544&fm=138387671143235&tin=02508201610067®Number=0000000000092681&sum=45023 [10:38:41]StoreToDocumentArchive [10:38:41]shift 559 fd 123544 [10:38:41]save to /storage/0559/doc_00123544 [10:38:41]save last doc name /storage/0559/doc_00123544 to /storage/kkm_last_doc_name [10:38:41]save OK [10:38:41]Clear old archive folders... [10:38:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:41]tlvbuf is 014C6260 [10:38:41]SAM_PROTO_ClearQueue [10:38:41]wFMCommunicate request_size=4 [10:38:41]MH_SAM_APDU [10:38:41]CAPDU: 80 09 00 00 [10:38:41]Write to MH i2c: E2 08 00 4A 22 80 09 00 00 00 00 00 00 DE [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:41]Read from MH i2c: E2 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 4A 22 00 90 00 E0 [10:38:41]RAPDU: 90 00 [10:38:41]wFMCommunicate OK [10:38:41]SAM_PROTO_ClearQueue done [10:38:41]KKMCreateOFDPacket [10:38:41]OFDProtocolAddRootSTLVToBuf [10:38:41]FM_MakeSignedData [10:38:41]FM_MakeSignedData [10:38:41]SAM_PROTO_SignData [10:38:41]wFMCommunicate request_size=4 [10:38:41]MH_SAM_APDU [10:38:41]CAPDU: 80 0D 01 02 [10:38:41]Write to MH i2c: E2 08 00 4B 22 80 0D 01 02 00 00 00 00 E6 [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:41]Read from MH i2c: E2 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 4B 22 00 90 00 E1 [10:38:41]RAPDU: 90 00 [10:38:41]wFMCommunicate OK [10:38:41]wFMCommunicate request_size=255 [10:38:41]MH_SAM_APDU [10:38: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 18 1A 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 DF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DF AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DF AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 34 48 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 7D [10:38:41]Write to MH i2c: E2 02 01 4C 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 1A 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 DF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DF AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DF AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 34 48 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 7D 00 00 18 [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:41]Read from MH i2c: E2 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 4C 22 00 90 00 E2 [10:38:41]RAPDU: 90 00 [10:38:41]wFMCommunicate OK [10:38:41]wFMCommunicate request_size=10 [10:38:41]MH_SAM_APDU [10:38:41]CAPDU: 80 0D 02 02 05 DC E3 FA D3 43 [10:38:41]Write to MH i2c: E2 0D 00 4D 22 80 0D 02 02 05 00 DC E3 FA D3 43 00 00 C2 [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:41]Read from MH i2c: E2 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 4D 22 00 90 00 E3 [10:38:41]RAPDU: 90 00 [10:38:41]wFMCommunicate OK [10:38:41]wFMCommunicate request_size=4 [10:38:41]MH_SAM_APDU [10:38:41]CAPDU: 80 0D 03 02 [10:38:41]Write to MH i2c: E2 08 00 4E 22 80 0D 03 02 00 00 00 00 EB [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:41]Read from MH i2c: E2 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 0B 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 0B 00 4E 22 00 74 27 34 A4 85 53 03 55 90 00 8F [10:38:41]RAPDU: 74 27 34 A4 85 53 03 55 90 00 [10:38:41]wFMCommunicate OK [10:38:41]SAM_PROTO_SignData done [10:38:41]FM_MakeSignedData done [10:38:41]CreateOFDProtocolMessage [10:38:41]wFMCommunicate request_size=4 [10:38:41]MH_SAM_APDU [10:38:41]CAPDU: 80 11 00 00 [10:38:41]Write to MH i2c: E2 08 00 4F 22 80 11 00 00 00 00 00 00 EB [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:41]Read from MH i2c: E2 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 17 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 17 00 4F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 42 [10:38:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:38:41]wFMCommunicate OK [10:38:41]CreateOFDProtocolMessage done [10:38:41]OFDSenderStorePacket 123544 [10:38:41]StoreOFDPacket docnum=123544 [10:38: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 8A 3E 07 01 C4 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 18 1A 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 DF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DF AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DF AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 34 48 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 7D DC E3 FA D3 43 74 27 34 A4 85 53 03 55 [10:38:41]CheckFolder [10:38:41]dirname=/storage/ofd_packets [10:38:41]CheckFolder done [10:38:41]ProducePacketName [10:38:41]name=ofd_packets/00123544 [10:38:41]NVStorageSaveData ofd_packets/00123544 [10:38:41]File name is /storage/ofd_packets/00123544 [10:38:41]Write 301 bytes [10:38:41]NVStorageSaveData done [10:38:41]OFDSenderStorePacket done [10:38:41]KKMCreateOFDPacket done [10:38:41]NVStorageSaveData kkm_last_timestamp [10:38:41]File name is /storage/kkm_last_timestamp [10:38:41]Write 4 bytes [10:38:41]NVStorageSaveData done [10:38:41]ExternCall_PrintAddStr [10:38:41]wPrintStart [10:38:41]Write to MH i2c: 01 00 00 50 22 72 [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: 01 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: 01 07 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: 01 07 00 50 22 00 00 00 00 00 FF 0F 87 [10:38:41]RasterBufferAndPrint [10:38:41]line Счет N : (1)718380 [10:38:41]line ИНН: 02508201610067 [10:38:41]line Контрольно-Кассовый Чек [10:38:41]line ПРОДАЖА [10:38:41]line ТРК (МРК, ГНК) : 12 [10:38:41]line Товар: 2710124130 [10:38:41]line Аи-92-К-4 [10:38:42]line 6.680 * 67.40 [10:38:42]line = 450.23 [10:38:42]line НДС 12% НСП 1% [10:38:42]line > о реализуемом товаре [10:38:42]line ИТОГО: 450.23 [10:38:42]line НСП 1% : 3.98 [10:38:42]line НДС 12% : 47.81 [10:38:42]line Наличными: 0.00 [10:38:42]line Безнал.: 450.23 [10:38:42]line Место: АЗС № 64 "Партнер Нефть" [10:38:42]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:38:42]line СНО: Общий режим [10:38:42]line Чек 56 28.11.2024 10:38 [10:38:42]line Смена: 559 ФФД: 1.0 [10:38:42]line ЗНМ: 0300000033 [10:38:42]line РНМ: 0000000000092681 [10:38:42]line Версия ККМ: 001 [10:38:42]line Платежная система: O! деньги [10:38:42]line ФМ: 0000000000874881 [10:38:42]line ФД: 123544 [10:38:42]line ФПД: 138387671143235 [10:38:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T103844&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123544&fm=138387671143235&tin=02508201610067®Number=0000000000092681&sum=45023 [10:38:42]OFD Sender: Processing packet 123544 [packets to send 7, broken 6] [10:38:42]ProducePacketName [10:38:42]name=ofd_packets/00123544 [10:38:42]OFD Sender: To server: pG, [10:38:42]CommunicateWithHost lk.salyk.kg:30040 [10:38:42]ConnectInit lk.salyk.kg [10:38:42]written 0, free lines is 4095 [10:38:42]Connected sock=10 [10:38: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 8A 3E 07 01 C4 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 18 1A 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 DF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DF AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DF AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 34 48 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 7D DC E3 FA D3 43 74 27 34 A4 85 53 03 55 [10:38: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 EA 86 47 00 73 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 98 E2 01 00 F4 03 04 00 FB F3 47 67 B6 04 01 00 00 D2 BB 0E 34 EE 45 04 5F [10:38:42]CommunicateWithHost err = 0 [10:38:42]CheckOFDResponse [10:38:42]1017 (14) - 77093643461234 [10:38:42]1041 (16) - 0000000000874881 [10:38:42]1040 (4) - 123544 [10:38:42]1012 (4) - 28.11.2024 04:39 [10:38:42]1206 (1) - 0 [10:38:42]OFD Sender: Remove packet 123544 [10:38:42]ProducePacketName [10:38:42]name=ofd_packets/00123544 [10:38:42]NVStorageDeleteData [10:38:42]Write to MH i2c: 01 00 00 7A 22 9C [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: 01 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: 01 07 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: 01 07 00 7A 22 00 00 00 00 00 6E 0C 1D [10:38:42]RasterBufferAndPrint [10:38:42]line [10:38:42]line [10:38:42]line [10:38:42]line [10:38:42]line [10:38:42]written 0, free lines is 3189 [10:38:42]MH_Cut [10:38:42]Write to MH i2c: D1 01 00 81 22 01 75 [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: D1 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: D1 01 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: D1 01 00 81 22 00 74 [10:38:42]Write to MH i2c: 01 00 00 82 22 A4 [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:43]OFD Sender: No OFD packet to send [10:38:44]*** Cut start [10:38:44]*** Partial cut [10:38:44]*** CUTSNS_PIN = 1 [10:38:44]*** CUTSNS_PIN = 0 [10:38:44]*** Brake cut motor [10:38:44]Read from MH i2c: 01 [10:38:44]MH_I2C_Read... [10:38:44]*** Stop cut motor [10:38:44]*** Cut end [10:38:44]Read from MH i2c: 01 07 00 [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: 01 07 00 82 22 00 00 00 00 00 FF 0F B9 [10:38:44]process_action close_receipt done [10:38:44]requested_data is exist [10:38:44]produce_requested_data [10:38:44]requested_item fm.sn is exist - process it [10:38:44]wFMCommunicate request_size=4 [10:38:44]MH_SAM_APDU [10:38:44]CAPDU: 80 11 00 00 [10:38:44]Write to MH i2c: E2 08 00 83 22 80 11 00 00 00 00 00 00 1F [10:38:44]Write i2c OK [10:38:44]MH_I2C_Read... [10:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:44]Read from MH i2c: E2 [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: E2 17 00 [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: E2 17 00 83 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 76 [10:38: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:38:44]wFMCommunicate OK [10:38:44]requested_item fd.num is exist - process it [10:38:44]SAM_PROTO_GetFieldsCounters [10:38:44]wFMCommunicate request_size=4 [10:38:44]MH_SAM_APDU [10:38:44]CAPDU: 80 13 00 00 [10:38:44]Write to MH i2c: E2 08 00 84 22 80 13 00 00 00 00 00 00 22 [10:38:44]Write i2c OK [10:38:44]MH_I2C_Read... [10:38:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:44]Read from MH i2c: E2 [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: E2 62 00 [10:38:44]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 62 00 84 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 9C [10:38: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 98 E2 01 00 0E 04 04 00 2F 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 [10:38:45]wFMCommunicate OK [10:38:45]SAM_PROTO_GetFieldsCounters done [10:38:45]requested_item shift.num is exist - process it [10:38:45]requested_item shift.opened is exist - process it [10:38:45]req_shift_opened [10:38:45]FM_GetShiftState [10:38:45]SAM_PROTO_GetShiftState [10:38:45]wFMCommunicate request_size=4 [10:38:45]MH_SAM_APDU [10:38:45]CAPDU: 80 13 01 00 [10:38:45]Write to MH i2c: E2 08 00 85 22 80 13 01 00 00 00 00 00 24 [10:38:45]Write i2c OK [10:38:45]MH_I2C_Read... [10:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:45]Read from MH i2c: E2 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 0E 00 [10:38:45]MH_I2C_Read... [10:38:45]Read from MH i2c: E2 0E 00 85 22 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 2B [10:38:45]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:38:45]wFMCommunicate OK [10:38:45]SAM_PROTO_GetShiftState done [10:38:45]FM_GetShiftState done [10:38:45]req_shift_opened done [10:38:45]requested_item shift.open_date is exist - process it [10:38:45]req_shift_open_date [10:38:45]req_shift_open_date done [10:38:45]produce_requested_data done [10:38:45]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123544,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [10:38:45]process_action_free close_receipt [10:38:45]json_value_free [10:38:45]json_value_free done [10:38:45]process_json_proto returns [10:38:45]Send response to host [10:38:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123544,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [10:38:45]free response buf [10:38:45]execute_script done [10:38:45]execute_script returns [10:38:45]free content buf [10:38:45]Sock 8.Close socket [10:38:45]Sock 8.Thread stoped [10:38:48]OFD Sender: No OFD packet to send [10:38:53]OFD Sender: No OFD packet to send [10:38:58]OFD Sender: No OFD packet to send [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:13]OFD Sender: No OFD packet to send [10:39:18]OFD Sender: No OFD packet to send [10:39:23]OFD Sender: No OFD packet to send [10:39:28]OFD Sender: No OFD packet to send [10:39:33]OFD Sender: No OFD packet to send [10:39:38]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:58]OFD Sender: No OFD packet to send [10:40:03]OFD Sender: No OFD packet to send [10:40:08]OFD Sender: No OFD packet to send [10:40:13]OFD Sender: No OFD packet to send [10:40:18]OFD Sender: No OFD packet to send [10:40:23]OFD Sender: No OFD packet to send [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:43]OFD Sender: No OFD packet to send [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:56]accept exits with 9 [10:40:56]New connection [10:40:56]New thread 3066862948 created [10:40:56]Thread 3066719588 joined [10:40:56]Waiting for new connection... [10:40:56] Sock 9.Parse request [10:40:56]Sock 9.Check first char [10:40:56]Sock 9.First char is OK [10:40:56]request: POST /json_proto HTTP/1.0 [10:40:56]Method: POST [10:40:56]URL: /json_proto [10:40:56]Method is POST - this is cgi request [10:40:56]url: /json_proto [10:40:56]query_string will be loaded in cgi processing [10:40:56]execute_cgi json_proto POST (null) [10:40:56]execute_cgi path=json_proto method=POST [10:40:56]POST find Content-Length [10:40:56]Host: 172.17.37.4:8080 [10:40:56]Content-Length: 677 [10:40:56]Content-Type: application/json [10:40:56] [10:40:56]POST finish read [10:40:56]Found Content-Length = 677 [10:40:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718382", "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" ] } } [10:40:56]execute_script... [10:40: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)718382", "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" ] } } [10:40:56]POST & json_proto [10:40:56]process_json_proto [10:40:56]json parsed OK: [10:40:56]protocol is kg_v1.0 [10:40:56]action value=close_receipt [10:40:56]process_action close_receipt [10:40:56]cmd_close_receipt [10:40:56]MH_GetDate [10:40:56]Write to MH i2c: F0 00 00 86 22 97 [10:40:56]Write i2c OK [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: F0 [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: F0 09 00 [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: F0 09 00 86 22 00 BC 48 48 67 1D 3A 47 67 58 [10:40:56]GetLastDocTimeStamp 1732790324 [10:40:56]current date 1732790460 [10:40:56]FM_GetShiftState [10:40:56]SAM_PROTO_GetShiftState [10:40:56]wFMCommunicate request_size=4 [10:40:56]MH_SAM_APDU [10:40:56]CAPDU: 80 13 01 00 [10:40:56]Write to MH i2c: E2 08 00 87 22 80 13 01 00 00 00 00 00 26 [10:40:56]Write i2c OK [10:40:56]MH_I2C_Read... [10:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:56]Read from MH i2c: E2 [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: E2 0E 00 [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: E2 0E 00 87 22 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 2D [10:40:56]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:40:56]wFMCommunicate OK [10:40:56]SAM_PROTO_GetShiftState done [10:40:56]FM_GetShiftState done [10:40:56]opened in 1732752282 [10:40:56]opened+sec_in_day 1732838682 [10:40:56]quantity*price = 40035 [10:40:56]sum+1 = 40037 [10:40:56]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 СНО: Общий режим Чек 57 28.11.2024 10:41 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123545 ФПД: 118448878276757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T104101&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123545&fm=118448878276757&tin=02508201610067®Number=0000000000092681&sum=40000 [10:40:57]StoreToDocumentArchive [10:40:57]shift 559 fd 123545 [10:40:57]save to /storage/0559/doc_00123545 [10:40:57]save last doc name /storage/0559/doc_00123545 to /storage/kkm_last_doc_name [10:40:57]save OK [10:40:57]Clear old archive folders... [10:40:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:57]tlvbuf is 014812E0 [10:40:57]SAM_PROTO_ClearQueue [10:40:57]wFMCommunicate request_size=4 [10:40:57]MH_SAM_APDU [10:40:57]CAPDU: 80 09 00 00 [10:40:57]Write to MH i2c: E2 08 00 94 22 80 09 00 00 00 00 00 00 28 [10:40:57]Write i2c OK [10:40:57]MH_I2C_Read... [10:40:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:57]Read from MH i2c: E2 [10:40:57]MH_I2C_Read... [10:40:57]Read from MH i2c: E2 03 00 [10:40:57]MH_I2C_Read... [10:40:57]Read from MH i2c: E2 03 00 94 22 00 90 00 2A [10:40:57]RAPDU: 90 00 [10:40:57]wFMCommunicate OK [10:40:57]SAM_PROTO_ClearQueue done [10:40:57]KKMCreateOFDPacket [10:40:57]OFDProtocolAddRootSTLVToBuf [10:40:57]FM_MakeSignedData [10:40:57]FM_MakeSignedData [10:40:57]SAM_PROTO_SignData [10:40:57]wFMCommunicate request_size=4 [10:40:57]MH_SAM_APDU [10:40:57]CAPDU: 80 0D 01 02 [10:40:57]Write to MH i2c: E2 08 00 95 22 80 0D 01 02 00 00 00 00 30 [10:40:57]Write i2c OK [10:40:57]MH_I2C_Read... [10:40:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:57]Read from MH i2c: E2 [10:40:57]MH_I2C_Read... [10:40:57]Read from MH i2c: E2 03 00 [10:40:57]MH_I2C_Read... [10:40:57]Read from MH i2c: E2 03 00 95 22 00 90 00 2B [10:40:57]RAPDU: 90 00 [10:40:57]wFMCommunicate OK [10:40:57]wFMCommunicate request_size=255 [10:40:57]MH_SAM_APDU [10:40:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 39 00 00 00 F4 03 04 00 BD 48 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 6B [10:40:57]Write to MH i2c: E2 02 01 96 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 39 00 00 00 F4 03 04 00 BD 48 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 6B 00 00 C3 [10:40:57]Write i2c OK [10:40:57]MH_I2C_Read... [10:40:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:57]Read from MH i2c: E2 [10:40:57]MH_I2C_Read... [10:40:57]Read from MH i2c: E2 03 00 [10:40:57]MH_I2C_Read... [10:40:57]Read from MH i2c: E2 03 00 96 22 00 90 00 2C [10:40:57]RAPDU: 90 00 [10:40:57]wFMCommunicate OK [10:40:57]wFMCommunicate request_size=10 [10:40:57]MH_SAM_APDU [10:40:57]CAPDU: 80 0D 02 02 05 BA 87 50 50 95 [10:40:57]Write to MH i2c: E2 0D 00 97 22 80 0D 02 02 05 00 BA 87 50 50 95 00 00 B3 [10:40:57]Write i2c OK [10:40:57]MH_I2C_Read... [10:40:58]Read from MH i2c: E2 [10:40:58]MH_I2C_Read... [10:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:58]Read from MH i2c: E2 03 00 [10:40:58]MH_I2C_Read... [10:40:58]Read from MH i2c: E2 03 00 97 22 00 90 00 2D [10:40:58]RAPDU: 90 00 [10:40:58]wFMCommunicate OK [10:40:58]wFMCommunicate request_size=4 [10:40:58]MH_SAM_APDU [10:40:58]CAPDU: 80 0D 03 02 [10:40:58]Write to MH i2c: E2 08 00 98 22 80 0D 03 02 00 00 00 00 35 [10:40:58]Write i2c OK [10:40:58]MH_I2C_Read... [10:40:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:58]Read from MH i2c: E2 [10:40:58]MH_I2C_Read... [10:40:58]Read from MH i2c: E2 0B 00 [10:40:58]MH_I2C_Read... [10:40:58]Read from MH i2c: E2 0B 00 98 22 00 D6 79 B0 3C B1 9C C9 BE 90 00 45 [10:40:58]RAPDU: D6 79 B0 3C B1 9C C9 BE 90 00 [10:40:58]wFMCommunicate OK [10:40:58]SAM_PROTO_SignData done [10:40:58]FM_MakeSignedData done [10:40:58]CreateOFDProtocolMessage [10:40:58]wFMCommunicate request_size=4 [10:40:58]MH_SAM_APDU [10:40:58]CAPDU: 80 11 00 00 [10:40:58]Write to MH i2c: E2 08 00 99 22 80 11 00 00 00 00 00 00 35 [10:40:58]Write i2c OK [10:40:58]MH_I2C_Read... [10:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:58]Read from MH i2c: E2 [10:40:58]MH_I2C_Read... [10:40:58]Read from MH i2c: E2 17 00 [10:40:58]MH_I2C_Read... [10:40:58]Read from MH i2c: E2 17 00 99 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8C [10: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 [10:40:58]wFMCommunicate OK [10:40:58]CreateOFDProtocolMessage done [10:40:58]OFDSenderStorePacket 123545 [10:40:58]StoreOFDPacket docnum=123545 [10:40: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 15 2F 07 01 A2 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 F4 03 04 00 BD 48 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 6B BA 87 50 50 95 D6 79 B0 3C B1 9C C9 BE [10:40:58]CheckFolder [10:40:58]dirname=/storage/ofd_packets [10:40:58]CheckFolder done [10:40:58]ProducePacketName [10:40:58]name=ofd_packets/00123545 [10:40:58]NVStorageSaveData ofd_packets/00123545 [10:40:58]File name is /storage/ofd_packets/00123545 [10:40:58]Write 301 bytes [10:40:58]NVStorageSaveData done [10:40:58]OFDSenderStorePacket done [10:40:58]KKMCreateOFDPacket done [10:40:58]NVStorageSaveData kkm_last_timestamp [10:40:58]File name is /storage/kkm_last_timestamp [10:40:58]Write 4 bytes [10:40:58]NVStorageSaveData done [10:40:58]ExternCall_PrintAddStr [10:40:58]wPrintStart [10:40:58]Write to MH i2c: 01 00 00 9A 22 BC [10:40:58]Write i2c OK [10:40:58]MH_I2C_Read... [10:40:58]Read from MH i2c: 01 [10:40:58]MH_I2C_Read... [10:40:58]Read from MH i2c: 01 07 00 [10:40:58]MH_I2C_Read... [10:40:58]Read from MH i2c: 01 07 00 9A 22 00 00 00 00 00 FF 0F D1 [10:40:58]RasterBufferAndPrint [10:40:58]line Счет N : (1)718382 [10:40:58]line ИНН: 02508201610067 [10:40:58]line Контрольно-Кассовый Чек [10:40:58]line ПРОДАЖА [10:40:58]line ТРК (МРК, ГНК) : 32 [10:40:58]line Товар: 2710124130 [10:40:58]line Аи-92-К-4 [10:40:58]line 5.940 * 67.40 [10:40:58]line = 400.36 [10:40:58]line НДС 12% НСП 1% [10:40:58]line > о реализуемом товаре [10:40:58]line ОКРУГЛЕНИЕ: -0.36 [10:40:58]line ИТОГО: 400.00 [10:40:58]line Внесено: 400.00 [10:40:58]line СДАЧА: 0.00 [10:40:58]line НСП 1% : 3.54 [10:40:58]line НДС 12% : 42.52 [10:40:58]line Наличными: 400.00 [10:40:58]line Безнал.: 0.00 [10:40:58]line Место: АЗС № 64 "Партнер Нефть" [10:40:58]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:40:58]line СНО: Общий режим [10:40:58]line Чек 57 28.11.2024 10:41 [10:40:58]line Смена: 559 ФФД: 1.0 [10:40:58]line ЗНМ: 0300000033 [10:40:58]line РНМ: 0000000000092681 [10:40:58]line Версия ККМ: 001 [10:40:58]line ФМ: 0000000000874881 [10:40:58]line ФД: 123545 [10:40:58]line ФПД: 118448878276757 [10:40:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T104101&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123545&fm=118448878276757&tin=02508201610067®Number=0000000000092681&sum=40000 [10:40:58]OFD Sender: Processing packet 123545 [packets to send 7, broken 6] [10:40:58]ProducePacketName [10:40:58]name=ofd_packets/00123545 [10:40:58]OFD Sender: To server: pG, [10:40:58]CommunicateWithHost lk.salyk.kg:30040 [10:40:58]ConnectInit lk.salyk.kg [10:40:58]written 0, free lines is 4095 [10:40:58]Connected sock=10 [10:40: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 15 2F 07 01 A2 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 F4 03 04 00 BD 48 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 6B BA 87 50 50 95 D6 79 B0 3C B1 9C C9 BE [10:40: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 B2 0A 47 00 D0 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 99 E2 01 00 F4 03 04 00 83 F4 47 67 B6 04 01 00 00 26 48 F0 8A 17 23 8A 99 [10:40:58]CommunicateWithHost err = 0 [10:40:58]CheckOFDResponse [10:40:58]1017 (14) - 77093643461234 [10:40:58]1041 (16) - 0000000000874881 [10:40:58]1040 (4) - 123545 [10:40:58]1012 (4) - 28.11.2024 04:41 [10:40:58]1206 (1) - 0 [10:40:58]OFD Sender: Remove packet 123545 [10:40:58]ProducePacketName [10:40:58]name=ofd_packets/00123545 [10:40:58]NVStorageDeleteData [10:40:58]Write to MH i2c: 01 00 00 C5 22 E7 [10:40:58]Write i2c OK [10:40:58]MH_I2C_Read... [10:40:58]Read from MH i2c: 01 [10:40:58]MH_I2C_Read... [10:40:58]Read from MH i2c: 01 07 00 [10:40:58]MH_I2C_Read... [10:40:58]Read from MH i2c: 01 07 00 C5 22 00 00 00 00 00 58 0C 52 [10:40:58]RasterBufferAndPrint [10:40:58]line [10:40:58]line [10:40:58]line [10:40:58]line [10:40:58]line [10:40:58]written 0, free lines is 3164 [10:40:58]MH_Cut [10:40:58]Write to MH i2c: D1 01 00 CC 22 01 C0 [10:40:58]Write i2c OK [10:40:58]MH_I2C_Read... [10:40:58]Read from MH i2c: D1 [10:40:58]MH_I2C_Read... [10:40:58]Read from MH i2c: D1 01 00 [10:40:58]MH_I2C_Read... [10:40:58]Read from MH i2c: D1 01 00 CC 22 00 BF [10:40:58]Write to MH i2c: 01 00 00 CD 22 EF [10:40:58]Write i2c OK [10:40:58]MH_I2C_Read... [10:40:59]OFD Sender: No OFD packet to send [10:41:00]*** Cut start [10:41:00]*** Partial cut [10:41:00]*** CUTSNS_PIN = 1 [10:41:00]*** CUTSNS_PIN = 0 [10:41:00]*** Brake cut motor [10:41:00]Read from MH i2c: 01 [10:41:00]MH_I2C_Read... [10:41:00]*** Stop cut motor [10:41:00]*** Cut end [10:41:00]Read from MH i2c: 01 07 00 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: 01 07 00 CD 22 00 00 00 00 00 FF 0F 04 [10:41:00]process_action close_receipt done [10:41:00]requested_data is exist [10:41:00]produce_requested_data [10:41:00]requested_item fm.sn is exist - process it [10:41:00]wFMCommunicate request_size=4 [10:41:00]MH_SAM_APDU [10:41:00]CAPDU: 80 11 00 00 [10:41:00]Write to MH i2c: E2 08 00 CE 22 80 11 00 00 00 00 00 00 6A [10:41:00]Write i2c OK [10:41:00]MH_I2C_Read... [10:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:01]Read from MH i2c: E2 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: E2 17 00 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: E2 17 00 CE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C1 [10:41: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:41:01]wFMCommunicate OK [10:41:01]requested_item fd.num is exist - process it [10:41:01]SAM_PROTO_GetFieldsCounters [10:41:01]wFMCommunicate request_size=4 [10:41:01]MH_SAM_APDU [10:41:01]CAPDU: 80 13 00 00 [10:41:01]Write to MH i2c: E2 08 00 CF 22 80 13 00 00 00 00 00 00 6D [10:41:01]Write i2c OK [10:41:01]MH_I2C_Read... [10:41:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:01]Read from MH i2c: E2 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: E2 62 00 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: E2 62 00 CF 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 EB [10:41: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 99 E2 01 00 0E 04 04 00 2F 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 [10:41:01]wFMCommunicate OK [10:41:01]SAM_PROTO_GetFieldsCounters done [10:41:01]requested_item shift.num is exist - process it [10:41:01]requested_item shift.opened is exist - process it [10:41:01]req_shift_opened [10:41:01]FM_GetShiftState [10:41:01]SAM_PROTO_GetShiftState [10:41:01]wFMCommunicate request_size=4 [10:41:01]MH_SAM_APDU [10:41:01]CAPDU: 80 13 01 00 [10:41:01]Write to MH i2c: E2 08 00 D0 22 80 13 01 00 00 00 00 00 6F [10:41:01]Write i2c OK [10:41:01]MH_I2C_Read... [10:41:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:01]Read from MH i2c: E2 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: E2 0E 00 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: E2 0E 00 D0 22 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 76 [10:41:01]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:41:01]wFMCommunicate OK [10:41:01]SAM_PROTO_GetShiftState done [10:41:01]FM_GetShiftState done [10:41:01]req_shift_opened done [10:41:01]requested_item shift.open_date is exist - process it [10:41:01]req_shift_open_date [10:41:01]req_shift_open_date done [10:41:01]produce_requested_data done [10:41:01]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123545,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [10:41:01]process_action_free close_receipt [10:41:01]json_value_free [10:41:01]json_value_free done [10:41:01]process_json_proto returns [10:41:01]Send response to host [10:41:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123545,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [10:41:01]free response buf [10:41:01]execute_script done [10:41:01]execute_script returns [10:41:01]free content buf [10:41:01]Sock 9.Close socket [10:41:01]Sock 9.Thread stoped [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [10:46:49]OFD Sender: No OFD packet to send [10:46:54]OFD Sender: No OFD packet to send [10:46:59]OFD Sender: No OFD packet to send [10:47:04]OFD Sender: No OFD packet to send [10:47:09]OFD Sender: No OFD packet to send [10:47:14]OFD Sender: No OFD packet to send [10:47:19]OFD Sender: No OFD packet to send [10:47:24]OFD Sender: No OFD packet to send [10:47:29]OFD Sender: No OFD packet to send [10:47:34]OFD Sender: No OFD packet to send [10:47:39]OFD Sender: No OFD packet to send [10:47:44]OFD Sender: No OFD packet to send [10:47:49]OFD Sender: No OFD packet to send [10:47:54]OFD Sender: No OFD packet to send [10:47:59]OFD Sender: No OFD packet to send [10:48:04]OFD Sender: No OFD packet to send [10:48:09]OFD Sender: No OFD packet to send [10:48:14]OFD Sender: No OFD packet to send [10:48:19]OFD Sender: No OFD packet to send [10:48:24]OFD Sender: No OFD packet to send [10:48:29]OFD Sender: No OFD packet to send [10:48:34]OFD Sender: No OFD packet to send [10:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:03]accept exits with 8 [10:50:03]New connection [10:50:03]New thread 3066719588 created [10:50:03]Thread 3066862948 joined [10:50:03]Waiting for new connection... [10:50:03] Sock 8.Parse request [10:50:03]Sock 8.Check first char [10:50:03]Sock 8.First char is OK [10:50:03]request: POST /json_proto HTTP/1.0 [10:50:03]Method: POST [10:50:03]URL: /json_proto [10:50:03]Method is POST - this is cgi request [10:50:03]url: /json_proto [10:50:03]query_string will be loaded in cgi processing [10:50:03]execute_cgi json_proto POST (null) [10:50:03]execute_cgi path=json_proto method=POST [10:50:03]POST find Content-Length [10:50:03]Host: 172.17.37.4:8080 [10:50:03]Content-Length: 800 [10:50:03]Content-Type: application/json [10:50:03] [10:50:03]POST finish read [10:50:03]Found Content-Length = 800 [10:50:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718383", "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 }]} ], "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:50:03]execute_script... [10:50: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)718383", "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 }]} ], "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:50:03]POST & json_proto [10:50:03]process_json_proto [10:50:03]json parsed OK: [10:50:03]protocol is kg_v1.0 [10:50:03]action value=close_receipt [10:50:03]process_action close_receipt [10:50:03]cmd_close_receipt [10:50:03]MH_GetDate [10:50:03]Write to MH i2c: F0 00 00 D1 22 E2 [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: F0 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: F0 09 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: F0 09 00 D1 22 00 DF 4A 48 67 1D 3A 47 67 C8 [10:50:03]GetLastDocTimeStamp 1732790461 [10:50:03]current date 1732791007 [10:50:03]FM_GetShiftState [10:50:03]SAM_PROTO_GetShiftState [10:50:03]wFMCommunicate request_size=4 [10:50:03]MH_SAM_APDU [10:50:03]CAPDU: 80 13 01 00 [10:50:03]Write to MH i2c: E2 08 00 D2 22 80 13 01 00 00 00 00 00 71 [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:03]Read from MH i2c: E2 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 0E 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 0E 00 D2 22 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 78 [10:50:03]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:50:03]wFMCommunicate OK [10:50:03]SAM_PROTO_GetShiftState done [10:50:03]FM_GetShiftState done [10:50:03]opened in 1732752282 [10:50:03]opened+sec_in_day 1732838682 [10:50:03]quantity*price = 50010 [10:50:03]sum+1 = 50012 [10:50:03]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 СНО: Общий режим Чек 58 28.11.2024 10:50 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123546 ФПД: 213711050665280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T105007&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123546&fm=213711050665280&tin=02508201610067®Number=0000000000092681&sum=50011 [10:50:04]StoreToDocumentArchive [10:50:04]shift 559 fd 123546 [10:50:04]save to /storage/0559/doc_00123546 [10:50:04]save last doc name /storage/0559/doc_00123546 to /storage/kkm_last_doc_name [10:50:04]save OK [10:50:04]Clear old archive folders... [10:50:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:04]tlvbuf is 01491330 [10:50:04]SAM_PROTO_ClearQueue [10:50:04]wFMCommunicate request_size=4 [10:50:04]MH_SAM_APDU [10:50:04]CAPDU: 80 09 00 00 [10:50:04]Write to MH i2c: E2 08 00 DF 22 80 09 00 00 00 00 00 00 73 [10:50:04]Write i2c OK [10:50:04]MH_I2C_Read... [10:50:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:04]Read from MH i2c: E2 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: E2 03 00 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: E2 03 00 DF 22 00 90 00 75 [10:50:04]RAPDU: 90 00 [10:50:04]wFMCommunicate OK [10:50:04]SAM_PROTO_ClearQueue done [10:50:04]KKMCreateOFDPacket [10:50:04]OFDProtocolAddRootSTLVToBuf [10:50:04]FM_MakeSignedData [10:50:04]FM_MakeSignedData [10:50:04]SAM_PROTO_SignData [10:50:04]wFMCommunicate request_size=4 [10:50:04]MH_SAM_APDU [10:50:04]CAPDU: 80 0D 01 02 [10:50:04]Write to MH i2c: E2 08 00 E0 22 80 0D 01 02 00 00 00 00 7B [10:50:04]Write i2c OK [10:50:04]MH_I2C_Read... [10:50:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:04]Read from MH i2c: E2 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: E2 03 00 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: E2 03 00 E0 22 00 90 00 76 [10:50:04]RAPDU: 90 00 [10:50:04]wFMCommunicate OK [10:50:04]wFMCommunicate request_size=255 [10:50:04]MH_SAM_APDU [10:50: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 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 3A 00 00 00 F4 03 04 00 DF 4A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 C2 [10:50:04]Write to MH i2c: E2 02 01 E1 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3A 00 00 00 F4 03 04 00 DF 4A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 C2 00 00 7A [10:50:04]Write i2c OK [10:50:04]MH_I2C_Read... [10:50:04]OFD Sender: No OFD packet to send [10:50:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:04]Read from MH i2c: E2 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: E2 03 00 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: E2 03 00 E1 22 00 90 00 77 [10:50:04]RAPDU: 90 00 [10:50:04]wFMCommunicate OK [10:50:04]wFMCommunicate request_size=10 [10:50:04]MH_SAM_APDU [10:50:04]CAPDU: 80 0D 02 02 05 5E 7B 42 6D 40 [10:50:04]Write to MH i2c: E2 0D 00 E2 22 80 0D 02 02 05 00 5E 7B 42 6D 40 00 00 50 [10:50:04]Write i2c OK [10:50:04]MH_I2C_Read... [10:50:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:04]Read from MH i2c: E2 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: E2 03 00 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: E2 03 00 E2 22 00 90 00 78 [10:50:04]RAPDU: 90 00 [10:50:04]wFMCommunicate OK [10:50:04]wFMCommunicate request_size=4 [10:50:04]MH_SAM_APDU [10:50:04]CAPDU: 80 0D 03 02 [10:50:04]Write to MH i2c: E2 08 00 E3 22 80 0D 03 02 00 00 00 00 80 [10:50:04]Write i2c OK [10:50:04]MH_I2C_Read... [10:50:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:04]Read from MH i2c: E2 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: E2 0B 00 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: E2 0B 00 E3 22 00 47 2D 85 9B A1 34 91 D3 90 00 4E [10:50:04]RAPDU: 47 2D 85 9B A1 34 91 D3 90 00 [10:50:04]wFMCommunicate OK [10:50:04]SAM_PROTO_SignData done [10:50:04]FM_MakeSignedData done [10:50:04]CreateOFDProtocolMessage [10:50:04]wFMCommunicate request_size=4 [10:50:04]MH_SAM_APDU [10:50:04]CAPDU: 80 11 00 00 [10:50:04]Write to MH i2c: E2 08 00 E4 22 80 11 00 00 00 00 00 00 80 [10:50:04]Write i2c OK [10:50:04]MH_I2C_Read... [10:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:04]Read from MH i2c: E2 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: E2 17 00 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: E2 17 00 E4 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D7 [10:50:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:50:04]wFMCommunicate OK [10:50:04]CreateOFDProtocolMessage done [10:50:04]OFDSenderStorePacket 123546 [10:50:04]StoreOFDPacket docnum=123546 [10:50: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 5C 84 07 01 97 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3A 00 00 00 F4 03 04 00 DF 4A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 C2 5E 7B 42 6D 40 47 2D 85 9B A1 34 91 D3 [10:50:04]CheckFolder [10:50:04]dirname=/storage/ofd_packets [10:50:04]CheckFolder done [10:50:04]ProducePacketName [10:50:04]name=ofd_packets/00123546 [10:50:04]NVStorageSaveData ofd_packets/00123546 [10:50:04]File name is /storage/ofd_packets/00123546 [10:50:04]Write 301 bytes [10:50:04]NVStorageSaveData done [10:50:04]OFDSenderStorePacket done [10:50:04]KKMCreateOFDPacket done [10:50:04]NVStorageSaveData kkm_last_timestamp [10:50:04]File name is /storage/kkm_last_timestamp [10:50:04]Write 4 bytes [10:50:04]NVStorageSaveData done [10:50:04]ExternCall_PrintAddStr [10:50:04]wPrintStart [10:50:04]Write to MH i2c: 01 00 00 E5 22 07 [10:50:04]Write i2c OK [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: 01 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: 01 07 00 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: 01 07 00 E5 22 00 00 00 00 00 FF 0F 1C [10:50:04]RasterBufferAndPrint [10:50:04]line Счет N : (1)718383 [10:50:04]line ИНН: 02508201610067 [10:50:04]line Контрольно-Кассовый Чек [10:50:04]line ПРОДАЖА [10:50:04]line ТРК (МРК, ГНК) : 12 [10:50:04]line Товар: 2710124130 [10:50:04]line Аи-92-К-4 [10:50:04]line 7.420 * 67.40 [10:50:04]line = 500.11 [10:50:04]line НДС 12% НСП 1% [10:50:04]line > о реализуемом товаре [10:50:04]line ИТОГО: 500.11 [10:50:04]line НСП 1% : 4.43 [10:50:04]line НДС 12% : 53.11 [10:50:04]line Наличными: 0.00 [10:50:04]line Безнал.: 500.11 [10:50:04]line Место: АЗС № 64 "Партнер Нефть" [10:50:04]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:50:04]line СНО: Общий режим [10:50:04]line Чек 58 28.11.2024 10:50 [10:50:04]line Смена: 559 ФФД: 1.0 [10:50:04]line ЗНМ: 0300000033 [10:50:04]line РНМ: 0000000000092681 [10:50:04]line Версия ККМ: 001 [10:50:04]line Платежная система: O! деньги [10:50:04]line ФМ: 0000000000874881 [10:50:04]line ФД: 123546 [10:50:04]line ФПД: 213711050665280 [10:50:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T105007&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123546&fm=213711050665280&tin=02508201610067®Number=0000000000092681&sum=50011 [10:50:05]OFD Sender: Processing packet 123546 [packets to send 7, broken 6] [10:50:05]ProducePacketName [10:50:05]name=ofd_packets/00123546 [10:50:05]OFD Sender: To server: pG, [10:50:05]CommunicateWithHost lk.salyk.kg:30040 [10:50:05]ConnectInit lk.salyk.kg [10:50:05]written 0, free lines is 4095 [10:50:05]Connected sock=10 [10:50: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 5C 84 07 01 97 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3A 00 00 00 F4 03 04 00 DF 4A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 C2 5E 7B 42 6D 40 47 2D 85 9B A1 34 91 D3 [10:50: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 2D 47 00 97 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9A E2 01 00 F4 03 04 00 A5 F6 47 67 B6 04 01 00 00 F2 CA DC B8 CC 6F 76 C8 [10:50:05]CommunicateWithHost err = 0 [10:50:05]CheckOFDResponse [10:50:05]1017 (14) - 77093643461234 [10:50:05]1041 (16) - 0000000000874881 [10:50:05]1040 (4) - 123546 [10:50:05]1012 (4) - 28.11.2024 04:50 [10:50:05]1206 (1) - 0 [10:50:05]OFD Sender: Remove packet 123546 [10:50:05]ProducePacketName [10:50:05]name=ofd_packets/00123546 [10:50:05]NVStorageDeleteData [10:50:05]Write to MH i2c: 01 00 00 0F 23 32 [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: 01 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: 01 07 00 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: 01 07 00 0F 23 00 00 00 00 00 56 0C 9B [10:50:05]RasterBufferAndPrint [10:50:05]line [10:50:05]line [10:50:05]line [10:50:05]line [10:50:05]line [10:50:05]written 0, free lines is 3163 [10:50:05]MH_Cut [10:50:05]Write to MH i2c: D1 01 00 16 23 01 0B [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: D1 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: D1 01 00 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: D1 01 00 16 23 00 0A [10:50:05]Write to MH i2c: 01 00 00 17 23 3A [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:06]OFD Sender: No OFD packet to send [10:50:07]*** Cut start [10:50:07]*** Partial cut [10:50:07]*** CUTSNS_PIN = 1 [10:50:07]*** CUTSNS_PIN = 0 [10:50:07]*** Brake cut motor [10:50:07]Read from MH i2c: 01 [10:50:07]MH_I2C_Read... [10:50:07]*** Stop cut motor [10:50:07]*** Cut end [10:50:07]Read from MH i2c: 01 07 00 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: 01 07 00 17 23 00 00 00 00 00 FF 0F 4F [10:50:07]process_action close_receipt done [10:50:07]requested_data is exist [10:50:07]produce_requested_data [10:50:07]requested_item fm.sn is exist - process it [10:50:07]wFMCommunicate request_size=4 [10:50:07]MH_SAM_APDU [10:50:07]CAPDU: 80 11 00 00 [10:50:07]Write to MH i2c: E2 08 00 18 23 80 11 00 00 00 00 00 00 B5 [10:50:07]Write i2c OK [10:50:07]MH_I2C_Read... [10:50:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:07]Read from MH i2c: E2 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 17 00 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 17 00 18 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0C [10:50:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:50:07]wFMCommunicate OK [10:50:07]requested_item fd.num is exist - process it [10:50:07]SAM_PROTO_GetFieldsCounters [10:50:07]wFMCommunicate request_size=4 [10:50:07]MH_SAM_APDU [10:50:07]CAPDU: 80 13 00 00 [10:50:07]Write to MH i2c: E2 08 00 19 23 80 13 00 00 00 00 00 00 B8 [10:50:07]Write i2c OK [10:50:07]MH_I2C_Read... [10:50:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:07]Read from MH i2c: E2 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 62 00 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 62 00 19 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 3A [10:50: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 9A E2 01 00 0E 04 04 00 2F 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 [10:50:07]wFMCommunicate OK [10:50:07]SAM_PROTO_GetFieldsCounters done [10:50:07]requested_item shift.num is exist - process it [10:50:07]requested_item shift.opened is exist - process it [10:50:07]req_shift_opened [10:50:07]FM_GetShiftState [10:50:07]SAM_PROTO_GetShiftState [10:50:07]wFMCommunicate request_size=4 [10:50:07]MH_SAM_APDU [10:50:07]CAPDU: 80 13 01 00 [10:50:07]Write to MH i2c: E2 08 00 1A 23 80 13 01 00 00 00 00 00 BA [10:50:07]Write i2c OK [10:50:07]MH_I2C_Read... [10:50:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:07]Read from MH i2c: E2 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 0E 00 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 0E 00 1A 23 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 C1 [10:50:07]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:50:07]wFMCommunicate OK [10:50:07]SAM_PROTO_GetShiftState done [10:50:07]FM_GetShiftState done [10:50:07]req_shift_opened done [10:50:07]requested_item shift.open_date is exist - process it [10:50:07]req_shift_open_date [10:50:07]req_shift_open_date done [10:50:07]produce_requested_data done [10:50:07]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123546,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [10:50:07]process_action_free close_receipt [10:50:07]json_value_free [10:50:07]json_value_free done [10:50:07]process_json_proto returns [10:50:07]Send response to host [10:50:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123546,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [10:50:08]free response buf [10:50:08]execute_script done [10:50:08]execute_script returns [10:50:08]free content buf [10:50:08]Sock 8.Close socket [10:50:08]Sock 8.Thread stoped [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:26]OFD Sender: No OFD packet to send [10:51:31]OFD Sender: No OFD packet to send [10:51:36]OFD Sender: No OFD packet to send [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:06]OFD Sender: No OFD packet to send [10:52:11]OFD Sender: No OFD packet to send [10:52:16]OFD Sender: No OFD packet to send [10:52:21]OFD Sender: No OFD packet to send [10:52:26]OFD Sender: No OFD packet to send [10:52:31]OFD Sender: No OFD packet to send [10:52:36]OFD Sender: No OFD packet to send [10:52:41]OFD Sender: No OFD packet to send [10:52:46]OFD Sender: No OFD packet to send [10:52:51]OFD Sender: No OFD packet to send [10:52:56]OFD Sender: No OFD packet to send [10:53:01]OFD Sender: No OFD packet to send [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:33]accept exits with 9 [10:53:33]New connection [10:53:33]New thread 3066862948 created [10:53:33]Thread 3066719588 joined [10:53:33]Waiting for new connection... [10:53:33] Sock 9.Parse request [10:53:33]Sock 9.Check first char [10:53:33]Sock 9.First char is OK [10:53:33]request: POST /json_proto HTTP/1.0 [10:53:33]Method: POST [10:53:33]URL: /json_proto [10:53:33]Method is POST - this is cgi request [10:53:33]url: /json_proto [10:53:33]query_string will be loaded in cgi processing [10:53:33]execute_cgi json_proto POST (null) [10:53:33]execute_cgi path=json_proto method=POST [10:53:33]POST find Content-Length [10:53:33]Host: 172.17.37.4:8080 [10:53:33]Content-Length: 677 [10:53:33]Content-Type: application/json [10:53:33] [10:53:33]POST finish read [10:53:33]Found Content-Length = 677 [10:53:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718385", "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" ] } } [10:53:33]execute_script... [10:53: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)718385", "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" ] } } [10:53:33]POST & json_proto [10:53:33]process_json_proto [10:53:33]json parsed OK: [10:53:33]protocol is kg_v1.0 [10:53:33]action value=close_receipt [10:53:33]process_action close_receipt [10:53:33]cmd_close_receipt [10:53:33]MH_GetDate [10:53:33]Write to MH i2c: F0 00 00 1B 23 2D [10:53:33]Write i2c OK [10:53:33]MH_I2C_Read... [10:53:33]Read from MH i2c: F0 [10:53:33]MH_I2C_Read... [10:53:33]Read from MH i2c: F0 09 00 [10:53:33]MH_I2C_Read... [10:53:33]Read from MH i2c: F0 09 00 1B 23 00 B1 4B 48 67 1D 3A 47 67 E6 [10:53:33]GetLastDocTimeStamp 1732791007 [10:53:33]current date 1732791217 [10:53:33]FM_GetShiftState [10:53:33]SAM_PROTO_GetShiftState [10:53:33]wFMCommunicate request_size=4 [10:53:33]MH_SAM_APDU [10:53:33]CAPDU: 80 13 01 00 [10:53:33]Write to MH i2c: E2 08 00 1C 23 80 13 01 00 00 00 00 00 BC [10:53:33]Write i2c OK [10:53:33]MH_I2C_Read... [10:53:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:33]Read from MH i2c: E2 [10:53:33]MH_I2C_Read... [10:53:33]Read from MH i2c: E2 0E 00 [10:53:33]MH_I2C_Read... [10:53:33]Read from MH i2c: E2 0E 00 1C 23 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 C3 [10:53:33]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:53:33]wFMCommunicate OK [10:53:33]SAM_PROTO_GetShiftState done [10:53:33]FM_GetShiftState done [10:53:33]opened in 1732752282 [10:53:33]opened+sec_in_day 1732838682 [10:53:33]quantity*price = 50010 [10:53:33]sum+1 = 50012 [10:53: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 СНО: Общий режим Чек 59 28.11.2024 10:53 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123547 ФПД: 273229599608099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T105337&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123547&fm=273229599608099&tin=02508201610067®Number=0000000000092681&sum=50000 [10:53:34]StoreToDocumentArchive [10:53:34]shift 559 fd 123547 [10:53:34]save to /storage/0559/doc_00123547 [10:53:34]save last doc name /storage/0559/doc_00123547 to /storage/kkm_last_doc_name [10:53:34]save OK [10:53:34]Clear old archive folders... [10:53:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:34]tlvbuf is 015355B0 [10:53:34]SAM_PROTO_ClearQueue [10:53:34]wFMCommunicate request_size=4 [10:53:34]MH_SAM_APDU [10:53:34]CAPDU: 80 09 00 00 [10:53:34]Write to MH i2c: E2 08 00 29 23 80 09 00 00 00 00 00 00 BE [10:53:34]Write i2c OK [10:53:34]MH_I2C_Read... [10:53:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:34]Read from MH i2c: E2 [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: E2 03 00 [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: E2 03 00 29 23 00 90 00 C0 [10:53:34]RAPDU: 90 00 [10:53:34]wFMCommunicate OK [10:53:34]SAM_PROTO_ClearQueue done [10:53:34]KKMCreateOFDPacket [10:53:34]OFDProtocolAddRootSTLVToBuf [10:53:34]FM_MakeSignedData [10:53:34]FM_MakeSignedData [10:53:34]SAM_PROTO_SignData [10:53:34]wFMCommunicate request_size=4 [10:53:34]MH_SAM_APDU [10:53:34]CAPDU: 80 0D 01 02 [10:53:34]Write to MH i2c: E2 08 00 2A 23 80 0D 01 02 00 00 00 00 C6 [10:53:34]Write i2c OK [10:53:34]MH_I2C_Read... [10:53:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:34]Read from MH i2c: E2 [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: E2 03 00 [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: E2 03 00 2A 23 00 90 00 C1 [10:53:34]RAPDU: 90 00 [10:53:34]wFMCommunicate OK [10:53:34]wFMCommunicate request_size=255 [10:53:34]MH_SAM_APDU [10:53: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 3B 00 00 00 F4 03 04 00 B1 4B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 F8 [10:53:34]Write to MH i2c: E2 02 01 2B 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B1 4B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 F8 00 00 BA [10:53:34]Write i2c OK [10:53:34]MH_I2C_Read... [10:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:34]Read from MH i2c: E2 [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: E2 03 00 [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: E2 03 00 2B 23 00 90 00 C2 [10:53:34]RAPDU: 90 00 [10:53:34]wFMCommunicate OK [10:53:34]wFMCommunicate request_size=10 [10:53:34]MH_SAM_APDU [10:53:34]CAPDU: 80 0D 02 02 05 80 39 3A 0D 23 [10:53:34]Write to MH i2c: E2 0D 00 2C 23 80 0D 02 02 05 00 80 39 3A 0D 23 00 00 F6 [10:53:34]Write i2c OK [10:53:34]MH_I2C_Read... [10:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:34]Read from MH i2c: E2 [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: E2 03 00 [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: E2 03 00 2C 23 00 90 00 C3 [10:53:34]RAPDU: 90 00 [10:53:34]wFMCommunicate OK [10:53:34]wFMCommunicate request_size=4 [10:53:34]MH_SAM_APDU [10:53:34]CAPDU: 80 0D 03 02 [10:53:34]Write to MH i2c: E2 08 00 2D 23 80 0D 03 02 00 00 00 00 CB [10:53:34]Write i2c OK [10:53:34]MH_I2C_Read... [10:53:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:34]Read from MH i2c: E2 [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: E2 0B 00 [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: E2 0B 00 2D 23 00 1F D0 72 7E 8F FF 65 DD 90 00 7B [10:53:34]RAPDU: 1F D0 72 7E 8F FF 65 DD 90 00 [10:53:34]wFMCommunicate OK [10:53:34]SAM_PROTO_SignData done [10:53:34]FM_MakeSignedData done [10:53:34]CreateOFDProtocolMessage [10:53:34]wFMCommunicate request_size=4 [10:53:34]MH_SAM_APDU [10:53:34]CAPDU: 80 11 00 00 [10:53:34]Write to MH i2c: E2 08 00 2E 23 80 11 00 00 00 00 00 00 CB [10:53:34]Write i2c OK [10:53:34]MH_I2C_Read... [10:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:34]Read from MH i2c: E2 [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: E2 17 00 [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: E2 17 00 2E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 22 [10: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 [10:53:34]wFMCommunicate OK [10:53:34]CreateOFDProtocolMessage done [10:53:34]OFDSenderStorePacket 123547 [10:53:34]StoreOFDPacket docnum=123547 [10: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 0F 01 00 00 AF 12 07 01 4B 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 3B 00 00 00 F4 03 04 00 B1 4B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 F8 80 39 3A 0D 23 1F D0 72 7E 8F FF 65 DD [10:53:34]CheckFolder [10:53:34]dirname=/storage/ofd_packets [10:53:34]CheckFolder done [10:53:34]ProducePacketName [10:53:34]name=ofd_packets/00123547 [10:53:34]NVStorageSaveData ofd_packets/00123547 [10:53:34]File name is /storage/ofd_packets/00123547 [10:53:34]Write 301 bytes [10:53:34]NVStorageSaveData done [10:53:34]OFDSenderStorePacket done [10:53:34]KKMCreateOFDPacket done [10:53:34]NVStorageSaveData kkm_last_timestamp [10:53:34]File name is /storage/kkm_last_timestamp [10:53:34]Write 4 bytes [10:53:34]NVStorageSaveData done [10:53:34]ExternCall_PrintAddStr [10:53:34]wPrintStart [10:53:34]Write to MH i2c: 01 00 00 2F 23 52 [10:53:34]Write i2c OK [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: 01 [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: 01 07 00 [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: 01 07 00 2F 23 00 00 00 00 00 FF 0F 67 [10:53:34]RasterBufferAndPrint [10:53:34]line Счет N : (1)718385 [10:53:34]line ИНН: 02508201610067 [10:53:34]line Контрольно-Кассовый Чек [10:53:34]line ПРОДАЖА [10:53:34]line ТРК (МРК, ГНК) : 42 [10:53:34]line Товар: 2710124130 [10:53:34]line Аи-92-К-4 [10:53:34]line 7.420 * 67.40 [10:53:34]line = 500.11 [10:53:34]line НДС 12% НСП 1% [10:53:34]line > о реализуемом товаре [10:53:34]line ОКРУГЛЕНИЕ: -0.11 [10:53:34]line ИТОГО: 500.00 [10:53:34]line Внесено: 500.00 [10:53:34]line СДАЧА: 0.00 [10:53:34]line НСП 1% : 4.43 [10:53:34]line НДС 12% : 53.11 [10:53:34]line Наличными: 500.00 [10:53:34]line Безнал.: 0.00 [10:53:34]line Место: АЗС № 64 "Партнер Нефть" [10:53:34]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:53:34]line СНО: Общий режим [10:53:34]line Чек 59 28.11.2024 10:53 [10:53:34]line Смена: 559 ФФД: 1.0 [10:53:34]line ЗНМ: 0300000033 [10:53:34]line РНМ: 0000000000092681 [10:53:34]line Версия ККМ: 001 [10:53:34]line ФМ: 0000000000874881 [10:53:34]line ФД: 123547 [10:53:34]line ФПД: 273229599608099 [10:53:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T105337&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123547&fm=273229599608099&tin=02508201610067®Number=0000000000092681&sum=50000 [10:53:34]written 0, free lines is 4095 [10:53:34]OFD Sender: Processing packet 123547 [packets to send 7, broken 6] [10:53:34]ProducePacketName [10:53:34]name=ofd_packets/00123547 [10:53:34]OFD Sender: To server: pG, [10:53:34]CommunicateWithHost lk.salyk.kg:30040 [10:53:34]ConnectInit lk.salyk.kg [10:53:34]Connected sock=11 [10:53: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 AF 12 07 01 4B 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 3B 00 00 00 F4 03 04 00 B1 4B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 F8 80 39 3A 0D 23 1F D0 72 7E 8F FF 65 DD [10: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 9A 47 47 00 DA 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 9B E2 01 00 F4 03 04 00 77 F7 47 67 B6 04 01 00 00 F9 6B 0C 0F 46 9B 58 CB [10:53:35]CommunicateWithHost err = 0 [10:53:35]CheckOFDResponse [10:53:35]1017 (14) - 77093643461234 [10:53:35]1041 (16) - 0000000000874881 [10:53:35]1040 (4) - 123547 [10:53:35]1012 (4) - 28.11.2024 04:54 [10:53:35]1206 (1) - 0 [10:53:35]OFD Sender: Remove packet 123547 [10:53:35]ProducePacketName [10:53:35]name=ofd_packets/00123547 [10:53:35]NVStorageDeleteData [10:53:35]Write to MH i2c: 01 00 00 5A 23 7D [10:53:35]Write i2c OK [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: 01 [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: 01 07 00 [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: 01 07 00 5A 23 00 00 00 00 00 4C 0C DC [10:53:35]RasterBufferAndPrint [10:53:35]line [10:53:35]line [10:53:35]line [10:53:35]line [10:53:35]line [10:53:35]written 0, free lines is 3152 [10:53:35]MH_Cut [10:53:35]Write to MH i2c: D1 01 00 61 23 01 56 [10:53:35]Write i2c OK [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: D1 [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: D1 01 00 [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: D1 01 00 61 23 00 55 [10:53:35]Write to MH i2c: 01 00 00 62 23 85 [10:53:35]Write i2c OK [10:53:35]MH_I2C_Read... [10:53:35]OFD Sender: No OFD packet to send [10:53:36]*** Cut start [10:53:36]*** Partial cut [10:53:36]*** CUTSNS_PIN = 1 [10:53:36]*** CUTSNS_PIN = 0 [10:53:36]*** Brake cut motor [10:53:37]Read from MH i2c: 01 [10:53:37]MH_I2C_Read... [10:53:37]*** Stop cut motor [10:53:37]*** Cut end [10:53:37]Read from MH i2c: 01 07 00 [10:53:37]MH_I2C_Read... [10:53:37]Read from MH i2c: 01 07 00 62 23 00 00 00 00 00 FF 0F 9A [10:53:37]process_action close_receipt done [10:53:37]requested_data is exist [10:53:37]produce_requested_data [10:53:37]requested_item fm.sn is exist - process it [10:53:37]wFMCommunicate request_size=4 [10:53:37]MH_SAM_APDU [10:53:37]CAPDU: 80 11 00 00 [10:53:37]Write to MH i2c: E2 08 00 63 23 80 11 00 00 00 00 00 00 00 [10:53:37]Write i2c OK [10:53:37]MH_I2C_Read... [10:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:37]Read from MH i2c: E2 [10:53:37]MH_I2C_Read... [10:53:37]Read from MH i2c: E2 17 00 [10:53:37]MH_I2C_Read... [10:53:37]Read from MH i2c: E2 17 00 63 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 57 [10: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 [10:53:37]wFMCommunicate OK [10:53:37]requested_item fd.num is exist - process it [10:53:37]SAM_PROTO_GetFieldsCounters [10:53:37]wFMCommunicate request_size=4 [10:53:37]MH_SAM_APDU [10:53:37]CAPDU: 80 13 00 00 [10:53:37]Write to MH i2c: E2 08 00 64 23 80 13 00 00 00 00 00 00 03 [10:53:37]Write i2c OK [10:53:37]MH_I2C_Read... [10:53:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:37]Read from MH i2c: E2 [10:53:37]MH_I2C_Read... [10:53:37]Read from MH i2c: E2 62 00 [10:53:37]MH_I2C_Read... [10:53:37]Read from MH i2c: E2 62 00 64 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 89 [10: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 9B E2 01 00 0E 04 04 00 2F 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 [10:53:37]wFMCommunicate OK [10:53:37]SAM_PROTO_GetFieldsCounters done [10:53:37]requested_item shift.num is exist - process it [10:53:37]requested_item shift.opened is exist - process it [10:53:37]req_shift_opened [10:53:37]FM_GetShiftState [10:53:37]SAM_PROTO_GetShiftState [10:53:37]wFMCommunicate request_size=4 [10:53:37]MH_SAM_APDU [10:53:37]CAPDU: 80 13 01 00 [10:53:37]Write to MH i2c: E2 08 00 65 23 80 13 01 00 00 00 00 00 05 [10:53:37]Write i2c OK [10:53:37]MH_I2C_Read... [10:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:37]Read from MH i2c: E2 [10:53:37]MH_I2C_Read... [10:53:37]Read from MH i2c: E2 0E 00 [10:53:37]MH_I2C_Read... [10:53:37]Read from MH i2c: E2 0E 00 65 23 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 0C [10:53:37]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:53:37]wFMCommunicate OK [10:53:37]SAM_PROTO_GetShiftState done [10:53:37]FM_GetShiftState done [10:53:37]req_shift_opened done [10:53:37]requested_item shift.open_date is exist - process it [10:53:37]req_shift_open_date [10:53:37]req_shift_open_date done [10:53:37]produce_requested_data done [10:53:37]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123547,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [10:53:37]process_action_free close_receipt [10:53:37]json_value_free [10:53:37]json_value_free done [10:53:37]process_json_proto returns [10:53:37]Send response to host [10:53:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123547,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [10:53:37]free response buf [10:53:37]execute_script done [10:53:37]execute_script returns [10:53:37]free content buf [10:53:37]Sock 9.Close socket [10:53:37]Sock 9.Thread stoped [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:36]accept exits with 8 [10:54:36]New connection [10:54:36]New thread 3066719588 created [10:54:36]Thread 3066862948 joined [10:54:36]Waiting for new connection... [10:54:36] Sock 8.Parse request [10:54:36]Sock 8.Check first char [10:54:36]Sock 8.First char is OK [10:54:36]request: POST /json_proto HTTP/1.0 [10:54:36]Method: POST [10:54:36]URL: /json_proto [10:54:36]Method is POST - this is cgi request [10:54:36]url: /json_proto [10:54:36]query_string will be loaded in cgi processing [10:54:36]execute_cgi json_proto POST (null) [10:54:36]execute_cgi path=json_proto method=POST [10:54:36]POST find Content-Length [10:54:36]Host: 172.17.37.4:8080 [10:54:36]Content-Length: 803 [10:54:36]Content-Type: application/json [10:54:36] [10:54:36]POST finish read [10:54:36]Found Content-Length = 803 [10:54:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718384", "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 }]} ], "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.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:36]execute_script... [10:54: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)718384", "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 }]} ], "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.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:36]POST & json_proto [10:54:36]process_json_proto [10:54:36]json parsed OK: [10:54:36]protocol is kg_v1.0 [10:54:36]action value=close_receipt [10:54:36]process_action close_receipt [10:54:36]cmd_close_receipt [10:54:36]MH_GetDate [10:54:36]Write to MH i2c: F0 00 00 66 23 78 [10:54:36]Write i2c OK [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: F0 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: F0 09 00 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: F0 09 00 66 23 00 F1 4B 48 67 1D 3A 47 67 71 [10:54:36]GetLastDocTimeStamp 1732791217 [10:54:36]current date 1732791281 [10:54:36]FM_GetShiftState [10:54:36]SAM_PROTO_GetShiftState [10:54:36]wFMCommunicate request_size=4 [10:54:36]MH_SAM_APDU [10:54:36]CAPDU: 80 13 01 00 [10:54:36]Write to MH i2c: E2 08 00 67 23 80 13 01 00 00 00 00 00 07 [10:54:36]Write i2c OK [10:54:36]MH_I2C_Read... [10:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:36]Read from MH i2c: E2 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 0E 00 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 0E 00 67 23 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 0E [10:54:36]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:54:36]wFMCommunicate OK [10:54:36]SAM_PROTO_GetShiftState done [10:54:36]FM_GetShiftState done [10:54:36]opened in 1732752282 [10:54:36]opened+sec_in_day 1732838682 [10:54:36]quantity*price = 100021 [10:54:36]sum+1 = 100023 [10:54:36]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 СНО: Общий режим Чек 60 28.11.2024 10:54 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123548 ФПД: 93506725751007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T105441&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123548&fm=93506725751007&tin=02508201610067®Number=0000000000092681&sum=100022 [10:54:38]StoreToDocumentArchive [10:54:38]shift 559 fd 123548 [10:54:38]save to /storage/0559/doc_00123548 [10:54:38]save last doc name /storage/0559/doc_00123548 to /storage/kkm_last_doc_name [10:54:38]save OK [10:54:38]Clear old archive folders... [10:54:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:38]tlvbuf is 01528170 [10:54:38]SAM_PROTO_ClearQueue [10:54:38]wFMCommunicate request_size=4 [10:54:38]MH_SAM_APDU [10:54:38]CAPDU: 80 09 00 00 [10:54:38]Write to MH i2c: E2 08 00 74 23 80 09 00 00 00 00 00 00 09 [10:54:38]Write i2c OK [10:54:38]MH_I2C_Read... [10:54:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:38]Read from MH i2c: E2 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 03 00 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 03 00 74 23 00 90 00 0B [10:54:38]RAPDU: 90 00 [10:54:38]wFMCommunicate OK [10:54:38]SAM_PROTO_ClearQueue done [10:54:38]KKMCreateOFDPacket [10:54:38]OFDProtocolAddRootSTLVToBuf [10:54:38]FM_MakeSignedData [10:54:38]FM_MakeSignedData [10:54:38]SAM_PROTO_SignData [10:54:38]wFMCommunicate request_size=4 [10:54:38]MH_SAM_APDU [10:54:38]CAPDU: 80 0D 01 02 [10:54:38]Write to MH i2c: E2 08 00 75 23 80 0D 01 02 00 00 00 00 11 [10:54:38]Write i2c OK [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 [10:54:38]MH_I2C_Read... [10:54:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:38]Read from MH i2c: E2 03 00 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 03 00 75 23 00 90 00 0C [10:54:38]RAPDU: 90 00 [10:54:38]wFMCommunicate OK [10:54:38]wFMCommunicate request_size=255 [10:54:38]MH_SAM_APDU [10:54: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 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 3C 00 00 00 F4 03 04 00 F1 4B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 55 [10:54:38]Write to MH i2c: E2 02 01 76 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3C 00 00 00 F4 03 04 00 F1 4B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 55 00 00 C0 [10:54:38]Write i2c OK [10:54:38]MH_I2C_Read... [10:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:38]Read from MH i2c: E2 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 03 00 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 03 00 76 23 00 90 00 0D [10:54:38]RAPDU: 90 00 [10:54:38]wFMCommunicate OK [10:54:38]wFMCommunicate request_size=10 [10:54:38]MH_SAM_APDU [10:54:38]CAPDU: 80 0D 02 02 05 0B 3B 2C 28 DF [10:54:38]Write to MH i2c: E2 0D 00 77 23 80 0D 02 02 05 00 0B 3B 2C 28 DF 00 00 97 [10:54:38]Write i2c OK [10:54:38]MH_I2C_Read... [10:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:38]Read from MH i2c: E2 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 03 00 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 03 00 77 23 00 90 00 0E [10:54:38]RAPDU: 90 00 [10:54:38]wFMCommunicate OK [10:54:38]wFMCommunicate request_size=4 [10:54:38]MH_SAM_APDU [10:54:38]CAPDU: 80 0D 03 02 [10:54:38]Write to MH i2c: E2 08 00 78 23 80 0D 03 02 00 00 00 00 16 [10:54:38]Write i2c OK [10:54:38]MH_I2C_Read... [10:54:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:38]Read from MH i2c: E2 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 0B 00 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 0B 00 78 23 00 F2 14 C5 FF 33 3D AD 32 90 00 30 [10:54:38]RAPDU: F2 14 C5 FF 33 3D AD 32 90 00 [10:54:38]wFMCommunicate OK [10:54:38]SAM_PROTO_SignData done [10:54:38]FM_MakeSignedData done [10:54:38]CreateOFDProtocolMessage [10:54:38]wFMCommunicate request_size=4 [10:54:38]MH_SAM_APDU [10:54:38]CAPDU: 80 11 00 00 [10:54:38]Write to MH i2c: E2 08 00 79 23 80 11 00 00 00 00 00 00 16 [10:54:38]Write i2c OK [10:54:38]MH_I2C_Read... [10:54:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:38]Read from MH i2c: E2 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 17 00 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: E2 17 00 79 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6D [10:54:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:54:38]wFMCommunicate OK [10:54:38]CreateOFDProtocolMessage done [10:54:38]OFDSenderStorePacket 123548 [10:54:38]StoreOFDPacket docnum=123548 [10:54: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 3D 58 07 01 3B 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 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 3C 00 00 00 F4 03 04 00 F1 4B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 55 0B 3B 2C 28 DF F2 14 C5 FF 33 3D AD 32 [10:54:38]CheckFolder [10:54:38]dirname=/storage/ofd_packets [10:54:38]CheckFolder done [10:54:38]ProducePacketName [10:54:38]name=ofd_packets/00123548 [10:54:38]NVStorageSaveData ofd_packets/00123548 [10:54:38]File name is /storage/ofd_packets/00123548 [10:54:38]Write 301 bytes [10:54:38]NVStorageSaveData done [10:54:38]OFDSenderStorePacket done [10:54:38]KKMCreateOFDPacket done [10:54:38]NVStorageSaveData kkm_last_timestamp [10:54:38]File name is /storage/kkm_last_timestamp [10:54:38]Write 4 bytes [10:54:38]NVStorageSaveData done [10:54:38]ExternCall_PrintAddStr [10:54:38]wPrintStart [10:54:38]Write to MH i2c: 01 00 00 7A 23 9D [10:54:38]Write i2c OK [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: 01 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: 01 07 00 [10:54:38]MH_I2C_Read... [10:54:38]Read from MH i2c: 01 07 00 7A 23 00 00 00 00 00 FF 0F B2 [10:54:38]RasterBufferAndPrint [10:54:38]line Счет N : (1)718384 [10:54:38]line ИНН: 02508201610067 [10:54:38]line Контрольно-Кассовый Чек [10:54:38]line ПРОДАЖА [10:54:38]line ТРК (МРК, ГНК) : 22 [10:54:38]line Товар: 2710124130 [10:54:38]line Аи-92-К-4 [10:54:38]line 14.840 * 67.40 [10:54:38]line = 1000.22 [10:54:38]line НДС 12% НСП 1% [10:54:38]line > о реализуемом товаре [10:54:38]line ИТОГО: 1000.22 [10:54:38]line НСП 1% : 8.85 [10:54:38]line НДС 12% : 106.22 [10:54:38]line Наличными: 0.00 [10:54:38]line Безнал.: 1000.22 [10:54:38]line Место: АЗС № 64 "Партнер Нефть" [10:54:38]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:54:38]line СНО: Общий режим [10:54:38]line Чек 60 28.11.2024 10:54 [10:54:38]line Смена: 559 ФФД: 1.0 [10:54:38]line ЗНМ: 0300000033 [10:54:38]line РНМ: 0000000000092681 [10:54:38]line Версия ККМ: 001 [10:54:38]line Платежная система: O! деньги [10:54:38]line ФМ: 0000000000874881 [10:54:38]line ФД: 123548 [10:54:38]line ФПД: 93506725751007 [10:54:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T105441&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123548&fm=93506725751007&tin=02508201610067®Number=0000000000092681&sum=100022 [10:54:38]OFD Sender: Processing packet 123548 [packets to send 7, broken 6] [10:54:38]ProducePacketName [10:54:38]name=ofd_packets/00123548 [10:54:38]OFD Sender: To server: pG, [10:54:38]CommunicateWithHost lk.salyk.kg:30040 [10:54:38]ConnectInit lk.salyk.kg [10:54:38]written 0, free lines is 4095 [10:54:38]Connected sock=10 [10:54: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 3D 58 07 01 3B 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 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 3C 00 00 00 F4 03 04 00 F1 4B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 55 0B 3B 2C 28 DF F2 14 C5 FF 33 3D AD 32 [10:54: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 94 2F 47 00 23 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9C E2 01 00 F4 03 04 00 B7 F7 47 67 B6 04 01 00 00 47 A4 01 68 B6 AC DC 22 [10:54:39]CommunicateWithHost err = 0 [10:54:39]CheckOFDResponse [10:54:39]1017 (14) - 77093643461234 [10:54:39]1041 (16) - 0000000000874881 [10:54:39]1040 (4) - 123548 [10:54:39]1012 (4) - 28.11.2024 04:55 [10:54:39]1206 (1) - 0 [10:54:39]OFD Sender: Remove packet 123548 [10:54:39]ProducePacketName [10:54:39]name=ofd_packets/00123548 [10:54:39]NVStorageDeleteData [10:54:39]Write to MH i2c: 01 00 00 A4 23 C7 [10:54:39]Write i2c OK [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: 01 [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: 01 07 00 [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: 01 07 00 A4 23 00 00 00 00 00 61 0C 3B [10:54:39]RasterBufferAndPrint [10:54:39]line [10:54:39]line [10:54:39]line [10:54:39]line [10:54:39]line [10:54:39]written 0, free lines is 3174 [10:54:39]MH_Cut [10:54:39]Write to MH i2c: D1 01 00 AB 23 01 A0 [10:54:39]Write i2c OK [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: D1 [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: D1 01 00 [10:54:39]MH_I2C_Read... [10:54:39]Read from MH i2c: D1 01 00 AB 23 00 9F [10:54:39]Write to MH i2c: 01 00 00 AC 23 CF [10:54:39]Write i2c OK [10:54:39]MH_I2C_Read... [10:54:39]OFD Sender: No OFD packet to send [10:54:40]*** Cut start [10:54:40]*** Partial cut [10:54:40]*** CUTSNS_PIN = 1 [10:54:40]*** CUTSNS_PIN = 0 [10:54:40]*** Brake cut motor [10:54:41]Read from MH i2c: 01 [10:54:41]MH_I2C_Read... [10:54:41]*** Stop cut motor [10:54:41]*** Cut end [10:54:41]Read from MH i2c: 01 07 00 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: 01 07 00 AC 23 00 00 00 00 00 FF 0F E4 [10:54:41]process_action close_receipt done [10:54:41]requested_data is exist [10:54:41]produce_requested_data [10:54:41]requested_item fm.sn is exist - process it [10:54:41]wFMCommunicate request_size=4 [10:54:41]MH_SAM_APDU [10:54:41]CAPDU: 80 11 00 00 [10:54:41]Write to MH i2c: E2 08 00 AD 23 80 11 00 00 00 00 00 00 4A [10:54:41]Write i2c OK [10:54:41]MH_I2C_Read... [10:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:41]Read from MH i2c: E2 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 17 00 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 17 00 AD 23 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:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [10:54:41]wFMCommunicate OK [10:54:41]requested_item fd.num is exist - process it [10:54:41]SAM_PROTO_GetFieldsCounters [10:54:41]wFMCommunicate request_size=4 [10:54:41]MH_SAM_APDU [10:54:41]CAPDU: 80 13 00 00 [10:54:41]Write to MH i2c: E2 08 00 AE 23 80 13 00 00 00 00 00 00 4D [10:54:41]Write i2c OK [10:54:41]MH_I2C_Read... [10:54:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:41]Read from MH i2c: E2 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 62 00 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 62 00 AE 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 D7 [10:54: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 9C E2 01 00 0E 04 04 00 2F 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 [10:54:41]wFMCommunicate OK [10:54:41]SAM_PROTO_GetFieldsCounters done [10:54:41]requested_item shift.num is exist - process it [10:54:41]requested_item shift.opened is exist - process it [10:54:41]req_shift_opened [10:54:41]FM_GetShiftState [10:54:41]SAM_PROTO_GetShiftState [10:54:41]wFMCommunicate request_size=4 [10:54:41]MH_SAM_APDU [10:54:41]CAPDU: 80 13 01 00 [10:54:41]Write to MH i2c: E2 08 00 AF 23 80 13 01 00 00 00 00 00 4F [10:54:41]Write i2c OK [10:54:41]MH_I2C_Read... [10:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:41]Read from MH i2c: E2 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 0E 00 [10:54:41]MH_I2C_Read... [10:54:41]Read from MH i2c: E2 0E 00 AF 23 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 56 [10:54:41]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:54:41]wFMCommunicate OK [10:54:41]SAM_PROTO_GetShiftState done [10:54:41]FM_GetShiftState done [10:54:41]req_shift_opened done [10:54:41]requested_item shift.open_date is exist - process it [10:54:41]req_shift_open_date [10:54:41]req_shift_open_date done [10:54:41]produce_requested_data done [10:54:41]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123548,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [10:54:41]process_action_free close_receipt [10:54:41]json_value_free [10:54:41]json_value_free done [10:54:41]process_json_proto returns [10:54:41]Send response to host [10:54:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123548,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [10:54:41]free response buf [10:54:41]execute_script done [10:54:41]execute_script returns [10:54:41]free content buf [10:54:41]Sock 8.Close socket [10:54:41]Sock 8.Thread stoped [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:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:23]accept exits with 9 [10:58:23]New connection [10:58:23]New thread 3066862948 created [10:58:23]Thread 3066719588 joined [10:58:23]Waiting for new connection... [10:58:23] Sock 9.Parse request [10:58:23]Sock 9.Check first char [10:58:23]Sock 9.First char is OK [10:58:23]request: POST /json_proto HTTP/1.0 [10:58:23]Method: POST [10:58:23]URL: /json_proto [10:58:23]Method is POST - this is cgi request [10:58:23]url: /json_proto [10:58:23]query_string will be loaded in cgi processing [10:58:23]execute_cgi json_proto POST (null) [10:58:23]execute_cgi path=json_proto method=POST [10:58:23]POST find Content-Length [10:58:23]Host: 172.17.37.4:8080 [10:58:23]Content-Length: 677 [10:58:23]Content-Type: application/json [10:58:23] [10:58:23]POST finish read [10:58:23]Found Content-Length = 677 [10:58:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718386", "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" ] } } [10:58:23]execute_script... [10:58: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)718386", "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" ] } } [10:58:23]POST & json_proto [10:58:23]process_json_proto [10:58:23]json parsed OK: [10:58:23]protocol is kg_v1.0 [10:58:23]action value=close_receipt [10:58:23]process_action close_receipt [10:58:23]cmd_close_receipt [10:58:23]MH_GetDate [10:58:23]Write to MH i2c: F0 00 00 B0 23 C2 [10:58:23]Write i2c OK [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: F0 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: F0 09 00 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: F0 09 00 B0 23 00 D4 4C 48 67 1D 3A 47 67 9F [10:58:23]GetLastDocTimeStamp 1732791281 [10:58:23]current date 1732791508 [10:58:23]FM_GetShiftState [10:58:23]SAM_PROTO_GetShiftState [10:58:23]wFMCommunicate request_size=4 [10:58:23]MH_SAM_APDU [10:58:23]CAPDU: 80 13 01 00 [10:58:23]Write to MH i2c: E2 08 00 B1 23 80 13 01 00 00 00 00 00 51 [10:58:23]Write i2c OK [10:58:23]MH_I2C_Read... [10:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:23]Read from MH i2c: E2 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: E2 0E 00 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: E2 0E 00 B1 23 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 58 [10:58:23]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:58:23]wFMCommunicate OK [10:58:23]SAM_PROTO_GetShiftState done [10:58:23]FM_GetShiftState done [10:58:23]opened in 1732752282 [10:58:23]opened+sec_in_day 1732838682 [10:58:23]quantity*price = 30060 [10:58:23]sum+1 = 30061 [10:58:23]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 СНО: Общий режим Чек 61 28.11.2024 10:58 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123549 ФПД: 236047143509930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T105828&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123549&fm=236047143509930&tin=02508201610067®Number=0000000000092681&sum=30000 [10:58:24]StoreToDocumentArchive [10:58:24]shift 559 fd 123549 [10:58:24]save to /storage/0559/doc_00123549 [10:58:24]save last doc name /storage/0559/doc_00123549 to /storage/kkm_last_doc_name [10:58:24]save OK [10:58:24]Clear old archive folders... [10:58:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:24]tlvbuf is 01488530 [10:58:24]SAM_PROTO_ClearQueue [10:58:24]wFMCommunicate request_size=4 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 09 00 00 [10:58:24]Write to MH i2c: E2 08 00 BE 23 80 09 00 00 00 00 00 00 53 [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:24]Read from MH i2c: E2 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 BE 23 00 90 00 55 [10:58:24]RAPDU: 90 00 [10:58:24]wFMCommunicate OK [10:58:24]SAM_PROTO_ClearQueue done [10:58:24]KKMCreateOFDPacket [10:58:24]OFDProtocolAddRootSTLVToBuf [10:58:24]FM_MakeSignedData [10:58:24]FM_MakeSignedData [10:58:24]SAM_PROTO_SignData [10:58:24]wFMCommunicate request_size=4 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 0D 01 02 [10:58:24]Write to MH i2c: E2 08 00 BF 23 80 0D 01 02 00 00 00 00 5B [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]OFD Sender: No OFD packet to send [10:58:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:24]Read from MH i2c: E2 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 BF 23 00 90 00 56 [10:58:24]RAPDU: 90 00 [10:58:24]wFMCommunicate OK [10:58:24]wFMCommunicate request_size=255 [10:58:24]MH_SAM_APDU [10:58: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 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 3D 00 00 00 F4 03 04 00 D4 4C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D6 [10:58:24]Write to MH i2c: E2 02 01 C0 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3D 00 00 00 F4 03 04 00 D4 4C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D6 00 00 A1 [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 [10:58:25]MH_I2C_Read... [10:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:25]Read from MH i2c: E2 03 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 03 00 C0 23 00 90 00 57 [10:58:25]RAPDU: 90 00 [10:58:25]wFMCommunicate OK [10:58:25]wFMCommunicate request_size=10 [10:58:25]MH_SAM_APDU [10:58:25]CAPDU: 80 0D 02 02 05 AF 02 23 9F AA [10:58:25]Write to MH i2c: E2 0D 00 C1 23 80 0D 02 02 05 00 AF 02 23 9F AA 00 00 85 [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:25]Read from MH i2c: E2 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 03 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 03 00 C1 23 00 90 00 58 [10:58:25]RAPDU: 90 00 [10:58:25]wFMCommunicate OK [10:58:25]wFMCommunicate request_size=4 [10:58:25]MH_SAM_APDU [10:58:25]CAPDU: 80 0D 03 02 [10:58:25]Write to MH i2c: E2 08 00 C2 23 80 0D 03 02 00 00 00 00 60 [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:25]Read from MH i2c: E2 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 0B 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 0B 00 C2 23 00 A9 3F EA 37 14 04 75 D1 90 00 C8 [10:58:25]RAPDU: A9 3F EA 37 14 04 75 D1 90 00 [10:58:25]wFMCommunicate OK [10:58:25]SAM_PROTO_SignData done [10:58:25]FM_MakeSignedData done [10:58:25]CreateOFDProtocolMessage [10:58:25]wFMCommunicate request_size=4 [10:58:25]MH_SAM_APDU [10:58:25]CAPDU: 80 11 00 00 [10:58:25]Write to MH i2c: E2 08 00 C3 23 80 11 00 00 00 00 00 00 60 [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:25]Read from MH i2c: E2 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 17 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 17 00 C3 23 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:58: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:58:25]wFMCommunicate OK [10:58:25]CreateOFDProtocolMessage done [10:58:25]OFDSenderStorePacket 123549 [10:58:25]StoreOFDPacket docnum=123549 [10:58: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 E2 74 07 01 A1 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3D 00 00 00 F4 03 04 00 D4 4C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D6 AF 02 23 9F AA A9 3F EA 37 14 04 75 D1 [10:58:25]CheckFolder [10:58:25]dirname=/storage/ofd_packets [10:58:25]CheckFolder done [10:58:25]ProducePacketName [10:58:25]name=ofd_packets/00123549 [10:58:25]NVStorageSaveData ofd_packets/00123549 [10:58:25]File name is /storage/ofd_packets/00123549 [10:58:25]Write 301 bytes [10:58:25]NVStorageSaveData done [10:58:25]OFDSenderStorePacket done [10:58:25]KKMCreateOFDPacket done [10:58:25]NVStorageSaveData kkm_last_timestamp [10:58:25]File name is /storage/kkm_last_timestamp [10:58:25]Write 4 bytes [10:58:25]NVStorageSaveData done [10:58:25]ExternCall_PrintAddStr [10:58:25]wPrintStart [10:58:25]Write to MH i2c: 01 00 00 C4 23 E7 [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 07 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 07 00 C4 23 00 00 00 00 00 FF 0F FC [10:58:25]RasterBufferAndPrint [10:58:25]line Счет N : (1)718386 [10:58:25]line ИНН: 02508201610067 [10:58:25]line Контрольно-Кассовый Чек [10:58:25]line ПРОДАЖА [10:58:25]line ТРК (МРК, ГНК) : 12 [10:58:25]line Товар: 2710124130 [10:58:25]line Аи-92-К-4 [10:58:25]line 4.460 * 67.40 [10:58:25]line = 300.60 [10:58:25]line НДС 12% НСП 1% [10:58:25]line > о реализуемом товаре [10:58:25]line ОКРУГЛЕНИЕ: -0.60 [10:58:25]line ИТОГО: 300.00 [10:58:25]line Внесено: 300.00 [10:58:25]line СДАЧА: 0.00 [10:58:25]line НСП 1% : 2.66 [10:58:25]line НДС 12% : 31.92 [10:58:25]line Наличными: 300.00 [10:58:25]line Безнал.: 0.00 [10:58:25]line Место: АЗС № 64 "Партнер Нефть" [10:58:25]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [10:58:25]line СНО: Общий режим [10:58:25]line Чек 61 28.11.2024 10:58 [10:58:25]line Смена: 559 ФФД: 1.0 [10:58:25]line ЗНМ: 0300000033 [10:58:25]line РНМ: 0000000000092681 [10:58:25]line Версия ККМ: 001 [10:58:25]line ФМ: 0000000000874881 [10:58:25]line ФД: 123549 [10:58:25]line ФПД: 236047143509930 [10:58:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T105828&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123549&fm=236047143509930&tin=02508201610067®Number=0000000000092681&sum=30000 [10:58:25]OFD Sender: Processing packet 123549 [packets to send 7, broken 6] [10:58:25]ProducePacketName [10:58:25]name=ofd_packets/00123549 [10:58:25]OFD Sender: To server: pG, [10:58:25]CommunicateWithHost lk.salyk.kg:30040 [10:58:25]ConnectInit lk.salyk.kg [10:58:25]written 0, free lines is 4095 [10:58:25]Connected sock=10 [10:58: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 E2 74 07 01 A1 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3D 00 00 00 F4 03 04 00 D4 4C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D6 AF 02 23 9F AA A9 3F EA 37 14 04 75 D1 [10:58: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 D7 41 47 00 92 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 9D E2 01 00 F4 03 04 00 9A F8 47 67 B6 04 01 00 00 3E FD FD 98 4A 88 A1 E2 [10:58:25]CommunicateWithHost err = 0 [10:58:25]CheckOFDResponse [10:58:25]1017 (14) - 77093643461234 [10:58:25]1041 (16) - 0000000000874881 [10:58:25]1040 (4) - 123549 [10:58:25]1012 (4) - 28.11.2024 04:59 [10:58:25]1206 (1) - 0 [10:58:25]OFD Sender: Remove packet 123549 [10:58:25]ProducePacketName [10:58:25]name=ofd_packets/00123549 [10:58:25]NVStorageDeleteData [10:58:26]Write to MH i2c: 01 00 00 EF 23 12 [10:58:26]Write i2c OK [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: 01 [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: 01 07 00 [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: 01 07 00 EF 23 00 00 00 00 00 4A 0C 6F [10:58:26]RasterBufferAndPrint [10:58:26]line [10:58:26]line [10:58:26]line [10:58:26]line [10:58:26]line [10:58:26]written 0, free lines is 3150 [10:58:26]MH_Cut [10:58:26]Write to MH i2c: D1 01 00 F6 23 01 EB [10:58:26]Write i2c OK [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: D1 [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: D1 01 00 [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: D1 01 00 F6 23 00 EA [10:58:26]Write to MH i2c: 01 00 00 F7 23 1A [10:58:26]Write i2c OK [10:58:26]MH_I2C_Read... [10:58:26]OFD Sender: No OFD packet to send [10:58:27]*** Cut start [10:58:27]*** Partial cut [10:58:27]*** CUTSNS_PIN = 1 [10:58:27]*** CUTSNS_PIN = 0 [10:58:27]*** Brake cut motor [10:58:28]Read from MH i2c: 01 [10:58:28]MH_I2C_Read... [10:58:28]*** Stop cut motor [10:58:28]*** Cut end [10:58:28]Read from MH i2c: 01 07 00 [10:58:28]MH_I2C_Read... [10:58:28]Read from MH i2c: 01 07 00 F7 23 00 00 00 00 00 FF 0F 2F [10:58:28]process_action close_receipt done [10:58:28]requested_data is exist [10:58:28]produce_requested_data [10:58:28]requested_item fm.sn is exist - process it [10:58:28]wFMCommunicate request_size=4 [10:58:28]MH_SAM_APDU [10:58:28]CAPDU: 80 11 00 00 [10:58:28]Write to MH i2c: E2 08 00 F8 23 80 11 00 00 00 00 00 00 95 [10:58:28]Write i2c OK [10:58:28]MH_I2C_Read... [10:58:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:28]Read from MH i2c: E2 [10:58:28]MH_I2C_Read... [10:58:28]Read from MH i2c: E2 17 00 [10:58:28]MH_I2C_Read... [10:58:28]Read from MH i2c: E2 17 00 F8 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EC [10:58: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:58:28]wFMCommunicate OK [10:58:28]requested_item fd.num is exist - process it [10:58:28]SAM_PROTO_GetFieldsCounters [10:58:28]wFMCommunicate request_size=4 [10:58:28]MH_SAM_APDU [10:58:28]CAPDU: 80 13 00 00 [10:58:28]Write to MH i2c: E2 08 00 F9 23 80 13 00 00 00 00 00 00 98 [10:58:28]Write i2c OK [10:58:28]MH_I2C_Read... [10:58:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:28]Read from MH i2c: E2 [10:58:28]MH_I2C_Read... [10:58:28]Read from MH i2c: E2 62 00 [10:58:28]MH_I2C_Read... [10:58:28]Read from MH i2c: E2 62 00 F9 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 26 [10:58: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 9D E2 01 00 0E 04 04 00 2F 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 [10:58:28]wFMCommunicate OK [10:58:28]SAM_PROTO_GetFieldsCounters done [10:58:28]requested_item shift.num is exist - process it [10:58:28]requested_item shift.opened is exist - process it [10:58:28]req_shift_opened [10:58:28]FM_GetShiftState [10:58:28]SAM_PROTO_GetShiftState [10:58:28]wFMCommunicate request_size=4 [10:58:28]MH_SAM_APDU [10:58:28]CAPDU: 80 13 01 00 [10:58:28]Write to MH i2c: E2 08 00 FA 23 80 13 01 00 00 00 00 00 9A [10:58:28]Write i2c OK [10:58:28]MH_I2C_Read... [10:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:28]Read from MH i2c: E2 [10:58:28]MH_I2C_Read... [10:58:28]Read from MH i2c: E2 0E 00 [10:58:28]MH_I2C_Read... [10:58:28]Read from MH i2c: E2 0E 00 FA 23 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 A1 [10:58:28]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [10:58:28]wFMCommunicate OK [10:58:28]SAM_PROTO_GetShiftState done [10:58:28]FM_GetShiftState done [10:58:28]req_shift_opened done [10:58:28]requested_item shift.open_date is exist - process it [10:58:28]req_shift_open_date [10:58:28]req_shift_open_date done [10:58:28]produce_requested_data done [10:58:28]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123549,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [10:58:28]process_action_free close_receipt [10:58:28]json_value_free [10:58:28]json_value_free done [10:58:28]process_json_proto returns [10:58:28]Send response to host [10:58:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123549,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [10:58:28]free response buf [10:58:28]execute_script done [10:58:28]execute_script returns [10:58:28]free content buf [10:58:28]Sock 9.Close socket [10:58:28]Sock 9.Thread stoped [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:45]accept exits with 8 [11:01:45]New connection [11:01:45]New thread 3066719588 created [11:01:45]Thread 3066862948 joined [11:01:45]Waiting for new connection... [11:01:45] Sock 8.Parse request [11:01:45]Sock 8.Check first char [11:01:45]Sock 8.First char is OK [11:01:45]request: POST /json_proto HTTP/1.0 [11:01:45]Method: POST [11:01:45]URL: /json_proto [11:01:45]Method is POST - this is cgi request [11:01:45]url: /json_proto [11:01:45]query_string will be loaded in cgi processing [11:01:45]execute_cgi json_proto POST (null) [11:01:45]execute_cgi path=json_proto method=POST [11:01:45]POST find Content-Length [11:01:45]Host: 172.17.37.4:8080 [11:01:45]Content-Length: 800 [11:01:45]Content-Type: application/json [11:01:45] [11:01:45]POST finish read [11:01:45]Found Content-Length = 800 [11:01:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718387", "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" : 2.660, "sum" : 200.56, "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.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:45]execute_script... [11:01: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)718387", "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" : 2.660, "sum" : 200.56, "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.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:45]POST & json_proto [11:01:45]process_json_proto [11:01:45]json parsed OK: [11:01:45]protocol is kg_v1.0 [11:01:45]action value=close_receipt [11:01:45]process_action close_receipt [11:01:45]cmd_close_receipt [11:01:45]MH_GetDate [11:01:45]Write to MH i2c: F0 00 00 FB 23 0D [11:01:45]Write i2c OK [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: F0 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: F0 09 00 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: F0 09 00 FB 23 00 9E 4D 48 67 1D 3A 47 67 B5 [11:01:45]GetLastDocTimeStamp 1732791508 [11:01:45]current date 1732791710 [11:01:45]FM_GetShiftState [11:01:45]SAM_PROTO_GetShiftState [11:01:45]wFMCommunicate request_size=4 [11:01:45]MH_SAM_APDU [11:01:45]CAPDU: 80 13 01 00 [11:01:45]Write to MH i2c: E2 08 00 FC 23 80 13 01 00 00 00 00 00 9C [11:01:45]Write i2c OK [11:01:45]MH_I2C_Read... [11:01:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:45]Read from MH i2c: E2 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: E2 0E 00 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: E2 0E 00 FC 23 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 A3 [11:01:45]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:01:45]wFMCommunicate OK [11:01:45]SAM_PROTO_GetShiftState done [11:01:45]FM_GetShiftState done [11:01:45]opened in 1732752282 [11:01:45]opened+sec_in_day 1732838682 [11:01:45]quantity*price = 20056 [11:01:45]sum+1 = 20057 [11:01:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.56 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 0.00 Безнал.: 200.56 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 62 28.11.2024 11:01 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123550 ФПД: 104663263155712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T110150&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123550&fm=104663263155712&tin=02508201610067®Number=0000000000092681&sum=20056 [11:01:46]StoreToDocumentArchive [11:01:46]shift 559 fd 123550 [11:01:46]save to /storage/0559/doc_00123550 [11:01:46]save last doc name /storage/0559/doc_00123550 to /storage/kkm_last_doc_name [11:01:46]save OK [11:01:46]Clear old archive folders... [11:01:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:46]tlvbuf is 0150C440 [11:01:46]SAM_PROTO_ClearQueue [11:01:46]wFMCommunicate request_size=4 [11:01:46]MH_SAM_APDU [11:01:46]CAPDU: 80 09 00 00 [11:01:46]Write to MH i2c: E2 08 00 09 24 80 09 00 00 00 00 00 00 9F [11:01:46]Write i2c OK [11:01:46]MH_I2C_Read... [11:01:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:46]Read from MH i2c: E2 [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: E2 03 00 [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: E2 03 00 09 24 00 90 00 A1 [11:01:46]RAPDU: 90 00 [11:01:46]wFMCommunicate OK [11:01:46]SAM_PROTO_ClearQueue done [11:01:46]KKMCreateOFDPacket [11:01:46]OFDProtocolAddRootSTLVToBuf [11:01:46]FM_MakeSignedData [11:01:46]FM_MakeSignedData [11:01:46]SAM_PROTO_SignData [11:01:46]wFMCommunicate request_size=4 [11:01:46]MH_SAM_APDU [11:01:46]CAPDU: 80 0D 01 02 [11:01:46]Write to MH i2c: E2 08 00 0A 24 80 0D 01 02 00 00 00 00 A7 [11:01:46]Write i2c OK [11:01:46]MH_I2C_Read... [11:01:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:46]Read from MH i2c: E2 [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: E2 03 00 [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: E2 03 00 0A 24 00 90 00 A2 [11:01:46]RAPDU: 90 00 [11:01:46]wFMCommunicate OK [11:01:46]wFMCommunicate request_size=255 [11:01:46]MH_SAM_APDU [11:01: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 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 58 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 00 00 00 00 00 00 39 04 06 00 58 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 9E 4D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 5F [11:01:46]Write to MH i2c: E2 02 01 0B 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 58 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 00 00 00 00 00 00 39 04 06 00 58 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 9E 4D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 5F 00 00 9F [11:01:46]Write i2c OK [11:01:46]MH_I2C_Read... [11:01:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:47]Read from MH i2c: E2 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: E2 03 00 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: E2 03 00 0B 24 00 90 00 A3 [11:01:47]RAPDU: 90 00 [11:01:47]wFMCommunicate OK [11:01:47]wFMCommunicate request_size=10 [11:01:47]MH_SAM_APDU [11:01:47]CAPDU: 80 0D 02 02 05 30 D0 9F 16 00 [11:01:47]Write to MH i2c: E2 0D 00 0C 24 80 0D 02 02 05 00 30 D0 9F 16 00 00 00 69 [11:01:47]Write i2c OK [11:01:47]MH_I2C_Read... [11:01:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:47]Read from MH i2c: E2 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: E2 03 00 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: E2 03 00 0C 24 00 90 00 A4 [11:01:47]RAPDU: 90 00 [11:01:47]wFMCommunicate OK [11:01:47]wFMCommunicate request_size=4 [11:01:47]MH_SAM_APDU [11:01:47]CAPDU: 80 0D 03 02 [11:01:47]Write to MH i2c: E2 08 00 0D 24 80 0D 03 02 00 00 00 00 AC [11:01:47]Write i2c OK [11:01:47]MH_I2C_Read... [11:01:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:47]Read from MH i2c: E2 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: E2 0B 00 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: E2 0B 00 0D 24 00 12 3B D3 E5 0A 1D 08 9A 90 00 7B [11:01:47]RAPDU: 12 3B D3 E5 0A 1D 08 9A 90 00 [11:01:47]wFMCommunicate OK [11:01:47]SAM_PROTO_SignData done [11:01:47]FM_MakeSignedData done [11:01:47]CreateOFDProtocolMessage [11:01:47]wFMCommunicate request_size=4 [11:01:47]MH_SAM_APDU [11:01:47]CAPDU: 80 11 00 00 [11:01:47]Write to MH i2c: E2 08 00 0E 24 80 11 00 00 00 00 00 00 AC [11:01:47]Write i2c OK [11:01:47]MH_I2C_Read... [11:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:47]Read from MH i2c: E2 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: E2 17 00 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: E2 17 00 0E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 03 [11:01: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:01:47]wFMCommunicate OK [11:01:47]CreateOFDProtocolMessage done [11:01:47]OFDSenderStorePacket 123550 [11:01:47]StoreOFDPacket docnum=123550 [11:01: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 90 0A 07 01 20 1A 5A 03 01 00 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 58 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 00 00 00 00 00 00 39 04 06 00 58 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 9E 4D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 5F 30 D0 9F 16 00 12 3B D3 E5 0A 1D 08 9A [11:01:47]CheckFolder [11:01:47]dirname=/storage/ofd_packets [11:01:47]CheckFolder done [11:01:47]ProducePacketName [11:01:47]name=ofd_packets/00123550 [11:01:47]NVStorageSaveData ofd_packets/00123550 [11:01:47]File name is /storage/ofd_packets/00123550 [11:01:47]Write 301 bytes [11:01:47]NVStorageSaveData done [11:01:47]OFDSenderStorePacket done [11:01:47]KKMCreateOFDPacket done [11:01:47]NVStorageSaveData kkm_last_timestamp [11:01:47]File name is /storage/kkm_last_timestamp [11:01:47]Write 4 bytes [11:01:47]NVStorageSaveData done [11:01:47]ExternCall_PrintAddStr [11:01:47]wPrintStart [11:01:47]Write to MH i2c: 01 00 00 0F 24 33 [11:01:47]OFD Sender: Processing packet 123550 [packets to send 7, broken 6] [11:01:47]ProducePacketName [11:01:47]name=ofd_packets/00123550 [11:01:47]OFD Sender: To server: pG, [11:01:47]CommunicateWithHost lk.salyk.kg:30040 [11:01:47]ConnectInit lk.salyk.kg [11:01:47]Write i2c OK [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: 01 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: 01 07 00 [11:01:47]MH_I2C_Read... [11:01:47]Read from MH i2c: 01 07 00 0F 24 00 00 00 00 00 FF 0F 48 [11:01:47]RasterBufferAndPrint [11:01:47]line Счет N : (1)718387 [11:01:47]line ИНН: 02508201610067 [11:01:47]line Контрольно-Кассовый Чек [11:01:47]line ПРОДАЖА [11:01:47]line ТРК (МРК, ГНК) : 21 [11:01:47]line Товар: 2710124500 [11:01:47]line Аи-95-К-5 [11:01:47]line 2.660 * 75.40 [11:01:47]line = 200.56 [11:01:47]line НДС 12% НСП 1% [11:01:47]line > о реализуемом товаре [11:01:47]line ИТОГО: 200.56 [11:01:47]line НСП 1% : 1.77 [11:01:47]line НДС 12% : 21.30 [11:01:47]line Наличными: 0.00 [11:01:47]line Безнал.: 200.56 [11:01:47]line Место: АЗС № 64 "Партнер Нефть" [11:01:47]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:01:47]line СНО: Общий режим [11:01:47]line Чек 62 28.11.2024 11:01 [11:01:47]line Смена: 559 ФФД: 1.0 [11:01:47]line ЗНМ: 0300000033 [11:01:47]line РНМ: 0000000000092681 [11:01:47]line Версия ККМ: 001 [11:01:47]line Платежная система: O! деньги [11:01:47]line ФМ: 0000000000874881 [11:01:47]line ФД: 123550 [11:01:47]line ФПД: 104663263155712 [11:01:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T110150&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123550&fm=104663263155712&tin=02508201610067®Number=0000000000092681&sum=20056 [11:01:47]written 0, free lines is 4095 [11:01:47]Connected sock=10 [11:01: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 0F 01 00 00 90 0A 07 01 20 1A 5A 03 01 00 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 58 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 00 00 00 00 00 00 39 04 06 00 58 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 9E 4D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 5F 30 D0 9F 16 00 12 3B D3 E5 0A 1D 08 9A [11:01: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 36 27 47 00 13 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 9E E2 01 00 F4 03 04 00 64 F9 47 67 B6 04 01 00 00 2D 13 3A 48 16 D4 B1 E4 [11:01:47]CommunicateWithHost err = 0 [11:01:47]CheckOFDResponse [11:01:47]1017 (14) - 77093643461234 [11:01:47]1041 (16) - 0000000000874881 [11:01:47]1040 (4) - 123550 [11:01:47]1012 (4) - 28.11.2024 05:02 [11:01:47]1206 (1) - 0 [11:01:47]OFD Sender: Remove packet 123550 [11:01:47]ProducePacketName [11:01:47]name=ofd_packets/00123550 [11:01:47]NVStorageDeleteData [11:01:48]Write to MH i2c: 01 00 00 39 24 5D [11:01:48]Write i2c OK [11:01:48]MH_I2C_Read... [11:01:48]Read from MH i2c: 01 [11:01:48]MH_I2C_Read... [11:01:48]Read from MH i2c: 01 07 00 [11:01:48]MH_I2C_Read... [11:01:48]Read from MH i2c: 01 07 00 39 24 00 00 00 00 00 5A 0C CA [11:01:48]RasterBufferAndPrint [11:01:48]line [11:01:48]line [11:01:48]line [11:01:48]line [11:01:48]line [11:01:48]written 0, free lines is 3167 [11:01:48]MH_Cut [11:01:48]Write to MH i2c: D1 01 00 40 24 01 36 [11:01:48]Write i2c OK [11:01:48]MH_I2C_Read... [11:01:48]Read from MH i2c: D1 [11:01:48]MH_I2C_Read... [11:01:48]Read from MH i2c: D1 01 00 [11:01:48]MH_I2C_Read... [11:01:48]Read from MH i2c: D1 01 00 40 24 00 35 [11:01:48]Write to MH i2c: 01 00 00 41 24 65 [11:01:48]Write i2c OK [11:01:48]MH_I2C_Read... [11:01:48]OFD Sender: No OFD packet to send [11:01:49]*** Cut start [11:01:49]*** Partial cut [11:01:49]*** CUTSNS_PIN = 1 [11:01:49]*** CUTSNS_PIN = 0 [11:01:49]*** Brake cut motor [11:01:50]Read from MH i2c: 01 [11:01:50]MH_I2C_Read... [11:01:50]*** Stop cut motor [11:01:50]*** Cut end [11:01:50]Read from MH i2c: 01 07 00 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: 01 07 00 41 24 00 00 00 00 00 FF 0F 7A [11:01:50]process_action close_receipt done [11:01:50]requested_data is exist [11:01:50]produce_requested_data [11:01:50]requested_item fm.sn is exist - process it [11:01:50]wFMCommunicate request_size=4 [11:01:50]MH_SAM_APDU [11:01:50]CAPDU: 80 11 00 00 [11:01:50]Write to MH i2c: E2 08 00 42 24 80 11 00 00 00 00 00 00 E0 [11:01:50]Write i2c OK [11:01:50]MH_I2C_Read... [11:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:50]Read from MH i2c: E2 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 17 00 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 17 00 42 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 37 [11:01: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:01:50]wFMCommunicate OK [11:01:50]requested_item fd.num is exist - process it [11:01:50]SAM_PROTO_GetFieldsCounters [11:01:50]wFMCommunicate request_size=4 [11:01:50]MH_SAM_APDU [11:01:50]CAPDU: 80 13 00 00 [11:01:50]Write to MH i2c: E2 08 00 43 24 80 13 00 00 00 00 00 00 E3 [11:01:50]Write i2c OK [11:01:50]MH_I2C_Read... [11:01:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:50]Read from MH i2c: E2 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 62 00 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 62 00 43 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 75 [11:01: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 9E E2 01 00 0E 04 04 00 2F 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 [11:01:50]wFMCommunicate OK [11:01:50]SAM_PROTO_GetFieldsCounters done [11:01:50]requested_item shift.num is exist - process it [11:01:50]requested_item shift.opened is exist - process it [11:01:50]req_shift_opened [11:01:50]FM_GetShiftState [11:01:50]SAM_PROTO_GetShiftState [11:01:50]wFMCommunicate request_size=4 [11:01:50]MH_SAM_APDU [11:01:50]CAPDU: 80 13 01 00 [11:01:50]Write to MH i2c: E2 08 00 44 24 80 13 01 00 00 00 00 00 E5 [11:01:50]Write i2c OK [11:01:50]MH_I2C_Read... [11:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:50]Read from MH i2c: E2 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 0E 00 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 0E 00 44 24 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 EC [11:01:50]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:01:50]wFMCommunicate OK [11:01:50]SAM_PROTO_GetShiftState done [11:01:50]FM_GetShiftState done [11:01:50]req_shift_opened done [11:01:50]requested_item shift.open_date is exist - process it [11:01:50]req_shift_open_date [11:01:50]req_shift_open_date done [11:01:50]produce_requested_data done [11:01:50]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123550,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [11:01:50]process_action_free close_receipt [11:01:50]json_value_free [11:01:50]json_value_free done [11:01:50]process_json_proto returns [11:01:50]Send response to host [11:01:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123550,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [11:01:50]free response buf [11:01:50]execute_script done [11:01:50]execute_script returns [11:01:50]free content buf [11:01:50]Sock 8.Close socket [11:01:50]Sock 8.Thread stoped [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:02]accept exits with 9 [11:02:02]New connection [11:02:02]New thread 3066862948 created [11:02:02]Thread 3066719588 joined [11:02:02]Waiting for new connection... [11:02:02] Sock 9.Parse request [11:02:02]Sock 9.Check first char [11:02:02]Sock 9.First char is OK [11:02:02]request: POST /json_proto HTTP/1.0 [11:02:02]Method: POST [11:02:02]URL: /json_proto [11:02:02]Method is POST - this is cgi request [11:02:02]url: /json_proto [11:02:02]query_string will be loaded in cgi processing [11:02:02]execute_cgi json_proto POST (null) [11:02:02]execute_cgi path=json_proto method=POST [11:02:02]POST find Content-Length [11:02:02]Host: 172.17.37.4:8080 [11:02:02]Content-Length: 804 [11:02:02]Content-Type: application/json [11:02:02] [11:02:02]POST finish read [11:02:02]Found Content-Length = 804 [11:02:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718388", "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.000, "sum" : 599.20, "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" : 599.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:02]execute_script... [11:02: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)718388", "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.000, "sum" : 599.20, "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" : 599.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:02]POST & json_proto [11:02:02]process_json_proto [11:02:02]json parsed OK: [11:02:02]protocol is kg_v1.0 [11:02:02]action value=close_receipt [11:02:02]process_action close_receipt [11:02:02]cmd_close_receipt [11:02:02]MH_GetDate [11:02:02]Write to MH i2c: F0 00 00 45 24 58 [11:02:02]Write i2c OK [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: F0 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: F0 09 00 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: F0 09 00 45 24 00 AE 4D 48 67 1D 3A 47 67 10 [11:02:02]GetLastDocTimeStamp 1732791710 [11:02:02]current date 1732791726 [11:02:02]FM_GetShiftState [11:02:02]SAM_PROTO_GetShiftState [11:02:02]wFMCommunicate request_size=4 [11:02:02]MH_SAM_APDU [11:02:02]CAPDU: 80 13 01 00 [11:02:02]Write to MH i2c: E2 08 00 46 24 80 13 01 00 00 00 00 00 E7 [11:02:02]Write i2c OK [11:02:02]MH_I2C_Read... [11:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:02]Read from MH i2c: E2 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: E2 0E 00 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: E2 0E 00 46 24 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 EE [11:02:02]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:02:02]wFMCommunicate OK [11:02:02]SAM_PROTO_GetShiftState done [11:02:02]FM_GetShiftState done [11:02:02]opened in 1732752282 [11:02:02]opened+sec_in_day 1732838682 [11:02:02]quantity*price = 59920 [11:02:02]sum+1 = 59921 [11:02:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 599.20 НСП 1% : 5.30 НДС 12% : 63.63 Наличными: 0.00 Безнал.: 599.20 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 63 28.11.2024 11:02 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123551 ФПД: 206940767369365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T110206&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123551&fm=206940767369365&tin=02508201610067®Number=0000000000092681&sum=59920 [11:02:03]StoreToDocumentArchive [11:02:03]shift 559 fd 123551 [11:02:03]save to /storage/0559/doc_00123551 [11:02:03]save last doc name /storage/0559/doc_00123551 to /storage/kkm_last_doc_name [11:02:03]save OK [11:02:03]Clear old archive folders... [11:02:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:02:03]tlvbuf is 01525AC0 [11:02:03]SAM_PROTO_ClearQueue [11:02:03]wFMCommunicate request_size=4 [11:02:03]MH_SAM_APDU [11:02:03]CAPDU: 80 09 00 00 [11:02:03]Write to MH i2c: E2 08 00 53 24 80 09 00 00 00 00 00 00 E9 [11:02:03]Write i2c OK [11:02:03]MH_I2C_Read... [11:02:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:03]Read from MH i2c: E2 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 03 00 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 03 00 53 24 00 90 00 EB [11:02:03]RAPDU: 90 00 [11:02:03]wFMCommunicate OK [11:02:03]SAM_PROTO_ClearQueue done [11:02:03]KKMCreateOFDPacket [11:02:03]OFDProtocolAddRootSTLVToBuf [11:02:03]FM_MakeSignedData [11:02:03]FM_MakeSignedData [11:02:03]SAM_PROTO_SignData [11:02:03]wFMCommunicate request_size=4 [11:02:03]MH_SAM_APDU [11:02:03]CAPDU: 80 0D 01 02 [11:02:03]Write to MH i2c: E2 08 00 54 24 80 0D 01 02 00 00 00 00 F1 [11:02:03]Write i2c OK [11:02:03]MH_I2C_Read... [11:02:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:03]Read from MH i2c: E2 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 03 00 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 03 00 54 24 00 90 00 EC [11:02:03]RAPDU: 90 00 [11:02:03]wFMCommunicate OK [11:02:03]wFMCommunicate request_size=255 [11:02:03]MH_SAM_APDU [11:02: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 40 1F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 10 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 AE 4D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 [11:02:03]Write to MH i2c: E2 02 01 55 24 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 1F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 10 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 AE 4D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 00 00 8A [11:02:03]Write i2c OK [11:02:03]MH_I2C_Read... [11:02:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:03]Read from MH i2c: E2 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 03 00 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 03 00 55 24 00 90 00 ED [11:02:03]RAPDU: 90 00 [11:02:03]wFMCommunicate OK [11:02:03]wFMCommunicate request_size=11 [11:02:03]MH_SAM_APDU [11:02:03]CAPDU: 80 0D 02 02 06 BC 36 26 ED B8 95 [11:02:03]Write to MH i2c: E2 0E 00 56 24 80 0D 02 02 06 00 BC 36 26 ED B8 95 00 00 52 [11:02:03]Write i2c OK [11:02:03]MH_I2C_Read... [11:02:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:03]Read from MH i2c: E2 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 03 00 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 03 00 56 24 00 90 00 EE [11:02:03]RAPDU: 90 00 [11:02:03]wFMCommunicate OK [11:02:03]wFMCommunicate request_size=4 [11:02:03]MH_SAM_APDU [11:02:03]CAPDU: 80 0D 03 02 [11:02:03]Write to MH i2c: E2 08 00 57 24 80 0D 03 02 00 00 00 00 F6 [11:02:03]Write i2c OK [11:02:03]MH_I2C_Read... [11:02:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:03]Read from MH i2c: E2 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 0B 00 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 0B 00 57 24 00 FC FB 14 7E 17 66 48 A3 90 00 E8 [11:02:03]RAPDU: FC FB 14 7E 17 66 48 A3 90 00 [11:02:03]wFMCommunicate OK [11:02:03]SAM_PROTO_SignData done [11:02:03]FM_MakeSignedData done [11:02:03]CreateOFDProtocolMessage [11:02:03]wFMCommunicate request_size=4 [11:02:03]MH_SAM_APDU [11:02:03]CAPDU: 80 11 00 00 [11:02:03]Write to MH i2c: E2 08 00 58 24 80 11 00 00 00 00 00 00 F6 [11:02:03]Write i2c OK [11:02:03]MH_I2C_Read... [11:02:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:03]Read from MH i2c: E2 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 17 00 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 17 00 58 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 4D [11:02: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:02:03]wFMCommunicate OK [11:02:03]CreateOFDProtocolMessage done [11:02:03]OFDSenderStorePacket 123551 [11:02:03]StoreOFDPacket docnum=123551 [11:02: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 D3 E7 08 01 49 7D 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 1F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 10 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 AE 4D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 BC 36 26 ED B8 95 FC FB 14 7E 17 66 48 A3 [11:02:03]CheckFolder [11:02:03]dirname=/storage/ofd_packets [11:02:03]CheckFolder done [11:02:03]ProducePacketName [11:02:03]name=ofd_packets/00123551 [11:02:03]NVStorageSaveData ofd_packets/00123551 [11:02:03]File name is /storage/ofd_packets/00123551 [11:02:03]Write 302 bytes [11:02:03]NVStorageSaveData done [11:02:03]OFDSenderStorePacket done [11:02:03]KKMCreateOFDPacket done [11:02:03]NVStorageSaveData kkm_last_timestamp [11:02:03]File name is /storage/kkm_last_timestamp [11:02:03]Write 4 bytes [11:02:03]NVStorageSaveData done [11:02:03]ExternCall_PrintAddStr [11:02:03]wPrintStart [11:02:03]Write to MH i2c: 01 00 00 59 24 7D [11:02:03]Write i2c OK [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: 01 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: 01 07 00 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: 01 07 00 59 24 00 00 00 00 00 FF 0F 92 [11:02:03]RasterBufferAndPrint [11:02:03]line Счет N : (1)718388 [11:02:03]line ИНН: 02508201610067 [11:02:03]line Контрольно-Кассовый Чек [11:02:03]line ПРОДАЖА [11:02:03]line ТРК (МРК, ГНК) : 5 [11:02:03]line Товар: 2710194210 [11:02:03]line ДТ(л)-К-5 [11:02:03]line 8.000 * 74.90 [11:02:03]line = 599.20 [11:02:03]line НДС 12% НСП 1% [11:02:03]line > о реализуемом товаре [11:02:03]line ИТОГО: 599.20 [11:02:03]line НСП 1% : 5.30 [11:02:03]line НДС 12% : 63.63 [11:02:03]line Наличными: 0.00 [11:02:03]line Безнал.: 599.20 [11:02:03]line Место: АЗС № 64 "Партнер Нефть" [11:02:03]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:02:03]line СНО: Общий режим [11:02:03]line Чек 63 28.11.2024 11:02 [11:02:03]line Смена: 559 ФФД: 1.0 [11:02:03]line ЗНМ: 0300000033 [11:02:03]line РНМ: 0000000000092681 [11:02:03]line Версия ККМ: 001 [11:02:03]line Платежная система: O! деньги [11:02:03]line ФМ: 0000000000874881 [11:02:03]line ФД: 123551 [11:02:03]line ФПД: 206940767369365 [11:02:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T110206&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123551&fm=206940767369365&tin=02508201610067®Number=0000000000092681&sum=59920 [11:02:04]OFD Sender: Processing packet 123551 [packets to send 7, broken 6] [11:02:04]ProducePacketName [11:02:04]name=ofd_packets/00123551 [11:02:04]OFD Sender: To server: pG, [11:02:04]CommunicateWithHost lk.salyk.kg:30040 [11:02:04]ConnectInit lk.salyk.kg [11:02:04]written 0, free lines is 4095 [11:02:04]Connected sock=10 [11:02: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 D3 E7 08 01 49 7D 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 1F 00 00 00 00 00 37 04 06 00 42 1D 00 00 00 00 13 04 06 00 10 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 AE 4D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 BC 36 26 ED B8 95 FC FB 14 7E 17 66 48 A3 [11:02: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 09 C6 47 00 B6 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 9F E2 01 00 F4 03 04 00 75 F9 47 67 B6 04 01 00 00 4E 89 EF C5 F1 58 1F A1 [11:02:04]CommunicateWithHost err = 0 [11:02:04]CheckOFDResponse [11:02:04]1017 (14) - 77093643461234 [11:02:04]1041 (16) - 0000000000874881 [11:02:04]1040 (4) - 123551 [11:02:04]1012 (4) - 28.11.2024 05:02 [11:02:04]1206 (1) - 0 [11:02:04]OFD Sender: Remove packet 123551 [11:02:04]ProducePacketName [11:02:04]name=ofd_packets/00123551 [11:02:04]NVStorageDeleteData [11:02:04]Write to MH i2c: 01 00 00 83 24 A7 [11:02:04]Write i2c OK [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: 01 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: 01 07 00 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: 01 07 00 83 24 00 00 00 00 00 74 0C 2E [11:02:04]RasterBufferAndPrint [11:02:04]line [11:02:04]line [11:02:04]line [11:02:04]line [11:02:04]line [11:02:04]written 0, free lines is 3193 [11:02:04]MH_Cut [11:02:04]Write to MH i2c: D1 01 00 8A 24 01 80 [11:02:04]Write i2c OK [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: D1 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: D1 01 00 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: D1 01 00 8A 24 00 7F [11:02:04]Write to MH i2c: 01 00 00 8B 24 AF [11:02:04]Write i2c OK [11:02:04]MH_I2C_Read... [11:02:05]OFD Sender: No OFD packet to send [11:02:06]*** Cut start [11:02:06]*** Partial cut [11:02:06]*** CUTSNS_PIN = 1 [11:02:06]*** CUTSNS_PIN = 0 [11:02:06]*** Brake cut motor [11:02:06]Read from MH i2c: 01 [11:02:06]MH_I2C_Read... [11:02:06]*** Stop cut motor [11:02:06]*** Cut end [11:02:06]Read from MH i2c: 01 07 00 [11:02:06]MH_I2C_Read... [11:02:06]Read from MH i2c: 01 07 00 8B 24 00 00 00 00 00 FF 0F C4 [11:02:06]process_action close_receipt done [11:02:06]requested_data is exist [11:02:06]produce_requested_data [11:02:06]requested_item fm.sn is exist - process it [11:02:06]wFMCommunicate request_size=4 [11:02:06]MH_SAM_APDU [11:02:06]CAPDU: 80 11 00 00 [11:02:06]Write to MH i2c: E2 08 00 8C 24 80 11 00 00 00 00 00 00 2A [11:02:06]Write i2c OK [11:02:06]MH_I2C_Read... [11:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:06]Read from MH i2c: E2 [11:02:06]MH_I2C_Read... [11:02:06]Read from MH i2c: E2 17 00 [11:02:06]MH_I2C_Read... [11:02:06]Read from MH i2c: E2 17 00 8C 24 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:02: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:02:06]wFMCommunicate OK [11:02:06]requested_item fd.num is exist - process it [11:02:06]SAM_PROTO_GetFieldsCounters [11:02:06]wFMCommunicate request_size=4 [11:02:06]MH_SAM_APDU [11:02:06]CAPDU: 80 13 00 00 [11:02:06]Write to MH i2c: E2 08 00 8D 24 80 13 00 00 00 00 00 00 2D [11:02:06]Write i2c OK [11:02:06]MH_I2C_Read... [11:02:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:06]Read from MH i2c: E2 [11:02:06]MH_I2C_Read... [11:02:06]Read from MH i2c: E2 62 00 [11:02:06]MH_I2C_Read... [11:02:06]Read from MH i2c: E2 62 00 8D 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 C3 [11:02: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 9F E2 01 00 0E 04 04 00 2F 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 [11:02:06]wFMCommunicate OK [11:02:06]SAM_PROTO_GetFieldsCounters done [11:02:06]requested_item shift.num is exist - process it [11:02:06]requested_item shift.opened is exist - process it [11:02:06]req_shift_opened [11:02:06]FM_GetShiftState [11:02:06]SAM_PROTO_GetShiftState [11:02:06]wFMCommunicate request_size=4 [11:02:06]MH_SAM_APDU [11:02:06]CAPDU: 80 13 01 00 [11:02:06]Write to MH i2c: E2 08 00 8E 24 80 13 01 00 00 00 00 00 2F [11:02:06]Write i2c OK [11:02:06]MH_I2C_Read... [11:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:06]Read from MH i2c: E2 [11:02:06]MH_I2C_Read... [11:02:06]Read from MH i2c: E2 0E 00 [11:02:06]MH_I2C_Read... [11:02:06]Read from MH i2c: E2 0E 00 8E 24 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 36 [11:02:06]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:02:06]wFMCommunicate OK [11:02:06]SAM_PROTO_GetShiftState done [11:02:06]FM_GetShiftState done [11:02:06]req_shift_opened done [11:02:06]requested_item shift.open_date is exist - process it [11:02:06]req_shift_open_date [11:02:06]req_shift_open_date done [11:02:06]produce_requested_data done [11:02:06]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123551,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [11:02:07]process_action_free close_receipt [11:02:07]json_value_free [11:02:07]json_value_free done [11:02:07]process_json_proto returns [11:02:07]Send response to host [11:02:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123551,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [11:02:07]free response buf [11:02:07]execute_script done [11:02:07]execute_script returns [11:02:07]free content buf [11:02:07]Sock 9.Close socket [11:02:07]Sock 9.Thread stoped [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:02:55]accept exits with 8 [11:02:55]New connection [11:02:55]New thread 3066719588 created [11:02:55]Thread 3066862948 joined [11:02:55]Waiting for new connection... [11:02:55] Sock 8.Parse request [11:02:55]Sock 8.Check first char [11:02:55]Sock 8.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: 678 [11:02:55]Content-Type: application/json [11:02:55] [11:02:55]POST finish read [11:02:55]Found Content-Length = 678 [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)718389", "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" ] } } [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)718389", "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" ] } } [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 8F 24 A2 [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 8F 24 00 E4 4D 48 67 1D 3A 47 67 90 [11:02:55]GetLastDocTimeStamp 1732791726 [11:02:55]current date 1732791780 [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 90 24 80 13 01 00 00 00 00 00 31 [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 90 24 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 38 [11:02:55]RAPDU: 09 00 01 9A B3 47 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 1732752282 [11:02:55]opened+sec_in_day 1732838682 [11:02:55]quantity*price = 70028 [11:02:55]sum+1 = 70030 [11:02:55]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 СНО: Общий режим Чек 64 28.11.2024 11:03 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123552 ФПД: 142404622288630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T110300&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123552&fm=142404622288630&tin=02508201610067®Number=0000000000092681&sum=70000 [11:02:56]StoreToDocumentArchive [11:02:56]shift 559 fd 123552 [11:02:56]save to /storage/0559/doc_00123552 [11:02:56]save last doc name /storage/0559/doc_00123552 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 01500250 [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 9D 24 80 09 00 00 00 00 00 00 33 [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 9D 24 00 90 00 35 [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 9E 24 80 0D 01 02 00 00 00 00 3B [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 9E 24 00 90 00 36 [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 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 40 00 00 00 F4 03 04 00 E4 4D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 81 [11:02:56]Write to MH i2c: E2 02 01 9F 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 40 00 00 00 F4 03 04 00 E4 4D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 81 00 00 05 [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 9F 24 00 90 00 37 [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 84 28 ED 06 F6 [11:02:57]Write to MH i2c: E2 0D 00 A0 24 80 0D 02 02 05 00 84 28 ED 06 F6 00 00 DD [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 A0 24 00 90 00 38 [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 A1 24 80 0D 03 02 00 00 00 00 40 [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 A1 24 00 E1 A2 D5 66 84 5A 6B 93 90 00 DB [11:02:57]RAPDU: E1 A2 D5 66 84 5A 6B 93 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 A2 24 80 11 00 00 00 00 00 00 40 [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 A2 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 97 [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 123552 [11:02:57]StoreOFDPacket docnum=123552 [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 57 8C 07 01 5A 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 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 40 00 00 00 F4 03 04 00 E4 4D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 81 84 28 ED 06 F6 E1 A2 D5 66 84 5A 6B 93 [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/00123552 [11:02:57]NVStorageSaveData ofd_packets/00123552 [11:02:57]File name is /storage/ofd_packets/00123552 [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 A3 24 C7 [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 A3 24 00 00 00 00 00 FF 0F DC [11:02:57]RasterBufferAndPrint [11:02:57]line Счет N : (1)718389 [11:02:57]line ИНН: 02508201610067 [11:02:57]line Контрольно-Кассовый Чек [11:02:57]line ПРОДАЖА [11:02:57]line ТРК (МРК, ГНК) : 12 [11:02:57]line Товар: 2710124130 [11:02:57]line Аи-92-К-4 [11:02:57]line 10.390 * 67.40 [11:02:57]line = 700.29 [11:02:57]line НДС 12% НСП 1% [11:02:57]line > о реализуемом товаре [11:02:57]line ОКРУГЛЕНИЕ: -0.29 [11:02:57]line ИТОГО: 700.00 [11:02:57]line Внесено: 700.00 [11:02:57]line СДАЧА: 0.00 [11:02:57]line НСП 1% : 6.20 [11:02:57]line НДС 12% : 74.37 [11:02:57]line Наличными: 700.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 Чек 64 28.11.2024 11:03 [11:02:57]line Смена: 559 ФФД: 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 ФД: 123552 [11:02:57]line ФПД: 142404622288630 [11:02:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T110300&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123552&fm=142404622288630&tin=02508201610067®Number=0000000000092681&sum=70000 [11:02:57]OFD Sender: Processing packet 123552 [packets to send 7, broken 6] [11:02:57]ProducePacketName [11:02:57]name=ofd_packets/00123552 [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=11 [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 57 8C 07 01 5A 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 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 40 00 00 00 F4 03 04 00 E4 4D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 81 84 28 ED 06 F6 E1 A2 D5 66 84 5A 6B 93 [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 BB C0 47 00 8B 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 A0 E2 01 00 F4 03 04 00 AA F9 47 67 B6 04 01 00 00 EE 25 31 C8 E9 66 F7 58 [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) - 123552 [11:02:57]1012 (4) - 28.11.2024 05:03 [11:02:57]1206 (1) - 0 [11:02:57]OFD Sender: Remove packet 123552 [11:02:57]ProducePacketName [11:02:57]name=ofd_packets/00123552 [11:02:57]NVStorageDeleteData [11:02:58]Write to MH i2c: 01 00 00 CE 24 F2 [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 CE 24 00 00 00 00 00 4B 0C 50 [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 3150 [11:02:58]MH_Cut [11:02:58]Write to MH i2c: D1 01 00 D5 24 01 CB [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 D5 24 00 CA [11:02:58]Write to MH i2c: 01 00 00 D6 24 FA [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 D6 24 00 00 00 00 00 FF 0F 0F [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 D7 24 80 11 00 00 00 00 00 00 75 [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 D7 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CC [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 D8 24 80 13 00 00 00 00 00 00 78 [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 D8 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 12 [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 A0 E2 01 00 0E 04 04 00 2F 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 [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 D9 24 80 13 01 00 00 00 00 00 7A [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 D9 24 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 81 [11:03:00]RAPDU: 09 00 01 9A B3 47 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":123552,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [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":123552,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [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 8.Close socket [11:03:00]Sock 8.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]accept exits with 9 [11:08:53]New connection [11:08:53]New thread 3066862948 created [11:08:53]Thread 3066719588 joined [11:08:53]Waiting for new connection... [11:08:53] Sock 9.Parse request [11:08:53]Sock 9.Check first char [11:08:53]Sock 9.First char is OK [11:08:53]request: POST /json_proto HTTP/1.0 [11:08:53]Method: POST [11:08:53]URL: /json_proto [11:08:53]Method is POST - this is cgi request [11:08:53]url: /json_proto [11:08:53]query_string will be loaded in cgi processing [11:08:53]execute_cgi json_proto POST (null) [11:08:53]execute_cgi path=json_proto method=POST [11:08:53]POST find Content-Length [11:08:53]Host: 172.17.37.4:8080 [11:08:53]Content-Length: 677 [11:08:53]Content-Type: application/json [11:08:53] [11:08:53]POST finish read [11:08:53]Found Content-Length = 677 [11:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718390", "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:08:53]execute_script... [11:08: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)718390", "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:08:53]POST & json_proto [11:08:53]process_json_proto [11:08:53]json parsed OK: [11:08:53]protocol is kg_v1.0 [11:08:53]action value=close_receipt [11:08:53]process_action close_receipt [11:08:53]cmd_close_receipt [11:08:53]MH_GetDate [11:08:53]Write to MH i2c: F0 00 00 DA 24 ED [11:08:53]Write i2c OK [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: F0 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: F0 09 00 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: F0 09 00 DA 24 00 49 4F 48 67 1D 3A 47 67 42 [11:08:53]GetLastDocTimeStamp 1732791780 [11:08:53]current date 1732792137 [11:08:53]FM_GetShiftState [11:08:53]SAM_PROTO_GetShiftState [11:08:53]wFMCommunicate request_size=4 [11:08:53]MH_SAM_APDU [11:08:53]CAPDU: 80 13 01 00 [11:08:53]Write to MH i2c: E2 08 00 DB 24 80 13 01 00 00 00 00 00 7C [11:08:53]Write i2c OK [11:08:53]MH_I2C_Read... [11:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:53]Read from MH i2c: E2 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: E2 0E 00 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: E2 0E 00 DB 24 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 83 [11:08:53]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:08:53]wFMCommunicate OK [11:08:53]SAM_PROTO_GetShiftState done [11:08:53]FM_GetShiftState done [11:08:53]opened in 1732752282 [11:08:53]opened+sec_in_day 1732838682 [11:08:53]quantity*price = 30060 [11:08:53]sum+1 = 30061 [11:08:53]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 СНО: Общий режим Чек 65 28.11.2024 11:08 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123553 ФПД: 31465597782836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T110858&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123553&fm=31465597782836&tin=02508201610067®Number=0000000000092681&sum=30000 [11:08:54]StoreToDocumentArchive [11:08:54]shift 559 fd 123553 [11:08:54]save to /storage/0559/doc_00123553 [11:08:54]save last doc name /storage/0559/doc_00123553 to /storage/kkm_last_doc_name [11:08:54]save OK [11:08:54]Clear old archive folders... [11:08:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:54]tlvbuf is 014DCDC0 [11:08:54]SAM_PROTO_ClearQueue [11:08:54]wFMCommunicate request_size=4 [11:08:54]MH_SAM_APDU [11:08:54]CAPDU: 80 09 00 00 [11:08:54]Write to MH i2c: E2 08 00 E8 24 80 09 00 00 00 00 00 00 7E [11:08:54]Write i2c OK [11:08:54]MH_I2C_Read... [11:08:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:54]Read from MH i2c: E2 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: E2 03 00 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: E2 03 00 E8 24 00 90 00 80 [11:08:54]RAPDU: 90 00 [11:08:54]wFMCommunicate OK [11:08:54]SAM_PROTO_ClearQueue done [11:08:54]KKMCreateOFDPacket [11:08:54]OFDProtocolAddRootSTLVToBuf [11:08:54]FM_MakeSignedData [11:08:54]FM_MakeSignedData [11:08:54]SAM_PROTO_SignData [11:08:54]wFMCommunicate request_size=4 [11:08:54]MH_SAM_APDU [11:08:54]CAPDU: 80 0D 01 02 [11:08:54]Write to MH i2c: E2 08 00 E9 24 80 0D 01 02 00 00 00 00 86 [11:08:54]Write i2c OK [11:08:54]MH_I2C_Read... [11:08:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:54]Read from MH i2c: E2 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: E2 03 00 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: E2 03 00 E9 24 00 90 00 81 [11:08:54]RAPDU: 90 00 [11:08:54]wFMCommunicate OK [11:08:54]wFMCommunicate request_size=255 [11:08:54]MH_SAM_APDU [11:08: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 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 41 00 00 00 F4 03 04 00 4A 4F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 1C [11:08:54]Write to MH i2c: E2 02 01 EA 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 41 00 00 00 F4 03 04 00 4A 4F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 1C 00 00 93 [11:08:54]Write i2c OK [11:08:54]MH_I2C_Read... [11:08:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:54]Read from MH i2c: E2 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: E2 03 00 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: E2 03 00 EA 24 00 90 00 82 [11:08:54]RAPDU: 90 00 [11:08:54]wFMCommunicate OK [11:08:54]wFMCommunicate request_size=10 [11:08:54]MH_SAM_APDU [11:08:54]CAPDU: 80 0D 02 02 05 9E 27 C7 4B 34 [11:08:54]Write to MH i2c: E2 0D 00 EB 24 80 0D 02 02 05 00 9E 27 C7 4B 34 00 00 9E [11:08:54]Write i2c OK [11:08:54]MH_I2C_Read... [11:08:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:55]Read from MH i2c: E2 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: E2 03 00 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: E2 03 00 EB 24 00 90 00 83 [11:08:55]RAPDU: 90 00 [11:08:55]wFMCommunicate OK [11:08:55]wFMCommunicate request_size=4 [11:08:55]MH_SAM_APDU [11:08:55]CAPDU: 80 0D 03 02 [11:08:55]Write to MH i2c: E2 08 00 EC 24 80 0D 03 02 00 00 00 00 8B [11:08:55]Write i2c OK [11:08:55]MH_I2C_Read... [11:08:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:55]Read from MH i2c: E2 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: E2 0B 00 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: E2 0B 00 EC 24 00 1F 1E A9 24 DD 3B 10 6B 90 00 29 [11:08:55]RAPDU: 1F 1E A9 24 DD 3B 10 6B 90 00 [11:08:55]wFMCommunicate OK [11:08:55]SAM_PROTO_SignData done [11:08:55]FM_MakeSignedData done [11:08:55]CreateOFDProtocolMessage [11:08:55]wFMCommunicate request_size=4 [11:08:55]MH_SAM_APDU [11:08:55]CAPDU: 80 11 00 00 [11:08:55]Write to MH i2c: E2 08 00 ED 24 80 11 00 00 00 00 00 00 8B [11:08:55]Write i2c OK [11:08:55]MH_I2C_Read... [11:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:55]Read from MH i2c: E2 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: E2 17 00 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: E2 17 00 ED 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E2 [11:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:08:55]wFMCommunicate OK [11:08:55]CreateOFDProtocolMessage done [11:08:55]OFDSenderStorePacket 123553 [11:08:55]StoreOFDPacket docnum=123553 [11:08: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 45 5E 07 01 DC 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 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 41 00 00 00 F4 03 04 00 4A 4F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 1C 9E 27 C7 4B 34 1F 1E A9 24 DD 3B 10 6B [11:08:55]CheckFolder [11:08:55]dirname=/storage/ofd_packets [11:08:55]CheckFolder done [11:08:55]ProducePacketName [11:08:55]name=ofd_packets/00123553 [11:08:55]NVStorageSaveData ofd_packets/00123553 [11:08:55]File name is /storage/ofd_packets/00123553 [11:08:55]Write 301 bytes [11:08:55]NVStorageSaveData done [11:08:55]OFDSenderStorePacket done [11:08:55]KKMCreateOFDPacket done [11:08:55]NVStorageSaveData kkm_last_timestamp [11:08:55]File name is /storage/kkm_last_timestamp [11:08:55]Write 4 bytes [11:08:55]NVStorageSaveData done [11:08:55]ExternCall_PrintAddStr [11:08:55]wPrintStart [11:08:55]Write to MH i2c: 01 00 00 EE 24 12 [11:08:55]Write i2c OK [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: 01 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: 01 07 00 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: 01 07 00 EE 24 00 00 00 00 00 FF 0F 27 [11:08:55]RasterBufferAndPrint [11:08:55]line Счет N : (1)718390 [11:08:55]line ИНН: 02508201610067 [11:08:55]line Контрольно-Кассовый Чек [11:08:55]line ПРОДАЖА [11:08:55]line ТРК (МРК, ГНК) : 12 [11:08:55]line Товар: 2710124130 [11:08:55]line Аи-92-К-4 [11:08:55]line 4.460 * 67.40 [11:08:55]line = 300.60 [11:08:55]line НДС 12% НСП 1% [11:08:55]line > о реализуемом товаре [11:08:55]line ОКРУГЛЕНИЕ: -0.60 [11:08:55]line ИТОГО: 300.00 [11:08:55]line Внесено: 300.00 [11:08:55]line СДАЧА: 0.00 [11:08:55]line НСП 1% : 2.66 [11:08:55]line НДС 12% : 31.92 [11:08:55]line Наличными: 300.00 [11:08:55]line Безнал.: 0.00 [11:08:55]line Место: АЗС № 64 "Партнер Нефть" [11:08:55]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:08:55]line СНО: Общий режим [11:08:55]line Чек 65 28.11.2024 11:08 [11:08:55]line Смена: 559 ФФД: 1.0 [11:08:55]line ЗНМ: 0300000033 [11:08:55]line РНМ: 0000000000092681 [11:08:55]line Версия ККМ: 001 [11:08:55]line ФМ: 0000000000874881 [11:08:55]line ФД: 123553 [11:08:55]line ФПД: 31465597782836 [11:08:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T110858&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123553&fm=31465597782836&tin=02508201610067®Number=0000000000092681&sum=30000 [11:08:55]OFD Sender: Processing packet 123553 [packets to send 7, broken 6] [11:08:55]ProducePacketName [11:08:55]name=ofd_packets/00123553 [11:08:55]OFD Sender: To server: pG, [11:08:55]CommunicateWithHost lk.salyk.kg:30040 [11:08:55]ConnectInit lk.salyk.kg [11:08:55]written 0, free lines is 4095 [11:08:55]Connected sock=11 [11:08: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 45 5E 07 01 DC 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 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 41 00 00 00 F4 03 04 00 4A 4F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 1C 9E 27 C7 4B 34 1F 1E A9 24 DD 3B 10 6B [11:08: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 6D A4 47 00 BD 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 A1 E2 01 00 F4 03 04 00 10 FB 47 67 B6 04 01 00 00 0D 6C E7 E3 3B B3 7A 77 [11:08:55]CommunicateWithHost err = 0 [11:08:55]CheckOFDResponse [11:08:55]1017 (14) - 77093643461234 [11:08:55]1041 (16) - 0000000000874881 [11:08:55]1040 (4) - 123553 [11:08:55]1012 (4) - 28.11.2024 05:09 [11:08:55]1206 (1) - 0 [11:08:55]OFD Sender: Remove packet 123553 [11:08:55]ProducePacketName [11:08:55]name=ofd_packets/00123553 [11:08:55]NVStorageDeleteData [11:08:55]Write to MH i2c: 01 00 00 19 25 3E [11:08:55]Write i2c OK [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: 01 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: 01 07 00 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: 01 07 00 19 25 00 00 00 00 00 48 0C 99 [11:08:55]RasterBufferAndPrint [11:08:55]line [11:08:55]line [11:08:55]line [11:08:55]line [11:08:55]line [11:08:55]written 0, free lines is 3148 [11:08:55]MH_Cut [11:08:55]Write to MH i2c: D1 01 00 20 25 01 17 [11:08:55]Write i2c OK [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: D1 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: D1 01 00 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: D1 01 00 20 25 00 16 [11:08:55]Write to MH i2c: 01 00 00 21 25 46 [11:08:55]Write i2c OK [11:08:55]MH_I2C_Read... [11:08:56]OFD Sender: No OFD packet to send [11:08:57]*** Cut start [11:08:57]*** Partial cut [11:08:57]*** CUTSNS_PIN = 1 [11:08:57]*** CUTSNS_PIN = 0 [11:08:57]*** Brake cut motor [11:08:57]Read from MH i2c: 01 [11:08:57]MH_I2C_Read... [11:08:57]*** Stop cut motor [11:08:57]*** Cut end [11:08:57]Read from MH i2c: 01 07 00 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: 01 07 00 21 25 00 00 00 00 00 FF 0F 5B [11:08:57]process_action close_receipt done [11:08:57]requested_data is exist [11:08:57]produce_requested_data [11:08:57]requested_item fm.sn is exist - process it [11:08:57]wFMCommunicate request_size=4 [11:08:57]MH_SAM_APDU [11:08:57]CAPDU: 80 11 00 00 [11:08:57]Write to MH i2c: E2 08 00 22 25 80 11 00 00 00 00 00 00 C1 [11:08:57]Write i2c OK [11:08:57]MH_I2C_Read... [11:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:57]Read from MH i2c: E2 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: E2 17 00 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: E2 17 00 22 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 18 [11:08: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:08:57]wFMCommunicate OK [11:08:57]requested_item fd.num is exist - process it [11:08:57]SAM_PROTO_GetFieldsCounters [11:08:57]wFMCommunicate request_size=4 [11:08:57]MH_SAM_APDU [11:08:57]CAPDU: 80 13 00 00 [11:08:57]Write to MH i2c: E2 08 00 23 25 80 13 00 00 00 00 00 00 C4 [11:08:57]Write i2c OK [11:08:57]MH_I2C_Read... [11:08:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:58]Read from MH i2c: E2 [11:08:58]MH_I2C_Read... [11:08:58]Read from MH i2c: E2 62 00 [11:08:58]MH_I2C_Read... [11:08:58]Read from MH i2c: E2 62 00 23 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 62 [11:08: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 A1 E2 01 00 0E 04 04 00 2F 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 [11:08:58]wFMCommunicate OK [11:08:58]SAM_PROTO_GetFieldsCounters done [11:08:58]requested_item shift.num is exist - process it [11:08:58]requested_item shift.opened is exist - process it [11:08:58]req_shift_opened [11:08:58]FM_GetShiftState [11:08:58]SAM_PROTO_GetShiftState [11:08:58]wFMCommunicate request_size=4 [11:08:58]MH_SAM_APDU [11:08:58]CAPDU: 80 13 01 00 [11:08:58]Write to MH i2c: E2 08 00 24 25 80 13 01 00 00 00 00 00 C6 [11:08:58]Write i2c OK [11:08:58]MH_I2C_Read... [11:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:58]Read from MH i2c: E2 [11:08:58]MH_I2C_Read... [11:08:58]Read from MH i2c: E2 0E 00 [11:08:58]MH_I2C_Read... [11:08:58]Read from MH i2c: E2 0E 00 24 25 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 CD [11:08:58]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:08:58]wFMCommunicate OK [11:08:58]SAM_PROTO_GetShiftState done [11:08:58]FM_GetShiftState done [11:08:58]req_shift_opened done [11:08:58]requested_item shift.open_date is exist - process it [11:08:58]req_shift_open_date [11:08:58]req_shift_open_date done [11:08:58]produce_requested_data done [11:08:58]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123553,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [11:08:58]process_action_free close_receipt [11:08:58]json_value_free [11:08:58]json_value_free done [11:08:58]process_json_proto returns [11:08:58]Send response to host [11:08:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123553,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [11:08:58]free response buf [11:08:58]execute_script done [11:08:58]execute_script returns [11:08:58]free content buf [11:08:58]Sock 9.Close socket [11:08:58]Sock 9.Thread stoped [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:23]accept exits with 8 [11:16:23]New connection [11:16:23]New thread 3066719588 created [11:16:23]Thread 3066862948 joined [11:16:23]Waiting for new connection... [11:16:23] Sock 8.Parse request [11:16:23]Sock 8.Check first char [11:16:23]Sock 8.First char is OK [11:16:23]request: POST /json_proto HTTP/1.0 [11:16:23]Method: POST [11:16:23]URL: /json_proto [11:16:23]Method is POST - this is cgi request [11:16:23]url: /json_proto [11:16:23]query_string will be loaded in cgi processing [11:16:23]execute_cgi json_proto POST (null) [11:16:23]execute_cgi path=json_proto method=POST [11:16:23]POST find Content-Length [11:16:23]Host: 172.17.37.4:8080 [11:16:23]Content-Length: 677 [11:16:23]Content-Type: application/json [11:16:23] [11:16:23]POST finish read [11:16:23]Found Content-Length = 677 [11:16:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718391", "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:16:23]execute_script... [11:16: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)718391", "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:16:23]POST & json_proto [11:16:23]process_json_proto [11:16:23]json parsed OK: [11:16:23]protocol is kg_v1.0 [11:16:23]action value=close_receipt [11:16:23]process_action close_receipt [11:16:23]cmd_close_receipt [11:16:23]MH_GetDate [11:16:23]Write to MH i2c: F0 00 00 25 25 39 [11:16:23]Write i2c OK [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: F0 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: F0 09 00 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: F0 09 00 25 25 00 0C 51 48 67 1D 3A 47 67 53 [11:16:23]GetLastDocTimeStamp 1732792138 [11:16:23]current date 1732792588 [11:16:23]FM_GetShiftState [11:16:23]SAM_PROTO_GetShiftState [11:16:23]wFMCommunicate request_size=4 [11:16:23]MH_SAM_APDU [11:16:23]CAPDU: 80 13 01 00 [11:16:23]Write to MH i2c: E2 08 00 26 25 80 13 01 00 00 00 00 00 C8 [11:16:23]Write i2c OK [11:16:23]MH_I2C_Read... [11:16:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:23]Read from MH i2c: E2 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: E2 0E 00 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: E2 0E 00 26 25 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 CF [11:16:23]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:16:23]wFMCommunicate OK [11:16:23]SAM_PROTO_GetShiftState done [11:16:23]FM_GetShiftState done [11:16:23]opened in 1732752282 [11:16:23]opened+sec_in_day 1732838682 [11:16:23]quantity*price = 50010 [11:16:23]sum+1 = 50012 [11:16:23]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 СНО: Общий режим Чек 66 28.11.2024 11:16 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123554 ФПД: 55420745309132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T111628&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123554&fm=55420745309132&tin=02508201610067®Number=0000000000092681&sum=50000 [11:16:24]StoreToDocumentArchive [11:16:24]shift 559 fd 123554 [11:16:24]save to /storage/0559/doc_00123554 [11:16:24]save last doc name /storage/0559/doc_00123554 to /storage/kkm_last_doc_name [11:16:24]save OK [11:16:24]Clear old archive folders... [11:16:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:24]tlvbuf is 01490AE0 [11:16:24]SAM_PROTO_ClearQueue [11:16:24]wFMCommunicate request_size=4 [11:16:24]MH_SAM_APDU [11:16:24]CAPDU: 80 09 00 00 [11:16:24]Write to MH i2c: E2 08 00 33 25 80 09 00 00 00 00 00 00 CA [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:24]Read from MH i2c: E2 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 03 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 03 00 33 25 00 90 00 CC [11:16:24]RAPDU: 90 00 [11:16:24]wFMCommunicate OK [11:16:24]SAM_PROTO_ClearQueue done [11:16:24]KKMCreateOFDPacket [11:16:24]OFDProtocolAddRootSTLVToBuf [11:16:24]FM_MakeSignedData [11:16:24]FM_MakeSignedData [11:16:24]SAM_PROTO_SignData [11:16:24]wFMCommunicate request_size=4 [11:16:24]MH_SAM_APDU [11:16:24]CAPDU: 80 0D 01 02 [11:16:24]Write to MH i2c: E2 08 00 34 25 80 0D 01 02 00 00 00 00 D2 [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:24]Read from MH i2c: E2 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 03 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 03 00 34 25 00 90 00 CD [11:16:24]RAPDU: 90 00 [11:16:24]wFMCommunicate OK [11:16:24]wFMCommunicate request_size=255 [11:16:24]MH_SAM_APDU [11:16: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 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 42 00 00 00 F4 03 04 00 0C 51 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 32 [11:16:24]Write to MH i2c: E2 02 01 35 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 42 00 00 00 F4 03 04 00 0C 51 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 32 00 00 6F [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 03 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 03 00 35 25 00 90 00 CE [11:16:25]RAPDU: 90 00 [11:16:25]wFMCommunicate OK [11:16:25]wFMCommunicate request_size=10 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 0D 02 02 05 67 A5 D6 5B CC [11:16:25]Write to MH i2c: E2 0D 00 36 25 80 0D 02 02 05 00 67 A5 D6 5B CC 00 00 E8 [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 03 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 03 00 36 25 00 90 00 CF [11:16:25]RAPDU: 90 00 [11:16:25]wFMCommunicate OK [11:16:25]wFMCommunicate request_size=4 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 0D 03 02 [11:16:25]Write to MH i2c: E2 08 00 37 25 80 0D 03 02 00 00 00 00 D7 [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 0B 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 0B 00 37 25 00 A7 E9 36 93 2B 1C 4C 5D 90 00 21 [11:16:25]RAPDU: A7 E9 36 93 2B 1C 4C 5D 90 00 [11:16:25]wFMCommunicate OK [11:16:25]SAM_PROTO_SignData done [11:16:25]FM_MakeSignedData done [11:16:25]CreateOFDProtocolMessage [11:16:25]wFMCommunicate request_size=4 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 11 00 00 [11:16:25]Write to MH i2c: E2 08 00 38 25 80 11 00 00 00 00 00 00 D7 [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 17 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 17 00 38 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2E [11: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 [11:16:25]wFMCommunicate OK [11:16:25]CreateOFDProtocolMessage done [11:16:25]OFDSenderStorePacket 123554 [11:16:25]StoreOFDPacket docnum=123554 [11:16: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 F6 F3 07 01 47 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 42 00 00 00 F4 03 04 00 0C 51 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 32 67 A5 D6 5B CC A7 E9 36 93 2B 1C 4C 5D [11:16:25]CheckFolder [11:16:25]dirname=/storage/ofd_packets [11:16:25]CheckFolder done [11:16:25]ProducePacketName [11:16:25]name=ofd_packets/00123554 [11:16:25]NVStorageSaveData ofd_packets/00123554 [11:16:25]File name is /storage/ofd_packets/00123554 [11:16:25]Write 301 bytes [11:16:25]NVStorageSaveData done [11:16:25]OFDSenderStorePacket done [11:16:25]KKMCreateOFDPacket done [11:16:25]NVStorageSaveData kkm_last_timestamp [11:16:25]File name is /storage/kkm_last_timestamp [11:16:25]Write 4 bytes [11:16:25]NVStorageSaveData done [11:16:25]ExternCall_PrintAddStr [11:16:25]wPrintStart [11:16:25]Write to MH i2c: 01 00 00 39 25 5E [11:16:25]OFD Sender: Processing packet 123554 [packets to send 7, broken 6] [11:16:25]ProducePacketName [11:16:25]name=ofd_packets/00123554 [11:16:25]OFD Sender: To server: pG, [11:16:25]CommunicateWithHost lk.salyk.kg:30040 [11:16:25]ConnectInit lk.salyk.kg [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: 01 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: 01 07 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: 01 07 00 39 25 00 00 00 00 00 FF 0F 73 [11:16:25]RasterBufferAndPrint [11:16:25]line Счет N : (1)718391 [11:16:25]line ИНН: 02508201610067 [11:16:25]line Контрольно-Кассовый Чек [11:16:25]line ПРОДАЖА [11:16:25]line ТРК (МРК, ГНК) : 12 [11:16:25]line Товар: 2710124130 [11:16:25]line Аи-92-К-4 [11:16:25]line 7.420 * 67.40 [11:16:25]line = 500.11 [11:16:25]line НДС 12% НСП 1% [11:16:25]line > о реализуемом товаре [11:16:25]line ОКРУГЛЕНИЕ: -0.11 [11:16:25]line ИТОГО: 500.00 [11:16:25]line Внесено: 500.00 [11:16:25]line СДАЧА: 0.00 [11:16:25]line НСП 1% : 4.43 [11:16:25]line НДС 12% : 53.11 [11:16:25]line Наличными: 500.00 [11:16:25]line Безнал.: 0.00 [11:16:25]line Место: АЗС № 64 "Партнер Нефть" [11:16:25]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:16:25]line СНО: Общий режим [11:16:25]line Чек 66 28.11.2024 11:16 [11:16:25]line Смена: 559 ФФД: 1.0 [11:16:25]line ЗНМ: 0300000033 [11:16:25]line РНМ: 0000000000092681 [11:16:25]line Версия ККМ: 001 [11:16:25]line ФМ: 0000000000874881 [11:16:25]line ФД: 123554 [11:16:25]line ФПД: 55420745309132 [11:16:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T111628&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123554&fm=55420745309132&tin=02508201610067®Number=0000000000092681&sum=50000 [11:16:25]Connected sock=10 [11:16: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 F6 F3 07 01 47 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 42 00 00 00 F4 03 04 00 0C 51 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 32 67 A5 D6 5B CC A7 E9 36 93 2B 1C 4C 5D [11:16:25]written 0, free lines is 4095 [11:16: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 F8 B9 47 00 A5 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 A2 E2 01 00 F4 03 04 00 D2 FC 47 67 B6 04 01 00 00 5D C5 8B FB 52 03 1B A3 [11:16:25]CommunicateWithHost err = 0 [11:16:25]CheckOFDResponse [11:16:25]1017 (14) - 77093643461234 [11:16:25]1041 (16) - 0000000000874881 [11:16:25]1040 (4) - 123554 [11:16:25]1012 (4) - 28.11.2024 05:17 [11:16:25]1206 (1) - 0 [11:16:25]OFD Sender: Remove packet 123554 [11:16:25]ProducePacketName [11:16:25]name=ofd_packets/00123554 [11:16:25]NVStorageDeleteData [11:16:26]Write to MH i2c: 01 00 00 64 25 89 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: 01 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: 01 07 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: 01 07 00 64 25 00 00 00 00 00 4F 0C EB [11:16:26]RasterBufferAndPrint [11:16:26]line [11:16:26]line [11:16:26]line [11:16:26]line [11:16:26]line [11:16:26]written 0, free lines is 3154 [11:16:26]MH_Cut [11:16:26]Write to MH i2c: D1 01 00 6B 25 01 62 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: D1 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: D1 01 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: D1 01 00 6B 25 00 61 [11:16:26]Write to MH i2c: 01 00 00 6C 25 91 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]OFD Sender: No OFD packet to send [11:16:27]*** Cut start [11:16:27]*** Partial cut [11:16:27]*** CUTSNS_PIN = 1 [11:16:27]*** CUTSNS_PIN = 0 [11:16:27]*** Brake cut motor [11:16:28]Read from MH i2c: 01 [11:16:28]MH_I2C_Read... [11:16:28]*** Stop cut motor [11:16:28]*** Cut end [11:16:28]Read from MH i2c: 01 07 00 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: 01 07 00 6C 25 00 00 00 00 00 FF 0F A6 [11:16:28]process_action close_receipt done [11:16:28]requested_data is exist [11:16:28]produce_requested_data [11:16:28]requested_item fm.sn is exist - process it [11:16:28]wFMCommunicate request_size=4 [11:16:28]MH_SAM_APDU [11:16:28]CAPDU: 80 11 00 00 [11:16:28]Write to MH i2c: E2 08 00 6D 25 80 11 00 00 00 00 00 00 0C [11:16:28]Write i2c OK [11:16:28]MH_I2C_Read... [11:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:28]Read from MH i2c: E2 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 17 00 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 17 00 6D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 63 [11:16:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:16:28]wFMCommunicate OK [11:16:28]requested_item fd.num is exist - process it [11:16:28]SAM_PROTO_GetFieldsCounters [11:16:28]wFMCommunicate request_size=4 [11:16:28]MH_SAM_APDU [11:16:28]CAPDU: 80 13 00 00 [11:16:28]Write to MH i2c: E2 08 00 6E 25 80 13 00 00 00 00 00 00 0F [11:16:28]Write i2c OK [11:16:28]MH_I2C_Read... [11:16:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:28]Read from MH i2c: E2 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 62 00 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 62 00 6E 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 B1 [11:16: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 A2 E2 01 00 0E 04 04 00 2F 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 [11:16:28]wFMCommunicate OK [11:16:28]SAM_PROTO_GetFieldsCounters done [11:16:28]requested_item shift.num is exist - process it [11:16:28]requested_item shift.opened is exist - process it [11:16:28]req_shift_opened [11:16:28]FM_GetShiftState [11:16:28]SAM_PROTO_GetShiftState [11:16:28]wFMCommunicate request_size=4 [11:16:28]MH_SAM_APDU [11:16:28]CAPDU: 80 13 01 00 [11:16:28]Write to MH i2c: E2 08 00 6F 25 80 13 01 00 00 00 00 00 11 [11:16:28]Write i2c OK [11:16:28]MH_I2C_Read... [11:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:28]Read from MH i2c: E2 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 0E 00 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 0E 00 6F 25 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 18 [11:16:28]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:16:28]wFMCommunicate OK [11:16:28]SAM_PROTO_GetShiftState done [11:16:28]FM_GetShiftState done [11:16:28]req_shift_opened done [11:16:28]requested_item shift.open_date is exist - process it [11:16:28]req_shift_open_date [11:16:28]req_shift_open_date done [11:16:28]produce_requested_data done [11:16:28]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123554,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [11:16:28]process_action_free close_receipt [11:16:28]json_value_free [11:16:28]json_value_free done [11:16:28]process_json_proto returns [11:16:28]Send response to host [11:16:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123554,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [11:16:28]free response buf [11:16:28]execute_script done [11:16:28]execute_script returns [11:16:28]free content buf [11:16:28]Sock 8.Close socket [11:16:28]Sock 8.Thread stoped [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:08]accept exits with 9 [11:20:08]New connection [11:20:08]New thread 3066862948 created [11:20:08]Thread 3066719588 joined [11:20:08]Waiting for new connection... [11:20:08] Sock 9.Parse request [11:20:08]Sock 9.Check first char [11:20:08]Sock 9.First char is OK [11:20:08]request: POST /json_proto HTTP/1.0 [11:20:08]Method: POST [11:20:08]URL: /json_proto [11:20:08]Method is POST - this is cgi request [11:20:08]url: /json_proto [11:20:08]query_string will be loaded in cgi processing [11:20:08]execute_cgi json_proto POST (null) [11:20:08]execute_cgi path=json_proto method=POST [11:20:08]POST find Content-Length [11:20:08]Host: 172.17.37.4:8080 [11:20:08]Content-Length: 803 [11:20:08]Content-Type: application/json [11:20:08] [11:20:08]POST finish read [11:20:08]Found Content-Length = 803 [11:20:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718392", "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" : 17.810, "sum" : 1200.39, "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" : 1200.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:08]execute_script... [11:20: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)718392", "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" : 17.810, "sum" : 1200.39, "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" : 1200.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:08]POST & json_proto [11:20:08]process_json_proto [11:20:08]json parsed OK: [11:20:08]protocol is kg_v1.0 [11:20:08]action value=close_receipt [11:20:08]process_action close_receipt [11:20:08]cmd_close_receipt [11:20:08]MH_GetDate [11:20:08]Write to MH i2c: F0 00 00 70 25 84 [11:20:08]Write i2c OK [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: F0 [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: F0 09 00 [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: F0 09 00 70 25 00 EC 51 48 67 1D 3A 47 67 7E [11:20:08]GetLastDocTimeStamp 1732792588 [11:20:08]current date 1732792812 [11:20:08]FM_GetShiftState [11:20:08]SAM_PROTO_GetShiftState [11:20:08]wFMCommunicate request_size=4 [11:20:08]MH_SAM_APDU [11:20:08]CAPDU: 80 13 01 00 [11:20:08]Write to MH i2c: E2 08 00 71 25 80 13 01 00 00 00 00 00 13 [11:20:08]Write i2c OK [11:20:08]MH_I2C_Read... [11:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:08]Read from MH i2c: E2 [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: E2 0E 00 [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: E2 0E 00 71 25 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 1A [11:20:08]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:20:08]wFMCommunicate OK [11:20:08]SAM_PROTO_GetShiftState done [11:20:08]FM_GetShiftState done [11:20:08]opened in 1732752282 [11:20:08]opened+sec_in_day 1732838682 [11:20:08]quantity*price = 120039 [11:20:08]sum+1 = 120040 [11:20:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.39 НСП 1% : 10.62 НДС 12% : 127.47 Наличными: 0.00 Безнал.: 1200.39 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 67 28.11.2024 11:20 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123555 ФПД: 201501738401313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T112012&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123555&fm=201501738401313&tin=02508201610067®Number=0000000000092681&sum=120039 [11:20:09]StoreToDocumentArchive [11:20:09]shift 559 fd 123555 [11:20:09]save to /storage/0559/doc_00123555 [11:20:09]save last doc name /storage/0559/doc_00123555 to /storage/kkm_last_doc_name [11:20:09]save OK [11:20:09]Clear old archive folders... [11:20:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:20:09]tlvbuf is 014E0CE0 [11:20:09]SAM_PROTO_ClearQueue [11:20:09]wFMCommunicate request_size=4 [11:20:09]MH_SAM_APDU [11:20:09]CAPDU: 80 09 00 00 [11:20:09]Write to MH i2c: E2 08 00 7E 25 80 09 00 00 00 00 00 00 15 [11:20:09]Write i2c OK [11:20:09]MH_I2C_Read... [11:20:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:09]Read from MH i2c: E2 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 03 00 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 03 00 7E 25 00 90 00 17 [11:20:09]RAPDU: 90 00 [11:20:09]wFMCommunicate OK [11:20:09]SAM_PROTO_ClearQueue done [11:20:09]KKMCreateOFDPacket [11:20:09]OFDProtocolAddRootSTLVToBuf [11:20:09]FM_MakeSignedData [11:20:09]FM_MakeSignedData [11:20:09]SAM_PROTO_SignData [11:20:09]wFMCommunicate request_size=4 [11:20:09]MH_SAM_APDU [11:20:09]CAPDU: 80 0D 01 02 [11:20:09]Write to MH i2c: E2 08 00 7F 25 80 0D 01 02 00 00 00 00 1D [11:20:09]Write i2c OK [11:20:09]MH_I2C_Read... [11:20:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:09]Read from MH i2c: E2 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 03 00 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 03 00 7F 25 00 90 00 18 [11:20:09]RAPDU: 90 00 [11:20:09]wFMCommunicate OK [11:20:09]wFMCommunicate request_size=255 [11:20:09]MH_SAM_APDU [11:20: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 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 E7 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 00 00 00 00 00 00 39 04 06 00 E7 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 EC 51 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B7 [11:20:09]Write to MH i2c: E2 02 01 80 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 E7 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 00 00 00 00 00 00 39 04 06 00 E7 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 EC 51 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B7 00 00 67 [11:20:09]Write i2c OK [11:20:09]MH_I2C_Read... [11:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:09]Read from MH i2c: E2 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 03 00 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 03 00 80 25 00 90 00 19 [11:20:09]RAPDU: 90 00 [11:20:09]wFMCommunicate OK [11:20:09]wFMCommunicate request_size=10 [11:20:09]MH_SAM_APDU [11:20:09]CAPDU: 80 0D 02 02 05 43 C7 89 FE 21 [11:20:09]Write to MH i2c: E2 0D 00 81 25 80 0D 02 02 05 00 43 C7 89 FE 21 00 00 DC [11:20:09]Write i2c OK [11:20:09]MH_I2C_Read... [11:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:09]Read from MH i2c: E2 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 03 00 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 03 00 81 25 00 90 00 1A [11:20:09]RAPDU: 90 00 [11:20:09]wFMCommunicate OK [11:20:09]wFMCommunicate request_size=4 [11:20:09]MH_SAM_APDU [11:20:09]CAPDU: 80 0D 03 02 [11:20:09]Write to MH i2c: E2 08 00 82 25 80 0D 03 02 00 00 00 00 22 [11:20:09]Write i2c OK [11:20:09]MH_I2C_Read... [11:20:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:09]Read from MH i2c: E2 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 0B 00 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 0B 00 82 25 00 B5 39 44 34 12 D9 EC 49 90 00 A9 [11:20:09]RAPDU: B5 39 44 34 12 D9 EC 49 90 00 [11:20:09]wFMCommunicate OK [11:20:09]SAM_PROTO_SignData done [11:20:09]FM_MakeSignedData done [11:20:09]CreateOFDProtocolMessage [11:20:09]wFMCommunicate request_size=4 [11:20:09]MH_SAM_APDU [11:20:09]CAPDU: 80 11 00 00 [11:20:09]Write to MH i2c: E2 08 00 83 25 80 11 00 00 00 00 00 00 22 [11:20:09]Write i2c OK [11:20:09]MH_I2C_Read... [11:20:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:09]Read from MH i2c: E2 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 17 00 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 17 00 83 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 79 [11:20:09]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:09]wFMCommunicate OK [11:20:09]CreateOFDProtocolMessage done [11:20:09]OFDSenderStorePacket 123555 [11:20:09]StoreOFDPacket docnum=123555 [11:20: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 5D 86 07 01 B3 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 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 E7 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 00 00 00 00 00 00 39 04 06 00 E7 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 EC 51 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B7 43 C7 89 FE 21 B5 39 44 34 12 D9 EC 49 [11:20:09]CheckFolder [11:20:09]dirname=/storage/ofd_packets [11:20:09]CheckFolder done [11:20:09]ProducePacketName [11:20:09]name=ofd_packets/00123555 [11:20:09]NVStorageSaveData ofd_packets/00123555 [11:20:09]File name is /storage/ofd_packets/00123555 [11:20:09]Write 301 bytes [11:20:09]NVStorageSaveData done [11:20:09]OFDSenderStorePacket done [11:20:09]KKMCreateOFDPacket done [11:20:09]NVStorageSaveData kkm_last_timestamp [11:20:09]File name is /storage/kkm_last_timestamp [11:20:09]Write 4 bytes [11:20:09]NVStorageSaveData done [11:20:09]ExternCall_PrintAddStr [11:20:09]wPrintStart [11:20:09]Write to MH i2c: 01 00 00 84 25 A9 [11:20:09]Write i2c OK [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: 01 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: 01 07 00 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: 01 07 00 84 25 00 00 00 00 00 FF 0F BE [11:20:09]RasterBufferAndPrint [11:20:09]line Счет N : (1)718392 [11:20:09]line ИНН: 02508201610067 [11:20:09]line Контрольно-Кассовый Чек [11:20:09]line ПРОДАЖА [11:20:09]line ТРК (МРК, ГНК) : 12 [11:20:09]line Товар: 2710124130 [11:20:09]line Аи-92-К-4 [11:20:09]line 17.810 * 67.40 [11:20:09]line = 1200.39 [11:20:09]line НДС 12% НСП 1% [11:20:09]line > о реализуемом товаре [11:20:09]line ИТОГО: 1200.39 [11:20:09]line НСП 1% : 10.62 [11:20:09]line НДС 12% : 127.47 [11:20:09]line Наличными: 0.00 [11:20:09]line Безнал.: 1200.39 [11:20:09]line Место: АЗС № 64 "Партнер Нефть" [11:20:09]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:20:09]line СНО: Общий режим [11:20:09]line Чек 67 28.11.2024 11:20 [11:20:09]line Смена: 559 ФФД: 1.0 [11:20:09]line ЗНМ: 0300000033 [11:20:09]line РНМ: 0000000000092681 [11:20:10]line Версия ККМ: 001 [11:20:10]line Платежная система: O! деньги [11:20:10]line ФМ: 0000000000874881 [11:20:10]line ФД: 123555 [11:20:10]line ФПД: 201501738401313 [11:20:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T112012&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123555&fm=201501738401313&tin=02508201610067®Number=0000000000092681&sum=120039 [11:20:10]written 0, free lines is 4095 [11:20:10]OFD Sender: Processing packet 123555 [packets to send 7, broken 6] [11:20:10]ProducePacketName [11:20:10]name=ofd_packets/00123555 [11:20:10]OFD Sender: To server: pG, [11:20:10]CommunicateWithHost lk.salyk.kg:30040 [11:20:10]ConnectInit lk.salyk.kg [11:20:10]Connected sock=10 [11:20: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 5D 86 07 01 B3 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 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 E7 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 00 00 00 00 00 00 39 04 06 00 E7 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 EC 51 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B7 43 C7 89 FE 21 B5 39 44 34 12 D9 EC 49 [11:20: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 86 34 47 00 F2 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A3 E2 01 00 F4 03 04 00 B3 FD 47 67 B6 04 01 00 00 30 BC 09 F6 EF EF 75 8B [11:20:10]CommunicateWithHost err = 0 [11:20:10]CheckOFDResponse [11:20:10]1017 (14) - 77093643461234 [11:20:10]1041 (16) - 0000000000874881 [11:20:10]1040 (4) - 123555 [11:20:10]1012 (4) - 28.11.2024 05:20 [11:20:10]1206 (1) - 0 [11:20:10]OFD Sender: Remove packet 123555 [11:20:10]ProducePacketName [11:20:10]name=ofd_packets/00123555 [11:20:10]NVStorageDeleteData [11:20:10]Write to MH i2c: 01 00 00 AE 25 D3 [11:20:10]Write i2c OK [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: 01 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: 01 07 00 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: 01 07 00 AE 25 00 00 00 00 00 72 0C 58 [11:20:10]RasterBufferAndPrint [11:20:10]line [11:20:10]line [11:20:10]line [11:20:10]line [11:20:10]line [11:20:10]written 0, free lines is 3189 [11:20:10]MH_Cut [11:20:10]Write to MH i2c: D1 01 00 B5 25 01 AC [11:20:10]Write i2c OK [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: D1 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: D1 01 00 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: D1 01 00 B5 25 00 AB [11:20:10]Write to MH i2c: 01 00 00 B6 25 DB [11:20:10]Write i2c OK [11:20:10]MH_I2C_Read... [11:20:11]OFD Sender: No OFD packet to send [11:20:12]*** Cut start [11:20:12]*** Partial cut [11:20:12]*** CUTSNS_PIN = 1 [11:20:12]*** CUTSNS_PIN = 0 [11:20:12]*** Brake cut motor [11:20:12]Read from MH i2c: 01 [11:20:12]MH_I2C_Read... [11:20:12]*** Stop cut motor [11:20:12]*** Cut end [11:20:12]Read from MH i2c: 01 07 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: 01 07 00 B6 25 00 00 00 00 00 FF 0F F0 [11:20:12]process_action close_receipt done [11:20:12]requested_data is exist [11:20:12]produce_requested_data [11:20:12]requested_item fm.sn is exist - process it [11:20:12]wFMCommunicate request_size=4 [11:20:12]MH_SAM_APDU [11:20:12]CAPDU: 80 11 00 00 [11:20:12]Write to MH i2c: E2 08 00 B7 25 80 11 00 00 00 00 00 00 56 [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:12]Read from MH i2c: E2 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 17 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 17 00 B7 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AD [11:20: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:20:12]wFMCommunicate OK [11:20:12]requested_item fd.num is exist - process it [11:20:12]SAM_PROTO_GetFieldsCounters [11:20:12]wFMCommunicate request_size=4 [11:20:12]MH_SAM_APDU [11:20:12]CAPDU: 80 13 00 00 [11:20:12]Write to MH i2c: E2 08 00 B8 25 80 13 00 00 00 00 00 00 59 [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:12]Read from MH i2c: E2 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 62 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 62 00 B8 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 FF [11:20: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 A3 E2 01 00 0E 04 04 00 2F 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 [11:20:12]wFMCommunicate OK [11:20:13]SAM_PROTO_GetFieldsCounters done [11:20:13]requested_item shift.num is exist - process it [11:20:13]requested_item shift.opened is exist - process it [11:20:13]req_shift_opened [11:20:13]FM_GetShiftState [11:20:13]SAM_PROTO_GetShiftState [11:20:13]wFMCommunicate request_size=4 [11:20:13]MH_SAM_APDU [11:20:13]CAPDU: 80 13 01 00 [11:20:13]Write to MH i2c: E2 08 00 B9 25 80 13 01 00 00 00 00 00 5B [11:20:13]Write i2c OK [11:20:13]MH_I2C_Read... [11:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:13]Read from MH i2c: E2 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 0E 00 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 0E 00 B9 25 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 62 [11:20:13]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:20:13]wFMCommunicate OK [11:20:13]SAM_PROTO_GetShiftState done [11:20:13]FM_GetShiftState done [11:20:13]req_shift_opened done [11:20:13]requested_item shift.open_date is exist - process it [11:20:13]req_shift_open_date [11:20:13]req_shift_open_date done [11:20:13]produce_requested_data done [11:20:13]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123555,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [11:20:13]process_action_free close_receipt [11:20:13]json_value_free [11:20:13]json_value_free done [11:20:13]process_json_proto returns [11:20:13]Send response to host [11:20:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123555,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [11:20:13]free response buf [11:20:13]execute_script done [11:20:13]execute_script returns [11:20:13]free content buf [11:20:13]Sock 9.Close socket [11:20:13]Sock 9.Thread stoped [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:53]accept exits with 8 [11:22:53]New connection [11:22:53]New thread 3066719588 created [11:22:53]Thread 3066862948 joined [11:22:53]Waiting for new connection... [11:22:53] Sock 8.Parse request [11:22:53]Sock 8.Check first char [11:22:53]Sock 8.First char is OK [11:22:53]request: POST /json_proto HTTP/1.0 [11:22:53]Method: POST [11:22:53]URL: /json_proto [11:22:53]Method is POST - this is cgi request [11:22:53]url: /json_proto [11:22:53]query_string will be loaded in cgi processing [11:22:53]execute_cgi json_proto POST (null) [11:22:53]execute_cgi path=json_proto method=POST [11:22:53]POST find Content-Length [11:22:53]Host: 172.17.37.4:8080 [11:22:53]Content-Length: 758 [11:22:53]Content-Type: application/json [11:22:53] [11:22:53]POST finish read [11:22:53]Found Content-Length = 758 [11:22:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718393", "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\u000A30131025", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:53]execute_script... [11:22: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)718393", "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\u000A30131025", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:53]POST & json_proto [11:22:53]process_json_proto [11:22:53]json parsed OK: [11:22:53]protocol is kg_v1.0 [11:22:53]action value=close_receipt [11:22:53]process_action close_receipt [11:22:53]cmd_close_receipt [11:22:53]MH_GetDate [11:22:53]Write to MH i2c: F0 00 00 BA 25 CE [11:22:53]Write i2c OK [11:22:53]MH_I2C_Read... [11:22:53]Read from MH i2c: F0 [11:22:53]MH_I2C_Read... [11:22:53]Read from MH i2c: F0 09 00 [11:22:53]MH_I2C_Read... [11:22:53]Read from MH i2c: F0 09 00 BA 25 00 91 52 48 67 1D 3A 47 67 6E [11:22:53]GetLastDocTimeStamp 1732792812 [11:22:53]current date 1732792977 [11:22:53]FM_GetShiftState [11:22:53]SAM_PROTO_GetShiftState [11:22:53]wFMCommunicate request_size=4 [11:22:53]MH_SAM_APDU [11:22:53]CAPDU: 80 13 01 00 [11:22:53]Write to MH i2c: E2 08 00 BB 25 80 13 01 00 00 00 00 00 5D [11:22:53]Write i2c OK [11:22:53]MH_I2C_Read... [11:22:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:53]Read from MH i2c: E2 [11:22:53]MH_I2C_Read... [11:22:53]Read from MH i2c: E2 0E 00 [11:22:53]MH_I2C_Read... [11:22:53]Read from MH i2c: E2 0E 00 BB 25 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 64 [11:22:53]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:22:53]wFMCommunicate OK [11:22:53]SAM_PROTO_GetShiftState done [11:22:53]FM_GetShiftState done [11:22:53]opened in 1732752282 [11:22:53]opened+sec_in_day 1732838682 [11:22:53]quantity*price = 0 [11:22:53]sum+1 = 1 [11:22:53]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 СНО: Общий режим Чек 68 28.11.2024 11:22 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: ТК ГПНА Online 30131025 ФМ: 0000000000874881 ФД: 123556 ФПД: 152075464624277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T112257&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123556&fm=152075464624277&tin=02508201610067®Number=0000000000092681&sum=0 [11:22:54]StoreToDocumentArchive [11:22:54]shift 559 fd 123556 [11:22:54]save to /storage/0559/doc_00123556 [11:22:54]save last doc name /storage/0559/doc_00123556 to /storage/kkm_last_doc_name [11:22:54]save OK [11:22:54]Clear old archive folders... [11:22:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:22:54]tlvbuf is 01490820 [11:22:54]SAM_PROTO_ClearQueue [11:22:54]wFMCommunicate request_size=4 [11:22:54]MH_SAM_APDU [11:22:54]CAPDU: 80 09 00 00 [11:22:54]Write to MH i2c: E2 08 00 C8 25 80 09 00 00 00 00 00 00 5F [11:22:54]Write i2c OK [11:22:54]MH_I2C_Read... [11:22:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:54]Read from MH i2c: E2 [11:22:54]MH_I2C_Read... [11:22:54]Read from MH i2c: E2 03 00 [11:22:54]MH_I2C_Read... [11:22:54]Read from MH i2c: E2 03 00 C8 25 00 90 00 61 [11:22:54]RAPDU: 90 00 [11:22:54]wFMCommunicate OK [11:22:54]SAM_PROTO_ClearQueue done [11:22:54]KKMCreateOFDPacket [11:22:54]OFDProtocolAddRootSTLVToBuf [11:22:54]FM_MakeSignedData [11:22:54]FM_MakeSignedData [11:22:54]SAM_PROTO_SignData [11:22:54]wFMCommunicate request_size=4 [11:22:54]MH_SAM_APDU [11:22:54]CAPDU: 80 0D 01 02 [11:22:54]Write to MH i2c: E2 08 00 C9 25 80 0D 01 02 00 00 00 00 67 [11:22:54]Write i2c OK [11:22:54]MH_I2C_Read... [11:22:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:54]Read from MH i2c: E2 [11:22:54]MH_I2C_Read... [11:22:54]Read from MH i2c: E2 03 00 [11:22:54]MH_I2C_Read... [11:22:54]Read from MH i2c: E2 03 00 C9 25 00 90 00 62 [11:22:54]RAPDU: 90 00 [11:22:54]wFMCommunicate OK [11:22:54]wFMCommunicate request_size=255 [11:22:54]MH_SAM_APDU [11:22:54]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 44 00 00 00 F4 03 04 00 91 52 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 [11:22:54]Write to MH i2c: E2 02 01 CA 25 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 44 00 00 00 F4 03 04 00 91 52 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 00 00 52 [11:22:54]Write i2c OK [11:22:54]MH_I2C_Read... [11:22:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:54]Read from MH i2c: E2 [11:22:54]MH_I2C_Read... [11:22:54]Read from MH i2c: E2 03 00 [11:22:54]MH_I2C_Read... [11:22:54]Read from MH i2c: E2 03 00 CA 25 00 90 00 63 [11:22:54]RAPDU: 90 00 [11:22:54]wFMCommunicate OK [11:22:54]wFMCommunicate request_size=11 [11:22:54]MH_SAM_APDU [11:22:54]CAPDU: 80 0D 02 02 06 8A 4F D4 0C 48 95 [11:22:54]Write to MH i2c: E2 0E 00 CB 25 80 0D 02 02 06 00 8A 4F D4 0C 48 95 00 00 0C [11:22:54]Write i2c OK [11:22:54]MH_I2C_Read... [11:22:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:54]Read from MH i2c: E2 [11:22:54]MH_I2C_Read... [11:22:54]Read from MH i2c: E2 03 00 [11:22:54]MH_I2C_Read... [11:22:54]Read from MH i2c: E2 03 00 CB 25 00 90 00 64 [11:22:54]RAPDU: 90 00 [11:22:54]wFMCommunicate OK [11:22:54]wFMCommunicate request_size=4 [11:22:54]MH_SAM_APDU [11:22:54]CAPDU: 80 0D 03 02 [11:22:54]Write to MH i2c: E2 08 00 CC 25 80 0D 03 02 00 00 00 00 6C [11:22:54]Write i2c OK [11:22:54]MH_I2C_Read... [11:22:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:54]Read from MH i2c: E2 [11:22:54]MH_I2C_Read... [11:22:54]Read from MH i2c: E2 0B 00 [11:22:54]MH_I2C_Read... [11:22:54]Read from MH i2c: E2 0B 00 CC 25 00 3F 34 8E FD A9 83 B4 21 90 00 6C [11:22:54]RAPDU: 3F 34 8E FD A9 83 B4 21 90 00 [11:22:54]wFMCommunicate OK [11:22:54]SAM_PROTO_SignData done [11:22:54]FM_MakeSignedData done [11:22:54]CreateOFDProtocolMessage [11:22:54]wFMCommunicate request_size=4 [11:22:54]MH_SAM_APDU [11:22:54]CAPDU: 80 11 00 00 [11:22:54]Write to MH i2c: E2 08 00 CD 25 80 11 00 00 00 00 00 00 6C [11:22:54]Write i2c OK [11:22:54]MH_I2C_Read... [11:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:54]Read from MH i2c: E2 [11:22:54]MH_I2C_Read... [11:22:54]Read from MH i2c: E2 17 00 [11:22:54]MH_I2C_Read... [11:22:54]Read from MH i2c: E2 17 00 CD 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C3 [11: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 [11:22:54]wFMCommunicate OK [11:22:54]CreateOFDProtocolMessage done [11:22:54]OFDSenderStorePacket 123556 [11:22:54]StoreOFDPacket docnum=123556 [11: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 10 01 00 00 64 4E 08 01 D7 B4 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 44 00 00 00 F4 03 04 00 91 52 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8A 4F D4 0C 48 95 3F 34 8E FD A9 83 B4 21 [11:22:54]CheckFolder [11:22:54]dirname=/storage/ofd_packets [11:22:54]CheckFolder done [11:22:54]ProducePacketName [11:22:54]name=ofd_packets/00123556 [11:22:54]NVStorageSaveData ofd_packets/00123556 [11:22:54]File name is /storage/ofd_packets/00123556 [11:22:54]Write 302 bytes [11:22:54]NVStorageSaveData done [11:22:54]OFDSenderStorePacket done [11:22:54]KKMCreateOFDPacket done [11:22:54]NVStorageSaveData kkm_last_timestamp [11:22:54]File name is /storage/kkm_last_timestamp [11:22:54]Write 4 bytes [11:22:54]NVStorageSaveData done [11:22:54]ExternCall_PrintAddStr [11:22:54]wPrintStart [11:22:54]Write to MH i2c: 01 00 00 CE 25 F3 [11:22:54]Write i2c OK [11:22:54]MH_I2C_Read... [11:22:54]Read from MH i2c: 01 [11:22:54]MH_I2C_Read... [11:22:54]Read from MH i2c: 01 07 00 [11:22:54]MH_I2C_Read... [11:22:54]Read from MH i2c: 01 07 00 CE 25 00 00 00 00 00 FF 0F 08 [11:22:54]RasterBufferAndPrint [11:22:54]line Счет N : (1)718393 [11:22:54]line ИНН: 02508201610067 [11:22:54]line Контрольно-Кассовый Чек [11:22:54]line ПРОДАЖА [11:22:54]line ТРК (МРК, ГНК) : 5 [11:22:54]line Товар: 2710194210 [11:22:54]line ДТ(л)-К-5 [11:22:54]line 50.000 * 0.00 [11:22:54]line = 0.00 [11:22:54]line НДС 12% НСП 1% [11:22:54]line > о реализуемом товаре [11:22:54]line ИТОГО: 0.00 [11:22:54]line НСП 1% : 0.00 [11:22:54]line НДС 12% : 0.00 [11:22:54]line Наличными: 0.00 [11:22:54]line Безнал.: 0.00 [11:22:54]line Место: АЗС № 64 "Партнер Нефть" [11:22:54]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:22:54]line СНО: Общий режим [11:22:54]line Чек 68 28.11.2024 11:22 [11:22:54]line Смена: 559 ФФД: 1.0 [11:22:54]line ЗНМ: 0300000033 [11:22:54]line РНМ: 0000000000092681 [11:22:54]line Версия ККМ: 001 [11:22:54]line Талоны: ТК ГПНА Online [11:22:54]line 30131025 [11:22:54]line ФМ: 0000000000874881 [11:22:54]line ФД: 123556 [11:22:54]line ФПД: 152075464624277 [11:22:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T112257&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123556&fm=152075464624277&tin=02508201610067®Number=0000000000092681&sum=0 [11:22:55]written 0, free lines is 4095 [11:22:55]OFD Sender: Processing packet 123556 [packets to send 7, broken 6] [11:22:55]ProducePacketName [11:22:55]name=ofd_packets/00123556 [11:22:55]OFD Sender: To server: pG, [11:22:55]CommunicateWithHost lk.salyk.kg:30040 [11:22:55]ConnectInit lk.salyk.kg [11:22:55]Connected sock=10 [11:22: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 10 01 00 00 64 4E 08 01 D7 B4 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 44 00 00 00 F4 03 04 00 91 52 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8A 4F D4 0C 48 95 3F 34 8E FD A9 83 B4 21 [11:22: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 89 94 47 00 CA EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A4 E2 01 00 F4 03 04 00 57 FE 47 67 B6 04 01 00 00 18 33 AC 0C 9C 4F 21 00 [11:22:55]CommunicateWithHost err = 0 [11:22:55]CheckOFDResponse [11:22:55]1017 (14) - 77093643461234 [11:22:55]1041 (16) - 0000000000874881 [11:22:55]1040 (4) - 123556 [11:22:55]1012 (4) - 28.11.2024 05:23 [11:22:55]1206 (1) - 0 [11:22:55]OFD Sender: Remove packet 123556 [11:22:55]ProducePacketName [11:22:55]name=ofd_packets/00123556 [11:22:55]NVStorageDeleteData [11:22:55]Write to MH i2c: 01 00 00 F8 25 1D [11:22:55]Write i2c OK [11:22:55]MH_I2C_Read... [11:22:55]Read from MH i2c: 01 [11:22:55]MH_I2C_Read... [11:22:55]Read from MH i2c: 01 07 00 [11:22:55]MH_I2C_Read... [11:22:55]Read from MH i2c: 01 07 00 F8 25 00 00 00 00 00 6B 0C 9B [11:22:55]RasterBufferAndPrint [11:22:55]line [11:22:55]line [11:22:55]line [11:22:55]line [11:22:55]line [11:22:55]written 0, free lines is 3185 [11:22:55]MH_Cut [11:22:55]Write to MH i2c: D1 01 00 FF 25 01 F6 [11:22:55]Write i2c OK [11:22:55]MH_I2C_Read... [11:22:55]Read from MH i2c: D1 [11:22:55]MH_I2C_Read... [11:22:55]Read from MH i2c: D1 01 00 [11:22:55]MH_I2C_Read... [11:22:55]Read from MH i2c: D1 01 00 FF 25 00 F5 [11:22:55]Write to MH i2c: 01 00 00 00 26 26 [11:22:55]Write i2c OK [11:22:55]MH_I2C_Read... [11:22:55]OFD Sender: No OFD packet to send [11:22:56]*** Cut start [11:22:56]*** Partial cut [11:22:56]*** CUTSNS_PIN = 1 [11:22:56]*** CUTSNS_PIN = 0 [11:22:57]*** Brake cut motor [11:22:57]Read from MH i2c: 01 [11:22:57]MH_I2C_Read... [11:22:57]*** Stop cut motor [11:22:57]*** Cut end [11:22:57]Read from MH i2c: 01 07 00 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: 01 07 00 00 26 00 00 00 00 00 FF 0F 3B [11:22:57]process_action close_receipt done [11:22:57]requested_data is exist [11:22:57]produce_requested_data [11:22:57]requested_item fm.sn is exist - process it [11:22:57]wFMCommunicate request_size=4 [11:22:57]MH_SAM_APDU [11:22:57]CAPDU: 80 11 00 00 [11:22:57]Write to MH i2c: E2 08 00 01 26 80 11 00 00 00 00 00 00 A1 [11:22:57]Write i2c OK [11:22:57]MH_I2C_Read... [11:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:57]Read from MH i2c: E2 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 17 00 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 17 00 01 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F8 [11:22: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:22:57]wFMCommunicate OK [11:22:57]requested_item fd.num is exist - process it [11:22:57]SAM_PROTO_GetFieldsCounters [11:22:57]wFMCommunicate request_size=4 [11:22:57]MH_SAM_APDU [11:22:57]CAPDU: 80 13 00 00 [11:22:57]Write to MH i2c: E2 08 00 02 26 80 13 00 00 00 00 00 00 A4 [11:22:57]Write i2c OK [11:22:57]MH_I2C_Read... [11:22:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:57]Read from MH i2c: E2 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 62 00 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 62 00 02 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 4E [11:22: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 A4 E2 01 00 0E 04 04 00 2F 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 [11:22:57]wFMCommunicate OK [11:22:57]SAM_PROTO_GetFieldsCounters done [11:22:57]requested_item shift.num is exist - process it [11:22:57]requested_item shift.opened is exist - process it [11:22:57]req_shift_opened [11:22:57]FM_GetShiftState [11:22:57]SAM_PROTO_GetShiftState [11:22:57]wFMCommunicate request_size=4 [11:22:57]MH_SAM_APDU [11:22:57]CAPDU: 80 13 01 00 [11:22:57]Write to MH i2c: E2 08 00 03 26 80 13 01 00 00 00 00 00 A6 [11:22:57]Write i2c OK [11:22:57]MH_I2C_Read... [11:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:57]Read from MH i2c: E2 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 0E 00 [11:22:57]MH_I2C_Read... [11:22:57]Read from MH i2c: E2 0E 00 03 26 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 AD [11:22:57]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:22:57]wFMCommunicate OK [11:22:57]SAM_PROTO_GetShiftState done [11:22:57]FM_GetShiftState done [11:22:57]req_shift_opened done [11:22:57]requested_item shift.open_date is exist - process it [11:22:57]req_shift_open_date [11:22:57]req_shift_open_date done [11:22:57]produce_requested_data done [11:22:57]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123556,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [11:22:57]process_action_free close_receipt [11:22:57]json_value_free [11:22:57]json_value_free done [11:22:57]process_json_proto returns [11:22:57]Send response to host [11:22:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123556,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [11:22:57]free response buf [11:22:57]execute_script done [11:22:57]execute_script returns [11:22:57]free content buf [11:22:57]Sock 8.Close socket [11:22:57]Sock 8.Thread stoped [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:36]OFD Sender: No OFD packet to send [11:25:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:03]accept exits with 9 [11:28:03]New connection [11:28:03]New thread 3066862948 created [11:28:03]Thread 3066719588 joined [11:28:03]Waiting for new connection... [11:28:03] Sock 9.Parse request [11:28:03]Sock 9.Check first char [11:28:03]Sock 9.First char is OK [11:28:03]request: POST /json_proto HTTP/1.0 [11:28:03]Method: POST [11:28:03]URL: /json_proto [11:28:03]Method is POST - this is cgi request [11:28:03]url: /json_proto [11:28:03]query_string will be loaded in cgi processing [11:28:03]execute_cgi json_proto POST (null) [11:28:03]execute_cgi path=json_proto method=POST [11:28:03]POST find Content-Length [11:28:03]Host: 172.17.37.4:8080 [11:28:03]Content-Length: 800 [11:28:03]Content-Type: application/json [11:28:03] [11:28:03]POST finish read [11:28:03]Found Content-Length = 800 [11:28:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718394", "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 }]} ], "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" ] } } [11:28:03]execute_script... [11:28: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)718394", "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 }]} ], "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" ] } } [11:28:03]POST & json_proto [11:28:03]process_json_proto [11:28:03]json parsed OK: [11:28:03]protocol is kg_v1.0 [11:28:03]action value=close_receipt [11:28:03]process_action close_receipt [11:28:03]cmd_close_receipt [11:28:03]MH_GetDate [11:28:03]Write to MH i2c: F0 00 00 04 26 19 [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: F0 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: F0 09 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: F0 09 00 04 26 00 C7 53 48 67 1D 3A 47 67 F0 [11:28:03]GetLastDocTimeStamp 1732792977 [11:28:03]current date 1732793287 [11:28:03]FM_GetShiftState [11:28:03]SAM_PROTO_GetShiftState [11:28:03]wFMCommunicate request_size=4 [11:28:03]MH_SAM_APDU [11:28:03]CAPDU: 80 13 01 00 [11:28:03]Write to MH i2c: E2 08 00 05 26 80 13 01 00 00 00 00 00 A8 [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:03]Read from MH i2c: E2 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 0E 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 0E 00 05 26 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 AF [11:28:03]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:28:03]wFMCommunicate OK [11:28:03]SAM_PROTO_GetShiftState done [11:28:03]FM_GetShiftState done [11:28:03]opened in 1732752282 [11:28:03]opened+sec_in_day 1732838682 [11:28:03]quantity*price = 50010 [11:28:03]sum+1 = 50012 [11:28:03]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 СНО: Общий режим Чек 69 28.11.2024 11:28 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123557 ФПД: 234251417261971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T112807&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123557&fm=234251417261971&tin=02508201610067®Number=0000000000092681&sum=50011 [11:28:04]StoreToDocumentArchive [11:28:04]shift 559 fd 123557 [11:28:04]save to /storage/0559/doc_00123557 [11:28:04]save last doc name /storage/0559/doc_00123557 to /storage/kkm_last_doc_name [11:28:04]save OK [11:28:04]Clear old archive folders... [11:28:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:04]tlvbuf is B6F42370 [11:28:04]SAM_PROTO_ClearQueue [11:28:04]wFMCommunicate request_size=4 [11:28:04]MH_SAM_APDU [11:28:04]CAPDU: 80 09 00 00 [11:28:04]Write to MH i2c: E2 08 00 12 26 80 09 00 00 00 00 00 00 AA [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:04]Read from MH i2c: E2 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 03 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 03 00 12 26 00 90 00 AC [11:28:04]RAPDU: 90 00 [11:28:04]wFMCommunicate OK [11:28:04]SAM_PROTO_ClearQueue done [11:28:04]KKMCreateOFDPacket [11:28:04]OFDProtocolAddRootSTLVToBuf [11:28:04]FM_MakeSignedData [11:28:04]FM_MakeSignedData [11:28:04]SAM_PROTO_SignData [11:28:04]wFMCommunicate request_size=4 [11:28:04]MH_SAM_APDU [11:28:04]CAPDU: 80 0D 01 02 [11:28:04]Write to MH i2c: E2 08 00 13 26 80 0D 01 02 00 00 00 00 B2 [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:04]Read from MH i2c: E2 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 03 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 03 00 13 26 00 90 00 AD [11:28:04]RAPDU: 90 00 [11:28:04]wFMCommunicate OK [11:28:04]wFMCommunicate request_size=255 [11:28:04]MH_SAM_APDU [11:28: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 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 45 00 00 00 F4 03 04 00 C7 53 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D5 [11:28:04]Write to MH i2c: E2 02 01 14 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 45 00 00 00 F4 03 04 00 C7 53 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D5 00 00 CB [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:04]Read from MH i2c: E2 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 03 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 03 00 14 26 00 90 00 AE [11:28:04]RAPDU: 90 00 [11:28:04]wFMCommunicate OK [11:28:04]wFMCommunicate request_size=10 [11:28:04]MH_SAM_APDU [11:28:04]CAPDU: 80 0D 02 02 05 0C E8 83 97 93 [11:28:04]Write to MH i2c: E2 0D 00 15 26 80 0D 02 02 05 00 0C E8 83 97 93 00 00 60 [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:04]Read from MH i2c: E2 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 03 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 03 00 15 26 00 90 00 AF [11:28:04]RAPDU: 90 00 [11:28:04]wFMCommunicate OK [11:28:04]wFMCommunicate request_size=4 [11:28:04]MH_SAM_APDU [11:28:04]CAPDU: 80 0D 03 02 [11:28:04]Write to MH i2c: E2 08 00 16 26 80 0D 03 02 00 00 00 00 B7 [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:04]Read from MH i2c: E2 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 0B 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 0B 00 16 26 00 4B 71 8C C6 7A D4 93 E1 90 00 88 [11:28:04]RAPDU: 4B 71 8C C6 7A D4 93 E1 90 00 [11:28:04]wFMCommunicate OK [11:28:04]SAM_PROTO_SignData done [11:28:04]FM_MakeSignedData done [11:28:04]CreateOFDProtocolMessage [11:28:04]wFMCommunicate request_size=4 [11:28:04]MH_SAM_APDU [11:28:04]CAPDU: 80 11 00 00 [11:28:04]Write to MH i2c: E2 08 00 17 26 80 11 00 00 00 00 00 00 B7 [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:04]Read from MH i2c: E2 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 17 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 17 00 17 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0E [11:28: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:28:04]wFMCommunicate OK [11:28:04]CreateOFDProtocolMessage done [11:28:04]OFDSenderStorePacket 123557 [11:28:04]StoreOFDPacket docnum=123557 [11:28: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 D6 C2 07 01 C6 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 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 45 00 00 00 F4 03 04 00 C7 53 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D5 0C E8 83 97 93 4B 71 8C C6 7A D4 93 E1 [11:28:04]CheckFolder [11:28:04]dirname=/storage/ofd_packets [11:28:04]CheckFolder done [11:28:04]ProducePacketName [11:28:04]name=ofd_packets/00123557 [11:28:04]NVStorageSaveData ofd_packets/00123557 [11:28:04]File name is /storage/ofd_packets/00123557 [11:28:04]Write 301 bytes [11:28:04]NVStorageSaveData done [11:28:04]OFDSenderStorePacket done [11:28:04]KKMCreateOFDPacket done [11:28:04]NVStorageSaveData kkm_last_timestamp [11:28:04]File name is /storage/kkm_last_timestamp [11:28:04]Write 4 bytes [11:28:04]NVStorageSaveData done [11:28:04]ExternCall_PrintAddStr [11:28:04]wPrintStart [11:28:04]Write to MH i2c: 01 00 00 18 26 3E [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: 01 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: 01 07 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: 01 07 00 18 26 00 00 00 00 00 FF 0F 53 [11:28:04]RasterBufferAndPrint [11:28:04]line Счет N : (1)718394 [11:28:04]line ИНН: 02508201610067 [11:28:04]line Контрольно-Кассовый Чек [11:28:04]line ПРОДАЖА [11:28:04]line ТРК (МРК, ГНК) : 12 [11:28:04]line Товар: 2710124130 [11:28:04]line Аи-92-К-4 [11:28:04]line 7.420 * 67.40 [11:28:04]line = 500.11 [11:28:04]line НДС 12% НСП 1% [11:28:04]line > о реализуемом товаре [11:28:04]line ИТОГО: 500.11 [11:28:04]line НСП 1% : 4.43 [11:28:04]line НДС 12% : 53.11 [11:28:04]line Наличными: 0.00 [11:28:04]line Безнал.: 500.11 [11:28:04]line Место: АЗС № 64 "Партнер Нефть" [11:28:04]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:28:04]line СНО: Общий режим [11:28:04]line Чек 69 28.11.2024 11:28 [11:28:04]line Смена: 559 ФФД: 1.0 [11:28:04]line ЗНМ: 0300000033 [11:28:04]line РНМ: 0000000000092681 [11:28:04]line Версия ККМ: 001 [11:28:04]line Платежная система: O! деньги [11:28:04]line ФМ: 0000000000874881 [11:28:04]line ФД: 123557 [11:28:04]line ФПД: 234251417261971 [11:28:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T112807&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123557&fm=234251417261971&tin=02508201610067®Number=0000000000092681&sum=50011 [11:28:05]written 0, free lines is 4095 [11:28:05]OFD Sender: Processing packet 123557 [packets to send 7, broken 6] [11:28:05]ProducePacketName [11:28:05]name=ofd_packets/00123557 [11:28:05]OFD Sender: To server: pG, [11:28:05]CommunicateWithHost lk.salyk.kg:30040 [11:28:05]ConnectInit lk.salyk.kg [11:28:05]Connected sock=10 [11:28:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 D6 C2 07 01 C6 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 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 45 00 00 00 F4 03 04 00 C7 53 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D5 0C E8 83 97 93 4B 71 8C C6 7A D4 93 E1 [11:28: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 67 51 47 00 C1 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A5 E2 01 00 F4 03 04 00 8E FF 47 67 B6 04 01 00 00 2C B6 9F 9D 14 31 31 1C [11:28:05]CommunicateWithHost err = 0 [11:28:05]CheckOFDResponse [11:28:05]1017 (14) - 77093643461234 [11:28:05]1041 (16) - 0000000000874881 [11:28:05]1040 (4) - 123557 [11:28:05]1012 (4) - 28.11.2024 05:28 [11:28:05]1206 (1) - 0 [11:28:05]OFD Sender: Remove packet 123557 [11:28:05]ProducePacketName [11:28:05]name=ofd_packets/00123557 [11:28:05]NVStorageDeleteData [11:28:05]Write to MH i2c: 01 00 00 42 26 68 [11:28:05]Write i2c OK [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: 01 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: 01 07 00 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: 01 07 00 42 26 00 00 00 00 00 63 0C DE [11:28:05]RasterBufferAndPrint [11:28:05]line [11:28:05]line [11:28:05]line [11:28:05]line [11:28:05]line [11:28:05]written 0, free lines is 3177 [11:28:05]MH_Cut [11:28:05]Write to MH i2c: D1 01 00 49 26 01 41 [11:28:05]Write i2c OK [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: D1 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: D1 01 00 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: D1 01 00 49 26 00 40 [11:28:05]Write to MH i2c: 01 00 00 4A 26 70 [11:28:05]Write i2c OK [11:28:05]MH_I2C_Read... [11:28:06]OFD Sender: No OFD packet to send [11:28:07]*** Cut start [11:28:07]*** Partial cut [11:28:07]*** CUTSNS_PIN = 1 [11:28:07]*** CUTSNS_PIN = 0 [11:28:07]*** Brake cut motor [11:28:07]Read from MH i2c: 01 [11:28:07]MH_I2C_Read... [11:28:07]*** Stop cut motor [11:28:07]*** Cut end [11:28:07]Read from MH i2c: 01 07 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: 01 07 00 4A 26 00 00 00 00 00 FF 0F 85 [11:28:07]process_action close_receipt done [11:28:07]requested_data is exist [11:28:07]produce_requested_data [11:28:07]requested_item fm.sn is exist - process it [11:28:07]wFMCommunicate request_size=4 [11:28:07]MH_SAM_APDU [11:28:07]CAPDU: 80 11 00 00 [11:28:07]Write to MH i2c: E2 08 00 4B 26 80 11 00 00 00 00 00 00 EB [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:07]Read from MH i2c: E2 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 17 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 17 00 4B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 42 [11:28: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:28:07]wFMCommunicate OK [11:28:07]requested_item fd.num is exist - process it [11:28:07]SAM_PROTO_GetFieldsCounters [11:28:07]wFMCommunicate request_size=4 [11:28:07]MH_SAM_APDU [11:28:07]CAPDU: 80 13 00 00 [11:28:07]Write to MH i2c: E2 08 00 4C 26 80 13 00 00 00 00 00 00 EE [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:07]Read from MH i2c: E2 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 62 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 62 00 4C 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 9C [11:28: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 A5 E2 01 00 0E 04 04 00 2F 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 [11:28:08]wFMCommunicate OK [11:28:08]SAM_PROTO_GetFieldsCounters done [11:28:08]requested_item shift.num is exist - process it [11:28:08]requested_item shift.opened is exist - process it [11:28:08]req_shift_opened [11:28:08]FM_GetShiftState [11:28:08]SAM_PROTO_GetShiftState [11:28:08]wFMCommunicate request_size=4 [11:28:08]MH_SAM_APDU [11:28:08]CAPDU: 80 13 01 00 [11:28:08]Write to MH i2c: E2 08 00 4D 26 80 13 01 00 00 00 00 00 F0 [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:08]Read from MH i2c: E2 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 0E 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 0E 00 4D 26 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 F7 [11:28:08]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:28:08]wFMCommunicate OK [11:28:08]SAM_PROTO_GetShiftState done [11:28:08]FM_GetShiftState done [11:28:08]req_shift_opened done [11:28:08]requested_item shift.open_date is exist - process it [11:28:08]req_shift_open_date [11:28:08]req_shift_open_date done [11:28:08]produce_requested_data done [11:28:08]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123557,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [11:28:08]process_action_free close_receipt [11:28:08]json_value_free [11:28:08]json_value_free done [11:28:08]process_json_proto returns [11:28:08]Send response to host [11:28:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123557,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [11:28:08]free response buf [11:28:08]execute_script done [11:28:08]execute_script returns [11:28:08]free content buf [11:28:08]Sock 9.Close socket [11:28:08]Sock 9.Thread stoped [11:28:11]OFD Sender: No OFD packet to send [11:28:16]OFD Sender: No OFD packet to send [11:28:21]OFD Sender: No OFD packet to send [11:28:26]OFD Sender: No OFD packet to send [11:28:31]OFD Sender: No OFD packet to send [11:28:36]OFD Sender: No OFD packet to send [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:35]accept exits with 8 [11:29:35]New connection [11:29:35]New thread 3066719588 created [11:29:35]Thread 3066862948 joined [11:29:35]Waiting for new connection... [11:29:35] Sock 8.Parse request [11:29:35]Sock 8.Check first char [11:29:35]Sock 8.First char is OK [11:29:35]request: POST /json_proto HTTP/1.0 [11:29:35]Method: POST [11:29:35]URL: /json_proto [11:29:35]Method is POST - this is cgi request [11:29:35]url: /json_proto [11:29:35]query_string will be loaded in cgi processing [11:29:35]execute_cgi json_proto POST (null) [11:29:35]execute_cgi path=json_proto method=POST [11:29:35]POST find Content-Length [11:29:35]Host: 172.17.37.4:8080 [11:29:35]Content-Length: 800 [11:29:35]Content-Type: application/json [11:29:35] [11:29:35]POST finish read [11:29:35]Found Content-Length = 800 [11:29:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718396", "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 }]} ], "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" ] } } [11:29:35]execute_script... [11:29: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)718396", "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 }]} ], "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" ] } } [11:29:35]POST & json_proto [11:29:35]process_json_proto [11:29:35]json parsed OK: [11:29:35]protocol is kg_v1.0 [11:29:35]action value=close_receipt [11:29:35]process_action close_receipt [11:29:35]cmd_close_receipt [11:29:35]MH_GetDate [11:29:35]Write to MH i2c: F0 00 00 4E 26 63 [11:29:35]Write i2c OK [11:29:35]MH_I2C_Read... [11:29:35]Read from MH i2c: F0 [11:29:35]MH_I2C_Read... [11:29:35]Read from MH i2c: F0 09 00 [11:29:35]MH_I2C_Read... [11:29:35]Read from MH i2c: F0 09 00 4E 26 00 24 54 48 67 1D 3A 47 67 98 [11:29:35]GetLastDocTimeStamp 1732793287 [11:29:35]current date 1732793380 [11:29:35]FM_GetShiftState [11:29:35]SAM_PROTO_GetShiftState [11:29:35]wFMCommunicate request_size=4 [11:29:35]MH_SAM_APDU [11:29:35]CAPDU: 80 13 01 00 [11:29:35]Write to MH i2c: E2 08 00 4F 26 80 13 01 00 00 00 00 00 F2 [11:29:35]Write i2c OK [11:29:35]MH_I2C_Read... [11:29:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:35]Read from MH i2c: E2 [11:29:35]MH_I2C_Read... [11:29:35]Read from MH i2c: E2 0E 00 [11:29:35]MH_I2C_Read... [11:29:35]Read from MH i2c: E2 0E 00 4F 26 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 F9 [11:29:35]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:29:35]wFMCommunicate OK [11:29:35]SAM_PROTO_GetShiftState done [11:29:35]FM_GetShiftState done [11:29:35]opened in 1732752282 [11:29:35]opened+sec_in_day 1732838682 [11:29:35]quantity*price = 50010 [11:29:35]sum+1 = 50012 [11:29:35]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 СНО: Общий режим Чек 70 28.11.2024 11:29 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123558 ФПД: 107982003326914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T112940&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123558&fm=107982003326914&tin=02508201610067®Number=0000000000092681&sum=50011 [11:29:36]StoreToDocumentArchive [11:29:36]shift 559 fd 123558 [11:29:36]save to /storage/0559/doc_00123558 [11:29:36]save last doc name /storage/0559/doc_00123558 to /storage/kkm_last_doc_name [11:29:36]save OK [11:29:36]Clear old archive folders... [11:29:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:36]tlvbuf is 014F0A20 [11:29:36]SAM_PROTO_ClearQueue [11:29:36]wFMCommunicate request_size=4 [11:29:36]MH_SAM_APDU [11:29:36]CAPDU: 80 09 00 00 [11:29:36]Write to MH i2c: E2 08 00 5C 26 80 09 00 00 00 00 00 00 F4 [11:29:36]Write i2c OK [11:29:36]MH_I2C_Read... [11:29:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:36]Read from MH i2c: E2 [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: E2 03 00 [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: E2 03 00 5C 26 00 90 00 F6 [11:29:36]RAPDU: 90 00 [11:29:36]wFMCommunicate OK [11:29:36]SAM_PROTO_ClearQueue done [11:29:36]KKMCreateOFDPacket [11:29:36]OFDProtocolAddRootSTLVToBuf [11:29:36]FM_MakeSignedData [11:29:36]FM_MakeSignedData [11:29:36]SAM_PROTO_SignData [11:29:36]wFMCommunicate request_size=4 [11:29:36]MH_SAM_APDU [11:29:36]CAPDU: 80 0D 01 02 [11:29:36]Write to MH i2c: E2 08 00 5D 26 80 0D 01 02 00 00 00 00 FC [11:29:36]Write i2c OK [11:29:36]MH_I2C_Read... [11:29:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:36]Read from MH i2c: E2 [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: E2 03 00 [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: E2 03 00 5D 26 00 90 00 F7 [11:29:36]RAPDU: 90 00 [11:29:36]wFMCommunicate OK [11:29:36]wFMCommunicate request_size=255 [11:29:36]MH_SAM_APDU [11:29: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 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 46 00 00 00 F4 03 04 00 24 54 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 62 [11:29:36]Write to MH i2c: E2 02 01 5E 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 46 00 00 00 F4 03 04 00 24 54 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 62 00 00 02 [11:29:36]Write i2c OK [11:29:36]MH_I2C_Read... [11:29:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:37]Read from MH i2c: E2 [11:29:37]MH_I2C_Read... [11:29:37]Read from MH i2c: E2 03 00 [11:29:37]MH_I2C_Read... [11:29:37]Read from MH i2c: E2 03 00 5E 26 00 90 00 F8 [11:29:37]RAPDU: 90 00 [11:29:37]wFMCommunicate OK [11:29:37]wFMCommunicate request_size=10 [11:29:37]MH_SAM_APDU [11:29:37]CAPDU: 80 0D 02 02 05 35 84 F3 4F C2 [11:29:37]Write to MH i2c: E2 0D 00 5F 26 80 0D 02 02 05 00 35 84 F3 4F C2 00 00 C6 [11:29:37]Write i2c OK [11:29:37]MH_I2C_Read... [11:29:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:37]Read from MH i2c: E2 [11:29:37]MH_I2C_Read... [11:29:37]Read from MH i2c: E2 03 00 [11:29:37]MH_I2C_Read... [11:29:37]Read from MH i2c: E2 03 00 5F 26 00 90 00 F9 [11:29:37]RAPDU: 90 00 [11:29:37]wFMCommunicate OK [11:29:37]wFMCommunicate request_size=4 [11:29:37]MH_SAM_APDU [11:29:37]CAPDU: 80 0D 03 02 [11:29:37]Write to MH i2c: E2 08 00 60 26 80 0D 03 02 00 00 00 00 01 [11:29:37]Write i2c OK [11:29:37]MH_I2C_Read... [11:29:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:37]Read from MH i2c: E2 [11:29:37]MH_I2C_Read... [11:29:37]Read from MH i2c: E2 0B 00 [11:29:37]MH_I2C_Read... [11:29:37]Read from MH i2c: E2 0B 00 60 26 00 9D 26 FF 7F F2 CB 72 12 90 00 84 [11:29:37]RAPDU: 9D 26 FF 7F F2 CB 72 12 90 00 [11:29:37]wFMCommunicate OK [11:29:37]SAM_PROTO_SignData done [11:29:37]FM_MakeSignedData done [11:29:37]CreateOFDProtocolMessage [11:29:37]wFMCommunicate request_size=4 [11:29:37]MH_SAM_APDU [11:29:37]CAPDU: 80 11 00 00 [11:29:37]Write to MH i2c: E2 08 00 61 26 80 11 00 00 00 00 00 00 01 [11:29:37]Write i2c OK [11:29:37]MH_I2C_Read... [11:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:37]Read from MH i2c: E2 [11:29:37]MH_I2C_Read... [11:29:37]Read from MH i2c: E2 17 00 [11:29:37]MH_I2C_Read... [11:29:37]Read from MH i2c: E2 17 00 61 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 58 [11:29: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:29:37]wFMCommunicate OK [11:29:37]CreateOFDProtocolMessage done [11:29:37]OFDSenderStorePacket 123558 [11:29:37]StoreOFDPacket docnum=123558 [11:29: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 0B A4 07 01 91 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 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 46 00 00 00 F4 03 04 00 24 54 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 62 35 84 F3 4F C2 9D 26 FF 7F F2 CB 72 12 [11:29:37]CheckFolder [11:29:37]dirname=/storage/ofd_packets [11:29:37]CheckFolder done [11:29:37]ProducePacketName [11:29:37]name=ofd_packets/00123558 [11:29:37]NVStorageSaveData ofd_packets/00123558 [11:29:37]File name is /storage/ofd_packets/00123558 [11:29:37]Write 301 bytes [11:29:37]NVStorageSaveData done [11:29:37]OFDSenderStorePacket done [11:29:37]KKMCreateOFDPacket done [11:29:37]NVStorageSaveData kkm_last_timestamp [11:29:37]File name is /storage/kkm_last_timestamp [11:29:37]Write 4 bytes [11:29:37]NVStorageSaveData done [11:29:37]ExternCall_PrintAddStr [11:29:37]wPrintStart [11:29:37]Write to MH i2c: 01 00 00 62 26 88 [11:29:37]Write i2c OK [11:29:37]MH_I2C_Read... [11:29:37]Read from MH i2c: 01 [11:29:37]MH_I2C_Read... [11:29:37]Read from MH i2c: 01 07 00 [11:29:37]MH_I2C_Read... [11:29:37]Read from MH i2c: 01 07 00 62 26 00 00 00 00 00 FF 0F 9D [11:29:37]RasterBufferAndPrint [11:29:37]line Счет N : (1)718396 [11:29:37]line ИНН: 02508201610067 [11:29:37]line Контрольно-Кассовый Чек [11:29:37]line ПРОДАЖА [11:29:37]line ТРК (МРК, ГНК) : 32 [11:29:37]line Товар: 2710124130 [11:29:37]line Аи-92-К-4 [11:29:37]line 7.420 * 67.40 [11:29:37]line = 500.11 [11:29:37]line НДС 12% НСП 1% [11:29:37]line > о реализуемом товаре [11:29:37]line ИТОГО: 500.11 [11:29:37]line НСП 1% : 4.43 [11:29:37]line НДС 12% : 53.11 [11:29:37]line Наличными: 0.00 [11:29:37]line Безнал.: 500.11 [11:29:37]line Место: АЗС № 64 "Партнер Нефть" [11:29:37]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:29:37]line СНО: Общий режим [11:29:37]line Чек 70 28.11.2024 11:29 [11:29:37]line Смена: 559 ФФД: 1.0 [11:29:37]line ЗНМ: 0300000033 [11:29:37]line РНМ: 0000000000092681 [11:29:37]line Версия ККМ: 001 [11:29:37]line Платежная система: O! деньги [11:29:37]line ФМ: 0000000000874881 [11:29:37]line ФД: 123558 [11:29:37]line ФПД: 107982003326914 [11:29:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T112940&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123558&fm=107982003326914&tin=02508201610067®Number=0000000000092681&sum=50011 [11:29:37]written 0, free lines is 4095 [11:29:37]OFD Sender: Processing packet 123558 [packets to send 7, broken 6] [11:29:37]ProducePacketName [11:29:37]name=ofd_packets/00123558 [11:29:37]OFD Sender: To server: pG, [11:29:37]CommunicateWithHost lk.salyk.kg:30040 [11:29:37]ConnectInit lk.salyk.kg [11:29:37]Connected sock=10 [11:29: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 0B A4 07 01 91 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 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 46 00 00 00 F4 03 04 00 24 54 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 62 35 84 F3 4F C2 9D 26 FF 7F F2 CB 72 12 [11:29: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 F3 9F 47 00 F9 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A6 E2 01 00 F4 03 04 00 EA FF 47 67 B6 04 01 00 00 81 5C C3 4C 8E 58 26 3A [11:29:37]CommunicateWithHost err = 0 [11:29:37]CheckOFDResponse [11:29:37]1017 (14) - 77093643461234 [11:29:37]1041 (16) - 0000000000874881 [11:29:37]1040 (4) - 123558 [11:29:37]1012 (4) - 28.11.2024 05:30 [11:29:37]1206 (1) - 0 [11:29:37]OFD Sender: Remove packet 123558 [11:29:37]ProducePacketName [11:29:37]name=ofd_packets/00123558 [11:29:37]NVStorageDeleteData [11:29:38]Write to MH i2c: 01 00 00 8C 26 B2 [11:29:38]Write i2c OK [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: 01 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: 01 07 00 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: 01 07 00 8C 26 00 00 00 00 00 5B 0C 20 [11:29:38]RasterBufferAndPrint [11:29:38]line [11:29:38]line [11:29:38]line [11:29:38]line [11:29:38]line [11:29:38]written 0, free lines is 3167 [11:29:38]MH_Cut [11:29:38]Write to MH i2c: D1 01 00 93 26 01 8B [11:29:38]Write i2c OK [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: D1 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: D1 01 00 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: D1 01 00 93 26 00 8A [11:29:38]Write to MH i2c: 01 00 00 94 26 BA [11:29:38]Write i2c OK [11:29:38]MH_I2C_Read... [11:29:38]OFD Sender: No OFD packet to send [11:29:39]*** Cut start [11:29:39]*** Partial cut [11:29:39]*** CUTSNS_PIN = 1 [11:29:39]*** CUTSNS_PIN = 0 [11:29:39]*** Brake cut motor [11:29:40]Read from MH i2c: 01 [11:29:40]MH_I2C_Read... [11:29:40]*** Stop cut motor [11:29:40]*** Cut end [11:29:40]Read from MH i2c: 01 07 00 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: 01 07 00 94 26 00 00 00 00 00 FF 0F CF [11:29:40]process_action close_receipt done [11:29:40]requested_data is exist [11:29:40]produce_requested_data [11:29:40]requested_item fm.sn is exist - process it [11:29:40]wFMCommunicate request_size=4 [11:29:40]MH_SAM_APDU [11:29:40]CAPDU: 80 11 00 00 [11:29:40]Write to MH i2c: E2 08 00 95 26 80 11 00 00 00 00 00 00 35 [11:29:40]Write i2c OK [11:29:40]MH_I2C_Read... [11:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:40]Read from MH i2c: E2 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: E2 17 00 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: E2 17 00 95 26 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:29: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:29:40]wFMCommunicate OK [11:29:40]requested_item fd.num is exist - process it [11:29:40]SAM_PROTO_GetFieldsCounters [11:29:40]wFMCommunicate request_size=4 [11:29:40]MH_SAM_APDU [11:29:40]CAPDU: 80 13 00 00 [11:29:40]Write to MH i2c: E2 08 00 96 26 80 13 00 00 00 00 00 00 38 [11:29:40]Write i2c OK [11:29:40]MH_I2C_Read... [11:29:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:40]Read from MH i2c: E2 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: E2 62 00 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: E2 62 00 96 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 EA [11:29: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 A6 E2 01 00 0E 04 04 00 2F 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 [11:29:40]wFMCommunicate OK [11:29:40]SAM_PROTO_GetFieldsCounters done [11:29:40]requested_item shift.num is exist - process it [11:29:40]requested_item shift.opened is exist - process it [11:29:40]req_shift_opened [11:29:40]FM_GetShiftState [11:29:40]SAM_PROTO_GetShiftState [11:29:40]wFMCommunicate request_size=4 [11:29:40]MH_SAM_APDU [11:29:40]CAPDU: 80 13 01 00 [11:29:40]Write to MH i2c: E2 08 00 97 26 80 13 01 00 00 00 00 00 3A [11:29:40]Write i2c OK [11:29:40]MH_I2C_Read... [11:29:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:40]Read from MH i2c: E2 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: E2 0E 00 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: E2 0E 00 97 26 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 41 [11:29:40]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:29:40]wFMCommunicate OK [11:29:40]SAM_PROTO_GetShiftState done [11:29:40]FM_GetShiftState done [11:29:40]req_shift_opened done [11:29:40]requested_item shift.open_date is exist - process it [11:29:40]req_shift_open_date [11:29:40]req_shift_open_date done [11:29:40]produce_requested_data done [11:29:40]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123558,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [11:29:40]process_action_free close_receipt [11:29:40]json_value_free [11:29:40]json_value_free done [11:29:40]process_json_proto returns [11:29:40]Send response to host [11:29:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123558,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [11:29:40]free response buf [11:29:40]execute_script done [11:29:40]execute_script returns [11:29:40]free content buf [11:29:40]Sock 8.Close socket [11:29:40]Sock 8.Thread stoped [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:13]OFD Sender: No OFD packet to send [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:47]accept exits with 9 [11:33:47]New connection [11:33:47]New thread 3066862948 created [11:33:47]Thread 3066719588 joined [11:33:47]Waiting for new connection... [11:33:47] Sock 9.Parse request [11:33:47]Sock 9.Check first char [11:33:47]Sock 9.First char is OK [11:33:47]request: POST /json_proto HTTP/1.0 [11:33:47]Method: POST [11:33:47]URL: /json_proto [11:33:47]Method is POST - this is cgi request [11:33:47]url: /json_proto [11:33:47]query_string will be loaded in cgi processing [11:33:47]execute_cgi json_proto POST (null) [11:33:47]execute_cgi path=json_proto method=POST [11:33:47]POST find Content-Length [11:33:47]Host: 172.17.37.4:8080 [11:33:47]Content-Length: 754 [11:33:47]Content-Type: application/json [11:33:47] [11:33:47]POST finish read [11:33:47]Found Content-Length = 754 [11:33:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718397", "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" : 0.00, "quantity" : 34.990, "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" ] } } [11:33:47]execute_script... [11:33: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)718397", "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" : 0.00, "quantity" : 34.990, "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" ] } } [11:33:47]POST & json_proto [11:33:47]process_json_proto [11:33:47]json parsed OK: [11:33:47]protocol is kg_v1.0 [11:33:47]action value=close_receipt [11:33:47]process_action close_receipt [11:33:47]cmd_close_receipt [11:33:47]MH_GetDate [11:33:47]Write to MH i2c: F0 00 00 98 26 AD [11:33:47]Write i2c OK [11:33:47]MH_I2C_Read... [11:33:47]Read from MH i2c: F0 [11:33:47]MH_I2C_Read... [11:33:47]Read from MH i2c: F0 09 00 [11:33:47]MH_I2C_Read... [11:33:47]Read from MH i2c: F0 09 00 98 26 00 20 55 48 67 1D 3A 47 67 DF [11:33:47]GetLastDocTimeStamp 1732793380 [11:33:47]current date 1732793632 [11:33:47]FM_GetShiftState [11:33:47]SAM_PROTO_GetShiftState [11:33:47]wFMCommunicate request_size=4 [11:33:47]MH_SAM_APDU [11:33:47]CAPDU: 80 13 01 00 [11:33:47]Write to MH i2c: E2 08 00 99 26 80 13 01 00 00 00 00 00 3C [11:33:47]Write i2c OK [11:33:47]MH_I2C_Read... [11:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:47]Read from MH i2c: E2 [11:33:47]MH_I2C_Read... [11:33:47]Read from MH i2c: E2 0E 00 [11:33:47]MH_I2C_Read... [11:33:47]Read from MH i2c: E2 0E 00 99 26 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 43 [11:33:47]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:33:47]wFMCommunicate OK [11:33:47]SAM_PROTO_GetShiftState done [11:33:47]FM_GetShiftState done [11:33:47]opened in 1732752282 [11:33:47]opened+sec_in_day 1732838682 [11:33:47]quantity*price = 0 [11:33:47]sum+1 = 1 [11:33:47]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 СНО: Общий режим Чек 71 28.11.2024 11:33 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: ТК ГПНА Online 30043022 ФМ: 0000000000874881 ФД: 123559 ФПД: 121326733856391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T113352&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123559&fm=121326733856391&tin=02508201610067®Number=0000000000092681&sum=0 [11:33:48]StoreToDocumentArchive [11:33:48]shift 559 fd 123559 [11:33:48]save to /storage/0559/doc_00123559 [11:33:48]save last doc name /storage/0559/doc_00123559 to /storage/kkm_last_doc_name [11:33:48]save OK [11:33:48]Clear old archive folders... [11:33:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:48]tlvbuf is B6EC4350 [11:33:48]SAM_PROTO_ClearQueue [11:33:48]wFMCommunicate request_size=4 [11:33:48]MH_SAM_APDU [11:33:48]CAPDU: 80 09 00 00 [11:33:48]Write to MH i2c: E2 08 00 A6 26 80 09 00 00 00 00 00 00 3E [11:33:48]Write i2c OK [11:33:48]MH_I2C_Read... [11:33:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:48]Read from MH i2c: E2 [11:33:48]MH_I2C_Read... [11:33:48]Read from MH i2c: E2 03 00 [11:33:48]MH_I2C_Read... [11:33:48]Read from MH i2c: E2 03 00 A6 26 00 90 00 40 [11:33:48]RAPDU: 90 00 [11:33:48]wFMCommunicate OK [11:33:48]SAM_PROTO_ClearQueue done [11:33:48]KKMCreateOFDPacket [11:33:48]OFDProtocolAddRootSTLVToBuf [11:33:48]FM_MakeSignedData [11:33:48]FM_MakeSignedData [11:33:48]SAM_PROTO_SignData [11:33:48]wFMCommunicate request_size=4 [11:33:48]MH_SAM_APDU [11:33:48]CAPDU: 80 0D 01 02 [11:33:48]Write to MH i2c: E2 08 00 A7 26 80 0D 01 02 00 00 00 00 46 [11:33:48]Write i2c OK [11:33:48]MH_I2C_Read... [11:33:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:48]Read from MH i2c: E2 [11:33:48]MH_I2C_Read... [11:33:48]Read from MH i2c: E2 03 00 [11:33:48]MH_I2C_Read... [11:33:48]Read from MH i2c: E2 03 00 A7 26 00 90 00 41 [11:33:48]RAPDU: 90 00 [11:33:48]wFMCommunicate OK [11:33:48]wFMCommunicate request_size=255 [11:33:48]MH_SAM_APDU [11:33: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 AE 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 47 00 00 00 F4 03 04 00 20 55 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 6E [11:33:48]Write to MH i2c: E2 02 01 A8 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 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 47 00 00 00 F4 03 04 00 20 55 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 6E 00 00 1E [11:33:48]Write i2c OK [11:33:48]MH_I2C_Read... [11:33:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:49]Read from MH i2c: E2 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: E2 03 00 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: E2 03 00 A8 26 00 90 00 42 [11:33:49]RAPDU: 90 00 [11:33:49]wFMCommunicate OK [11:33:49]wFMCommunicate request_size=10 [11:33:49]MH_SAM_APDU [11:33:49]CAPDU: 80 0D 02 02 05 58 94 DF 8E 87 [11:33:49]Write to MH i2c: E2 0D 00 A9 26 80 0D 02 02 05 00 58 94 DF 8E 87 00 00 33 [11:33:49]Write i2c OK [11:33:49]MH_I2C_Read... [11:33:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:49]Read from MH i2c: E2 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: E2 03 00 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: E2 03 00 A9 26 00 90 00 43 [11:33:49]RAPDU: 90 00 [11:33:49]wFMCommunicate OK [11:33:49]wFMCommunicate request_size=4 [11:33:49]MH_SAM_APDU [11:33:49]CAPDU: 80 0D 03 02 [11:33:49]Write to MH i2c: E2 08 00 AA 26 80 0D 03 02 00 00 00 00 4B [11:33:49]Write i2c OK [11:33:49]MH_I2C_Read... [11:33:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:49]Read from MH i2c: E2 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: E2 0B 00 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: E2 0B 00 AA 26 00 CE 34 D9 4A 6A 14 D7 A8 90 00 6E [11:33:49]RAPDU: CE 34 D9 4A 6A 14 D7 A8 90 00 [11:33:49]wFMCommunicate OK [11:33:49]SAM_PROTO_SignData done [11:33:49]FM_MakeSignedData done [11:33:49]CreateOFDProtocolMessage [11:33:49]wFMCommunicate request_size=4 [11:33:49]MH_SAM_APDU [11:33:49]CAPDU: 80 11 00 00 [11:33:49]Write to MH i2c: E2 08 00 AB 26 80 11 00 00 00 00 00 00 4B [11:33:49]Write i2c OK [11:33:49]MH_I2C_Read... [11:33:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:49]Read from MH i2c: E2 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: E2 17 00 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: E2 17 00 AB 26 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:33:49]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:49]wFMCommunicate OK [11:33:49]CreateOFDProtocolMessage done [11:33:49]OFDSenderStorePacket 123559 [11:33:49]StoreOFDPacket docnum=123559 [11:33: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 2A C1 07 01 B2 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 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 47 00 00 00 F4 03 04 00 20 55 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 6E 58 94 DF 8E 87 CE 34 D9 4A 6A 14 D7 A8 [11:33:49]CheckFolder [11:33:49]dirname=/storage/ofd_packets [11:33:49]CheckFolder done [11:33:49]ProducePacketName [11:33:49]name=ofd_packets/00123559 [11:33:49]NVStorageSaveData ofd_packets/00123559 [11:33:49]File name is /storage/ofd_packets/00123559 [11:33:49]Write 301 bytes [11:33:49]NVStorageSaveData done [11:33:49]OFDSenderStorePacket done [11:33:49]KKMCreateOFDPacket done [11:33:49]NVStorageSaveData kkm_last_timestamp [11:33:49]File name is /storage/kkm_last_timestamp [11:33:49]Write 4 bytes [11:33:49]NVStorageSaveData done [11:33:49]ExternCall_PrintAddStr [11:33:49]wPrintStart [11:33:49]Write to MH i2c: 01 00 00 AC 26 D2 [11:33:49]Write i2c OK [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: 01 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: 01 07 00 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: 01 07 00 AC 26 00 00 00 00 00 FF 0F E7 [11:33:49]RasterBufferAndPrint [11:33:49]line Счет N : (1)718397 [11:33:49]line ИНН: 02508201610067 [11:33:49]line Контрольно-Кассовый Чек [11:33:49]line ПРОДАЖА [11:33:49]line ТРК (МРК, ГНК) : 42 [11:33:49]line Товар: 2710124130 [11:33:49]line Аи-92-К-4 [11:33:49]line 34.990 * 0.00 [11:33:49]line = 0.00 [11:33:49]line НДС 12% НСП 1% [11:33:49]line > о реализуемом товаре [11:33:49]line ИТОГО: 0.00 [11:33:49]line НСП 1% : 0.00 [11:33:49]line НДС 12% : 0.00 [11:33:49]line Наличными: 0.00 [11:33:49]line Безнал.: 0.00 [11:33:49]line Место: АЗС № 64 "Партнер Нефть" [11:33:49]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:33:49]line СНО: Общий режим [11:33:49]line Чек 71 28.11.2024 11:33 [11:33:49]line Смена: 559 ФФД: 1.0 [11:33:49]line ЗНМ: 0300000033 [11:33:49]line РНМ: 0000000000092681 [11:33:49]line Версия ККМ: 001 [11:33:49]line Талоны: ТК ГПНА Online [11:33:49]line 30043022 [11:33:49]line ФМ: 0000000000874881 [11:33:49]line ФД: 123559 [11:33:49]line ФПД: 121326733856391 [11:33:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T113352&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123559&fm=121326733856391&tin=02508201610067®Number=0000000000092681&sum=0 [11:33:49]written 0, free lines is 4095 [11:33:49]OFD Sender: Processing packet 123559 [packets to send 7, broken 6] [11:33:49]ProducePacketName [11:33:49]name=ofd_packets/00123559 [11:33:49]OFD Sender: To server: pG, [11:33:49]CommunicateWithHost lk.salyk.kg:30040 [11:33:49]ConnectInit lk.salyk.kg [11:33:49]Connected sock=10 [11:33: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 2A C1 07 01 B2 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 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 47 00 00 00 F4 03 04 00 20 55 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 6E 58 94 DF 8E 87 CE 34 D9 4A 6A 14 D7 A8 [11:33: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 78 EB 47 00 D9 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 A7 E2 01 00 F4 03 04 00 E6 00 48 67 B6 04 01 00 00 9A 83 DC 5B E0 FE 89 92 [11:33:49]CommunicateWithHost err = 0 [11:33:49]CheckOFDResponse [11:33:49]1017 (14) - 77093643461234 [11:33:49]1041 (16) - 0000000000874881 [11:33:49]1040 (4) - 123559 [11:33:49]1012 (4) - 28.11.2024 05:34 [11:33:49]1206 (1) - 0 [11:33:49]OFD Sender: Remove packet 123559 [11:33:49]ProducePacketName [11:33:49]name=ofd_packets/00123559 [11:33:49]NVStorageDeleteData [11:33:49]Write to MH i2c: 01 00 00 D6 26 FC [11:33:49]Write i2c OK [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: 01 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: 01 07 00 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: 01 07 00 D6 26 00 00 00 00 00 5E 0C 6D [11:33:49]RasterBufferAndPrint [11:33:49]line [11:33:49]line [11:33:49]line [11:33:49]line [11:33:49]line [11:33:49]written 0, free lines is 3169 [11:33:49]MH_Cut [11:33:49]Write to MH i2c: D1 01 00 DD 26 01 D5 [11:33:49]Write i2c OK [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: D1 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: D1 01 00 [11:33:49]MH_I2C_Read... [11:33:49]Read from MH i2c: D1 01 00 DD 26 00 D4 [11:33:49]Write to MH i2c: 01 00 00 DE 26 04 [11:33:49]Write i2c OK [11:33:49]MH_I2C_Read... [11:33:50]OFD Sender: No OFD packet to send [11:33:51]*** Cut start [11:33:51]*** Partial cut [11:33:51]*** CUTSNS_PIN = 1 [11:33:51]*** CUTSNS_PIN = 0 [11:33:51]*** Brake cut motor [11:33:51]Read from MH i2c: 01 [11:33:51]MH_I2C_Read... [11:33:51]*** Stop cut motor [11:33:51]*** Cut end [11:33:51]Read from MH i2c: 01 07 00 [11:33:51]MH_I2C_Read... [11:33:51]Read from MH i2c: 01 07 00 DE 26 00 00 00 00 00 FF 0F 19 [11:33:51]process_action close_receipt done [11:33:51]requested_data is exist [11:33:51]produce_requested_data [11:33:51]requested_item fm.sn is exist - process it [11:33:51]wFMCommunicate request_size=4 [11:33:51]MH_SAM_APDU [11:33:51]CAPDU: 80 11 00 00 [11:33:51]Write to MH i2c: E2 08 00 DF 26 80 11 00 00 00 00 00 00 7F [11:33:51]Write i2c OK [11:33:51]MH_I2C_Read... [11:33:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:51]Read from MH i2c: E2 [11:33:51]MH_I2C_Read... [11:33:51]Read from MH i2c: E2 17 00 [11:33:51]MH_I2C_Read... [11:33:51]Read from MH i2c: E2 17 00 DF 26 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:33: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:33:51]wFMCommunicate OK [11:33:51]requested_item fd.num is exist - process it [11:33:51]SAM_PROTO_GetFieldsCounters [11:33:51]wFMCommunicate request_size=4 [11:33:51]MH_SAM_APDU [11:33:51]CAPDU: 80 13 00 00 [11:33:51]Write to MH i2c: E2 08 00 E0 26 80 13 00 00 00 00 00 00 82 [11:33:51]Write i2c OK [11:33:51]MH_I2C_Read... [11:33:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:51]Read from MH i2c: E2 [11:33:51]MH_I2C_Read... [11:33:51]Read from MH i2c: E2 62 00 [11:33:51]MH_I2C_Read... [11:33:51]Read from MH i2c: E2 62 00 E0 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 38 [11:33: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 A7 E2 01 00 0E 04 04 00 2F 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 [11:33:51]wFMCommunicate OK [11:33:51]SAM_PROTO_GetFieldsCounters done [11:33:51]requested_item shift.num is exist - process it [11:33:51]requested_item shift.opened is exist - process it [11:33:51]req_shift_opened [11:33:51]FM_GetShiftState [11:33:51]SAM_PROTO_GetShiftState [11:33:51]wFMCommunicate request_size=4 [11:33:51]MH_SAM_APDU [11:33:51]CAPDU: 80 13 01 00 [11:33:51]Write to MH i2c: E2 08 00 E1 26 80 13 01 00 00 00 00 00 84 [11:33:51]Write i2c OK [11:33:51]MH_I2C_Read... [11:33:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:51]Read from MH i2c: E2 [11:33:51]MH_I2C_Read... [11:33:51]Read from MH i2c: E2 0E 00 [11:33:51]MH_I2C_Read... [11:33:51]Read from MH i2c: E2 0E 00 E1 26 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 8B [11:33:51]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:33:51]wFMCommunicate OK [11:33:51]SAM_PROTO_GetShiftState done [11:33:51]FM_GetShiftState done [11:33:51]req_shift_opened done [11:33:51]requested_item shift.open_date is exist - process it [11:33:51]req_shift_open_date [11:33:51]req_shift_open_date done [11:33:51]produce_requested_data done [11:33:51]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123559,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [11:33:51]process_action_free close_receipt [11:33:51]json_value_free [11:33:51]json_value_free done [11:33:51]process_json_proto returns [11:33:51]Send response to host [11:33:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123559,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [11:33:51]free response buf [11:33:51]execute_script done [11:33:51]execute_script returns [11:33:51]free content buf [11:33:51]Sock 9.Close socket [11:33:51]Sock 9.Thread stoped [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:25]accept exits with 8 [11:36:25]New connection [11:36:25]New thread 3066719588 created [11:36:25]Thread 3066862948 joined [11:36:25]Waiting for new connection... [11:36:25] Sock 8.Parse request [11:36:25]Sock 8.Check first char [11:36:25]Sock 8.First char is OK [11:36:25]request: POST /json_proto HTTP/1.0 [11:36:25]Method: POST [11:36:25]URL: /json_proto [11:36:25]Method is POST - this is cgi request [11:36:25]url: /json_proto [11:36:25]query_string will be loaded in cgi processing [11:36:25]execute_cgi json_proto POST (null) [11:36:25]execute_cgi path=json_proto method=POST [11:36:25]POST find Content-Length [11:36:25]Host: 172.17.37.4:8080 [11:36:25]Content-Length: 800 [11:36:25]Content-Type: application/json [11:36:25] [11:36:25]POST finish read [11:36:25]Found Content-Length = 800 [11:36:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718398", "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 }]} ], "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" ] } } [11:36:25]execute_script... [11:36: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)718398", "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 }]} ], "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" ] } } [11:36:25]POST & json_proto [11:36:25]process_json_proto [11:36:25]json parsed OK: [11:36:25]protocol is kg_v1.0 [11:36:25]action value=close_receipt [11:36:25]process_action close_receipt [11:36:25]cmd_close_receipt [11:36:25]MH_GetDate [11:36:25]Write to MH i2c: F0 00 00 E2 26 F7 [11:36:25]Write i2c OK [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: F0 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: F0 09 00 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: F0 09 00 E2 26 00 BE 55 48 67 1D 3A 47 67 C7 [11:36:25]GetLastDocTimeStamp 1732793632 [11:36:25]current date 1732793790 [11:36:25]FM_GetShiftState [11:36:25]SAM_PROTO_GetShiftState [11:36:25]wFMCommunicate request_size=4 [11:36:25]MH_SAM_APDU [11:36:25]CAPDU: 80 13 01 00 [11:36:25]Write to MH i2c: E2 08 00 E3 26 80 13 01 00 00 00 00 00 86 [11:36:25]Write i2c OK [11:36:25]MH_I2C_Read... [11:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:25]Read from MH i2c: E2 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: E2 0E 00 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: E2 0E 00 E3 26 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 8D [11:36:25]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:36:25]wFMCommunicate OK [11:36:25]SAM_PROTO_GetShiftState done [11:36:25]FM_GetShiftState done [11:36:25]opened in 1732752282 [11:36:25]opened+sec_in_day 1732838682 [11:36:25]quantity*price = 50010 [11:36:25]sum+1 = 50012 [11:36:25]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 СНО: Общий режим Чек 72 28.11.2024 11:36 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123560 ФПД: 267045574573922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T113630&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123560&fm=267045574573922&tin=02508201610067®Number=0000000000092681&sum=50011 [11:36:26]StoreToDocumentArchive [11:36:26]shift 559 fd 123560 [11:36:26]save to /storage/0559/doc_00123560 [11:36:26]save last doc name /storage/0559/doc_00123560 to /storage/kkm_last_doc_name [11:36:26]save OK [11:36:26]Clear old archive folders... [11:36:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:26]tlvbuf is B6F3F300 [11:36:26]SAM_PROTO_ClearQueue [11:36:26]wFMCommunicate request_size=4 [11:36:26]MH_SAM_APDU [11:36:26]CAPDU: 80 09 00 00 [11:36:26]Write to MH i2c: E2 08 00 F0 26 80 09 00 00 00 00 00 00 88 [11:36:26]Write i2c OK [11:36:26]MH_I2C_Read... [11:36:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:26]Read from MH i2c: E2 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: E2 03 00 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: E2 03 00 F0 26 00 90 00 8A [11:36:26]RAPDU: 90 00 [11:36:26]wFMCommunicate OK [11:36:26]SAM_PROTO_ClearQueue done [11:36:26]KKMCreateOFDPacket [11:36:26]OFDProtocolAddRootSTLVToBuf [11:36:26]FM_MakeSignedData [11:36:26]FM_MakeSignedData [11:36:26]SAM_PROTO_SignData [11:36:26]wFMCommunicate request_size=4 [11:36:26]MH_SAM_APDU [11:36:26]CAPDU: 80 0D 01 02 [11:36:26]Write to MH i2c: E2 08 00 F1 26 80 0D 01 02 00 00 00 00 90 [11:36:26]Write i2c OK [11:36:26]MH_I2C_Read... [11:36:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:26]Read from MH i2c: E2 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: E2 03 00 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: E2 03 00 F1 26 00 90 00 8B [11:36:26]RAPDU: 90 00 [11:36:26]wFMCommunicate OK [11:36:26]wFMCommunicate request_size=255 [11:36:26]MH_SAM_APDU [11:36:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 48 00 00 00 F4 03 04 00 BE 55 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 F2 [11:36:26]Write to MH i2c: E2 02 01 F2 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 48 00 00 00 F4 03 04 00 BE 55 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 F2 00 00 C5 [11:36:26]Write i2c OK [11:36:26]MH_I2C_Read... [11:36:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:26]Read from MH i2c: E2 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: E2 03 00 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: E2 03 00 F2 26 00 90 00 8C [11:36:26]RAPDU: 90 00 [11:36:26]wFMCommunicate OK [11:36:26]wFMCommunicate request_size=10 [11:36:26]MH_SAM_APDU [11:36:26]CAPDU: 80 0D 02 02 05 E0 64 9C 7F 62 [11:36:26]Write to MH i2c: E2 0D 00 F3 26 80 0D 02 02 05 00 E0 64 9C 7F 62 00 00 5E [11:36:26]Write i2c OK [11:36:26]MH_I2C_Read... [11:36:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:26]Read from MH i2c: E2 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: E2 03 00 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: E2 03 00 F3 26 00 90 00 8D [11:36:26]RAPDU: 90 00 [11:36:26]wFMCommunicate OK [11:36:26]wFMCommunicate request_size=4 [11:36:26]MH_SAM_APDU [11:36:26]CAPDU: 80 0D 03 02 [11:36:26]Write to MH i2c: E2 08 00 F4 26 80 0D 03 02 00 00 00 00 95 [11:36:26]Write i2c OK [11:36:26]MH_I2C_Read... [11:36:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:26]Read from MH i2c: E2 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: E2 0B 00 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: E2 0B 00 F4 26 00 89 2A 92 2F 5D AE BC 3A 90 00 0B [11:36:26]RAPDU: 89 2A 92 2F 5D AE BC 3A 90 00 [11:36:26]wFMCommunicate OK [11:36:26]SAM_PROTO_SignData done [11:36:26]FM_MakeSignedData done [11:36:26]CreateOFDProtocolMessage [11:36:26]wFMCommunicate request_size=4 [11:36:26]MH_SAM_APDU [11:36:26]CAPDU: 80 11 00 00 [11:36:26]Write to MH i2c: E2 08 00 F5 26 80 11 00 00 00 00 00 00 95 [11:36:26]Write i2c OK [11:36:26]MH_I2C_Read... [11:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:27]Read from MH i2c: E2 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 17 00 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 17 00 F5 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EC [11:36:27]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:27]wFMCommunicate OK [11:36:27]CreateOFDProtocolMessage done [11:36:27]OFDSenderStorePacket 123560 [11:36:27]StoreOFDPacket docnum=123560 [11:36: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 5A 47 07 01 C3 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 48 00 00 00 F4 03 04 00 BE 55 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 F2 E0 64 9C 7F 62 89 2A 92 2F 5D AE BC 3A [11:36:27]CheckFolder [11:36:27]dirname=/storage/ofd_packets [11:36:27]CheckFolder done [11:36:27]ProducePacketName [11:36:27]name=ofd_packets/00123560 [11:36:27]NVStorageSaveData ofd_packets/00123560 [11:36:27]File name is /storage/ofd_packets/00123560 [11:36:27]Write 301 bytes [11:36:27]NVStorageSaveData done [11:36:27]OFDSenderStorePacket done [11:36:27]KKMCreateOFDPacket done [11:36:27]NVStorageSaveData kkm_last_timestamp [11:36:27]File name is /storage/kkm_last_timestamp [11:36:27]OFD Sender: Processing packet 123560 [packets to send 7, broken 6] [11:36:27]ProducePacketName [11:36:27]name=ofd_packets/00123560 [11:36:27]OFD Sender: To server: pG, [11:36:27]CommunicateWithHost lk.salyk.kg:30040 [11:36:27]ConnectInit lk.salyk.kg [11:36:27]Write 4 bytes [11:36:27]NVStorageSaveData done [11:36:27]ExternCall_PrintAddStr [11:36:27]wPrintStart [11:36:27]Write to MH i2c: 01 00 00 F6 26 1C [11:36:27]Write i2c OK [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: 01 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: 01 07 00 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: 01 07 00 F6 26 00 00 00 00 00 FF 0F 31 [11:36:27]RasterBufferAndPrint [11:36:27]line Счет N : (1)718398 [11:36:27]line ИНН: 02508201610067 [11:36:27]line Контрольно-Кассовый Чек [11:36:27]line ПРОДАЖА [11:36:27]line ТРК (МРК, ГНК) : 12 [11:36:27]line Товар: 2710124130 [11:36:27]line Аи-92-К-4 [11:36:27]line 7.420 * 67.40 [11:36:27]line = 500.11 [11:36:27]line НДС 12% НСП 1% [11:36:27]line > о реализуемом товаре [11:36:27]line ИТОГО: 500.11 [11:36:27]line НСП 1% : 4.43 [11:36:27]line НДС 12% : 53.11 [11:36:27]line Наличными: 0.00 [11:36:27]line Безнал.: 500.11 [11:36:27]line Место: АЗС № 64 "Партнер Нефть" [11:36:27]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:36:27]line СНО: Общий режим [11:36:27]line Чек 72 28.11.2024 11:36 [11:36:27]line Смена: 559 ФФД: 1.0 [11:36:27]line ЗНМ: 0300000033 [11:36:27]line РНМ: 0000000000092681 [11:36:27]line Версия ККМ: 001 [11:36:27]line Платежная система: O! деньги [11:36:27]line ФМ: 0000000000874881 [11:36:27]line ФД: 123560 [11:36:27]line ФПД: 267045574573922 [11:36:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T113630&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123560&fm=267045574573922&tin=02508201610067®Number=0000000000092681&sum=50011 [11:36:27]written 0, free lines is 4095 [11:36:27]Connected sock=11 [11:36: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 5A 47 07 01 C3 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 48 00 00 00 F4 03 04 00 BE 55 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 F2 E0 64 9C 7F 62 89 2A 92 2F 5D AE BC 3A [11:36: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 41 C5 47 00 0E B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A8 E2 01 00 F4 03 04 00 83 01 48 67 B6 04 01 00 00 FD FB E5 9A 52 09 03 6E [11:36:27]CommunicateWithHost err = 0 [11:36:27]CheckOFDResponse [11:36:27]1017 (14) - 77093643461234 [11:36:27]1041 (16) - 0000000000874881 [11:36:27]1040 (4) - 123560 [11:36:27]1012 (4) - 28.11.2024 05:37 [11:36:27]1206 (1) - 0 [11:36:27]OFD Sender: Remove packet 123560 [11:36:27]ProducePacketName [11:36:27]name=ofd_packets/00123560 [11:36:27]NVStorageDeleteData [11:36:27]Write to MH i2c: 01 00 00 20 27 47 [11:36:27]Write i2c OK [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: 01 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: 01 07 00 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: 01 07 00 20 27 00 00 00 00 00 5C 0C B6 [11:36:27]RasterBufferAndPrint [11:36:27]line [11:36:27]line [11:36:27]line [11:36:27]line [11:36:27]line [11:36:27]written 0, free lines is 3168 [11:36:27]MH_Cut [11:36:27]Write to MH i2c: D1 01 00 27 27 01 20 [11:36:27]Write i2c OK [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: D1 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: D1 01 00 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: D1 01 00 27 27 00 1F [11:36:27]Write to MH i2c: 01 00 00 28 27 4F [11:36:27]Write i2c OK [11:36:27]MH_I2C_Read... [11:36:27]OFD Sender: No OFD packet to send [11:36:28]*** Cut start [11:36:28]*** Partial cut [11:36:28]*** CUTSNS_PIN = 1 [11:36:28]*** CUTSNS_PIN = 0 [11:36:29]*** Brake cut motor [11:36:29]Read from MH i2c: 01 [11:36:29]MH_I2C_Read... [11:36:29]*** Stop cut motor [11:36:29]*** Cut end [11:36:29]Read from MH i2c: 01 07 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: 01 07 00 28 27 00 00 00 00 00 FF 0F 64 [11:36:29]process_action close_receipt done [11:36:29]requested_data is exist [11:36:29]produce_requested_data [11:36:29]requested_item fm.sn is exist - process it [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 11 00 00 [11:36:29]Write to MH i2c: E2 08 00 29 27 80 11 00 00 00 00 00 00 CA [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 17 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 17 00 29 27 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:36:29]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:29]wFMCommunicate OK [11:36:29]requested_item fd.num is exist - process it [11:36:29]SAM_PROTO_GetFieldsCounters [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 13 00 00 [11:36:29]Write to MH i2c: E2 08 00 2A 27 80 13 00 00 00 00 00 00 CD [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 62 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 62 00 2A 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 87 [11:36: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 A8 E2 01 00 0E 04 04 00 2F 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 [11:36:29]wFMCommunicate OK [11:36:29]SAM_PROTO_GetFieldsCounters done [11:36:29]requested_item shift.num is exist - process it [11:36:29]requested_item shift.opened is exist - process it [11:36:29]req_shift_opened [11:36:29]FM_GetShiftState [11:36:29]SAM_PROTO_GetShiftState [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 13 01 00 [11:36:29]Write to MH i2c: E2 08 00 2B 27 80 13 01 00 00 00 00 00 CF [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 0E 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 0E 00 2B 27 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 D6 [11:36:29]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:36:29]wFMCommunicate OK [11:36:29]SAM_PROTO_GetShiftState done [11:36:29]FM_GetShiftState done [11:36:29]req_shift_opened done [11:36:29]requested_item shift.open_date is exist - process it [11:36:29]req_shift_open_date [11:36:29]req_shift_open_date done [11:36:29]produce_requested_data done [11:36:29]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123560,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [11:36:29]process_action_free close_receipt [11:36:29]json_value_free [11:36:29]json_value_free done [11:36:29]process_json_proto returns [11:36:29]Send response to host [11:36:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123560,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [11:36:29]free response buf [11:36:29]execute_script done [11:36:29]execute_script returns [11:36:29]free content buf [11:36:29]Sock 8.Close socket [11:36:29]Sock 8.Thread stoped [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:24]accept exits with 9 [11:40:24]New connection [11:40:24]New thread 3066862948 created [11:40:24]Thread 3066719588 joined [11:40:24]Waiting for new connection... [11:40:24] Sock 9.Parse request [11:40:24]Sock 9.Check first char [11:40:24]Sock 9.First char is OK [11:40:24]request: POST /json_proto HTTP/1.0 [11:40:24]Method: POST [11:40:24]URL: /json_proto [11:40:24]Method is POST - this is cgi request [11:40:24]url: /json_proto [11:40:24]query_string will be loaded in cgi processing [11:40:24]execute_cgi json_proto POST (null) [11:40:24]execute_cgi path=json_proto method=POST [11:40:24]POST find Content-Length [11:40:24]Host: 172.17.37.4:8080 [11:40:24]Content-Length: 800 [11:40:24]Content-Type: application/json [11:40:24] [11:40:24]POST finish read [11:40:24]Found Content-Length = 800 [11:40:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718399", "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" : 9.620, "sum" : 725.35, "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" : 725.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:24]execute_script... [11:40: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)718399", "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" : 9.620, "sum" : 725.35, "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" : 725.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:24]POST & json_proto [11:40:24]process_json_proto [11:40:24]json parsed OK: [11:40:24]protocol is kg_v1.0 [11:40:24]action value=close_receipt [11:40:24]process_action close_receipt [11:40:24]cmd_close_receipt [11:40:24]MH_GetDate [11:40:24]Write to MH i2c: F0 00 00 2C 27 42 [11:40:24]Write i2c OK [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: F0 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: F0 09 00 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: F0 09 00 2C 27 00 AD 56 48 67 1D 3A 47 67 02 [11:40:24]GetLastDocTimeStamp 1732793790 [11:40:24]current date 1732794029 [11:40:24]FM_GetShiftState [11:40:24]SAM_PROTO_GetShiftState [11:40:24]wFMCommunicate request_size=4 [11:40:24]MH_SAM_APDU [11:40:24]CAPDU: 80 13 01 00 [11:40:24]Write to MH i2c: E2 08 00 2D 27 80 13 01 00 00 00 00 00 D1 [11:40:24]Write i2c OK [11:40:24]MH_I2C_Read... [11:40:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:24]Read from MH i2c: E2 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 0E 00 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 0E 00 2D 27 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 D8 [11:40:24]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:40:24]wFMCommunicate OK [11:40:24]SAM_PROTO_GetShiftState done [11:40:24]FM_GetShiftState done [11:40:24]opened in 1732752282 [11:40:24]opened+sec_in_day 1732838682 [11:40:24]quantity*price = 72534 [11:40:24]sum+1 = 72536 [11:40:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 725.35 НСП 1% : 6.42 НДС 12% : 77.03 Наличными: 0.00 Безнал.: 725.35 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 73 28.11.2024 11:40 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123561 ФПД: 179524074769162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T114029&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123561&fm=179524074769162&tin=02508201610067®Number=0000000000092681&sum=72535 [11:40:26]StoreToDocumentArchive [11:40:26]shift 559 fd 123561 [11:40:26]save to /storage/0559/doc_00123561 [11:40:26]save last doc name /storage/0559/doc_00123561 to /storage/kkm_last_doc_name [11:40:26]save OK [11:40:26]Clear old archive folders... [11:40:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:26]tlvbuf is 014DC860 [11:40:26]SAM_PROTO_ClearQueue [11:40:26]wFMCommunicate request_size=4 [11:40:26]MH_SAM_APDU [11:40:26]CAPDU: 80 09 00 00 [11:40:26]Write to MH i2c: E2 08 00 3A 27 80 09 00 00 00 00 00 00 D3 [11:40:26]Write i2c OK [11:40:26]MH_I2C_Read... [11:40:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:26]Read from MH i2c: E2 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 03 00 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 03 00 3A 27 00 90 00 D5 [11:40:26]RAPDU: 90 00 [11:40:26]wFMCommunicate OK [11:40:26]SAM_PROTO_ClearQueue done [11:40:26]KKMCreateOFDPacket [11:40:26]OFDProtocolAddRootSTLVToBuf [11:40:26]FM_MakeSignedData [11:40:26]FM_MakeSignedData [11:40:26]SAM_PROTO_SignData [11:40:26]wFMCommunicate request_size=4 [11:40:26]MH_SAM_APDU [11:40:26]CAPDU: 80 0D 01 02 [11:40:26]Write to MH i2c: E2 08 00 3B 27 80 0D 01 02 00 00 00 00 DB [11:40:26]Write i2c OK [11:40:26]MH_I2C_Read... [11:40:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:26]Read from MH i2c: E2 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 03 00 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 03 00 3B 27 00 90 00 D6 [11:40:26]RAPDU: 90 00 [11:40:26]wFMCommunicate OK [11:40:26]wFMCommunicate request_size=255 [11:40:26]MH_SAM_APDU [11:40: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 94 25 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 57 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 57 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 57 1B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AD 56 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 A3 [11:40:26]Write to MH i2c: E2 02 01 3C 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 94 25 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 57 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 57 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 57 1B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AD 56 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 A3 00 00 A5 [11:40:26]Write i2c OK [11:40:26]MH_I2C_Read... [11:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:26]Read from MH i2c: E2 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 03 00 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 03 00 3C 27 00 90 00 D7 [11:40:26]RAPDU: 90 00 [11:40:26]wFMCommunicate OK [11:40:26]wFMCommunicate request_size=10 [11:40:26]MH_SAM_APDU [11:40:26]CAPDU: 80 0D 02 02 05 46 B4 B4 8B 0A [11:40:26]Write to MH i2c: E2 0D 00 3D 27 80 0D 02 02 05 00 46 B4 B4 8B 0A 00 00 2B [11:40:26]Write i2c OK [11:40:26]MH_I2C_Read... [11:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:26]Read from MH i2c: E2 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 03 00 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 03 00 3D 27 00 90 00 D8 [11:40:26]RAPDU: 90 00 [11:40:26]wFMCommunicate OK [11:40:26]wFMCommunicate request_size=4 [11:40:26]MH_SAM_APDU [11:40:26]CAPDU: 80 0D 03 02 [11:40:26]Write to MH i2c: E2 08 00 3E 27 80 0D 03 02 00 00 00 00 E0 [11:40:26]Write i2c OK [11:40:26]MH_I2C_Read... [11:40:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:26]Read from MH i2c: E2 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 0B 00 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 0B 00 3E 27 00 F4 E6 09 41 52 D3 DB DC 90 00 E1 [11:40:26]RAPDU: F4 E6 09 41 52 D3 DB DC 90 00 [11:40:26]wFMCommunicate OK [11:40:26]SAM_PROTO_SignData done [11:40:26]FM_MakeSignedData done [11:40:26]CreateOFDProtocolMessage [11:40:26]wFMCommunicate request_size=4 [11:40:26]MH_SAM_APDU [11:40:26]CAPDU: 80 11 00 00 [11:40:26]Write to MH i2c: E2 08 00 3F 27 80 11 00 00 00 00 00 00 E0 [11:40:26]Write i2c OK [11:40:26]MH_I2C_Read... [11:40:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:26]Read from MH i2c: E2 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 17 00 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 17 00 3F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 37 [11:40:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:40:26]wFMCommunicate OK [11:40:26]CreateOFDProtocolMessage done [11:40:26]OFDSenderStorePacket 123561 [11:40:26]StoreOFDPacket docnum=123561 [11:40: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 53 A6 07 01 A7 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 94 25 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 57 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 57 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 57 1B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AD 56 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 A3 46 B4 B4 8B 0A F4 E6 09 41 52 D3 DB DC [11:40:26]CheckFolder [11:40:26]dirname=/storage/ofd_packets [11:40:26]CheckFolder done [11:40:26]ProducePacketName [11:40:26]name=ofd_packets/00123561 [11:40:26]NVStorageSaveData ofd_packets/00123561 [11:40:26]File name is /storage/ofd_packets/00123561 [11:40:26]Write 301 bytes [11:40:26]NVStorageSaveData done [11:40:26]OFDSenderStorePacket done [11:40:26]KKMCreateOFDPacket done [11:40:26]NVStorageSaveData kkm_last_timestamp [11:40:26]File name is /storage/kkm_last_timestamp [11:40:26]Write 4 bytes [11:40:26]NVStorageSaveData done [11:40:26]ExternCall_PrintAddStr [11:40:26]wPrintStart [11:40:26]Write to MH i2c: 01 00 00 40 27 67 [11:40:26]Write i2c OK [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: 01 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: 01 07 00 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: 01 07 00 40 27 00 00 00 00 00 FF 0F 7C [11:40:26]RasterBufferAndPrint [11:40:26]line Счет N : (1)718399 [11:40:26]line ИНН: 02508201610067 [11:40:26]line Контрольно-Кассовый Чек [11:40:26]line ПРОДАЖА [11:40:26]line ТРК (МРК, ГНК) : 21 [11:40:26]line Товар: 2710124500 [11:40:26]line Аи-95-К-5 [11:40:26]line 9.620 * 75.40 [11:40:26]line = 725.35 [11:40:26]line НДС 12% НСП 1% [11:40:26]line > о реализуемом товаре [11:40:26]line ИТОГО: 725.35 [11:40:26]line НСП 1% : 6.42 [11:40:26]line НДС 12% : 77.03 [11:40:26]line Наличными: 0.00 [11:40:26]line Безнал.: 725.35 [11:40:26]line Место: АЗС № 64 "Партнер Нефть" [11:40:26]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:40:26]line СНО: Общий режим [11:40:26]line Чек 73 28.11.2024 11:40 [11:40:26]line Смена: 559 ФФД: 1.0 [11:40:26]line ЗНМ: 0300000033 [11:40:26]line РНМ: 0000000000092681 [11:40:26]line Версия ККМ: 001 [11:40:26]line Платежная система: O! деньги [11:40:26]line ФМ: 0000000000874881 [11:40:26]line ФД: 123561 [11:40:26]line ФПД: 179524074769162 [11:40:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T114029&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123561&fm=179524074769162&tin=02508201610067®Number=0000000000092681&sum=72535 [11:40:26]OFD Sender: Processing packet 123561 [packets to send 7, broken 6] [11:40:26]ProducePacketName [11:40:26]name=ofd_packets/00123561 [11:40:26]OFD Sender: To server: pG, [11:40:26]CommunicateWithHost lk.salyk.kg:30040 [11:40:26]ConnectInit lk.salyk.kg [11:40:26]written 0, free lines is 4095 [11:40:26]Connected sock=10 [11:40: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 53 A6 07 01 A7 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 94 25 00 00 00 00 00 37 04 06 00 74 1D 00 00 00 00 13 04 06 00 57 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 57 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 57 1B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AD 56 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 A3 46 B4 B4 8B 0A F4 E6 09 41 52 D3 DB DC [11:40: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 25 B3 47 00 6E C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 A9 E2 01 00 F4 03 04 00 73 02 48 67 B6 04 01 00 00 5A D8 75 F0 CC B1 BB DF [11:40:26]CommunicateWithHost err = 0 [11:40:26]CheckOFDResponse [11:40:26]1017 (14) - 77093643461234 [11:40:26]1041 (16) - 0000000000874881 [11:40:26]1040 (4) - 123561 [11:40:26]1012 (4) - 28.11.2024 05:41 [11:40:26]1206 (1) - 0 [11:40:26]OFD Sender: Remove packet 123561 [11:40:26]ProducePacketName [11:40:26]name=ofd_packets/00123561 [11:40:26]NVStorageDeleteData [11:40:27]Write to MH i2c: 01 00 00 6A 27 91 [11:40:27]Write i2c OK [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: 01 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: 01 07 00 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: 01 07 00 6A 27 00 00 00 00 00 5A 0C FE [11:40:27]RasterBufferAndPrint [11:40:27]line [11:40:27]line [11:40:27]line [11:40:27]line [11:40:27]line [11:40:27]written 0, free lines is 3166 [11:40:27]MH_Cut [11:40:27]Write to MH i2c: D1 01 00 71 27 01 6A [11:40:27]Write i2c OK [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: D1 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: D1 01 00 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: D1 01 00 71 27 00 69 [11:40:27]Write to MH i2c: 01 00 00 72 27 99 [11:40:27]Write i2c OK [11:40:27]MH_I2C_Read... [11:40:27]OFD Sender: No OFD packet to send [11:40:28]*** Cut start [11:40:28]*** Partial cut [11:40:28]*** CUTSNS_PIN = 1 [11:40:28]*** CUTSNS_PIN = 0 [11:40:28]*** Brake cut motor [11:40:29]Read from MH i2c: 01 [11:40:29]MH_I2C_Read... [11:40:29]*** Stop cut motor [11:40:29]*** Cut end [11:40:29]Read from MH i2c: 01 07 00 [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: 01 07 00 72 27 00 00 00 00 00 FF 0F AE [11:40:29]process_action close_receipt done [11:40:29]requested_data is exist [11:40:29]produce_requested_data [11:40:29]requested_item fm.sn is exist - process it [11:40:29]wFMCommunicate request_size=4 [11:40:29]MH_SAM_APDU [11:40:29]CAPDU: 80 11 00 00 [11:40:29]Write to MH i2c: E2 08 00 73 27 80 11 00 00 00 00 00 00 14 [11:40:29]Write i2c OK [11:40:29]MH_I2C_Read... [11:40:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:29]Read from MH i2c: E2 [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: E2 17 00 [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: E2 17 00 73 27 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:40:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:40:29]wFMCommunicate OK [11:40:29]requested_item fd.num is exist - process it [11:40:29]SAM_PROTO_GetFieldsCounters [11:40:29]wFMCommunicate request_size=4 [11:40:29]MH_SAM_APDU [11:40:29]CAPDU: 80 13 00 00 [11:40:29]Write to MH i2c: E2 08 00 74 27 80 13 00 00 00 00 00 00 17 [11:40:29]Write i2c OK [11:40:29]MH_I2C_Read... [11:40:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:29]Read from MH i2c: E2 [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: E2 62 00 [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: E2 62 00 74 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 D5 [11:40:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 [11:40:29]wFMCommunicate OK [11:40:29]SAM_PROTO_GetFieldsCounters done [11:40:29]requested_item shift.num is exist - process it [11:40:29]requested_item shift.opened is exist - process it [11:40:29]req_shift_opened [11:40:29]FM_GetShiftState [11:40:29]SAM_PROTO_GetShiftState [11:40:29]wFMCommunicate request_size=4 [11:40:29]MH_SAM_APDU [11:40:29]CAPDU: 80 13 01 00 [11:40:29]Write to MH i2c: E2 08 00 75 27 80 13 01 00 00 00 00 00 19 [11:40:29]Write i2c OK [11:40:29]MH_I2C_Read... [11:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:29]Read from MH i2c: E2 [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: E2 0E 00 [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: E2 0E 00 75 27 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 20 [11:40:29]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:40:29]wFMCommunicate OK [11:40:29]SAM_PROTO_GetShiftState done [11:40:29]FM_GetShiftState done [11:40:29]req_shift_opened done [11:40:29]requested_item shift.open_date is exist - process it [11:40:29]req_shift_open_date [11:40:29]req_shift_open_date done [11:40:29]produce_requested_data done [11:40:29]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123561,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [11:40:29]process_action_free close_receipt [11:40:29]json_value_free [11:40:29]json_value_free done [11:40:29]process_json_proto returns [11:40:29]Send response to host [11:40:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123561,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [11:40:29]free response buf [11:40:29]execute_script done [11:40:29]execute_script returns [11:40:29]free content buf [11:40:29]Sock 9.Close socket [11:40:29]Sock 9.Thread stoped [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:34]accept exits with 8 [11:45:34]New connection [11:45:34]New thread 3066719588 created [11:45:34]Thread 3066862948 joined [11:45:34]Waiting for new connection... [11:45:34] Sock 8.Parse request [11:45:34]Sock 8.Check first char [11:45:34]Sock 8.First char is OK [11:45:34]request: POST /json_proto HTTP/1.0 [11:45:34]Method: POST [11:45:34]URL: /json_proto [11:45:34]Method is POST - this is cgi request [11:45:34]url: /json_proto [11:45:34]query_string will be loaded in cgi processing [11:45:34]execute_cgi json_proto POST (null) [11:45:34]execute_cgi path=json_proto method=POST [11:45:34]POST find Content-Length [11:45:34]Host: 172.17.37.4:8080 [11:45:34]Content-Length: 803 [11:45:34]Content-Type: application/json [11:45:34] [11:45:34]POST finish read [11:45:34]Found Content-Length = 803 [11:45:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718400", "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" : 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" ] } } [11:45:34]execute_script... [11:45: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)718400", "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" : 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" ] } } [11:45:34]POST & json_proto [11:45:34]process_json_proto [11:45:34]json parsed OK: [11:45:34]protocol is kg_v1.0 [11:45:34]action value=close_receipt [11:45:34]process_action close_receipt [11:45:34]cmd_close_receipt [11:45:34]MH_GetDate [11:45:34]Write to MH i2c: F0 00 00 76 27 8C [11:45:34]Write i2c OK [11:45:34]MH_I2C_Read... [11:45:34]Read from MH i2c: F0 [11:45:34]MH_I2C_Read... [11:45:34]Read from MH i2c: F0 09 00 [11:45:34]MH_I2C_Read... [11:45:34]Read from MH i2c: F0 09 00 76 27 00 E2 57 48 67 1D 3A 47 67 82 [11:45:34]GetLastDocTimeStamp 1732794029 [11:45:34]current date 1732794338 [11:45:34]FM_GetShiftState [11:45:34]SAM_PROTO_GetShiftState [11:45:34]wFMCommunicate request_size=4 [11:45:34]MH_SAM_APDU [11:45:34]CAPDU: 80 13 01 00 [11:45:34]Write to MH i2c: E2 08 00 77 27 80 13 01 00 00 00 00 00 1B [11:45:34]Write i2c OK [11:45:34]MH_I2C_Read... [11:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:34]Read from MH i2c: E2 [11:45:34]MH_I2C_Read... [11:45:34]Read from MH i2c: E2 0E 00 [11:45:34]MH_I2C_Read... [11:45:34]Read from MH i2c: E2 0E 00 77 27 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 22 [11:45:34]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:45:34]wFMCommunicate OK [11:45:34]SAM_PROTO_GetShiftState done [11:45:34]FM_GetShiftState done [11:45:34]opened in 1732752282 [11:45:34]opened+sec_in_day 1732838682 [11:45:34]quantity*price = 200043 [11:45:34]sum+1 = 200044 [11:45:34]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 СНО: Общий режим Чек 74 28.11.2024 11:45 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123562 ФПД: 50508495317247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T114538&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123562&fm=50508495317247&tin=02508201610067®Number=0000000000092681&sum=200043 [11:45:35]StoreToDocumentArchive [11:45:35]shift 559 fd 123562 [11:45:35]save to /storage/0559/doc_00123562 [11:45:35]save last doc name /storage/0559/doc_00123562 to /storage/kkm_last_doc_name [11:45:35]save OK [11:45:35]Clear old archive folders... [11:45:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:35]tlvbuf is 01528560 [11:45:35]SAM_PROTO_ClearQueue [11:45:35]wFMCommunicate request_size=4 [11:45:35]MH_SAM_APDU [11:45:35]CAPDU: 80 09 00 00 [11:45:35]Write to MH i2c: E2 08 00 84 27 80 09 00 00 00 00 00 00 1D [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:35]Read from MH i2c: E2 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 03 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 03 00 84 27 00 90 00 1F [11:45:35]RAPDU: 90 00 [11:45:35]wFMCommunicate OK [11:45:35]SAM_PROTO_ClearQueue done [11:45:35]KKMCreateOFDPacket [11:45:35]OFDProtocolAddRootSTLVToBuf [11:45:35]FM_MakeSignedData [11:45:35]FM_MakeSignedData [11:45:35]SAM_PROTO_SignData [11:45:35]wFMCommunicate request_size=4 [11:45:35]MH_SAM_APDU [11:45:35]CAPDU: 80 0D 01 02 [11:45:35]Write to MH i2c: E2 08 00 85 27 80 0D 01 02 00 00 00 00 25 [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:35]Read from MH i2c: E2 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 03 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 03 00 85 27 00 90 00 20 [11:45:35]RAPDU: 90 00 [11:45:35]wFMCommunicate OK [11:45:35]wFMCommunicate request_size=255 [11:45:35]MH_SAM_APDU [11:45: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 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 4A 00 00 00 F4 03 04 00 E2 57 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2D [11:45:35]Write to MH i2c: E2 02 01 86 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4A 00 00 00 F4 03 04 00 E2 57 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2D 00 00 CF [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:35]Read from MH i2c: E2 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 03 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 03 00 86 27 00 90 00 21 [11:45:35]RAPDU: 90 00 [11:45:35]wFMCommunicate OK [11:45:35]wFMCommunicate request_size=10 [11:45:35]MH_SAM_APDU [11:45:35]CAPDU: 80 0D 02 02 05 EF EC EB E8 FF [11:45:35]Write to MH i2c: E2 0D 00 87 27 80 0D 02 02 05 00 EF EC EB E8 FF 00 00 DF [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:35]Read from MH i2c: E2 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 03 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 03 00 87 27 00 90 00 22 [11:45:35]RAPDU: 90 00 [11:45:35]wFMCommunicate OK [11:45:35]wFMCommunicate request_size=4 [11:45:35]MH_SAM_APDU [11:45:35]CAPDU: 80 0D 03 02 [11:45:35]Write to MH i2c: E2 08 00 88 27 80 0D 03 02 00 00 00 00 2A [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:35]Read from MH i2c: E2 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 0B 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 0B 00 88 27 00 5A 2D C4 FE 7D 73 BF C7 90 00 EA [11:45:35]RAPDU: 5A 2D C4 FE 7D 73 BF C7 90 00 [11:45:35]wFMCommunicate OK [11:45:35]SAM_PROTO_SignData done [11:45:35]FM_MakeSignedData done [11:45:35]CreateOFDProtocolMessage [11:45:35]wFMCommunicate request_size=4 [11:45:35]MH_SAM_APDU [11:45:35]CAPDU: 80 11 00 00 [11:45:35]Write to MH i2c: E2 08 00 89 27 80 11 00 00 00 00 00 00 2A [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:35]Read from MH i2c: E2 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 17 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 17 00 89 27 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:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:45:35]wFMCommunicate OK [11:45:35]CreateOFDProtocolMessage done [11:45:35]OFDSenderStorePacket 123562 [11:45:35]StoreOFDPacket docnum=123562 [11:45: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 BB 36 07 01 4E 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4A 00 00 00 F4 03 04 00 E2 57 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2D EF EC EB E8 FF 5A 2D C4 FE 7D 73 BF C7 [11:45:35]CheckFolder [11:45:35]dirname=/storage/ofd_packets [11:45:35]CheckFolder done [11:45:35]ProducePacketName [11:45:35]name=ofd_packets/00123562 [11:45:35]NVStorageSaveData ofd_packets/00123562 [11:45:35]File name is /storage/ofd_packets/00123562 [11:45:35]Write 301 bytes [11:45:35]NVStorageSaveData done [11:45:35]OFDSenderStorePacket done [11:45:35]KKMCreateOFDPacket done [11:45:35]NVStorageSaveData kkm_last_timestamp [11:45:35]File name is /storage/kkm_last_timestamp [11:45:35]Write 4 bytes [11:45:35]NVStorageSaveData done [11:45:35]ExternCall_PrintAddStr [11:45:35]wPrintStart [11:45:35]Write to MH i2c: 01 00 00 8A 27 B1 [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: 01 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: 01 07 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: 01 07 00 8A 27 00 00 00 00 00 FF 0F C6 [11:45:35]RasterBufferAndPrint [11:45:35]line Счет N : (1)718400 [11:45:35]line ИНН: 02508201610067 [11:45:35]line Контрольно-Кассовый Чек [11:45:35]line ПРОДАЖА [11:45:35]line ТРК (МРК, ГНК) : 12 [11:45:35]line Товар: 2710124130 [11:45:35]line Аи-92-К-4 [11:45:35]line 29.680 * 67.40 [11:45:35]line = 2000.43 [11:45:35]line НДС 12% НСП 1% [11:45:35]line > о реализуемом товаре [11:45:35]line ИТОГО: 2000.43 [11:45:35]line НСП 1% : 17.70 [11:45:35]line НДС 12% : 212.43 [11:45:35]line Наличными: 0.00 [11:45:35]line Безнал.: 2000.43 [11:45:35]line Место: АЗС № 64 "Партнер Нефть" [11:45:35]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:45:35]line СНО: Общий режим [11:45:35]line Чек 74 28.11.2024 11:45 [11:45:35]line Смена: 559 ФФД: 1.0 [11:45:35]line ЗНМ: 0300000033 [11:45:35]line РНМ: 0000000000092681 [11:45:35]line Версия ККМ: 001 [11:45:35]line Платежная система: O! деньги [11:45:35]line ФМ: 0000000000874881 [11:45:35]line ФД: 123562 [11:45:35]line ФПД: 50508495317247 [11:45:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T114538&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123562&fm=50508495317247&tin=02508201610067®Number=0000000000092681&sum=200043 [11:45:36]written 0, free lines is 4095 [11:45:36]OFD Sender: Processing packet 123562 [packets to send 7, broken 6] [11:45:36]ProducePacketName [11:45:36]name=ofd_packets/00123562 [11:45:36]OFD Sender: To server: pG, [11:45:36]CommunicateWithHost lk.salyk.kg:30040 [11:45:36]ConnectInit lk.salyk.kg [11:45:36]Connected sock=10 [11:45: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 BB 36 07 01 4E 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4A 00 00 00 F4 03 04 00 E2 57 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2D EF EC EB E8 FF 5A 2D C4 FE 7D 73 BF C7 [11:45: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 50 E2 47 00 2F AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AA E2 01 00 F4 03 04 00 A8 03 48 67 B6 04 01 00 00 70 E5 1B 43 19 86 2D A0 [11:45:36]CommunicateWithHost err = 0 [11:45:36]CheckOFDResponse [11:45:36]1017 (14) - 77093643461234 [11:45:36]1041 (16) - 0000000000874881 [11:45:36]1040 (4) - 123562 [11:45:36]1012 (4) - 28.11.2024 05:46 [11:45:36]1206 (1) - 0 [11:45:36]OFD Sender: Remove packet 123562 [11:45:36]ProducePacketName [11:45:36]name=ofd_packets/00123562 [11:45:36]NVStorageDeleteData [11:45:36]Write to MH i2c: 01 00 00 B4 27 DB [11:45:36]Write i2c OK [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: 01 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: 01 07 00 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: 01 07 00 B4 27 00 00 00 00 00 59 0C 47 [11:45:36]RasterBufferAndPrint [11:45:36]line [11:45:36]line [11:45:36]line [11:45:36]line [11:45:36]line [11:45:36]written 0, free lines is 3166 [11:45:36]MH_Cut [11:45:36]Write to MH i2c: D1 01 00 BB 27 01 B4 [11:45:36]Write i2c OK [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: D1 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: D1 01 00 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: D1 01 00 BB 27 00 B3 [11:45:36]Write to MH i2c: 01 00 00 BC 27 E3 [11:45:36]Write i2c OK [11:45:36]MH_I2C_Read... [11:45:36]OFD Sender: No OFD packet to send [11:45:37]*** Cut start [11:45:37]*** Partial cut [11:45:37]*** CUTSNS_PIN = 1 [11:45:37]*** CUTSNS_PIN = 0 [11:45:38]*** Brake cut motor [11:45:38]Read from MH i2c: 01 [11:45:38]MH_I2C_Read... [11:45:38]*** Stop cut motor [11:45:38]*** Cut end [11:45:38]Read from MH i2c: 01 07 00 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: 01 07 00 BC 27 00 00 00 00 00 FF 0F F8 [11:45:38]process_action close_receipt done [11:45:38]requested_data is exist [11:45:38]produce_requested_data [11:45:38]requested_item fm.sn is exist - process it [11:45:38]wFMCommunicate request_size=4 [11:45:38]MH_SAM_APDU [11:45:38]CAPDU: 80 11 00 00 [11:45:38]Write to MH i2c: E2 08 00 BD 27 80 11 00 00 00 00 00 00 5E [11:45:38]Write i2c OK [11:45:38]MH_I2C_Read... [11:45:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:38]Read from MH i2c: E2 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 17 00 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 17 00 BD 27 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:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:45:38]wFMCommunicate OK [11:45:38]requested_item fd.num is exist - process it [11:45:38]SAM_PROTO_GetFieldsCounters [11:45:38]wFMCommunicate request_size=4 [11:45:38]MH_SAM_APDU [11:45:38]CAPDU: 80 13 00 00 [11:45:38]Write to MH i2c: E2 08 00 BE 27 80 13 00 00 00 00 00 00 61 [11:45:38]Write i2c OK [11:45:38]MH_I2C_Read... [11:45:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:38]Read from MH i2c: E2 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 62 00 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 62 00 BE 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 23 [11:45: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 AA E2 01 00 0E 04 04 00 2F 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 [11:45:38]wFMCommunicate OK [11:45:38]SAM_PROTO_GetFieldsCounters done [11:45:38]requested_item shift.num is exist - process it [11:45:38]requested_item shift.opened is exist - process it [11:45:38]req_shift_opened [11:45:38]FM_GetShiftState [11:45:38]SAM_PROTO_GetShiftState [11:45:38]wFMCommunicate request_size=4 [11:45:38]MH_SAM_APDU [11:45:38]CAPDU: 80 13 01 00 [11:45:38]Write to MH i2c: E2 08 00 BF 27 80 13 01 00 00 00 00 00 63 [11:45:38]Write i2c OK [11:45:38]MH_I2C_Read... [11:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:38]Read from MH i2c: E2 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 0E 00 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 0E 00 BF 27 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 6A [11:45:38]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:45:38]wFMCommunicate OK [11:45:38]SAM_PROTO_GetShiftState done [11:45:38]FM_GetShiftState done [11:45:38]req_shift_opened done [11:45:38]requested_item shift.open_date is exist - process it [11:45:38]req_shift_open_date [11:45:38]req_shift_open_date done [11:45:38]produce_requested_data done [11:45:38]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123562,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [11:45:38]process_action_free close_receipt [11:45:38]json_value_free [11:45:38]json_value_free done [11:45:38]process_json_proto returns [11:45:38]Send response to host [11:45:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123562,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [11:45:38]free response buf [11:45:38]execute_script done [11:45:38]execute_script returns [11:45:38]free content buf [11:45:38]Sock 8.Close socket [11:45:38]Sock 8.Thread stoped [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:54]accept exits with 9 [11:45:54]New connection [11:45:54]New thread 3066862948 created [11:45:54]Thread 3066719588 joined [11:45:54]Waiting for new connection... [11:45:54] Sock 9.Parse request [11:45:54]Sock 9.Check first char [11:45:54]Sock 9.First char is OK [11:45:54]request: POST /json_proto HTTP/1.0 [11:45:54]Method: POST [11:45:54]URL: /json_proto [11:45:54]Method is POST - this is cgi request [11:45:54]url: /json_proto [11:45:54]query_string will be loaded in cgi processing [11:45:54]execute_cgi json_proto POST (null) [11:45:54]execute_cgi path=json_proto method=POST [11:45:54]POST find Content-Length [11:45:54]Host: 172.17.37.4:8080 [11:45:54]Content-Length: 682 [11:45:54]Content-Type: application/json [11:45:54] [11:45:54]POST finish read [11:45:54]Found Content-Length = 682 [11:45:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718401", "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" : 20.780, "sum" : 1400.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:54]execute_script... [11:45: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)718401", "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" : 20.780, "sum" : 1400.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:54]POST & json_proto [11:45:54]process_json_proto [11:45:54]json parsed OK: [11:45:54]protocol is kg_v1.0 [11:45:54]action value=close_receipt [11:45:54]process_action close_receipt [11:45:54]cmd_close_receipt [11:45:54]MH_GetDate [11:45:54]Write to MH i2c: F0 00 00 C0 27 D6 [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: F0 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: F0 09 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: F0 09 00 C0 27 00 F7 57 48 67 1D 3A 47 67 E1 [11:45:54]GetLastDocTimeStamp 1732794338 [11:45:54]current date 1732794359 [11:45:54]FM_GetShiftState [11:45:54]SAM_PROTO_GetShiftState [11:45:54]wFMCommunicate request_size=4 [11:45:54]MH_SAM_APDU [11:45:54]CAPDU: 80 13 01 00 [11:45:54]Write to MH i2c: E2 08 00 C1 27 80 13 01 00 00 00 00 00 65 [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:54]Read from MH i2c: E2 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 0E 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 0E 00 C1 27 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 6C [11:45:54]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:45:54]wFMCommunicate OK [11:45:54]SAM_PROTO_GetShiftState done [11:45:54]FM_GetShiftState done [11:45:54]opened in 1732752282 [11:45:54]opened+sec_in_day 1732838682 [11:45:54]quantity*price = 140057 [11:45:54]sum+1 = 140058 [11:45:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 75 28.11.2024 11:45 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123563 ФПД: 251100031990422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T114559&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123563&fm=251100031990422&tin=02508201610067®Number=0000000000092681&sum=140000 [11:45:55]StoreToDocumentArchive [11:45:55]shift 559 fd 123563 [11:45:55]save to /storage/0559/doc_00123563 [11:45:55]save last doc name /storage/0559/doc_00123563 to /storage/kkm_last_doc_name [11:45:55]save OK [11:45:55]Clear old archive folders... [11:45:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:55]tlvbuf is 014BEEF0 [11:45:55]SAM_PROTO_ClearQueue [11:45:55]wFMCommunicate request_size=4 [11:45:55]MH_SAM_APDU [11:45:55]CAPDU: 80 09 00 00 [11:45:55]Write to MH i2c: E2 08 00 CE 27 80 09 00 00 00 00 00 00 67 [11:45:55]Write i2c OK [11:45:55]MH_I2C_Read... [11:45:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:56]Read from MH i2c: E2 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 03 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 03 00 CE 27 00 90 00 69 [11:45:56]RAPDU: 90 00 [11:45:56]wFMCommunicate OK [11:45:56]SAM_PROTO_ClearQueue done [11:45:56]KKMCreateOFDPacket [11:45:56]OFDProtocolAddRootSTLVToBuf [11:45:56]FM_MakeSignedData [11:45:56]FM_MakeSignedData [11:45:56]SAM_PROTO_SignData [11:45:56]wFMCommunicate request_size=4 [11:45:56]MH_SAM_APDU [11:45:56]CAPDU: 80 0D 01 02 [11:45:56]Write to MH i2c: E2 08 00 CF 27 80 0D 01 02 00 00 00 00 6F [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:56]Read from MH i2c: E2 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 03 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 03 00 CF 27 00 90 00 6A [11:45:56]RAPDU: 90 00 [11:45:56]wFMCommunicate OK [11:45:56]wFMCommunicate request_size=255 [11:45:56]MH_SAM_APDU [11:45: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 2C 51 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 19 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F7 57 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E4 [11:45:56]Write to MH i2c: E2 02 01 D0 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 2C 51 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 19 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F7 57 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E4 00 00 C7 [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:56]Read from MH i2c: E2 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 03 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 03 00 D0 27 00 90 00 6B [11:45:56]RAPDU: 90 00 [11:45:56]wFMCommunicate OK [11:45:56]wFMCommunicate request_size=10 [11:45:56]MH_SAM_APDU [11:45:56]CAPDU: 80 0D 02 02 05 5F C8 35 BA 96 [11:45:56]Write to MH i2c: E2 0D 00 D1 27 80 0D 02 02 05 00 5F C8 35 BA 96 00 00 28 [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:56]Read from MH i2c: E2 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 03 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 03 00 D1 27 00 90 00 6C [11:45:56]RAPDU: 90 00 [11:45:56]wFMCommunicate OK [11:45:56]wFMCommunicate request_size=4 [11:45:56]MH_SAM_APDU [11:45:56]CAPDU: 80 0D 03 02 [11:45:56]Write to MH i2c: E2 08 00 D2 27 80 0D 03 02 00 00 00 00 74 [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:56]Read from MH i2c: E2 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 0B 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 0B 00 D2 27 00 BA 6A D4 A3 A3 8A 6C 4F 90 00 F8 [11:45:56]RAPDU: BA 6A D4 A3 A3 8A 6C 4F 90 00 [11:45:56]wFMCommunicate OK [11:45:56]SAM_PROTO_SignData done [11:45:56]FM_MakeSignedData done [11:45:56]CreateOFDProtocolMessage [11:45:56]wFMCommunicate request_size=4 [11:45:56]MH_SAM_APDU [11:45:56]CAPDU: 80 11 00 00 [11:45:56]Write to MH i2c: E2 08 00 D3 27 80 11 00 00 00 00 00 00 74 [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:56]Read from MH i2c: E2 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 17 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 17 00 D3 27 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:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:45:56]wFMCommunicate OK [11:45:56]CreateOFDProtocolMessage done [11:45:56]OFDSenderStorePacket 123563 [11:45:56]StoreOFDPacket docnum=123563 [11:45: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 0F 01 00 00 98 75 07 01 BB 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 2C 51 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 19 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F7 57 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E4 5F C8 35 BA 96 BA 6A D4 A3 A3 8A 6C 4F [11:45:56]CheckFolder [11:45:56]dirname=/storage/ofd_packets [11:45:56]CheckFolder done [11:45:56]ProducePacketName [11:45:56]name=ofd_packets/00123563 [11:45:56]NVStorageSaveData ofd_packets/00123563 [11:45:56]File name is /storage/ofd_packets/00123563 [11:45:56]Write 301 bytes [11:45:56]NVStorageSaveData done [11:45:56]OFDSenderStorePacket done [11:45:56]KKMCreateOFDPacket done [11:45:56]NVStorageSaveData kkm_last_timestamp [11:45:56]File name is /storage/kkm_last_timestamp [11:45:56]Write 4 bytes [11:45:56]NVStorageSaveData done [11:45:56]ExternCall_PrintAddStr [11:45:56]wPrintStart [11:45:56]Write to MH i2c: 01 00 00 D4 27 FB [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: 01 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: 01 07 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: 01 07 00 D4 27 00 00 00 00 00 FF 0F 10 [11:45:56]RasterBufferAndPrint [11:45:56]line Счет N : (1)718401 [11:45:56]line ИНН: 02508201610067 [11:45:56]line Контрольно-Кассовый Чек [11:45:56]line ПРОДАЖА [11:45:56]line ТРК (МРК, ГНК) : 22 [11:45:56]line Товар: 2710124130 [11:45:56]line Аи-92-К-4 [11:45:56]line 20.780 * 67.40 [11:45:56]line = 1400.57 [11:45:56]line НДС 12% НСП 1% [11:45:56]line > о реализуемом товаре [11:45:56]line ОКРУГЛЕНИЕ: -0.57 [11:45:56]line ИТОГО: 1400.00 [11:45:56]line Внесено: 1400.00 [11:45:56]line СДАЧА: 0.00 [11:45:56]line НСП 1% : 12.39 [11:45:56]line НДС 12% : 148.73 [11:45:56]line Наличными: 1400.00 [11:45:56]line Безнал.: 0.00 [11:45:56]line Место: АЗС № 64 "Партнер Нефть" [11:45:56]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:45:56]line СНО: Общий режим [11:45:56]line Чек 75 28.11.2024 11:45 [11:45:56]line Смена: 559 ФФД: 1.0 [11:45:56]line ЗНМ: 0300000033 [11:45:56]line РНМ: 0000000000092681 [11:45:56]line Версия ККМ: 001 [11:45:56]line ФМ: 0000000000874881 [11:45:56]line ФД: 123563 [11:45:56]line ФПД: 251100031990422 [11:45:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T114559&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123563&fm=251100031990422&tin=02508201610067®Number=0000000000092681&sum=140000 [11:45:56]OFD Sender: Processing packet 123563 [packets to send 7, broken 6] [11:45:56]ProducePacketName [11:45:56]name=ofd_packets/00123563 [11:45:56]OFD Sender: To server: pG, [11:45:56]CommunicateWithHost lk.salyk.kg:30040 [11:45:56]ConnectInit lk.salyk.kg [11:45:56]written 0, free lines is 4095 [11:45:56]Connected sock=10 [11:45: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 98 75 07 01 BB 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 2C 51 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 19 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F7 57 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E4 5F C8 35 BA 96 BA 6A D4 A3 A3 8A 6C 4F [11:45: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 2C DF 47 00 96 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 AB E2 01 00 F4 03 04 00 BD 03 48 67 B6 04 01 00 00 B8 08 53 28 C8 90 9C 34 [11:45:57]CommunicateWithHost err = 0 [11:45:57]CheckOFDResponse [11:45:57]1017 (14) - 77093643461234 [11:45:57]1041 (16) - 0000000000874881 [11:45:57]1040 (4) - 123563 [11:45:57]1012 (4) - 28.11.2024 05:46 [11:45:57]1206 (1) - 0 [11:45:57]OFD Sender: Remove packet 123563 [11:45:57]ProducePacketName [11:45:57]name=ofd_packets/00123563 [11:45:57]NVStorageDeleteData [11:45:57]Write to MH i2c: 01 00 00 FF 27 26 [11:45:57]Write i2c OK [11:45:57]MH_I2C_Read... [11:45:57]Read from MH i2c: 01 [11:45:57]MH_I2C_Read... [11:45:57]Read from MH i2c: 01 07 00 [11:45:57]MH_I2C_Read... [11:45:57]Read from MH i2c: 01 07 00 FF 27 00 00 00 00 00 49 0C 82 [11:45:57]RasterBufferAndPrint [11:45:57]line [11:45:57]line [11:45:57]line [11:45:57]line [11:45:57]line [11:45:57]written 0, free lines is 3149 [11:45:57]MH_Cut [11:45:57]Write to MH i2c: D1 01 00 06 28 01 00 [11:45:57]Write i2c OK [11:45:57]MH_I2C_Read... [11:45:57]Read from MH i2c: D1 [11:45:57]MH_I2C_Read... [11:45:57]Read from MH i2c: D1 01 00 [11:45:57]MH_I2C_Read... [11:45:57]Read from MH i2c: D1 01 00 06 28 00 FF [11:45:57]Write to MH i2c: 01 00 00 07 28 2F [11:45:57]Write i2c OK [11:45:57]MH_I2C_Read... [11:45:57]OFD Sender: No OFD packet to send [11:45:58]*** Cut start [11:45:58]*** Partial cut [11:45:58]*** CUTSNS_PIN = 1 [11:45:58]*** CUTSNS_PIN = 0 [11:45:59]*** Brake cut motor [11:45:59]Read from MH i2c: 01 [11:45:59]MH_I2C_Read... [11:45:59]*** Stop cut motor [11:45:59]*** Cut end [11:45:59]Read from MH i2c: 01 07 00 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: 01 07 00 07 28 00 00 00 00 00 FF 0F 44 [11:45:59]process_action close_receipt done [11:45:59]requested_data is exist [11:45:59]produce_requested_data [11:45:59]requested_item fm.sn is exist - process it [11:45:59]wFMCommunicate request_size=4 [11:45:59]MH_SAM_APDU [11:45:59]CAPDU: 80 11 00 00 [11:45:59]Write to MH i2c: E2 08 00 08 28 80 11 00 00 00 00 00 00 AA [11:45:59]Write i2c OK [11:45:59]MH_I2C_Read... [11:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:59]Read from MH i2c: E2 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 17 00 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 17 00 08 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 01 [11:45: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:45:59]wFMCommunicate OK [11:45:59]requested_item fd.num is exist - process it [11:45:59]SAM_PROTO_GetFieldsCounters [11:45:59]wFMCommunicate request_size=4 [11:45:59]MH_SAM_APDU [11:45:59]CAPDU: 80 13 00 00 [11:45:59]Write to MH i2c: E2 08 00 09 28 80 13 00 00 00 00 00 00 AD [11:45:59]Write i2c OK [11:45:59]MH_I2C_Read... [11:45:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:59]Read from MH i2c: E2 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 62 00 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 62 00 09 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 73 [11:45: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 AB E2 01 00 0E 04 04 00 2F 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 [11:45:59]wFMCommunicate OK [11:45:59]SAM_PROTO_GetFieldsCounters done [11:45:59]requested_item shift.num is exist - process it [11:45:59]requested_item shift.opened is exist - process it [11:45:59]req_shift_opened [11:45:59]FM_GetShiftState [11:45:59]SAM_PROTO_GetShiftState [11:45:59]wFMCommunicate request_size=4 [11:45:59]MH_SAM_APDU [11:45:59]CAPDU: 80 13 01 00 [11:45:59]Write to MH i2c: E2 08 00 0A 28 80 13 01 00 00 00 00 00 AF [11:45:59]Write i2c OK [11:45:59]MH_I2C_Read... [11:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:59]Read from MH i2c: E2 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 0E 00 [11:45:59]MH_I2C_Read... [11:45:59]Read from MH i2c: E2 0E 00 0A 28 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 B6 [11:45:59]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:45:59]wFMCommunicate OK [11:45:59]SAM_PROTO_GetShiftState done [11:45:59]FM_GetShiftState done [11:45:59]req_shift_opened done [11:45:59]requested_item shift.open_date is exist - process it [11:45:59]req_shift_open_date [11:45:59]req_shift_open_date done [11:45:59]produce_requested_data done [11:45:59]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123563,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [11:45:59]process_action_free close_receipt [11:45:59]json_value_free [11:45:59]json_value_free done [11:45:59]process_json_proto returns [11:45:59]Send response to host [11:45:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123563,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [11:45:59]free response buf [11:45:59]execute_script done [11:45:59]execute_script returns [11:45:59]free content buf [11:45:59]Sock 9.Close socket [11:45:59]Sock 9.Thread stoped [11:46:00]accept exits with 8 [11:46:00]New connection [11:46:00]New thread 3066719588 created [11:46:00]Thread 3066862948 joined [11:46:00]Waiting for new connection... [11:46:00] Sock 8.Parse request [11:46:00]Sock 8.Check first char [11:46:00]Sock 8.First char is OK [11:46:00]request: POST /json_proto HTTP/1.0 [11:46:00]Method: POST [11:46:00]URL: /json_proto [11:46:00]Method is POST - this is cgi request [11:46:00]url: /json_proto [11:46:00]query_string will be loaded in cgi processing [11:46:00]execute_cgi json_proto POST (null) [11:46:00]execute_cgi path=json_proto method=POST [11:46:00]POST find Content-Length [11:46:00]Host: 172.17.37.4:8080 [11:46:00]Content-Length: 677 [11:46:00]Content-Type: application/json [11:46:00] [11:46:00]POST finish read [11:46:00]Found Content-Length = 677 [11:46:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718402", "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 }]} ], "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:46:00]execute_script... [11:46: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)718402", "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 }]} ], "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:46:00]POST & json_proto [11:46:00]process_json_proto [11:46:00]json parsed OK: [11:46:00]protocol is kg_v1.0 [11:46:00]action value=close_receipt [11:46:00]process_action close_receipt [11:46:00]cmd_close_receipt [11:46:00]MH_GetDate [11:46:00]Write to MH i2c: F0 00 00 0B 28 22 [11:46:00]Write i2c OK [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: F0 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: F0 09 00 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: F0 09 00 0B 28 00 FC 57 48 67 1D 3A 47 67 32 [11:46:00]GetLastDocTimeStamp 1732794359 [11:46:00]current date 1732794364 [11:46:00]FM_GetShiftState [11:46:00]SAM_PROTO_GetShiftState [11:46:00]wFMCommunicate request_size=4 [11:46:00]MH_SAM_APDU [11:46:00]CAPDU: 80 13 01 00 [11:46:00]Write to MH i2c: E2 08 00 0C 28 80 13 01 00 00 00 00 00 B1 [11:46:00]Write i2c OK [11:46:00]MH_I2C_Read... [11:46:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:00]Read from MH i2c: E2 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: E2 0E 00 [11:46:00]MH_I2C_Read... [11:46:00]Read from MH i2c: E2 0E 00 0C 28 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 B8 [11:46:00]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:46:00]wFMCommunicate OK [11:46:00]SAM_PROTO_GetShiftState done [11:46:00]FM_GetShiftState done [11:46:00]opened in 1732752282 [11:46:00]opened+sec_in_day 1732838682 [11:46:00]quantity*price = 40035 [11:46:00]sum+1 = 40037 [11:46:00]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 СНО: Общий режим Чек 76 28.11.2024 11:46 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123564 ФПД: 90028516223512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T114604&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123564&fm=90028516223512&tin=02508201610067®Number=0000000000092681&sum=40000 [11:46:01]StoreToDocumentArchive [11:46:01]shift 559 fd 123564 [11:46:01]save to /storage/0559/doc_00123564 [11:46:01]save last doc name /storage/0559/doc_00123564 to /storage/kkm_last_doc_name [11:46:01]save OK [11:46:01]Clear old archive folders... [11:46:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:01]tlvbuf is 014E7B50 [11:46:01]SAM_PROTO_ClearQueue [11:46:01]wFMCommunicate request_size=4 [11:46:01]MH_SAM_APDU [11:46:01]CAPDU: 80 09 00 00 [11:46:01]Write to MH i2c: E2 08 00 19 28 80 09 00 00 00 00 00 00 B3 [11:46:01]Write i2c OK [11:46:01]MH_I2C_Read... [11:46:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:01]Read from MH i2c: E2 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: E2 03 00 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: E2 03 00 19 28 00 90 00 B5 [11:46:01]RAPDU: 90 00 [11:46:01]wFMCommunicate OK [11:46:01]SAM_PROTO_ClearQueue done [11:46:01]KKMCreateOFDPacket [11:46:01]OFDProtocolAddRootSTLVToBuf [11:46:01]FM_MakeSignedData [11:46:01]FM_MakeSignedData [11:46:01]SAM_PROTO_SignData [11:46:01]wFMCommunicate request_size=4 [11:46:01]MH_SAM_APDU [11:46:01]CAPDU: 80 0D 01 02 [11:46:01]Write to MH i2c: E2 08 00 1A 28 80 0D 01 02 00 00 00 00 BB [11:46:01]Write i2c OK [11:46:01]MH_I2C_Read... [11:46:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:01]Read from MH i2c: E2 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: E2 03 00 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: E2 03 00 1A 28 00 90 00 B6 [11:46:01]RAPDU: 90 00 [11:46:01]wFMCommunicate OK [11:46:01]wFMCommunicate request_size=255 [11:46:01]MH_SAM_APDU [11:46:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4C 00 00 00 F4 03 04 00 FC 57 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 51 [11:46:01]Write to MH i2c: E2 02 01 1B 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4C 00 00 00 F4 03 04 00 FC 57 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 51 00 00 A8 [11:46:01]Write i2c OK [11:46:01]MH_I2C_Read... [11:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:01]Read from MH i2c: E2 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: E2 03 00 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: E2 03 00 1B 28 00 90 00 B7 [11:46:01]RAPDU: 90 00 [11:46:01]wFMCommunicate OK [11:46:01]wFMCommunicate request_size=10 [11:46:01]MH_SAM_APDU [11:46:01]CAPDU: 80 0D 02 02 05 E1 65 BA AA 18 [11:46:01]Write to MH i2c: E2 0D 00 1C 28 80 0D 02 02 05 00 E1 65 BA AA 18 00 00 8A [11:46:01]Write i2c OK [11:46:01]MH_I2C_Read... [11:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:01]Read from MH i2c: E2 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: E2 03 00 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: E2 03 00 1C 28 00 90 00 B8 [11:46:01]RAPDU: 90 00 [11:46:01]wFMCommunicate OK [11:46:01]wFMCommunicate request_size=4 [11:46:01]MH_SAM_APDU [11:46:01]CAPDU: 80 0D 03 02 [11:46:01]Write to MH i2c: E2 08 00 1D 28 80 0D 03 02 00 00 00 00 C0 [11:46:02]Write i2c OK [11:46:02]MH_I2C_Read... [11:46:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:02]Read from MH i2c: E2 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: E2 0B 00 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: E2 0B 00 1D 28 00 4C AC 57 15 21 07 20 69 90 00 D6 [11:46:02]RAPDU: 4C AC 57 15 21 07 20 69 90 00 [11:46:02]wFMCommunicate OK [11:46:02]SAM_PROTO_SignData done [11:46:02]FM_MakeSignedData done [11:46:02]CreateOFDProtocolMessage [11:46:02]wFMCommunicate request_size=4 [11:46:02]MH_SAM_APDU [11:46:02]CAPDU: 80 11 00 00 [11:46:02]Write to MH i2c: E2 08 00 1E 28 80 11 00 00 00 00 00 00 C0 [11:46:02]Write i2c OK [11:46:02]MH_I2C_Read... [11:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:02]Read from MH i2c: E2 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: E2 17 00 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: E2 17 00 1E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 17 [11:46: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:46:02]wFMCommunicate OK [11:46:02]CreateOFDProtocolMessage done [11:46:02]OFDSenderStorePacket 123564 [11:46:02]StoreOFDPacket docnum=123564 [11:46: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 0F 01 00 00 87 A0 07 01 C5 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4C 00 00 00 F4 03 04 00 FC 57 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 51 E1 65 BA AA 18 4C AC 57 15 21 07 20 69 [11:46:02]CheckFolder [11:46:02]dirname=/storage/ofd_packets [11:46:02]CheckFolder done [11:46:02]ProducePacketName [11:46:02]name=ofd_packets/00123564 [11:46:02]NVStorageSaveData ofd_packets/00123564 [11:46:02]File name is /storage/ofd_packets/00123564 [11:46:02]Write 301 bytes [11:46:02]NVStorageSaveData done [11:46:02]OFDSenderStorePacket done [11:46:02]KKMCreateOFDPacket done [11:46:02]NVStorageSaveData kkm_last_timestamp [11:46:02]File name is /storage/kkm_last_timestamp [11:46:02]Write 4 bytes [11:46:02]NVStorageSaveData done [11:46:02]ExternCall_PrintAddStr [11:46:02]wPrintStart [11:46:02]Write to MH i2c: 01 00 00 1F 28 47 [11:46:02]Write i2c OK [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: 01 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: 01 07 00 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: 01 07 00 1F 28 00 00 00 00 00 FF 0F 5C [11:46:02]RasterBufferAndPrint [11:46:02]line Счет N : (1)718402 [11:46:02]line ИНН: 02508201610067 [11:46:02]line Контрольно-Кассовый Чек [11:46:02]line ПРОДАЖА [11:46:02]line ТРК (МРК, ГНК) : 42 [11:46:02]line Товар: 2710124130 [11:46:02]line Аи-92-К-4 [11:46:02]line 5.940 * 67.40 [11:46:02]line = 400.36 [11:46:02]line НДС 12% НСП 1% [11:46:02]line > о реализуемом товаре [11:46:02]line ОКРУГЛЕНИЕ: -0.36 [11:46:02]line ИТОГО: 400.00 [11:46:02]line Внесено: 400.00 [11:46:02]line СДАЧА: 0.00 [11:46:02]line НСП 1% : 3.54 [11:46:02]line НДС 12% : 42.52 [11:46:02]line Наличными: 400.00 [11:46:02]line Безнал.: 0.00 [11:46:02]line Место: АЗС № 64 "Партнер Нефть" [11:46:02]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:46:02]line СНО: Общий режим [11:46:02]line Чек 76 28.11.2024 11:46 [11:46:02]line Смена: 559 ФФД: 1.0 [11:46:02]line ЗНМ: 0300000033 [11:46:02]line РНМ: 0000000000092681 [11:46:02]line Версия ККМ: 001 [11:46:02]line ФМ: 0000000000874881 [11:46:02]line ФД: 123564 [11:46:02]line ФПД: 90028516223512 [11:46:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T114604&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123564&fm=90028516223512&tin=02508201610067®Number=0000000000092681&sum=40000 [11:46:02]written 0, free lines is 4095 [11:46:02]OFD Sender: Processing packet 123564 [packets to send 7, broken 6] [11:46:02]ProducePacketName [11:46:02]name=ofd_packets/00123564 [11:46:02]OFD Sender: To server: pG, [11:46:02]CommunicateWithHost lk.salyk.kg:30040 [11:46:02]ConnectInit lk.salyk.kg [11:46:02]Connected sock=10 [11:46: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 87 A0 07 01 C5 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4C 00 00 00 F4 03 04 00 FC 57 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 51 E1 65 BA AA 18 4C AC 57 15 21 07 20 69 [11:46: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 66 03 47 00 D4 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 AC E2 01 00 F4 03 04 00 C2 03 48 67 B6 04 01 00 00 DB 1E C6 38 1A 83 8D 9E [11:46:02]CommunicateWithHost err = 0 [11:46:02]CheckOFDResponse [11:46:02]1017 (14) - 77093643461234 [11:46:02]1041 (16) - 0000000000874881 [11:46:02]1040 (4) - 123564 [11:46:02]1012 (4) - 28.11.2024 05:46 [11:46:02]1206 (1) - 0 [11:46:02]OFD Sender: Remove packet 123564 [11:46:02]ProducePacketName [11:46:02]name=ofd_packets/00123564 [11:46:02]NVStorageDeleteData [11:46:02]Write to MH i2c: 01 00 00 4A 28 72 [11:46:02]Write i2c OK [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: 01 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: 01 07 00 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: 01 07 00 4A 28 00 00 00 00 00 5F 0C E4 [11:46:02]RasterBufferAndPrint [11:46:02]line [11:46:02]line [11:46:02]line [11:46:02]line [11:46:02]line [11:46:02]written 0, free lines is 3174 [11:46:02]MH_Cut [11:46:02]Write to MH i2c: D1 01 00 51 28 01 4B [11:46:02]Write i2c OK [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: D1 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: D1 01 00 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: D1 01 00 51 28 00 4A [11:46:02]Write to MH i2c: 01 00 00 52 28 7A [11:46:02]Write i2c OK [11:46:02]MH_I2C_Read... [11:46:03]OFD Sender: No OFD packet to send [11:46:03]*** Cut start [11:46:03]*** Partial cut [11:46:03]*** CUTSNS_PIN = 1 [11:46:03]*** CUTSNS_PIN = 0 [11:46:04]*** Brake cut motor [11:46:04]Read from MH i2c: 01 [11:46:04]MH_I2C_Read... [11:46:04]*** Stop cut motor [11:46:04]*** Cut end [11:46:04]Read from MH i2c: 01 07 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: 01 07 00 52 28 00 00 00 00 00 FF 0F 8F [11:46:04]process_action close_receipt done [11:46:04]requested_data is exist [11:46:04]produce_requested_data [11:46:04]requested_item fm.sn is exist - process it [11:46:04]wFMCommunicate request_size=4 [11:46:04]MH_SAM_APDU [11:46:04]CAPDU: 80 11 00 00 [11:46:04]Write to MH i2c: E2 08 00 53 28 80 11 00 00 00 00 00 00 F5 [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:04]Read from MH i2c: E2 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 17 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 17 00 53 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 4C [11:46: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:46:04]wFMCommunicate OK [11:46:04]requested_item fd.num is exist - process it [11:46:04]SAM_PROTO_GetFieldsCounters [11:46:04]wFMCommunicate request_size=4 [11:46:04]MH_SAM_APDU [11:46:04]CAPDU: 80 13 00 00 [11:46:04]Write to MH i2c: E2 08 00 54 28 80 13 00 00 00 00 00 00 F8 [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:04]Read from MH i2c: E2 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 62 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 62 00 54 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 C2 [11:46: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 AC E2 01 00 0E 04 04 00 2F 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 [11:46:04]wFMCommunicate OK [11:46:04]SAM_PROTO_GetFieldsCounters done [11:46:04]requested_item shift.num is exist - process it [11:46:04]requested_item shift.opened is exist - process it [11:46:04]req_shift_opened [11:46:04]FM_GetShiftState [11:46:04]SAM_PROTO_GetShiftState [11:46:04]wFMCommunicate request_size=4 [11:46:04]MH_SAM_APDU [11:46:04]CAPDU: 80 13 01 00 [11:46:04]Write to MH i2c: E2 08 00 55 28 80 13 01 00 00 00 00 00 FA [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:04]Read from MH i2c: E2 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 0E 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 0E 00 55 28 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 01 [11:46:04]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:46:04]wFMCommunicate OK [11:46:04]SAM_PROTO_GetShiftState done [11:46:04]FM_GetShiftState done [11:46:04]req_shift_opened done [11:46:04]requested_item shift.open_date is exist - process it [11:46:04]req_shift_open_date [11:46:04]req_shift_open_date done [11:46:04]produce_requested_data done [11:46:04]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123564,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [11:46:04]process_action_free close_receipt [11:46:04]json_value_free [11:46:04]json_value_free done [11:46:04]process_json_proto returns [11:46:04]Send response to host [11:46:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123564,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [11:46:04]free response buf [11:46:04]execute_script done [11:46:04]execute_script returns [11:46:04]free content buf [11:46:04]Sock 8.Close socket [11:46:04]Sock 8.Thread stoped [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:13]OFD Sender: No OFD packet to send [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:53]accept exits with 9 [11:55:53]New connection [11:55:53]New thread 3066862948 created [11:55:53]Thread 3066719588 joined [11:55:53]Waiting for new connection... [11:55:53] Sock 9.Parse request [11:55:53]Sock 9.Check first char [11:55:53]Sock 9.First char is OK [11:55:53]request: POST /json_proto HTTP/1.0 [11:55:53]Method: POST [11:55:53]URL: /json_proto [11:55:53]Method is POST - this is cgi request [11:55:53]url: /json_proto [11:55:53]query_string will be loaded in cgi processing [11:55:53]execute_cgi json_proto POST (null) [11:55:53]execute_cgi path=json_proto method=POST [11:55:53]POST find Content-Length [11:55:53]Host: 172.17.37.4:8080 [11:55:53]Content-Length: 677 [11:55:53]Content-Type: application/json [11:55:53] [11:55:53]POST finish read [11:55:53]Found Content-Length = 677 [11:55:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718403", "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:55:53]execute_script... [11:55:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718403", "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:55:53]POST & json_proto [11:55:53]process_json_proto [11:55:53]json parsed OK: [11:55:53]protocol is kg_v1.0 [11:55:53]action value=close_receipt [11:55:53]process_action close_receipt [11:55:53]cmd_close_receipt [11:55:53]MH_GetDate [11:55:53]Write to MH i2c: F0 00 00 56 28 6D [11:55:53]Write i2c OK [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: F0 [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: F0 09 00 [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: F0 09 00 56 28 00 4E 5A 48 67 1D 3A 47 67 D2 [11:55:53]GetLastDocTimeStamp 1732794364 [11:55:53]current date 1732794958 [11:55:53]FM_GetShiftState [11:55:53]SAM_PROTO_GetShiftState [11:55:53]wFMCommunicate request_size=4 [11:55:53]MH_SAM_APDU [11:55:53]CAPDU: 80 13 01 00 [11:55:53]Write to MH i2c: E2 08 00 57 28 80 13 01 00 00 00 00 00 FC [11:55:53]Write i2c OK [11:55:53]MH_I2C_Read... [11:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:53]Read from MH i2c: E2 [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: E2 0E 00 [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: E2 0E 00 57 28 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 03 [11:55:53]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:55:53]wFMCommunicate OK [11:55:53]SAM_PROTO_GetShiftState done [11:55:53]FM_GetShiftState done [11:55:53]opened in 1732752282 [11:55:53]opened+sec_in_day 1732838682 [11:55:53]quantity*price = 30060 [11:55:53]sum+1 = 30061 [11:55:53]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 СНО: Общий режим Чек 77 28.11.2024 11:55 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123565 ФПД: 263733996007816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T115558&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123565&fm=263733996007816&tin=02508201610067®Number=0000000000092681&sum=30000 [11:55:55]StoreToDocumentArchive [11:55:55]shift 559 fd 123565 [11:55:55]save to /storage/0559/doc_00123565 [11:55:55]save last doc name /storage/0559/doc_00123565 to /storage/kkm_last_doc_name [11:55:55]save OK [11:55:55]Clear old archive folders... [11:55:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:55]tlvbuf is B6F42230 [11:55:55]SAM_PROTO_ClearQueue [11:55:55]wFMCommunicate request_size=4 [11:55:55]MH_SAM_APDU [11:55:55]CAPDU: 80 09 00 00 [11:55:55]Write to MH i2c: E2 08 00 64 28 80 09 00 00 00 00 00 00 FE [11:55:55]Write i2c OK [11:55:55]MH_I2C_Read... [11:55:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:55]Read from MH i2c: E2 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 03 00 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 03 00 64 28 00 90 00 00 [11:55:55]RAPDU: 90 00 [11:55:55]wFMCommunicate OK [11:55:55]SAM_PROTO_ClearQueue done [11:55:55]KKMCreateOFDPacket [11:55:55]OFDProtocolAddRootSTLVToBuf [11:55:55]FM_MakeSignedData [11:55:55]FM_MakeSignedData [11:55:55]SAM_PROTO_SignData [11:55:55]wFMCommunicate request_size=4 [11:55:55]MH_SAM_APDU [11:55:55]CAPDU: 80 0D 01 02 [11:55:55]Write to MH i2c: E2 08 00 65 28 80 0D 01 02 00 00 00 00 06 [11:55:55]Write i2c OK [11:55:55]MH_I2C_Read... [11:55:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:55]Read from MH i2c: E2 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 03 00 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 03 00 65 28 00 90 00 01 [11:55:55]RAPDU: 90 00 [11:55:55]wFMCommunicate OK [11:55:55]wFMCommunicate request_size=255 [11:55:55]MH_SAM_APDU [11:55: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 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 4D 00 00 00 F4 03 04 00 4E 5A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 EF [11:55:55]Write to MH i2c: E2 02 01 66 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4D 00 00 00 F4 03 04 00 4E 5A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 EF 00 00 0D [11:55:55]Write i2c OK [11:55:55]MH_I2C_Read... [11:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:55]Read from MH i2c: E2 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 03 00 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 03 00 66 28 00 90 00 02 [11:55:55]RAPDU: 90 00 [11:55:55]wFMCommunicate OK [11:55:55]wFMCommunicate request_size=10 [11:55:55]MH_SAM_APDU [11:55:55]CAPDU: 80 0D 02 02 05 DD 5B 25 B1 88 [11:55:55]Write to MH i2c: E2 0D 00 67 28 80 0D 02 02 05 00 DD 5B 25 B1 88 00 00 A9 [11:55:55]Write i2c OK [11:55:55]MH_I2C_Read... [11:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:55]Read from MH i2c: E2 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 03 00 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 03 00 67 28 00 90 00 03 [11:55:55]RAPDU: 90 00 [11:55:55]wFMCommunicate OK [11:55:55]wFMCommunicate request_size=4 [11:55:55]MH_SAM_APDU [11:55:55]CAPDU: 80 0D 03 02 [11:55:55]Write to MH i2c: E2 08 00 68 28 80 0D 03 02 00 00 00 00 0B [11:55:55]Write i2c OK [11:55:55]MH_I2C_Read... [11:55:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:55]Read from MH i2c: E2 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 0B 00 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 0B 00 68 28 00 56 F2 1F 2E 27 BD 85 4D 90 00 57 [11:55:55]RAPDU: 56 F2 1F 2E 27 BD 85 4D 90 00 [11:55:55]wFMCommunicate OK [11:55:55]SAM_PROTO_SignData done [11:55:55]FM_MakeSignedData done [11:55:55]CreateOFDProtocolMessage [11:55:55]wFMCommunicate request_size=4 [11:55:55]MH_SAM_APDU [11:55:55]CAPDU: 80 11 00 00 [11:55:55]Write to MH i2c: E2 08 00 69 28 80 11 00 00 00 00 00 00 0B [11:55:55]Write i2c OK [11:55:55]MH_I2C_Read... [11:55:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:55]Read from MH i2c: E2 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 17 00 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 17 00 69 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 62 [11:55:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:55:55]wFMCommunicate OK [11:55:55]CreateOFDProtocolMessage done [11:55:55]OFDSenderStorePacket 123565 [11:55:55]StoreOFDPacket docnum=123565 [11:55: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 E3 DC 07 01 10 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4D 00 00 00 F4 03 04 00 4E 5A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 EF DD 5B 25 B1 88 56 F2 1F 2E 27 BD 85 4D [11:55:55]CheckFolder [11:55:55]dirname=/storage/ofd_packets [11:55:55]CheckFolder done [11:55:55]ProducePacketName [11:55:55]name=ofd_packets/00123565 [11:55:55]NVStorageSaveData ofd_packets/00123565 [11:55:55]File name is /storage/ofd_packets/00123565 [11:55:55]Write 301 bytes [11:55:55]NVStorageSaveData done [11:55:55]OFDSenderStorePacket done [11:55:55]KKMCreateOFDPacket done [11:55:55]NVStorageSaveData kkm_last_timestamp [11:55:55]File name is /storage/kkm_last_timestamp [11:55:55]Write 4 bytes [11:55:55]NVStorageSaveData done [11:55:55]ExternCall_PrintAddStr [11:55:55]wPrintStart [11:55:55]Write to MH i2c: 01 00 00 6A 28 92 [11:55:55]Write i2c OK [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: 01 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: 01 07 00 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: 01 07 00 6A 28 00 00 00 00 00 FF 0F A7 [11:55:55]RasterBufferAndPrint [11:55:55]line Счет N : (1)718403 [11:55:55]line ИНН: 02508201610067 [11:55:55]line Контрольно-Кассовый Чек [11:55:55]line ПРОДАЖА [11:55:55]line ТРК (МРК, ГНК) : 32 [11:55:55]line Товар: 2710124130 [11:55:55]line Аи-92-К-4 [11:55:55]line 4.460 * 67.40 [11:55:55]line = 300.60 [11:55:55]line НДС 12% НСП 1% [11:55:55]line > о реализуемом товаре [11:55:55]line ОКРУГЛЕНИЕ: -0.60 [11:55:55]line ИТОГО: 300.00 [11:55:55]line Внесено: 300.00 [11:55:55]line СДАЧА: 0.00 [11:55:55]line НСП 1% : 2.66 [11:55:55]line НДС 12% : 31.92 [11:55:55]line Наличными: 300.00 [11:55:55]line Безнал.: 0.00 [11:55:55]line Место: АЗС № 64 "Партнер Нефть" [11:55:55]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:55:55]line СНО: Общий режим [11:55:55]line Чек 77 28.11.2024 11:55 [11:55:55]line Смена: 559 ФФД: 1.0 [11:55:55]line ЗНМ: 0300000033 [11:55:55]line РНМ: 0000000000092681 [11:55:55]line Версия ККМ: 001 [11:55:55]line ФМ: 0000000000874881 [11:55:55]line ФД: 123565 [11:55:55]line ФПД: 263733996007816 [11:55:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T115558&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123565&fm=263733996007816&tin=02508201610067®Number=0000000000092681&sum=30000 [11:55:55]written 0, free lines is 4095 [11:55:55]OFD Sender: Processing packet 123565 [packets to send 7, broken 6] [11:55:55]ProducePacketName [11:55:55]name=ofd_packets/00123565 [11:55:55]OFD Sender: To server: pG, [11:55:55]CommunicateWithHost lk.salyk.kg:30040 [11:55:55]ConnectInit lk.salyk.kg [11:55:56]Connected sock=10 [11:55: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 E3 DC 07 01 10 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4D 00 00 00 F4 03 04 00 4E 5A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 EF DD 5B 25 B1 88 56 F2 1F 2E 27 BD 85 4D [11:55: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 0C C0 47 00 91 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AD E2 01 00 F4 03 04 00 14 06 48 67 B6 04 01 00 00 EC 46 99 BB 65 7B 2A B0 [11:55:56]CommunicateWithHost err = 0 [11:55:56]CheckOFDResponse [11:55:56]1017 (14) - 77093643461234 [11:55:56]1041 (16) - 0000000000874881 [11:55:56]1040 (4) - 123565 [11:55:56]1012 (4) - 28.11.2024 05:56 [11:55:56]1206 (1) - 0 [11:55:56]OFD Sender: Remove packet 123565 [11:55:56]ProducePacketName [11:55:56]name=ofd_packets/00123565 [11:55:56]NVStorageDeleteData [11:55:56]Write to MH i2c: 01 00 00 95 28 BD [11:55:56]Write i2c OK [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: 01 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: 01 07 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: 01 07 00 95 28 00 00 00 00 00 46 0C 16 [11:55:56]RasterBufferAndPrint [11:55:56]line [11:55:56]line [11:55:56]line [11:55:56]line [11:55:56]line [11:55:56]written 0, free lines is 3147 [11:55:56]MH_Cut [11:55:56]Write to MH i2c: D1 01 00 9C 28 01 96 [11:55:56]Write i2c OK [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: D1 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: D1 01 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: D1 01 00 9C 28 00 95 [11:55:56]Write to MH i2c: 01 00 00 9D 28 C5 [11:55:56]Write i2c OK [11:55:56]MH_I2C_Read... [11:55:56]OFD Sender: No OFD packet to send [11:55:57]*** Cut start [11:55:57]*** Partial cut [11:55:57]*** CUTSNS_PIN = 1 [11:55:57]*** CUTSNS_PIN = 0 [11:55:58]*** Brake cut motor [11:55:58]Read from MH i2c: 01 [11:55:58]MH_I2C_Read... [11:55:58]*** Stop cut motor [11:55:58]*** Cut end [11:55:58]Read from MH i2c: 01 07 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: 01 07 00 9D 28 00 00 00 00 00 FF 0F DA [11:55:58]process_action close_receipt done [11:55:58]requested_data is exist [11:55:58]produce_requested_data [11:55:58]requested_item fm.sn is exist - process it [11:55:58]wFMCommunicate request_size=4 [11:55:58]MH_SAM_APDU [11:55:58]CAPDU: 80 11 00 00 [11:55:58]Write to MH i2c: E2 08 00 9E 28 80 11 00 00 00 00 00 00 40 [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:58]Read from MH i2c: E2 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 17 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 17 00 9E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 97 [11:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [11:55:58]wFMCommunicate OK [11:55:58]requested_item fd.num is exist - process it [11:55:58]SAM_PROTO_GetFieldsCounters [11:55:58]wFMCommunicate request_size=4 [11:55:58]MH_SAM_APDU [11:55:58]CAPDU: 80 13 00 00 [11:55:58]Write to MH i2c: E2 08 00 9F 28 80 13 00 00 00 00 00 00 43 [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:58]Read from MH i2c: E2 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 62 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 62 00 9F 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 11 [11:55: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 AD E2 01 00 0E 04 04 00 2F 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 [11:55:58]wFMCommunicate OK [11:55:58]SAM_PROTO_GetFieldsCounters done [11:55:58]requested_item shift.num is exist - process it [11:55:58]requested_item shift.opened is exist - process it [11:55:58]req_shift_opened [11:55:58]FM_GetShiftState [11:55:58]SAM_PROTO_GetShiftState [11:55:58]wFMCommunicate request_size=4 [11:55:58]MH_SAM_APDU [11:55:58]CAPDU: 80 13 01 00 [11:55:58]Write to MH i2c: E2 08 00 A0 28 80 13 01 00 00 00 00 00 45 [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:58]Read from MH i2c: E2 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 0E 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 0E 00 A0 28 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 4C [11:55:58]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:55:58]wFMCommunicate OK [11:55:58]SAM_PROTO_GetShiftState done [11:55:58]FM_GetShiftState done [11:55:58]req_shift_opened done [11:55:58]requested_item shift.open_date is exist - process it [11:55:58]req_shift_open_date [11:55:58]req_shift_open_date done [11:55:58]produce_requested_data done [11:55:58]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123565,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [11:55:58]process_action_free close_receipt [11:55:58]json_value_free [11:55:58]json_value_free done [11:55:58]process_json_proto returns [11:55:58]Send response to host [11:55:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123565,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [11:55:58]free response buf [11:55:58]execute_script done [11:55:58]execute_script returns [11:55:58]free content buf [11:55:58]Sock 9.Close socket [11:55:58]Sock 9.Thread stoped [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:11]OFD Sender: No OFD packet to send [11:58:16]OFD Sender: No OFD packet to send [11:58:21]OFD Sender: No OFD packet to send [11:58:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:56]OFD Sender: No OFD packet to send [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:08]accept exits with 8 [11:59:08]New connection [11:59:08]New thread 3066719588 created [11:59:08]Thread 3066862948 joined [11:59:08]Waiting for new connection... [11:59:08] Sock 8.Parse request [11:59:08]Sock 8.Check first char [11:59:08]Sock 8.First char is OK [11:59:08]request: POST /json_proto HTTP/1.0 [11:59:08]Method: POST [11:59:08]URL: /json_proto [11:59:08]Method is POST - this is cgi request [11:59:08]url: /json_proto [11:59:08]query_string will be loaded in cgi processing [11:59:08]execute_cgi json_proto POST (null) [11:59:08]execute_cgi path=json_proto method=POST [11:59:08]POST find Content-Length [11:59:08]Host: 172.17.37.4:8080 [11:59:08]Content-Length: 682 [11:59:08]Content-Type: application/json [11:59:08] [11:59:08]POST finish read [11:59:08]Found Content-Length = 682 [11:59:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718404", "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" ] } } [11:59:08]execute_script... [11:59: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)718404", "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" ] } } [11:59:08]POST & json_proto [11:59:08]process_json_proto [11:59:08]json parsed OK: [11:59:08]protocol is kg_v1.0 [11:59:08]action value=close_receipt [11:59:08]process_action close_receipt [11:59:08]cmd_close_receipt [11:59:08]MH_GetDate [11:59:08]Write to MH i2c: F0 00 00 A1 28 B8 [11:59:08]Write i2c OK [11:59:08]MH_I2C_Read... [11:59:08]Read from MH i2c: F0 [11:59:08]MH_I2C_Read... [11:59:08]Read from MH i2c: F0 09 00 [11:59:08]MH_I2C_Read... [11:59:08]Read from MH i2c: F0 09 00 A1 28 00 11 5B 48 67 1D 3A 47 67 E1 [11:59:08]GetLastDocTimeStamp 1732794958 [11:59:08]current date 1732795153 [11:59:08]FM_GetShiftState [11:59:08]SAM_PROTO_GetShiftState [11:59:08]wFMCommunicate request_size=4 [11:59:08]MH_SAM_APDU [11:59:08]CAPDU: 80 13 01 00 [11:59:08]Write to MH i2c: E2 08 00 A2 28 80 13 01 00 00 00 00 00 47 [11:59:08]Write i2c OK [11:59:08]MH_I2C_Read... [11:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:08]Read from MH i2c: E2 [11:59:08]MH_I2C_Read... [11:59:08]Read from MH i2c: E2 0E 00 [11:59:08]MH_I2C_Read... [11:59:08]Read from MH i2c: E2 0E 00 A2 28 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 4E [11:59:08]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:59:08]wFMCommunicate OK [11:59:08]SAM_PROTO_GetShiftState done [11:59:08]FM_GetShiftState done [11:59:08]opened in 1732752282 [11:59:08]opened+sec_in_day 1732838682 [11:59:08]quantity*price = 100021 [11:59:08]sum+1 = 100023 [11:59:08]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 СНО: Общий режим Чек 78 28.11.2024 11:59 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123566 ФПД: 34143436588840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T115913&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123566&fm=34143436588840&tin=02508201610067®Number=0000000000092681&sum=100000 [11:59:09]StoreToDocumentArchive [11:59:09]shift 559 fd 123566 [11:59:09]save to /storage/0559/doc_00123566 [11:59:09]save last doc name /storage/0559/doc_00123566 to /storage/kkm_last_doc_name [11:59:09]save OK [11:59:09]Clear old archive folders... [11:59:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:09]tlvbuf is 0153AB60 [11:59:09]SAM_PROTO_ClearQueue [11:59:09]wFMCommunicate request_size=4 [11:59:09]MH_SAM_APDU [11:59:09]CAPDU: 80 09 00 00 [11:59:09]Write to MH i2c: E2 08 00 AF 28 80 09 00 00 00 00 00 00 49 [11:59:09]Write i2c OK [11:59:09]MH_I2C_Read... [11:59:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:09]Read from MH i2c: E2 [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: E2 03 00 [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: E2 03 00 AF 28 00 90 00 4B [11:59:09]RAPDU: 90 00 [11:59:09]wFMCommunicate OK [11:59:09]SAM_PROTO_ClearQueue done [11:59:09]KKMCreateOFDPacket [11:59:09]OFDProtocolAddRootSTLVToBuf [11:59:09]FM_MakeSignedData [11:59:09]FM_MakeSignedData [11:59:09]SAM_PROTO_SignData [11:59:09]wFMCommunicate request_size=4 [11:59:09]MH_SAM_APDU [11:59:09]CAPDU: 80 0D 01 02 [11:59:09]Write to MH i2c: E2 08 00 B0 28 80 0D 01 02 00 00 00 00 51 [11:59:09]Write i2c OK [11:59:09]MH_I2C_Read... [11:59:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:09]Read from MH i2c: E2 [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: E2 03 00 [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: E2 03 00 B0 28 00 90 00 4C [11:59:09]RAPDU: 90 00 [11:59:09]wFMCommunicate OK [11:59:09]wFMCommunicate request_size=255 [11:59:09]MH_SAM_APDU [11:59: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 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 4E 00 00 00 F4 03 04 00 11 5B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 1F [11:59:09]Write to MH i2c: E2 02 01 B1 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4E 00 00 00 F4 03 04 00 11 5B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 1F 00 00 F2 [11:59:09]Write i2c OK [11:59:09]MH_I2C_Read... [11:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:10]Read from MH i2c: E2 [11:59:10]MH_I2C_Read... [11:59:10]Read from MH i2c: E2 03 00 [11:59:10]MH_I2C_Read... [11:59:10]Read from MH i2c: E2 03 00 B1 28 00 90 00 4D [11:59:10]RAPDU: 90 00 [11:59:10]wFMCommunicate OK [11:59:10]wFMCommunicate request_size=10 [11:59:10]MH_SAM_APDU [11:59:10]CAPDU: 80 0D 02 02 05 0D A3 68 C7 28 [11:59:10]Write to MH i2c: E2 0D 00 B2 28 80 0D 02 02 05 00 0D A3 68 C7 28 00 00 65 [11:59:10]Write i2c OK [11:59:10]MH_I2C_Read... [11:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:10]Read from MH i2c: E2 [11:59:10]MH_I2C_Read... [11:59:10]Read from MH i2c: E2 03 00 [11:59:10]MH_I2C_Read... [11:59:10]Read from MH i2c: E2 03 00 B2 28 00 90 00 4E [11:59:10]RAPDU: 90 00 [11:59:10]wFMCommunicate OK [11:59:10]wFMCommunicate request_size=4 [11:59:10]MH_SAM_APDU [11:59:10]CAPDU: 80 0D 03 02 [11:59:10]Write to MH i2c: E2 08 00 B3 28 80 0D 03 02 00 00 00 00 56 [11:59:10]Write i2c OK [11:59:10]MH_I2C_Read... [11:59:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:10]Read from MH i2c: E2 [11:59:10]MH_I2C_Read... [11:59:10]Read from MH i2c: E2 0B 00 [11:59:10]MH_I2C_Read... [11:59:10]Read from MH i2c: E2 0B 00 B3 28 00 33 52 70 FB E6 DA 2B 77 90 00 A9 [11:59:10]RAPDU: 33 52 70 FB E6 DA 2B 77 90 00 [11:59:10]wFMCommunicate OK [11:59:10]SAM_PROTO_SignData done [11:59:10]FM_MakeSignedData done [11:59:10]CreateOFDProtocolMessage [11:59:10]wFMCommunicate request_size=4 [11:59:10]MH_SAM_APDU [11:59:10]CAPDU: 80 11 00 00 [11:59:10]Write to MH i2c: E2 08 00 B4 28 80 11 00 00 00 00 00 00 56 [11:59:10]Write i2c OK [11:59:10]MH_I2C_Read... [11:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:10]Read from MH i2c: E2 [11:59:10]MH_I2C_Read... [11:59:10]Read from MH i2c: E2 17 00 [11:59:10]MH_I2C_Read... [11:59:10]Read from MH i2c: E2 17 00 B4 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AD [11:59: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:59:10]wFMCommunicate OK [11:59:10]CreateOFDProtocolMessage done [11:59:10]OFDSenderStorePacket 123566 [11:59:10]StoreOFDPacket docnum=123566 [11:59: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 7F 80 07 01 3A 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4E 00 00 00 F4 03 04 00 11 5B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 1F 0D A3 68 C7 28 33 52 70 FB E6 DA 2B 77 [11:59:10]CheckFolder [11:59:10]dirname=/storage/ofd_packets [11:59:10]CheckFolder done [11:59:10]ProducePacketName [11:59:10]name=ofd_packets/00123566 [11:59:10]NVStorageSaveData ofd_packets/00123566 [11:59:10]File name is /storage/ofd_packets/00123566 [11:59:10]Write 301 bytes [11:59:10]NVStorageSaveData done [11:59:10]OFDSenderStorePacket done [11:59:10]KKMCreateOFDPacket done [11:59:10]NVStorageSaveData kkm_last_timestamp [11:59:10]File name is /storage/kkm_last_timestamp [11:59:10]Write 4 bytes [11:59:10]NVStorageSaveData done [11:59:10]ExternCall_PrintAddStr [11:59:10]wPrintStart [11:59:10]Write to MH i2c: 01 00 00 B5 28 DD [11:59:10]Write i2c OK [11:59:10]MH_I2C_Read... [11:59:10]Read from MH i2c: 01 [11:59:10]MH_I2C_Read... [11:59:10]Read from MH i2c: 01 07 00 [11:59:10]MH_I2C_Read... [11:59:10]Read from MH i2c: 01 07 00 B5 28 00 00 00 00 00 FF 0F F2 [11:59:10]RasterBufferAndPrint [11:59:10]line Счет N : (1)718404 [11:59:10]line ИНН: 02508201610067 [11:59:10]line Контрольно-Кассовый Чек [11:59:10]line ПРОДАЖА [11:59:10]line ТРК (МРК, ГНК) : 12 [11:59:10]line Товар: 2710124130 [11:59:10]line Аи-92-К-4 [11:59:10]line 14.840 * 67.40 [11:59:10]line = 1000.22 [11:59:10]line НДС 12% НСП 1% [11:59:10]line > о реализуемом товаре [11:59:10]line ОКРУГЛЕНИЕ: -0.22 [11:59:10]line ИТОГО: 1000.00 [11:59:10]line Внесено: 1000.00 [11:59:10]line СДАЧА: 0.00 [11:59:10]line НСП 1% : 8.85 [11:59:10]line НДС 12% : 106.22 [11:59:10]line Наличными: 1000.00 [11:59:10]line Безнал.: 0.00 [11:59:10]line Место: АЗС № 64 "Партнер Нефть" [11:59:10]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [11:59:10]line СНО: Общий режим [11:59:10]line Чек 78 28.11.2024 11:59 [11:59:10]line Смена: 559 ФФД: 1.0 [11:59:10]line ЗНМ: 0300000033 [11:59:10]line РНМ: 0000000000092681 [11:59:10]line Версия ККМ: 001 [11:59:10]line ФМ: 0000000000874881 [11:59:10]line ФД: 123566 [11:59:10]line ФПД: 34143436588840 [11:59:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T115913&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123566&fm=34143436588840&tin=02508201610067®Number=0000000000092681&sum=100000 [11:59:10]OFD Sender: Processing packet 123566 [packets to send 7, broken 6] [11:59:10]ProducePacketName [11:59:10]name=ofd_packets/00123566 [11:59:10]OFD Sender: To server: pG, [11:59:10]CommunicateWithHost lk.salyk.kg:30040 [11:59:10]ConnectInit lk.salyk.kg [11:59:10]written 0, free lines is 4095 [11:59:10]Connected sock=10 [11:59: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 7F 80 07 01 3A 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4E 00 00 00 F4 03 04 00 11 5B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 1F 0D A3 68 C7 28 33 52 70 FB E6 DA 2B 77 [11:59: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 29 1C 47 00 78 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 AE E2 01 00 F4 03 04 00 D7 06 48 67 B6 04 01 00 00 6A 4D B0 55 12 DC FC 7D [11:59:10]CommunicateWithHost err = 0 [11:59:10]CheckOFDResponse [11:59:10]1017 (14) - 77093643461234 [11:59:10]1041 (16) - 0000000000874881 [11:59:10]1040 (4) - 123566 [11:59:10]1012 (4) - 28.11.2024 05:59 [11:59:10]1206 (1) - 0 [11:59:10]OFD Sender: Remove packet 123566 [11:59:10]ProducePacketName [11:59:10]name=ofd_packets/00123566 [11:59:10]NVStorageDeleteData [11:59:11]Write to MH i2c: 01 00 00 E0 28 08 [11:59:11]Write i2c OK [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: 01 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: 01 07 00 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: 01 07 00 E0 28 00 00 00 00 00 43 0C 5E [11:59:11]RasterBufferAndPrint [11:59:11]line [11:59:11]line [11:59:11]line [11:59:11]line [11:59:11]line [11:59:11]written 0, free lines is 3145 [11:59:11]MH_Cut [11:59:11]Write to MH i2c: D1 01 00 E7 28 01 E1 [11:59:11]Write i2c OK [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: D1 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: D1 01 00 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: D1 01 00 E7 28 00 E0 [11:59:11]Write to MH i2c: 01 00 00 E8 28 10 [11:59:11]Write i2c OK [11:59:11]MH_I2C_Read... [11:59:11]OFD Sender: No OFD packet to send [11:59:12]*** Cut start [11:59:12]*** Partial cut [11:59:12]*** CUTSNS_PIN = 1 [11:59:12]*** CUTSNS_PIN = 0 [11:59:12]*** Brake cut motor [11:59:13]Read from MH i2c: 01 [11:59:13]MH_I2C_Read... [11:59:13]*** Stop cut motor [11:59:13]*** Cut end [11:59:13]Read from MH i2c: 01 07 00 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: 01 07 00 E8 28 00 00 00 00 00 FF 0F 25 [11:59:13]process_action close_receipt done [11:59:13]requested_data is exist [11:59:13]produce_requested_data [11:59:13]requested_item fm.sn is exist - process it [11:59:13]wFMCommunicate request_size=4 [11:59:13]MH_SAM_APDU [11:59:13]CAPDU: 80 11 00 00 [11:59:13]Write to MH i2c: E2 08 00 E9 28 80 11 00 00 00 00 00 00 8B [11:59:13]Write i2c OK [11:59:13]MH_I2C_Read... [11:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:13]Read from MH i2c: E2 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 17 00 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 17 00 E9 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E2 [11:59: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:59:13]wFMCommunicate OK [11:59:13]requested_item fd.num is exist - process it [11:59:13]SAM_PROTO_GetFieldsCounters [11:59:13]wFMCommunicate request_size=4 [11:59:13]MH_SAM_APDU [11:59:13]CAPDU: 80 13 00 00 [11:59:13]Write to MH i2c: E2 08 00 EA 28 80 13 00 00 00 00 00 00 8E [11:59:13]Write i2c OK [11:59:13]MH_I2C_Read... [11:59:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:13]Read from MH i2c: E2 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 62 00 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 62 00 EA 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 60 [11:59: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 AE E2 01 00 0E 04 04 00 2F 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 [11:59:13]wFMCommunicate OK [11:59:13]SAM_PROTO_GetFieldsCounters done [11:59:13]requested_item shift.num is exist - process it [11:59:13]requested_item shift.opened is exist - process it [11:59:13]req_shift_opened [11:59:13]FM_GetShiftState [11:59:13]SAM_PROTO_GetShiftState [11:59:13]wFMCommunicate request_size=4 [11:59:13]MH_SAM_APDU [11:59:13]CAPDU: 80 13 01 00 [11:59:13]Write to MH i2c: E2 08 00 EB 28 80 13 01 00 00 00 00 00 90 [11:59:13]Write i2c OK [11:59:13]MH_I2C_Read... [11:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:13]Read from MH i2c: E2 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 0E 00 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 0E 00 EB 28 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 97 [11:59:13]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [11:59:13]wFMCommunicate OK [11:59:13]SAM_PROTO_GetShiftState done [11:59:13]FM_GetShiftState done [11:59:13]req_shift_opened done [11:59:13]requested_item shift.open_date is exist - process it [11:59:13]req_shift_open_date [11:59:13]req_shift_open_date done [11:59:13]produce_requested_data done [11:59:13]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123566,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [11:59:13]process_action_free close_receipt [11:59:13]json_value_free [11:59:13]json_value_free done [11:59:13]process_json_proto returns [11:59:13]Send response to host [11:59:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123566,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [11:59:13]free response buf [11:59:13]execute_script done [11:59:13]execute_script returns [11:59:13]free content buf [11:59:13]Sock 8.Close socket [11:59:13]Sock 8.Thread stoped [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:36]OFD Sender: No OFD packet to send [12:00:41]OFD Sender: No OFD packet to send [12:00:46]OFD Sender: No OFD packet to send [12:00:51]OFD Sender: No OFD packet to send [12:00:56]OFD Sender: No OFD packet to send [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:38]accept exits with 9 [12:01:38]New connection [12:01:38]New thread 3066862948 created [12:01:38]Thread 3066719588 joined [12:01:38]Waiting for new connection... [12:01:38] Sock 9.Parse request [12:01:38]Sock 9.Check first char [12:01:38]Sock 9.First char is OK [12:01:38]request: POST /json_proto HTTP/1.0 [12:01:38]Method: POST [12:01:38]URL: /json_proto [12:01:38]Method is POST - this is cgi request [12:01:38]url: /json_proto [12:01:38]query_string will be loaded in cgi processing [12:01:38]execute_cgi json_proto POST (null) [12:01:38]execute_cgi path=json_proto method=POST [12:01:38]POST find Content-Length [12:01:38]Host: 172.17.37.4:8080 [12:01:38]Content-Length: 677 [12:01:38]Content-Type: application/json [12:01:38] [12:01:38]POST finish read [12:01:38]Found Content-Length = 677 [12:01:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718405", "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" ] } } [12:01:38]execute_script... [12:01:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718405", "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" ] } } [12:01:38]POST & json_proto [12:01:38]process_json_proto [12:01:38]json parsed OK: [12:01:38]protocol is kg_v1.0 [12:01:38]action value=close_receipt [12:01:38]process_action close_receipt [12:01:38]cmd_close_receipt [12:01:38]MH_GetDate [12:01:38]Write to MH i2c: F0 00 00 EC 28 03 [12:01:38]Write i2c OK [12:01:38]MH_I2C_Read... [12:01:38]Read from MH i2c: F0 [12:01:38]MH_I2C_Read... [12:01:38]Read from MH i2c: F0 09 00 [12:01:38]MH_I2C_Read... [12:01:38]Read from MH i2c: F0 09 00 EC 28 00 A6 5B 48 67 1D 3A 47 67 C1 [12:01:38]GetLastDocTimeStamp 1732795153 [12:01:38]current date 1732795302 [12:01:38]FM_GetShiftState [12:01:38]SAM_PROTO_GetShiftState [12:01:38]wFMCommunicate request_size=4 [12:01:38]MH_SAM_APDU [12:01:38]CAPDU: 80 13 01 00 [12:01:38]Write to MH i2c: E2 08 00 ED 28 80 13 01 00 00 00 00 00 92 [12:01:38]Write i2c OK [12:01:38]MH_I2C_Read... [12:01:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:38]Read from MH i2c: E2 [12:01:38]MH_I2C_Read... [12:01:38]Read from MH i2c: E2 0E 00 [12:01:38]MH_I2C_Read... [12:01:38]Read from MH i2c: E2 0E 00 ED 28 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 99 [12:01:38]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:01:38]wFMCommunicate OK [12:01:38]SAM_PROTO_GetShiftState done [12:01:38]FM_GetShiftState done [12:01:38]opened in 1732752282 [12:01:38]opened+sec_in_day 1732838682 [12:01:38]quantity*price = 60053 [12:01:38]sum+1 = 60054 [12:01:38]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 СНО: Общий режим Чек 79 28.11.2024 12:01 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123567 ФПД: 220789451257599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T120142&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123567&fm=220789451257599&tin=02508201610067®Number=0000000000092681&sum=60000 [12:01:39]StoreToDocumentArchive [12:01:39]shift 559 fd 123567 [12:01:39]save to /storage/0559/doc_00123567 [12:01:39]save last doc name /storage/0559/doc_00123567 to /storage/kkm_last_doc_name [12:01:39]save OK [12:01:39]Clear old archive folders... [12:01:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:39]tlvbuf is 01528160 [12:01:39]SAM_PROTO_ClearQueue [12:01:39]wFMCommunicate request_size=4 [12:01:39]MH_SAM_APDU [12:01:39]CAPDU: 80 09 00 00 [12:01:39]Write to MH i2c: E2 08 00 FA 28 80 09 00 00 00 00 00 00 94 [12:01:39]Write i2c OK [12:01:39]MH_I2C_Read... [12:01:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:39]Read from MH i2c: E2 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 03 00 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 03 00 FA 28 00 90 00 96 [12:01:39]RAPDU: 90 00 [12:01:39]wFMCommunicate OK [12:01:39]SAM_PROTO_ClearQueue done [12:01:39]KKMCreateOFDPacket [12:01:39]OFDProtocolAddRootSTLVToBuf [12:01:39]FM_MakeSignedData [12:01:39]FM_MakeSignedData [12:01:39]SAM_PROTO_SignData [12:01:39]wFMCommunicate request_size=4 [12:01:39]MH_SAM_APDU [12:01:39]CAPDU: 80 0D 01 02 [12:01:39]Write to MH i2c: E2 08 00 FB 28 80 0D 01 02 00 00 00 00 9C [12:01:39]Write i2c OK [12:01:39]MH_I2C_Read... [12:01:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:39]Read from MH i2c: E2 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 03 00 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 03 00 FB 28 00 90 00 97 [12:01:39]RAPDU: 90 00 [12:01:39]wFMCommunicate OK [12:01:39]wFMCommunicate request_size=255 [12:01:39]MH_SAM_APDU [12:01:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4F 00 00 00 F4 03 04 00 A6 5B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 C8 [12:01:39]Write to MH i2c: E2 02 01 FC 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4F 00 00 00 F4 03 04 00 A6 5B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 C8 00 00 BB [12:01:39]Write i2c OK [12:01:39]MH_I2C_Read... [12:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:39]Read from MH i2c: E2 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 03 00 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 03 00 FC 28 00 90 00 98 [12:01:39]RAPDU: 90 00 [12:01:39]wFMCommunicate OK [12:01:39]wFMCommunicate request_size=10 [12:01:39]MH_SAM_APDU [12:01:39]CAPDU: 80 0D 02 02 05 CE 8C CF F6 FF [12:01:39]Write to MH i2c: E2 0D 00 FD 28 80 0D 02 02 05 00 CE 8C CF F6 FF 00 00 C7 [12:01:39]Write i2c OK [12:01:39]MH_I2C_Read... [12:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:39]Read from MH i2c: E2 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 03 00 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 03 00 FD 28 00 90 00 99 [12:01:39]RAPDU: 90 00 [12:01:39]wFMCommunicate OK [12:01:39]wFMCommunicate request_size=4 [12:01:39]MH_SAM_APDU [12:01:39]CAPDU: 80 0D 03 02 [12:01:39]Write to MH i2c: E2 08 00 FE 28 80 0D 03 02 00 00 00 00 A1 [12:01:39]Write i2c OK [12:01:39]MH_I2C_Read... [12:01:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:39]Read from MH i2c: E2 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 0B 00 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 0B 00 FE 28 00 3F F5 D9 D0 C6 D7 AC D3 90 00 9B [12:01:39]RAPDU: 3F F5 D9 D0 C6 D7 AC D3 90 00 [12:01:39]wFMCommunicate OK [12:01:39]SAM_PROTO_SignData done [12:01:39]FM_MakeSignedData done [12:01:39]CreateOFDProtocolMessage [12:01:39]wFMCommunicate request_size=4 [12:01:39]MH_SAM_APDU [12:01:39]CAPDU: 80 11 00 00 [12:01:39]Write to MH i2c: E2 08 00 FF 28 80 11 00 00 00 00 00 00 A1 [12:01:39]Write i2c OK [12:01:39]MH_I2C_Read... [12:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:39]Read from MH i2c: E2 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 17 00 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 17 00 FF 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F8 [12:01: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:01:39]wFMCommunicate OK [12:01:39]CreateOFDProtocolMessage done [12:01:39]OFDSenderStorePacket 123567 [12:01:39]StoreOFDPacket docnum=123567 [12:01: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 8C FE 07 01 09 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 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 4F 00 00 00 F4 03 04 00 A6 5B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 C8 CE 8C CF F6 FF 3F F5 D9 D0 C6 D7 AC D3 [12:01:39]CheckFolder [12:01:39]dirname=/storage/ofd_packets [12:01:39]CheckFolder done [12:01:39]ProducePacketName [12:01:39]name=ofd_packets/00123567 [12:01:39]NVStorageSaveData ofd_packets/00123567 [12:01:39]File name is /storage/ofd_packets/00123567 [12:01:39]Write 301 bytes [12:01:39]NVStorageSaveData done [12:01:39]OFDSenderStorePacket done [12:01:39]KKMCreateOFDPacket done [12:01:39]NVStorageSaveData kkm_last_timestamp [12:01:39]File name is /storage/kkm_last_timestamp [12:01:39]Write 4 bytes [12:01:39]NVStorageSaveData done [12:01:39]ExternCall_PrintAddStr [12:01:39]wPrintStart [12:01:39]Write to MH i2c: 01 00 00 00 29 29 [12:01:39]Write i2c OK [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: 01 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: 01 07 00 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: 01 07 00 00 29 00 00 00 00 00 FF 0F 3E [12:01:39]RasterBufferAndPrint [12:01:39]line Счет N : (1)718405 [12:01:39]line ИНН: 02508201610067 [12:01:39]line Контрольно-Кассовый Чек [12:01:39]line ПРОДАЖА [12:01:39]line ТРК (МРК, ГНК) : 12 [12:01:39]line Товар: 2710124130 [12:01:39]line Аи-92-К-4 [12:01:39]line 8.910 * 67.40 [12:01:39]line = 600.53 [12:01:39]line НДС 12% НСП 1% [12:01:39]line > о реализуемом товаре [12:01:39]line ОКРУГЛЕНИЕ: -0.53 [12:01:39]line ИТОГО: 600.00 [12:01:39]line Внесено: 600.00 [12:01:39]line СДАЧА: 0.00 [12:01:39]line НСП 1% : 5.31 [12:01:39]line НДС 12% : 63.77 [12:01:39]line Наличными: 600.00 [12:01:39]line Безнал.: 0.00 [12:01:39]line Место: АЗС № 64 "Партнер Нефть" [12:01:39]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:01:39]line СНО: Общий режим [12:01:39]line Чек 79 28.11.2024 12:01 [12:01:39]line Смена: 559 ФФД: 1.0 [12:01:39]line ЗНМ: 0300000033 [12:01:39]line РНМ: 0000000000092681 [12:01:39]line Версия ККМ: 001 [12:01:39]line ФМ: 0000000000874881 [12:01:39]line ФД: 123567 [12:01:39]line ФПД: 220789451257599 [12:01:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T120142&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123567&fm=220789451257599&tin=02508201610067®Number=0000000000092681&sum=60000 [12:01:40]OFD Sender: Processing packet 123567 [packets to send 7, broken 6] [12:01:40]ProducePacketName [12:01:40]name=ofd_packets/00123567 [12:01:40]OFD Sender: To server: pG, [12:01:40]CommunicateWithHost lk.salyk.kg:30040 [12:01:40]ConnectInit lk.salyk.kg [12:01:40]written 0, free lines is 4095 [12:01:40]Connected sock=10 [12:01:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 8C FE 07 01 09 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 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 4F 00 00 00 F4 03 04 00 A6 5B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 C8 CE 8C CF F6 FF 3F F5 D9 D0 C6 D7 AC D3 [12:01: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 72 D7 47 00 54 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 AF E2 01 00 F4 03 04 00 6C 07 48 67 B6 04 01 00 00 8D EB 92 05 FB D1 EE F8 [12:01:40]CommunicateWithHost err = 0 [12:01:40]CheckOFDResponse [12:01:40]1017 (14) - 77093643461234 [12:01:40]1041 (16) - 0000000000874881 [12:01:40]1040 (4) - 123567 [12:01:40]1012 (4) - 28.11.2024 06:02 [12:01:40]1206 (1) - 0 [12:01:40]OFD Sender: Remove packet 123567 [12:01:40]ProducePacketName [12:01:40]name=ofd_packets/00123567 [12:01:40]NVStorageDeleteData [12:01:40]Write to MH i2c: 01 00 00 2B 29 54 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: 01 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: 01 07 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: 01 07 00 2B 29 00 00 00 00 00 50 0C B7 [12:01:40]RasterBufferAndPrint [12:01:40]line [12:01:40]line [12:01:40]line [12:01:40]line [12:01:40]line [12:01:40]written 0, free lines is 3156 [12:01:40]MH_Cut [12:01:40]Write to MH i2c: D1 01 00 32 29 01 2D [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: D1 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: D1 01 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: D1 01 00 32 29 00 2C [12:01:40]Write to MH i2c: 01 00 00 33 29 5C [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]OFD Sender: No OFD packet to send [12:01:41]*** Cut start [12:01:41]*** Partial cut [12:01:41]*** CUTSNS_PIN = 1 [12:01:41]*** CUTSNS_PIN = 0 [12:01:42]*** Brake cut motor [12:01:42]Read from MH i2c: 01 [12:01:42]MH_I2C_Read... [12:01:42]*** Stop cut motor [12:01:42]*** Cut end [12:01:42]Read from MH i2c: 01 07 00 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: 01 07 00 33 29 00 00 00 00 00 FF 0F 71 [12:01:42]process_action close_receipt done [12:01:42]requested_data is exist [12:01:42]produce_requested_data [12:01:42]requested_item fm.sn is exist - process it [12:01:42]wFMCommunicate request_size=4 [12:01:42]MH_SAM_APDU [12:01:42]CAPDU: 80 11 00 00 [12:01:42]Write to MH i2c: E2 08 00 34 29 80 11 00 00 00 00 00 00 D7 [12:01:42]Write i2c OK [12:01:42]MH_I2C_Read... [12:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:42]Read from MH i2c: E2 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 17 00 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 17 00 34 29 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:01: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:01:42]wFMCommunicate OK [12:01:42]requested_item fd.num is exist - process it [12:01:42]SAM_PROTO_GetFieldsCounters [12:01:42]wFMCommunicate request_size=4 [12:01:42]MH_SAM_APDU [12:01:42]CAPDU: 80 13 00 00 [12:01:42]Write to MH i2c: E2 08 00 35 29 80 13 00 00 00 00 00 00 DA [12:01:42]Write i2c OK [12:01:42]MH_I2C_Read... [12:01:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:42]Read from MH i2c: E2 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 62 00 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 62 00 35 29 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 E2 01 00 0E 04 04 00 2F 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 B0 [12:01:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 [12:01:42]wFMCommunicate OK [12:01:42]SAM_PROTO_GetFieldsCounters done [12:01:42]requested_item shift.num is exist - process it [12:01:42]requested_item shift.opened is exist - process it [12:01:42]req_shift_opened [12:01:42]FM_GetShiftState [12:01:42]SAM_PROTO_GetShiftState [12:01:42]wFMCommunicate request_size=4 [12:01:42]MH_SAM_APDU [12:01:42]CAPDU: 80 13 01 00 [12:01:42]Write to MH i2c: E2 08 00 36 29 80 13 01 00 00 00 00 00 DC [12:01:42]Write i2c OK [12:01:42]MH_I2C_Read... [12:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:42]Read from MH i2c: E2 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 0E 00 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 0E 00 36 29 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 E3 [12:01:42]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:01:42]wFMCommunicate OK [12:01:42]SAM_PROTO_GetShiftState done [12:01:42]FM_GetShiftState done [12:01:42]req_shift_opened done [12:01:42]requested_item shift.open_date is exist - process it [12:01:42]req_shift_open_date [12:01:42]req_shift_open_date done [12:01:42]produce_requested_data done [12:01:42]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123567,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [12:01:42]process_action_free close_receipt [12:01:42]json_value_free [12:01:42]json_value_free done [12:01:42]process_json_proto returns [12:01:42]Send response to host [12:01:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123567,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [12:01:42]free response buf [12:01:42]execute_script done [12:01:42]execute_script returns [12:01:42]free content buf [12:01:42]Sock 9.Close socket [12:01:42]Sock 9.Thread stoped [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]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:36]OFD Sender: No OFD packet to send [12:04:41]OFD Sender: No OFD packet to send [12:04:46]OFD Sender: No OFD packet to send [12:04:51]OFD Sender: No OFD packet to send [12:04:56]OFD Sender: No OFD packet to send [12:05:01]OFD Sender: No OFD packet to send [12:05:06]OFD Sender: No OFD packet to send [12:05:11]OFD Sender: No OFD packet to send [12:05:16]OFD Sender: No OFD packet to send [12:05:21]OFD Sender: No OFD packet to send [12:05:26]OFD Sender: No OFD packet to send [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:46]OFD Sender: No OFD packet to send [12:05:51]OFD Sender: No OFD packet to send [12:05:56]OFD Sender: No OFD packet to send [12:06:01]OFD Sender: No OFD packet to send [12:06:06]OFD Sender: No OFD packet to send [12:06:11]OFD Sender: No OFD packet to send [12:06:16]OFD Sender: No OFD packet to send [12:06:21]OFD Sender: No OFD packet to send [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]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:10]accept exits with 8 [12:11:10]New connection [12:11:10]New thread 3066719588 created [12:11:10]Thread 3066862948 joined [12:11:10]Waiting for new connection... [12:11:10] Sock 8.Parse request [12:11:10]Sock 8.Check first char [12:11:10]Sock 8.First char is OK [12:11:10]request: POST /json_proto HTTP/1.0 [12:11:10]Method: POST [12:11:10]URL: /json_proto [12:11:10]Method is POST - this is cgi request [12:11:10]url: /json_proto [12:11:10]query_string will be loaded in cgi processing [12:11:10]execute_cgi json_proto POST (null) [12:11:10]execute_cgi path=json_proto method=POST [12:11:10]POST find Content-Length [12:11:10]Host: 172.17.37.4:8080 [12:11:10]Content-Length: 677 [12:11:10]Content-Type: application/json [12:11:10] [12:11:10]POST finish read [12:11:10]Found Content-Length = 677 [12:11:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718407", "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" : 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" ] } } [12:11:10]execute_script... [12:11: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)718407", "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" : 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" ] } } [12:11:10]POST & json_proto [12:11:10]process_json_proto [12:11:10]json parsed OK: [12:11:10]protocol is kg_v1.0 [12:11:10]action value=close_receipt [12:11:10]process_action close_receipt [12:11:10]cmd_close_receipt [12:11:10]MH_GetDate [12:11:10]Write to MH i2c: F0 00 00 37 29 4F [12:11:10]Write i2c OK [12:11:10]MH_I2C_Read... [12:11:10]Read from MH i2c: F0 [12:11:10]MH_I2C_Read... [12:11:10]Read from MH i2c: F0 09 00 [12:11:10]MH_I2C_Read... [12:11:10]Read from MH i2c: F0 09 00 37 29 00 E2 5D 48 67 1D 3A 47 67 4B [12:11:10]GetLastDocTimeStamp 1732795302 [12:11:10]current date 1732795874 [12:11:10]FM_GetShiftState [12:11:10]SAM_PROTO_GetShiftState [12:11:10]wFMCommunicate request_size=4 [12:11:10]MH_SAM_APDU [12:11:10]CAPDU: 80 13 01 00 [12:11:10]Write to MH i2c: E2 08 00 38 29 80 13 01 00 00 00 00 00 DE [12:11:10]Write i2c OK [12:11:10]MH_I2C_Read... [12:11:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:10]Read from MH i2c: E2 [12:11:10]MH_I2C_Read... [12:11:10]Read from MH i2c: E2 0E 00 [12:11:10]MH_I2C_Read... [12:11:10]Read from MH i2c: E2 0E 00 38 29 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 E5 [12:11:10]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:11:10]wFMCommunicate OK [12:11:10]SAM_PROTO_GetShiftState done [12:11:10]FM_GetShiftState done [12:11:10]opened in 1732752282 [12:11:10]opened+sec_in_day 1732838682 [12:11:10]quantity*price = 60053 [12:11:10]sum+1 = 60054 [12:11:10]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 СНО: Общий режим Чек 80 28.11.2024 12:11 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123568 ФПД: 156984799369485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T121114&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123568&fm=156984799369485&tin=02508201610067®Number=0000000000092681&sum=60000 [12:11:11]StoreToDocumentArchive [12:11:11]shift 559 fd 123568 [12:11:11]save to /storage/0559/doc_00123568 [12:11:11]save last doc name /storage/0559/doc_00123568 to /storage/kkm_last_doc_name [12:11:11]save OK [12:11:11]Clear old archive folders... [12:11:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:11]tlvbuf is 01513EF0 [12:11:11]SAM_PROTO_ClearQueue [12:11:11]wFMCommunicate request_size=4 [12:11:11]MH_SAM_APDU [12:11:11]CAPDU: 80 09 00 00 [12:11:11]Write to MH i2c: E2 08 00 45 29 80 09 00 00 00 00 00 00 E0 [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 45 29 00 90 00 E2 [12:11:11]RAPDU: 90 00 [12:11:11]wFMCommunicate OK [12:11:11]SAM_PROTO_ClearQueue done [12:11:11]KKMCreateOFDPacket [12:11:11]OFDProtocolAddRootSTLVToBuf [12:11:11]FM_MakeSignedData [12:11:11]FM_MakeSignedData [12:11:11]SAM_PROTO_SignData [12:11:11]wFMCommunicate request_size=4 [12:11:11]MH_SAM_APDU [12:11:11]CAPDU: 80 0D 01 02 [12:11:11]Write to MH i2c: E2 08 00 46 29 80 0D 01 02 00 00 00 00 E8 [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:11]OFD Sender: No OFD packet to send [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 46 29 00 90 00 E3 [12:11:11]RAPDU: 90 00 [12:11:11]wFMCommunicate OK [12:11:11]wFMCommunicate request_size=255 [12:11:11]MH_SAM_APDU [12:11: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 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 50 00 00 00 F4 03 04 00 E2 5D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8E [12:11:11]Write to MH i2c: E2 02 01 47 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 50 00 00 00 F4 03 04 00 E2 5D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8E 00 00 0D [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 47 29 00 90 00 E4 [12:11:11]RAPDU: 90 00 [12:11:11]wFMCommunicate OK [12:11:11]wFMCommunicate request_size=10 [12:11:11]MH_SAM_APDU [12:11:11]CAPDU: 80 0D 02 02 05 C6 DF 33 99 0D [12:11:11]Write to MH i2c: E2 0D 00 48 29 80 0D 02 02 05 00 C6 DF 33 99 0D 00 00 73 [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 03 00 48 29 00 90 00 E5 [12:11:11]RAPDU: 90 00 [12:11:11]wFMCommunicate OK [12:11:11]wFMCommunicate request_size=4 [12:11:11]MH_SAM_APDU [12:11:11]CAPDU: 80 0D 03 02 [12:11:11]Write to MH i2c: E2 08 00 49 29 80 0D 03 02 00 00 00 00 ED [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 0B 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 0B 00 49 29 00 0A F9 72 90 57 78 86 C4 90 00 0C [12:11:11]RAPDU: 0A F9 72 90 57 78 86 C4 90 00 [12:11:11]wFMCommunicate OK [12:11:11]SAM_PROTO_SignData done [12:11:11]FM_MakeSignedData done [12:11:11]CreateOFDProtocolMessage [12:11:11]wFMCommunicate request_size=4 [12:11:11]MH_SAM_APDU [12:11:11]CAPDU: 80 11 00 00 [12:11:11]Write to MH i2c: E2 08 00 4A 29 80 11 00 00 00 00 00 00 ED [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 17 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 17 00 4A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 44 [12:11:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:11:11]wFMCommunicate OK [12:11:11]CreateOFDProtocolMessage done [12:11:11]OFDSenderStorePacket 123568 [12:11:11]StoreOFDPacket docnum=123568 [12:11: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 CA A3 07 01 42 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 50 00 00 00 F4 03 04 00 E2 5D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8E C6 DF 33 99 0D 0A F9 72 90 57 78 86 C4 [12:11:11]CheckFolder [12:11:11]dirname=/storage/ofd_packets [12:11:11]CheckFolder done [12:11:11]ProducePacketName [12:11:11]name=ofd_packets/00123568 [12:11:11]NVStorageSaveData ofd_packets/00123568 [12:11:11]File name is /storage/ofd_packets/00123568 [12:11:11]Write 301 bytes [12:11:11]NVStorageSaveData done [12:11:11]OFDSenderStorePacket done [12:11:11]KKMCreateOFDPacket done [12:11:11]NVStorageSaveData kkm_last_timestamp [12:11:11]File name is /storage/kkm_last_timestamp [12:11:11]Write 4 bytes [12:11:11]NVStorageSaveData done [12:11:11]ExternCall_PrintAddStr [12:11:11]wPrintStart [12:11:11]Write to MH i2c: 01 00 00 4B 29 74 [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: 01 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: 01 07 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: 01 07 00 4B 29 00 00 00 00 00 FF 0F 89 [12:11:11]RasterBufferAndPrint [12:11:11]line Счет N : (1)718407 [12:11:11]line ИНН: 02508201610067 [12:11:11]line Контрольно-Кассовый Чек [12:11:11]line ПРОДАЖА [12:11:11]line ТРК (МРК, ГНК) : 42 [12:11:11]line Товар: 2710124130 [12:11:11]line Аи-92-К-4 [12:11:11]line 8.910 * 67.40 [12:11:11]line = 600.53 [12:11:11]line НДС 12% НСП 1% [12:11:11]line > о реализуемом товаре [12:11:11]line ОКРУГЛЕНИЕ: -0.53 [12:11:11]line ИТОГО: 600.00 [12:11:11]line Внесено: 600.00 [12:11:11]line СДАЧА: 0.00 [12:11:11]line НСП 1% : 5.31 [12:11:11]line НДС 12% : 63.77 [12:11:11]line Наличными: 600.00 [12:11:11]line Безнал.: 0.00 [12:11:11]line Место: АЗС № 64 "Партнер Нефть" [12:11:11]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:11:11]line СНО: Общий режим [12:11:11]line Чек 80 28.11.2024 12:11 [12:11:11]line Смена: 559 ФФД: 1.0 [12:11:11]line ЗНМ: 0300000033 [12:11:11]line РНМ: 0000000000092681 [12:11:11]line Версия ККМ: 001 [12:11:11]line ФМ: 0000000000874881 [12:11:11]line ФД: 123568 [12:11:11]line ФПД: 156984799369485 [12:11:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T121114&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123568&fm=156984799369485&tin=02508201610067®Number=0000000000092681&sum=60000 [12:11:11]written 0, free lines is 4095 [12:11:11]OFD Sender: Processing packet 123568 [packets to send 7, broken 6] [12:11:11]ProducePacketName [12:11:11]name=ofd_packets/00123568 [12:11:11]OFD Sender: To server: pG, [12:11:11]CommunicateWithHost lk.salyk.kg:30040 [12:11:11]ConnectInit lk.salyk.kg [12:11:11]Connected sock=11 [12:11: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 CA A3 07 01 42 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 50 00 00 00 F4 03 04 00 E2 5D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8E C6 DF 33 99 0D 0A F9 72 90 57 78 86 C4 [12:11: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 A7 31 47 00 07 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 B0 E2 01 00 F4 03 04 00 A8 09 48 67 B6 04 01 00 00 88 F9 70 55 5B 19 A6 59 [12:11:12]CommunicateWithHost err = 0 [12:11:12]CheckOFDResponse [12:11:12]1017 (14) - 77093643461234 [12:11:12]1041 (16) - 0000000000874881 [12:11:12]1040 (4) - 123568 [12:11:12]1012 (4) - 28.11.2024 06:11 [12:11:12]1206 (1) - 0 [12:11:12]OFD Sender: Remove packet 123568 [12:11:12]ProducePacketName [12:11:12]name=ofd_packets/00123568 [12:11:12]NVStorageDeleteData [12:11:12]Write to MH i2c: 01 00 00 76 29 9F [12:11:12]Write i2c OK [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: 01 [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: 01 07 00 [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: 01 07 00 76 29 00 00 00 00 00 50 0C 02 [12:11:12]RasterBufferAndPrint [12:11:12]line [12:11:12]line [12:11:12]line [12:11:12]line [12:11:12]line [12:11:12]written 0, free lines is 3156 [12:11:12]MH_Cut [12:11:12]Write to MH i2c: D1 01 00 7D 29 01 78 [12:11:12]Write i2c OK [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: D1 [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: D1 01 00 [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: D1 01 00 7D 29 00 77 [12:11:12]Write to MH i2c: 01 00 00 7E 29 A7 [12:11:12]Write i2c OK [12:11:12]MH_I2C_Read... [12:11:12]OFD Sender: No OFD packet to send [12:11:13]*** Cut start [12:11:13]*** Partial cut [12:11:13]*** CUTSNS_PIN = 1 [12:11:13]*** CUTSNS_PIN = 0 [12:11:13]*** Brake cut motor [12:11:14]Read from MH i2c: 01 [12:11:14]MH_I2C_Read... [12:11:14]*** Stop cut motor [12:11:14]*** Cut end [12:11:14]Read from MH i2c: 01 07 00 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: 01 07 00 7E 29 00 00 00 00 00 FF 0F BC [12:11:14]process_action close_receipt done [12:11:14]requested_data is exist [12:11:14]produce_requested_data [12:11:14]requested_item fm.sn is exist - process it [12:11:14]wFMCommunicate request_size=4 [12:11:14]MH_SAM_APDU [12:11:14]CAPDU: 80 11 00 00 [12:11:14]Write to MH i2c: E2 08 00 7F 29 80 11 00 00 00 00 00 00 22 [12:11:14]Write i2c OK [12:11:14]MH_I2C_Read... [12:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:14]Read from MH i2c: E2 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 17 00 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 17 00 7F 29 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:11: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:11:14]wFMCommunicate OK [12:11:14]requested_item fd.num is exist - process it [12:11:14]SAM_PROTO_GetFieldsCounters [12:11:14]wFMCommunicate request_size=4 [12:11:14]MH_SAM_APDU [12:11:14]CAPDU: 80 13 00 00 [12:11:14]Write to MH i2c: E2 08 00 80 29 80 13 00 00 00 00 00 00 25 [12:11:14]Write i2c OK [12:11:14]MH_I2C_Read... [12:11:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:14]Read from MH i2c: E2 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 62 00 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 62 00 80 29 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 E2 01 00 0E 04 04 00 2F 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 FF [12:11: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 B0 E2 01 00 0E 04 04 00 2F 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 [12:11:14]wFMCommunicate OK [12:11:14]SAM_PROTO_GetFieldsCounters done [12:11:14]requested_item shift.num is exist - process it [12:11:14]requested_item shift.opened is exist - process it [12:11:14]req_shift_opened [12:11:14]FM_GetShiftState [12:11:14]SAM_PROTO_GetShiftState [12:11:14]wFMCommunicate request_size=4 [12:11:14]MH_SAM_APDU [12:11:14]CAPDU: 80 13 01 00 [12:11:14]Write to MH i2c: E2 08 00 81 29 80 13 01 00 00 00 00 00 27 [12:11:14]Write i2c OK [12:11:14]MH_I2C_Read... [12:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:14]Read from MH i2c: E2 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 0E 00 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 0E 00 81 29 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 2E [12:11:14]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:11:14]wFMCommunicate OK [12:11:14]SAM_PROTO_GetShiftState done [12:11:14]FM_GetShiftState done [12:11:14]req_shift_opened done [12:11:14]requested_item shift.open_date is exist - process it [12:11:14]req_shift_open_date [12:11:14]req_shift_open_date done [12:11:14]produce_requested_data done [12:11:14]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123568,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [12:11:14]process_action_free close_receipt [12:11:14]json_value_free [12:11:14]json_value_free done [12:11:14]process_json_proto returns [12:11:14]Send response to host [12:11:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123568,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [12:11:14]free response buf [12:11:14]execute_script done [12:11:14]execute_script returns [12:11:14]free content buf [12:11:14]Sock 8.Close socket [12:11:14]Sock 8.Thread stoped [12:11:17]accept exits with 9 [12:11:17]New connection [12:11:17]New thread 3066862948 created [12:11:17]Thread 3066719588 joined [12:11:17]Waiting for new connection... [12:11:17] Sock 9.Parse request [12:11:17]Sock 9.Check first char [12:11:17]Sock 9.First char is OK [12:11:17]request: POST /json_proto HTTP/1.0 [12:11:17]Method: POST [12:11:17]URL: /json_proto [12:11:17]Method is POST - this is cgi request [12:11:17]url: /json_proto [12:11:17]query_string will be loaded in cgi processing [12:11:17]execute_cgi json_proto POST (null) [12:11:17]execute_cgi path=json_proto method=POST [12:11:17]POST find Content-Length [12:11:17]Host: 172.17.37.4:8080 [12:11:17]Content-Length: 677 [12:11:17]Content-Type: application/json [12:11:17] [12:11:17]POST finish read [12:11:17]Found Content-Length = 677 [12:11:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718406", "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.570, "sum" : 240.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:17]execute_script... [12:11:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718406", "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.570, "sum" : 240.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:17]POST & json_proto [12:11:17]process_json_proto [12:11:17]json parsed OK: [12:11:17]protocol is kg_v1.0 [12:11:17]action value=close_receipt [12:11:17]process_action close_receipt [12:11:17]cmd_close_receipt [12:11:17]MH_GetDate [12:11:17]Write to MH i2c: F0 00 00 82 29 9A [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: F0 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: F0 09 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: F0 09 00 82 29 00 EA 5D 48 67 1D 3A 47 67 9E [12:11:17]GetLastDocTimeStamp 1732795874 [12:11:17]current date 1732795882 [12:11:17]FM_GetShiftState [12:11:17]SAM_PROTO_GetShiftState [12:11:17]wFMCommunicate request_size=4 [12:11:17]MH_SAM_APDU [12:11:17]CAPDU: 80 13 01 00 [12:11:17]Write to MH i2c: E2 08 00 83 29 80 13 01 00 00 00 00 00 29 [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:17]Read from MH i2c: E2 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 0E 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 0E 00 83 29 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 30 [12:11:17]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:11:17]wFMCommunicate OK [12:11:17]SAM_PROTO_GetShiftState done [12:11:17]FM_GetShiftState done [12:11:17]opened in 1732752282 [12:11:17]opened+sec_in_day 1732838682 [12:11:17]quantity*price = 24061 [12:11:17]sum+1 = 24063 [12:11:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.13 НДС 12% : 25.55 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 81 28.11.2024 12:11 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123569 ФПД: 192712844359870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T121122&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123569&fm=192712844359870&tin=02508201610067®Number=0000000000092681&sum=24000 [12:11:18]StoreToDocumentArchive [12:11:18]shift 559 fd 123569 [12:11:18]save to /storage/0559/doc_00123569 [12:11:18]save last doc name /storage/0559/doc_00123569 to /storage/kkm_last_doc_name [12:11:18]save OK [12:11:18]Clear old archive folders... [12:11:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:18]tlvbuf is 01496690 [12:11:18]SAM_PROTO_ClearQueue [12:11:18]wFMCommunicate request_size=4 [12:11:18]MH_SAM_APDU [12:11:18]CAPDU: 80 09 00 00 [12:11:18]Write to MH i2c: E2 08 00 90 29 80 09 00 00 00 00 00 00 2B [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:18]Read from MH i2c: E2 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 03 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 03 00 90 29 00 90 00 2D [12:11:18]RAPDU: 90 00 [12:11:18]wFMCommunicate OK [12:11:18]SAM_PROTO_ClearQueue done [12:11:18]KKMCreateOFDPacket [12:11:18]OFDProtocolAddRootSTLVToBuf [12:11:18]FM_MakeSignedData [12:11:18]FM_MakeSignedData [12:11:18]SAM_PROTO_SignData [12:11:18]wFMCommunicate request_size=4 [12:11:18]MH_SAM_APDU [12:11:18]CAPDU: 80 0D 01 02 [12:11:18]Write to MH i2c: E2 08 00 91 29 80 0D 01 02 00 00 00 00 33 [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:18]Read from MH i2c: E2 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 03 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 03 00 91 29 00 90 00 2E [12:11:18]RAPDU: 90 00 [12:11:18]wFMCommunicate OK [12:11:18]wFMCommunicate request_size=255 [12:11:18]MH_SAM_APDU [12:11:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C0 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 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 EA 5D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 AF [12:11:18]Write to MH i2c: E2 02 01 92 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C0 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 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 EA 5D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 AF 00 00 D7 [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:18]Read from MH i2c: E2 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 03 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 03 00 92 29 00 90 00 2F [12:11:18]RAPDU: 90 00 [12:11:18]wFMCommunicate OK [12:11:18]wFMCommunicate request_size=10 [12:11:18]MH_SAM_APDU [12:11:18]CAPDU: 80 0D 02 02 05 45 74 A1 B8 BE [12:11:18]Write to MH i2c: E2 0D 00 93 29 80 0D 02 02 05 00 45 74 A1 B8 BE 00 00 10 [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:19]Read from MH i2c: E2 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: E2 03 00 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: E2 03 00 93 29 00 90 00 30 [12:11:19]RAPDU: 90 00 [12:11:19]wFMCommunicate OK [12:11:19]wFMCommunicate request_size=4 [12:11:19]MH_SAM_APDU [12:11:19]CAPDU: 80 0D 03 02 [12:11:19]Write to MH i2c: E2 08 00 94 29 80 0D 03 02 00 00 00 00 38 [12:11:19]Write i2c OK [12:11:19]MH_I2C_Read... [12:11:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:19]Read from MH i2c: E2 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: E2 0B 00 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: E2 0B 00 94 29 00 40 D1 8D 56 F5 26 5B 58 90 00 FB [12:11:19]RAPDU: 40 D1 8D 56 F5 26 5B 58 90 00 [12:11:19]wFMCommunicate OK [12:11:19]SAM_PROTO_SignData done [12:11:19]FM_MakeSignedData done [12:11:19]CreateOFDProtocolMessage [12:11:19]wFMCommunicate request_size=4 [12:11:19]MH_SAM_APDU [12:11:19]CAPDU: 80 11 00 00 [12:11:19]Write to MH i2c: E2 08 00 95 29 80 11 00 00 00 00 00 00 38 [12:11:19]Write i2c OK [12:11:19]MH_I2C_Read... [12:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:19]Read from MH i2c: E2 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: E2 17 00 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: E2 17 00 95 29 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:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:11:19]wFMCommunicate OK [12:11:19]CreateOFDProtocolMessage done [12:11:19]OFDSenderStorePacket 123569 [12:11:19]StoreOFDPacket docnum=123569 [12:11: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 5B 8C 07 01 A4 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C0 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 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 EA 5D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 AF 45 74 A1 B8 BE 40 D1 8D 56 F5 26 5B 58 [12:11:19]CheckFolder [12:11:19]dirname=/storage/ofd_packets [12:11:19]CheckFolder done [12:11:19]ProducePacketName [12:11:19]name=ofd_packets/00123569 [12:11:19]NVStorageSaveData ofd_packets/00123569 [12:11:19]File name is /storage/ofd_packets/00123569 [12:11:19]Write 301 bytes [12:11:19]NVStorageSaveData done [12:11:19]OFDSenderStorePacket done [12:11:19]KKMCreateOFDPacket done [12:11:19]NVStorageSaveData kkm_last_timestamp [12:11:19]File name is /storage/kkm_last_timestamp [12:11:19]Write 4 bytes [12:11:19]NVStorageSaveData done [12:11:19]ExternCall_PrintAddStr [12:11:19]wPrintStart [12:11:19]Write to MH i2c: 01 00 00 96 29 BF [12:11:19]Write i2c OK [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: 01 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: 01 07 00 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: 01 07 00 96 29 00 00 00 00 00 FF 0F D4 [12:11:19]RasterBufferAndPrint [12:11:19]line Счет N : (1)718406 [12:11:19]line ИНН: 02508201610067 [12:11:19]line Контрольно-Кассовый Чек [12:11:19]line ПРОДАЖА [12:11:19]line ТРК (МРК, ГНК) : 22 [12:11:19]line Товар: 2710124130 [12:11:19]line Аи-92-К-4 [12:11:19]line 3.570 * 67.40 [12:11:19]line = 240.62 [12:11:19]line НДС 12% НСП 1% [12:11:19]line > о реализуемом товаре [12:11:19]line ОКРУГЛЕНИЕ: -0.62 [12:11:19]line ИТОГО: 240.00 [12:11:19]line Внесено: 240.00 [12:11:19]line СДАЧА: 0.00 [12:11:19]line НСП 1% : 2.13 [12:11:19]line НДС 12% : 25.55 [12:11:19]line Наличными: 240.00 [12:11:19]line Безнал.: 0.00 [12:11:19]line Место: АЗС № 64 "Партнер Нефть" [12:11:19]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:11:19]line СНО: Общий режим [12:11:19]line Чек 81 28.11.2024 12:11 [12:11:19]line Смена: 559 ФФД: 1.0 [12:11:19]line ЗНМ: 0300000033 [12:11:19]line РНМ: 0000000000092681 [12:11:19]line Версия ККМ: 001 [12:11:19]line ФМ: 0000000000874881 [12:11:19]line ФД: 123569 [12:11:19]line ФПД: 192712844359870 [12:11:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T121122&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123569&fm=192712844359870&tin=02508201610067®Number=0000000000092681&sum=24000 [12:11:19]OFD Sender: Processing packet 123569 [packets to send 7, broken 6] [12:11:19]ProducePacketName [12:11:19]name=ofd_packets/00123569 [12:11:19]OFD Sender: To server: pG, [12:11:19]CommunicateWithHost lk.salyk.kg:30040 [12:11:19]ConnectInit lk.salyk.kg [12:11:19]written 0, free lines is 4095 [12:11:19]Connected sock=10 [12:11:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 5B 8C 07 01 A4 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C0 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 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 EA 5D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 AF 45 74 A1 B8 BE 40 D1 8D 56 F5 26 5B 58 [12:11: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 07 86 47 00 53 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B1 E2 01 00 F4 03 04 00 AF 09 48 67 B6 04 01 00 00 E6 75 DE 13 E1 8B 59 74 [12:11:19]CommunicateWithHost err = 0 [12:11:19]CheckOFDResponse [12:11:19]1017 (14) - 77093643461234 [12:11:19]1041 (16) - 0000000000874881 [12:11:19]1040 (4) - 123569 [12:11:19]1012 (4) - 28.11.2024 06:11 [12:11:19]1206 (1) - 0 [12:11:19]OFD Sender: Remove packet 123569 [12:11:19]ProducePacketName [12:11:19]name=ofd_packets/00123569 [12:11:19]NVStorageDeleteData [12:11:19]Write to MH i2c: 01 00 00 C1 29 EA [12:11:19]Write i2c OK [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: 01 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: 01 07 00 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: 01 07 00 C1 29 00 00 00 00 00 54 0C 51 [12:11:19]RasterBufferAndPrint [12:11:19]line [12:11:19]line [12:11:19]line [12:11:19]line [12:11:19]line [12:11:19]written 0, free lines is 3163 [12:11:19]MH_Cut [12:11:19]Write to MH i2c: D1 01 00 C8 29 01 C3 [12:11:19]Write i2c OK [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: D1 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: D1 01 00 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: D1 01 00 C8 29 00 C2 [12:11:19]Write to MH i2c: 01 00 00 C9 29 F2 [12:11:19]Write i2c OK [12:11:19]MH_I2C_Read... [12:11:19]OFD Sender: No OFD packet to send [12:11:20]*** Cut start [12:11:20]*** Partial cut [12:11:20]*** CUTSNS_PIN = 1 [12:11:20]*** CUTSNS_PIN = 0 [12:11:21]*** Brake cut motor [12:11:21]Read from MH i2c: 01 [12:11:21]MH_I2C_Read... [12:11:21]*** Stop cut motor [12:11:21]*** Cut end [12:11:21]Read from MH i2c: 01 07 00 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: 01 07 00 C9 29 00 00 00 00 00 FF 0F 07 [12:11:21]process_action close_receipt done [12:11:21]requested_data is exist [12:11:21]produce_requested_data [12:11:21]requested_item fm.sn is exist - process it [12:11:21]wFMCommunicate request_size=4 [12:11:21]MH_SAM_APDU [12:11:21]CAPDU: 80 11 00 00 [12:11:21]Write to MH i2c: E2 08 00 CA 29 80 11 00 00 00 00 00 00 6D [12:11:21]Write i2c OK [12:11:21]MH_I2C_Read... [12:11:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:21]Read from MH i2c: E2 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 17 00 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 17 00 CA 29 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:11:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:11:21]wFMCommunicate OK [12:11:21]requested_item fd.num is exist - process it [12:11:21]SAM_PROTO_GetFieldsCounters [12:11:21]wFMCommunicate request_size=4 [12:11:21]MH_SAM_APDU [12:11:21]CAPDU: 80 13 00 00 [12:11:21]Write to MH i2c: E2 08 00 CB 29 80 13 00 00 00 00 00 00 70 [12:11:21]Write i2c OK [12:11:21]MH_I2C_Read... [12:11:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:21]Read from MH i2c: E2 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 62 00 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 62 00 CB 29 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 E2 01 00 0E 04 04 00 2F 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 4E [12:11:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 [12:11:21]wFMCommunicate OK [12:11:21]SAM_PROTO_GetFieldsCounters done [12:11:21]requested_item shift.num is exist - process it [12:11:21]requested_item shift.opened is exist - process it [12:11:21]req_shift_opened [12:11:21]FM_GetShiftState [12:11:21]SAM_PROTO_GetShiftState [12:11:21]wFMCommunicate request_size=4 [12:11:21]MH_SAM_APDU [12:11:21]CAPDU: 80 13 01 00 [12:11:21]Write to MH i2c: E2 08 00 CC 29 80 13 01 00 00 00 00 00 72 [12:11:21]Write i2c OK [12:11:21]MH_I2C_Read... [12:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:21]Read from MH i2c: E2 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 0E 00 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 0E 00 CC 29 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 79 [12:11:21]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:11:21]wFMCommunicate OK [12:11:21]SAM_PROTO_GetShiftState done [12:11:21]FM_GetShiftState done [12:11:21]req_shift_opened done [12:11:21]requested_item shift.open_date is exist - process it [12:11:21]req_shift_open_date [12:11:21]req_shift_open_date done [12:11:21]produce_requested_data done [12:11:21]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123569,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [12:11:21]process_action_free close_receipt [12:11:21]json_value_free [12:11:21]json_value_free done [12:11:21]process_json_proto returns [12:11:21]Send response to host [12:11:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123569,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [12:11:21]free response buf [12:11:21]execute_script done [12:11:21]execute_script returns [12:11:21]free content buf [12:11:21]Sock 9.Close socket [12:11:21]Sock 9.Thread stoped [12:11:24]OFD Sender: No OFD packet to send [12:11:29]OFD Sender: No OFD packet to send [12:11:34]OFD Sender: No OFD packet to send [12:11:39]OFD Sender: No OFD packet to send [12:11:44]OFD Sender: No OFD packet to send [12:11:49]OFD Sender: No OFD packet to send [12:11:54]OFD Sender: No OFD packet to send [12:11:59]OFD Sender: No OFD packet to send [12:12:04]OFD Sender: No OFD packet to send [12:12:09]OFD Sender: No OFD packet to send [12:12:14]OFD Sender: No OFD packet to send [12:12:19]OFD Sender: No OFD packet to send [12:12:24]OFD Sender: No OFD packet to send [12:12:29]OFD Sender: No OFD packet to send [12:12:34]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:30]OFD Sender: No OFD packet to send [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:45]OFD Sender: No OFD packet to send [12:19:50]OFD Sender: No OFD packet to send [12:19:55]OFD Sender: No OFD packet to send [12:20:00]OFD Sender: No OFD packet to send [12:20:03]accept exits with 8 [12:20:03]New connection [12:20:03]New thread 3066719588 created [12:20:03]Thread 3066862948 joined [12:20:03]Waiting for new connection... [12:20:03] Sock 8.Parse request [12:20:03]Sock 8.Check first char [12:20:03]Sock 8.First char is OK [12:20:03]request: POST /json_proto HTTP/1.0 [12:20:03]Method: POST [12:20:03]URL: /json_proto [12:20:03]Method is POST - this is cgi request [12:20:03]url: /json_proto [12:20:03]query_string will be loaded in cgi processing [12:20:03]execute_cgi json_proto POST (null) [12:20:03]execute_cgi path=json_proto method=POST [12:20:03]POST find Content-Length [12:20:03]Host: 172.17.37.4:8080 [12:20:03]Content-Length: 816 [12:20:03]Content-Type: application/json [12:20:03] [12:20:03]POST finish read [12:20:03]Found Content-Length = 816 [12:20:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718408", "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: \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:20:03]execute_script... [12:20: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)718408", "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: \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:20:03]POST & json_proto [12:20:03]process_json_proto [12:20:03]json parsed OK: [12:20:03]protocol is kg_v1.0 [12:20:03]action value=close_receipt [12:20:03]process_action close_receipt [12:20:03]cmd_close_receipt [12:20:03]MH_GetDate [12:20:03]Write to MH i2c: F0 00 00 CD 29 E5 [12:20:03]Write i2c OK [12:20:03]MH_I2C_Read... [12:20:03]Read from MH i2c: F0 [12:20:03]MH_I2C_Read... [12:20:03]Read from MH i2c: F0 09 00 [12:20:03]MH_I2C_Read... [12:20:03]Read from MH i2c: F0 09 00 CD 29 00 F8 5F 48 67 1D 3A 47 67 F9 [12:20:03]GetLastDocTimeStamp 1732795882 [12:20:03]current date 1732796408 [12:20:03]FM_GetShiftState [12:20:03]SAM_PROTO_GetShiftState [12:20:03]wFMCommunicate request_size=4 [12:20:03]MH_SAM_APDU [12:20:03]CAPDU: 80 13 01 00 [12:20:03]Write to MH i2c: E2 08 00 CE 29 80 13 01 00 00 00 00 00 74 [12:20:03]Write i2c OK [12:20:03]MH_I2C_Read... [12:20:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:03]Read from MH i2c: E2 [12:20:03]MH_I2C_Read... [12:20:03]Read from MH i2c: E2 0E 00 [12:20:03]MH_I2C_Read... [12:20:03]Read from MH i2c: E2 0E 00 CE 29 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 7B [12:20:03]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:20:03]wFMCommunicate OK [12:20:03]SAM_PROTO_GetShiftState done [12:20:03]FM_GetShiftState done [12:20:03]opened in 1732752282 [12:20:03]opened+sec_in_day 1732838682 [12:20:03]quantity*price = 40035 [12:20:03]sum+1 = 40037 [12:20:03]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 СНО: Общий режим Чек 82 28.11.2024 12:20 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123570 ФПД: 48709177032718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T122008&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123570&fm=48709177032718&tin=02508201610067®Number=0000000000092681&sum=40036 [12:20:04]StoreToDocumentArchive [12:20:04]shift 559 fd 123570 [12:20:04]save to /storage/0559/doc_00123570 [12:20:04]save last doc name /storage/0559/doc_00123570 to /storage/kkm_last_doc_name [12:20:04]save OK [12:20:04]Clear old archive folders... [12:20:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:04]tlvbuf is 014FC330 [12:20:04]SAM_PROTO_ClearQueue [12:20:04]wFMCommunicate request_size=4 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 09 00 00 [12:20:04]Write to MH i2c: E2 08 00 DB 29 80 09 00 00 00 00 00 00 76 [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:05]Read from MH i2c: E2 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 03 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 03 00 DB 29 00 90 00 78 [12:20:05]RAPDU: 90 00 [12:20:05]wFMCommunicate OK [12:20:05]SAM_PROTO_ClearQueue done [12:20:05]KKMCreateOFDPacket [12:20:05]OFDProtocolAddRootSTLVToBuf [12:20:05]FM_MakeSignedData [12:20:05]FM_MakeSignedData [12:20:05]SAM_PROTO_SignData [12:20:05]wFMCommunicate request_size=4 [12:20:05]MH_SAM_APDU [12:20:05]CAPDU: 80 0D 01 02 [12:20:05]Write to MH i2c: E2 08 00 DC 29 80 0D 01 02 00 00 00 00 7E [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:05]Read from MH i2c: E2 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 03 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 03 00 DC 29 00 90 00 79 [12:20:05]RAPDU: 90 00 [12:20:05]wFMCommunicate OK [12:20:05]wFMCommunicate request_size=255 [12:20:05]MH_SAM_APDU [12:20: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 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 52 00 00 00 F4 03 04 00 F8 5F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2C [12:20:05]Write to MH i2c: E2 02 01 DD 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 52 00 00 00 F4 03 04 00 F8 5F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2C 00 00 9E [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:05]Read from MH i2c: E2 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 03 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 03 00 DD 29 00 90 00 7A [12:20:05]RAPDU: 90 00 [12:20:05]wFMCommunicate OK [12:20:05]wFMCommunicate request_size=10 [12:20:05]MH_SAM_APDU [12:20:05]CAPDU: 80 0D 02 02 05 4C FD 31 C0 0E [12:20:05]Write to MH i2c: E2 0D 00 DE 29 80 0D 02 02 05 00 4C FD 31 C0 0E 00 00 D3 [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]OFD Sender: No OFD packet to send [12:20:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:05]Read from MH i2c: E2 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 03 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 03 00 DE 29 00 90 00 7B [12:20:05]RAPDU: 90 00 [12:20:05]wFMCommunicate OK [12:20:05]wFMCommunicate request_size=4 [12:20:05]MH_SAM_APDU [12:20:05]CAPDU: 80 0D 03 02 [12:20:05]Write to MH i2c: E2 08 00 DF 29 80 0D 03 02 00 00 00 00 83 [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:05]Read from MH i2c: E2 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 0B 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 0B 00 DF 29 00 6A A6 E7 CD 79 4A 3C A2 90 00 E9 [12:20:05]RAPDU: 6A A6 E7 CD 79 4A 3C A2 90 00 [12:20:05]wFMCommunicate OK [12:20:05]SAM_PROTO_SignData done [12:20:05]FM_MakeSignedData done [12:20:05]CreateOFDProtocolMessage [12:20:05]wFMCommunicate request_size=4 [12:20:05]MH_SAM_APDU [12:20:05]CAPDU: 80 11 00 00 [12:20:05]Write to MH i2c: E2 08 00 E0 29 80 11 00 00 00 00 00 00 83 [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:05]Read from MH i2c: E2 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 17 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 17 00 E0 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DA [12:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:20:05]wFMCommunicate OK [12:20:05]CreateOFDProtocolMessage done [12:20:05]OFDSenderStorePacket 123570 [12:20:05]StoreOFDPacket docnum=123570 [12:20: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 0C A9 07 01 07 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 52 00 00 00 F4 03 04 00 F8 5F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2C 4C FD 31 C0 0E 6A A6 E7 CD 79 4A 3C A2 [12:20:05]CheckFolder [12:20:05]dirname=/storage/ofd_packets [12:20:05]CheckFolder done [12:20:05]ProducePacketName [12:20:05]name=ofd_packets/00123570 [12:20:05]NVStorageSaveData ofd_packets/00123570 [12:20:05]File name is /storage/ofd_packets/00123570 [12:20:05]Write 301 bytes [12:20:05]NVStorageSaveData done [12:20:05]OFDSenderStorePacket done [12:20:05]KKMCreateOFDPacket done [12:20:05]NVStorageSaveData kkm_last_timestamp [12:20:05]File name is /storage/kkm_last_timestamp [12:20:05]Write 4 bytes [12:20:05]NVStorageSaveData done [12:20:05]ExternCall_PrintAddStr [12:20:05]wPrintStart [12:20:05]Write to MH i2c: 01 00 00 E1 29 0A [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 07 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 07 00 E1 29 00 00 00 00 00 FF 0F 1F [12:20:05]RasterBufferAndPrint [12:20:05]line Счет N : (1)718408 [12:20:05]line ИНН: 02508201610067 [12:20:05]line Контрольно-Кассовый Чек [12:20:05]line ПРОДАЖА [12:20:05]line ТРК (МРК, ГНК) : 22 [12:20:05]line Товар: 2710124130 [12:20:05]line Аи-92-К-4 [12:20:05]line 5.940 * 67.40 [12:20:05]line = 400.36 [12:20:05]line НДС 12% НСП 1% [12:20:05]line > о реализуемом товаре [12:20:05]line ИТОГО: 400.36 [12:20:05]line НСП 1% : 3.54 [12:20:05]line НДС 12% : 42.52 [12:20:05]line Наличными: 0.00 [12:20:05]line Безнал.: 400.36 [12:20:05]line Место: АЗС № 64 "Партнер Нефть" [12:20:05]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:20:05]line СНО: Общий режим [12:20:05]line Чек 82 28.11.2024 12:20 [12:20:05]line Смена: 559 ФФД: 1.0 [12:20:05]line ЗНМ: 0300000033 [12:20:05]line РНМ: 0000000000092681 [12:20:05]line Версия ККМ: 001 [12:20:05]line Платежная система: Бакай Банк [12:20:05]line ФМ: 0000000000874881 [12:20:05]line ФД: 123570 [12:20:05]line ФПД: 48709177032718 [12:20:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T122008&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123570&fm=48709177032718&tin=02508201610067®Number=0000000000092681&sum=40036 [12:20:05]written 0, free lines is 4095 [12:20:05]OFD Sender: Processing packet 123570 [packets to send 7, broken 6] [12:20:05]ProducePacketName [12:20:05]name=ofd_packets/00123570 [12:20:05]OFD Sender: To server: pG, [12:20:05]CommunicateWithHost lk.salyk.kg:30040 [12:20:05]ConnectInit lk.salyk.kg [12:20:05]Connected sock=10 [12:20: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 0C A9 07 01 07 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 52 00 00 00 F4 03 04 00 F8 5F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2C 4C FD 31 C0 0E 6A A6 E7 CD 79 4A 3C A2 [12:20: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 BA C1 47 00 FD EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B2 E2 01 00 F4 03 04 00 BE 0B 48 67 B6 04 01 00 00 0A C4 8A 6A C6 D1 0E 92 [12:20:05]CommunicateWithHost err = 0 [12:20:05]CheckOFDResponse [12:20:05]1017 (14) - 77093643461234 [12:20:05]1041 (16) - 0000000000874881 [12:20:05]1040 (4) - 123570 [12:20:05]1012 (4) - 28.11.2024 06:20 [12:20:05]1206 (1) - 0 [12:20:05]OFD Sender: Remove packet 123570 [12:20:05]ProducePacketName [12:20:05]name=ofd_packets/00123570 [12:20:05]NVStorageDeleteData [12:20:05]Write to MH i2c: 01 00 00 0B 2A 35 [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 07 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 07 00 0B 2A 00 00 00 00 00 6D 0C B5 [12:20:05]RasterBufferAndPrint [12:20:05]line [12:20:05]line [12:20:05]line [12:20:05]line [12:20:05]line [12:20:06]written 0, free lines is 3185 [12:20:06]MH_Cut [12:20:06]Write to MH i2c: D1 01 00 12 2A 01 0E [12:20:06]Write i2c OK [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: D1 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: D1 01 00 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: D1 01 00 12 2A 00 0D [12:20:06]Write to MH i2c: 01 00 00 13 2A 3D [12:20:06]Write i2c OK [12:20:06]MH_I2C_Read... [12:20:06]OFD Sender: No OFD packet to send [12:20:07]*** Cut start [12:20:07]*** Partial cut [12:20:07]*** CUTSNS_PIN = 1 [12:20:07]*** CUTSNS_PIN = 0 [12:20:07]*** Brake cut motor [12:20:08]Read from MH i2c: 01 [12:20:08]MH_I2C_Read... [12:20:08]*** Stop cut motor [12:20:08]*** Cut end [12:20:08]Read from MH i2c: 01 07 00 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: 01 07 00 13 2A 00 00 00 00 00 FF 0F 52 [12:20:08]process_action close_receipt done [12:20:08]requested_data is exist [12:20:08]produce_requested_data [12:20:08]requested_item fm.sn is exist - process it [12:20:08]wFMCommunicate request_size=4 [12:20:08]MH_SAM_APDU [12:20:08]CAPDU: 80 11 00 00 [12:20:08]Write to MH i2c: E2 08 00 14 2A 80 11 00 00 00 00 00 00 B8 [12:20:08]Write i2c OK [12:20:08]MH_I2C_Read... [12:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:08]Read from MH i2c: E2 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 17 00 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 17 00 14 2A 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:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:20:08]wFMCommunicate OK [12:20:08]requested_item fd.num is exist - process it [12:20:08]SAM_PROTO_GetFieldsCounters [12:20:08]wFMCommunicate request_size=4 [12:20:08]MH_SAM_APDU [12:20:08]CAPDU: 80 13 00 00 [12:20:08]Write to MH i2c: E2 08 00 15 2A 80 13 00 00 00 00 00 00 BB [12:20:08]Write i2c OK [12:20:08]MH_I2C_Read... [12:20:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:08]Read from MH i2c: E2 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 62 00 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 62 00 15 2A 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 E2 01 00 0E 04 04 00 2F 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 9D [12:20: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 B2 E2 01 00 0E 04 04 00 2F 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 [12:20:08]wFMCommunicate OK [12:20:08]SAM_PROTO_GetFieldsCounters done [12:20:08]requested_item shift.num is exist - process it [12:20:08]requested_item shift.opened is exist - process it [12:20:08]req_shift_opened [12:20:08]FM_GetShiftState [12:20:08]SAM_PROTO_GetShiftState [12:20:08]wFMCommunicate request_size=4 [12:20:08]MH_SAM_APDU [12:20:08]CAPDU: 80 13 01 00 [12:20:08]Write to MH i2c: E2 08 00 16 2A 80 13 01 00 00 00 00 00 BD [12:20:08]Write i2c OK [12:20:08]MH_I2C_Read... [12:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:08]Read from MH i2c: E2 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 0E 00 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 0E 00 16 2A 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 C4 [12:20:08]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:20:08]wFMCommunicate OK [12:20:08]SAM_PROTO_GetShiftState done [12:20:08]FM_GetShiftState done [12:20:08]req_shift_opened done [12:20:08]requested_item shift.open_date is exist - process it [12:20:08]req_shift_open_date [12:20:08]req_shift_open_date done [12:20:08]produce_requested_data done [12:20:08]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123570,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [12:20:08]process_action_free close_receipt [12:20:08]json_value_free [12:20:08]json_value_free done [12:20:08]process_json_proto returns [12:20:08]Send response to host [12:20:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123570,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [12:20:08]free response buf [12:20:08]execute_script done [12:20:08]execute_script returns [12:20:08]free content buf [12:20:08]Sock 8.Close socket [12:20:08]Sock 8.Thread stoped [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:44]accept exits with 9 [12:21:44]New connection [12:21:44]New thread 3066862948 created [12:21:44]Thread 3066719588 joined [12:21:44]Waiting for new connection... [12:21:44] Sock 9.Parse request [12:21:44]Sock 9.Check first char [12:21:44]Sock 9.First char is OK [12:21:44]request: POST /json_proto HTTP/1.0 [12:21:44]Method: POST [12:21:44]URL: /json_proto [12:21:44]Method is POST - this is cgi request [12:21:44]url: /json_proto [12:21:44]query_string will be loaded in cgi processing [12:21:44]execute_cgi json_proto POST (null) [12:21:44]execute_cgi path=json_proto method=POST [12:21:44]POST find Content-Length [12:21:44]Host: 172.17.37.4:8080 [12:21:44]Content-Length: 682 [12:21:44]Content-Type: application/json [12:21:44] [12:21:44]POST finish read [12:21:44]Found Content-Length = 682 [12:21:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718409", "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" : 29.680, "sum" : 2000.43, "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" ] } } [12:21:44]execute_script... [12:21: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)718409", "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" : 29.680, "sum" : 2000.43, "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" ] } } [12:21:44]POST & json_proto [12:21:44]process_json_proto [12:21:44]json parsed OK: [12:21:44]protocol is kg_v1.0 [12:21:44]action value=close_receipt [12:21:44]process_action close_receipt [12:21:44]cmd_close_receipt [12:21:44]MH_GetDate [12:21:44]Write to MH i2c: F0 00 00 17 2A 30 [12:21:44]Write i2c OK [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: F0 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: F0 09 00 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: F0 09 00 17 2A 00 5D 60 48 67 1D 3A 47 67 AA [12:21:44]GetLastDocTimeStamp 1732796408 [12:21:44]current date 1732796509 [12:21:44]FM_GetShiftState [12:21:44]SAM_PROTO_GetShiftState [12:21:44]wFMCommunicate request_size=4 [12:21:44]MH_SAM_APDU [12:21:44]CAPDU: 80 13 01 00 [12:21:44]Write to MH i2c: E2 08 00 18 2A 80 13 01 00 00 00 00 00 BF [12:21:44]Write i2c OK [12:21:44]MH_I2C_Read... [12:21:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:44]Read from MH i2c: E2 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 0E 00 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 0E 00 18 2A 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 C6 [12:21:44]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:21:44]wFMCommunicate OK [12:21:44]SAM_PROTO_GetShiftState done [12:21:44]FM_GetShiftState done [12:21:44]opened in 1732752282 [12:21:44]opened+sec_in_day 1732838682 [12:21:44]quantity*price = 200043 [12:21:44]sum+1 = 200044 [12:21:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 83 28.11.2024 12:21 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123571 ФПД: 261286763540031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T122149&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123571&fm=261286763540031&tin=02508201610067®Number=0000000000092681&sum=200000 [12:21:45]StoreToDocumentArchive [12:21:45]shift 559 fd 123571 [12:21:45]save to /storage/0559/doc_00123571 [12:21:45]save last doc name /storage/0559/doc_00123571 to /storage/kkm_last_doc_name [12:21:45]save OK [12:21:45]Clear old archive folders... [12:21:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:45]tlvbuf is 014F0600 [12:21:45]SAM_PROTO_ClearQueue [12:21:45]wFMCommunicate request_size=4 [12:21:45]MH_SAM_APDU [12:21:45]CAPDU: 80 09 00 00 [12:21:45]Write to MH i2c: E2 08 00 25 2A 80 09 00 00 00 00 00 00 C1 [12:21:45]Write i2c OK [12:21:45]MH_I2C_Read... [12:21:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:45]Read from MH i2c: E2 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 03 00 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 03 00 25 2A 00 90 00 C3 [12:21:45]RAPDU: 90 00 [12:21:45]wFMCommunicate OK [12:21:45]SAM_PROTO_ClearQueue done [12:21:45]KKMCreateOFDPacket [12:21:45]OFDProtocolAddRootSTLVToBuf [12:21:45]FM_MakeSignedData [12:21:45]FM_MakeSignedData [12:21:45]SAM_PROTO_SignData [12:21:45]wFMCommunicate request_size=4 [12:21:45]MH_SAM_APDU [12:21:45]CAPDU: 80 0D 01 02 [12:21:45]Write to MH i2c: E2 08 00 26 2A 80 0D 01 02 00 00 00 00 C9 [12:21:45]Write i2c OK [12:21:45]MH_I2C_Read... [12:21:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:45]Read from MH i2c: E2 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 03 00 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 03 00 26 2A 00 90 00 C4 [12:21:45]RAPDU: 90 00 [12:21:45]wFMCommunicate OK [12:21:45]wFMCommunicate request_size=255 [12:21:45]MH_SAM_APDU [12:21: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 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 5D 60 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 ED [12:21:45]Write to MH i2c: E2 02 01 27 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 5D 60 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 ED 00 00 73 [12:21:45]Write i2c OK [12:21:45]MH_I2C_Read... [12:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:45]Read from MH i2c: E2 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 03 00 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 03 00 27 2A 00 90 00 C5 [12:21:45]RAPDU: 90 00 [12:21:45]wFMCommunicate OK [12:21:45]wFMCommunicate request_size=10 [12:21:45]MH_SAM_APDU [12:21:45]CAPDU: 80 0D 02 02 05 A3 90 B9 AE 3F [12:21:45]Write to MH i2c: E2 0D 00 28 2A 80 0D 02 02 05 00 A3 90 B9 AE 3F 00 00 AF [12:21:45]Write i2c OK [12:21:45]MH_I2C_Read... [12:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:45]Read from MH i2c: E2 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 03 00 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 03 00 28 2A 00 90 00 C6 [12:21:45]RAPDU: 90 00 [12:21:45]wFMCommunicate OK [12:21:45]wFMCommunicate request_size=4 [12:21:45]MH_SAM_APDU [12:21:45]CAPDU: 80 0D 03 02 [12:21:45]Write to MH i2c: E2 08 00 29 2A 80 0D 03 02 00 00 00 00 CE [12:21:45]Write i2c OK [12:21:45]MH_I2C_Read... [12:21:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:45]Read from MH i2c: E2 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 0B 00 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 0B 00 29 2A 00 A4 78 87 51 F5 0B BE 4C 90 00 CD [12:21:45]RAPDU: A4 78 87 51 F5 0B BE 4C 90 00 [12:21:45]wFMCommunicate OK [12:21:45]SAM_PROTO_SignData done [12:21:45]FM_MakeSignedData done [12:21:45]CreateOFDProtocolMessage [12:21:45]wFMCommunicate request_size=4 [12:21:45]MH_SAM_APDU [12:21:45]CAPDU: 80 11 00 00 [12:21:45]Write to MH i2c: E2 08 00 2A 2A 80 11 00 00 00 00 00 00 CE [12:21:45]Write i2c OK [12:21:45]MH_I2C_Read... [12:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:45]Read from MH i2c: E2 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 17 00 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 17 00 2A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 25 [12:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:21:45]wFMCommunicate OK [12:21:45]CreateOFDProtocolMessage done [12:21:45]OFDSenderStorePacket 123571 [12:21:45]StoreOFDPacket docnum=123571 [12:21: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 AA B4 07 01 0E C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 5D 60 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 ED A3 90 B9 AE 3F A4 78 87 51 F5 0B BE 4C [12:21:45]CheckFolder [12:21:45]dirname=/storage/ofd_packets [12:21:45]CheckFolder done [12:21:45]ProducePacketName [12:21:45]name=ofd_packets/00123571 [12:21:45]NVStorageSaveData ofd_packets/00123571 [12:21:45]File name is /storage/ofd_packets/00123571 [12:21:45]Write 301 bytes [12:21:45]NVStorageSaveData done [12:21:45]OFDSenderStorePacket done [12:21:45]KKMCreateOFDPacket done [12:21:45]NVStorageSaveData kkm_last_timestamp [12:21:45]File name is /storage/kkm_last_timestamp [12:21:45]Write 4 bytes [12:21:45]NVStorageSaveData done [12:21:45]ExternCall_PrintAddStr [12:21:45]wPrintStart [12:21:45]Write to MH i2c: 01 00 00 2B 2A 55 [12:21:45]Write i2c OK [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: 01 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: 01 07 00 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: 01 07 00 2B 2A 00 00 00 00 00 FF 0F 6A [12:21:45]RasterBufferAndPrint [12:21:45]line Счет N : (1)718409 [12:21:45]line ИНН: 02508201610067 [12:21:45]line Контрольно-Кассовый Чек [12:21:45]line ПРОДАЖА [12:21:45]line ТРК (МРК, ГНК) : 12 [12:21:45]line Товар: 2710124130 [12:21:45]line Аи-92-К-4 [12:21:45]line 29.680 * 67.40 [12:21:45]line = 2000.43 [12:21:45]line НДС 12% НСП 1% [12:21:45]line > о реализуемом товаре [12:21:45]line ОКРУГЛЕНИЕ: -0.43 [12:21:45]line ИТОГО: 2000.00 [12:21:45]line Внесено: 2000.00 [12:21:45]line СДАЧА: 0.00 [12:21:45]line НСП 1% : 17.70 [12:21:45]line НДС 12% : 212.43 [12:21:45]line Наличными: 2000.00 [12:21:45]line Безнал.: 0.00 [12:21:45]line Место: АЗС № 64 "Партнер Нефть" [12:21:45]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:21:45]line СНО: Общий режим [12:21:45]line Чек 83 28.11.2024 12:21 [12:21:45]line Смена: 559 ФФД: 1.0 [12:21:45]line ЗНМ: 0300000033 [12:21:45]line РНМ: 0000000000092681 [12:21:45]line Версия ККМ: 001 [12:21:45]line ФМ: 0000000000874881 [12:21:45]line ФД: 123571 [12:21:45]line ФПД: 261286763540031 [12:21:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T122149&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123571&fm=261286763540031&tin=02508201610067®Number=0000000000092681&sum=200000 [12:21:46]OFD Sender: Processing packet 123571 [packets to send 7, broken 6] [12:21:46]ProducePacketName [12:21:46]name=ofd_packets/00123571 [12:21:46]OFD Sender: To server: pG, [12:21:46]CommunicateWithHost lk.salyk.kg:30040 [12:21:46]ConnectInit lk.salyk.kg [12:21:46]written 0, free lines is 4095 [12:21:46]Connected sock=10 [12:21: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 AA B4 07 01 0E C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 5D 60 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 ED A3 90 B9 AE 3F A4 78 87 51 F5 0B BE 4C [12:21: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 98 AB 47 00 B8 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 E2 01 00 F4 03 04 00 23 0C 48 67 B6 04 01 00 00 1C 53 55 16 A4 F3 82 2E [12:21:46]CommunicateWithHost err = 0 [12:21:46]CheckOFDResponse [12:21:46]1017 (14) - 77093643461234 [12:21:46]1041 (16) - 0000000000874881 [12:21:46]1040 (4) - 123571 [12:21:46]1012 (4) - 28.11.2024 06:22 [12:21:46]1206 (1) - 0 [12:21:46]OFD Sender: Remove packet 123571 [12:21:46]ProducePacketName [12:21:46]name=ofd_packets/00123571 [12:21:46]NVStorageDeleteData [12:21:46]Write to MH i2c: 01 00 00 56 2A 80 [12:21:46]Write i2c OK [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: 01 [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: 01 07 00 [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: 01 07 00 56 2A 00 00 00 00 00 42 0C D5 [12:21:46]RasterBufferAndPrint [12:21:46]line [12:21:46]line [12:21:46]line [12:21:46]line [12:21:46]line [12:21:46]written 0, free lines is 3144 [12:21:46]MH_Cut [12:21:46]Write to MH i2c: D1 01 00 5D 2A 01 59 [12:21:46]Write i2c OK [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: D1 [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: D1 01 00 [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: D1 01 00 5D 2A 00 58 [12:21:46]Write to MH i2c: 01 00 00 5E 2A 88 [12:21:46]Write i2c OK [12:21:46]MH_I2C_Read... [12:21:47]OFD Sender: No OFD packet to send [12:21:48]*** Cut start [12:21:48]*** Partial cut [12:21:48]*** CUTSNS_PIN = 1 [12:21:48]*** CUTSNS_PIN = 0 [12:21:48]*** Brake cut motor [12:21:48]Read from MH i2c: 01 [12:21:48]MH_I2C_Read... [12:21:48]Read from MH i2c: 01 07 00 [12:21:48]MH_I2C_Read... [12:21:48]*** Stop cut motor [12:21:48]*** Cut end [12:21:48]Read from MH i2c: 01 07 00 5E 2A 00 00 00 00 00 FF 0F 9D [12:21:48]process_action close_receipt done [12:21:48]requested_data is exist [12:21:48]produce_requested_data [12:21:48]requested_item fm.sn is exist - process it [12:21:48]wFMCommunicate request_size=4 [12:21:48]MH_SAM_APDU [12:21:48]CAPDU: 80 11 00 00 [12:21:48]Write to MH i2c: E2 08 00 5F 2A 80 11 00 00 00 00 00 00 03 [12:21:48]Write i2c OK [12:21:48]MH_I2C_Read... [12:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:48]Read from MH i2c: E2 [12:21:48]MH_I2C_Read... [12:21:48]Read from MH i2c: E2 17 00 [12:21:48]MH_I2C_Read... [12:21:48]Read from MH i2c: E2 17 00 5F 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5A [12:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:21:48]wFMCommunicate OK [12:21:48]requested_item fd.num is exist - process it [12:21:48]SAM_PROTO_GetFieldsCounters [12:21:48]wFMCommunicate request_size=4 [12:21:48]MH_SAM_APDU [12:21:48]CAPDU: 80 13 00 00 [12:21:48]Write to MH i2c: E2 08 00 60 2A 80 13 00 00 00 00 00 00 06 [12:21:48]Write i2c OK [12:21:48]MH_I2C_Read... [12:21:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:48]Read from MH i2c: E2 [12:21:48]MH_I2C_Read... [12:21:48]Read from MH i2c: E2 62 00 [12:21:48]MH_I2C_Read... [12:21:48]Read from MH i2c: E2 62 00 60 2A 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 E2 01 00 0E 04 04 00 2F 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 EC [12:21: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 B3 E2 01 00 0E 04 04 00 2F 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 [12:21:48]wFMCommunicate OK [12:21:48]SAM_PROTO_GetFieldsCounters done [12:21:48]requested_item shift.num is exist - process it [12:21:48]requested_item shift.opened is exist - process it [12:21:48]req_shift_opened [12:21:48]FM_GetShiftState [12:21:48]SAM_PROTO_GetShiftState [12:21:48]wFMCommunicate request_size=4 [12:21:48]MH_SAM_APDU [12:21:48]CAPDU: 80 13 01 00 [12:21:48]Write to MH i2c: E2 08 00 61 2A 80 13 01 00 00 00 00 00 08 [12:21:48]Write i2c OK [12:21:48]MH_I2C_Read... [12:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:48]Read from MH i2c: E2 [12:21:48]MH_I2C_Read... [12:21:48]Read from MH i2c: E2 0E 00 [12:21:48]MH_I2C_Read... [12:21:48]Read from MH i2c: E2 0E 00 61 2A 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 0F [12:21:48]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:21:48]wFMCommunicate OK [12:21:48]SAM_PROTO_GetShiftState done [12:21:48]FM_GetShiftState done [12:21:48]req_shift_opened done [12:21:48]requested_item shift.open_date is exist - process it [12:21:48]req_shift_open_date [12:21:48]req_shift_open_date done [12:21:48]produce_requested_data done [12:21:48]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123571,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [12:21:48]process_action_free close_receipt [12:21:48]json_value_free [12:21:48]json_value_free done [12:21:48]process_json_proto returns [12:21:48]Send response to host [12:21:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123571,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [12:21:48]free response buf [12:21:48]execute_script done [12:21:48]execute_script returns [12:21:48]free content buf [12:21:48]Sock 9.Close socket [12:21:48]Sock 9.Thread stoped [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:26]accept exits with 8 [12:24:26]New connection [12:24:26]New thread 3066719588 created [12:24:26]Thread 3066862948 joined [12:24:26]Waiting for new connection... [12:24:26] Sock 8.Parse request [12:24:26]Sock 8.Check first char [12:24:26]Sock 8.First char is OK [12:24:26]request: POST /json_proto HTTP/1.0 [12:24:26]Method: POST [12:24:26]URL: /json_proto [12:24:26]Method is POST - this is cgi request [12:24:26]url: /json_proto [12:24:26]query_string will be loaded in cgi processing [12:24:26]execute_cgi json_proto POST (null) [12:24:26]execute_cgi path=json_proto method=POST [12:24:26]POST find Content-Length [12:24:26]Host: 172.17.37.4:8080 [12:24:26]Content-Length: 800 [12:24:26]Content-Type: application/json [12:24:26] [12:24:26]POST finish read [12:24:26]Found Content-Length = 800 [12:24:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718410", "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" ] } } [12:24:26]execute_script... [12:24:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718410", "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" ] } } [12:24:26]POST & json_proto [12:24:26]process_json_proto [12:24:26]json parsed OK: [12:24:26]protocol is kg_v1.0 [12:24:26]action value=close_receipt [12:24:26]process_action close_receipt [12:24:26]cmd_close_receipt [12:24:26]MH_GetDate [12:24:26]Write to MH i2c: F0 00 00 62 2A 7B [12:24:26]Write i2c OK [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: F0 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: F0 09 00 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: F0 09 00 62 2A 00 FF 60 48 67 1D 3A 47 67 97 [12:24:26]GetLastDocTimeStamp 1732796509 [12:24:26]current date 1732796671 [12:24:26]FM_GetShiftState [12:24:26]SAM_PROTO_GetShiftState [12:24:26]wFMCommunicate request_size=4 [12:24:26]MH_SAM_APDU [12:24:26]CAPDU: 80 13 01 00 [12:24:26]Write to MH i2c: E2 08 00 63 2A 80 13 01 00 00 00 00 00 0A [12:24:26]Write i2c OK [12:24:26]MH_I2C_Read... [12:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:26]Read from MH i2c: E2 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: E2 0E 00 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: E2 0E 00 63 2A 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 11 [12:24:26]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:24:26]wFMCommunicate OK [12:24:26]SAM_PROTO_GetShiftState done [12:24:26]FM_GetShiftState done [12:24:26]opened in 1732752282 [12:24:26]opened+sec_in_day 1732838682 [12:24:26]quantity*price = 50010 [12:24:26]sum+1 = 50012 [12:24:26]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 СНО: Общий режим Чек 84 28.11.2024 12:24 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123572 ФПД: 276091271957996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T122431&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123572&fm=276091271957996&tin=02508201610067®Number=0000000000092681&sum=50011 [12:24:28]StoreToDocumentArchive [12:24:28]shift 559 fd 123572 [12:24:28]save to /storage/0559/doc_00123572 [12:24:28]save last doc name /storage/0559/doc_00123572 to /storage/kkm_last_doc_name [12:24:28]save OK [12:24:28]Clear old archive folders... [12:24:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:28]tlvbuf is 014E09C0 [12:24:28]SAM_PROTO_ClearQueue [12:24:28]wFMCommunicate request_size=4 [12:24:28]MH_SAM_APDU [12:24:28]CAPDU: 80 09 00 00 [12:24:28]Write to MH i2c: E2 08 00 70 2A 80 09 00 00 00 00 00 00 0C [12:24:28]Write i2c OK [12:24:28]MH_I2C_Read... [12:24:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:28]Read from MH i2c: E2 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: E2 03 00 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: E2 03 00 70 2A 00 90 00 0E [12:24:28]RAPDU: 90 00 [12:24:28]wFMCommunicate OK [12:24:28]SAM_PROTO_ClearQueue done [12:24:28]KKMCreateOFDPacket [12:24:28]OFDProtocolAddRootSTLVToBuf [12:24:28]FM_MakeSignedData [12:24:28]FM_MakeSignedData [12:24:28]SAM_PROTO_SignData [12:24:28]wFMCommunicate request_size=4 [12:24:28]MH_SAM_APDU [12:24:28]CAPDU: 80 0D 01 02 [12:24:28]Write to MH i2c: E2 08 00 71 2A 80 0D 01 02 00 00 00 00 14 [12:24:28]Write i2c OK [12:24:28]MH_I2C_Read... [12:24:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:28]Read from MH i2c: E2 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: E2 03 00 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: E2 03 00 71 2A 00 90 00 0F [12:24:28]RAPDU: 90 00 [12:24:28]wFMCommunicate OK [12:24:28]wFMCommunicate request_size=255 [12:24:28]MH_SAM_APDU [12:24:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 54 00 00 00 F4 03 04 00 FF 60 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 FB [12:24:28]Write to MH i2c: E2 02 01 72 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 54 00 00 00 F4 03 04 00 FF 60 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 FB 00 00 B6 [12:24:28]Write i2c OK [12:24:28]MH_I2C_Read... [12:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:28]Read from MH i2c: E2 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: E2 03 00 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: E2 03 00 72 2A 00 90 00 10 [12:24:28]RAPDU: 90 00 [12:24:28]wFMCommunicate OK [12:24:28]wFMCommunicate request_size=10 [12:24:28]MH_SAM_APDU [12:24:28]CAPDU: 80 0D 02 02 05 1A 82 30 CD EC [12:24:28]Write to MH i2c: E2 0D 00 73 2A 80 0D 02 02 05 00 1A 82 30 CD EC 00 00 A6 [12:24:28]Write i2c OK [12:24:28]MH_I2C_Read... [12:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:28]Read from MH i2c: E2 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: E2 03 00 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: E2 03 00 73 2A 00 90 00 11 [12:24:28]RAPDU: 90 00 [12:24:28]wFMCommunicate OK [12:24:28]wFMCommunicate request_size=4 [12:24:28]MH_SAM_APDU [12:24:28]CAPDU: 80 0D 03 02 [12:24:28]Write to MH i2c: E2 08 00 74 2A 80 0D 03 02 00 00 00 00 19 [12:24:28]Write i2c OK [12:24:28]MH_I2C_Read... [12:24:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:28]Read from MH i2c: E2 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: E2 0B 00 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: E2 0B 00 74 2A 00 81 93 6D 80 B9 1E 04 83 90 00 79 [12:24:28]RAPDU: 81 93 6D 80 B9 1E 04 83 90 00 [12:24:28]wFMCommunicate OK [12:24:28]SAM_PROTO_SignData done [12:24:28]FM_MakeSignedData done [12:24:28]CreateOFDProtocolMessage [12:24:28]wFMCommunicate request_size=4 [12:24:28]MH_SAM_APDU [12:24:28]CAPDU: 80 11 00 00 [12:24:28]Write to MH i2c: E2 08 00 75 2A 80 11 00 00 00 00 00 00 19 [12:24:28]Write i2c OK [12:24:28]MH_I2C_Read... [12:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:28]Read from MH i2c: E2 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: E2 17 00 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: E2 17 00 75 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 70 [12:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:24:28]wFMCommunicate OK [12:24:28]CreateOFDProtocolMessage done [12:24:28]OFDSenderStorePacket 123572 [12:24:28]StoreOFDPacket docnum=123572 [12:24:28]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 75 2A 07 01 A9 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 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 54 00 00 00 F4 03 04 00 FF 60 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 FB 1A 82 30 CD EC 81 93 6D 80 B9 1E 04 83 [12:24:28]CheckFolder [12:24:28]dirname=/storage/ofd_packets [12:24:28]CheckFolder done [12:24:28]ProducePacketName [12:24:28]name=ofd_packets/00123572 [12:24:28]NVStorageSaveData ofd_packets/00123572 [12:24:28]File name is /storage/ofd_packets/00123572 [12:24:28]Write 301 bytes [12:24:28]NVStorageSaveData done [12:24:28]OFDSenderStorePacket done [12:24:28]KKMCreateOFDPacket done [12:24:28]NVStorageSaveData kkm_last_timestamp [12:24:28]File name is /storage/kkm_last_timestamp [12:24:28]Write 4 bytes [12:24:28]NVStorageSaveData done [12:24:28]ExternCall_PrintAddStr [12:24:28]wPrintStart [12:24:28]Write to MH i2c: 01 00 00 76 2A A0 [12:24:28]Write i2c OK [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: 01 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: 01 07 00 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: 01 07 00 76 2A 00 00 00 00 00 FF 0F B5 [12:24:28]RasterBufferAndPrint [12:24:28]line Счет N : (1)718410 [12:24:28]line ИНН: 02508201610067 [12:24:28]line Контрольно-Кассовый Чек [12:24:28]line ПРОДАЖА [12:24:28]line ТРК (МРК, ГНК) : 22 [12:24:28]line Товар: 2710124130 [12:24:28]line Аи-92-К-4 [12:24:28]line 7.420 * 67.40 [12:24:28]line = 500.11 [12:24:28]line НДС 12% НСП 1% [12:24:28]line > о реализуемом товаре [12:24:28]line ИТОГО: 500.11 [12:24:28]line НСП 1% : 4.43 [12:24:28]line НДС 12% : 53.11 [12:24:28]line Наличными: 0.00 [12:24:28]line Безнал.: 500.11 [12:24:28]line Место: АЗС № 64 "Партнер Нефть" [12:24:28]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:24:28]line СНО: Общий режим [12:24:28]line Чек 84 28.11.2024 12:24 [12:24:28]line Смена: 559 ФФД: 1.0 [12:24:28]line ЗНМ: 0300000033 [12:24:28]line РНМ: 0000000000092681 [12:24:28]line Версия ККМ: 001 [12:24:28]line Платежная система: O! деньги [12:24:28]line ФМ: 0000000000874881 [12:24:28]line ФД: 123572 [12:24:28]line ФПД: 276091271957996 [12:24:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T122431&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123572&fm=276091271957996&tin=02508201610067®Number=0000000000092681&sum=50011 [12:24:28]written 0, free lines is 4095 [12:24:28]OFD Sender: Processing packet 123572 [packets to send 7, broken 6] [12:24:28]ProducePacketName [12:24:28]name=ofd_packets/00123572 [12:24:28]OFD Sender: To server: pG, [12:24:28]CommunicateWithHost lk.salyk.kg:30040 [12:24:28]ConnectInit lk.salyk.kg [12:24:29]Connected sock=10 [12:24:29]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 75 2A 07 01 A9 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 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 54 00 00 00 F4 03 04 00 FF 60 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 FB 1A 82 30 CD EC 81 93 6D 80 B9 1E 04 83 [12:24:29]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 9F CF 47 00 42 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B4 E2 01 00 F4 03 04 00 C5 0C 48 67 B6 04 01 00 00 9E FE 75 88 B6 32 23 BD [12:24:29]CommunicateWithHost err = 0 [12:24:29]CheckOFDResponse [12:24:29]1017 (14) - 77093643461234 [12:24:29]1041 (16) - 0000000000874881 [12:24:29]1040 (4) - 123572 [12:24:29]1012 (4) - 28.11.2024 06:25 [12:24:29]1206 (1) - 0 [12:24:29]OFD Sender: Remove packet 123572 [12:24:29]ProducePacketName [12:24:29]name=ofd_packets/00123572 [12:24:29]NVStorageDeleteData [12:24:29]Write to MH i2c: 01 00 00 A0 2A CA [12:24:29]Write i2c OK [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: 01 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: 01 07 00 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: 01 07 00 A0 2A 00 00 00 00 00 57 0C 34 [12:24:29]RasterBufferAndPrint [12:24:29]line [12:24:29]line [12:24:29]line [12:24:29]line [12:24:29]line [12:24:29]written 0, free lines is 3164 [12:24:29]MH_Cut [12:24:29]Write to MH i2c: D1 01 00 A7 2A 01 A3 [12:24:29]Write i2c OK [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: D1 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: D1 01 00 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: D1 01 00 A7 2A 00 A2 [12:24:29]Write to MH i2c: 01 00 00 A8 2A D2 [12:24:29]Write i2c OK [12:24:29]MH_I2C_Read... [12:24:29]OFD Sender: No OFD packet to send [12:24:30]*** Cut start [12:24:30]*** Partial cut [12:24:30]*** CUTSNS_PIN = 1 [12:24:30]*** CUTSNS_PIN = 0 [12:24:31]*** Brake cut motor [12:24:31]Read from MH i2c: 01 [12:24:31]MH_I2C_Read... [12:24:31]*** Stop cut motor [12:24:31]*** Cut end [12:24:31]Read from MH i2c: 01 07 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 07 00 A8 2A 00 00 00 00 00 FF 0F E7 [12:24:31]process_action close_receipt done [12:24:31]requested_data is exist [12:24:31]produce_requested_data [12:24:31]requested_item fm.sn is exist - process it [12:24:31]wFMCommunicate request_size=4 [12:24:31]MH_SAM_APDU [12:24:31]CAPDU: 80 11 00 00 [12:24:31]Write to MH i2c: E2 08 00 A9 2A 80 11 00 00 00 00 00 00 4D [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:31]Read from MH i2c: E2 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 17 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 17 00 A9 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A4 [12:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:24:31]wFMCommunicate OK [12:24:31]requested_item fd.num is exist - process it [12:24:31]SAM_PROTO_GetFieldsCounters [12:24:31]wFMCommunicate request_size=4 [12:24:31]MH_SAM_APDU [12:24:31]CAPDU: 80 13 00 00 [12:24:31]Write to MH i2c: E2 08 00 AA 2A 80 13 00 00 00 00 00 00 50 [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:31]Read from MH i2c: E2 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 62 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 62 00 AA 2A 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 E2 01 00 0E 04 04 00 2F 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 3A [12:24: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 B4 E2 01 00 0E 04 04 00 2F 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 [12:24:31]wFMCommunicate OK [12:24:31]SAM_PROTO_GetFieldsCounters done [12:24:31]requested_item shift.num is exist - process it [12:24:31]requested_item shift.opened is exist - process it [12:24:31]req_shift_opened [12:24:31]FM_GetShiftState [12:24:31]SAM_PROTO_GetShiftState [12:24:31]wFMCommunicate request_size=4 [12:24:31]MH_SAM_APDU [12:24:31]CAPDU: 80 13 01 00 [12:24:31]Write to MH i2c: E2 08 00 AB 2A 80 13 01 00 00 00 00 00 52 [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:31]Read from MH i2c: E2 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 0E 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 0E 00 AB 2A 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 59 [12:24:31]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:24:31]wFMCommunicate OK [12:24:31]SAM_PROTO_GetShiftState done [12:24:31]FM_GetShiftState done [12:24:31]req_shift_opened done [12:24:31]requested_item shift.open_date is exist - process it [12:24:31]req_shift_open_date [12:24:31]req_shift_open_date done [12:24:31]produce_requested_data done [12:24:31]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123572,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [12:24:31]process_action_free close_receipt [12:24:31]json_value_free [12:24:31]json_value_free done [12:24:31]process_json_proto returns [12:24:31]Send response to host [12:24:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123572,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [12:24:31]free response buf [12:24:31]execute_script done [12:24:31]execute_script returns [12:24:31]free content buf [12:24:31]Sock 8.Close socket [12:24:31]Sock 8.Thread stoped [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29: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]OFD Sender: No OFD packet to send [12:30:35]OFD Sender: No OFD packet to send [12:30:40]OFD Sender: No OFD packet to send [12:30:45]OFD Sender: No OFD packet to send [12:30:50]OFD Sender: No OFD packet to send [12:30:55]OFD Sender: No OFD packet to send [12:31:00]OFD Sender: No OFD packet to send [12:31:05]OFD Sender: No OFD packet to send [12:31:10]OFD Sender: No OFD packet to send [12:31:15]OFD Sender: No OFD packet to send [12:31:20]OFD Sender: No OFD packet to send [12:31:25]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]OFD Sender: No OFD packet to send [12:32:20]OFD Sender: No OFD packet to send [12:32:25]OFD Sender: No OFD packet to send [12:32:30]OFD Sender: No OFD packet to send [12:32:35]OFD Sender: No OFD packet to send [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:14]accept exits with 9 [12:33:14]New connection [12:33:14]New thread 3066862948 created [12:33:14]Thread 3066719588 joined [12:33:14]Waiting for new connection... [12:33:14] Sock 9.Parse request [12:33:14]Sock 9.Check first char [12:33:14]Sock 9.First char is OK [12:33:14]request: POST /json_proto HTTP/1.0 [12:33:14]Method: POST [12:33:14]URL: /json_proto [12:33:14]Method is POST - this is cgi request [12:33:14]url: /json_proto [12:33:14]query_string will be loaded in cgi processing [12:33:14]execute_cgi json_proto POST (null) [12:33:14]execute_cgi path=json_proto method=POST [12:33:14]POST find Content-Length [12:33:14]Host: 172.17.37.4:8080 [12:33:14]Content-Length: 681 [12:33:14]Content-Type: application/json [12:33:14] [12:33:14]POST finish read [12:33:14]Found Content-Length = 681 [12:33:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718412", "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" ] } } [12:33:14]execute_script... [12:33: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)718412", "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" ] } } [12:33:14]POST & json_proto [12:33:14]process_json_proto [12:33:14]json parsed OK: [12:33:14]protocol is kg_v1.0 [12:33:14]action value=close_receipt [12:33:14]process_action close_receipt [12:33:14]cmd_close_receipt [12:33:14]MH_GetDate [12:33:14]Write to MH i2c: F0 00 00 AC 2A C5 [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: F0 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: F0 09 00 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: F0 09 00 AC 2A 00 0F 63 48 67 1D 3A 47 67 F4 [12:33:14]GetLastDocTimeStamp 1732796671 [12:33:14]current date 1732797199 [12:33:14]FM_GetShiftState [12:33:14]SAM_PROTO_GetShiftState [12:33:14]wFMCommunicate request_size=4 [12:33:14]MH_SAM_APDU [12:33:14]CAPDU: 80 13 01 00 [12:33:14]Write to MH i2c: E2 08 00 AD 2A 80 13 01 00 00 00 00 00 54 [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:14]Read from MH i2c: E2 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 0E 00 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 0E 00 AD 2A 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 5B [12:33:14]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:33:14]wFMCommunicate OK [12:33:14]SAM_PROTO_GetShiftState done [12:33:14]FM_GetShiftState done [12:33:14]opened in 1732752282 [12:33:14]opened+sec_in_day 1732838682 [12:33:14]quantity*price = 40071 [12:33:14]sum+1 = 40073 [12:33:14]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 СНО: Общий режим Чек 85 28.11.2024 12:33 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123573 ФПД: 205733846626492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T123319&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123573&fm=205733846626492&tin=02508201610067®Number=0000000000092681&sum=40000 [12:33:15]StoreToDocumentArchive [12:33:15]shift 559 fd 123573 [12:33:15]save to /storage/0559/doc_00123573 [12:33:15]save last doc name /storage/0559/doc_00123573 to /storage/kkm_last_doc_name [12:33:15]save OK [12:33:15]Clear old archive folders... [12:33:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:33:15]tlvbuf is B6F3F7A0 [12:33:15]SAM_PROTO_ClearQueue [12:33:15]wFMCommunicate request_size=4 [12:33:15]MH_SAM_APDU [12:33:15]CAPDU: 80 09 00 00 [12:33:15]Write to MH i2c: E2 08 00 BA 2A 80 09 00 00 00 00 00 00 56 [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:15]Read from MH i2c: E2 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 03 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 03 00 BA 2A 00 90 00 58 [12:33:15]RAPDU: 90 00 [12:33:15]wFMCommunicate OK [12:33:15]SAM_PROTO_ClearQueue done [12:33:15]KKMCreateOFDPacket [12:33:15]OFDProtocolAddRootSTLVToBuf [12:33:15]FM_MakeSignedData [12:33:15]FM_MakeSignedData [12:33:15]SAM_PROTO_SignData [12:33:15]wFMCommunicate request_size=4 [12:33:15]MH_SAM_APDU [12:33:15]CAPDU: 80 0D 01 02 [12:33:15]Write to MH i2c: E2 08 00 BB 2A 80 0D 01 02 00 00 00 00 5E [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:15]Read from MH i2c: E2 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 03 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 03 00 BB 2A 00 90 00 59 [12:33:15]RAPDU: 90 00 [12:33:15]wFMCommunicate OK [12:33:15]wFMCommunicate request_size=255 [12:33:15]MH_SAM_APDU [12:33: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 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 55 00 00 00 F4 03 04 00 0F 63 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 [12:33:15]Write to MH i2c: E2 02 01 BC 2A 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 55 00 00 00 F4 03 04 00 0F 63 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 00 00 2F [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:15]Read from MH i2c: E2 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 03 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 03 00 BC 2A 00 90 00 5A [12:33:15]RAPDU: 90 00 [12:33:15]wFMCommunicate OK [12:33:15]wFMCommunicate request_size=11 [12:33:15]MH_SAM_APDU [12:33:15]CAPDU: 80 0D 02 02 06 BB 1D 24 D8 B0 BC [12:33:15]Write to MH i2c: E2 0E 00 BD 2A 80 0D 02 02 06 00 BB 1D 24 D8 B0 BC 00 00 AD [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:16]Read from MH i2c: E2 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 03 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 03 00 BD 2A 00 90 00 5B [12:33:16]RAPDU: 90 00 [12:33:16]wFMCommunicate OK [12:33:16]wFMCommunicate request_size=4 [12:33:16]MH_SAM_APDU [12:33:16]CAPDU: 80 0D 03 02 [12:33:16]Write to MH i2c: E2 08 00 BE 2A 80 0D 03 02 00 00 00 00 63 [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:16]Read from MH i2c: E2 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 0B 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 0B 00 BE 2A 00 89 FE 99 AF 4B F7 E8 1D 90 00 7A [12:33:16]RAPDU: 89 FE 99 AF 4B F7 E8 1D 90 00 [12:33:16]wFMCommunicate OK [12:33:16]SAM_PROTO_SignData done [12:33:16]FM_MakeSignedData done [12:33:16]CreateOFDProtocolMessage [12:33:16]wFMCommunicate request_size=4 [12:33:16]MH_SAM_APDU [12:33:16]CAPDU: 80 11 00 00 [12:33:16]Write to MH i2c: E2 08 00 BF 2A 80 11 00 00 00 00 00 00 63 [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:16]Read from MH i2c: E2 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 17 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 17 00 BF 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 BA [12:33:16]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:16]wFMCommunicate OK [12:33:16]CreateOFDProtocolMessage done [12:33:16]OFDSenderStorePacket 123573 [12:33:16]StoreOFDPacket docnum=123573 [12:33: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 10 01 00 00 17 61 08 01 DA 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 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 55 00 00 00 F4 03 04 00 0F 63 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 BB 1D 24 D8 B0 BC 89 FE 99 AF 4B F7 E8 1D [12:33:16]CheckFolder [12:33:16]dirname=/storage/ofd_packets [12:33:16]CheckFolder done [12:33:16]ProducePacketName [12:33:16]name=ofd_packets/00123573 [12:33:16]NVStorageSaveData ofd_packets/00123573 [12:33:16]File name is /storage/ofd_packets/00123573 [12:33:16]Write 302 bytes [12:33:16]NVStorageSaveData done [12:33:16]OFDSenderStorePacket done [12:33:16]KKMCreateOFDPacket done [12:33:16]NVStorageSaveData kkm_last_timestamp [12:33:16]File name is /storage/kkm_last_timestamp [12:33:16]Write 4 bytes [12:33:16]NVStorageSaveData done [12:33:16]ExternCall_PrintAddStr [12:33:16]wPrintStart [12:33:16]Write to MH i2c: 01 00 00 C0 2A EA [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: 01 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: 01 07 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: 01 07 00 C0 2A 00 00 00 00 00 FF 0F FF [12:33:16]RasterBufferAndPrint [12:33:16]line Счет N : (1)718412 [12:33:16]line ИНН: 02508201610067 [12:33:16]line Контрольно-Кассовый Чек [12:33:16]line ПРОДАЖА [12:33:16]line ТРК (МРК, ГНК) : 5 [12:33:16]line Товар: 2710194210 [12:33:16]line ДТ(л)-К-5 [12:33:16]line 5.350 * 74.90 [12:33:16]line = 400.72 [12:33:16]line НДС 12% НСП 1% [12:33:16]line > о реализуемом товаре [12:33:16]line ОКРУГЛЕНИЕ: -0.72 [12:33:16]line ИТОГО: 400.00 [12:33:16]line Внесено: 400.00 [12:33:16]line СДАЧА: 0.00 [12:33:16]line НСП 1% : 3.55 [12:33:16]line НДС 12% : 42.55 [12:33:16]line Наличными: 400.00 [12:33:16]line Безнал.: 0.00 [12:33:16]line Место: АЗС № 64 "Партнер Нефть" [12:33:16]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:33:16]line СНО: Общий режим [12:33:16]line Чек 85 28.11.2024 12:33 [12:33:16]line Смена: 559 ФФД: 1.0 [12:33:16]line ЗНМ: 0300000033 [12:33:16]line РНМ: 0000000000092681 [12:33:16]line Версия ККМ: 001 [12:33:16]line ФМ: 0000000000874881 [12:33:16]line ФД: 123573 [12:33:16]line ФПД: 205733846626492 [12:33:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T123319&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123573&fm=205733846626492&tin=02508201610067®Number=0000000000092681&sum=40000 [12:33:16]OFD Sender: Processing packet 123573 [packets to send 7, broken 6] [12:33:16]ProducePacketName [12:33:16]name=ofd_packets/00123573 [12:33:16]OFD Sender: To server: pG, [12:33:16]CommunicateWithHost lk.salyk.kg:30040 [12:33:16]ConnectInit lk.salyk.kg [12:33:16]written 0, free lines is 4095 [12:33:16]Connected sock=10 [12:33: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 17 61 08 01 DA 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 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 55 00 00 00 F4 03 04 00 0F 63 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 BB 1D 24 D8 B0 BC 89 FE 99 AF 4B F7 E8 1D [12:33: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 11 2B 47 00 8A AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B5 E2 01 00 F4 03 04 00 D5 0E 48 67 B6 04 01 00 00 47 E0 AC 9D 62 A0 BD 4D [12:33:16]CommunicateWithHost err = 0 [12:33:16]CheckOFDResponse [12:33:16]1017 (14) - 77093643461234 [12:33:16]1041 (16) - 0000000000874881 [12:33:16]1040 (4) - 123573 [12:33:16]1012 (4) - 28.11.2024 06:33 [12:33:16]1206 (1) - 0 [12:33:16]OFD Sender: Remove packet 123573 [12:33:16]ProducePacketName [12:33:16]name=ofd_packets/00123573 [12:33:16]NVStorageDeleteData [12:33:16]Write to MH i2c: 01 00 00 EB 2A 15 [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: 01 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: 01 07 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: 01 07 00 EB 2A 00 00 00 00 00 3F 0C 67 [12:33:16]RasterBufferAndPrint [12:33:16]line [12:33:16]line [12:33:16]line [12:33:16]line [12:33:16]line [12:33:16]written 0, free lines is 3140 [12:33:16]MH_Cut [12:33:16]Write to MH i2c: D1 01 00 F2 2A 01 EE [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: D1 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: D1 01 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: D1 01 00 F2 2A 00 ED [12:33:16]Write to MH i2c: 01 00 00 F3 2A 1D [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:17]OFD Sender: No OFD packet to send [12:33:18]*** Cut start [12:33:18]*** Partial cut [12:33:18]*** CUTSNS_PIN = 1 [12:33:18]*** CUTSNS_PIN = 0 [12:33:18]*** Brake cut motor [12:33:18]Read from MH i2c: 01 [12:33:18]MH_I2C_Read... [12:33:18]*** Stop cut motor [12:33:18]*** Cut end [12:33:18]Read from MH i2c: 01 07 00 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: 01 07 00 F3 2A 00 00 00 00 00 FF 0F 32 [12:33:18]process_action close_receipt done [12:33:18]requested_data is exist [12:33:18]produce_requested_data [12:33:18]requested_item fm.sn is exist - process it [12:33:18]wFMCommunicate request_size=4 [12:33:18]MH_SAM_APDU [12:33:18]CAPDU: 80 11 00 00 [12:33:18]Write to MH i2c: E2 08 00 F4 2A 80 11 00 00 00 00 00 00 98 [12:33:18]Write i2c OK [12:33:18]MH_I2C_Read... [12:33:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:18]Read from MH i2c: E2 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: E2 17 00 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: E2 17 00 F4 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EF [12:33:18]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:18]wFMCommunicate OK [12:33:18]requested_item fd.num is exist - process it [12:33:18]SAM_PROTO_GetFieldsCounters [12:33:18]wFMCommunicate request_size=4 [12:33:18]MH_SAM_APDU [12:33:18]CAPDU: 80 13 00 00 [12:33:18]Write to MH i2c: E2 08 00 F5 2A 80 13 00 00 00 00 00 00 9B [12:33:18]Write i2c OK [12:33:18]MH_I2C_Read... [12:33:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:19]Read from MH i2c: E2 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 62 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 62 00 F5 2A 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 E2 01 00 0E 04 04 00 2F 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 89 [12:33: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 B5 E2 01 00 0E 04 04 00 2F 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 [12:33:19]wFMCommunicate OK [12:33:19]SAM_PROTO_GetFieldsCounters done [12:33:19]requested_item shift.num is exist - process it [12:33:19]requested_item shift.opened is exist - process it [12:33:19]req_shift_opened [12:33:19]FM_GetShiftState [12:33:19]SAM_PROTO_GetShiftState [12:33:19]wFMCommunicate request_size=4 [12:33:19]MH_SAM_APDU [12:33:19]CAPDU: 80 13 01 00 [12:33:19]Write to MH i2c: E2 08 00 F6 2A 80 13 01 00 00 00 00 00 9D [12:33:19]Write i2c OK [12:33:19]MH_I2C_Read... [12:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:19]Read from MH i2c: E2 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 0E 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 0E 00 F6 2A 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 A4 [12:33:19]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:33:19]wFMCommunicate OK [12:33:19]SAM_PROTO_GetShiftState done [12:33:19]FM_GetShiftState done [12:33:19]req_shift_opened done [12:33:19]requested_item shift.open_date is exist - process it [12:33:19]req_shift_open_date [12:33:19]req_shift_open_date done [12:33:19]produce_requested_data done [12:33:19]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123573,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [12:33:19]process_action_free close_receipt [12:33:19]json_value_free [12:33:19]json_value_free done [12:33:19]process_json_proto returns [12:33:19]Send response to host [12:33:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123573,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [12:33:19]free response buf [12:33:19]execute_script done [12:33:19]execute_script returns [12:33:19]free content buf [12:33:19]Sock 9.Close socket [12:33:19]Sock 9.Thread stoped [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:01]accept exits with 8 [12:34:01]New connection [12:34:01]New thread 3066719588 created [12:34:01]Thread 3066862948 joined [12:34:01]Waiting for new connection... [12:34:01] Sock 8.Parse request [12:34:01]Sock 8.Check first char [12:34:01]Sock 8.First char is OK [12:34:01]request: POST /json_proto HTTP/1.0 [12:34:01]Method: POST [12:34:01]URL: /json_proto [12:34:01]Method is POST - this is cgi request [12:34:01]url: /json_proto [12:34:01]query_string will be loaded in cgi processing [12:34:01]execute_cgi json_proto POST (null) [12:34:01]execute_cgi path=json_proto method=POST [12:34:01]POST find Content-Length [12:34:01]Host: 172.17.37.4:8080 [12:34:01]Content-Length: 792 [12:34:01]Content-Type: application/json [12:34:01] [12:34:01]POST finish read [12:34:01]Found Content-Length = 792 [12:34:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718411", "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\u000A81704", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:01]execute_script... [12:34: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)718411", "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\u000A81704", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:01]POST & json_proto [12:34:01]process_json_proto [12:34:01]json parsed OK: [12:34:01]protocol is kg_v1.0 [12:34:01]action value=close_receipt [12:34:01]process_action close_receipt [12:34:01]cmd_close_receipt [12:34:01]MH_GetDate [12:34:01]Write to MH i2c: F0 00 00 F7 2A 10 [12:34:01]Write i2c OK [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: F0 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: F0 09 00 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: F0 09 00 F7 2A 00 3E 63 48 67 1D 3A 47 67 6E [12:34:01]GetLastDocTimeStamp 1732797199 [12:34:01]current date 1732797246 [12:34:01]FM_GetShiftState [12:34:01]SAM_PROTO_GetShiftState [12:34:01]wFMCommunicate request_size=4 [12:34:01]MH_SAM_APDU [12:34:01]CAPDU: 80 13 01 00 [12:34:01]Write to MH i2c: E2 08 00 F8 2A 80 13 01 00 00 00 00 00 9F [12:34:01]Write i2c OK [12:34:01]MH_I2C_Read... [12:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:01]Read from MH i2c: E2 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: E2 0E 00 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: E2 0E 00 F8 2A 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 A6 [12:34:01]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:34:01]wFMCommunicate OK [12:34:01]SAM_PROTO_GetShiftState done [12:34:01]FM_GetShiftState done [12:34:01]opened in 1732752282 [12:34:01]opened+sec_in_day 1732838682 [12:34:01]quantity*price = 0 [12:34:01]sum+1 = 1 [12:34: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 СНО: Общий режим Чек 86 28.11.2024 12:34 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 81704 ФМ: 0000000000874881 ФД: 123574 ФПД: 198164973059113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T123406&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123574&fm=198164973059113&tin=02508201610067®Number=0000000000092681&sum=0 [12:34:02]StoreToDocumentArchive [12:34:02]shift 559 fd 123574 [12:34:02]save to /storage/0559/doc_00123574 [12:34:02]save last doc name /storage/0559/doc_00123574 to /storage/kkm_last_doc_name [12:34:02]save OK [12:34:02]Clear old archive folders... [12:34:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:02]tlvbuf is B6D92730 [12:34:02]SAM_PROTO_ClearQueue [12:34:02]wFMCommunicate request_size=4 [12:34:02]MH_SAM_APDU [12:34:02]CAPDU: 80 09 00 00 [12:34:02]Write to MH i2c: E2 08 00 05 2B 80 09 00 00 00 00 00 00 A2 [12:34:02]Write i2c OK [12:34:02]MH_I2C_Read... [12:34:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:02]Read from MH i2c: E2 [12:34:02]MH_I2C_Read... [12:34:02]Read from MH i2c: E2 03 00 [12:34:02]MH_I2C_Read... [12:34:02]Read from MH i2c: E2 03 00 05 2B 00 90 00 A4 [12:34:02]RAPDU: 90 00 [12:34:02]wFMCommunicate OK [12:34:02]SAM_PROTO_ClearQueue done [12:34:02]KKMCreateOFDPacket [12:34:02]OFDProtocolAddRootSTLVToBuf [12:34:02]FM_MakeSignedData [12:34:02]FM_MakeSignedData [12:34:02]SAM_PROTO_SignData [12:34:02]wFMCommunicate request_size=4 [12:34:02]MH_SAM_APDU [12:34:02]CAPDU: 80 0D 01 02 [12:34:02]Write to MH i2c: E2 08 00 06 2B 80 0D 01 02 00 00 00 00 AA [12:34:02]Write i2c OK [12:34:02]MH_I2C_Read... [12:34:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:02]Read from MH i2c: E2 [12:34:02]MH_I2C_Read... [12:34:02]Read from MH i2c: E2 03 00 [12:34:02]MH_I2C_Read... [12:34:02]Read from MH i2c: E2 03 00 06 2B 00 90 00 A5 [12:34:02]RAPDU: 90 00 [12:34:02]wFMCommunicate OK [12:34:02]wFMCommunicate request_size=255 [12:34:02]MH_SAM_APDU [12:34: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 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 56 00 00 00 F4 03 04 00 3E 63 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B4 [12:34:02]Write to MH i2c: E2 02 01 07 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 56 00 00 00 F4 03 04 00 3E 63 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B4 00 00 81 [12:34:02]Write i2c OK [12:34:02]MH_I2C_Read... [12:34:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:02]Read from MH i2c: E2 [12:34:02]MH_I2C_Read... [12:34:02]Read from MH i2c: E2 03 00 [12:34:02]MH_I2C_Read... [12:34:02]Read from MH i2c: E2 03 00 07 2B 00 90 00 A6 [12:34:02]RAPDU: 90 00 [12:34:02]wFMCommunicate OK [12:34:02]wFMCommunicate request_size=10 [12:34:02]MH_SAM_APDU [12:34:02]CAPDU: 80 0D 02 02 05 3A E0 D3 7C 29 [12:34:02]Write to MH i2c: E2 0D 00 08 2B 80 0D 02 02 05 00 3A E0 D3 7C 29 00 00 49 [12:34:02]Write i2c OK [12:34:02]MH_I2C_Read... [12:34:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:03]Read from MH i2c: E2 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 03 00 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 03 00 08 2B 00 90 00 A7 [12:34:03]RAPDU: 90 00 [12:34:03]wFMCommunicate OK [12:34:03]wFMCommunicate request_size=4 [12:34:03]MH_SAM_APDU [12:34:03]CAPDU: 80 0D 03 02 [12:34:03]Write to MH i2c: E2 08 00 09 2B 80 0D 03 02 00 00 00 00 AF [12:34:03]Write i2c OK [12:34:03]MH_I2C_Read... [12:34:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:03]Read from MH i2c: E2 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 0B 00 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 0B 00 09 2B 00 04 42 59 44 7D F8 93 DD 90 00 78 [12:34:03]RAPDU: 04 42 59 44 7D F8 93 DD 90 00 [12:34:03]wFMCommunicate OK [12:34:03]SAM_PROTO_SignData done [12:34:03]FM_MakeSignedData done [12:34:03]CreateOFDProtocolMessage [12:34:03]wFMCommunicate request_size=4 [12:34:03]MH_SAM_APDU [12:34:03]CAPDU: 80 11 00 00 [12:34:03]Write to MH i2c: E2 08 00 0A 2B 80 11 00 00 00 00 00 00 AF [12:34:03]Write i2c OK [12:34:03]MH_I2C_Read... [12:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:03]Read from MH i2c: E2 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 17 00 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 17 00 0A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 06 [12:34: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:34:03]wFMCommunicate OK [12:34:03]CreateOFDProtocolMessage done [12:34:03]OFDSenderStorePacket 123574 [12:34:03]StoreOFDPacket docnum=123574 [12:34: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 20 FD 07 01 15 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 56 00 00 00 F4 03 04 00 3E 63 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B4 3A E0 D3 7C 29 04 42 59 44 7D F8 93 DD [12:34:03]CheckFolder [12:34:03]dirname=/storage/ofd_packets [12:34:03]CheckFolder done [12:34:03]ProducePacketName [12:34:03]name=ofd_packets/00123574 [12:34:03]NVStorageSaveData ofd_packets/00123574 [12:34:03]File name is /storage/ofd_packets/00123574 [12:34:03]Write 301 bytes [12:34:03]NVStorageSaveData done [12:34:03]OFDSenderStorePacket done [12:34:03]KKMCreateOFDPacket done [12:34:03]NVStorageSaveData kkm_last_timestamp [12:34:03]File name is /storage/kkm_last_timestamp [12:34:03]Write 4 bytes [12:34:03]NVStorageSaveData done [12:34:03]ExternCall_PrintAddStr [12:34:03]wPrintStart [12:34:03]Write to MH i2c: 01 00 00 0B 2B 36 [12:34:03]Write i2c OK [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: 01 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: 01 07 00 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: 01 07 00 0B 2B 00 00 00 00 00 FF 0F 4B [12:34:03]RasterBufferAndPrint [12:34:03]line Счет N : (1)718411 [12:34:03]line ИНН: 02508201610067 [12:34:03]line Контрольно-Кассовый Чек [12:34:03]line ПРОДАЖА [12:34:03]line ТРК (МРК, ГНК) : 32 [12:34:03]line Товар: 2710124130 [12:34:03]line Аи-92-К-4 [12:34:03]line 30.000 * 0.00 [12:34:03]line = 0.00 [12:34:03]line НДС 12% НСП 1% [12:34:03]line > о реализуемом товаре [12:34:03]line ИТОГО: 0.00 [12:34:03]line НСП 1% : 0.00 [12:34:03]line НДС 12% : 0.00 [12:34:03]line Наличными: 0.00 [12:34:03]line Безнал.: 0.00 [12:34:03]line Место: АЗС № 64 "Партнер Нефть" [12:34:03]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:34:03]line СНО: Общий режим [12:34:03]line Чек 86 28.11.2024 12:34 [12:34:03]line Смена: 559 ФФД: 1.0 [12:34:03]line ЗНМ: 0300000033 [12:34:03]line РНМ: 0000000000092681 [12:34:03]line Версия ККМ: 001 [12:34:03]line Талоны: Топливная Карта [12:34:03]line 81704 [12:34:03]line ФМ: 0000000000874881 [12:34:03]line ФД: 123574 [12:34:03]line ФПД: 198164973059113 [12:34:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T123406&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123574&fm=198164973059113&tin=02508201610067®Number=0000000000092681&sum=0 [12:34:03]written 0, free lines is 4095 [12:34:03]OFD Sender: Processing packet 123574 [packets to send 7, broken 6] [12:34:03]ProducePacketName [12:34:03]name=ofd_packets/00123574 [12:34:03]OFD Sender: To server: pG, [12:34:03]CommunicateWithHost lk.salyk.kg:30040 [12:34:03]ConnectInit lk.salyk.kg [12:34:03]Connected sock=10 [12:34: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 20 FD 07 01 15 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 56 00 00 00 F4 03 04 00 3E 63 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B4 3A E0 D3 7C 29 04 42 59 44 7D F8 93 DD [12:34: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 FB E5 47 00 E8 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B6 E2 01 00 F4 03 04 00 04 0F 48 67 B6 04 01 00 00 7A 3B F1 3C 52 40 0F BB [12:34:03]CommunicateWithHost err = 0 [12:34:03]CheckOFDResponse [12:34:03]1017 (14) - 77093643461234 [12:34:03]1041 (16) - 0000000000874881 [12:34:03]1040 (4) - 123574 [12:34:03]1012 (4) - 28.11.2024 06:34 [12:34:03]1206 (1) - 0 [12:34:03]OFD Sender: Remove packet 123574 [12:34:03]ProducePacketName [12:34:03]name=ofd_packets/00123574 [12:34:03]NVStorageDeleteData [12:34:03]Write to MH i2c: 01 00 00 35 2B 60 [12:34:03]Write i2c OK [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: 01 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: 01 07 00 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: 01 07 00 35 2B 00 00 00 00 00 5A 0C CD [12:34:03]RasterBufferAndPrint [12:34:03]line [12:34:03]line [12:34:03]line [12:34:03]line [12:34:03]line [12:34:03]written 0, free lines is 3167 [12:34:03]MH_Cut [12:34:03]Write to MH i2c: D1 01 00 3C 2B 01 39 [12:34:03]Write i2c OK [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: D1 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: D1 01 00 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: D1 01 00 3C 2B 00 38 [12:34:03]Write to MH i2c: 01 00 00 3D 2B 68 [12:34:03]Write i2c OK [12:34:03]MH_I2C_Read... [12:34:04]OFD Sender: No OFD packet to send [12:34:05]*** Cut start [12:34:05]*** Partial cut [12:34:05]*** CUTSNS_PIN = 1 [12:34:05]*** CUTSNS_PIN = 0 [12:34:05]*** Brake cut motor [12:34:05]Read from MH i2c: 01 [12:34:05]MH_I2C_Read... [12:34:05]*** Stop cut motor [12:34:05]*** Cut end [12:34:05]Read from MH i2c: 01 07 00 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: 01 07 00 3D 2B 00 00 00 00 00 FF 0F 7D [12:34:05]process_action close_receipt done [12:34:05]requested_data is exist [12:34:05]produce_requested_data [12:34:05]requested_item fm.sn is exist - process it [12:34:05]wFMCommunicate request_size=4 [12:34:05]MH_SAM_APDU [12:34:05]CAPDU: 80 11 00 00 [12:34:05]Write to MH i2c: E2 08 00 3E 2B 80 11 00 00 00 00 00 00 E3 [12:34:05]Write i2c OK [12:34:05]MH_I2C_Read... [12:34:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:05]Read from MH i2c: E2 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 17 00 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 17 00 3E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 3A [12:34:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:34:05]wFMCommunicate OK [12:34:05]requested_item fd.num is exist - process it [12:34:05]SAM_PROTO_GetFieldsCounters [12:34:05]wFMCommunicate request_size=4 [12:34:05]MH_SAM_APDU [12:34:05]CAPDU: 80 13 00 00 [12:34:05]Write to MH i2c: E2 08 00 3F 2B 80 13 00 00 00 00 00 00 E6 [12:34:05]Write i2c OK [12:34:05]MH_I2C_Read... [12:34:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:06]Read from MH i2c: E2 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 62 00 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 62 00 3F 2B 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 E2 01 00 0E 04 04 00 2F 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 D8 [12:34: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 B6 E2 01 00 0E 04 04 00 2F 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 [12:34:06]wFMCommunicate OK [12:34:06]SAM_PROTO_GetFieldsCounters done [12:34:06]requested_item shift.num is exist - process it [12:34:06]requested_item shift.opened is exist - process it [12:34:06]req_shift_opened [12:34:06]FM_GetShiftState [12:34:06]SAM_PROTO_GetShiftState [12:34:06]wFMCommunicate request_size=4 [12:34:06]MH_SAM_APDU [12:34:06]CAPDU: 80 13 01 00 [12:34:06]Write to MH i2c: E2 08 00 40 2B 80 13 01 00 00 00 00 00 E8 [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:06]Read from MH i2c: E2 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 0E 00 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 0E 00 40 2B 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 EF [12:34:06]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:34:06]wFMCommunicate OK [12:34:06]SAM_PROTO_GetShiftState done [12:34:06]FM_GetShiftState done [12:34:06]req_shift_opened done [12:34:06]requested_item shift.open_date is exist - process it [12:34:06]req_shift_open_date [12:34:06]req_shift_open_date done [12:34:06]produce_requested_data done [12:34:06]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123574,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [12:34:06]process_action_free close_receipt [12:34:06]json_value_free [12:34:06]json_value_free done [12:34:06]process_json_proto returns [12:34:06]Send response to host [12:34:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123574,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [12:34:06]free response buf [12:34:06]execute_script done [12:34:06]execute_script returns [12:34:06]free content buf [12:34:06]Sock 8.Close socket [12:34:06]Sock 8.Thread stoped [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:58]int [12:34:58]Write to MH i2c: 01 00 00 41 2B 6C [12:34:58]*** FLAG_PRN_PAP1 set [12:34:58]Write i2c OK [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: 01 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: 01 07 00 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: 01 07 00 41 2B 00 01 00 00 00 FF 0F 82 [12:34:58]state=0 [12:34:58]No paper [12:34:58]int [12:34:58]Write to MH i2c: 01 00 00 42 2B 6D [12:34:58]*** FLAG_PRN_PAP2 set [12:34:58]Write i2c OK [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: 01 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: 01 07 00 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: 01 07 00 42 2B 00 03 00 00 00 FF 0F 85 [12:34:58]state=0 [12:34:58]No paper [12:34:58]Cover opened [12:34:58]int [12:34:58]Write to MH i2c: 01 00 00 43 2B 6E [12:34:58]*** FLAG_PRN_PAP2 reset [12:34:58]Write i2c OK [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: 01 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: 01 07 00 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: 01 07 00 43 2B 00 01 00 00 00 FF 0F 84 [12:34:58]state=3 [12:34:58]No paper [12:34:58]Cover closed [12:34:58]int [12:34:58]Write to MH i2c: 01 00 00 44 2B 6F [12:34:58]*** FLAG_PRN_PAP2 set [12:34:58]Write i2c OK [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: 01 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: 01 07 00 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: 01 07 00 44 2B 00 03 00 00 00 FF 0F 87 [12:34:58]state=0 [12:34:58]No paper [12:34:58]Cover opened [12:34:59]OFD Sender: No OFD packet to send [12:35:00]int [12:35:00]Write to MH i2c: 01 00 00 45 2B 70 [12:35:00]*** FLAG_PRN_PAP2 reset [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: 01 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: 01 07 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: 01 07 00 45 2B 00 01 00 00 00 FF 0F 86 [12:35:00]state=3 [12:35:00]No paper [12:35:00]Cover closed [12:35:00]int [12:35:00]Write to MH i2c: 01 00 00 46 2B 71 [12:35:00]*** FLAG_PRN_PAP2 set [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: 01 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: 01 07 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: 01 07 00 46 2B 00 03 00 00 00 FF 0F 89 [12:35:00]state=0 [12:35:00]No paper [12:35:00]Cover opened [12:35:04]OFD Sender: No OFD packet to send [12:35:04]int [12:35:04]Write to MH i2c: 01 00 00 47 2B 72 [12:35:04]*** FLAG_PRN_PAP1 reset [12:35:04]*** FLAG_PRN_PAP2 reset [12:35:04]Write i2c OK [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: 01 [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: 01 07 00 [12:35:04]MH_I2C_Read... [12:35:04]Read from MH i2c: 01 07 00 47 2B 00 00 00 00 00 FF 0F 87 [12:35:04]state=3 [12:35:04]Cover closed [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:13]accept exits with 9 [12:41:13]New connection [12:41:13]New thread 3066862948 created [12:41:13]Thread 3066719588 joined [12:41:13]Waiting for new connection... [12:41:13] Sock 9.Parse request [12:41:13]Sock 9.Check first char [12:41:13]Sock 9.First char is OK [12:41:13]request: POST /json_proto HTTP/1.0 [12:41:13]Method: POST [12:41:13]URL: /json_proto [12:41:13]Method is POST - this is cgi request [12:41:13]url: /json_proto [12:41:13]query_string will be loaded in cgi processing [12:41:13]execute_cgi json_proto POST (null) [12:41:13]execute_cgi path=json_proto method=POST [12:41:13]POST find Content-Length [12:41:13]Host: 172.17.37.4:8080 [12:41:13]Content-Length: 816 [12:41:13]Content-Type: application/json [12:41:13] [12:41:13]POST finish read [12:41:13]Found Content-Length = 816 [12:41:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718413", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:13]execute_script... [12:41: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)718413", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:13]POST & json_proto [12:41:13]process_json_proto [12:41:13]json parsed OK: [12:41:13]protocol is kg_v1.0 [12:41:13]action value=close_receipt [12:41:13]process_action close_receipt [12:41:13]cmd_close_receipt [12:41:13]MH_GetDate [12:41:13]Write to MH i2c: F0 00 00 48 2B 62 [12:41:13]Write i2c OK [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: F0 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: F0 09 00 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: F0 09 00 48 2B 00 EE 64 48 67 1D 3A 47 67 71 [12:41:13]GetLastDocTimeStamp 1732797246 [12:41:13]current date 1732797678 [12:41:13]FM_GetShiftState [12:41:13]SAM_PROTO_GetShiftState [12:41:13]wFMCommunicate request_size=4 [12:41:13]MH_SAM_APDU [12:41:13]CAPDU: 80 13 01 00 [12:41:13]Write to MH i2c: E2 08 00 49 2B 80 13 01 00 00 00 00 00 F1 [12:41:13]Write i2c OK [12:41:13]MH_I2C_Read... [12:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:13]Read from MH i2c: E2 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: E2 0E 00 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: E2 0E 00 49 2B 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 F8 [12:41:13]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:41:13]wFMCommunicate OK [12:41:13]SAM_PROTO_GetShiftState done [12:41:13]FM_GetShiftState done [12:41:13]opened in 1732752282 [12:41:13]opened+sec_in_day 1732838682 [12:41:13]quantity*price = 50010 [12:41:13]sum+1 = 50012 [12:41:13]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 СНО: Общий режим Чек 87 28.11.2024 12:41 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123575 ФПД: 251084995025572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T124118&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123575&fm=251084995025572&tin=02508201610067®Number=0000000000092681&sum=50011 [12:41:14]StoreToDocumentArchive [12:41:14]shift 559 fd 123575 [12:41:14]save to /storage/0559/doc_00123575 [12:41:14]save last doc name /storage/0559/doc_00123575 to /storage/kkm_last_doc_name [12:41:14]save OK [12:41:14]Clear old archive folders... [12:41:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:14]tlvbuf is 0153A700 [12:41:14]SAM_PROTO_ClearQueue [12:41:14]wFMCommunicate request_size=4 [12:41:14]MH_SAM_APDU [12:41:14]CAPDU: 80 09 00 00 [12:41:14]Write to MH i2c: E2 08 00 56 2B 80 09 00 00 00 00 00 00 F3 [12:41:14]Write i2c OK [12:41:14]MH_I2C_Read... [12:41:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:14]Read from MH i2c: E2 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: E2 03 00 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: E2 03 00 56 2B 00 90 00 F5 [12:41:14]RAPDU: 90 00 [12:41:14]wFMCommunicate OK [12:41:14]SAM_PROTO_ClearQueue done [12:41:14]KKMCreateOFDPacket [12:41:14]OFDProtocolAddRootSTLVToBuf [12:41:14]FM_MakeSignedData [12:41:14]FM_MakeSignedData [12:41:14]SAM_PROTO_SignData [12:41:14]wFMCommunicate request_size=4 [12:41:14]MH_SAM_APDU [12:41:14]CAPDU: 80 0D 01 02 [12:41:14]Write to MH i2c: E2 08 00 57 2B 80 0D 01 02 00 00 00 00 FB [12:41:14]Write i2c OK [12:41:14]MH_I2C_Read... [12:41:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:14]Read from MH i2c: E2 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: E2 03 00 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: E2 03 00 57 2B 00 90 00 F6 [12:41:14]RAPDU: 90 00 [12:41:14]wFMCommunicate OK [12:41:14]wFMCommunicate request_size=255 [12:41:14]MH_SAM_APDU [12:41: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 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 57 00 00 00 F4 03 04 00 EE 64 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E4 [12:41:14]Write to MH i2c: E2 02 01 58 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 57 00 00 00 F4 03 04 00 EE 64 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E4 00 00 7F [12:41:14]Write i2c OK [12:41:14]MH_I2C_Read... [12:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:15]Read from MH i2c: E2 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 03 00 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 03 00 58 2B 00 90 00 F7 [12:41:15]RAPDU: 90 00 [12:41:15]wFMCommunicate OK [12:41:15]wFMCommunicate request_size=10 [12:41:15]MH_SAM_APDU [12:41:15]CAPDU: 80 0D 02 02 05 5C 47 EF DA A4 [12:41:15]Write to MH i2c: E2 0D 00 59 2B 80 0D 02 02 05 00 5C 47 EF DA A4 00 00 18 [12:41:15]Write i2c OK [12:41:15]MH_I2C_Read... [12:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:15]Read from MH i2c: E2 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 03 00 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 03 00 59 2B 00 90 00 F8 [12:41:15]RAPDU: 90 00 [12:41:15]wFMCommunicate OK [12:41:15]wFMCommunicate request_size=4 [12:41:15]MH_SAM_APDU [12:41:15]CAPDU: 80 0D 03 02 [12:41:15]Write to MH i2c: E2 08 00 5A 2B 80 0D 03 02 00 00 00 00 00 [12:41:15]Write i2c OK [12:41:15]MH_I2C_Read... [12:41:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:15]Read from MH i2c: E2 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 0B 00 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 0B 00 5A 2B 00 EA 2B 9B 09 44 6A 50 D1 90 00 89 [12:41:15]RAPDU: EA 2B 9B 09 44 6A 50 D1 90 00 [12:41:15]wFMCommunicate OK [12:41:15]SAM_PROTO_SignData done [12:41:15]FM_MakeSignedData done [12:41:15]CreateOFDProtocolMessage [12:41:15]wFMCommunicate request_size=4 [12:41:15]MH_SAM_APDU [12:41:15]CAPDU: 80 11 00 00 [12:41:15]Write to MH i2c: E2 08 00 5B 2B 80 11 00 00 00 00 00 00 00 [12:41:15]Write i2c OK [12:41:15]MH_I2C_Read... [12:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:15]Read from MH i2c: E2 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 17 00 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: E2 17 00 5B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 57 [12: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 [12:41:15]wFMCommunicate OK [12:41:15]CreateOFDProtocolMessage done [12:41:15]OFDSenderStorePacket 123575 [12:41:15]StoreOFDPacket docnum=123575 [12:41: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 0F 01 00 00 97 68 07 01 B3 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 57 00 00 00 F4 03 04 00 EE 64 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E4 5C 47 EF DA A4 EA 2B 9B 09 44 6A 50 D1 [12:41:15]CheckFolder [12:41:15]dirname=/storage/ofd_packets [12:41:15]CheckFolder done [12:41:15]ProducePacketName [12:41:15]name=ofd_packets/00123575 [12:41:15]NVStorageSaveData ofd_packets/00123575 [12:41:15]File name is /storage/ofd_packets/00123575 [12:41:15]Write 301 bytes [12:41:15]NVStorageSaveData done [12:41:15]OFDSenderStorePacket done [12:41:15]KKMCreateOFDPacket done [12:41:15]NVStorageSaveData kkm_last_timestamp [12:41:15]File name is /storage/kkm_last_timestamp [12:41:15]Write 4 bytes [12:41:15]NVStorageSaveData done [12:41:15]ExternCall_PrintAddStr [12:41:15]wPrintStart [12:41:15]Write to MH i2c: 01 00 00 5C 2B 87 [12:41:15]Write i2c OK [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: 01 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: 01 07 00 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: 01 07 00 5C 2B 00 00 00 00 00 FF 0F 9C [12:41:15]RasterBufferAndPrint [12:41:15]line Счет N : (1)718413 [12:41:15]line ИНН: 02508201610067 [12:41:15]line Контрольно-Кассовый Чек [12:41:15]line ПРОДАЖА [12:41:15]line ТРК (МРК, ГНК) : 22 [12:41:15]line Товар: 2710124130 [12:41:15]line Аи-92-К-4 [12:41:15]line 7.420 * 67.40 [12:41:15]line = 500.11 [12:41:15]line НДС 12% НСП 1% [12:41:15]line > о реализуемом товаре [12:41:15]line ИТОГО: 500.11 [12:41:15]line НСП 1% : 4.43 [12:41:15]line НДС 12% : 53.11 [12:41:15]line Наличными: 0.00 [12:41:15]line Безнал.: 500.11 [12:41:15]line Место: АЗС № 64 "Партнер Нефть" [12:41:15]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:41:15]line СНО: Общий режим [12:41:15]line Чек 87 28.11.2024 12:41 [12:41:15]line Смена: 559 ФФД: 1.0 [12:41:15]line ЗНМ: 0300000033 [12:41:15]line РНМ: 0000000000092681 [12:41:15]line Версия ККМ: 001 [12:41:15]line Платежная система: Бакай Банк [12:41:15]line ФМ: 0000000000874881 [12:41:15]line ФД: 123575 [12:41:15]line ФПД: 251084995025572 [12:41:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T124118&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123575&fm=251084995025572&tin=02508201610067®Number=0000000000092681&sum=50011 [12:41:15]OFD Sender: Processing packet 123575 [packets to send 7, broken 6] [12:41:15]ProducePacketName [12:41:15]name=ofd_packets/00123575 [12:41:15]OFD Sender: To server: pG, [12:41:15]CommunicateWithHost lk.salyk.kg:30040 [12:41:15]ConnectInit lk.salyk.kg [12:41:15]written 0, free lines is 4095 [12:41:15]Connected sock=10 [12:41: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 97 68 07 01 B3 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 57 00 00 00 F4 03 04 00 EE 64 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E4 5C 47 EF DA A4 EA 2B 9B 09 44 6A 50 D1 [12:41: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 91 F4 47 00 BD 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 B7 E2 01 00 F4 03 04 00 B4 10 48 67 B6 04 01 00 00 96 00 CD 6B 8E F7 58 B2 [12:41:15]CommunicateWithHost err = 0 [12:41:15]CheckOFDResponse [12:41:15]1017 (14) - 77093643461234 [12:41:15]1041 (16) - 0000000000874881 [12:41:15]1040 (4) - 123575 [12:41:15]1012 (4) - 28.11.2024 06:41 [12:41:15]1206 (1) - 0 [12:41:15]OFD Sender: Remove packet 123575 [12:41:15]ProducePacketName [12:41:15]name=ofd_packets/00123575 [12:41:15]NVStorageDeleteData [12:41:16]Write to MH i2c: 01 00 00 86 2B B1 [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: 01 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: 01 07 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: 01 07 00 86 2B 00 00 00 00 00 6D 0C 31 [12:41:16]RasterBufferAndPrint [12:41:16]line [12:41:16]line [12:41:16]line [12:41:16]line [12:41:16]line [12:41:16]written 0, free lines is 3184 [12:41:16]MH_Cut [12:41:16]Write to MH i2c: D1 01 00 8D 2B 01 8A [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: D1 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: D1 01 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: D1 01 00 8D 2B 00 89 [12:41:16]Write to MH i2c: 01 00 00 8E 2B B9 [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:16]OFD Sender: No OFD packet to send [12:41:17]*** Cut start [12:41:17]*** Partial cut [12:41:17]*** CUTSNS_PIN = 1 [12:41:17]*** CUTSNS_PIN = 0 [12:41:17]*** Brake cut motor [12:41:18]Read from MH i2c: 01 [12:41:18]MH_I2C_Read... [12:41:18]*** Stop cut motor [12:41:18]*** Cut end [12:41:18]Read from MH i2c: 01 07 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: 01 07 00 8E 2B 00 00 00 00 00 FF 0F CE [12:41:18]process_action close_receipt done [12:41:18]requested_data is exist [12:41:18]produce_requested_data [12:41:18]requested_item fm.sn is exist - process it [12:41:18]wFMCommunicate request_size=4 [12:41:18]MH_SAM_APDU [12:41:18]CAPDU: 80 11 00 00 [12:41:18]Write to MH i2c: E2 08 00 8F 2B 80 11 00 00 00 00 00 00 34 [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:18]Read from MH i2c: E2 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 17 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 17 00 8F 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8B [12:41:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:41:18]wFMCommunicate OK [12:41:18]requested_item fd.num is exist - process it [12:41:18]SAM_PROTO_GetFieldsCounters [12:41:18]wFMCommunicate request_size=4 [12:41:18]MH_SAM_APDU [12:41:18]CAPDU: 80 13 00 00 [12:41:18]Write to MH i2c: E2 08 00 90 2B 80 13 00 00 00 00 00 00 37 [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:18]Read from MH i2c: E2 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 62 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 62 00 90 2B 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 E2 01 00 0E 04 04 00 2F 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 2D [12:41: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 B7 E2 01 00 0E 04 04 00 2F 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 [12:41:18]wFMCommunicate OK [12:41:18]SAM_PROTO_GetFieldsCounters done [12:41:18]requested_item shift.num is exist - process it [12:41:18]requested_item shift.opened is exist - process it [12:41:18]req_shift_opened [12:41:18]FM_GetShiftState [12:41:18]SAM_PROTO_GetShiftState [12:41:18]wFMCommunicate request_size=4 [12:41:18]MH_SAM_APDU [12:41:18]CAPDU: 80 13 01 00 [12:41:18]Write to MH i2c: E2 08 00 91 2B 80 13 01 00 00 00 00 00 39 [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:18]Read from MH i2c: E2 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 0E 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 0E 00 91 2B 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 40 [12:41:18]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:41:18]wFMCommunicate OK [12:41:18]SAM_PROTO_GetShiftState done [12:41:18]FM_GetShiftState done [12:41:18]req_shift_opened done [12:41:18]requested_item shift.open_date is exist - process it [12:41:18]req_shift_open_date [12:41:18]req_shift_open_date done [12:41:18]produce_requested_data done [12:41:18]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123575,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [12:41:18]process_action_free close_receipt [12:41:18]json_value_free [12:41:18]json_value_free done [12:41:18]process_json_proto returns [12:41:18]Send response to host [12:41:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123575,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [12:41:18]free response buf [12:41:18]execute_script done [12:41:18]execute_script returns [12:41:18]free content buf [12:41:18]Sock 9.Close socket [12:41:18]Sock 9.Thread stoped [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:03]accept exits with 8 [12:43:03]New connection [12:43:03]New thread 3066719588 created [12:43:03]Thread 3066862948 joined [12:43:03]Waiting for new connection... [12:43:03] Sock 8.Parse request [12:43:03]Sock 8.Check first char [12:43:03]Sock 8.First char is OK [12:43:03]request: POST /json_proto HTTP/1.0 [12:43:03]Method: POST [12:43:03]URL: /json_proto [12:43:03]Method is POST - this is cgi request [12:43:03]url: /json_proto [12:43:03]query_string will be loaded in cgi processing [12:43:03]execute_cgi json_proto POST (null) [12:43:03]execute_cgi path=json_proto method=POST [12:43:03]POST find Content-Length [12:43:03]Host: 172.17.37.4:8080 [12:43:03]Content-Length: 816 [12:43:03]Content-Type: application/json [12:43:03] [12:43:03]POST finish read [12:43:03]Found Content-Length = 816 [12:43:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718414", "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 }]} ], "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" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:03]execute_script... [12:43: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)718414", "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 }]} ], "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" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:03]POST & json_proto [12:43:03]process_json_proto [12:43:03]json parsed OK: [12:43:03]protocol is kg_v1.0 [12:43:03]action value=close_receipt [12:43:03]process_action close_receipt [12:43:03]cmd_close_receipt [12:43:03]MH_GetDate [12:43:03]Write to MH i2c: F0 00 00 92 2B AC [12:43:03]Write i2c OK [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: F0 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: F0 09 00 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: F0 09 00 92 2B 00 5C 65 48 67 1D 3A 47 67 2A [12:43:03]GetLastDocTimeStamp 1732797678 [12:43:03]current date 1732797788 [12:43:03]FM_GetShiftState [12:43:03]SAM_PROTO_GetShiftState [12:43:03]wFMCommunicate request_size=4 [12:43:03]MH_SAM_APDU [12:43:03]CAPDU: 80 13 01 00 [12:43:03]Write to MH i2c: E2 08 00 93 2B 80 13 01 00 00 00 00 00 3B [12:43:03]Write i2c OK [12:43:03]MH_I2C_Read... [12:43:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:03]Read from MH i2c: E2 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: E2 0E 00 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: E2 0E 00 93 2B 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 42 [12:43:03]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:43:03]wFMCommunicate OK [12:43:03]SAM_PROTO_GetShiftState done [12:43:03]FM_GetShiftState done [12:43:03]opened in 1732752282 [12:43:03]opened+sec_in_day 1732838682 [12:43:03]quantity*price = 50010 [12:43:03]sum+1 = 50012 [12:43:03]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 СНО: Общий режим Чек 88 28.11.2024 12:43 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123576 ФПД: 204474971075291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T124308&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123576&fm=204474971075291&tin=02508201610067®Number=0000000000092681&sum=50011 [12:43:04]StoreToDocumentArchive [12:43:04]shift 559 fd 123576 [12:43:04]save to /storage/0559/doc_00123576 [12:43:04]save last doc name /storage/0559/doc_00123576 to /storage/kkm_last_doc_name [12:43:04]save OK [12:43:04]Clear old archive folders... [12:43:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:43:04]tlvbuf is 015500C0 [12:43:04]SAM_PROTO_ClearQueue [12:43:04]wFMCommunicate request_size=4 [12:43:04]MH_SAM_APDU [12:43:04]CAPDU: 80 09 00 00 [12:43:04]Write to MH i2c: E2 08 00 A0 2B 80 09 00 00 00 00 00 00 3D [12:43:04]Write i2c OK [12:43:04]MH_I2C_Read... [12:43:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:04]Read from MH i2c: E2 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 03 00 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 03 00 A0 2B 00 90 00 3F [12:43:04]RAPDU: 90 00 [12:43:04]wFMCommunicate OK [12:43:04]SAM_PROTO_ClearQueue done [12:43:04]KKMCreateOFDPacket [12:43:04]OFDProtocolAddRootSTLVToBuf [12:43:04]FM_MakeSignedData [12:43:04]FM_MakeSignedData [12:43:04]SAM_PROTO_SignData [12:43:04]wFMCommunicate request_size=4 [12:43:04]MH_SAM_APDU [12:43:04]CAPDU: 80 0D 01 02 [12:43:04]Write to MH i2c: E2 08 00 A1 2B 80 0D 01 02 00 00 00 00 45 [12:43:04]Write i2c OK [12:43:04]MH_I2C_Read... [12:43:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:04]Read from MH i2c: E2 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 03 00 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 03 00 A1 2B 00 90 00 40 [12:43:04]RAPDU: 90 00 [12:43:04]wFMCommunicate OK [12:43:04]wFMCommunicate request_size=255 [12:43:04]MH_SAM_APDU [12:43: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 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 58 00 00 00 F4 03 04 00 5C 65 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B9 [12:43:04]Write to MH i2c: E2 02 01 A2 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 58 00 00 00 F4 03 04 00 5C 65 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B9 00 00 0F [12:43:04]Write i2c OK [12:43:04]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 A2 2B 00 90 00 41 [12:43:05]RAPDU: 90 00 [12:43:05]wFMCommunicate OK [12:43:05]wFMCommunicate request_size=10 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 0D 02 02 05 F8 0A 04 32 DB [12:43:05]Write to MH i2c: E2 0D 00 A3 2B 80 0D 02 02 05 00 F8 0A 04 32 DB 00 00 65 [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 A3 2B 00 90 00 42 [12:43:05]RAPDU: 90 00 [12:43:05]wFMCommunicate OK [12:43:05]wFMCommunicate request_size=4 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 0D 03 02 [12:43:05]Write to MH i2c: E2 08 00 A4 2B 80 0D 03 02 00 00 00 00 4A [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 0B 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 0B 00 A4 2B 00 8F DF E4 65 AC AE 45 E0 90 00 81 [12:43:05]RAPDU: 8F DF E4 65 AC AE 45 E0 90 00 [12:43:05]wFMCommunicate OK [12:43:05]SAM_PROTO_SignData done [12:43:05]FM_MakeSignedData done [12:43:05]CreateOFDProtocolMessage [12:43:05]wFMCommunicate request_size=4 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 11 00 00 [12:43:05]Write to MH i2c: E2 08 00 A5 2B 80 11 00 00 00 00 00 00 4A [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 17 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 17 00 A5 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A1 [12:43:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:43:05]wFMCommunicate OK [12:43:05]CreateOFDProtocolMessage done [12:43:05]OFDSenderStorePacket 123576 [12:43:05]StoreOFDPacket docnum=123576 [12:43: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 6E F8 07 01 55 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 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 58 00 00 00 F4 03 04 00 5C 65 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B9 F8 0A 04 32 DB 8F DF E4 65 AC AE 45 E0 [12:43:05]CheckFolder [12:43:05]dirname=/storage/ofd_packets [12:43:05]CheckFolder done [12:43:05]ProducePacketName [12:43:05]name=ofd_packets/00123576 [12:43:05]NVStorageSaveData ofd_packets/00123576 [12:43:05]File name is /storage/ofd_packets/00123576 [12:43:05]Write 301 bytes [12:43:05]NVStorageSaveData done [12:43:05]OFDSenderStorePacket done [12:43:05]KKMCreateOFDPacket done [12:43:05]NVStorageSaveData kkm_last_timestamp [12:43:05]File name is /storage/kkm_last_timestamp [12:43:05]Write 4 bytes [12:43:05]NVStorageSaveData done [12:43:05]ExternCall_PrintAddStr [12:43:05]wPrintStart [12:43:05]Write to MH i2c: 01 00 00 A6 2B D1 [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: 01 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: 01 07 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: 01 07 00 A6 2B 00 00 00 00 00 FF 0F E6 [12:43:05]RasterBufferAndPrint [12:43:05]line Счет N : (1)718414 [12:43:05]line ИНН: 02508201610067 [12:43:05]line Контрольно-Кассовый Чек [12:43:05]line ПРОДАЖА [12:43:05]line ТРК (МРК, ГНК) : 12 [12:43:05]line Товар: 2710124130 [12:43:05]line Аи-92-К-4 [12:43:05]line 7.420 * 67.40 [12:43:05]line = 500.11 [12:43:05]line НДС 12% НСП 1% [12:43:05]line > о реализуемом товаре [12:43:05]line ИТОГО: 500.11 [12:43:05]line НСП 1% : 4.43 [12:43:05]line НДС 12% : 53.11 [12:43:05]line Наличными: 0.00 [12:43:05]line Безнал.: 500.11 [12:43:05]line Место: АЗС № 64 "Партнер Нефть" [12:43:05]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:43:05]line СНО: Общий режим [12:43:05]line Чек 88 28.11.2024 12:43 [12:43:05]line Смена: 559 ФФД: 1.0 [12:43:05]line ЗНМ: 0300000033 [12:43:05]line РНМ: 0000000000092681 [12:43:05]line Версия ККМ: 001 [12:43:05]line Платежная система: Бакай Банк [12:43:05]line ФМ: 0000000000874881 [12:43:05]line ФД: 123576 [12:43:05]line ФПД: 204474971075291 [12:43:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T124308&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123576&fm=204474971075291&tin=02508201610067®Number=0000000000092681&sum=50011 [12:43:05]written 0, free lines is 4095 [12:43:05]OFD Sender: Processing packet 123576 [packets to send 7, broken 6] [12:43:05]ProducePacketName [12:43:05]name=ofd_packets/00123576 [12:43:05]OFD Sender: To server: pG, [12:43:05]CommunicateWithHost lk.salyk.kg:30040 [12:43:05]ConnectInit lk.salyk.kg [12:43:05]Connected sock=10 [12:43: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 6E F8 07 01 55 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 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 58 00 00 00 F4 03 04 00 5C 65 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B9 F8 0A 04 32 DB 8F DF E4 65 AC AE 45 E0 [12:43: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 DB 50 47 00 32 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B8 E2 01 00 F4 03 04 00 22 11 48 67 B6 04 01 00 00 A1 9F 32 04 11 DD A5 AC [12:43:05]CommunicateWithHost err = 0 [12:43:05]CheckOFDResponse [12:43:05]1017 (14) - 77093643461234 [12:43:05]1041 (16) - 0000000000874881 [12:43:05]1040 (4) - 123576 [12:43:05]1012 (4) - 28.11.2024 06:43 [12:43:05]1206 (1) - 0 [12:43:05]OFD Sender: Remove packet 123576 [12:43:05]ProducePacketName [12:43:05]name=ofd_packets/00123576 [12:43:05]NVStorageDeleteData [12:43:06]Write to MH i2c: 01 00 00 D0 2B FB [12:43:06]Write i2c OK [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: 01 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: 01 07 00 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: 01 07 00 D0 2B 00 00 00 00 00 56 0C 64 [12:43:06]RasterBufferAndPrint [12:43:06]line [12:43:06]line [12:43:06]line [12:43:06]line [12:43:06]line [12:43:06]written 0, free lines is 3163 [12:43:06]MH_Cut [12:43:06]Write to MH i2c: D1 01 00 D7 2B 01 D4 [12:43:06]Write i2c OK [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: D1 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: D1 01 00 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: D1 01 00 D7 2B 00 D3 [12:43:06]Write to MH i2c: 01 00 00 D8 2B 03 [12:43:06]Write i2c OK [12:43:06]MH_I2C_Read... [12:43:06]OFD Sender: No OFD packet to send [12:43:07]*** Cut start [12:43:07]*** Partial cut [12:43:07]*** CUTSNS_PIN = 1 [12:43:07]*** CUTSNS_PIN = 0 [12:43:07]*** Brake cut motor [12:43:08]Read from MH i2c: 01 [12:43:08]MH_I2C_Read... [12:43:08]*** Stop cut motor [12:43:08]*** Cut end [12:43:08]Read from MH i2c: 01 07 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: 01 07 00 D8 2B 00 00 00 00 00 FF 0F 18 [12:43:08]process_action close_receipt done [12:43:08]requested_data is exist [12:43:08]produce_requested_data [12:43:08]requested_item fm.sn is exist - process it [12:43:08]wFMCommunicate request_size=4 [12:43:08]MH_SAM_APDU [12:43:08]CAPDU: 80 11 00 00 [12:43:08]Write to MH i2c: E2 08 00 D9 2B 80 11 00 00 00 00 00 00 7E [12:43:08]Write i2c OK [12:43:08]MH_I2C_Read... [12:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:08]Read from MH i2c: E2 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 17 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 17 00 D9 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D5 [12:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:43:08]wFMCommunicate OK [12:43:08]requested_item fd.num is exist - process it [12:43:08]SAM_PROTO_GetFieldsCounters [12:43:08]wFMCommunicate request_size=4 [12:43:08]MH_SAM_APDU [12:43:08]CAPDU: 80 13 00 00 [12:43:08]Write to MH i2c: E2 08 00 DA 2B 80 13 00 00 00 00 00 00 81 [12:43:08]Write i2c OK [12:43:08]MH_I2C_Read... [12:43:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:08]Read from MH i2c: E2 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 62 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 62 00 DA 2B 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 E2 01 00 0E 04 04 00 2F 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 7B [12:43: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 B8 E2 01 00 0E 04 04 00 2F 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 [12:43:08]wFMCommunicate OK [12:43:08]SAM_PROTO_GetFieldsCounters done [12:43:08]requested_item shift.num is exist - process it [12:43:08]requested_item shift.opened is exist - process it [12:43:08]req_shift_opened [12:43:08]FM_GetShiftState [12:43:08]SAM_PROTO_GetShiftState [12:43:08]wFMCommunicate request_size=4 [12:43:08]MH_SAM_APDU [12:43:08]CAPDU: 80 13 01 00 [12:43:08]Write to MH i2c: E2 08 00 DB 2B 80 13 01 00 00 00 00 00 83 [12:43:08]Write i2c OK [12:43:08]MH_I2C_Read... [12:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:08]Read from MH i2c: E2 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 0E 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 0E 00 DB 2B 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 8A [12:43:08]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:43:08]wFMCommunicate OK [12:43:08]SAM_PROTO_GetShiftState done [12:43:08]FM_GetShiftState done [12:43:08]req_shift_opened done [12:43:08]requested_item shift.open_date is exist - process it [12:43:08]req_shift_open_date [12:43:08]req_shift_open_date done [12:43:08]produce_requested_data done [12:43:08]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123576,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [12:43:08]process_action_free close_receipt [12:43:08]json_value_free [12:43:08]json_value_free done [12:43:08]process_json_proto returns [12:43:08]Send response to host [12:43:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123576,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [12:43:08]free response buf [12:43:08]execute_script done [12:43:08]execute_script returns [12:43:08]free content buf [12:43:08]Sock 8.Close socket [12:43:08]Sock 8.Thread stoped [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:36]OFD Sender: No OFD packet to send [12:48:41]OFD Sender: No OFD packet to send [12:48:46]OFD Sender: No OFD packet to send [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:49:21]OFD Sender: No OFD packet to send [12:49:26]OFD Sender: No OFD packet to send [12:49:31]OFD Sender: No OFD packet to send [12:49:36]OFD Sender: No OFD packet to send [12:49:41]OFD Sender: No OFD packet to send [12:49:46]OFD Sender: No OFD packet to send [12:49:51]OFD Sender: No OFD packet to send [12:49:56]OFD Sender: No OFD packet to send [12:50:01]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:26]OFD Sender: No OFD packet to send [12:50:31]OFD Sender: No OFD packet to send [12:50:36]OFD Sender: No OFD packet to send [12:50:41]OFD Sender: No OFD packet to send [12:50:46]OFD Sender: No OFD packet to send [12:50:51]OFD Sender: No OFD packet to send [12:50:56]OFD Sender: No OFD packet to send [12:51:01]OFD Sender: No OFD packet to send [12:51:06]OFD Sender: No OFD packet to send [12:51:11]OFD Sender: No OFD packet to send [12:51:16]OFD Sender: No OFD packet to send [12:51:21]OFD Sender: No OFD packet to send [12:51:26]OFD Sender: No OFD packet to send [12:51:31]OFD Sender: No OFD packet to send [12:51:36]OFD Sender: No OFD packet to send [12:51:41]OFD Sender: No OFD packet to send [12:51:46]OFD Sender: No OFD packet to send [12:51:51]OFD Sender: No OFD packet to send [12:51:56]OFD Sender: No OFD packet to send [12:52:01]OFD Sender: No OFD packet to send [12:52:06]OFD Sender: No OFD packet to send [12:52:11]OFD Sender: No OFD packet to send [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:26]OFD Sender: No OFD packet to send [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:52]accept exits with 9 [12:56:52]New connection [12:56:52]New thread 3066862948 created [12:56:52]Thread 3066719588 joined [12:56:52]Waiting for new connection... [12:56:52] Sock 9.Parse request [12:56:52]Sock 9.Check first char [12:56:52]Sock 9.First char is OK [12:56:52]request: POST /json_proto HTTP/1.0 [12:56:52]Method: POST [12:56:52]URL: /json_proto [12:56:52]Method is POST - this is cgi request [12:56:52]url: /json_proto [12:56:52]query_string will be loaded in cgi processing [12:56:52]execute_cgi json_proto POST (null) [12:56:52]execute_cgi path=json_proto method=POST [12:56:52]POST find Content-Length [12:56:52]Host: 172.17.37.4:8080 [12:56:52]Content-Length: 682 [12:56:52]Content-Type: application/json [12:56:52] [12:56:52]POST finish read [12:56:52]Found Content-Length = 682 [12:56:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718415", "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" ] } } [12:56:52]execute_script... [12:56: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)718415", "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" ] } } [12:56:52]POST & json_proto [12:56:52]process_json_proto [12:56:52]json parsed OK: [12:56:52]protocol is kg_v1.0 [12:56:52]action value=close_receipt [12:56:52]process_action close_receipt [12:56:52]cmd_close_receipt [12:56:52]MH_GetDate [12:56:52]Write to MH i2c: F0 00 00 DC 2B F6 [12:56:52]Write i2c OK [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: F0 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: F0 09 00 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: F0 09 00 DC 2B 00 99 68 48 67 1D 3A 47 67 B4 [12:56:52]GetLastDocTimeStamp 1732797788 [12:56:52]current date 1732798617 [12:56:52]FM_GetShiftState [12:56:52]SAM_PROTO_GetShiftState [12:56:52]wFMCommunicate request_size=4 [12:56:52]MH_SAM_APDU [12:56:52]CAPDU: 80 13 01 00 [12:56:52]Write to MH i2c: E2 08 00 DD 2B 80 13 01 00 00 00 00 00 85 [12:56:52]Write i2c OK [12:56:52]MH_I2C_Read... [12:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:52]Read from MH i2c: E2 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 0E 00 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 0E 00 DD 2B 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 8C [12:56:52]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:56:52]wFMCommunicate OK [12:56:52]SAM_PROTO_GetShiftState done [12:56:52]FM_GetShiftState done [12:56:52]opened in 1732752282 [12:56:52]opened+sec_in_day 1732838682 [12:56:52]quantity*price = 100021 [12:56:52]sum+1 = 100023 [12:56:52]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 СНО: Общий режим Чек 89 28.11.2024 12:56 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123577 ФПД: 251902475330872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T125657&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123577&fm=251902475330872&tin=02508201610067®Number=0000000000092681&sum=100000 [12:56:54]StoreToDocumentArchive [12:56:54]shift 559 fd 123577 [12:56:54]save to /storage/0559/doc_00123577 [12:56:54]save last doc name /storage/0559/doc_00123577 to /storage/kkm_last_doc_name [12:56:54]save OK [12:56:54]Clear old archive folders... [12:56:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:54]tlvbuf is B6D92710 [12:56:54]SAM_PROTO_ClearQueue [12:56:54]wFMCommunicate request_size=4 [12:56:54]MH_SAM_APDU [12:56:54]CAPDU: 80 09 00 00 [12:56:54]Write to MH i2c: E2 08 00 EA 2B 80 09 00 00 00 00 00 00 87 [12:56:54]Write i2c OK [12:56:54]MH_I2C_Read... [12:56:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:54]Read from MH i2c: E2 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 03 00 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 03 00 EA 2B 00 90 00 89 [12:56:54]RAPDU: 90 00 [12:56:54]wFMCommunicate OK [12:56:54]SAM_PROTO_ClearQueue done [12:56:54]KKMCreateOFDPacket [12:56:54]OFDProtocolAddRootSTLVToBuf [12:56:54]FM_MakeSignedData [12:56:54]FM_MakeSignedData [12:56:54]SAM_PROTO_SignData [12:56:54]wFMCommunicate request_size=4 [12:56:54]MH_SAM_APDU [12:56:54]CAPDU: 80 0D 01 02 [12:56:54]Write to MH i2c: E2 08 00 EB 2B 80 0D 01 02 00 00 00 00 8F [12:56:54]Write i2c OK [12:56:54]MH_I2C_Read... [12:56:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:54]Read from MH i2c: E2 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 03 00 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 03 00 EB 2B 00 90 00 8A [12:56:54]RAPDU: 90 00 [12:56:54]wFMCommunicate OK [12:56:54]wFMCommunicate request_size=255 [12:56:54]MH_SAM_APDU [12:56: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 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 59 00 00 00 F4 03 04 00 99 68 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E5 [12:56:54]Write to MH i2c: E2 02 01 EC 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 59 00 00 00 F4 03 04 00 99 68 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E5 00 00 A1 [12:56:54]Write i2c OK [12:56:54]MH_I2C_Read... [12:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:54]Read from MH i2c: E2 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 03 00 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 03 00 EC 2B 00 90 00 8B [12:56:54]RAPDU: 90 00 [12:56:54]wFMCommunicate OK [12:56:54]wFMCommunicate request_size=10 [12:56:54]MH_SAM_APDU [12:56:54]CAPDU: 80 0D 02 02 05 1A 9D 8F 65 38 [12:56:54]Write to MH i2c: E2 0D 00 ED 2B 80 0D 02 02 05 00 1A 9D 8F 65 38 00 00 7F [12:56:54]Write i2c OK [12:56:54]MH_I2C_Read... [12:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:54]Read from MH i2c: E2 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 03 00 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 03 00 ED 2B 00 90 00 8C [12:56:54]RAPDU: 90 00 [12:56:54]wFMCommunicate OK [12:56:54]wFMCommunicate request_size=4 [12:56:54]MH_SAM_APDU [12:56:54]CAPDU: 80 0D 03 02 [12:56:54]Write to MH i2c: E2 08 00 EE 2B 80 0D 03 02 00 00 00 00 94 [12:56:54]Write i2c OK [12:56:54]MH_I2C_Read... [12:56:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:54]Read from MH i2c: E2 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 0B 00 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 0B 00 EE 2B 00 22 F3 C2 58 FD 98 B0 84 90 00 8D [12:56:54]RAPDU: 22 F3 C2 58 FD 98 B0 84 90 00 [12:56:54]wFMCommunicate OK [12:56:54]SAM_PROTO_SignData done [12:56:54]FM_MakeSignedData done [12:56:54]CreateOFDProtocolMessage [12:56:54]wFMCommunicate request_size=4 [12:56:54]MH_SAM_APDU [12:56:54]CAPDU: 80 11 00 00 [12:56:54]Write to MH i2c: E2 08 00 EF 2B 80 11 00 00 00 00 00 00 94 [12:56:54]Write i2c OK [12:56:54]MH_I2C_Read... [12:56:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:54]Read from MH i2c: E2 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 17 00 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 17 00 EF 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 EB [12:56: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:56:54]wFMCommunicate OK [12:56:54]CreateOFDProtocolMessage done [12:56:54]OFDSenderStorePacket 123577 [12:56:54]StoreOFDPacket docnum=123577 [12:56: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 51 6D 07 01 3B 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 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 59 00 00 00 F4 03 04 00 99 68 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E5 1A 9D 8F 65 38 22 F3 C2 58 FD 98 B0 84 [12:56:54]CheckFolder [12:56:54]dirname=/storage/ofd_packets [12:56:54]CheckFolder done [12:56:54]ProducePacketName [12:56:54]name=ofd_packets/00123577 [12:56:54]NVStorageSaveData ofd_packets/00123577 [12:56:54]File name is /storage/ofd_packets/00123577 [12:56:54]Write 301 bytes [12:56:54]NVStorageSaveData done [12:56:54]OFDSenderStorePacket done [12:56:54]KKMCreateOFDPacket done [12:56:54]NVStorageSaveData kkm_last_timestamp [12:56:54]File name is /storage/kkm_last_timestamp [12:56:54]Write 4 bytes [12:56:54]NVStorageSaveData done [12:56:54]ExternCall_PrintAddStr [12:56:54]wPrintStart [12:56:54]Write to MH i2c: 01 00 00 F0 2B 1B [12:56:54]Write i2c OK [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: 01 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: 01 07 00 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: 01 07 00 F0 2B 00 00 00 00 00 FF 0F 30 [12:56:54]RasterBufferAndPrint [12:56:54]line Счет N : (1)718415 [12:56:54]line ИНН: 02508201610067 [12:56:54]line Контрольно-Кассовый Чек [12:56:54]line ПРОДАЖА [12:56:54]line ТРК (МРК, ГНК) : 22 [12:56:54]line Товар: 2710124130 [12:56:54]line Аи-92-К-4 [12:56:54]line 14.840 * 67.40 [12:56:54]line = 1000.22 [12:56:54]line НДС 12% НСП 1% [12:56:54]line > о реализуемом товаре [12:56:54]line ОКРУГЛЕНИЕ: -0.22 [12:56:54]line ИТОГО: 1000.00 [12:56:54]line Внесено: 1000.00 [12:56:54]line СДАЧА: 0.00 [12:56:54]line НСП 1% : 8.85 [12:56:54]line НДС 12% : 106.22 [12:56:54]line Наличными: 1000.00 [12:56:54]line Безнал.: 0.00 [12:56:54]line Место: АЗС № 64 "Партнер Нефть" [12:56:54]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [12:56:54]line СНО: Общий режим [12:56:54]line Чек 89 28.11.2024 12:56 [12:56:54]line Смена: 559 ФФД: 1.0 [12:56:54]line ЗНМ: 0300000033 [12:56:54]line РНМ: 0000000000092681 [12:56:54]line Версия ККМ: 001 [12:56:54]line ФМ: 0000000000874881 [12:56:54]line ФД: 123577 [12:56:54]line ФПД: 251902475330872 [12:56:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T125657&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123577&fm=251902475330872&tin=02508201610067®Number=0000000000092681&sum=100000 [12:56:54]OFD Sender: Processing packet 123577 [packets to send 7, broken 6] [12:56:54]ProducePacketName [12:56:54]name=ofd_packets/00123577 [12:56:54]OFD Sender: To server: pG, [12:56:54]CommunicateWithHost lk.salyk.kg:30040 [12:56:54]ConnectInit lk.salyk.kg [12:56:54]written 0, free lines is 4095 [12:56:54]Connected sock=10 [12:56: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 51 6D 07 01 3B 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 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 59 00 00 00 F4 03 04 00 99 68 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 E5 1A 9D 8F 65 38 22 F3 C2 58 FD 98 B0 84 [12:56: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 E7 BE 47 00 FF 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 B9 E2 01 00 F4 03 04 00 5F 14 48 67 B6 04 01 00 00 E4 79 28 86 17 B1 AF 98 [12:56:55]CommunicateWithHost err = 0 [12:56:55]CheckOFDResponse [12:56:55]1017 (14) - 77093643461234 [12:56:55]1041 (16) - 0000000000874881 [12:56:55]1040 (4) - 123577 [12:56:55]1012 (4) - 28.11.2024 06:57 [12:56:55]1206 (1) - 0 [12:56:55]OFD Sender: Remove packet 123577 [12:56:55]ProducePacketName [12:56:55]name=ofd_packets/00123577 [12:56:55]NVStorageDeleteData [12:56:55]Write to MH i2c: 01 00 00 1B 2C 47 [12:56:55]Write i2c OK [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: 01 [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: 01 07 00 [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: 01 07 00 1B 2C 00 00 00 00 00 40 0C 9A [12:56:55]RasterBufferAndPrint [12:56:55]line [12:56:55]line [12:56:55]line [12:56:55]line [12:56:55]line [12:56:55]written 0, free lines is 3142 [12:56:55]MH_Cut [12:56:55]Write to MH i2c: D1 01 00 22 2C 01 20 [12:56:55]Write i2c OK [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: D1 [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: D1 01 00 [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: D1 01 00 22 2C 00 1F [12:56:55]Write to MH i2c: 01 00 00 23 2C 4F [12:56:55]Write i2c OK [12:56:55]MH_I2C_Read... [12:56:55]OFD Sender: No OFD packet to send [12:56:56]*** Cut start [12:56:56]*** Partial cut [12:56:56]*** CUTSNS_PIN = 1 [12:56:56]*** CUTSNS_PIN = 0 [12:56:57]*** Brake cut motor [12:56:57]Read from MH i2c: 01 [12:56:57]MH_I2C_Read... [12:56:57]*** Stop cut motor [12:56:57]*** Cut end [12:56:57]Read from MH i2c: 01 07 00 [12:56:57]MH_I2C_Read... [12:56:57]Read from MH i2c: 01 07 00 23 2C 00 00 00 00 00 FF 0F 64 [12:56:57]process_action close_receipt done [12:56:57]requested_data is exist [12:56:57]produce_requested_data [12:56:57]requested_item fm.sn is exist - process it [12:56:57]wFMCommunicate request_size=4 [12:56:57]MH_SAM_APDU [12:56:57]CAPDU: 80 11 00 00 [12:56:57]Write to MH i2c: E2 08 00 24 2C 80 11 00 00 00 00 00 00 CA [12:56:57]Write i2c OK [12:56:57]MH_I2C_Read... [12:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:57]Read from MH i2c: E2 [12:56:57]MH_I2C_Read... [12:56:57]Read from MH i2c: E2 17 00 [12:56:57]MH_I2C_Read... [12:56:57]Read from MH i2c: E2 17 00 24 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 21 [12:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [12:56:57]wFMCommunicate OK [12:56:57]requested_item fd.num is exist - process it [12:56:57]SAM_PROTO_GetFieldsCounters [12:56:57]wFMCommunicate request_size=4 [12:56:57]MH_SAM_APDU [12:56:57]CAPDU: 80 13 00 00 [12:56:57]Write to MH i2c: E2 08 00 25 2C 80 13 00 00 00 00 00 00 CD [12:56:57]Write i2c OK [12:56:57]MH_I2C_Read... [12:56:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:57]Read from MH i2c: E2 [12:56:57]MH_I2C_Read... [12:56:57]Read from MH i2c: E2 62 00 [12:56:57]MH_I2C_Read... [12:56:57]Read from MH i2c: E2 62 00 25 2C 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 E2 01 00 0E 04 04 00 2F 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 CB [12:56: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 B9 E2 01 00 0E 04 04 00 2F 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 [12:56:57]wFMCommunicate OK [12:56:57]SAM_PROTO_GetFieldsCounters done [12:56:57]requested_item shift.num is exist - process it [12:56:57]requested_item shift.opened is exist - process it [12:56:57]req_shift_opened [12:56:57]FM_GetShiftState [12:56:57]SAM_PROTO_GetShiftState [12:56:57]wFMCommunicate request_size=4 [12:56:57]MH_SAM_APDU [12:56:57]CAPDU: 80 13 01 00 [12:56:57]Write to MH i2c: E2 08 00 26 2C 80 13 01 00 00 00 00 00 CF [12:56:57]Write i2c OK [12:56:57]MH_I2C_Read... [12:56:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:57]Read from MH i2c: E2 [12:56:57]MH_I2C_Read... [12:56:57]Read from MH i2c: E2 0E 00 [12:56:57]MH_I2C_Read... [12:56:57]Read from MH i2c: E2 0E 00 26 2C 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 D6 [12:56:57]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [12:56:57]wFMCommunicate OK [12:56:57]SAM_PROTO_GetShiftState done [12:56:57]FM_GetShiftState done [12:56:57]req_shift_opened done [12:56:57]requested_item shift.open_date is exist - process it [12:56:57]req_shift_open_date [12:56:57]req_shift_open_date done [12:56:57]produce_requested_data done [12:56:57]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123577,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [12:56:57]process_action_free close_receipt [12:56:57]json_value_free [12:56:57]json_value_free done [12:56:57]process_json_proto returns [12:56:57]Send response to host [12:56:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123577,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [12:56:57]free response buf [12:56:57]execute_script done [12:56:57]execute_script returns [12:56:57]free content buf [12:56:57]Sock 9.Close socket [12:56:57]Sock 9.Thread stoped [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:01]accept exits with 8 [13:03:01]New connection [13:03:01]New thread 3066719588 created [13:03:01]Thread 3066862948 joined [13:03:01]Waiting for new connection... [13:03:01] Sock 8.Parse request [13:03:01]Sock 8.Check first char [13:03:01]Sock 8.First char is OK [13:03:01]request: POST /json_proto HTTP/1.0 [13:03:01]Method: POST [13:03:01]URL: /json_proto [13:03:01]Method is POST - this is cgi request [13:03:01]url: /json_proto [13:03:01]query_string will be loaded in cgi processing [13:03:01]execute_cgi json_proto POST (null) [13:03:01]execute_cgi path=json_proto method=POST [13:03:01]POST find Content-Length [13:03:01]Host: 172.17.37.4:8080 [13:03:01]Content-Length: 686 [13:03:01]Content-Type: application/json [13:03:01] [13:03:01]POST finish read [13:03:01]Found Content-Length = 686 [13:03:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718416", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:01]execute_script... [13:03:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718416", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:01]POST & json_proto [13:03:01]process_json_proto [13:03:01]json parsed OK: [13:03:01]protocol is kg_v1.0 [13:03:01]action value=close_receipt [13:03:01]process_action close_receipt [13:03:01]cmd_close_receipt [13:03:01]MH_GetDate [13:03:01]Write to MH i2c: F0 00 00 27 2C 42 [13:03:01]Write i2c OK [13:03:01]MH_I2C_Read... [13:03:01]Read from MH i2c: F0 [13:03:01]MH_I2C_Read... [13:03:01]Read from MH i2c: F0 09 00 [13:03:01]MH_I2C_Read... [13:03:01]Read from MH i2c: F0 09 00 27 2C 00 0A 6A 48 67 1D 3A 47 67 73 [13:03:01]GetLastDocTimeStamp 1732798617 [13:03:01]current date 1732798986 [13:03:01]FM_GetShiftState [13:03:01]SAM_PROTO_GetShiftState [13:03:01]wFMCommunicate request_size=4 [13:03:01]MH_SAM_APDU [13:03:01]CAPDU: 80 13 01 00 [13:03:01]Write to MH i2c: E2 08 00 28 2C 80 13 01 00 00 00 00 00 D1 [13:03:01]Write i2c OK [13:03:01]MH_I2C_Read... [13:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:01]Read from MH i2c: E2 [13:03:01]MH_I2C_Read... [13:03:01]Read from MH i2c: E2 0E 00 [13:03:01]MH_I2C_Read... [13:03:01]Read from MH i2c: E2 0E 00 28 2C 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 D8 [13:03:01]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [13:03:01]wFMCommunicate OK [13:03:01]SAM_PROTO_GetShiftState done [13:03:01]FM_GetShiftState done [13:03:01]opened in 1732752282 [13:03:01]opened+sec_in_day 1732838682 [13:03:01]quantity*price = 150024 [13:03:01]sum+1 = 150026 [13:03:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 90 28.11.2024 13:03 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123578 ФПД: 23377161285189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T130306&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123578&fm=23377161285189&tin=02508201610067®Number=0000000000092681&sum=150000 [13:03:02]StoreToDocumentArchive [13:03:02]shift 559 fd 123578 [13:03:02]save to /storage/0559/doc_00123578 [13:03:02]save last doc name /storage/0559/doc_00123578 to /storage/kkm_last_doc_name [13:03:02]save OK [13:03:02]Clear old archive folders... [13:03:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:03:02]tlvbuf is 015501B0 [13:03:02]SAM_PROTO_ClearQueue [13:03:02]wFMCommunicate request_size=4 [13:03:02]MH_SAM_APDU [13:03:02]CAPDU: 80 09 00 00 [13:03:02]Write to MH i2c: E2 08 00 35 2C 80 09 00 00 00 00 00 00 D3 [13:03:02]Write i2c OK [13:03:02]MH_I2C_Read... [13:03:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:02]Read from MH i2c: E2 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 03 00 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 03 00 35 2C 00 90 00 D5 [13:03:02]RAPDU: 90 00 [13:03:02]wFMCommunicate OK [13:03:02]SAM_PROTO_ClearQueue done [13:03:02]KKMCreateOFDPacket [13:03:02]OFDProtocolAddRootSTLVToBuf [13:03:02]FM_MakeSignedData [13:03:02]FM_MakeSignedData [13:03:02]SAM_PROTO_SignData [13:03:02]wFMCommunicate request_size=4 [13:03:02]MH_SAM_APDU [13:03:02]CAPDU: 80 0D 01 02 [13:03:02]Write to MH i2c: E2 08 00 36 2C 80 0D 01 02 00 00 00 00 DB [13:03:02]Write i2c OK [13:03:02]MH_I2C_Read... [13:03:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:02]Read from MH i2c: E2 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 03 00 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 03 00 36 2C 00 90 00 D6 [13:03:02]RAPDU: 90 00 [13:03:02]wFMCommunicate OK [13:03:02]wFMCommunicate request_size=255 [13:03:02]MH_SAM_APDU [13:03: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 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0A 6A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 [13:03:02]Write to MH i2c: E2 02 01 37 2C 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0A 6A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 00 00 D5 [13:03:02]Write i2c OK [13:03:02]MH_I2C_Read... [13:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:02]Read from MH i2c: E2 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 03 00 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 03 00 37 2C 00 90 00 D7 [13:03:02]RAPDU: 90 00 [13:03:02]wFMCommunicate OK [13:03:02]wFMCommunicate request_size=11 [13:03:02]MH_SAM_APDU [13:03:02]CAPDU: 80 0D 02 02 06 15 42 EB 64 EE 45 [13:03:02]Write to MH i2c: E2 0E 00 38 2C 80 0D 02 02 06 00 15 42 EB 64 EE 45 00 00 C3 [13:03:02]Write i2c OK [13:03:02]MH_I2C_Read... [13:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:02]Read from MH i2c: E2 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 03 00 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 03 00 38 2C 00 90 00 D8 [13:03:02]RAPDU: 90 00 [13:03:02]wFMCommunicate OK [13:03:02]wFMCommunicate request_size=4 [13:03:02]MH_SAM_APDU [13:03:02]CAPDU: 80 0D 03 02 [13:03:02]Write to MH i2c: E2 08 00 39 2C 80 0D 03 02 00 00 00 00 E0 [13:03:02]Write i2c OK [13:03:02]MH_I2C_Read... [13:03:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:03]Read from MH i2c: E2 [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: E2 0B 00 [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: E2 0B 00 39 2C 00 71 84 7E 37 78 42 15 8F 90 00 E9 [13:03:03]RAPDU: 71 84 7E 37 78 42 15 8F 90 00 [13:03:03]wFMCommunicate OK [13:03:03]SAM_PROTO_SignData done [13:03:03]FM_MakeSignedData done [13:03:03]CreateOFDProtocolMessage [13:03:03]wFMCommunicate request_size=4 [13:03:03]MH_SAM_APDU [13:03:03]CAPDU: 80 11 00 00 [13:03:03]Write to MH i2c: E2 08 00 3A 2C 80 11 00 00 00 00 00 00 E0 [13:03:03]Write i2c OK [13:03:03]MH_I2C_Read... [13:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:03]Read from MH i2c: E2 [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: E2 17 00 [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: E2 17 00 3A 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 37 [13:03: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:03:03]wFMCommunicate OK [13:03:03]CreateOFDProtocolMessage done [13:03:03]OFDSenderStorePacket 123578 [13:03:03]StoreOFDPacket docnum=123578 [13:03: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 5D C3 08 01 01 D4 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0A 6A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 15 42 EB 64 EE 45 71 84 7E 37 78 42 15 8F [13:03:03]CheckFolder [13:03:03]dirname=/storage/ofd_packets [13:03:03]CheckFolder done [13:03:03]ProducePacketName [13:03:03]name=ofd_packets/00123578 [13:03:03]NVStorageSaveData ofd_packets/00123578 [13:03:03]File name is /storage/ofd_packets/00123578 [13:03:03]Write 302 bytes [13:03:03]NVStorageSaveData done [13:03:03]OFDSenderStorePacket done [13:03:03]KKMCreateOFDPacket done [13:03:03]NVStorageSaveData kkm_last_timestamp [13:03:03]File name is /storage/kkm_last_timestamp [13:03:03]Write 4 bytes [13:03:03]NVStorageSaveData done [13:03:03]ExternCall_PrintAddStr [13:03:03]wPrintStart [13:03:03]Write to MH i2c: 01 00 00 3B 2C 67 [13:03:03]Write i2c OK [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: 01 [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: 01 07 00 [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: 01 07 00 3B 2C 00 00 00 00 00 FF 0F 7C [13:03:03]RasterBufferAndPrint [13:03:03]line Счет N : (1)718416 [13:03:03]line ИНН: 02508201610067 [13:03:03]line Контрольно-Кассовый Чек [13:03:03]line ПРОДАЖА [13:03:03]line ТРК (МРК, ГНК) : 5 [13:03:03]line Товар: 2710194210 [13:03:03]line ДТ(л)-К-5 [13:03:03]line 20.030 * 74.90 [13:03:03]line = 1500.25 [13:03:03]line НДС 12% НСП 1% [13:03:03]line > о реализуемом товаре [13:03:03]line ОКРУГЛЕНИЕ: -0.25 [13:03:03]line ИТОГО: 1500.00 [13:03:03]line Внесено: 1500.00 [13:03:03]line СДАЧА: 0.00 [13:03:03]line НСП 1% : 13.28 [13:03:03]line НДС 12% : 159.32 [13:03:03]line Наличными: 1500.00 [13:03:03]line Безнал.: 0.00 [13:03:03]line Место: АЗС № 64 "Партнер Нефть" [13:03:03]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:03:03]line СНО: Общий режим [13:03:03]line Чек 90 28.11.2024 13:03 [13:03:03]line Смена: 559 ФФД: 1.0 [13:03:03]line ЗНМ: 0300000033 [13:03:03]line РНМ: 0000000000092681 [13:03:03]line Версия ККМ: 001 [13:03:03]line ФМ: 0000000000874881 [13:03:03]line ФД: 123578 [13:03:03]line ФПД: 23377161285189 [13:03:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T130306&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123578&fm=23377161285189&tin=02508201610067®Number=0000000000092681&sum=150000 [13:03:03]OFD Sender: Processing packet 123578 [packets to send 7, broken 6] [13:03:03]ProducePacketName [13:03:03]name=ofd_packets/00123578 [13:03:03]OFD Sender: To server: pG, [13:03:03]CommunicateWithHost lk.salyk.kg:30040 [13:03:03]ConnectInit lk.salyk.kg [13:03:03]written 0, free lines is 4095 [13:03:03]Connected sock=10 [13:03:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 01 00 00 5D C3 08 01 01 D4 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0A 6A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 15 42 EB 64 EE 45 71 84 7E 37 78 42 15 8F [13:03: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 DE 9F 47 00 A2 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BA E2 01 00 F4 03 04 00 D0 15 48 67 B6 04 01 00 00 3E 0F 9C EB 29 00 5A 1D [13:03:03]CommunicateWithHost err = 0 [13:03:03]CheckOFDResponse [13:03:03]1017 (14) - 77093643461234 [13:03:03]1041 (16) - 0000000000874881 [13:03:03]1040 (4) - 123578 [13:03:03]1012 (4) - 28.11.2024 07:03 [13:03:03]1206 (1) - 0 [13:03:03]OFD Sender: Remove packet 123578 [13:03:03]ProducePacketName [13:03:03]name=ofd_packets/00123578 [13:03:03]NVStorageDeleteData [13:03:03]Write to MH i2c: 01 00 00 66 2C 92 [13:03:03]Write i2c OK [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: 01 [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: 01 07 00 [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: 01 07 00 66 2C 00 00 00 00 00 42 0C E7 [13:03:03]RasterBufferAndPrint [13:03:03]line [13:03:03]line [13:03:03]line [13:03:03]line [13:03:03]line [13:03:03]written 0, free lines is 3144 [13:03:03]MH_Cut [13:03:03]Write to MH i2c: D1 01 00 6D 2C 01 6B [13:03:03]Write i2c OK [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: D1 [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: D1 01 00 [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: D1 01 00 6D 2C 00 6A [13:03:03]Write to MH i2c: 01 00 00 6E 2C 9A [13:03:03]Write i2c OK [13:03:03]MH_I2C_Read... [13:03:04]OFD Sender: No OFD packet to send [13:03:05]*** Cut start [13:03:05]*** Partial cut [13:03:05]*** CUTSNS_PIN = 1 [13:03:05]*** CUTSNS_PIN = 0 [13:03:05]*** Brake cut motor [13:03:05]Read from MH i2c: 01 [13:03:05]MH_I2C_Read... [13:03:05]*** Stop cut motor [13:03:05]*** Cut end [13:03:05]Read from MH i2c: 01 07 00 [13:03:05]MH_I2C_Read... [13:03:05]Read from MH i2c: 01 07 00 6E 2C 00 00 00 00 00 FF 0F AF [13:03:05]process_action close_receipt done [13:03:05]requested_data is exist [13:03:05]produce_requested_data [13:03:05]requested_item fm.sn is exist - process it [13:03:05]wFMCommunicate request_size=4 [13:03:05]MH_SAM_APDU [13:03:05]CAPDU: 80 11 00 00 [13:03:05]Write to MH i2c: E2 08 00 6F 2C 80 11 00 00 00 00 00 00 15 [13:03:05]Write i2c OK [13:03:05]MH_I2C_Read... [13:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:05]Read from MH i2c: E2 [13:03:05]MH_I2C_Read... [13:03:05]Read from MH i2c: E2 17 00 [13:03:05]MH_I2C_Read... [13:03:05]Read from MH i2c: E2 17 00 6F 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6C [13:03: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:03:05]wFMCommunicate OK [13:03:05]requested_item fd.num is exist - process it [13:03:05]SAM_PROTO_GetFieldsCounters [13:03:05]wFMCommunicate request_size=4 [13:03:05]MH_SAM_APDU [13:03:05]CAPDU: 80 13 00 00 [13:03:05]Write to MH i2c: E2 08 00 70 2C 80 13 00 00 00 00 00 00 18 [13:03:05]Write i2c OK [13:03:05]MH_I2C_Read... [13:03:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:06]Read from MH i2c: E2 [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: E2 62 00 [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: E2 62 00 70 2C 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 E2 01 00 0E 04 04 00 2F 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 1A [13:03: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 BA E2 01 00 0E 04 04 00 2F 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 [13:03:06]wFMCommunicate OK [13:03:06]SAM_PROTO_GetFieldsCounters done [13:03:06]requested_item shift.num is exist - process it [13:03:06]requested_item shift.opened is exist - process it [13:03:06]req_shift_opened [13:03:06]FM_GetShiftState [13:03:06]SAM_PROTO_GetShiftState [13:03:06]wFMCommunicate request_size=4 [13:03:06]MH_SAM_APDU [13:03:06]CAPDU: 80 13 01 00 [13:03:06]Write to MH i2c: E2 08 00 71 2C 80 13 01 00 00 00 00 00 1A [13:03:06]Write i2c OK [13:03:06]MH_I2C_Read... [13:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:06]Read from MH i2c: E2 [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: E2 0E 00 [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: E2 0E 00 71 2C 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 21 [13:03:06]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [13:03:06]wFMCommunicate OK [13:03:06]SAM_PROTO_GetShiftState done [13:03:06]FM_GetShiftState done [13:03:06]req_shift_opened done [13:03:06]requested_item shift.open_date is exist - process it [13:03:06]req_shift_open_date [13:03:06]req_shift_open_date done [13:03:06]produce_requested_data done [13:03:06]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123578,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [13:03:06]process_action_free close_receipt [13:03:06]json_value_free [13:03:06]json_value_free done [13:03:06]process_json_proto returns [13:03:06]Send response to host [13:03:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123578,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [13:03:06]free response buf [13:03:06]execute_script done [13:03:06]execute_script returns [13:03:06]free content buf [13:03:06]Sock 8.Close socket [13:03:06]Sock 8.Thread stoped [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:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]OFD Sender: No OFD packet to send [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:34]accept exits with 9 [13:10:34]New connection [13:10:34]New thread 3066862948 created [13:10:34]Thread 3066719588 joined [13:10:34]Waiting for new connection... [13:10:34] Sock 9.Parse request [13:10:34]Sock 9.Check first char [13:10:34]Sock 9.First char is OK [13:10:34]request: POST /json_proto HTTP/1.0 [13:10:34]Method: POST [13:10:34]URL: /json_proto [13:10:34]Method is POST - this is cgi request [13:10:34]url: /json_proto [13:10:34]query_string will be loaded in cgi processing [13:10:34]execute_cgi json_proto POST (null) [13:10:34]execute_cgi path=json_proto method=POST [13:10:34]POST find Content-Length [13:10:34]Host: 172.17.37.4:8080 [13:10:34]Content-Length: 819 [13:10:34]Content-Type: application/json [13:10:34] [13:10:34]POST finish read [13:10:34]Found Content-Length = 819 [13:10:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718417", "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" : 40.000, "sum" : 2696.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" : 2696.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:34]execute_script... [13:10: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)718417", "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" : 40.000, "sum" : 2696.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" : 2696.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:34]POST & json_proto [13:10:34]process_json_proto [13:10:34]json parsed OK: [13:10:34]protocol is kg_v1.0 [13:10:34]action value=close_receipt [13:10:34]process_action close_receipt [13:10:34]cmd_close_receipt [13:10:34]MH_GetDate [13:10:34]Write to MH i2c: F0 00 00 72 2C 8D [13:10:34]Write i2c OK [13:10:34]MH_I2C_Read... [13:10:34]Read from MH i2c: F0 [13:10:34]MH_I2C_Read... [13:10:34]Read from MH i2c: F0 09 00 [13:10:34]MH_I2C_Read... [13:10:34]Read from MH i2c: F0 09 00 72 2C 00 CF 6B 48 67 1D 3A 47 67 84 [13:10:34]GetLastDocTimeStamp 1732798986 [13:10:34]current date 1732799439 [13:10:34]FM_GetShiftState [13:10:34]SAM_PROTO_GetShiftState [13:10:34]wFMCommunicate request_size=4 [13:10:34]MH_SAM_APDU [13:10:34]CAPDU: 80 13 01 00 [13:10:34]Write to MH i2c: E2 08 00 73 2C 80 13 01 00 00 00 00 00 1C [13:10:34]Write i2c OK [13:10:34]MH_I2C_Read... [13:10:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:34]Read from MH i2c: E2 [13:10:34]MH_I2C_Read... [13:10:34]Read from MH i2c: E2 0E 00 [13:10:34]MH_I2C_Read... [13:10:34]Read from MH i2c: E2 0E 00 73 2C 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 23 [13:10:34]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [13:10:34]wFMCommunicate OK [13:10:34]SAM_PROTO_GetShiftState done [13:10:34]FM_GetShiftState done [13:10:34]opened in 1732752282 [13:10:34]opened+sec_in_day 1732838682 [13:10:34]quantity*price = 269600 [13:10:34]sum+1 = 269601 [13:10:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2696.00 НСП 1% : 23.86 НДС 12% : 286.30 Наличными: 0.00 Безнал.: 2696.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 91 28.11.2024 13:10 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123579 ФПД: 10389292953902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T131039&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123579&fm=10389292953902&tin=02508201610067®Number=0000000000092681&sum=269600 [13:10:35]StoreToDocumentArchive [13:10:35]shift 559 fd 123579 [13:10:35]save to /storage/0559/doc_00123579 [13:10:35]save last doc name /storage/0559/doc_00123579 to /storage/kkm_last_doc_name [13:10:35]save OK [13:10:35]Clear old archive folders... [13:10:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:35]tlvbuf is 0153A800 [13:10:35]SAM_PROTO_ClearQueue [13:10:35]wFMCommunicate request_size=4 [13:10:35]MH_SAM_APDU [13:10:35]CAPDU: 80 09 00 00 [13:10:35]Write to MH i2c: E2 08 00 80 2C 80 09 00 00 00 00 00 00 1E [13:10:35]Write i2c OK [13:10:35]MH_I2C_Read... [13:10:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:35]Read from MH i2c: E2 [13:10:35]MH_I2C_Read... [13:10:35]Read from MH i2c: E2 03 00 [13:10:35]MH_I2C_Read... [13:10:35]Read from MH i2c: E2 03 00 80 2C 00 90 00 20 [13:10:35]RAPDU: 90 00 [13:10:35]wFMCommunicate OK [13:10:35]SAM_PROTO_ClearQueue done [13:10:35]KKMCreateOFDPacket [13:10:35]OFDProtocolAddRootSTLVToBuf [13:10:35]FM_MakeSignedData [13:10:35]FM_MakeSignedData [13:10:35]SAM_PROTO_SignData [13:10:35]wFMCommunicate request_size=4 [13:10:35]MH_SAM_APDU [13:10:35]CAPDU: 80 0D 01 02 [13:10:35]Write to MH i2c: E2 08 00 81 2C 80 0D 01 02 00 00 00 00 26 [13:10:35]Write i2c OK [13:10:35]MH_I2C_Read... [13:10:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:35]Read from MH i2c: E2 [13:10:35]MH_I2C_Read... [13:10:35]Read from MH i2c: E2 03 00 [13:10:35]MH_I2C_Read... [13:10:35]Read from MH i2c: E2 03 00 81 2C 00 90 00 21 [13:10:35]RAPDU: 90 00 [13:10:35]wFMCommunicate OK [13:10:35]wFMCommunicate request_size=255 [13:10:35]MH_SAM_APDU [13:10: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 40 9C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 20 1D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 6F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 1D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 CF 6B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 09 [13:10:36]Write to MH i2c: E2 02 01 82 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 20 1D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 6F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 1D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 CF 6B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 09 00 00 FD [13:10:36]Write i2c OK [13:10:36]MH_I2C_Read... [13:10:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:36]Read from MH i2c: E2 [13:10:36]MH_I2C_Read... [13:10:36]Read from MH i2c: E2 03 00 [13:10:36]MH_I2C_Read... [13:10:36]Read from MH i2c: E2 03 00 82 2C 00 90 00 22 [13:10:36]RAPDU: 90 00 [13:10:36]wFMCommunicate OK [13:10:36]wFMCommunicate request_size=10 [13:10:36]MH_SAM_APDU [13:10:36]CAPDU: 80 0D 02 02 05 72 F2 1D B1 2E [13:10:36]Write to MH i2c: E2 0D 00 83 2C 80 0D 02 02 05 00 72 F2 1D B1 2E 00 00 93 [13:10:36]Write i2c OK [13:10:36]MH_I2C_Read... [13:10:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:36]Read from MH i2c: E2 [13:10:36]MH_I2C_Read... [13:10:36]Read from MH i2c: E2 03 00 [13:10:36]MH_I2C_Read... [13:10:36]Read from MH i2c: E2 03 00 83 2C 00 90 00 23 [13:10:36]RAPDU: 90 00 [13:10:36]wFMCommunicate OK [13:10:36]wFMCommunicate request_size=4 [13:10:36]MH_SAM_APDU [13:10:36]CAPDU: 80 0D 03 02 [13:10:36]Write to MH i2c: E2 08 00 84 2C 80 0D 03 02 00 00 00 00 2B [13:10:36]Write i2c OK [13:10:36]MH_I2C_Read... [13:10:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:36]Read from MH i2c: E2 [13:10:36]MH_I2C_Read... [13:10:36]Read from MH i2c: E2 0B 00 [13:10:36]MH_I2C_Read... [13:10:36]Read from MH i2c: E2 0B 00 84 2C 00 7D 84 CA AA 4E E5 CA F3 90 00 91 [13:10:36]RAPDU: 7D 84 CA AA 4E E5 CA F3 90 00 [13:10:36]wFMCommunicate OK [13:10:36]SAM_PROTO_SignData done [13:10:36]FM_MakeSignedData done [13:10:36]CreateOFDProtocolMessage [13:10:36]wFMCommunicate request_size=4 [13:10:36]MH_SAM_APDU [13:10:36]CAPDU: 80 11 00 00 [13:10:36]Write to MH i2c: E2 08 00 85 2C 80 11 00 00 00 00 00 00 2B [13:10:36]Write i2c OK [13:10:36]MH_I2C_Read... [13:10:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:36]Read from MH i2c: E2 [13:10:36]MH_I2C_Read... [13:10:36]Read from MH i2c: E2 17 00 [13:10:36]MH_I2C_Read... [13:10:36]Read from MH i2c: E2 17 00 85 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 82 [13:10: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:10:36]wFMCommunicate OK [13:10:36]CreateOFDProtocolMessage done [13:10:36]OFDSenderStorePacket 123579 [13:10:36]StoreOFDPacket docnum=123579 [13:10: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 41 8B 07 01 AB 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 40 9C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 20 1D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 6F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 1D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 CF 6B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 09 72 F2 1D B1 2E 7D 84 CA AA 4E E5 CA F3 [13:10:36]CheckFolder [13:10:36]dirname=/storage/ofd_packets [13:10:36]CheckFolder done [13:10:36]ProducePacketName [13:10:36]name=ofd_packets/00123579 [13:10:36]NVStorageSaveData ofd_packets/00123579 [13:10:36]File name is /storage/ofd_packets/00123579 [13:10:36]Write 301 bytes [13:10:36]NVStorageSaveData done [13:10:36]OFDSenderStorePacket done [13:10:36]KKMCreateOFDPacket done [13:10:36]NVStorageSaveData kkm_last_timestamp [13:10:36]File name is /storage/kkm_last_timestamp [13:10:36]Write 4 bytes [13:10:36]NVStorageSaveData done [13:10:36]ExternCall_PrintAddStr [13:10:36]wPrintStart [13:10:36]Write to MH i2c: 01 00 00 86 2C B2 [13:10:36]Write i2c OK [13:10:36]MH_I2C_Read... [13:10:36]Read from MH i2c: 01 [13:10:36]MH_I2C_Read... [13:10:36]Read from MH i2c: 01 07 00 [13:10:36]MH_I2C_Read... [13:10:36]Read from MH i2c: 01 07 00 86 2C 00 00 00 00 00 FF 0F C7 [13:10:36]RasterBufferAndPrint [13:10:36]line Счет N : (1)718417 [13:10:36]line ИНН: 02508201610067 [13:10:36]line Контрольно-Кассовый Чек [13:10:36]line ПРОДАЖА [13:10:36]line ТРК (МРК, ГНК) : 22 [13:10:36]line Товар: 2710124130 [13:10:36]line Аи-92-К-4 [13:10:36]line 40.000 * 67.40 [13:10:36]line = 2696.00 [13:10:36]line НДС 12% НСП 1% [13:10:36]line > о реализуемом товаре [13:10:36]line ИТОГО: 2696.00 [13:10:36]line НСП 1% : 23.86 [13:10:36]line НДС 12% : 286.30 [13:10:36]line Наличными: 0.00 [13:10:36]line Безнал.: 2696.00 [13:10:36]line Место: АЗС № 64 "Партнер Нефть" [13:10:36]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:10:36]line СНО: Общий режим [13:10:36]line Чек 91 28.11.2024 13:10 [13:10:36]line Смена: 559 ФФД: 1.0 [13:10:36]line ЗНМ: 0300000033 [13:10:36]line РНМ: 0000000000092681 [13:10:36]line Версия ККМ: 001 [13:10:36]line Платежная система: Бакай Банк [13:10:36]line ФМ: 0000000000874881 [13:10:36]line ФД: 123579 [13:10:36]line ФПД: 10389292953902 [13:10:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T131039&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123579&fm=10389292953902&tin=02508201610067®Number=0000000000092681&sum=269600 [13:10:36]written 0, free lines is 4095 [13:10:36]OFD Sender: Processing packet 123579 [packets to send 7, broken 6] [13:10:36]ProducePacketName [13:10:36]name=ofd_packets/00123579 [13:10:36]OFD Sender: To server: pG, [13:10:36]CommunicateWithHost lk.salyk.kg:30040 [13:10:36]ConnectInit lk.salyk.kg [13:10:36]Connected sock=10 [13:10: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 41 8B 07 01 AB 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 40 9C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 20 1D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 6F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 1D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 CF 6B 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 09 72 F2 1D B1 2E 7D 84 CA AA 4E E5 CA F3 [13:10: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 26 47 00 96 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 E2 01 00 F4 03 04 00 95 17 48 67 B6 04 01 00 00 F7 64 EF 07 BA 5A F9 C0 [13:10:37]CommunicateWithHost err = 0 [13:10:37]CheckOFDResponse [13:10:37]1017 (14) - 77093643461234 [13:10:37]1041 (16) - 0000000000874881 [13:10:37]1040 (4) - 123579 [13:10:37]1012 (4) - 28.11.2024 07:11 [13:10:37]1206 (1) - 0 [13:10:37]OFD Sender: Remove packet 123579 [13:10:37]ProducePacketName [13:10:37]name=ofd_packets/00123579 [13:10:37]NVStorageDeleteData [13:10:37]Write to MH i2c: 01 00 00 B0 2C DC [13:10:37]Write i2c OK [13:10:37]MH_I2C_Read... [13:10:37]Read from MH i2c: 01 [13:10:37]MH_I2C_Read... [13:10:37]Read from MH i2c: 01 07 00 [13:10:37]MH_I2C_Read... [13:10:37]Read from MH i2c: 01 07 00 B0 2C 00 00 00 00 00 5E 0C 4D [13:10:37]RasterBufferAndPrint [13:10:37]line [13:10:37]line [13:10:37]line [13:10:37]line [13:10:37]line [13:10:37]written 0, free lines is 3172 [13:10:37]MH_Cut [13:10:37]Write to MH i2c: D1 01 00 B7 2C 01 B5 [13:10:37]Write i2c OK [13:10:37]MH_I2C_Read... [13:10:37]Read from MH i2c: D1 [13:10:37]MH_I2C_Read... [13:10:37]Read from MH i2c: D1 01 00 [13:10:37]MH_I2C_Read... [13:10:37]Read from MH i2c: D1 01 00 B7 2C 00 B4 [13:10:37]Write to MH i2c: 01 00 00 B8 2C E4 [13:10:37]Write i2c OK [13:10:37]MH_I2C_Read... [13:10:37]OFD Sender: No OFD packet to send [13:10:38]*** Cut start [13:10:38]*** Partial cut [13:10:38]*** CUTSNS_PIN = 1 [13:10:38]*** CUTSNS_PIN = 0 [13:10:38]*** Brake cut motor [13:10:39]Read from MH i2c: 01 [13:10:39]MH_I2C_Read... [13:10:39]*** Stop cut motor [13:10:39]*** Cut end [13:10:39]Read from MH i2c: 01 07 00 [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: 01 07 00 B8 2C 00 00 00 00 00 FF 0F F9 [13:10:39]process_action close_receipt done [13:10:39]requested_data is exist [13:10:39]produce_requested_data [13:10:39]requested_item fm.sn is exist - process it [13:10:39]wFMCommunicate request_size=4 [13:10:39]MH_SAM_APDU [13:10:39]CAPDU: 80 11 00 00 [13:10:39]Write to MH i2c: E2 08 00 B9 2C 80 11 00 00 00 00 00 00 5F [13:10:39]Write i2c OK [13:10:39]MH_I2C_Read... [13:10:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:39]Read from MH i2c: E2 [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: E2 17 00 [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: E2 17 00 B9 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B6 [13:10: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:10:39]wFMCommunicate OK [13:10:39]requested_item fd.num is exist - process it [13:10:39]SAM_PROTO_GetFieldsCounters [13:10:39]wFMCommunicate request_size=4 [13:10:39]MH_SAM_APDU [13:10:39]CAPDU: 80 13 00 00 [13:10:39]Write to MH i2c: E2 08 00 BA 2C 80 13 00 00 00 00 00 00 62 [13:10:39]Write i2c OK [13:10:39]MH_I2C_Read... [13:10:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:39]Read from MH i2c: E2 [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: E2 62 00 [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: E2 62 00 BA 2C 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 E2 01 00 0E 04 04 00 2F 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 68 [13:10: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 BB E2 01 00 0E 04 04 00 2F 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 [13:10:39]wFMCommunicate OK [13:10:39]SAM_PROTO_GetFieldsCounters done [13:10:39]requested_item shift.num is exist - process it [13:10:39]requested_item shift.opened is exist - process it [13:10:39]req_shift_opened [13:10:39]FM_GetShiftState [13:10:39]SAM_PROTO_GetShiftState [13:10:39]wFMCommunicate request_size=4 [13:10:39]MH_SAM_APDU [13:10:39]CAPDU: 80 13 01 00 [13:10:39]Write to MH i2c: E2 08 00 BB 2C 80 13 01 00 00 00 00 00 64 [13:10:39]Write i2c OK [13:10:39]MH_I2C_Read... [13:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:39]Read from MH i2c: E2 [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: E2 0E 00 [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: E2 0E 00 BB 2C 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 6B [13:10:39]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [13:10:39]wFMCommunicate OK [13:10:39]SAM_PROTO_GetShiftState done [13:10:39]FM_GetShiftState done [13:10:39]req_shift_opened done [13:10:39]requested_item shift.open_date is exist - process it [13:10:39]req_shift_open_date [13:10:39]req_shift_open_date done [13:10:39]produce_requested_data done [13:10:39]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123579,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [13:10:39]process_action_free close_receipt [13:10:39]json_value_free [13:10:39]json_value_free done [13:10:39]process_json_proto returns [13:10:39]Send response to host [13:10:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123579,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [13:10:39]free response buf [13:10:39]execute_script done [13:10:39]execute_script returns [13:10:39]free content buf [13:10:39]Sock 9.Close socket [13:10:39]Sock 9.Thread stoped [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]accept exits with 8 [13:14:27]New connection [13:14:27]New thread 3066719588 created [13:14:27]Thread 3066862948 joined [13:14:27]Waiting for new connection... [13:14:27] Sock 8.Parse request [13:14:27]Sock 8.Check first char [13:14:27]Sock 8.First char is OK [13:14:27]request: POST /json_proto HTTP/1.0 [13:14:27]Method: POST [13:14:27]URL: /json_proto [13:14:27]Method is POST - this is cgi request [13:14:27]url: /json_proto [13:14:27]query_string will be loaded in cgi processing [13:14:27]execute_cgi json_proto POST (null) [13:14:27]execute_cgi path=json_proto method=POST [13:14:27]POST find Content-Length [13:14:27]Host: 172.17.37.4:8080 [13:14:27]Content-Length: 792 [13:14:27]Content-Type: application/json [13:14:27] [13:14:27]POST finish read [13:14:27]Found Content-Length = 792 [13:14:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718418", "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" : 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\u000A89335", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:27]execute_script... [13:14:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718418", "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" : 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\u000A89335", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:27]POST & json_proto [13:14:27]process_json_proto [13:14:27]json parsed OK: [13:14:27]protocol is kg_v1.0 [13:14:27]action value=close_receipt [13:14:27]process_action close_receipt [13:14:27]cmd_close_receipt [13:14:27]MH_GetDate [13:14:27]Write to MH i2c: F0 00 00 BC 2C D7 [13:14:27]Write i2c OK [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: F0 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: F0 09 00 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: F0 09 00 BC 2C 00 B8 6C 48 67 1D 3A 47 67 B8 [13:14:27]GetLastDocTimeStamp 1732799439 [13:14:27]current date 1732799672 [13:14:27]FM_GetShiftState [13:14:27]SAM_PROTO_GetShiftState [13:14:27]wFMCommunicate request_size=4 [13:14:27]MH_SAM_APDU [13:14:27]CAPDU: 80 13 01 00 [13:14:27]Write to MH i2c: E2 08 00 BD 2C 80 13 01 00 00 00 00 00 66 [13:14:27]Write i2c OK [13:14:27]MH_I2C_Read... [13:14:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:27]Read from MH i2c: E2 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: E2 0E 00 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: E2 0E 00 BD 2C 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 6D [13:14:27]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [13:14:27]wFMCommunicate OK [13:14:27]SAM_PROTO_GetShiftState done [13:14:27]FM_GetShiftState done [13:14:27]opened in 1732752282 [13:14:27]opened+sec_in_day 1732838682 [13:14:27]quantity*price = 0 [13:14:27]sum+1 = 1 [13:14:27]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 28.11.2024 13:14 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 89335 ФМ: 0000000000874881 ФД: 123580 ФПД: 99478292588572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T131432&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123580&fm=99478292588572&tin=02508201610067®Number=0000000000092681&sum=0 [13:14:28]StoreToDocumentArchive [13:14:28]shift 559 fd 123580 [13:14:28]save to /storage/0559/doc_00123580 [13:14:28]save last doc name /storage/0559/doc_00123580 to /storage/kkm_last_doc_name [13:14:28]save OK [13:14:28]Clear old archive folders... [13:14:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:14:28]tlvbuf is 014815A0 [13:14:28]SAM_PROTO_ClearQueue [13:14:28]wFMCommunicate request_size=4 [13:14:28]MH_SAM_APDU [13:14:28]CAPDU: 80 09 00 00 [13:14:28]Write to MH i2c: E2 08 00 CA 2C 80 09 00 00 00 00 00 00 68 [13:14:28]Write i2c OK [13:14:28]MH_I2C_Read... [13:14:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:28]Read from MH i2c: E2 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: E2 03 00 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: E2 03 00 CA 2C 00 90 00 6A [13:14:28]RAPDU: 90 00 [13:14:28]wFMCommunicate OK [13:14:28]SAM_PROTO_ClearQueue done [13:14:28]KKMCreateOFDPacket [13:14:28]OFDProtocolAddRootSTLVToBuf [13:14:28]FM_MakeSignedData [13:14:28]FM_MakeSignedData [13:14:28]SAM_PROTO_SignData [13:14:28]wFMCommunicate request_size=4 [13:14:28]MH_SAM_APDU [13:14:28]CAPDU: 80 0D 01 02 [13:14:28]Write to MH i2c: E2 08 00 CB 2C 80 0D 01 02 00 00 00 00 70 [13:14:28]Write i2c OK [13:14:28]MH_I2C_Read... [13:14:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:28]Read from MH i2c: E2 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: E2 03 00 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: E2 03 00 CB 2C 00 90 00 6B [13:14:28]RAPDU: 90 00 [13:14:28]wFMCommunicate OK [13:14:28]wFMCommunicate request_size=255 [13:14:28]MH_SAM_APDU [13:14:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 5C 00 00 00 F4 03 04 00 B8 6C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 5A [13:14:28]Write to MH i2c: E2 02 01 CC 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5C 00 00 00 F4 03 04 00 B8 6C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 5A 00 00 A9 [13:14:28]Write i2c OK [13:14:28]MH_I2C_Read... [13:14:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:28]Read from MH i2c: E2 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: E2 03 00 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: E2 03 00 CC 2C 00 90 00 6C [13:14:28]RAPDU: 90 00 [13:14:28]wFMCommunicate OK [13:14:28]wFMCommunicate request_size=10 [13:14:28]MH_SAM_APDU [13:14:28]CAPDU: 80 0D 02 02 05 79 98 4A E8 1C [13:14:28]Write to MH i2c: E2 0D 00 CD 2C 80 0D 02 02 05 00 79 98 4A E8 1C 00 00 DC [13:14:28]Write i2c OK [13:14:28]MH_I2C_Read... [13:14:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:28]Read from MH i2c: E2 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: E2 03 00 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: E2 03 00 CD 2C 00 90 00 6D [13:14:28]RAPDU: 90 00 [13:14:28]wFMCommunicate OK [13:14:28]wFMCommunicate request_size=4 [13:14:28]MH_SAM_APDU [13:14:28]CAPDU: 80 0D 03 02 [13:14:28]Write to MH i2c: E2 08 00 CE 2C 80 0D 03 02 00 00 00 00 75 [13:14:28]Write i2c OK [13:14:28]MH_I2C_Read... [13:14:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:29]Read from MH i2c: E2 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 0B 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 0B 00 CE 2C 00 20 96 92 2A 60 3E 1E 98 90 00 3C [13:14:29]RAPDU: 20 96 92 2A 60 3E 1E 98 90 00 [13:14:29]wFMCommunicate OK [13:14:29]SAM_PROTO_SignData done [13:14:29]FM_MakeSignedData done [13:14:29]CreateOFDProtocolMessage [13:14:29]wFMCommunicate request_size=4 [13:14:29]MH_SAM_APDU [13:14:29]CAPDU: 80 11 00 00 [13:14:29]Write to MH i2c: E2 08 00 CF 2C 80 11 00 00 00 00 00 00 75 [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:29]Read from MH i2c: E2 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 17 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 17 00 CF 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CC [13:14: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:14:29]wFMCommunicate OK [13:14:29]CreateOFDProtocolMessage done [13:14:29]OFDSenderStorePacket 123580 [13:14:29]StoreOFDPacket docnum=123580 [13:14: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 3A 6A 07 01 95 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 5C 00 00 00 F4 03 04 00 B8 6C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 5A 79 98 4A E8 1C 20 96 92 2A 60 3E 1E 98 [13:14:29]CheckFolder [13:14:29]dirname=/storage/ofd_packets [13:14:29]CheckFolder done [13:14:29]ProducePacketName [13:14:29]name=ofd_packets/00123580 [13:14:29]NVStorageSaveData ofd_packets/00123580 [13:14:29]File name is /storage/ofd_packets/00123580 [13:14:29]Write 301 bytes [13:14:29]NVStorageSaveData done [13:14:29]OFDSenderStorePacket done [13:14:29]KKMCreateOFDPacket done [13:14:29]NVStorageSaveData kkm_last_timestamp [13:14:29]File name is /storage/kkm_last_timestamp [13:14:29]Write 4 bytes [13:14:29]NVStorageSaveData done [13:14:29]ExternCall_PrintAddStr [13:14:29]wPrintStart [13:14:29]Write to MH i2c: 01 00 00 D0 2C FC [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: 01 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: 01 07 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: 01 07 00 D0 2C 00 00 00 00 00 FF 0F 11 [13:14:29]RasterBufferAndPrint [13:14:29]line Счет N : (1)718418 [13:14:29]line ИНН: 02508201610067 [13:14:29]line Контрольно-Кассовый Чек [13:14:29]line ПРОДАЖА [13:14:29]line ТРК (МРК, ГНК) : 42 [13:14:29]line Товар: 2710124130 [13:14:29]line Аи-92-К-4 [13:14:29]line 15.000 * 0.00 [13:14:29]line = 0.00 [13:14:29]line НДС 12% НСП 1% [13:14:29]line > о реализуемом товаре [13:14:29]line ИТОГО: 0.00 [13:14:29]line НСП 1% : 0.00 [13:14:29]line НДС 12% : 0.00 [13:14:29]line Наличными: 0.00 [13:14:29]line Безнал.: 0.00 [13:14:29]line Место: АЗС № 64 "Партнер Нефть" [13:14:29]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:14:29]line СНО: Общий режим [13:14:29]line Чек 92 28.11.2024 13:14 [13:14:29]line Смена: 559 ФФД: 1.0 [13:14:29]line ЗНМ: 0300000033 [13:14:29]line РНМ: 0000000000092681 [13:14:29]line Версия ККМ: 001 [13:14:29]line Талоны: Топливная Карта [13:14:29]line 89335 [13:14:29]line ФМ: 0000000000874881 [13:14:29]line ФД: 123580 [13:14:29]line ФПД: 99478292588572 [13:14:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T131432&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123580&fm=99478292588572&tin=02508201610067®Number=0000000000092681&sum=0 [13:14:29]written 0, free lines is 4095 [13:14:29]OFD Sender: Processing packet 123580 [packets to send 7, broken 6] [13:14:29]ProducePacketName [13:14:29]name=ofd_packets/00123580 [13:14:29]OFD Sender: To server: pG, [13:14:29]CommunicateWithHost lk.salyk.kg:30040 [13:14:29]ConnectInit lk.salyk.kg [13:14:29]Connected sock=10 [13:14:29]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 3A 6A 07 01 95 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 5C 00 00 00 F4 03 04 00 B8 6C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 5A 79 98 4A E8 1C 20 96 92 2A 60 3E 1E 98 [13:14:29]Write to MH i2c: 01 00 00 FA 2C 26 [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: 01 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: 01 07 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: 01 07 00 FA 2C 00 00 00 00 00 60 0C 99 [13:14:29]RasterBufferAndPrint [13:14:29]line [13:14:29]line [13:14:29]line [13:14:29]line [13:14:29]line [13:14:29]written 0, free lines is 3173 [13:14:29]MH_Cut [13:14:29]Write to MH i2c: D1 01 00 01 2D 01 00 [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: D1 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: D1 01 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: D1 01 00 01 2D 00 FF [13:14:29]Write to MH i2c: 01 00 00 02 2D 2F [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]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 37 47 00 76 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 BC E2 01 00 F4 03 04 00 7E 18 48 67 B6 04 01 00 00 ED 6C 58 DF F4 39 E7 C9 [13:14:29]CommunicateWithHost err = 0 [13:14:29]CheckOFDResponse [13:14:29]1017 (14) - 77093643461234 [13:14:29]1041 (16) - 0000000000874881 [13:14:29]1040 (4) - 123580 [13:14:29]1012 (4) - 28.11.2024 07:15 [13:14:29]1206 (1) - 0 [13:14:29]OFD Sender: Remove packet 123580 [13:14:29]ProducePacketName [13:14:29]name=ofd_packets/00123580 [13:14:29]NVStorageDeleteData [13:14:30]OFD Sender: No OFD packet to send [13:14:30]*** Cut start [13:14:30]*** Partial cut [13:14:30]*** CUTSNS_PIN = 1 [13:14:30]*** CUTSNS_PIN = 0 [13:14:31]*** Brake cut motor [13:14:31]Read from MH i2c: 01 [13:14:31]MH_I2C_Read... [13:14:31]*** Stop cut motor [13:14:31]*** Cut end [13:14:31]Read from MH i2c: 01 07 00 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: 01 07 00 02 2D 00 00 00 00 00 FF 0F 44 [13:14:31]process_action close_receipt done [13:14:31]requested_data is exist [13:14:31]produce_requested_data [13:14:31]requested_item fm.sn is exist - process it [13:14:31]wFMCommunicate request_size=4 [13:14:31]MH_SAM_APDU [13:14:31]CAPDU: 80 11 00 00 [13:14:31]Write to MH i2c: E2 08 00 03 2D 80 11 00 00 00 00 00 00 AA [13:14:31]Write i2c OK [13:14:31]MH_I2C_Read... [13:14:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:31]Read from MH i2c: E2 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: E2 17 00 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: E2 17 00 03 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 01 [13:14: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:14:31]wFMCommunicate OK [13:14:31]requested_item fd.num is exist - process it [13:14:31]SAM_PROTO_GetFieldsCounters [13:14:31]wFMCommunicate request_size=4 [13:14:31]MH_SAM_APDU [13:14:31]CAPDU: 80 13 00 00 [13:14:31]Write to MH i2c: E2 08 00 04 2D 80 13 00 00 00 00 00 00 AD [13:14:31]Write i2c OK [13:14:31]MH_I2C_Read... [13:14:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:31]Read from MH i2c: E2 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: E2 62 00 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: E2 62 00 04 2D 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 E2 01 00 0E 04 04 00 2F 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 B7 [13:14: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 BC E2 01 00 0E 04 04 00 2F 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 [13:14:31]wFMCommunicate OK [13:14:31]SAM_PROTO_GetFieldsCounters done [13:14:31]requested_item shift.num is exist - process it [13:14:31]requested_item shift.opened is exist - process it [13:14:31]req_shift_opened [13:14:31]FM_GetShiftState [13:14:31]SAM_PROTO_GetShiftState [13:14:31]wFMCommunicate request_size=4 [13:14:31]MH_SAM_APDU [13:14:31]CAPDU: 80 13 01 00 [13:14:31]Write to MH i2c: E2 08 00 05 2D 80 13 01 00 00 00 00 00 AF [13:14:31]Write i2c OK [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: E2 [13:14:31]MH_I2C_Read... [13:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:31]Read from MH i2c: E2 0E 00 [13:14:31]MH_I2C_Read... [13:14:31]Read from MH i2c: E2 0E 00 05 2D 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 B6 [13:14:31]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [13:14:31]wFMCommunicate OK [13:14:31]SAM_PROTO_GetShiftState done [13:14:31]FM_GetShiftState done [13:14:31]req_shift_opened done [13:14:31]requested_item shift.open_date is exist - process it [13:14:31]req_shift_open_date [13:14:31]req_shift_open_date done [13:14:31]produce_requested_data done [13:14:31]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123580,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [13:14:31]process_action_free close_receipt [13:14:31]json_value_free [13:14:31]json_value_free done [13:14:31]process_json_proto returns [13:14:31]Send response to host [13:14:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123580,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [13:14:31]free response buf [13:14:31]execute_script done [13:14:31]execute_script returns [13:14:31]free content buf [13:14:31]Sock 8.Close socket [13:14:31]Sock 8.Thread stoped [13:14:35]OFD Sender: No OFD packet to send [13:14:40]OFD Sender: No OFD packet to send [13:14:45]OFD Sender: No OFD packet to send [13:14:50]OFD Sender: No OFD packet to send [13:14:55]OFD Sender: No OFD packet to send [13:15:00]OFD Sender: No OFD packet to send [13:15:05]OFD Sender: No OFD packet to send [13:15:10]OFD Sender: No OFD packet to send [13:15:15]OFD Sender: No OFD packet to send [13:15:20]OFD Sender: No OFD packet to send [13:15:25]OFD Sender: No OFD packet to send [13:15:30]OFD Sender: No OFD packet to send [13:15:35]OFD Sender: No OFD packet to send [13:15:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:19]accept exits with 9 [13:16:19]New connection [13:16:19]New thread 3066862948 created [13:16:19]Thread 3066719588 joined [13:16:19]Waiting for new connection... [13:16:19] Sock 9.Parse request [13:16:19]Sock 9.Check first char [13:16:19]Sock 9.First char is OK [13:16:19]request: POST /json_proto HTTP/1.0 [13:16:19]Method: POST [13:16:19]URL: /json_proto [13:16:19]Method is POST - this is cgi request [13:16:19]url: /json_proto [13:16:19]query_string will be loaded in cgi processing [13:16:19]execute_cgi json_proto POST (null) [13:16:19]execute_cgi path=json_proto method=POST [13:16:19]POST find Content-Length [13:16:19]Host: 172.17.37.4:8080 [13:16:19]Content-Length: 792 [13:16:19]Content-Type: application/json [13:16:19] [13:16:19]POST finish read [13:16:19]Found Content-Length = 792 [13:16:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718419", "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" : 14.840, "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" ] } } [13:16:19]execute_script... [13:16: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)718419", "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" : 14.840, "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" ] } } [13:16:19]POST & json_proto [13:16:19]process_json_proto [13:16:19]json parsed OK: [13:16:19]protocol is kg_v1.0 [13:16:19]action value=close_receipt [13:16:19]process_action close_receipt [13:16:19]cmd_close_receipt [13:16:19]MH_GetDate [13:16:19]Write to MH i2c: F0 00 00 06 2D 22 [13:16:19]Write i2c OK [13:16:19]MH_I2C_Read... [13:16:19]Read from MH i2c: F0 [13:16:19]MH_I2C_Read... [13:16:19]Read from MH i2c: F0 09 00 [13:16:19]MH_I2C_Read... [13:16:19]Read from MH i2c: F0 09 00 06 2D 00 28 6D 48 67 1D 3A 47 67 74 [13:16:19]GetLastDocTimeStamp 1732799672 [13:16:19]current date 1732799784 [13:16:19]FM_GetShiftState [13:16:19]SAM_PROTO_GetShiftState [13:16:19]wFMCommunicate request_size=4 [13:16:19]MH_SAM_APDU [13:16:19]CAPDU: 80 13 01 00 [13:16:19]Write to MH i2c: E2 08 00 07 2D 80 13 01 00 00 00 00 00 B1 [13:16:19]Write i2c OK [13:16:19]MH_I2C_Read... [13:16:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:19]Read from MH i2c: E2 [13:16:19]MH_I2C_Read... [13:16:19]Read from MH i2c: E2 0E 00 [13:16:19]MH_I2C_Read... [13:16:19]Read from MH i2c: E2 0E 00 07 2D 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 B8 [13:16:19]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [13:16:19]wFMCommunicate OK [13:16:19]SAM_PROTO_GetShiftState done [13:16:19]FM_GetShiftState done [13:16:19]opened in 1732752282 [13:16:19]opened+sec_in_day 1732838682 [13:16:19]quantity*price = 0 [13:16:19]sum+1 = 1 [13:16:19]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 СНО: Общий режим Чек 93 28.11.2024 13:16 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 89335 ФМ: 0000000000874881 ФД: 123581 ФПД: 154954331781650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T131624&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123581&fm=154954331781650&tin=02508201610067®Number=0000000000092681&sum=0 [13:16:20]StoreToDocumentArchive [13:16:20]shift 559 fd 123581 [13:16:20]save to /storage/0559/doc_00123581 [13:16:20]save last doc name /storage/0559/doc_00123581 to /storage/kkm_last_doc_name [13:16:20]save OK [13:16:20]Clear old archive folders... [13:16:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:16:20]tlvbuf is B6EC4350 [13:16:20]SAM_PROTO_ClearQueue [13:16:20]wFMCommunicate request_size=4 [13:16:20]MH_SAM_APDU [13:16:20]CAPDU: 80 09 00 00 [13:16:20]Write to MH i2c: E2 08 00 14 2D 80 09 00 00 00 00 00 00 B3 [13:16:20]Write i2c OK [13:16:20]MH_I2C_Read... [13:16:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:20]Read from MH i2c: E2 [13:16:20]MH_I2C_Read... [13:16:20]Read from MH i2c: E2 03 00 [13:16:20]MH_I2C_Read... [13:16:20]Read from MH i2c: E2 03 00 14 2D 00 90 00 B5 [13:16:20]RAPDU: 90 00 [13:16:20]wFMCommunicate OK [13:16:20]SAM_PROTO_ClearQueue done [13:16:20]KKMCreateOFDPacket [13:16:20]OFDProtocolAddRootSTLVToBuf [13:16:20]FM_MakeSignedData [13:16:20]FM_MakeSignedData [13:16:20]SAM_PROTO_SignData [13:16:20]wFMCommunicate request_size=4 [13:16:20]MH_SAM_APDU [13:16:20]CAPDU: 80 0D 01 02 [13:16:20]Write to MH i2c: E2 08 00 15 2D 80 0D 01 02 00 00 00 00 BB [13:16:20]Write i2c OK [13:16:20]MH_I2C_Read... [13:16:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:20]Read from MH i2c: E2 [13:16:20]MH_I2C_Read... [13:16:20]Read from MH i2c: E2 03 00 [13:16:20]MH_I2C_Read... [13:16:20]Read from MH i2c: E2 03 00 15 2D 00 90 00 B6 [13:16:20]RAPDU: 90 00 [13:16:20]wFMCommunicate OK [13:16:20]wFMCommunicate request_size=255 [13:16:20]MH_SAM_APDU [13:16: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 F8 39 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 5D 00 00 00 F4 03 04 00 28 6D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8C [13:16:21]Write to MH i2c: E2 02 01 16 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 5D 00 00 00 F4 03 04 00 28 6D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8C 00 00 F8 [13:16:21]Write i2c OK [13:16:21]MH_I2C_Read... [13:16:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:21]Read from MH i2c: E2 [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: E2 03 00 [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: E2 03 00 16 2D 00 90 00 B7 [13:16:21]RAPDU: 90 00 [13:16:21]wFMCommunicate OK [13:16:21]wFMCommunicate request_size=10 [13:16:21]MH_SAM_APDU [13:16:21]CAPDU: 80 0D 02 02 05 EE 1D E6 FA 12 [13:16:21]Write to MH i2c: E2 0D 00 17 2D 80 0D 02 02 05 00 EE 1D E6 FA 12 00 00 C5 [13:16:21]Write i2c OK [13:16:21]MH_I2C_Read... [13:16:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:21]Read from MH i2c: E2 [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: E2 03 00 [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: E2 03 00 17 2D 00 90 00 B8 [13:16:21]RAPDU: 90 00 [13:16:21]wFMCommunicate OK [13:16:21]wFMCommunicate request_size=4 [13:16:21]MH_SAM_APDU [13:16:21]CAPDU: 80 0D 03 02 [13:16:21]Write to MH i2c: E2 08 00 18 2D 80 0D 03 02 00 00 00 00 C0 [13:16:21]Write i2c OK [13:16:21]MH_I2C_Read... [13:16:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:21]Read from MH i2c: E2 [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: E2 0B 00 [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: E2 0B 00 18 2D 00 13 A7 1E A0 EC 82 C1 66 90 00 CE [13:16:21]RAPDU: 13 A7 1E A0 EC 82 C1 66 90 00 [13:16:21]wFMCommunicate OK [13:16:21]SAM_PROTO_SignData done [13:16:21]FM_MakeSignedData done [13:16:21]CreateOFDProtocolMessage [13:16:21]wFMCommunicate request_size=4 [13:16:21]MH_SAM_APDU [13:16:21]CAPDU: 80 11 00 00 [13:16:21]Write to MH i2c: E2 08 00 19 2D 80 11 00 00 00 00 00 00 C0 [13:16:21]Write i2c OK [13:16:21]MH_I2C_Read... [13:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:21]Read from MH i2c: E2 [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: E2 17 00 [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: E2 17 00 19 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 17 [13: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 [13:16:21]wFMCommunicate OK [13:16:21]CreateOFDProtocolMessage done [13:16:21]OFDSenderStorePacket 123581 [13:16:21]StoreOFDPacket docnum=123581 [13:16: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 0F 01 00 00 C3 99 07 01 A5 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 5D 00 00 00 F4 03 04 00 28 6D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8C EE 1D E6 FA 12 13 A7 1E A0 EC 82 C1 66 [13:16:21]CheckFolder [13:16:21]dirname=/storage/ofd_packets [13:16:21]CheckFolder done [13:16:21]ProducePacketName [13:16:21]name=ofd_packets/00123581 [13:16:21]NVStorageSaveData ofd_packets/00123581 [13:16:21]File name is /storage/ofd_packets/00123581 [13:16:21]Write 301 bytes [13:16:21]NVStorageSaveData done [13:16:21]OFDSenderStorePacket done [13:16:21]KKMCreateOFDPacket done [13:16:21]NVStorageSaveData kkm_last_timestamp [13:16:21]File name is /storage/kkm_last_timestamp [13:16:21]Write 4 bytes [13:16:21]NVStorageSaveData done [13:16:21]ExternCall_PrintAddStr [13:16:21]wPrintStart [13:16:21]Write to MH i2c: 01 00 00 1A 2D 47 [13:16:21]Write i2c OK [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: 01 [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: 01 07 00 [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: 01 07 00 1A 2D 00 00 00 00 00 FF 0F 5C [13:16:21]RasterBufferAndPrint [13:16:21]line Счет N : (1)718419 [13:16:21]line ИНН: 02508201610067 [13:16:21]line Контрольно-Кассовый Чек [13:16:21]line ПРОДАЖА [13:16:21]line ТРК (МРК, ГНК) : 12 [13:16:21]line Товар: 2710124130 [13:16:21]line Аи-92-К-4 [13:16:21]line 14.840 * 0.00 [13:16:21]line = 0.00 [13:16:21]line НДС 12% НСП 1% [13:16:21]line > о реализуемом товаре [13:16:21]line ИТОГО: 0.00 [13:16:21]line НСП 1% : 0.00 [13:16:21]line НДС 12% : 0.00 [13:16:21]line Наличными: 0.00 [13:16:21]line Безнал.: 0.00 [13:16:21]line Место: АЗС № 64 "Партнер Нефть" [13:16:21]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:16:21]line СНО: Общий режим [13:16:21]line Чек 93 28.11.2024 13:16 [13:16:21]line Смена: 559 ФФД: 1.0 [13:16:21]line ЗНМ: 0300000033 [13:16:21]line РНМ: 0000000000092681 [13:16:21]line Версия ККМ: 001 [13:16:21]line Талоны: Топливная Карта [13:16:21]line 89335 [13:16:21]line ФМ: 0000000000874881 [13:16:21]line ФД: 123581 [13:16:21]line ФПД: 154954331781650 [13:16:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T131624&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123581&fm=154954331781650&tin=02508201610067®Number=0000000000092681&sum=0 [13:16:21]written 0, free lines is 4095 [13:16:21]OFD Sender: Processing packet 123581 [packets to send 7, broken 6] [13:16:21]ProducePacketName [13:16:21]name=ofd_packets/00123581 [13:16:21]OFD Sender: To server: pG, [13:16:21]CommunicateWithHost lk.salyk.kg:30040 [13:16:21]ConnectInit lk.salyk.kg [13:16:21]Connected sock=10 [13:16: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 C3 99 07 01 A5 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 5D 00 00 00 F4 03 04 00 28 6D 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 8C EE 1D E6 FA 12 13 A7 1E A0 EC 82 C1 66 [13: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 0E 47 00 26 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BD E2 01 00 F4 03 04 00 EE 18 48 67 B6 04 01 00 00 2F CB 41 75 9B D0 04 41 [13:16:22]CommunicateWithHost err = 0 [13:16:22]CheckOFDResponse [13:16:22]1017 (14) - 77093643461234 [13:16:22]1041 (16) - 0000000000874881 [13:16:22]1040 (4) - 123581 [13:16:22]1012 (4) - 28.11.2024 07:17 [13:16:22]1206 (1) - 0 [13:16:22]OFD Sender: Remove packet 123581 [13:16:22]ProducePacketName [13:16:22]name=ofd_packets/00123581 [13:16:22]NVStorageDeleteData [13:16:22]Write to MH i2c: 01 00 00 44 2D 71 [13:16:22]Write i2c OK [13:16:22]MH_I2C_Read... [13:16:22]Read from MH i2c: 01 [13:16:22]MH_I2C_Read... [13:16:22]Read from MH i2c: 01 07 00 [13:16:22]MH_I2C_Read... [13:16:22]Read from MH i2c: 01 07 00 44 2D 00 00 00 00 00 60 0C E4 [13:16:22]RasterBufferAndPrint [13:16:22]line [13:16:22]line [13:16:22]line [13:16:22]line [13:16:22]line [13:16:22]written 0, free lines is 3173 [13:16:22]MH_Cut [13:16:22]Write to MH i2c: D1 01 00 4B 2D 01 4A [13:16:22]Write i2c OK [13:16:22]MH_I2C_Read... [13:16:22]Read from MH i2c: D1 [13:16:22]MH_I2C_Read... [13:16:22]Read from MH i2c: D1 01 00 [13:16:22]MH_I2C_Read... [13:16:22]Read from MH i2c: D1 01 00 4B 2D 00 49 [13:16:22]Write to MH i2c: 01 00 00 4C 2D 79 [13:16:22]Write i2c OK [13:16:22]MH_I2C_Read... [13:16:22]OFD Sender: No OFD packet to send [13:16:23]*** Cut start [13:16:23]*** Partial cut [13:16:23]*** CUTSNS_PIN = 1 [13:16:23]*** CUTSNS_PIN = 0 [13:16:23]*** Brake cut motor [13:16:24]Read from MH i2c: 01 [13:16:24]MH_I2C_Read... [13:16:24]*** Stop cut motor [13:16:24]*** Cut end [13:16:24]Read from MH i2c: 01 07 00 [13:16:24]MH_I2C_Read... [13:16:24]Read from MH i2c: 01 07 00 4C 2D 00 00 00 00 00 FF 0F 8E [13:16:24]process_action close_receipt done [13:16:24]requested_data is exist [13:16:24]produce_requested_data [13:16:24]requested_item fm.sn is exist - process it [13:16:24]wFMCommunicate request_size=4 [13:16:24]MH_SAM_APDU [13:16:24]CAPDU: 80 11 00 00 [13:16:24]Write to MH i2c: E2 08 00 4D 2D 80 11 00 00 00 00 00 00 F4 [13:16:24]Write i2c OK [13:16:24]MH_I2C_Read... [13:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:24]Read from MH i2c: E2 [13:16:24]MH_I2C_Read... [13:16:24]Read from MH i2c: E2 17 00 [13:16:24]MH_I2C_Read... [13:16:24]Read from MH i2c: E2 17 00 4D 2D 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:16: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:16:24]wFMCommunicate OK [13:16:24]requested_item fd.num is exist - process it [13:16:24]SAM_PROTO_GetFieldsCounters [13:16:24]wFMCommunicate request_size=4 [13:16:24]MH_SAM_APDU [13:16:24]CAPDU: 80 13 00 00 [13:16:24]Write to MH i2c: E2 08 00 4E 2D 80 13 00 00 00 00 00 00 F7 [13:16:24]Write i2c OK [13:16:24]MH_I2C_Read... [13:16:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:24]Read from MH i2c: E2 [13:16:24]MH_I2C_Read... [13:16:24]Read from MH i2c: E2 62 00 [13:16:24]MH_I2C_Read... [13:16:24]Read from MH i2c: E2 62 00 4E 2D 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 E2 01 00 0E 04 04 00 2F 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 05 [13:16:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 [13:16:24]wFMCommunicate OK [13:16:24]SAM_PROTO_GetFieldsCounters done [13:16:24]requested_item shift.num is exist - process it [13:16:24]requested_item shift.opened is exist - process it [13:16:24]req_shift_opened [13:16:24]FM_GetShiftState [13:16:24]SAM_PROTO_GetShiftState [13:16:24]wFMCommunicate request_size=4 [13:16:24]MH_SAM_APDU [13:16:24]CAPDU: 80 13 01 00 [13:16:24]Write to MH i2c: E2 08 00 4F 2D 80 13 01 00 00 00 00 00 F9 [13:16:24]Write i2c OK [13:16:24]MH_I2C_Read... [13:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:24]Read from MH i2c: E2 [13:16:24]MH_I2C_Read... [13:16:24]Read from MH i2c: E2 0E 00 [13:16:24]MH_I2C_Read... [13:16:24]Read from MH i2c: E2 0E 00 4F 2D 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 00 [13:16:24]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [13:16:24]wFMCommunicate OK [13:16:24]SAM_PROTO_GetShiftState done [13:16:24]FM_GetShiftState done [13:16:24]req_shift_opened done [13:16:24]requested_item shift.open_date is exist - process it [13:16:24]req_shift_open_date [13:16:24]req_shift_open_date done [13:16:24]produce_requested_data done [13:16:24]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123581,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [13:16:24]process_action_free close_receipt [13:16:24]json_value_free [13:16:24]json_value_free done [13:16:24]process_json_proto returns [13:16:24]Send response to host [13:16:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123581,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [13:16:24]free response buf [13:16:24]execute_script done [13:16:24]execute_script returns [13:16:24]free content buf [13:16:24]Sock 9.Close socket [13:16:24]Sock 9.Thread stoped [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send [13:19:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:27]OFD Sender: No OFD packet to send [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:42]OFD Sender: No OFD packet to send [13:20:47]OFD Sender: No OFD packet to send [13:20:52]OFD Sender: No OFD packet to send [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:17]OFD Sender: No OFD packet to send [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:52]OFD Sender: No OFD packet to send [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:12]OFD Sender: No OFD packet to send [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]OFD Sender: No OFD packet to send [13:24:12]OFD Sender: No OFD packet to send [13:24:17]OFD Sender: No OFD packet to send [13:24:22]OFD Sender: No OFD packet to send [13:24:27]OFD Sender: No OFD packet to send [13:24:32]OFD Sender: No OFD packet to send [13:24:37]OFD Sender: No OFD packet to send [13:24:42]OFD Sender: No OFD packet to send [13:24:47]OFD Sender: No OFD packet to send [13:24:52]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:12]OFD Sender: No OFD packet to send [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:58]OFD Sender: No OFD packet to send [13:26:03]OFD Sender: No OFD packet to send [13:26:08]OFD Sender: No OFD packet to send [13:26:13]OFD Sender: No OFD packet to send [13:26:18]OFD Sender: No OFD packet to send [13:26:23]OFD Sender: No OFD packet to send [13:26:28]OFD Sender: No OFD packet to send [13:26:33]OFD Sender: No OFD packet to send [13:26:38]OFD Sender: No OFD packet to send [13:26:43]OFD Sender: No OFD packet to send [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:28]accept exits with 8 [13:27:28]New connection [13:27:28]New thread 3066719588 created [13:27:28]Thread 3066862948 joined [13:27:28]Waiting for new connection... [13:27:28] Sock 8.Parse request [13:27:28]Sock 8.Check first char [13:27:28]Sock 8.First char is OK [13:27:28]request: POST /json_proto HTTP/1.0 [13:27:28]Method: POST [13:27:28]URL: /json_proto [13:27:28]Method is POST - this is cgi request [13:27:28]url: /json_proto [13:27:28]query_string will be loaded in cgi processing [13:27:28]execute_cgi json_proto POST (null) [13:27:28]execute_cgi path=json_proto method=POST [13:27:28]POST find Content-Length [13:27:28]Host: 172.17.37.4:8080 [13:27:28]Content-Length: 792 [13:27:28]Content-Type: application/json [13:27:28] [13:27:28]POST finish read [13:27:28]Found Content-Length = 792 [13:27:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718421", "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" : 14.840, "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" ] } } [13:27:28]execute_script... [13:27: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)718421", "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" : 14.840, "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" ] } } [13:27:28]POST & json_proto [13:27:28]process_json_proto [13:27:28]json parsed OK: [13:27:28]protocol is kg_v1.0 [13:27:28]action value=close_receipt [13:27:28]process_action close_receipt [13:27:28]cmd_close_receipt [13:27:28]MH_GetDate [13:27:28]Write to MH i2c: F0 00 00 50 2D 6C [13:27:28]Write i2c OK [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: F0 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: F0 09 00 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: F0 09 00 50 2D 00 C6 6F 48 67 1D 3A 47 67 5E [13:27:28]GetLastDocTimeStamp 1732799784 [13:27:28]current date 1732800454 [13:27:28]FM_GetShiftState [13:27:28]SAM_PROTO_GetShiftState [13:27:28]wFMCommunicate request_size=4 [13:27:28]MH_SAM_APDU [13:27:28]CAPDU: 80 13 01 00 [13:27:28]Write to MH i2c: E2 08 00 51 2D 80 13 01 00 00 00 00 00 FB [13:27:28]Write i2c OK [13:27:28]MH_I2C_Read... [13:27:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:28]Read from MH i2c: E2 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: E2 0E 00 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: E2 0E 00 51 2D 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 02 [13:27:28]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [13:27:28]wFMCommunicate OK [13:27:28]SAM_PROTO_GetShiftState done [13:27:28]FM_GetShiftState done [13:27:28]opened in 1732752282 [13:27:28]opened+sec_in_day 1732838682 [13:27:28]quantity*price = 0 [13:27:28]sum+1 = 1 [13:27:28]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 СНО: Общий режим Чек 94 28.11.2024 13:27 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 89335 ФМ: 0000000000874881 ФД: 123582 ФПД: 57298410613290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T132734&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123582&fm=57298410613290&tin=02508201610067®Number=0000000000092681&sum=0 [13:27:30]StoreToDocumentArchive [13:27:30]shift 559 fd 123582 [13:27:30]save to /storage/0559/doc_00123582 [13:27:30]save last doc name /storage/0559/doc_00123582 to /storage/kkm_last_doc_name [13:27:30]save OK [13:27:30]Clear old archive folders... [13:27:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:27:30]tlvbuf is 014E0480 [13:27:30]SAM_PROTO_ClearQueue [13:27:30]wFMCommunicate request_size=4 [13:27:30]MH_SAM_APDU [13:27:30]CAPDU: 80 09 00 00 [13:27:30]Write to MH i2c: E2 08 00 5E 2D 80 09 00 00 00 00 00 00 FD [13:27:30]Write i2c OK [13:27:30]MH_I2C_Read... [13:27:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:30]Read from MH i2c: E2 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 03 00 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 03 00 5E 2D 00 90 00 FF [13:27:30]RAPDU: 90 00 [13:27:30]wFMCommunicate OK [13:27:30]SAM_PROTO_ClearQueue done [13:27:30]KKMCreateOFDPacket [13:27:30]OFDProtocolAddRootSTLVToBuf [13:27:30]FM_MakeSignedData [13:27:30]FM_MakeSignedData [13:27:30]SAM_PROTO_SignData [13:27:30]wFMCommunicate request_size=4 [13:27:30]MH_SAM_APDU [13:27:30]CAPDU: 80 0D 01 02 [13:27:30]Write to MH i2c: E2 08 00 5F 2D 80 0D 01 02 00 00 00 00 05 [13:27:30]Write i2c OK [13:27:30]MH_I2C_Read... [13:27:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:30]Read from MH i2c: E2 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 03 00 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 03 00 5F 2D 00 90 00 00 [13:27:30]RAPDU: 90 00 [13:27:30]wFMCommunicate OK [13:27:30]wFMCommunicate request_size=255 [13:27:30]MH_SAM_APDU [13:27: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 F8 39 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 5E 00 00 00 F4 03 04 00 C6 6F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 34 [13:27:30]Write to MH i2c: E2 02 01 60 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 5E 00 00 00 F4 03 04 00 C6 6F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 34 00 00 8C [13:27:30]Write i2c OK [13:27:30]MH_I2C_Read... [13:27:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:30]Read from MH i2c: E2 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 03 00 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 03 00 60 2D 00 90 00 01 [13:27:30]RAPDU: 90 00 [13:27:30]wFMCommunicate OK [13:27:30]wFMCommunicate request_size=10 [13:27:30]MH_SAM_APDU [13:27:30]CAPDU: 80 0D 02 02 05 1C D3 69 2A 2A [13:27:30]Write to MH i2c: E2 0D 00 61 2D 80 0D 02 02 05 00 1C D3 69 2A 2A 00 00 BE [13:27:30]Write i2c OK [13:27:30]MH_I2C_Read... [13:27:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:30]Read from MH i2c: E2 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 03 00 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 03 00 61 2D 00 90 00 02 [13:27:30]RAPDU: 90 00 [13:27:30]wFMCommunicate OK [13:27:30]wFMCommunicate request_size=4 [13:27:30]MH_SAM_APDU [13:27:30]CAPDU: 80 0D 03 02 [13:27:30]Write to MH i2c: E2 08 00 62 2D 80 0D 03 02 00 00 00 00 0A [13:27:30]Write i2c OK [13:27:30]MH_I2C_Read... [13:27:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:30]Read from MH i2c: E2 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 0B 00 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 0B 00 62 2D 00 F3 BA 6D CC E5 18 D9 A7 90 00 6E [13:27:30]RAPDU: F3 BA 6D CC E5 18 D9 A7 90 00 [13:27:30]wFMCommunicate OK [13:27:30]SAM_PROTO_SignData done [13:27:30]FM_MakeSignedData done [13:27:30]CreateOFDProtocolMessage [13:27:30]wFMCommunicate request_size=4 [13:27:30]MH_SAM_APDU [13:27:30]CAPDU: 80 11 00 00 [13:27:30]Write to MH i2c: E2 08 00 63 2D 80 11 00 00 00 00 00 00 0A [13:27:30]Write i2c OK [13:27:30]MH_I2C_Read... [13:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:30]Read from MH i2c: E2 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 17 00 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 17 00 63 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 61 [13:27: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:27:30]wFMCommunicate OK [13:27:30]CreateOFDProtocolMessage done [13:27:30]OFDSenderStorePacket 123582 [13:27:30]StoreOFDPacket docnum=123582 [13:27: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 EC 52 07 01 89 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 5E 00 00 00 F4 03 04 00 C6 6F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 34 1C D3 69 2A 2A F3 BA 6D CC E5 18 D9 A7 [13:27:30]CheckFolder [13:27:30]dirname=/storage/ofd_packets [13:27:30]CheckFolder done [13:27:30]ProducePacketName [13:27:30]name=ofd_packets/00123582 [13:27:30]NVStorageSaveData ofd_packets/00123582 [13:27:30]File name is /storage/ofd_packets/00123582 [13:27:30]Write 301 bytes [13:27:30]NVStorageSaveData done [13:27:30]OFDSenderStorePacket done [13:27:30]KKMCreateOFDPacket done [13:27:30]NVStorageSaveData kkm_last_timestamp [13:27:30]File name is /storage/kkm_last_timestamp [13:27:30]Write 4 bytes [13:27:30]NVStorageSaveData done [13:27:30]ExternCall_PrintAddStr [13:27:30]wPrintStart [13:27:30]Write to MH i2c: 01 00 00 64 2D 91 [13:27:30]Write i2c OK [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: 01 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: 01 07 00 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: 01 07 00 64 2D 00 00 00 00 00 FF 0F A6 [13:27:30]RasterBufferAndPrint [13:27:30]line Счет N : (1)718421 [13:27:30]line ИНН: 02508201610067 [13:27:30]line Контрольно-Кассовый Чек [13:27:30]line ПРОДАЖА [13:27:30]line ТРК (МРК, ГНК) : 22 [13:27:30]line Товар: 2710124130 [13:27:30]line Аи-92-К-4 [13:27:30]line 14.840 * 0.00 [13:27:30]line = 0.00 [13:27:30]line НДС 12% НСП 1% [13:27:30]line > о реализуемом товаре [13:27:30]line ИТОГО: 0.00 [13:27:30]line НСП 1% : 0.00 [13:27:30]line НДС 12% : 0.00 [13:27:30]line Наличными: 0.00 [13:27:30]line Безнал.: 0.00 [13:27:30]line Место: АЗС № 64 "Партнер Нефть" [13:27:30]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:27:30]line СНО: Общий режим [13:27:30]line Чек 94 28.11.2024 13:27 [13:27:30]line Смена: 559 ФФД: 1.0 [13:27:30]line ЗНМ: 0300000033 [13:27:30]line РНМ: 0000000000092681 [13:27:30]line Версия ККМ: 001 [13:27:30]line Талоны: Топливная Карта [13:27:30]line 89335 [13:27:30]line ФМ: 0000000000874881 [13:27:30]line ФД: 123582 [13:27:30]line ФПД: 57298410613290 [13:27:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T132734&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123582&fm=57298410613290&tin=02508201610067®Number=0000000000092681&sum=0 [13:27:30]written 0, free lines is 4095 [13:27:30]OFD Sender: Processing packet 123582 [packets to send 7, broken 6] [13:27:30]ProducePacketName [13:27:30]name=ofd_packets/00123582 [13:27:30]OFD Sender: To server: pG, [13:27:30]CommunicateWithHost lk.salyk.kg:30040 [13:27:30]ConnectInit lk.salyk.kg [13:27:30]Connected sock=10 [13:27: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 EC 52 07 01 89 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 5E 00 00 00 F4 03 04 00 C6 6F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 34 1C D3 69 2A 2A F3 BA 6D CC E5 18 D9 A7 [13:27: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 42 1B 47 00 E7 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 BE E2 01 00 F4 03 04 00 8B 1B 48 67 B6 04 01 00 00 25 4C 1D 36 C4 F8 3D 28 [13:27:30]CommunicateWithHost err = 0 [13:27:30]CheckOFDResponse [13:27:30]1017 (14) - 77093643461234 [13:27:30]1041 (16) - 0000000000874881 [13:27:30]1040 (4) - 123582 [13:27:30]1012 (4) - 28.11.2024 07:28 [13:27:30]1206 (1) - 0 [13:27:30]OFD Sender: Remove packet 123582 [13:27:30]ProducePacketName [13:27:30]name=ofd_packets/00123582 [13:27:30]NVStorageDeleteData [13:27:31]Write to MH i2c: 01 00 00 8E 2D BB [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: 01 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: 01 07 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: 01 07 00 8E 2D 00 00 00 00 00 71 0C 3F [13:27:31]RasterBufferAndPrint [13:27:31]line [13:27:31]line [13:27:31]line [13:27:31]line [13:27:31]line [13:27:31]written 0, free lines is 3191 [13:27:31]MH_Cut [13:27:31]Write to MH i2c: D1 01 00 95 2D 01 94 [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: D1 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: D1 01 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: D1 01 00 95 2D 00 93 [13:27:31]Write to MH i2c: 01 00 00 96 2D C3 [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]OFD Sender: No OFD packet to send [13:27:32]*** Cut start [13:27:32]*** Partial cut [13:27:32]*** CUTSNS_PIN = 1 [13:27:32]*** CUTSNS_PIN = 0 [13:27:32]*** Brake cut motor [13:27:33]Read from MH i2c: 01 [13:27:33]MH_I2C_Read... [13:27:33]*** Stop cut motor [13:27:33]*** Cut end [13:27:33]Read from MH i2c: 01 07 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: 01 07 00 96 2D 00 00 00 00 00 FF 0F D8 [13:27:33]process_action close_receipt done [13:27:33]requested_data is exist [13:27:33]produce_requested_data [13:27:33]requested_item fm.sn is exist - process it [13:27:33]wFMCommunicate request_size=4 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 11 00 00 [13:27:33]Write to MH i2c: E2 08 00 97 2D 80 11 00 00 00 00 00 00 3E [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 17 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 17 00 97 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 95 [13:27: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:27:33]wFMCommunicate OK [13:27:33]requested_item fd.num is exist - process it [13:27:33]SAM_PROTO_GetFieldsCounters [13:27:33]wFMCommunicate request_size=4 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 13 00 00 [13:27:33]Write to MH i2c: E2 08 00 98 2D 80 13 00 00 00 00 00 00 41 [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 62 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 62 00 98 2D 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 E2 01 00 0E 04 04 00 2F 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 53 [13:27: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 BE E2 01 00 0E 04 04 00 2F 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 [13:27:33]wFMCommunicate OK [13:27:33]SAM_PROTO_GetFieldsCounters done [13:27:33]requested_item shift.num is exist - process it [13:27:33]requested_item shift.opened is exist - process it [13:27:33]req_shift_opened [13:27:33]FM_GetShiftState [13:27:33]SAM_PROTO_GetShiftState [13:27:33]wFMCommunicate request_size=4 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 13 01 00 [13:27:33]Write to MH i2c: E2 08 00 99 2D 80 13 01 00 00 00 00 00 43 [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 0E 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 0E 00 99 2D 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 4A [13:27:33]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [13:27:33]wFMCommunicate OK [13:27:33]SAM_PROTO_GetShiftState done [13:27:33]FM_GetShiftState done [13:27:33]req_shift_opened done [13:27:33]requested_item shift.open_date is exist - process it [13:27:33]req_shift_open_date [13:27:33]req_shift_open_date done [13:27:33]produce_requested_data done [13:27:33]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123582,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [13:27:33]process_action_free close_receipt [13:27:33]json_value_free [13:27:33]json_value_free done [13:27:33]process_json_proto returns [13:27:33]Send response to host [13:27:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123582,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [13:27:33]free response buf [13:27:33]execute_script done [13:27:33]execute_script returns [13:27:33]free content buf [13:27:33]Sock 8.Close socket [13:27:33]Sock 8.Thread stoped [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:36]OFD Sender: No OFD packet to send [13:30:41]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:21]OFD Sender: No OFD packet to send [13:32:26]accept exits with 9 [13:32:26]New connection [13:32:26]New thread 3066862948 created [13:32:26]Thread 3066719588 joined [13:32:26]Waiting for new connection... [13:32:26] Sock 9.Parse request [13:32:26]Sock 9.Check first char [13:32:26]Sock 9.First char is OK [13:32:26]request: POST /json_proto HTTP/1.0 [13:32:26]Method: POST [13:32:26]URL: /json_proto [13:32:26]Method is POST - this is cgi request [13:32:26]url: /json_proto [13:32:26]query_string will be loaded in cgi processing [13:32:26]execute_cgi json_proto POST (null) [13:32:26]execute_cgi path=json_proto method=POST [13:32:26]POST find Content-Length [13:32:26]Host: 172.17.37.4:8080 [13:32:26]Content-Length: 677 [13:32:26]Content-Type: application/json [13:32:26] [13:32:26]POST finish read [13:32:26]Found Content-Length = 677 [13:32:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718422", "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:32:26]execute_script... [13:32:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718422", "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:32:26]POST & json_proto [13:32:26]process_json_proto [13:32:26]json parsed OK: [13:32:26]protocol is kg_v1.0 [13:32:26]action value=close_receipt [13:32:26]process_action close_receipt [13:32:26]cmd_close_receipt [13:32:26]MH_GetDate [13:32:26]Write to MH i2c: F0 00 00 9A 2D B6 [13:32:26]Write i2c OK [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: F0 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: F0 09 00 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: F0 09 00 9A 2D 00 EF 70 48 67 1D 3A 47 67 D2 [13:32:26]GetLastDocTimeStamp 1732800454 [13:32:26]current date 1732800751 [13:32:26]FM_GetShiftState [13:32:26]SAM_PROTO_GetShiftState [13:32:26]wFMCommunicate request_size=4 [13:32:26]MH_SAM_APDU [13:32:26]CAPDU: 80 13 01 00 [13:32:26]Write to MH i2c: E2 08 00 9B 2D 80 13 01 00 00 00 00 00 45 [13:32:26]Write i2c OK [13:32:26]MH_I2C_Read... [13:32:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:26]Read from MH i2c: E2 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: E2 0E 00 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: E2 0E 00 9B 2D 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 4C [13:32:26]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [13:32:26]wFMCommunicate OK [13:32:26]SAM_PROTO_GetShiftState done [13:32:26]FM_GetShiftState done [13:32:26]opened in 1732752282 [13:32:26]opened+sec_in_day 1732838682 [13:32:26]quantity*price = 50010 [13:32:26]sum+1 = 50012 [13:32:26]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 СНО: Общий режим Чек 95 28.11.2024 13:32 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123583 ФПД: 14532639958984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T133231&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123583&fm=14532639958984&tin=02508201610067®Number=0000000000092681&sum=50000 [13:32:27]StoreToDocumentArchive [13:32:27]shift 559 fd 123583 [13:32:27]save to /storage/0559/doc_00123583 [13:32:27]save last doc name /storage/0559/doc_00123583 to /storage/kkm_last_doc_name [13:32:27]save OK [13:32:27]Clear old archive folders... [13:32:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:27]tlvbuf is 014E0B30 [13:32:27]SAM_PROTO_ClearQueue [13:32:27]wFMCommunicate request_size=4 [13:32:27]MH_SAM_APDU [13:32:27]CAPDU: 80 09 00 00 [13:32:27]Write to MH i2c: E2 08 00 A8 2D 80 09 00 00 00 00 00 00 47 [13:32:27]Write i2c OK [13:32:27]MH_I2C_Read... [13:32:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:27]Read from MH i2c: E2 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 03 00 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 03 00 A8 2D 00 90 00 49 [13:32:27]RAPDU: 90 00 [13:32:27]wFMCommunicate OK [13:32:27]SAM_PROTO_ClearQueue done [13:32:27]KKMCreateOFDPacket [13:32:27]OFDProtocolAddRootSTLVToBuf [13:32:27]FM_MakeSignedData [13:32:27]FM_MakeSignedData [13:32:27]SAM_PROTO_SignData [13:32:27]wFMCommunicate request_size=4 [13:32:27]MH_SAM_APDU [13:32:27]CAPDU: 80 0D 01 02 [13:32:27]Write to MH i2c: E2 08 00 A9 2D 80 0D 01 02 00 00 00 00 4F [13:32:27]Write i2c OK [13:32:27]MH_I2C_Read... [13:32:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:27]Read from MH i2c: E2 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 03 00 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 03 00 A9 2D 00 90 00 4A [13:32:27]RAPDU: 90 00 [13:32:27]wFMCommunicate OK [13:32:27]wFMCommunicate request_size=255 [13:32:27]MH_SAM_APDU [13:32: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 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 5F 00 00 00 F4 03 04 00 EF 70 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 0D [13:32:27]Write to MH i2c: E2 02 01 AA 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5F 00 00 00 F4 03 04 00 EF 70 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 0D 00 00 03 [13:32:27]Write i2c OK [13:32:27]MH_I2C_Read... [13:32:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:27]Read from MH i2c: E2 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 03 00 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 03 00 AA 2D 00 90 00 4B [13:32:27]RAPDU: 90 00 [13:32:27]wFMCommunicate OK [13:32:27]wFMCommunicate request_size=10 [13:32:27]MH_SAM_APDU [13:32:27]CAPDU: 80 0D 02 02 05 37 A4 D7 A7 C8 [13:32:27]Write to MH i2c: E2 0D 00 AB 2D 80 0D 02 02 05 00 37 A4 D7 A7 C8 00 00 7D [13:32:27]Write i2c OK [13:32:27]MH_I2C_Read... [13:32:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:27]Read from MH i2c: E2 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 03 00 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 03 00 AB 2D 00 90 00 4C [13:32:27]RAPDU: 90 00 [13:32:27]wFMCommunicate OK [13:32:27]wFMCommunicate request_size=4 [13:32:27]MH_SAM_APDU [13:32:27]CAPDU: 80 0D 03 02 [13:32:27]Write to MH i2c: E2 08 00 AC 2D 80 0D 03 02 00 00 00 00 54 [13:32:27]Write i2c OK [13:32:27]MH_I2C_Read... [13:32:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:27]Read from MH i2c: E2 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 0B 00 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 0B 00 AC 2D 00 49 6C 35 D8 B5 40 A5 5B 90 00 0C [13:32:27]RAPDU: 49 6C 35 D8 B5 40 A5 5B 90 00 [13:32:27]wFMCommunicate OK [13:32:27]SAM_PROTO_SignData done [13:32:27]FM_MakeSignedData done [13:32:27]CreateOFDProtocolMessage [13:32:27]wFMCommunicate request_size=4 [13:32:27]MH_SAM_APDU [13:32:27]CAPDU: 80 11 00 00 [13:32:27]Write to MH i2c: E2 08 00 AD 2D 80 11 00 00 00 00 00 00 54 [13:32:27]Write i2c OK [13:32:27]MH_I2C_Read... [13:32:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:27]Read from MH i2c: E2 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 17 00 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 17 00 AD 2D 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:32: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:32:27]wFMCommunicate OK [13:32:27]CreateOFDProtocolMessage done [13:32:27]OFDSenderStorePacket 123583 [13:32:27]StoreOFDPacket docnum=123583 [13:32: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 4A 92 07 01 B8 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5F 00 00 00 F4 03 04 00 EF 70 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 0D 37 A4 D7 A7 C8 49 6C 35 D8 B5 40 A5 5B [13:32:27]CheckFolder [13:32:27]dirname=/storage/ofd_packets [13:32:27]CheckFolder done [13:32:27]ProducePacketName [13:32:27]name=ofd_packets/00123583 [13:32:27]NVStorageSaveData ofd_packets/00123583 [13:32:27]File name is /storage/ofd_packets/00123583 [13:32:27]Write 301 bytes [13:32:27]NVStorageSaveData done [13:32:27]OFDSenderStorePacket done [13:32:27]KKMCreateOFDPacket done [13:32:27]NVStorageSaveData kkm_last_timestamp [13:32:27]File name is /storage/kkm_last_timestamp [13:32:27]Write 4 bytes [13:32:27]NVStorageSaveData done [13:32:27]ExternCall_PrintAddStr [13:32:27]wPrintStart [13:32:27]Write to MH i2c: 01 00 00 AE 2D DB [13:32:27]Write i2c OK [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: 01 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: 01 07 00 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: 01 07 00 AE 2D 00 00 00 00 00 FF 0F F0 [13:32:27]RasterBufferAndPrint [13:32:27]line Счет N : (1)718422 [13:32:27]line ИНН: 02508201610067 [13:32:27]line Контрольно-Кассовый Чек [13:32:27]line ПРОДАЖА [13:32:27]line ТРК (МРК, ГНК) : 12 [13:32:27]line Товар: 2710124130 [13:32:27]line Аи-92-К-4 [13:32:27]line 7.420 * 67.40 [13:32:27]line = 500.11 [13:32:27]line НДС 12% НСП 1% [13:32:27]line > о реализуемом товаре [13:32:27]line ОКРУГЛЕНИЕ: -0.11 [13:32:27]line ИТОГО: 500.00 [13:32:27]line Внесено: 500.00 [13:32:27]line СДАЧА: 0.00 [13:32:27]line НСП 1% : 4.43 [13:32:27]line НДС 12% : 53.11 [13:32:27]line Наличными: 500.00 [13:32:27]line Безнал.: 0.00 [13:32:27]line Место: АЗС № 64 "Партнер Нефть" [13:32:27]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:32:27]line СНО: Общий режим [13:32:27]line Чек 95 28.11.2024 13:32 [13:32:27]line Смена: 559 ФФД: 1.0 [13:32:27]line ЗНМ: 0300000033 [13:32:27]line РНМ: 0000000000092681 [13:32:27]line Версия ККМ: 001 [13:32:27]line ФМ: 0000000000874881 [13:32:27]line ФД: 123583 [13:32:27]line ФПД: 14532639958984 [13:32:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T133231&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123583&fm=14532639958984&tin=02508201610067®Number=0000000000092681&sum=50000 [13:32:27]written 0, free lines is 4095 [13:32:28]OFD Sender: Processing packet 123583 [packets to send 7, broken 6] [13:32:28]ProducePacketName [13:32:28]name=ofd_packets/00123583 [13:32:28]OFD Sender: To server: pG, [13:32:28]CommunicateWithHost lk.salyk.kg:30040 [13:32:28]ConnectInit lk.salyk.kg [13:32:28]Connected sock=10 [13:32: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 4A 92 07 01 B8 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5F 00 00 00 F4 03 04 00 EF 70 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 0D 37 A4 D7 A7 C8 49 6C 35 D8 B5 40 A5 5B [13:32: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 DA 0E 47 00 7A 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 BF E2 01 00 F4 03 04 00 B5 1C 48 67 B6 04 01 00 00 59 7B 1A AB 38 EA 59 9B [13:32:28]CommunicateWithHost err = 0 [13:32:28]CheckOFDResponse [13:32:28]1017 (14) - 77093643461234 [13:32:28]1041 (16) - 0000000000874881 [13:32:28]1040 (4) - 123583 [13:32:28]1012 (4) - 28.11.2024 07:33 [13:32:28]1206 (1) - 0 [13:32:28]OFD Sender: Remove packet 123583 [13:32:28]ProducePacketName [13:32:28]name=ofd_packets/00123583 [13:32:28]NVStorageDeleteData [13:32:28]Write to MH i2c: 01 00 00 D9 2D 06 [13:32:28]Write i2c OK [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: 01 [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: 01 07 00 [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: 01 07 00 D9 2D 00 00 00 00 00 4F 0C 68 [13:32:28]RasterBufferAndPrint [13:32:28]line [13:32:28]line [13:32:28]line [13:32:28]line [13:32:28]line [13:32:28]written 0, free lines is 3153 [13:32:28]MH_Cut [13:32:28]Write to MH i2c: D1 01 00 E0 2D 01 DF [13:32:28]Write i2c OK [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: D1 [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: D1 01 00 [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: D1 01 00 E0 2D 00 DE [13:32:28]Write to MH i2c: 01 00 00 E1 2D 0E [13:32:28]Write i2c OK [13:32:28]MH_I2C_Read... [13:32:28]OFD Sender: No OFD packet to send [13:32:29]*** Cut start [13:32:29]*** Partial cut [13:32:29]*** CUTSNS_PIN = 1 [13:32:29]*** CUTSNS_PIN = 0 [13:32:30]*** Brake cut motor [13:32:30]Read from MH i2c: 01 [13:32:30]MH_I2C_Read... [13:32:30]*** Stop cut motor [13:32:30]*** Cut end [13:32:30]Read from MH i2c: 01 07 00 [13:32:30]MH_I2C_Read... [13:32:30]Read from MH i2c: 01 07 00 E1 2D 00 00 00 00 00 FF 0F 23 [13:32:30]process_action close_receipt done [13:32:30]requested_data is exist [13:32:30]produce_requested_data [13:32:30]requested_item fm.sn is exist - process it [13:32:30]wFMCommunicate request_size=4 [13:32:30]MH_SAM_APDU [13:32:30]CAPDU: 80 11 00 00 [13:32:30]Write to MH i2c: E2 08 00 E2 2D 80 11 00 00 00 00 00 00 89 [13:32:30]Write i2c OK [13:32:30]MH_I2C_Read... [13:32:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:30]Read from MH i2c: E2 [13:32:30]MH_I2C_Read... [13:32:30]Read from MH i2c: E2 17 00 [13:32:30]MH_I2C_Read... [13:32:30]Read from MH i2c: E2 17 00 E2 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E0 [13:32: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:32:30]wFMCommunicate OK [13:32:30]requested_item fd.num is exist - process it [13:32:30]SAM_PROTO_GetFieldsCounters [13:32:30]wFMCommunicate request_size=4 [13:32:30]MH_SAM_APDU [13:32:30]CAPDU: 80 13 00 00 [13:32:30]Write to MH i2c: E2 08 00 E3 2D 80 13 00 00 00 00 00 00 8C [13:32:30]Write i2c OK [13:32:30]MH_I2C_Read... [13:32:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:30]Read from MH i2c: E2 [13:32:30]MH_I2C_Read... [13:32:30]Read from MH i2c: E2 62 00 [13:32:30]MH_I2C_Read... [13:32:30]Read from MH i2c: E2 62 00 E3 2D 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 E2 01 00 0E 04 04 00 2F 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 A2 [13:32: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 BF E2 01 00 0E 04 04 00 2F 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 [13:32:30]wFMCommunicate OK [13:32:30]SAM_PROTO_GetFieldsCounters done [13:32:30]requested_item shift.num is exist - process it [13:32:30]requested_item shift.opened is exist - process it [13:32:30]req_shift_opened [13:32:30]FM_GetShiftState [13:32:30]SAM_PROTO_GetShiftState [13:32:30]wFMCommunicate request_size=4 [13:32:30]MH_SAM_APDU [13:32:30]CAPDU: 80 13 01 00 [13:32:30]Write to MH i2c: E2 08 00 E4 2D 80 13 01 00 00 00 00 00 8E [13:32:30]Write i2c OK [13:32:30]MH_I2C_Read... [13:32:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:30]Read from MH i2c: E2 [13:32:30]MH_I2C_Read... [13:32:30]Read from MH i2c: E2 0E 00 [13:32:30]MH_I2C_Read... [13:32:30]Read from MH i2c: E2 0E 00 E4 2D 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 95 [13:32:30]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [13:32:30]wFMCommunicate OK [13:32:30]SAM_PROTO_GetShiftState done [13:32:30]FM_GetShiftState done [13:32:30]req_shift_opened done [13:32:30]requested_item shift.open_date is exist - process it [13:32:30]req_shift_open_date [13:32:30]req_shift_open_date done [13:32:30]produce_requested_data done [13:32:30]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123583,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [13:32:30]process_action_free close_receipt [13:32:30]json_value_free [13:32:30]json_value_free done [13:32:30]process_json_proto returns [13:32:30]Send response to host [13:32:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123583,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [13:32:30]free response buf [13:32:30]execute_script done [13:32:30]execute_script returns [13:32:30]free content buf [13:32:30]Sock 9.Close socket [13:32:30]Sock 9.Thread stoped [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:17]accept exits with 8 [13:42:17]New connection [13:42:17]New thread 3066719588 created [13:42:17]Thread 3066862948 joined [13:42:17]Waiting for new connection... [13:42:17] Sock 8.Parse request [13:42:17]Sock 8.Check first char [13:42:17]Sock 8.First char is OK [13:42:17]request: POST /json_proto HTTP/1.0 [13:42:17]Method: POST [13:42:17]URL: /json_proto [13:42:17]Method is POST - this is cgi request [13:42:17]url: /json_proto [13:42:17]query_string will be loaded in cgi processing [13:42:17]execute_cgi json_proto POST (null) [13:42:17]execute_cgi path=json_proto method=POST [13:42:17]POST find Content-Length [13:42:17]Host: 172.17.37.4:8080 [13:42:17]Content-Length: 792 [13:42:17]Content-Type: application/json [13:42:17] [13:42:17]POST finish read [13:42:17]Found Content-Length = 792 [13:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718423", "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" : 22.260, "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" ] } } [13:42:17]execute_script... [13:42: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)718423", "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" : 22.260, "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" ] } } [13:42:17]POST & json_proto [13:42:17]process_json_proto [13:42:17]json parsed OK: [13:42:17]protocol is kg_v1.0 [13:42:17]action value=close_receipt [13:42:17]process_action close_receipt [13:42:17]cmd_close_receipt [13:42:17]MH_GetDate [13:42:17]Write to MH i2c: F0 00 00 E5 2D 01 [13:42:17]Write i2c OK [13:42:17]MH_I2C_Read... [13:42:17]Read from MH i2c: F0 [13:42:17]MH_I2C_Read... [13:42:17]Read from MH i2c: F0 09 00 [13:42:17]MH_I2C_Read... [13:42:17]Read from MH i2c: F0 09 00 E5 2D 00 3E 73 48 67 1D 3A 47 67 6F [13:42:17]GetLastDocTimeStamp 1732800751 [13:42:17]current date 1732801342 [13:42:17]FM_GetShiftState [13:42:17]SAM_PROTO_GetShiftState [13:42:17]wFMCommunicate request_size=4 [13:42:17]MH_SAM_APDU [13:42:17]CAPDU: 80 13 01 00 [13:42:17]Write to MH i2c: E2 08 00 E6 2D 80 13 01 00 00 00 00 00 90 [13:42:17]Write i2c OK [13:42:17]MH_I2C_Read... [13:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:17]Read from MH i2c: E2 [13:42:17]MH_I2C_Read... [13:42:17]Read from MH i2c: E2 0E 00 [13:42:17]MH_I2C_Read... [13:42:17]Read from MH i2c: E2 0E 00 E6 2D 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 97 [13:42:17]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [13:42:17]wFMCommunicate OK [13:42:17]SAM_PROTO_GetShiftState done [13:42:17]FM_GetShiftState done [13:42:17]opened in 1732752282 [13:42:17]opened+sec_in_day 1732838682 [13:42:17]quantity*price = 0 [13:42:17]sum+1 = 1 [13:42:17]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 СНО: Общий режим Чек 96 28.11.2024 13:42 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 89335 ФМ: 0000000000874881 ФД: 123584 ФПД: 62527767973456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T134222&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123584&fm=62527767973456&tin=02508201610067®Number=0000000000092681&sum=0 [13:42:18]StoreToDocumentArchive [13:42:18]shift 559 fd 123584 [13:42:18]save to /storage/0559/doc_00123584 [13:42:18]save last doc name /storage/0559/doc_00123584 to /storage/kkm_last_doc_name [13:42:18]save OK [13:42:18]Clear old archive folders... [13:42:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:18]tlvbuf is 01481470 [13:42:18]SAM_PROTO_ClearQueue [13:42:18]wFMCommunicate request_size=4 [13:42:18]MH_SAM_APDU [13:42:18]CAPDU: 80 09 00 00 [13:42:18]Write to MH i2c: E2 08 00 F3 2D 80 09 00 00 00 00 00 00 92 [13:42:18]Write i2c OK [13:42:18]MH_I2C_Read... [13:42:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:18]Read from MH i2c: E2 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 03 00 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 03 00 F3 2D 00 90 00 94 [13:42:18]RAPDU: 90 00 [13:42:18]wFMCommunicate OK [13:42:18]SAM_PROTO_ClearQueue done [13:42:18]KKMCreateOFDPacket [13:42:18]OFDProtocolAddRootSTLVToBuf [13:42:18]FM_MakeSignedData [13:42:18]FM_MakeSignedData [13:42:18]SAM_PROTO_SignData [13:42:18]wFMCommunicate request_size=4 [13:42:18]MH_SAM_APDU [13:42:18]CAPDU: 80 0D 01 02 [13:42:18]Write to MH i2c: E2 08 00 F4 2D 80 0D 01 02 00 00 00 00 9A [13:42:18]Write i2c OK [13:42:18]MH_I2C_Read... [13:42:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:18]Read from MH i2c: E2 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 03 00 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 03 00 F4 2D 00 90 00 95 [13:42:18]RAPDU: 90 00 [13:42:18]wFMCommunicate OK [13:42:18]wFMCommunicate request_size=255 [13:42:18]MH_SAM_APDU [13:42: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 F4 56 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 60 00 00 00 F4 03 04 00 3E 73 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 38 [13:42:18]Write to MH i2c: E2 02 01 F5 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 60 00 00 00 F4 03 04 00 3E 73 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 38 00 00 BE [13:42:18]Write i2c OK [13:42:18]MH_I2C_Read... [13:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:18]Read from MH i2c: E2 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 03 00 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 03 00 F5 2D 00 90 00 96 [13:42:18]RAPDU: 90 00 [13:42:18]wFMCommunicate OK [13:42:18]wFMCommunicate request_size=10 [13:42:18]MH_SAM_APDU [13:42:18]CAPDU: 80 0D 02 02 05 DE 61 66 0E 50 [13:42:18]Write to MH i2c: E2 0D 00 F6 2D 80 0D 02 02 05 00 DE 61 66 0E 50 00 00 AA [13:42:18]Write i2c OK [13:42:18]MH_I2C_Read... [13:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:18]Read from MH i2c: E2 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 03 00 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 03 00 F6 2D 00 90 00 97 [13:42:18]RAPDU: 90 00 [13:42:18]wFMCommunicate OK [13:42:18]wFMCommunicate request_size=4 [13:42:18]MH_SAM_APDU [13:42:18]CAPDU: 80 0D 03 02 [13:42:18]Write to MH i2c: E2 08 00 F7 2D 80 0D 03 02 00 00 00 00 9F [13:42:18]Write i2c OK [13:42:18]MH_I2C_Read... [13:42:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:18]Read from MH i2c: E2 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 0B 00 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 0B 00 F7 2D 00 7C C0 75 0D E3 CA 64 1A 90 00 89 [13:42:18]RAPDU: 7C C0 75 0D E3 CA 64 1A 90 00 [13:42:18]wFMCommunicate OK [13:42:18]SAM_PROTO_SignData done [13:42:18]FM_MakeSignedData done [13:42:18]CreateOFDProtocolMessage [13:42:18]wFMCommunicate request_size=4 [13:42:18]MH_SAM_APDU [13:42:18]CAPDU: 80 11 00 00 [13:42:18]Write to MH i2c: E2 08 00 F8 2D 80 11 00 00 00 00 00 00 9F [13:42:18]Write i2c OK [13:42:18]MH_I2C_Read... [13:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:18]Read from MH i2c: E2 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 17 00 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: E2 17 00 F8 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 F6 [13:42:18]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:18]wFMCommunicate OK [13:42:18]CreateOFDProtocolMessage done [13:42:18]OFDSenderStorePacket 123584 [13:42:18]StoreOFDPacket docnum=123584 [13:42: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 4A D6 07 01 FE 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 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 60 00 00 00 F4 03 04 00 3E 73 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 38 DE 61 66 0E 50 7C C0 75 0D E3 CA 64 1A [13:42:18]CheckFolder [13:42:18]dirname=/storage/ofd_packets [13:42:18]CheckFolder done [13:42:18]ProducePacketName [13:42:18]name=ofd_packets/00123584 [13:42:18]NVStorageSaveData ofd_packets/00123584 [13:42:18]File name is /storage/ofd_packets/00123584 [13:42:18]Write 301 bytes [13:42:18]NVStorageSaveData done [13:42:18]OFDSenderStorePacket done [13:42:18]KKMCreateOFDPacket done [13:42:18]NVStorageSaveData kkm_last_timestamp [13:42:18]File name is /storage/kkm_last_timestamp [13:42:18]Write 4 bytes [13:42:18]NVStorageSaveData done [13:42:18]ExternCall_PrintAddStr [13:42:18]wPrintStart [13:42:18]Write to MH i2c: 01 00 00 F9 2D 26 [13:42:18]Write i2c OK [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: 01 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: 01 07 00 [13:42:18]MH_I2C_Read... [13:42:18]Read from MH i2c: 01 07 00 F9 2D 00 00 00 00 00 FF 0F 3B [13:42:18]RasterBufferAndPrint [13:42:18]line Счет N : (1)718423 [13:42:18]line ИНН: 02508201610067 [13:42:18]line Контрольно-Кассовый Чек [13:42:18]line ПРОДАЖА [13:42:18]line ТРК (МРК, ГНК) : 22 [13:42:18]line Товар: 2710124130 [13:42:18]line Аи-92-К-4 [13:42:18]line 22.260 * 0.00 [13:42:18]line = 0.00 [13:42:18]line НДС 12% НСП 1% [13:42:18]line > о реализуемом товаре [13:42:18]line ИТОГО: 0.00 [13:42:18]line НСП 1% : 0.00 [13:42:18]line НДС 12% : 0.00 [13:42:18]line Наличными: 0.00 [13:42:18]line Безнал.: 0.00 [13:42:18]line Место: АЗС № 64 "Партнер Нефть" [13:42:18]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [13:42:18]line СНО: Общий режим [13:42:18]line Чек 96 28.11.2024 13:42 [13:42:18]line Смена: 559 ФФД: 1.0 [13:42:18]line ЗНМ: 0300000033 [13:42:18]line РНМ: 0000000000092681 [13:42:18]line Версия ККМ: 001 [13:42:18]line Талоны: Топливная Карта [13:42:18]line 89335 [13:42:18]line ФМ: 0000000000874881 [13:42:18]line ФД: 123584 [13:42:18]line ФПД: 62527767973456 [13:42:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T134222&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123584&fm=62527767973456&tin=02508201610067®Number=0000000000092681&sum=0 [13:42:18]written 0, free lines is 4095 [13:42:18]OFD Sender: Processing packet 123584 [packets to send 7, broken 6] [13:42:18]ProducePacketName [13:42:18]name=ofd_packets/00123584 [13:42:18]OFD Sender: To server: pG, [13:42:18]CommunicateWithHost lk.salyk.kg:30040 [13:42:18]ConnectInit lk.salyk.kg [13:42:19]Connected sock=10 [13:42: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 4A D6 07 01 FE 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F4 56 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 60 00 00 00 F4 03 04 00 3E 73 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 38 DE 61 66 0E 50 7C C0 75 0D E3 CA 64 1A [13:42: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 FF 99 47 00 E5 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 C0 E2 01 00 F4 03 04 00 03 1F 48 67 B6 04 01 00 00 42 B0 3B 93 35 FB FB BC [13:42:19]CommunicateWithHost err = 0 [13:42:19]CheckOFDResponse [13:42:19]1017 (14) - 77093643461234 [13:42:19]1041 (16) - 0000000000874881 [13:42:19]1040 (4) - 123584 [13:42:19]1012 (4) - 28.11.2024 07:42 [13:42:19]1206 (1) - 0 [13:42:19]OFD Sender: Remove packet 123584 [13:42:19]ProducePacketName [13:42:19]name=ofd_packets/00123584 [13:42:19]NVStorageDeleteData [13:42:19]Write to MH i2c: 01 00 00 23 2E 51 [13:42:19]Write i2c OK [13:42:19]MH_I2C_Read... [13:42:19]Read from MH i2c: 01 [13:42:19]MH_I2C_Read... [13:42:19]Read from MH i2c: 01 07 00 [13:42:19]MH_I2C_Read... [13:42:19]Read from MH i2c: 01 07 00 23 2E 00 00 00 00 00 67 0C CB [13:42:19]RasterBufferAndPrint [13:42:19]line [13:42:19]line [13:42:19]line [13:42:19]line [13:42:19]line [13:42:19]written 0, free lines is 3180 [13:42:19]MH_Cut [13:42:19]Write to MH i2c: D1 01 00 2A 2E 01 2A [13:42:19]Write i2c OK [13:42:19]MH_I2C_Read... [13:42:19]Read from MH i2c: D1 [13:42:19]MH_I2C_Read... [13:42:19]Read from MH i2c: D1 01 00 [13:42:19]MH_I2C_Read... [13:42:19]Read from MH i2c: D1 01 00 2A 2E 00 29 [13:42:19]Write to MH i2c: 01 00 00 2B 2E 59 [13:42:19]Write i2c OK [13:42:19]MH_I2C_Read... [13:42:19]OFD Sender: No OFD packet to send [13:42:20]*** Cut start [13:42:20]*** Partial cut [13:42:20]*** CUTSNS_PIN = 1 [13:42:20]*** CUTSNS_PIN = 0 [13:42:20]*** Brake cut motor [13:42:21]Read from MH i2c: 01 [13:42:21]MH_I2C_Read... [13:42:21]*** Stop cut motor [13:42:21]*** Cut end [13:42:21]Read from MH i2c: 01 07 00 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: 01 07 00 2B 2E 00 00 00 00 00 FF 0F 6E [13:42:21]process_action close_receipt done [13:42:21]requested_data is exist [13:42:21]produce_requested_data [13:42:21]requested_item fm.sn is exist - process it [13:42:21]wFMCommunicate request_size=4 [13:42:21]MH_SAM_APDU [13:42:21]CAPDU: 80 11 00 00 [13:42:21]Write to MH i2c: E2 08 00 2C 2E 80 11 00 00 00 00 00 00 D4 [13:42:21]Write i2c OK [13:42:21]MH_I2C_Read... [13:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:21]Read from MH i2c: E2 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 17 00 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 17 00 2C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 2B [13:42:21]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:21]wFMCommunicate OK [13:42:21]requested_item fd.num is exist - process it [13:42:21]SAM_PROTO_GetFieldsCounters [13:42:21]wFMCommunicate request_size=4 [13:42:21]MH_SAM_APDU [13:42:21]CAPDU: 80 13 00 00 [13:42:21]Write to MH i2c: E2 08 00 2D 2E 80 13 00 00 00 00 00 00 D7 [13:42:21]Write i2c OK [13:42:21]MH_I2C_Read... [13:42:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:21]Read from MH i2c: E2 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 62 00 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 62 00 2D 2E 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 E2 01 00 0E 04 04 00 2F 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 F1 [13:42: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 C0 E2 01 00 0E 04 04 00 2F 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 [13:42:21]wFMCommunicate OK [13:42:21]SAM_PROTO_GetFieldsCounters done [13:42:21]requested_item shift.num is exist - process it [13:42:21]requested_item shift.opened is exist - process it [13:42:21]req_shift_opened [13:42:21]FM_GetShiftState [13:42:21]SAM_PROTO_GetShiftState [13:42:21]wFMCommunicate request_size=4 [13:42:21]MH_SAM_APDU [13:42:21]CAPDU: 80 13 01 00 [13:42:21]Write to MH i2c: E2 08 00 2E 2E 80 13 01 00 00 00 00 00 D9 [13:42:21]Write i2c OK [13:42:21]MH_I2C_Read... [13:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:21]Read from MH i2c: E2 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 0E 00 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 0E 00 2E 2E 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 E0 [13:42:21]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [13:42:21]wFMCommunicate OK [13:42:21]SAM_PROTO_GetShiftState done [13:42:21]FM_GetShiftState done [13:42:21]req_shift_opened done [13:42:21]requested_item shift.open_date is exist - process it [13:42:21]req_shift_open_date [13:42:21]req_shift_open_date done [13:42:21]produce_requested_data done [13:42:21]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123584,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [13:42:21]process_action_free close_receipt [13:42:21]json_value_free [13:42:21]json_value_free done [13:42:21]process_json_proto returns [13:42:21]Send response to host [13:42:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123584,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [13:42:21]free response buf [13:42:21]execute_script done [13:42:21]execute_script returns [13:42:21]free content buf [13:42:21]Sock 8.Close socket [13:42:21]Sock 8.Thread stoped [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:26]accept exits with 9 [14:02:26]New connection [14:02:26]New thread 3066862948 created [14:02:26]Thread 3066719588 joined [14:02:26]Waiting for new connection... [14:02:26] Sock 9.Parse request [14:02:26]Sock 9.Check first char [14:02:26]Sock 9.First char is OK [14:02:26]request: POST /json_proto HTTP/1.0 [14:02:26]Method: POST [14:02:26]URL: /json_proto [14:02:26]Method is POST - this is cgi request [14:02:26]url: /json_proto [14:02:26]query_string will be loaded in cgi processing [14:02:26]execute_cgi json_proto POST (null) [14:02:26]execute_cgi path=json_proto method=POST [14:02:26]POST find Content-Length [14:02:26]Host: 172.17.37.4:8080 [14:02:26]Content-Length: 677 [14:02:26]Content-Type: application/json [14:02:26] [14:02:26]POST finish read [14:02:26]Found Content-Length = 677 [14:02:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718424", "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" : 4.600, "sum" : 310.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:26]execute_script... [14:02:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718424", "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" : 4.600, "sum" : 310.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:26]POST & json_proto [14:02:26]process_json_proto [14:02:26]json parsed OK: [14:02:26]protocol is kg_v1.0 [14:02:26]action value=close_receipt [14:02:26]process_action close_receipt [14:02:26]cmd_close_receipt [14:02:26]MH_GetDate [14:02:26]Write to MH i2c: F0 00 00 2F 2E 4C [14:02:26]Write i2c OK [14:02:26]MH_I2C_Read... [14:02:26]Read from MH i2c: F0 [14:02:26]MH_I2C_Read... [14:02:26]Read from MH i2c: F0 09 00 [14:02:26]MH_I2C_Read... [14:02:26]Read from MH i2c: F0 09 00 2F 2E 00 F7 77 48 67 1D 3A 47 67 77 [14:02:26]GetLastDocTimeStamp 1732801342 [14:02:26]current date 1732802551 [14:02:26]FM_GetShiftState [14:02:26]SAM_PROTO_GetShiftState [14:02:26]wFMCommunicate request_size=4 [14:02:26]MH_SAM_APDU [14:02:26]CAPDU: 80 13 01 00 [14:02:26]Write to MH i2c: E2 08 00 30 2E 80 13 01 00 00 00 00 00 DB [14:02:26]Write i2c OK [14:02:26]MH_I2C_Read... [14:02:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:26]Read from MH i2c: E2 [14:02:26]MH_I2C_Read... [14:02:26]Read from MH i2c: E2 0E 00 [14:02:26]MH_I2C_Read... [14:02:26]Read from MH i2c: E2 0E 00 30 2E 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 E2 [14:02:26]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:02:26]wFMCommunicate OK [14:02:26]SAM_PROTO_GetShiftState done [14:02:26]FM_GetShiftState done [14:02:26]opened in 1732752282 [14:02:26]opened+sec_in_day 1732838682 [14:02:26]quantity*price = 31004 [14:02:26]sum+1 = 31005 [14:02:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.74 НДС 12% : 32.92 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 97 28.11.2024 14:02 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123585 ФПД: 150400801850547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T140231&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123585&fm=150400801850547&tin=02508201610067®Number=0000000000092681&sum=31000 [14:02:27]StoreToDocumentArchive [14:02:27]shift 559 fd 123585 [14:02:27]save to /storage/0559/doc_00123585 [14:02:27]save last doc name /storage/0559/doc_00123585 to /storage/kkm_last_doc_name [14:02:27]save OK [14:02:27]Clear old archive folders... [14:02:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:27]tlvbuf is 01513980 [14:02:27]SAM_PROTO_ClearQueue [14:02:27]wFMCommunicate request_size=4 [14:02:27]MH_SAM_APDU [14:02:27]CAPDU: 80 09 00 00 [14:02:27]Write to MH i2c: E2 08 00 3D 2E 80 09 00 00 00 00 00 00 DD [14:02:27]Write i2c OK [14:02:27]MH_I2C_Read... [14:02:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:27]Read from MH i2c: E2 [14:02:27]MH_I2C_Read... [14:02:27]Read from MH i2c: E2 03 00 [14:02:27]MH_I2C_Read... [14:02:27]Read from MH i2c: E2 03 00 3D 2E 00 90 00 DF [14:02:27]RAPDU: 90 00 [14:02:27]wFMCommunicate OK [14:02:27]SAM_PROTO_ClearQueue done [14:02:27]KKMCreateOFDPacket [14:02:27]OFDProtocolAddRootSTLVToBuf [14:02:27]FM_MakeSignedData [14:02:27]FM_MakeSignedData [14:02:27]SAM_PROTO_SignData [14:02:27]wFMCommunicate request_size=4 [14:02:27]MH_SAM_APDU [14:02:27]CAPDU: 80 0D 01 02 [14:02:27]Write to MH i2c: E2 08 00 3E 2E 80 0D 01 02 00 00 00 00 E5 [14:02:27]Write i2c OK [14:02:27]MH_I2C_Read... [14:02:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:27]Read from MH i2c: E2 [14:02:27]MH_I2C_Read... [14:02:27]Read from MH i2c: E2 03 00 [14:02:27]MH_I2C_Read... [14:02:27]Read from MH i2c: E2 03 00 3E 2E 00 90 00 E0 [14:02:27]RAPDU: 90 00 [14:02:27]wFMCommunicate OK [14:02:27]wFMCommunicate request_size=255 [14:02:27]MH_SAM_APDU [14:02: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 F8 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 1C 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 F7 77 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 88 [14:02:27]Write to MH i2c: E2 02 01 3F 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 1C 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 F7 77 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 88 00 00 F7 [14:02:27]Write i2c OK [14:02:27]MH_I2C_Read... [14:02:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:28]Read from MH i2c: E2 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: E2 03 00 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: E2 03 00 3F 2E 00 90 00 E1 [14:02:28]RAPDU: 90 00 [14:02:28]wFMCommunicate OK [14:02:28]wFMCommunicate request_size=10 [14:02:28]MH_SAM_APDU [14:02:28]CAPDU: 80 0D 02 02 05 C9 EA 5E 44 B3 [14:02:28]Write to MH i2c: E2 0D 00 40 2E 80 0D 02 02 05 00 C9 EA 5E 44 B3 00 00 FA [14:02:28]Write i2c OK [14:02:28]MH_I2C_Read... [14:02:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:28]Read from MH i2c: E2 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: E2 03 00 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: E2 03 00 40 2E 00 90 00 E2 [14:02:28]RAPDU: 90 00 [14:02:28]wFMCommunicate OK [14:02:28]wFMCommunicate request_size=4 [14:02:28]MH_SAM_APDU [14:02:28]CAPDU: 80 0D 03 02 [14:02:28]Write to MH i2c: E2 08 00 41 2E 80 0D 03 02 00 00 00 00 EA [14:02:28]Write i2c OK [14:02:28]MH_I2C_Read... [14:02:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:28]Read from MH i2c: E2 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: E2 0B 00 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: E2 0B 00 41 2E 00 C4 C0 97 D8 3F 16 27 5C 90 00 B6 [14:02:28]RAPDU: C4 C0 97 D8 3F 16 27 5C 90 00 [14:02:28]wFMCommunicate OK [14:02:28]SAM_PROTO_SignData done [14:02:28]FM_MakeSignedData done [14:02:28]CreateOFDProtocolMessage [14:02:28]wFMCommunicate request_size=4 [14:02:28]MH_SAM_APDU [14:02:28]CAPDU: 80 11 00 00 [14:02:28]Write to MH i2c: E2 08 00 42 2E 80 11 00 00 00 00 00 00 EA [14:02:28]Write i2c OK [14:02:28]MH_I2C_Read... [14:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:28]Read from MH i2c: E2 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: E2 17 00 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: E2 17 00 42 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 41 [14:02: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:02:28]wFMCommunicate OK [14:02:28]CreateOFDProtocolMessage done [14:02:28]OFDSenderStorePacket 123585 [14:02:28]StoreOFDPacket docnum=123585 [14:02:28]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 5C 6F 07 01 66 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 F8 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 1C 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 F7 77 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 88 C9 EA 5E 44 B3 C4 C0 97 D8 3F 16 27 5C [14:02:28]CheckFolder [14:02:28]dirname=/storage/ofd_packets [14:02:28]CheckFolder done [14:02:28]ProducePacketName [14:02:28]name=ofd_packets/00123585 [14:02:28]NVStorageSaveData ofd_packets/00123585 [14:02:28]File name is /storage/ofd_packets/00123585 [14:02:28]Write 301 bytes [14:02:28]NVStorageSaveData done [14:02:28]OFDSenderStorePacket done [14:02:28]KKMCreateOFDPacket done [14:02:28]NVStorageSaveData kkm_last_timestamp [14:02:28]File name is /storage/kkm_last_timestamp [14:02:28]Write 4 bytes [14:02:28]NVStorageSaveData done [14:02:28]ExternCall_PrintAddStr [14:02:28]wPrintStart [14:02:28]Write to MH i2c: 01 00 00 43 2E 71 [14:02:28]Write i2c OK [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: 01 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: 01 07 00 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: 01 07 00 43 2E 00 00 00 00 00 FF 0F 86 [14:02:28]RasterBufferAndPrint [14:02:28]line Счет N : (1)718424 [14:02:28]line ИНН: 02508201610067 [14:02:28]line Контрольно-Кассовый Чек [14:02:28]line ПРОДАЖА [14:02:28]line ТРК (МРК, ГНК) : 42 [14:02:28]line Товар: 2710124130 [14:02:28]line Аи-92-К-4 [14:02:28]line 4.600 * 67.40 [14:02:28]line = 310.04 [14:02:28]line НДС 12% НСП 1% [14:02:28]line > о реализуемом товаре [14:02:28]line ОКРУГЛЕНИЕ: -0.04 [14:02:28]line ИТОГО: 310.00 [14:02:28]line Внесено: 310.00 [14:02:28]line СДАЧА: 0.00 [14:02:28]line НСП 1% : 2.74 [14:02:28]line НДС 12% : 32.92 [14:02:28]line Наличными: 310.00 [14:02:28]line Безнал.: 0.00 [14:02:28]line Место: АЗС № 64 "Партнер Нефть" [14:02:28]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:02:28]line СНО: Общий режим [14:02:28]line Чек 97 28.11.2024 14:02 [14:02:28]line Смена: 559 ФФД: 1.0 [14:02:28]line ЗНМ: 0300000033 [14:02:28]line РНМ: 0000000000092681 [14:02:28]line Версия ККМ: 001 [14:02:28]line ФМ: 0000000000874881 [14:02:28]line ФД: 123585 [14:02:28]line ФПД: 150400801850547 [14:02:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T140231&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123585&fm=150400801850547&tin=02508201610067®Number=0000000000092681&sum=31000 [14:02:28]OFD Sender: Processing packet 123585 [packets to send 7, broken 6] [14:02:28]ProducePacketName [14:02:28]name=ofd_packets/00123585 [14:02:28]OFD Sender: To server: pG, [14:02:28]CommunicateWithHost lk.salyk.kg:30040 [14:02:28]ConnectInit lk.salyk.kg [14:02:28]written 0, free lines is 4095 [14:02:28]Connected sock=10 [14:02: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 5C 6F 07 01 66 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 F8 11 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 1C 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 F7 77 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 88 C9 EA 5E 44 B3 C4 C0 97 D8 3F 16 27 5C [14:02: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 08 0D 47 00 E6 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C1 E2 01 00 F4 03 04 00 BD 23 48 67 B6 04 01 00 00 37 0F 41 37 49 72 52 AD [14:02:28]CommunicateWithHost err = 0 [14:02:28]CheckOFDResponse [14:02:28]1017 (14) - 77093643461234 [14:02:28]1041 (16) - 0000000000874881 [14:02:28]1040 (4) - 123585 [14:02:28]1012 (4) - 28.11.2024 08:03 [14:02:28]1206 (1) - 0 [14:02:28]OFD Sender: Remove packet 123585 [14:02:28]ProducePacketName [14:02:28]name=ofd_packets/00123585 [14:02:28]NVStorageDeleteData [14:02:28]Write to MH i2c: 01 00 00 6E 2E 9C [14:02:28]Write i2c OK [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: 01 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: 01 07 00 [14:02:28]MH_I2C_Read... [14:02:28]Read from MH i2c: 01 07 00 6E 2E 00 00 00 00 00 48 0C F7 [14:02:28]RasterBufferAndPrint [14:02:28]line [14:02:28]line [14:02:28]line [14:02:28]line [14:02:28]line [14:02:28]written 0, free lines is 3148 [14:02:29]MH_Cut [14:02:29]Write to MH i2c: D1 01 00 75 2E 01 75 [14:02:29]Write i2c OK [14:02:29]MH_I2C_Read... [14:02:29]Read from MH i2c: D1 [14:02:29]MH_I2C_Read... [14:02:29]Read from MH i2c: D1 01 00 [14:02:29]MH_I2C_Read... [14:02:29]Read from MH i2c: D1 01 00 75 2E 00 74 [14:02:29]Write to MH i2c: 01 00 00 76 2E A4 [14:02:29]Write i2c OK [14:02:29]MH_I2C_Read... [14:02:29]OFD Sender: No OFD packet to send [14:02:30]*** Cut start [14:02:30]*** Partial cut [14:02:30]*** CUTSNS_PIN = 1 [14:02:30]*** CUTSNS_PIN = 0 [14:02:30]*** Brake cut motor [14:02:30]Read from MH i2c: 01 [14:02:30]MH_I2C_Read... [14:02:30]*** Stop cut motor [14:02:31]*** Cut end [14:02:31]Read from MH i2c: 01 07 00 [14:02:31]MH_I2C_Read... [14:02:31]Read from MH i2c: 01 07 00 76 2E 00 00 00 00 00 FF 0F B9 [14:02:31]process_action close_receipt done [14:02:31]requested_data is exist [14:02:31]produce_requested_data [14:02:31]requested_item fm.sn is exist - process it [14:02:31]wFMCommunicate request_size=4 [14:02:31]MH_SAM_APDU [14:02:31]CAPDU: 80 11 00 00 [14:02:31]Write to MH i2c: E2 08 00 77 2E 80 11 00 00 00 00 00 00 1F [14:02:31]Write i2c OK [14:02:31]MH_I2C_Read... [14:02:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:31]Read from MH i2c: E2 [14:02:31]MH_I2C_Read... [14:02:31]Read from MH i2c: E2 17 00 [14:02:31]MH_I2C_Read... [14:02:31]Read from MH i2c: E2 17 00 77 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 76 [14:02:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:02:31]wFMCommunicate OK [14:02:31]requested_item fd.num is exist - process it [14:02:31]SAM_PROTO_GetFieldsCounters [14:02:31]wFMCommunicate request_size=4 [14:02:31]MH_SAM_APDU [14:02:31]CAPDU: 80 13 00 00 [14:02:31]Write to MH i2c: E2 08 00 78 2E 80 13 00 00 00 00 00 00 22 [14:02:31]Write i2c OK [14:02:31]MH_I2C_Read... [14:02:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:31]Read from MH i2c: E2 [14:02:31]MH_I2C_Read... [14:02:31]Read from MH i2c: E2 62 00 [14:02:31]MH_I2C_Read... [14:02:31]Read from MH i2c: E2 62 00 78 2E 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 E2 01 00 0E 04 04 00 2F 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 40 [14:02: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 C1 E2 01 00 0E 04 04 00 2F 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 [14:02:31]wFMCommunicate OK [14:02:31]SAM_PROTO_GetFieldsCounters done [14:02:31]requested_item shift.num is exist - process it [14:02:31]requested_item shift.opened is exist - process it [14:02:31]req_shift_opened [14:02:31]FM_GetShiftState [14:02:31]SAM_PROTO_GetShiftState [14:02:31]wFMCommunicate request_size=4 [14:02:31]MH_SAM_APDU [14:02:31]CAPDU: 80 13 01 00 [14:02:31]Write to MH i2c: E2 08 00 79 2E 80 13 01 00 00 00 00 00 24 [14:02:31]Write i2c OK [14:02:31]MH_I2C_Read... [14:02:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:31]Read from MH i2c: E2 [14:02:31]MH_I2C_Read... [14:02:31]Read from MH i2c: E2 0E 00 [14:02:31]MH_I2C_Read... [14:02:31]Read from MH i2c: E2 0E 00 79 2E 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 2B [14:02:31]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:02:31]wFMCommunicate OK [14:02:31]SAM_PROTO_GetShiftState done [14:02:31]FM_GetShiftState done [14:02:31]req_shift_opened done [14:02:31]requested_item shift.open_date is exist - process it [14:02:31]req_shift_open_date [14:02:31]req_shift_open_date done [14:02:31]produce_requested_data done [14:02:31]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123585,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [14:02:31]process_action_free close_receipt [14:02:31]json_value_free [14:02:31]json_value_free done [14:02:31]process_json_proto returns [14:02:31]Send response to host [14:02:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123585,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [14:02:31]free response buf [14:02:31]execute_script done [14:02:31]execute_script returns [14:02:31]free content buf [14:02:31]Sock 9.Close socket [14:02:31]Sock 9.Thread stoped [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:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:09]OFD Sender: No OFD packet to send [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:54]OFD Sender: No OFD packet to send [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:39]OFD Sender: No OFD packet to send [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:00]accept exits with 8 [14:14:00]New connection [14:14:00]New thread 3066719588 created [14:14:00]Thread 3066862948 joined [14:14:00]Waiting for new connection... [14:14:00] Sock 8.Parse request [14:14:00]Sock 8.Check first char [14:14:00]Sock 8.First char is OK [14:14:00]request: POST /json_proto HTTP/1.0 [14:14:00]Method: POST [14:14:00]URL: /json_proto [14:14:00]Method is POST - this is cgi request [14:14:00]url: /json_proto [14:14:00]query_string will be loaded in cgi processing [14:14:00]execute_cgi json_proto POST (null) [14:14:00]execute_cgi path=json_proto method=POST [14:14:00]POST find Content-Length [14:14:00]Host: 172.17.37.4:8080 [14:14:00]Content-Length: 677 [14:14:00]Content-Type: application/json [14:14:00] [14:14:00]POST finish read [14:14:00]Found Content-Length = 677 [14:14:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718426", "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 }]} ], "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" ] } } [14:14:00]execute_script... [14:14: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)718426", "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 }]} ], "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" ] } } [14:14:00]POST & json_proto [14:14:00]process_json_proto [14:14:00]json parsed OK: [14:14:00]protocol is kg_v1.0 [14:14:00]action value=close_receipt [14:14:00]process_action close_receipt [14:14:00]cmd_close_receipt [14:14:00]MH_GetDate [14:14:00]Write to MH i2c: F0 00 00 7A 2E 97 [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: F0 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: F0 09 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: F0 09 00 7A 2E 00 AE 7A 48 67 1D 3A 47 67 7C [14:14:00]GetLastDocTimeStamp 1732802551 [14:14:00]current date 1732803246 [14:14:00]FM_GetShiftState [14:14:00]SAM_PROTO_GetShiftState [14:14:00]wFMCommunicate request_size=4 [14:14:00]MH_SAM_APDU [14:14:00]CAPDU: 80 13 01 00 [14:14:00]Write to MH i2c: E2 08 00 7B 2E 80 13 01 00 00 00 00 00 26 [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:00]Read from MH i2c: E2 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 0E 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 0E 00 7B 2E 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 2D [14:14:00]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:14:00]wFMCommunicate OK [14:14:00]SAM_PROTO_GetShiftState done [14:14:00]FM_GetShiftState done [14:14:00]opened in 1732752282 [14:14:00]opened+sec_in_day 1732838682 [14:14:00]quantity*price = 30060 [14:14:00]sum+1 = 30061 [14:14:00]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 СНО: Общий режим Чек 98 28.11.2024 14:14 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123586 ФПД: 14446354807428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T141406&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123586&fm=14446354807428&tin=02508201610067®Number=0000000000092681&sum=30000 [14:14:02]StoreToDocumentArchive [14:14:02]shift 559 fd 123586 [14:14:02]save to /storage/0559/doc_00123586 [14:14:02]save last doc name /storage/0559/doc_00123586 to /storage/kkm_last_doc_name [14:14:02]save OK [14:14:02]Clear old archive folders... [14:14:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:02]tlvbuf is 0150C790 [14:14:02]SAM_PROTO_ClearQueue [14:14:02]wFMCommunicate request_size=4 [14:14:02]MH_SAM_APDU [14:14:02]CAPDU: 80 09 00 00 [14:14:02]Write to MH i2c: E2 08 00 88 2E 80 09 00 00 00 00 00 00 28 [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:02]Read from MH i2c: E2 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 88 2E 00 90 00 2A [14:14:02]RAPDU: 90 00 [14:14:02]wFMCommunicate OK [14:14:02]SAM_PROTO_ClearQueue done [14:14:02]KKMCreateOFDPacket [14:14:02]OFDProtocolAddRootSTLVToBuf [14:14:02]FM_MakeSignedData [14:14:02]FM_MakeSignedData [14:14:02]SAM_PROTO_SignData [14:14:02]wFMCommunicate request_size=4 [14:14:02]MH_SAM_APDU [14:14:02]CAPDU: 80 0D 01 02 [14:14:02]Write to MH i2c: E2 08 00 89 2E 80 0D 01 02 00 00 00 00 30 [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:02]Read from MH i2c: E2 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 89 2E 00 90 00 2B [14:14:02]RAPDU: 90 00 [14:14:02]wFMCommunicate OK [14:14:02]wFMCommunicate request_size=255 [14:14:02]MH_SAM_APDU [14:14: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 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 62 00 00 00 F4 03 04 00 AE 7A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 0D [14:14:02]Write to MH i2c: E2 02 01 8A 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 62 00 00 00 F4 03 04 00 AE 7A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 0D 00 00 FF [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:02]Read from MH i2c: E2 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 8A 2E 00 90 00 2C [14:14:02]RAPDU: 90 00 [14:14:02]wFMCommunicate OK [14:14:02]wFMCommunicate request_size=10 [14:14:02]MH_SAM_APDU [14:14:02]CAPDU: 80 0D 02 02 05 23 8D D8 BA 84 [14:14:02]Write to MH i2c: E2 0D 00 8B 2E 80 0D 02 02 05 00 23 8D D8 BA 84 00 00 03 [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:02]Read from MH i2c: E2 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 8B 2E 00 90 00 2D [14:14:02]RAPDU: 90 00 [14:14:02]wFMCommunicate OK [14:14:02]wFMCommunicate request_size=4 [14:14:02]MH_SAM_APDU [14:14:02]CAPDU: 80 0D 03 02 [14:14:02]Write to MH i2c: E2 08 00 8C 2E 80 0D 03 02 00 00 00 00 35 [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:02]Read from MH i2c: E2 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 0B 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 0B 00 8C 2E 00 CD 4E 75 81 6F 5B 27 09 90 00 41 [14:14:02]RAPDU: CD 4E 75 81 6F 5B 27 09 90 00 [14:14:02]wFMCommunicate OK [14:14:02]SAM_PROTO_SignData done [14:14:02]FM_MakeSignedData done [14:14:02]CreateOFDProtocolMessage [14:14:02]wFMCommunicate request_size=4 [14:14:02]MH_SAM_APDU [14:14:02]CAPDU: 80 11 00 00 [14:14:02]Write to MH i2c: E2 08 00 8D 2E 80 11 00 00 00 00 00 00 35 [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:02]Read from MH i2c: E2 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 17 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 17 00 8D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 8C [14:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:14:02]wFMCommunicate OK [14:14:02]CreateOFDProtocolMessage done [14:14:02]OFDSenderStorePacket 123586 [14:14:02]StoreOFDPacket docnum=123586 [14:14: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 0F 01 00 00 DC AD 07 01 42 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 62 00 00 00 F4 03 04 00 AE 7A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 0D 23 8D D8 BA 84 CD 4E 75 81 6F 5B 27 09 [14:14:02]CheckFolder [14:14:02]dirname=/storage/ofd_packets [14:14:02]CheckFolder done [14:14:02]ProducePacketName [14:14:02]name=ofd_packets/00123586 [14:14:02]NVStorageSaveData ofd_packets/00123586 [14:14:02]File name is /storage/ofd_packets/00123586 [14:14:02]Write 301 bytes [14:14:02]NVStorageSaveData done [14:14:02]OFDSenderStorePacket done [14:14:02]KKMCreateOFDPacket done [14:14:02]NVStorageSaveData kkm_last_timestamp [14:14:02]File name is /storage/kkm_last_timestamp [14:14:02]Write 4 bytes [14:14:02]NVStorageSaveData done [14:14:02]ExternCall_PrintAddStr [14:14:02]wPrintStart [14:14:02]Write to MH i2c: 01 00 00 8E 2E BC [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: 01 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: 01 07 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: 01 07 00 8E 2E 00 00 00 00 00 FF 0F D1 [14:14:02]RasterBufferAndPrint [14:14:02]line Счет N : (1)718426 [14:14:02]line ИНН: 02508201610067 [14:14:02]line Контрольно-Кассовый Чек [14:14:02]line ПРОДАЖА [14:14:02]line ТРК (МРК, ГНК) : 22 [14:14:02]line Товар: 2710124130 [14:14:02]line Аи-92-К-4 [14:14:02]line 4.460 * 67.40 [14:14:02]line = 300.60 [14:14:02]line НДС 12% НСП 1% [14:14:02]line > о реализуемом товаре [14:14:02]line ОКРУГЛЕНИЕ: -0.60 [14:14:02]line ИТОГО: 300.00 [14:14:02]line Внесено: 300.00 [14:14:02]line СДАЧА: 0.00 [14:14:02]line НСП 1% : 2.66 [14:14:02]line НДС 12% : 31.92 [14:14:02]line Наличными: 300.00 [14:14:02]line Безнал.: 0.00 [14:14:02]line Место: АЗС № 64 "Партнер Нефть" [14:14:02]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:14:02]line СНО: Общий режим [14:14:02]line Чек 98 28.11.2024 14:14 [14:14:02]line Смена: 559 ФФД: 1.0 [14:14:02]line ЗНМ: 0300000033 [14:14:02]line РНМ: 0000000000092681 [14:14:02]line Версия ККМ: 001 [14:14:02]line ФМ: 0000000000874881 [14:14:02]line ФД: 123586 [14:14:02]line ФПД: 14446354807428 [14:14:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T141406&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123586&fm=14446354807428&tin=02508201610067®Number=0000000000092681&sum=30000 [14:14:02]OFD Sender: Processing packet 123586 [packets to send 7, broken 6] [14:14:02]ProducePacketName [14:14:02]name=ofd_packets/00123586 [14:14:02]OFD Sender: To server: pG, [14:14:02]CommunicateWithHost lk.salyk.kg:30040 [14:14:02]ConnectInit lk.salyk.kg [14:14:02]written 0, free lines is 4095 [14:14:02]Connected sock=10 [14:14: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 DC AD 07 01 42 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 62 00 00 00 F4 03 04 00 AE 7A 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 0D 23 8D D8 BA 84 CD 4E 75 81 6F 5B 27 09 [14:14: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 80 A4 47 00 DB 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 C2 E2 01 00 F4 03 04 00 73 26 48 67 B6 04 01 00 00 59 61 66 8E 4E 16 D5 90 [14:14:03]CommunicateWithHost err = 0 [14:14:03]CheckOFDResponse [14:14:03]1017 (14) - 77093643461234 [14:14:03]1041 (16) - 0000000000874881 [14:14:03]1040 (4) - 123586 [14:14:03]1012 (4) - 28.11.2024 08:14 [14:14:03]1206 (1) - 0 [14:14:03]OFD Sender: Remove packet 123586 [14:14:03]ProducePacketName [14:14:03]name=ofd_packets/00123586 [14:14:03]NVStorageDeleteData [14:14:03]Write to MH i2c: 01 00 00 B9 2E E7 [14:14:03]Write i2c OK [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: 01 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: 01 07 00 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: 01 07 00 B9 2E 00 00 00 00 00 49 0C 43 [14:14:03]RasterBufferAndPrint [14:14:03]line [14:14:03]line [14:14:03]line [14:14:03]line [14:14:03]line [14:14:03]written 0, free lines is 3149 [14:14:03]MH_Cut [14:14:03]Write to MH i2c: D1 01 00 C0 2E 01 C0 [14:14:03]Write i2c OK [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: D1 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: D1 01 00 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: D1 01 00 C0 2E 00 BF [14:14:03]Write to MH i2c: 01 00 00 C1 2E EF [14:14:03]Write i2c OK [14:14:03]MH_I2C_Read... [14:14:03]OFD Sender: No OFD packet to send [14:14:04]*** Cut start [14:14:04]*** Partial cut [14:14:04]*** CUTSNS_PIN = 1 [14:14:04]*** CUTSNS_PIN = 0 [14:14:05]*** Brake cut motor [14:14:05]Read from MH i2c: 01 [14:14:05]MH_I2C_Read... [14:14:05]*** Stop cut motor [14:14:05]*** Cut end [14:14:05]Read from MH i2c: 01 07 00 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: 01 07 00 C1 2E 00 00 00 00 00 FF 0F 04 [14:14:05]process_action close_receipt done [14:14:05]requested_data is exist [14:14:05]produce_requested_data [14:14:05]requested_item fm.sn is exist - process it [14:14:05]wFMCommunicate request_size=4 [14:14:05]MH_SAM_APDU [14:14:05]CAPDU: 80 11 00 00 [14:14:05]Write to MH i2c: E2 08 00 C2 2E 80 11 00 00 00 00 00 00 6A [14:14:05]Write i2c OK [14:14:05]MH_I2C_Read... [14:14:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:05]Read from MH i2c: E2 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 17 00 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 17 00 C2 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C1 [14:14:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:14:05]wFMCommunicate OK [14:14:05]requested_item fd.num is exist - process it [14:14:05]SAM_PROTO_GetFieldsCounters [14:14:05]wFMCommunicate request_size=4 [14:14:05]MH_SAM_APDU [14:14:05]CAPDU: 80 13 00 00 [14:14:05]Write to MH i2c: E2 08 00 C3 2E 80 13 00 00 00 00 00 00 6D [14:14:05]Write i2c OK [14:14:05]MH_I2C_Read... [14:14:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:05]Read from MH i2c: E2 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 62 00 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 62 00 C3 2E 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 E2 01 00 0E 04 04 00 2F 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 8F [14:14: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 C2 E2 01 00 0E 04 04 00 2F 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 [14:14:05]wFMCommunicate OK [14:14:05]SAM_PROTO_GetFieldsCounters done [14:14:05]requested_item shift.num is exist - process it [14:14:05]requested_item shift.opened is exist - process it [14:14:05]req_shift_opened [14:14:05]FM_GetShiftState [14:14:05]SAM_PROTO_GetShiftState [14:14:05]wFMCommunicate request_size=4 [14:14:05]MH_SAM_APDU [14:14:05]CAPDU: 80 13 01 00 [14:14:05]Write to MH i2c: E2 08 00 C4 2E 80 13 01 00 00 00 00 00 6F [14:14:05]Write i2c OK [14:14:05]MH_I2C_Read... [14:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:05]Read from MH i2c: E2 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 0E 00 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 0E 00 C4 2E 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 76 [14:14:05]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:14:05]wFMCommunicate OK [14:14:05]SAM_PROTO_GetShiftState done [14:14:05]FM_GetShiftState done [14:14:05]req_shift_opened done [14:14:05]requested_item shift.open_date is exist - process it [14:14:05]req_shift_open_date [14:14:05]req_shift_open_date done [14:14:05]produce_requested_data done [14:14:05]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123586,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [14:14:05]process_action_free close_receipt [14:14:05]json_value_free [14:14:05]json_value_free done [14:14:05]process_json_proto returns [14:14:05]Send response to host [14:14:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123586,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [14:14:05]free response buf [14:14:05]execute_script done [14:14:05]execute_script returns [14:14:05]free content buf [14:14:05]Sock 8.Close socket [14:14:05]Sock 8.Thread stoped [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:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:52]accept exits with 9 [14:20:52]New connection [14:20:52]New thread 3066862948 created [14:20:52]Thread 3066719588 joined [14:20:52]Waiting for new connection... [14:20:52] Sock 9.Parse request [14:20:52]Sock 9.Check first char [14:20:52]Sock 9.First char is OK [14:20:52]request: POST /json_proto HTTP/1.0 [14:20:52]Method: POST [14:20:52]URL: /json_proto [14:20:52]Method is POST - this is cgi request [14:20:52]url: /json_proto [14:20:52]query_string will be loaded in cgi processing [14:20:52]execute_cgi json_proto POST (null) [14:20:52]execute_cgi path=json_proto method=POST [14:20:52]POST find Content-Length [14:20:52]Host: 172.17.37.4:8080 [14:20:52]Content-Length: 678 [14:20:52]Content-Type: application/json [14:20:52] [14:20:52]POST finish read [14:20:52]Found Content-Length = 678 [14:20:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718427", "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" : 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:20:52]execute_script... [14:20: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)718427", "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" : 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:20:52]POST & json_proto [14:20:52]process_json_proto [14:20:52]json parsed OK: [14:20:52]protocol is kg_v1.0 [14:20:52]action value=close_receipt [14:20:52]process_action close_receipt [14:20:52]cmd_close_receipt [14:20:52]MH_GetDate [14:20:52]Write to MH i2c: F0 00 00 C5 2E E2 [14:20:52]Write i2c OK [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: F0 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: F0 09 00 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: F0 09 00 C5 2E 00 4A 7C 48 67 1D 3A 47 67 65 [14:20:52]GetLastDocTimeStamp 1732803246 [14:20:52]current date 1732803658 [14:20:52]FM_GetShiftState [14:20:52]SAM_PROTO_GetShiftState [14:20:52]wFMCommunicate request_size=4 [14:20:52]MH_SAM_APDU [14:20:52]CAPDU: 80 13 01 00 [14:20:52]Write to MH i2c: E2 08 00 C6 2E 80 13 01 00 00 00 00 00 71 [14:20:52]Write i2c OK [14:20:52]MH_I2C_Read... [14:20:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:52]Read from MH i2c: E2 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 0E 00 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 0E 00 C6 2E 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 78 [14:20:52]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:20:52]wFMCommunicate OK [14:20:52]SAM_PROTO_GetShiftState done [14:20:52]FM_GetShiftState done [14:20:52]opened in 1732752282 [14:20:52]opened+sec_in_day 1732838682 [14:20:52]quantity*price = 70028 [14:20:52]sum+1 = 70030 [14:20:52]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 СНО: Общий режим Чек 99 28.11.2024 14:20 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123587 ФПД: 103013756900634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T142058&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123587&fm=103013756900634&tin=02508201610067®Number=0000000000092681&sum=70000 [14:20:54]StoreToDocumentArchive [14:20:54]shift 559 fd 123587 [14:20:54]save to /storage/0559/doc_00123587 [14:20:54]save last doc name /storage/0559/doc_00123587 to /storage/kkm_last_doc_name [14:20:54]save OK [14:20:54]Clear old archive folders... [14:20:54]OFD Sender: No OFD packet to send [14:20:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:54]tlvbuf is B6F3F660 [14:20:54]SAM_PROTO_ClearQueue [14:20:54]wFMCommunicate request_size=4 [14:20:54]MH_SAM_APDU [14:20:54]CAPDU: 80 09 00 00 [14:20:54]Write to MH i2c: E2 08 00 D3 2E 80 09 00 00 00 00 00 00 73 [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 03 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 03 00 D3 2E 00 90 00 75 [14:20:54]RAPDU: 90 00 [14:20:54]wFMCommunicate OK [14:20:54]SAM_PROTO_ClearQueue done [14:20:54]KKMCreateOFDPacket [14:20:54]OFDProtocolAddRootSTLVToBuf [14:20:54]FM_MakeSignedData [14:20:54]FM_MakeSignedData [14:20:54]SAM_PROTO_SignData [14:20:54]wFMCommunicate request_size=4 [14:20:54]MH_SAM_APDU [14:20:54]CAPDU: 80 0D 01 02 [14:20:54]Write to MH i2c: E2 08 00 D4 2E 80 0D 01 02 00 00 00 00 7B [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 03 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 03 00 D4 2E 00 90 00 76 [14:20:54]RAPDU: 90 00 [14:20:54]wFMCommunicate OK [14:20:54]wFMCommunicate request_size=255 [14:20:54]MH_SAM_APDU [14:20: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 63 00 00 00 F4 03 04 00 4A 7C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 5D [14:20:54]Write to MH i2c: E2 02 01 D5 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 63 00 00 00 F4 03 04 00 4A 7C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 5D 00 00 FC [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 03 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 03 00 D5 2E 00 90 00 77 [14:20:54]RAPDU: 90 00 [14:20:54]wFMCommunicate OK [14:20:54]wFMCommunicate request_size=10 [14:20:54]MH_SAM_APDU [14:20:54]CAPDU: 80 0D 02 02 05 B0 C2 63 15 1A [14:20:54]Write to MH i2c: E2 0D 00 D6 2E 80 0D 02 02 05 00 B0 C2 63 15 1A 00 00 8C [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 03 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 03 00 D6 2E 00 90 00 78 [14:20:54]RAPDU: 90 00 [14:20:54]wFMCommunicate OK [14:20:54]wFMCommunicate request_size=4 [14:20:54]MH_SAM_APDU [14:20:54]CAPDU: 80 0D 03 02 [14:20:54]Write to MH i2c: E2 08 00 D7 2E 80 0D 03 02 00 00 00 00 80 [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 0B 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 0B 00 D7 2E 00 8C 53 1F EE 32 73 BE 9B 90 00 6B [14:20:54]RAPDU: 8C 53 1F EE 32 73 BE 9B 90 00 [14:20:54]wFMCommunicate OK [14:20:54]SAM_PROTO_SignData done [14:20:54]FM_MakeSignedData done [14:20:54]CreateOFDProtocolMessage [14:20:54]wFMCommunicate request_size=4 [14:20:54]MH_SAM_APDU [14:20:54]CAPDU: 80 11 00 00 [14:20:54]Write to MH i2c: E2 08 00 D8 2E 80 11 00 00 00 00 00 00 80 [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 17 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 17 00 D8 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 D7 [14:20:54]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:54]wFMCommunicate OK [14:20:54]CreateOFDProtocolMessage done [14:20:54]OFDSenderStorePacket 123587 [14:20:54]StoreOFDPacket docnum=123587 [14:20: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 8C 7C 07 01 C1 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 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 63 00 00 00 F4 03 04 00 4A 7C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 5D B0 C2 63 15 1A 8C 53 1F EE 32 73 BE 9B [14:20:54]CheckFolder [14:20:54]dirname=/storage/ofd_packets [14:20:54]CheckFolder done [14:20:54]ProducePacketName [14:20:54]name=ofd_packets/00123587 [14:20:54]NVStorageSaveData ofd_packets/00123587 [14:20:54]File name is /storage/ofd_packets/00123587 [14:20:54]Write 301 bytes [14:20:54]NVStorageSaveData done [14:20:54]OFDSenderStorePacket done [14:20:54]KKMCreateOFDPacket done [14:20:54]NVStorageSaveData kkm_last_timestamp [14:20:54]File name is /storage/kkm_last_timestamp [14:20:54]Write 4 bytes [14:20:54]NVStorageSaveData done [14:20:54]ExternCall_PrintAddStr [14:20:54]wPrintStart [14:20:54]Write to MH i2c: 01 00 00 D9 2E 07 [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: 01 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: 01 07 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: 01 07 00 D9 2E 00 00 00 00 00 FF 0F 1C [14:20:54]RasterBufferAndPrint [14:20:54]line Счет N : (1)718427 [14:20:54]line ИНН: 02508201610067 [14:20:54]line Контрольно-Кассовый Чек [14:20:54]line ПРОДАЖА [14:20:54]line ТРК (МРК, ГНК) : 32 [14:20:54]line Товар: 2710124130 [14:20:54]line Аи-92-К-4 [14:20:54]line 10.390 * 67.40 [14:20:54]line = 700.29 [14:20:54]line НДС 12% НСП 1% [14:20:54]line > о реализуемом товаре [14:20:54]line ОКРУГЛЕНИЕ: -0.29 [14:20:54]line ИТОГО: 700.00 [14:20:54]line Внесено: 700.00 [14:20:54]line СДАЧА: 0.00 [14:20:54]line НСП 1% : 6.20 [14:20:54]line НДС 12% : 74.37 [14:20:54]line Наличными: 700.00 [14:20:54]line Безнал.: 0.00 [14:20:54]line Место: АЗС № 64 "Партнер Нефть" [14:20:54]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:20:54]line СНО: Общий режим [14:20:54]line Чек 99 28.11.2024 14:20 [14:20:54]line Смена: 559 ФФД: 1.0 [14:20:54]line ЗНМ: 0300000033 [14:20:54]line РНМ: 0000000000092681 [14:20:54]line Версия ККМ: 001 [14:20:54]line ФМ: 0000000000874881 [14:20:54]line ФД: 123587 [14:20:54]line ФПД: 103013756900634 [14:20:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T142058&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123587&fm=103013756900634&tin=02508201610067®Number=0000000000092681&sum=70000 [14:20:54]OFD Sender: Processing packet 123587 [packets to send 7, broken 6] [14:20:54]ProducePacketName [14:20:54]name=ofd_packets/00123587 [14:20:54]OFD Sender: To server: pG, [14:20:54]CommunicateWithHost lk.salyk.kg:30040 [14:20:54]ConnectInit lk.salyk.kg [14:20:54]written 0, free lines is 4095 [14:20:54]Connected sock=10 [14:20: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 8C 7C 07 01 C1 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 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 63 00 00 00 F4 03 04 00 4A 7C 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 5D B0 C2 63 15 1A 8C 53 1F EE 32 73 BE 9B [14:20: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 EC 49 47 00 64 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C3 E2 01 00 F4 03 04 00 0F 28 48 67 B6 04 01 00 00 8F 5C 3F 77 D7 9B 22 30 [14:20:55]CommunicateWithHost err = 0 [14:20:55]CheckOFDResponse [14:20:55]1017 (14) - 77093643461234 [14:20:55]1041 (16) - 0000000000874881 [14:20:55]1040 (4) - 123587 [14:20:55]1012 (4) - 28.11.2024 08:21 [14:20:55]1206 (1) - 0 [14:20:55]OFD Sender: Remove packet 123587 [14:20:55]ProducePacketName [14:20:55]name=ofd_packets/00123587 [14:20:55]NVStorageDeleteData [14:20:55]Write to MH i2c: 01 00 00 04 2F 33 [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: 01 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: 01 07 00 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: 01 07 00 04 2F 00 00 00 00 00 48 0C 8E [14:20:55]RasterBufferAndPrint [14:20:55]line [14:20:55]line [14:20:55]line [14:20:55]line [14:20:55]line [14:20:55]written 0, free lines is 3148 [14:20:55]MH_Cut [14:20:55]Write to MH i2c: D1 01 00 0B 2F 01 0C [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: D1 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: D1 01 00 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: D1 01 00 0B 2F 00 0B [14:20:55]Write to MH i2c: 01 00 00 0C 2F 3B [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]OFD Sender: No OFD packet to send [14:20:56]*** Cut start [14:20:56]*** Partial cut [14:20:56]*** CUTSNS_PIN = 1 [14:20:56]*** CUTSNS_PIN = 0 [14:20:57]*** Brake cut motor [14:20:57]Read from MH i2c: 01 [14:20:57]MH_I2C_Read... [14:20:57]*** Stop cut motor [14:20:57]*** Cut end [14:20:57]Read from MH i2c: 01 07 00 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: 01 07 00 0C 2F 00 00 00 00 00 FF 0F 50 [14:20:57]process_action close_receipt done [14:20:57]requested_data is exist [14:20:57]produce_requested_data [14:20:57]requested_item fm.sn is exist - process it [14:20:57]wFMCommunicate request_size=4 [14:20:57]MH_SAM_APDU [14:20:57]CAPDU: 80 11 00 00 [14:20:57]Write to MH i2c: E2 08 00 0D 2F 80 11 00 00 00 00 00 00 B6 [14:20:57]Write i2c OK [14:20:57]MH_I2C_Read... [14:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:57]Read from MH i2c: E2 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 17 00 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 17 00 0D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 0D [14:20: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:20:57]wFMCommunicate OK [14:20:57]requested_item fd.num is exist - process it [14:20:57]SAM_PROTO_GetFieldsCounters [14:20:57]wFMCommunicate request_size=4 [14:20:57]MH_SAM_APDU [14:20:57]CAPDU: 80 13 00 00 [14:20:57]Write to MH i2c: E2 08 00 0E 2F 80 13 00 00 00 00 00 00 B9 [14:20:57]Write i2c OK [14:20:57]MH_I2C_Read... [14:20:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:57]Read from MH i2c: E2 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 62 00 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 62 00 0E 2F 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 E2 01 00 0E 04 04 00 2F 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 DF [14:20: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 C3 E2 01 00 0E 04 04 00 2F 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 [14:20:57]wFMCommunicate OK [14:20:57]SAM_PROTO_GetFieldsCounters done [14:20:57]requested_item shift.num is exist - process it [14:20:57]requested_item shift.opened is exist - process it [14:20:57]req_shift_opened [14:20:57]FM_GetShiftState [14:20:57]SAM_PROTO_GetShiftState [14:20:57]wFMCommunicate request_size=4 [14:20:57]MH_SAM_APDU [14:20:57]CAPDU: 80 13 01 00 [14:20:57]Write to MH i2c: E2 08 00 0F 2F 80 13 01 00 00 00 00 00 BB [14:20:57]Write i2c OK [14:20:57]MH_I2C_Read... [14:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:57]Read from MH i2c: E2 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 0E 00 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 0E 00 0F 2F 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 C2 [14:20:57]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:20:57]wFMCommunicate OK [14:20:57]SAM_PROTO_GetShiftState done [14:20:57]FM_GetShiftState done [14:20:57]req_shift_opened done [14:20:57]requested_item shift.open_date is exist - process it [14:20:57]req_shift_open_date [14:20:57]req_shift_open_date done [14:20:57]produce_requested_data done [14:20:57]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123587,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [14:20:57]process_action_free close_receipt [14:20:57]json_value_free [14:20:57]json_value_free done [14:20:57]process_json_proto returns [14:20:57]Send response to host [14:20:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123587,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [14:20:57]free response buf [14:20:57]execute_script done [14:20:57]execute_script returns [14:20:57]free content buf [14:20:57]Sock 9.Close socket [14:20:57]Sock 9.Thread stoped [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:10]OFD Sender: No OFD packet to send [14:27:15]OFD Sender: No OFD packet to send [14:27:20]OFD Sender: No OFD packet to send [14:27:25]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:16]accept exits with 8 [14:28:16]New connection [14:28:16]New thread 3066719588 created [14:28:16]Thread 3066862948 joined [14:28:16]Waiting for new connection... [14:28:16] Sock 8.Parse request [14:28:16]Sock 8.Check first char [14:28:16]Sock 8.First char is OK [14:28:16]request: POST /json_proto HTTP/1.0 [14:28:16]Method: POST [14:28:16]URL: /json_proto [14:28:16]Method is POST - this is cgi request [14:28:16]url: /json_proto [14:28:16]query_string will be loaded in cgi processing [14:28:16]execute_cgi json_proto POST (null) [14:28:16]execute_cgi path=json_proto method=POST [14:28:16]POST find Content-Length [14:28:16]Host: 172.17.37.4:8080 [14:28:16]Content-Length: 677 [14:28:16]Content-Type: application/json [14:28:16] [14:28:16]POST finish read [14:28:16]Found Content-Length = 677 [14:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718429", "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" ] } } [14:28:16]execute_script... [14:28: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)718429", "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" ] } } [14:28:16]POST & json_proto [14:28:16]process_json_proto [14:28:16]json parsed OK: [14:28:16]protocol is kg_v1.0 [14:28:16]action value=close_receipt [14:28:16]process_action close_receipt [14:28:16]cmd_close_receipt [14:28:16]MH_GetDate [14:28:16]Write to MH i2c: F0 00 00 10 2F 2E [14:28:16]Write i2c OK [14:28:16]MH_I2C_Read... [14:28:16]Read from MH i2c: F0 [14:28:16]MH_I2C_Read... [14:28:16]Read from MH i2c: F0 09 00 [14:28:16]MH_I2C_Read... [14:28:16]Read from MH i2c: F0 09 00 10 2F 00 05 7E 48 67 1D 3A 47 67 6E [14:28:16]GetLastDocTimeStamp 1732803658 [14:28:16]current date 1732804101 [14:28:16]FM_GetShiftState [14:28:16]SAM_PROTO_GetShiftState [14:28:16]wFMCommunicate request_size=4 [14:28:16]MH_SAM_APDU [14:28:16]CAPDU: 80 13 01 00 [14:28:16]Write to MH i2c: E2 08 00 11 2F 80 13 01 00 00 00 00 00 BD [14:28:16]Write i2c OK [14:28:16]MH_I2C_Read... [14:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:16]Read from MH i2c: E2 [14:28:16]MH_I2C_Read... [14:28:16]Read from MH i2c: E2 0E 00 [14:28:16]MH_I2C_Read... [14:28:16]Read from MH i2c: E2 0E 00 11 2F 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 C4 [14:28:16]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:28:16]wFMCommunicate OK [14:28:16]SAM_PROTO_GetShiftState done [14:28:16]FM_GetShiftState done [14:28:16]opened in 1732752282 [14:28:16]opened+sec_in_day 1732838682 [14:28:16]quantity*price = 60053 [14:28:16]sum+1 = 60054 [14:28:16]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 СНО: Общий режим Чек 100 28.11.2024 14:28 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123588 ФПД: 267358515923576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T142821&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123588&fm=267358515923576&tin=02508201610067®Number=0000000000092681&sum=60000 [14:28:17]StoreToDocumentArchive [14:28:17]shift 559 fd 123588 [14:28:17]save to /storage/0559/doc_00123588 [14:28:17]save last doc name /storage/0559/doc_00123588 to /storage/kkm_last_doc_name [14:28:17]save OK [14:28:17]Clear old archive folders... [14:28:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:28:17]tlvbuf is 01513CE0 [14:28:17]SAM_PROTO_ClearQueue [14:28:17]wFMCommunicate request_size=4 [14:28:17]MH_SAM_APDU [14:28:17]CAPDU: 80 09 00 00 [14:28:17]Write to MH i2c: E2 08 00 1E 2F 80 09 00 00 00 00 00 00 BF [14:28:17]Write i2c OK [14:28:17]MH_I2C_Read... [14:28:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:17]Read from MH i2c: E2 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 1E 2F 00 90 00 C1 [14:28:17]RAPDU: 90 00 [14:28:17]wFMCommunicate OK [14:28:17]SAM_PROTO_ClearQueue done [14:28:17]KKMCreateOFDPacket [14:28:17]OFDProtocolAddRootSTLVToBuf [14:28:17]FM_MakeSignedData [14:28:17]FM_MakeSignedData [14:28:17]SAM_PROTO_SignData [14:28:17]wFMCommunicate request_size=4 [14:28:17]MH_SAM_APDU [14:28:17]CAPDU: 80 0D 01 02 [14:28:17]Write to MH i2c: E2 08 00 1F 2F 80 0D 01 02 00 00 00 00 C7 [14:28:17]Write i2c OK [14:28:17]MH_I2C_Read... [14:28:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:17]Read from MH i2c: E2 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 1F 2F 00 90 00 C2 [14:28:17]RAPDU: 90 00 [14:28:17]wFMCommunicate OK [14:28:17]wFMCommunicate request_size=255 [14:28:17]MH_SAM_APDU [14:28: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 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 64 00 00 00 F4 03 04 00 05 7E 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 F3 [14:28:17]Write to MH i2c: E2 02 01 20 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 64 00 00 00 F4 03 04 00 05 7E 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 F3 00 00 BD [14:28:17]Write i2c OK [14:28:17]MH_I2C_Read... [14:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:17]Read from MH i2c: E2 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 20 2F 00 90 00 C3 [14:28:17]RAPDU: 90 00 [14:28:17]wFMCommunicate OK [14:28:17]wFMCommunicate request_size=10 [14:28:17]MH_SAM_APDU [14:28:17]CAPDU: 80 0D 02 02 05 29 41 5E 8A 78 [14:28:17]Write to MH i2c: E2 0D 00 21 2F 80 0D 02 02 05 00 29 41 5E 8A 78 00 00 9E [14:28:17]Write i2c OK [14:28:17]MH_I2C_Read... [14:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:17]Read from MH i2c: E2 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 21 2F 00 90 00 C4 [14:28:17]RAPDU: 90 00 [14:28:17]wFMCommunicate OK [14:28:17]wFMCommunicate request_size=4 [14:28:17]MH_SAM_APDU [14:28:17]CAPDU: 80 0D 03 02 [14:28:17]Write to MH i2c: E2 08 00 22 2F 80 0D 03 02 00 00 00 00 CC [14:28:17]Write i2c OK [14:28:17]MH_I2C_Read... [14:28:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:17]Read from MH i2c: E2 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 0B 00 [14:28:17]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 0B 00 22 2F 00 5D 0F A5 F2 89 D5 FC 74 90 00 9E [14:28:18]RAPDU: 5D 0F A5 F2 89 D5 FC 74 90 00 [14:28:18]wFMCommunicate OK [14:28:18]SAM_PROTO_SignData done [14:28:18]FM_MakeSignedData done [14:28:18]CreateOFDProtocolMessage [14:28:18]wFMCommunicate request_size=4 [14:28:18]MH_SAM_APDU [14:28:18]CAPDU: 80 11 00 00 [14:28:18]Write to MH i2c: E2 08 00 23 2F 80 11 00 00 00 00 00 00 CC [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:18]Read from MH i2c: E2 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 17 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 17 00 23 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 23 [14:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:28:18]wFMCommunicate OK [14:28:18]CreateOFDProtocolMessage done [14:28:18]OFDSenderStorePacket 123588 [14:28:18]StoreOFDPacket docnum=123588 [14:28: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 75 85 07 01 1E 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 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 64 00 00 00 F4 03 04 00 05 7E 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 F3 29 41 5E 8A 78 5D 0F A5 F2 89 D5 FC 74 [14:28:18]CheckFolder [14:28:18]dirname=/storage/ofd_packets [14:28:18]CheckFolder done [14:28:18]ProducePacketName [14:28:18]name=ofd_packets/00123588 [14:28:18]NVStorageSaveData ofd_packets/00123588 [14:28:18]File name is /storage/ofd_packets/00123588 [14:28:18]Write 301 bytes [14:28:18]NVStorageSaveData done [14:28:18]OFDSenderStorePacket done [14:28:18]KKMCreateOFDPacket done [14:28:18]NVStorageSaveData kkm_last_timestamp [14:28:18]File name is /storage/kkm_last_timestamp [14:28:18]Write 4 bytes [14:28:18]NVStorageSaveData done [14:28:18]ExternCall_PrintAddStr [14:28:18]wPrintStart [14:28:18]Write to MH i2c: 01 00 00 24 2F 53 [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: 01 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: 01 07 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: 01 07 00 24 2F 00 00 00 00 00 FF 0F 68 [14:28:18]RasterBufferAndPrint [14:28:18]line Счет N : (1)718429 [14:28:18]line ИНН: 02508201610067 [14:28:18]line Контрольно-Кассовый Чек [14:28:18]line ПРОДАЖА [14:28:18]line ТРК (МРК, ГНК) : 12 [14:28:18]line Товар: 2710124130 [14:28:18]line Аи-92-К-4 [14:28:18]line 8.910 * 67.40 [14:28:18]line = 600.53 [14:28:18]line НДС 12% НСП 1% [14:28:18]line > о реализуемом товаре [14:28:18]line ОКРУГЛЕНИЕ: -0.53 [14:28:18]line ИТОГО: 600.00 [14:28:18]line Внесено: 600.00 [14:28:18]line СДАЧА: 0.00 [14:28:18]line НСП 1% : 5.31 [14:28:18]line НДС 12% : 63.77 [14:28:18]line Наличными: 600.00 [14:28:18]line Безнал.: 0.00 [14:28:18]line Место: АЗС № 64 "Партнер Нефть" [14:28:18]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:28:18]line СНО: Общий режим [14:28:18]line Чек 100 28.11.2024 14:28 [14:28:18]line Смена: 559 ФФД: 1.0 [14:28:18]line ЗНМ: 0300000033 [14:28:18]line РНМ: 0000000000092681 [14:28:18]line Версия ККМ: 001 [14:28:18]line ФМ: 0000000000874881 [14:28:18]line ФД: 123588 [14:28:18]line ФПД: 267358515923576 [14:28:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T142821&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123588&fm=267358515923576&tin=02508201610067®Number=0000000000092681&sum=60000 [14:28:18]OFD Sender: Processing packet 123588 [packets to send 7, broken 6] [14:28:18]ProducePacketName [14:28:18]name=ofd_packets/00123588 [14:28:18]OFD Sender: To server: pG, [14:28:18]CommunicateWithHost lk.salyk.kg:30040 [14:28:18]ConnectInit lk.salyk.kg [14:28:18]written 0, free lines is 4095 [14:28:18]Connected sock=10 [14:28:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 75 85 07 01 1E 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 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 64 00 00 00 F4 03 04 00 05 7E 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 F3 29 41 5E 8A 78 5D 0F A5 F2 89 D5 FC 74 [14:28: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 08 01 47 00 98 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 C4 E2 01 00 F4 03 04 00 CB 29 48 67 B6 04 01 00 00 91 AC 9E A3 BA C3 66 44 [14:28:18]CommunicateWithHost err = 0 [14:28:18]CheckOFDResponse [14:28:18]1017 (14) - 77093643461234 [14:28:18]1041 (16) - 0000000000874881 [14:28:18]1040 (4) - 123588 [14:28:18]1012 (4) - 28.11.2024 08:28 [14:28:18]1206 (1) - 0 [14:28:18]OFD Sender: Remove packet 123588 [14:28:18]ProducePacketName [14:28:18]name=ofd_packets/00123588 [14:28:18]NVStorageDeleteData [14:28:18]Write to MH i2c: 01 00 00 4F 2F 7E [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: 01 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: 01 07 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: 01 07 00 4F 2F 00 00 00 00 00 52 0C E3 [14:28:18]RasterBufferAndPrint [14:28:18]line [14:28:18]line [14:28:18]line [14:28:18]line [14:28:18]line [14:28:18]written 0, free lines is 3159 [14:28:18]MH_Cut [14:28:18]Write to MH i2c: D1 01 00 56 2F 01 57 [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: D1 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: D1 01 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: D1 01 00 56 2F 00 56 [14:28:18]Write to MH i2c: 01 00 00 57 2F 86 [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:19]OFD Sender: No OFD packet to send [14:28:20]*** Cut start [14:28:20]*** Partial cut [14:28:20]*** CUTSNS_PIN = 1 [14:28:20]*** CUTSNS_PIN = 0 [14:28:20]*** Brake cut motor [14:28:20]Read from MH i2c: 01 [14:28:20]MH_I2C_Read... [14:28:20]*** Stop cut motor [14:28:20]*** Cut end [14:28:20]Read from MH i2c: 01 07 00 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: 01 07 00 57 2F 00 00 00 00 00 FF 0F 9B [14:28:20]process_action close_receipt done [14:28:20]requested_data is exist [14:28:20]produce_requested_data [14:28:20]requested_item fm.sn is exist - process it [14:28:20]wFMCommunicate request_size=4 [14:28:20]MH_SAM_APDU [14:28:20]CAPDU: 80 11 00 00 [14:28:20]Write to MH i2c: E2 08 00 58 2F 80 11 00 00 00 00 00 00 01 [14:28:20]Write i2c OK [14:28:20]MH_I2C_Read... [14:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:20]Read from MH i2c: E2 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 17 00 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 17 00 58 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 58 [14:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:28:20]wFMCommunicate OK [14:28:20]requested_item fd.num is exist - process it [14:28:20]SAM_PROTO_GetFieldsCounters [14:28:20]wFMCommunicate request_size=4 [14:28:20]MH_SAM_APDU [14:28:20]CAPDU: 80 13 00 00 [14:28:20]Write to MH i2c: E2 08 00 59 2F 80 13 00 00 00 00 00 00 04 [14:28:20]Write i2c OK [14:28:20]MH_I2C_Read... [14:28:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:21]Read from MH i2c: E2 [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: E2 62 00 [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: E2 62 00 59 2F 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 E2 01 00 0E 04 04 00 2F 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 2E [14:28: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 C4 E2 01 00 0E 04 04 00 2F 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 [14:28:21]wFMCommunicate OK [14:28:21]SAM_PROTO_GetFieldsCounters done [14:28:21]requested_item shift.num is exist - process it [14:28:21]requested_item shift.opened is exist - process it [14:28:21]req_shift_opened [14:28:21]FM_GetShiftState [14:28:21]SAM_PROTO_GetShiftState [14:28:21]wFMCommunicate request_size=4 [14:28:21]MH_SAM_APDU [14:28:21]CAPDU: 80 13 01 00 [14:28:21]Write to MH i2c: E2 08 00 5A 2F 80 13 01 00 00 00 00 00 06 [14:28:21]Write i2c OK [14:28:21]MH_I2C_Read... [14:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:21]Read from MH i2c: E2 [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: E2 0E 00 [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: E2 0E 00 5A 2F 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 0D [14:28:21]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:28:21]wFMCommunicate OK [14:28:21]SAM_PROTO_GetShiftState done [14:28:21]FM_GetShiftState done [14:28:21]req_shift_opened done [14:28:21]requested_item shift.open_date is exist - process it [14:28:21]req_shift_open_date [14:28:21]req_shift_open_date done [14:28:21]produce_requested_data done [14:28:21]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123588,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [14:28:21]process_action_free close_receipt [14:28:21]json_value_free [14:28:21]json_value_free done [14:28:21]process_json_proto returns [14:28:21]Send response to host [14:28:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123588,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [14:28:21]free response buf [14:28:21]execute_script done [14:28:21]execute_script returns [14:28:21]free content buf [14:28:21]Sock 8.Close socket [14:28:21]Sock 8.Thread stoped [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:36]accept exits with 9 [14:36:36]New connection [14:36:36]New thread 3066862948 created [14:36:36]Thread 3066719588 joined [14:36:36]Waiting for new connection... [14:36:36] Sock 9.Parse request [14:36:36]Sock 9.Check first char [14:36:36]Sock 9.First char is OK [14:36:36]request: POST /json_proto HTTP/1.0 [14:36:36]Method: POST [14:36:36]URL: /json_proto [14:36:36]Method is POST - this is cgi request [14:36:36]url: /json_proto [14:36:36]query_string will be loaded in cgi processing [14:36:36]execute_cgi json_proto POST (null) [14:36:36]execute_cgi path=json_proto method=POST [14:36:36]POST find Content-Length [14:36:36]Host: 172.17.37.4:8080 [14:36:36]Content-Length: 677 [14:36:36]Content-Type: application/json [14:36:36] [14:36:36]POST finish read [14:36:36]Found Content-Length = 677 [14:36:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718430", "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.380, "sum" : 632.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 632.00, "total" : 632.00, "payments": [ { "type": 0, "sum" : 632.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:36]execute_script... [14:36: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)718430", "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.380, "sum" : 632.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 632.00, "total" : 632.00, "payments": [ { "type": 0, "sum" : 632.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:36]POST & json_proto [14:36:36]process_json_proto [14:36:36]json parsed OK: [14:36:36]protocol is kg_v1.0 [14:36:36]action value=close_receipt [14:36:36]process_action close_receipt [14:36:36]cmd_close_receipt [14:36:36]MH_GetDate [14:36:36]Write to MH i2c: F0 00 00 5B 2F 79 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: F0 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: F0 09 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: F0 09 00 5B 2F 00 F9 7F 48 67 1D 3A 47 67 AE [14:36:36]GetLastDocTimeStamp 1732804101 [14:36:36]current date 1732804601 [14:36:36]FM_GetShiftState [14:36:36]SAM_PROTO_GetShiftState [14:36:36]wFMCommunicate request_size=4 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 13 01 00 [14:36:36]Write to MH i2c: E2 08 00 5C 2F 80 13 01 00 00 00 00 00 08 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 0E 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 0E 00 5C 2F 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 0F [14:36:36]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:36:36]wFMCommunicate OK [14:36:36]SAM_PROTO_GetShiftState done [14:36:36]FM_GetShiftState done [14:36:36]opened in 1732752282 [14:36:36]opened+sec_in_day 1732838682 [14:36:36]quantity*price = 63221 [14:36:36]sum+1 = 63222 [14:36:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 632.00 Внесено: 632.00 СДАЧА: 0.00 НСП 1% : 5.59 НДС 12% : 67.14 Наличными: 632.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 101 28.11.2024 14:36 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123589 ФПД: 59533544054522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T143641&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123589&fm=59533544054522&tin=02508201610067®Number=0000000000092681&sum=63200 [14:36:37]StoreToDocumentArchive [14:36:37]shift 559 fd 123589 [14:36:37]save to /storage/0559/doc_00123589 [14:36:37]save last doc name /storage/0559/doc_00123589 to /storage/kkm_last_doc_name [14:36:37]save OK [14:36:37]Clear old archive folders... [14:36:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:37]tlvbuf is 014AF760 [14:36:37]SAM_PROTO_ClearQueue [14:36:37]wFMCommunicate request_size=4 [14:36:37]MH_SAM_APDU [14:36:37]CAPDU: 80 09 00 00 [14:36:37]Write to MH i2c: E2 08 00 69 2F 80 09 00 00 00 00 00 00 0A [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:37]Read from MH i2c: E2 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 03 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 03 00 69 2F 00 90 00 0C [14:36:37]RAPDU: 90 00 [14:36:37]wFMCommunicate OK [14:36:37]SAM_PROTO_ClearQueue done [14:36:37]KKMCreateOFDPacket [14:36:37]OFDProtocolAddRootSTLVToBuf [14:36:37]FM_MakeSignedData [14:36:37]FM_MakeSignedData [14:36:37]SAM_PROTO_SignData [14:36:37]wFMCommunicate request_size=4 [14:36:37]MH_SAM_APDU [14:36:37]CAPDU: 80 0D 01 02 [14:36:37]Write to MH i2c: E2 08 00 6A 2F 80 0D 01 02 00 00 00 00 12 [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:37]Read from MH i2c: E2 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 03 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 03 00 6A 2F 00 90 00 0D [14:36:37]RAPDU: 90 00 [14:36:37]wFMCommunicate OK [14:36:37]wFMCommunicate request_size=255 [14:36:37]MH_SAM_APDU [14:36: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 A4 24 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 F5 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 1A 00 00 00 00 07 04 06 00 E0 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 F9 7F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 36 [14:36:37]Write to MH i2c: E2 02 01 6B 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 F5 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 1A 00 00 00 00 07 04 06 00 E0 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 F9 7F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 36 00 00 0D [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 6B 2F 00 90 00 0E [14:36:38]RAPDU: 90 00 [14:36:38]wFMCommunicate OK [14:36:38]wFMCommunicate request_size=10 [14:36:38]MH_SAM_APDU [14:36:38]CAPDU: 80 0D 02 02 05 25 3B BE DE FA [14:36:38]Write to MH i2c: E2 0D 00 6C 2F 80 0D 02 02 05 00 25 3B BE DE FA 00 00 15 [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 6C 2F 00 90 00 0F [14:36:38]RAPDU: 90 00 [14:36:38]wFMCommunicate OK [14:36:38]wFMCommunicate request_size=4 [14:36:38]MH_SAM_APDU [14:36:38]CAPDU: 80 0D 03 02 [14:36:38]Write to MH i2c: E2 08 00 6D 2F 80 0D 03 02 00 00 00 00 17 [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 0B 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 0B 00 6D 2F 00 11 37 57 5E 61 5B C6 DE 90 00 75 [14:36:38]RAPDU: 11 37 57 5E 61 5B C6 DE 90 00 [14:36:38]wFMCommunicate OK [14:36:38]SAM_PROTO_SignData done [14:36:38]FM_MakeSignedData done [14:36:38]CreateOFDProtocolMessage [14:36:38]wFMCommunicate request_size=4 [14:36:38]MH_SAM_APDU [14:36:38]CAPDU: 80 11 00 00 [14:36:38]Write to MH i2c: E2 08 00 6E 2F 80 11 00 00 00 00 00 00 17 [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 17 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 17 00 6E 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 6E [14:36: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:36:38]wFMCommunicate OK [14:36:38]CreateOFDProtocolMessage done [14:36:38]OFDSenderStorePacket 123589 [14:36:38]StoreOFDPacket docnum=123589 [14:36: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 B0 0B 07 01 D3 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 F5 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 1A 00 00 00 00 07 04 06 00 E0 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 F9 7F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 36 25 3B BE DE FA 11 37 57 5E 61 5B C6 DE [14:36:38]CheckFolder [14:36:38]dirname=/storage/ofd_packets [14:36:38]CheckFolder done [14:36:38]ProducePacketName [14:36:38]name=ofd_packets/00123589 [14:36:38]NVStorageSaveData ofd_packets/00123589 [14:36:38]File name is /storage/ofd_packets/00123589 [14:36:38]Write 301 bytes [14:36:38]NVStorageSaveData done [14:36:38]OFDSenderStorePacket done [14:36:38]KKMCreateOFDPacket done [14:36:38]NVStorageSaveData kkm_last_timestamp [14:36:38]File name is /storage/kkm_last_timestamp [14:36:38]Write 4 bytes [14:36:38]NVStorageSaveData done [14:36:38]ExternCall_PrintAddStr [14:36:38]wPrintStart [14:36:38]Write to MH i2c: 01 00 00 6F 2F 9E [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: 01 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: 01 07 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: 01 07 00 6F 2F 00 00 00 00 00 FF 0F B3 [14:36:38]RasterBufferAndPrint [14:36:38]line Счет N : (1)718430 [14:36:38]line ИНН: 02508201610067 [14:36:38]line Контрольно-Кассовый Чек [14:36:38]line ПРОДАЖА [14:36:38]line ТРК (МРК, ГНК) : 22 [14:36:38]line Товар: 2710124130 [14:36:38]line Аи-92-К-4 [14:36:38]line 9.380 * 67.40 [14:36:38]line = 632.21 [14:36:38]line НДС 12% НСП 1% [14:36:38]line > о реализуемом товаре [14:36:38]line ОКРУГЛЕНИЕ: -0.21 [14:36:38]line ИТОГО: 632.00 [14:36:38]line Внесено: 632.00 [14:36:38]line СДАЧА: 0.00 [14:36:38]line НСП 1% : 5.59 [14:36:38]line НДС 12% : 67.14 [14:36:38]line Наличными: 632.00 [14:36:38]line Безнал.: 0.00 [14:36:38]line Место: АЗС № 64 "Партнер Нефть" [14:36:38]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:36:38]line СНО: Общий режим [14:36:38]line Чек 101 28.11.2024 14:36 [14:36:38]line Смена: 559 ФФД: 1.0 [14:36:38]line ЗНМ: 0300000033 [14:36:38]line РНМ: 0000000000092681 [14:36:38]line Версия ККМ: 001 [14:36:38]line ФМ: 0000000000874881 [14:36:38]line ФД: 123589 [14:36:38]line ФПД: 59533544054522 [14:36:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T143641&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123589&fm=59533544054522&tin=02508201610067®Number=0000000000092681&sum=63200 [14:36:38]OFD Sender: Processing packet 123589 [packets to send 7, broken 6] [14:36:38]ProducePacketName [14:36:38]name=ofd_packets/00123589 [14:36:38]OFD Sender: To server: pG, [14:36:38]CommunicateWithHost lk.salyk.kg:30040 [14:36:38]ConnectInit lk.salyk.kg [14:36:38]written 0, free lines is 4095 [14:36:38]Connected sock=10 [14:36: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 B0 0B 07 01 D3 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 F5 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 1A 00 00 00 00 07 04 06 00 E0 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 F9 7F 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 36 25 3B BE DE FA 11 37 57 5E 61 5B C6 DE [14:36: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 56 BB 47 00 F7 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C5 E2 01 00 F4 03 04 00 BF 2B 48 67 B6 04 01 00 00 EF EA 6A 65 25 9A A8 7B [14:36:38]CommunicateWithHost err = 0 [14:36:38]CheckOFDResponse [14:36:38]1017 (14) - 77093643461234 [14:36:38]1041 (16) - 0000000000874881 [14:36:38]1040 (4) - 123589 [14:36:38]1012 (4) - 28.11.2024 08:37 [14:36:38]1206 (1) - 0 [14:36:38]OFD Sender: Remove packet 123589 [14:36:38]ProducePacketName [14:36:38]name=ofd_packets/00123589 [14:36:38]NVStorageDeleteData [14:36:39]Write to MH i2c: 01 00 00 9A 2F C9 [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 07 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 07 00 9A 2F 00 00 00 00 00 56 0C 32 [14:36:39]RasterBufferAndPrint [14:36:39]line [14:36:39]line [14:36:39]line [14:36:39]line [14:36:39]line [14:36:39]written 0, free lines is 3163 [14:36:39]MH_Cut [14:36:39]Write to MH i2c: D1 01 00 A1 2F 01 A2 [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: D1 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: D1 01 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: D1 01 00 A1 2F 00 A1 [14:36:39]Write to MH i2c: 01 00 00 A2 2F D1 [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]OFD Sender: No OFD packet to send [14:36:40]*** Cut start [14:36:40]*** Partial cut [14:36:40]*** CUTSNS_PIN = 1 [14:36:40]*** CUTSNS_PIN = 0 [14:36:40]*** Brake cut motor [14:36:41]Read from MH i2c: 01 [14:36:41]MH_I2C_Read... [14:36:41]*** Stop cut motor [14:36:41]*** Cut end [14:36:41]Read from MH i2c: 01 07 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: 01 07 00 A2 2F 00 00 00 00 00 FF 0F E6 [14:36:41]process_action close_receipt done [14:36:41]requested_data is exist [14:36:41]produce_requested_data [14:36:41]requested_item fm.sn is exist - process it [14:36:41]wFMCommunicate request_size=4 [14:36:41]MH_SAM_APDU [14:36:41]CAPDU: 80 11 00 00 [14:36:41]Write to MH i2c: E2 08 00 A3 2F 80 11 00 00 00 00 00 00 4C [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:41]Read from MH i2c: E2 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 17 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 17 00 A3 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A3 [14:36: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:36:41]wFMCommunicate OK [14:36:41]requested_item fd.num is exist - process it [14:36:41]SAM_PROTO_GetFieldsCounters [14:36:41]wFMCommunicate request_size=4 [14:36:41]MH_SAM_APDU [14:36:41]CAPDU: 80 13 00 00 [14:36:41]Write to MH i2c: E2 08 00 A4 2F 80 13 00 00 00 00 00 00 4F [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:41]Read from MH i2c: E2 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 62 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 62 00 A4 2F 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 E2 01 00 0E 04 04 00 2F 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 7D [14:36: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 C5 E2 01 00 0E 04 04 00 2F 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 [14:36:41]wFMCommunicate OK [14:36:41]SAM_PROTO_GetFieldsCounters done [14:36:41]requested_item shift.num is exist - process it [14:36:41]requested_item shift.opened is exist - process it [14:36:41]req_shift_opened [14:36:41]FM_GetShiftState [14:36:41]SAM_PROTO_GetShiftState [14:36:41]wFMCommunicate request_size=4 [14:36:41]MH_SAM_APDU [14:36:41]CAPDU: 80 13 01 00 [14:36:41]Write to MH i2c: E2 08 00 A5 2F 80 13 01 00 00 00 00 00 51 [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:41]Read from MH i2c: E2 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 0E 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 0E 00 A5 2F 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 58 [14:36:41]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:36:41]wFMCommunicate OK [14:36:41]SAM_PROTO_GetShiftState done [14:36:41]FM_GetShiftState done [14:36:41]req_shift_opened done [14:36:41]requested_item shift.open_date is exist - process it [14:36:41]req_shift_open_date [14:36:41]req_shift_open_date done [14:36:41]produce_requested_data done [14:36:41]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123589,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [14:36:41]process_action_free close_receipt [14:36:41]json_value_free [14:36:41]json_value_free done [14:36:41]process_json_proto returns [14:36:41]Send response to host [14:36:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123589,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [14:36:41]free response buf [14:36:41]execute_script done [14:36:41]execute_script returns [14:36:41]free content buf [14:36:41]Sock 9.Close socket [14:36:41]Sock 9.Thread stoped [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:53]accept exits with 8 [14:40:53]New connection [14:40:53]New thread 3066719588 created [14:40:53]Thread 3066862948 joined [14:40:53]Waiting for new connection... [14:40:53] Sock 8.Parse request [14:40:53]Sock 8.Check first char [14:40:53]Sock 8.First char is OK [14:40:53]request: POST /json_proto HTTP/1.0 [14:40:53]Method: POST [14:40:53]URL: /json_proto [14:40:53]Method is POST - this is cgi request [14:40:53]url: /json_proto [14:40:53]query_string will be loaded in cgi processing [14:40:53]execute_cgi json_proto POST (null) [14:40:53]execute_cgi path=json_proto method=POST [14:40:53]POST find Content-Length [14:40:53]Host: 172.17.37.4:8080 [14:40:53]Content-Length: 791 [14:40:53]Content-Type: application/json [14:40:53] [14:40:53]POST finish read [14:40:53]Found Content-Length = 791 [14:40:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718432", "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" : 0.00, "quantity" : 7.420, "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" ] } } [14:40:53]execute_script... [14: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)718432", "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" : 0.00, "quantity" : 7.420, "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" ] } } [14:40:53]POST & json_proto [14:40:53]process_json_proto [14:40:53]json parsed OK: [14:40:53]protocol is kg_v1.0 [14:40:53]action value=close_receipt [14:40:53]process_action close_receipt [14:40:53]cmd_close_receipt [14:40:53]MH_GetDate [14:40:53]Write to MH i2c: F0 00 00 A6 2F C4 [14:40:53]Write i2c OK [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: F0 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: F0 09 00 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: F0 09 00 A6 2F 00 FB 80 48 67 1D 3A 47 67 FC [14:40:53]GetLastDocTimeStamp 1732804601 [14:40:53]current date 1732804859 [14:40:53]FM_GetShiftState [14:40:53]SAM_PROTO_GetShiftState [14:40:53]wFMCommunicate request_size=4 [14:40:53]MH_SAM_APDU [14:40:53]CAPDU: 80 13 01 00 [14:40:53]Write to MH i2c: E2 08 00 A7 2F 80 13 01 00 00 00 00 00 53 [14:40:53]Write i2c OK [14:40:53]MH_I2C_Read... [14:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:53]Read from MH i2c: E2 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: E2 0E 00 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: E2 0E 00 A7 2F 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 5A [14:40:53]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:40:53]wFMCommunicate OK [14:40:53]SAM_PROTO_GetShiftState done [14:40:53]FM_GetShiftState done [14:40:53]opened in 1732752282 [14:40:53]opened+sec_in_day 1732838682 [14:40:53]quantity*price = 0 [14:40:53]sum+1 = 1 [14:40:53]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 СНО: Общий режим Чек 102 28.11.2024 14:40 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Талоны: Топливная Карта 89335 ФМ: 0000000000874881 ФД: 123590 ФПД: 33960105956246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T144059&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123590&fm=33960105956246&tin=02508201610067®Number=0000000000092681&sum=0 [14:40:54]StoreToDocumentArchive [14:40:54]shift 559 fd 123590 [14:40:54]save to /storage/0559/doc_00123590 [14:40:54]save last doc name /storage/0559/doc_00123590 to /storage/kkm_last_doc_name [14:40:54]save OK [14:40:54]Clear old archive folders... [14:40:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:54]tlvbuf is 014E0850 [14:40:54]SAM_PROTO_ClearQueue [14:40:54]wFMCommunicate request_size=4 [14:40:54]MH_SAM_APDU [14:40:54]CAPDU: 80 09 00 00 [14:40:54]Write to MH i2c: E2 08 00 B4 2F 80 09 00 00 00 00 00 00 55 [14:40:54]Write i2c OK [14:40:54]MH_I2C_Read... [14:40:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:54]Read from MH i2c: E2 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 03 00 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 03 00 B4 2F 00 90 00 57 [14:40:54]RAPDU: 90 00 [14:40:54]wFMCommunicate OK [14:40:54]SAM_PROTO_ClearQueue done [14:40:54]KKMCreateOFDPacket [14:40:54]OFDProtocolAddRootSTLVToBuf [14:40:54]FM_MakeSignedData [14:40:54]FM_MakeSignedData [14:40:54]SAM_PROTO_SignData [14:40:54]wFMCommunicate request_size=4 [14:40:54]MH_SAM_APDU [14:40:54]CAPDU: 80 0D 01 02 [14:40:54]Write to MH i2c: E2 08 00 B5 2F 80 0D 01 02 00 00 00 00 5D [14:40:54]Write i2c OK [14:40:54]MH_I2C_Read... [14:40:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:55]Read from MH i2c: E2 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 03 00 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 03 00 B5 2F 00 90 00 58 [14:40:55]RAPDU: 90 00 [14:40:55]wFMCommunicate OK [14:40:55]wFMCommunicate request_size=255 [14:40:55]MH_SAM_APDU [14:40: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 FC 1C 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 66 00 00 00 F4 03 04 00 FB 80 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 1E [14:40:55]Write to MH i2c: E2 02 01 B6 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 66 00 00 00 F4 03 04 00 FB 80 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 1E 00 00 0B [14:40:55]Write i2c OK [14:40:55]MH_I2C_Read... [14:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:55]Read from MH i2c: E2 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 03 00 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 03 00 B6 2F 00 90 00 59 [14:40:55]RAPDU: 90 00 [14:40:55]wFMCommunicate OK [14:40:55]wFMCommunicate request_size=10 [14:40:55]MH_SAM_APDU [14:40:55]CAPDU: 80 0D 02 02 05 E2 F4 0D 53 96 [14:40:55]Write to MH i2c: E2 0D 00 B7 2F 80 0D 02 02 05 00 E2 F4 0D 53 96 00 00 36 [14:40:55]Write i2c OK [14:40:55]MH_I2C_Read... [14:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:55]Read from MH i2c: E2 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 03 00 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 03 00 B7 2F 00 90 00 5A [14:40:55]RAPDU: 90 00 [14:40:55]wFMCommunicate OK [14:40:55]wFMCommunicate request_size=4 [14:40:55]MH_SAM_APDU [14:40:55]CAPDU: 80 0D 03 02 [14:40:55]Write to MH i2c: E2 08 00 B8 2F 80 0D 03 02 00 00 00 00 62 [14:40:55]Write i2c OK [14:40:55]MH_I2C_Read... [14:40:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:55]Read from MH i2c: E2 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 0B 00 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 0B 00 B8 2F 00 42 1D 49 D2 FD 19 B2 D5 90 00 7A [14:40:55]RAPDU: 42 1D 49 D2 FD 19 B2 D5 90 00 [14:40:55]wFMCommunicate OK [14:40:55]SAM_PROTO_SignData done [14:40:55]FM_MakeSignedData done [14:40:55]CreateOFDProtocolMessage [14:40:55]wFMCommunicate request_size=4 [14:40:55]MH_SAM_APDU [14:40:55]CAPDU: 80 11 00 00 [14:40:55]Write to MH i2c: E2 08 00 B9 2F 80 11 00 00 00 00 00 00 62 [14:40:55]Write i2c OK [14:40:55]MH_I2C_Read... [14:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:55]Read from MH i2c: E2 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 17 00 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: E2 17 00 B9 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 B9 [14: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 [14:40:55]wFMCommunicate OK [14:40:55]CreateOFDProtocolMessage done [14:40:55]OFDSenderStorePacket 123590 [14:40:55]StoreOFDPacket docnum=123590 [14: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 B8 FF 07 01 71 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 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 66 00 00 00 F4 03 04 00 FB 80 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 1E E2 F4 0D 53 96 42 1D 49 D2 FD 19 B2 D5 [14:40:55]CheckFolder [14:40:55]dirname=/storage/ofd_packets [14:40:55]CheckFolder done [14:40:55]ProducePacketName [14:40:55]name=ofd_packets/00123590 [14:40:55]NVStorageSaveData ofd_packets/00123590 [14:40:55]File name is /storage/ofd_packets/00123590 [14:40:55]Write 301 bytes [14:40:55]NVStorageSaveData done [14:40:55]OFDSenderStorePacket done [14:40:55]KKMCreateOFDPacket done [14:40:55]NVStorageSaveData kkm_last_timestamp [14:40:55]File name is /storage/kkm_last_timestamp [14:40:55]Write 4 bytes [14:40:55]NVStorageSaveData done [14:40:55]ExternCall_PrintAddStr [14:40:55]wPrintStart [14:40:55]Write to MH i2c: 01 00 00 BA 2F E9 [14:40:55]Write i2c OK [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: 01 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: 01 07 00 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: 01 07 00 BA 2F 00 00 00 00 00 FF 0F FE [14:40:55]RasterBufferAndPrint [14:40:55]line Счет N : (1)718432 [14:40:55]line ИНН: 02508201610067 [14:40:55]line Контрольно-Кассовый Чек [14:40:55]line ПРОДАЖА [14:40:55]line ТРК (МРК, ГНК) : 42 [14:40:55]line Товар: 2710124130 [14:40:55]line Аи-92-К-4 [14:40:55]line 7.420 * 0.00 [14:40:55]line = 0.00 [14:40:55]line НДС 12% НСП 1% [14:40:55]line > о реализуемом товаре [14:40:55]line ИТОГО: 0.00 [14:40:55]line НСП 1% : 0.00 [14:40:55]line НДС 12% : 0.00 [14:40:55]line Наличными: 0.00 [14:40:55]line Безнал.: 0.00 [14:40:55]line Место: АЗС № 64 "Партнер Нефть" [14:40:55]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:40:55]line СНО: Общий режим [14:40:55]line Чек 102 28.11.2024 14:40 [14:40:55]line Смена: 559 ФФД: 1.0 [14:40:55]line ЗНМ: 0300000033 [14:40:55]line РНМ: 0000000000092681 [14:40:55]line Версия ККМ: 001 [14:40:55]line Талоны: Топливная Карта [14:40:55]line 89335 [14:40:55]line ФМ: 0000000000874881 [14:40:55]line ФД: 123590 [14:40:55]line ФПД: 33960105956246 [14:40:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T144059&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123590&fm=33960105956246&tin=02508201610067®Number=0000000000092681&sum=0 [14:40:55]written 0, free lines is 4095 [14:40:55]OFD Sender: Processing packet 123590 [packets to send 7, broken 6] [14:40:55]ProducePacketName [14:40:55]name=ofd_packets/00123590 [14:40:55]OFD Sender: To server: pG, [14:40:55]CommunicateWithHost lk.salyk.kg:30040 [14:40:55]ConnectInit lk.salyk.kg [14:40:55]Connected sock=10 [14: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 B8 FF 07 01 71 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FC 1C 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 66 00 00 00 F4 03 04 00 FB 80 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 1E E2 F4 0D 53 96 42 1D 49 D2 FD 19 B2 D5 [14: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 43 F7 47 00 44 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C6 E2 01 00 F4 03 04 00 C0 2C 48 67 B6 04 01 00 00 F5 F1 A8 4B 9C FB 52 FD [14:40:55]CommunicateWithHost err = 0 [14:40:55]CheckOFDResponse [14:40:55]1017 (14) - 77093643461234 [14:40:55]1041 (16) - 0000000000874881 [14:40:55]1040 (4) - 123590 [14:40:55]1012 (4) - 28.11.2024 08:41 [14:40:55]1206 (1) - 0 [14:40:55]OFD Sender: Remove packet 123590 [14:40:55]ProducePacketName [14:40:55]name=ofd_packets/00123590 [14:40:55]NVStorageDeleteData [14:40:55]Write to MH i2c: 01 00 00 E4 2F 13 [14:40:55]Write i2c OK [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: 01 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: 01 07 00 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: 01 07 00 E4 2F 00 00 00 00 00 72 0C 98 [14:40:55]RasterBufferAndPrint [14:40:55]line [14:40:55]line [14:40:55]line [14:40:55]line [14:40:55]line [14:40:55]written 0, free lines is 3192 [14:40:55]MH_Cut [14:40:55]Write to MH i2c: D1 01 00 EB 2F 01 EC [14:40:55]Write i2c OK [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: D1 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: D1 01 00 [14:40:55]MH_I2C_Read... [14:40:55]Read from MH i2c: D1 01 00 EB 2F 00 EB [14:40:55]Write to MH i2c: 01 00 00 EC 2F 1B [14:40:55]Write i2c OK [14:40:55]MH_I2C_Read... [14:40:56]OFD Sender: No OFD packet to send [14:40:57]*** Cut start [14:40:57]*** Partial cut [14:40:57]*** CUTSNS_PIN = 1 [14:40:57]*** CUTSNS_PIN = 0 [14:40:57]*** Brake cut motor [14:40:57]Read from MH i2c: 01 [14:40:57]MH_I2C_Read... [14:40:57]*** Stop cut motor [14:40:57]*** Cut end [14:40:57]Read from MH i2c: 01 07 00 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: 01 07 00 EC 2F 00 00 00 00 00 FF 0F 30 [14:40:57]process_action close_receipt done [14:40:57]requested_data is exist [14:40:57]produce_requested_data [14:40:57]requested_item fm.sn is exist - process it [14:40:57]wFMCommunicate request_size=4 [14:40:57]MH_SAM_APDU [14:40:57]CAPDU: 80 11 00 00 [14:40:57]Write to MH i2c: E2 08 00 ED 2F 80 11 00 00 00 00 00 00 96 [14:40:57]Write i2c OK [14:40:57]MH_I2C_Read... [14:40:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:57]Read from MH i2c: E2 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 17 00 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 17 00 ED 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 ED [14:40: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:40:57]wFMCommunicate OK [14:40:57]requested_item fd.num is exist - process it [14:40:57]SAM_PROTO_GetFieldsCounters [14:40:57]wFMCommunicate request_size=4 [14:40:57]MH_SAM_APDU [14:40:57]CAPDU: 80 13 00 00 [14:40:57]Write to MH i2c: E2 08 00 EE 2F 80 13 00 00 00 00 00 00 99 [14:40:57]Write i2c OK [14:40:57]MH_I2C_Read... [14:40:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:58]Read from MH i2c: E2 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 62 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 62 00 EE 2F 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 E2 01 00 0E 04 04 00 2F 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 CB [14: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 C6 E2 01 00 0E 04 04 00 2F 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 [14:40:58]wFMCommunicate OK [14:40:58]SAM_PROTO_GetFieldsCounters done [14:40:58]requested_item shift.num is exist - process it [14:40:58]requested_item shift.opened is exist - process it [14:40:58]req_shift_opened [14:40:58]FM_GetShiftState [14:40:58]SAM_PROTO_GetShiftState [14:40:58]wFMCommunicate request_size=4 [14:40:58]MH_SAM_APDU [14:40:58]CAPDU: 80 13 01 00 [14:40:58]Write to MH i2c: E2 08 00 EF 2F 80 13 01 00 00 00 00 00 9B [14:40:58]Write i2c OK [14:40:58]MH_I2C_Read... [14:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:58]Read from MH i2c: E2 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 0E 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 0E 00 EF 2F 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 A2 [14:40:58]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:40:58]wFMCommunicate OK [14:40:58]SAM_PROTO_GetShiftState done [14:40:58]FM_GetShiftState done [14:40:58]req_shift_opened done [14:40:58]requested_item shift.open_date is exist - process it [14:40:58]req_shift_open_date [14:40:58]req_shift_open_date done [14:40:58]produce_requested_data done [14:40:58]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123590,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [14:40:58]process_action_free close_receipt [14:40:58]json_value_free [14:40:58]json_value_free done [14:40:58]process_json_proto returns [14:40:58]Send response to host [14:40:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123590,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [14:40:58]free response buf [14:40:58]execute_script done [14:40:58]execute_script returns [14:40:58]free content buf [14:40:58]Sock 8.Close socket [14:40:58]Sock 8.Thread stoped [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:50]accept exits with 9 [14:41:50]New connection [14:41:50]New thread 3066862948 created [14:41:50]Thread 3066719588 joined [14:41:50]Waiting for new connection... [14:41:50] Sock 9.Parse request [14:41:50]Sock 9.Check first char [14:41:50]Sock 9.First char is OK [14:41:50]request: POST /json_proto HTTP/1.0 [14:41:50]Method: POST [14:41:50]URL: /json_proto [14:41:50]Method is POST - this is cgi request [14:41:50]url: /json_proto [14:41:50]query_string will be loaded in cgi processing [14:41:50]execute_cgi json_proto POST (null) [14:41:50]execute_cgi path=json_proto method=POST [14:41:50]POST find Content-Length [14:41:50]Host: 172.17.37.4:8080 [14:41:50]Content-Length: 677 [14:41:50]Content-Type: application/json [14:41:50] [14:41:50]POST finish read [14:41:50]Found Content-Length = 677 [14:41:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718433", "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" ] } } [14:41:50]execute_script... [14:41: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)718433", "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" ] } } [14:41:50]POST & json_proto [14:41:50]process_json_proto [14:41:50]json parsed OK: [14:41:50]protocol is kg_v1.0 [14:41:50]action value=close_receipt [14:41:50]process_action close_receipt [14:41:50]cmd_close_receipt [14:41:50]MH_GetDate [14:41:50]Write to MH i2c: F0 00 00 F0 2F 0E [14:41:50]Write i2c OK [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: F0 [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: F0 09 00 [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: F0 09 00 F0 2F 00 34 81 48 67 1D 3A 47 67 80 [14:41:50]GetLastDocTimeStamp 1732804859 [14:41:50]current date 1732804916 [14:41:50]FM_GetShiftState [14:41:50]SAM_PROTO_GetShiftState [14:41:50]wFMCommunicate request_size=4 [14:41:50]MH_SAM_APDU [14:41:50]CAPDU: 80 13 01 00 [14:41:50]Write to MH i2c: E2 08 00 F1 2F 80 13 01 00 00 00 00 00 9D [14:41:50]Write i2c OK [14:41:50]MH_I2C_Read... [14:41:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:50]Read from MH i2c: E2 [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: E2 0E 00 [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: E2 0E 00 F1 2F 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 A4 [14:41:50]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:41:50]wFMCommunicate OK [14:41:50]SAM_PROTO_GetShiftState done [14:41:50]FM_GetShiftState done [14:41:50]opened in 1732752282 [14:41:50]opened+sec_in_day 1732838682 [14:41:50]quantity*price = 30060 [14:41:50]sum+1 = 30061 [14:41:50]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 СНО: Общий режим Чек 103 28.11.2024 14:41 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123591 ФПД: 208325467863216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T144156&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123591&fm=208325467863216&tin=02508201610067®Number=0000000000092681&sum=30000 [14:41:51]StoreToDocumentArchive [14:41:51]shift 559 fd 123591 [14:41:51]save to /storage/0559/doc_00123591 [14:41:51]save last doc name /storage/0559/doc_00123591 to /storage/kkm_last_doc_name [14:41:51]save OK [14:41:51]Clear old archive folders... [14:41:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:51]tlvbuf is 01480D60 [14:41:51]SAM_PROTO_ClearQueue [14:41:51]wFMCommunicate request_size=4 [14:41:51]MH_SAM_APDU [14:41:51]CAPDU: 80 09 00 00 [14:41:51]Write to MH i2c: E2 08 00 FE 2F 80 09 00 00 00 00 00 00 9F [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:51]Read from MH i2c: E2 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 FE 2F 00 90 00 A1 [14:41:51]RAPDU: 90 00 [14:41:51]wFMCommunicate OK [14:41:51]SAM_PROTO_ClearQueue done [14:41:51]KKMCreateOFDPacket [14:41:51]OFDProtocolAddRootSTLVToBuf [14:41:51]FM_MakeSignedData [14:41:51]FM_MakeSignedData [14:41:51]SAM_PROTO_SignData [14:41:51]wFMCommunicate request_size=4 [14:41:51]MH_SAM_APDU [14:41:51]CAPDU: 80 0D 01 02 [14:41:51]Write to MH i2c: E2 08 00 FF 2F 80 0D 01 02 00 00 00 00 A7 [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:51]Read from MH i2c: E2 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 FF 2F 00 90 00 A2 [14:41:51]RAPDU: 90 00 [14:41:51]wFMCommunicate OK [14:41:51]wFMCommunicate request_size=255 [14:41:51]MH_SAM_APDU [14:41: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 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 67 00 00 00 F4 03 04 00 34 81 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 BD [14:41:51]Write to MH i2c: E2 02 01 00 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 67 00 00 00 F4 03 04 00 34 81 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 BD 00 00 BE [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:52]Read from MH i2c: E2 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: E2 03 00 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: E2 03 00 00 30 00 90 00 A4 [14:41:52]RAPDU: 90 00 [14:41:52]wFMCommunicate OK [14:41:52]wFMCommunicate request_size=10 [14:41:52]MH_SAM_APDU [14:41:52]CAPDU: 80 0D 02 02 05 78 8D 82 78 B0 [14:41:52]Write to MH i2c: E2 0D 00 01 30 80 0D 02 02 05 00 78 8D 82 78 B0 00 00 64 [14:41:52]Write i2c OK [14:41:52]MH_I2C_Read... [14:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:52]Read from MH i2c: E2 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: E2 03 00 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: E2 03 00 01 30 00 90 00 A5 [14:41:52]RAPDU: 90 00 [14:41:52]wFMCommunicate OK [14:41:52]wFMCommunicate request_size=4 [14:41:52]MH_SAM_APDU [14:41:52]CAPDU: 80 0D 03 02 [14:41:52]Write to MH i2c: E2 08 00 02 30 80 0D 03 02 00 00 00 00 AD [14:41:52]Write i2c OK [14:41:52]MH_I2C_Read... [14:41:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:52]Read from MH i2c: E2 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: E2 0B 00 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: E2 0B 00 02 30 00 8F 8C CF A7 7C 73 27 AF 90 00 04 [14:41:52]RAPDU: 8F 8C CF A7 7C 73 27 AF 90 00 [14:41:52]wFMCommunicate OK [14:41:52]SAM_PROTO_SignData done [14:41:52]FM_MakeSignedData done [14:41:52]CreateOFDProtocolMessage [14:41:52]wFMCommunicate request_size=4 [14:41:52]MH_SAM_APDU [14:41:52]CAPDU: 80 11 00 00 [14:41:52]Write to MH i2c: E2 08 00 03 30 80 11 00 00 00 00 00 00 AD [14:41:52]Write i2c OK [14:41:52]MH_I2C_Read... [14:41:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:52]Read from MH i2c: E2 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: E2 17 00 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: E2 17 00 03 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 04 [14:41: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:41:52]wFMCommunicate OK [14:41:52]CreateOFDProtocolMessage done [14:41:52]OFDSenderStorePacket 123591 [14:41:52]StoreOFDPacket docnum=123591 [14:41: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 1B 66 07 01 8F 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 67 00 00 00 F4 03 04 00 34 81 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 BD 78 8D 82 78 B0 8F 8C CF A7 7C 73 27 AF [14:41:52]CheckFolder [14:41:52]dirname=/storage/ofd_packets [14:41:52]CheckFolder done [14:41:52]ProducePacketName [14:41:52]name=ofd_packets/00123591 [14:41:52]NVStorageSaveData ofd_packets/00123591 [14:41:52]File name is /storage/ofd_packets/00123591 [14:41:52]Write 301 bytes [14:41:52]NVStorageSaveData done [14:41:52]OFDSenderStorePacket done [14:41:52]KKMCreateOFDPacket done [14:41:52]NVStorageSaveData kkm_last_timestamp [14:41:52]File name is /storage/kkm_last_timestamp [14:41:52]Write 4 bytes [14:41:52]NVStorageSaveData done [14:41:52]ExternCall_PrintAddStr [14:41:52]wPrintStart [14:41:52]Write to MH i2c: 01 00 00 04 30 34 [14:41:52]Write i2c OK [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: 01 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: 01 07 00 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: 01 07 00 04 30 00 00 00 00 00 FF 0F 49 [14:41:52]RasterBufferAndPrint [14:41:52]line Счет N : (1)718433 [14:41:52]line ИНН: 02508201610067 [14:41:52]line Контрольно-Кассовый Чек [14:41:52]line ПРОДАЖА [14:41:52]line ТРК (МРК, ГНК) : 32 [14:41:52]line Товар: 2710124130 [14:41:52]line Аи-92-К-4 [14:41:52]line 4.460 * 67.40 [14:41:52]line = 300.60 [14:41:52]line НДС 12% НСП 1% [14:41:52]line > о реализуемом товаре [14:41:52]line ОКРУГЛЕНИЕ: -0.60 [14:41:52]line ИТОГО: 300.00 [14:41:52]line Внесено: 300.00 [14:41:52]line СДАЧА: 0.00 [14:41:52]line НСП 1% : 2.66 [14:41:52]line НДС 12% : 31.92 [14:41:52]line Наличными: 300.00 [14:41:52]line Безнал.: 0.00 [14:41:52]line Место: АЗС № 64 "Партнер Нефть" [14:41:52]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:41:52]line СНО: Общий режим [14:41:52]line Чек 103 28.11.2024 14:41 [14:41:52]line Смена: 559 ФФД: 1.0 [14:41:52]line ЗНМ: 0300000033 [14:41:52]line РНМ: 0000000000092681 [14:41:52]line Версия ККМ: 001 [14:41:52]line ФМ: 0000000000874881 [14:41:52]line ФД: 123591 [14:41:52]line ФПД: 208325467863216 [14:41:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T144156&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123591&fm=208325467863216&tin=02508201610067®Number=0000000000092681&sum=30000 [14:41:52]written 0, free lines is 4095 [14:41:52]OFD Sender: Processing packet 123591 [packets to send 7, broken 6] [14:41:52]ProducePacketName [14:41:52]name=ofd_packets/00123591 [14:41:52]OFD Sender: To server: pG, [14:41:52]CommunicateWithHost lk.salyk.kg:30040 [14:41:52]ConnectInit lk.salyk.kg [14:41:52]Connected sock=10 [14:41: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 1B 66 07 01 8F 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 67 00 00 00 F4 03 04 00 34 81 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 BD 78 8D 82 78 B0 8F 8C CF A7 7C 73 27 AF [14:41: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 9B FB 47 00 8B 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C7 E2 01 00 F4 03 04 00 F9 2C 48 67 B6 04 01 00 00 0F D2 66 ED 57 90 05 06 [14:41:52]CommunicateWithHost err = 0 [14:41:52]CheckOFDResponse [14:41:52]1017 (14) - 77093643461234 [14:41:52]1041 (16) - 0000000000874881 [14:41:52]1040 (4) - 123591 [14:41:52]1012 (4) - 28.11.2024 08:42 [14:41:52]1206 (1) - 0 [14:41:52]OFD Sender: Remove packet 123591 [14:41:52]ProducePacketName [14:41:52]name=ofd_packets/00123591 [14:41:52]NVStorageDeleteData [14:41:52]Write to MH i2c: 01 00 00 2F 30 5F [14:41:52]Write i2c OK [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: 01 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: 01 07 00 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: 01 07 00 2F 30 00 00 00 00 00 4E 0C C0 [14:41:52]RasterBufferAndPrint [14:41:52]line [14:41:52]line [14:41:52]line [14:41:52]line [14:41:52]line [14:41:52]written 0, free lines is 3154 [14:41:52]MH_Cut [14:41:52]Write to MH i2c: D1 01 00 36 30 01 38 [14:41:52]Write i2c OK [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: D1 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: D1 01 00 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: D1 01 00 36 30 00 37 [14:41:52]Write to MH i2c: 01 00 00 37 30 67 [14:41:52]Write i2c OK [14:41:52]MH_I2C_Read... [14:41:53]OFD Sender: No OFD packet to send [14:41:54]*** Cut start [14:41:54]*** Partial cut [14:41:54]*** CUTSNS_PIN = 1 [14:41:54]*** CUTSNS_PIN = 0 [14:41:54]*** Brake cut motor [14:41:54]Read from MH i2c: 01 [14:41:54]MH_I2C_Read... [14:41:54]*** Stop cut motor [14:41:54]*** Cut end [14:41:54]Read from MH i2c: 01 07 00 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: 01 07 00 37 30 00 00 00 00 00 FF 0F 7C [14:41:54]process_action close_receipt done [14:41:54]requested_data is exist [14:41:54]produce_requested_data [14:41:54]requested_item fm.sn is exist - process it [14:41:54]wFMCommunicate request_size=4 [14:41:54]MH_SAM_APDU [14:41:54]CAPDU: 80 11 00 00 [14:41:54]Write to MH i2c: E2 08 00 38 30 80 11 00 00 00 00 00 00 E2 [14:41:54]Write i2c OK [14:41:54]MH_I2C_Read... [14:41:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:54]Read from MH i2c: E2 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: E2 17 00 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: E2 17 00 38 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 39 [14:41:54]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:54]wFMCommunicate OK [14:41:54]requested_item fd.num is exist - process it [14:41:54]SAM_PROTO_GetFieldsCounters [14:41:54]wFMCommunicate request_size=4 [14:41:54]MH_SAM_APDU [14:41:54]CAPDU: 80 13 00 00 [14:41:54]Write to MH i2c: E2 08 00 39 30 80 13 00 00 00 00 00 00 E5 [14:41:54]Write i2c OK [14:41:54]MH_I2C_Read... [14:41:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:55]Read from MH i2c: E2 [14:41:55]MH_I2C_Read... [14:41:55]Read from MH i2c: E2 62 00 [14:41:55]MH_I2C_Read... [14:41:55]Read from MH i2c: E2 62 00 39 30 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 E2 01 00 0E 04 04 00 2F 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 1B [14:41: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 C7 E2 01 00 0E 04 04 00 2F 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 [14:41:55]wFMCommunicate OK [14:41:55]SAM_PROTO_GetFieldsCounters done [14:41:55]requested_item shift.num is exist - process it [14:41:55]requested_item shift.opened is exist - process it [14:41:55]req_shift_opened [14:41:55]FM_GetShiftState [14:41:55]SAM_PROTO_GetShiftState [14:41:55]wFMCommunicate request_size=4 [14:41:55]MH_SAM_APDU [14:41:55]CAPDU: 80 13 01 00 [14:41:55]Write to MH i2c: E2 08 00 3A 30 80 13 01 00 00 00 00 00 E7 [14:41:55]Write i2c OK [14:41:55]MH_I2C_Read... [14:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:55]Read from MH i2c: E2 [14:41:55]MH_I2C_Read... [14:41:55]Read from MH i2c: E2 0E 00 [14:41:55]MH_I2C_Read... [14:41:55]Read from MH i2c: E2 0E 00 3A 30 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 EE [14:41:55]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:41:55]wFMCommunicate OK [14:41:55]SAM_PROTO_GetShiftState done [14:41:55]FM_GetShiftState done [14:41:55]req_shift_opened done [14:41:55]requested_item shift.open_date is exist - process it [14:41:55]req_shift_open_date [14:41:55]req_shift_open_date done [14:41:55]produce_requested_data done [14:41:55]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123591,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [14:41:55]process_action_free close_receipt [14:41:55]json_value_free [14:41:55]json_value_free done [14:41:55]process_json_proto returns [14:41:55]Send response to host [14:41:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123591,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [14:41:55]free response buf [14:41:55]execute_script done [14:41:55]execute_script returns [14:41:55]free content buf [14:41:55]Sock 9.Close socket [14:41:55]Sock 9.Thread stoped [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:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:10]accept exits with 8 [14:45:10]New connection [14:45:10]New thread 3066719588 created [14:45:10]Thread 3066862948 joined [14:45:10]Waiting for new connection... [14:45:10] Sock 8.Parse request [14:45:10]Sock 8.Check first char [14:45:10]Sock 8.First char is OK [14:45:10]request: POST /json_proto HTTP/1.0 [14:45:10]Method: POST [14:45:10]URL: /json_proto [14:45:10]Method is POST - this is cgi request [14:45:10]url: /json_proto [14:45:10]query_string will be loaded in cgi processing [14:45:10]execute_cgi json_proto POST (null) [14:45:10]execute_cgi path=json_proto method=POST [14:45:10]POST find Content-Length [14:45:10]Host: 172.17.37.4:8080 [14:45:10]Content-Length: 803 [14:45:10]Content-Type: application/json [14:45:10] [14:45:10]POST finish read [14:45:10]Found Content-Length = 803 [14:45:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718434", "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" ] } } [14:45:10]execute_script... [14:45: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)718434", "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" ] } } [14:45:10]POST & json_proto [14:45:10]process_json_proto [14:45:10]json parsed OK: [14:45:10]protocol is kg_v1.0 [14:45:10]action value=close_receipt [14:45:10]process_action close_receipt [14:45:10]cmd_close_receipt [14:45:10]MH_GetDate [14:45:10]Write to MH i2c: F0 00 00 3B 30 5A [14:45:10]Write i2c OK [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: F0 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: F0 09 00 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: F0 09 00 3B 30 00 FC 81 48 67 1D 3A 47 67 94 [14:45:10]GetLastDocTimeStamp 1732804916 [14:45:10]current date 1732805116 [14:45:10]FM_GetShiftState [14:45:10]SAM_PROTO_GetShiftState [14:45:10]wFMCommunicate request_size=4 [14:45:10]MH_SAM_APDU [14:45:10]CAPDU: 80 13 01 00 [14:45:10]Write to MH i2c: E2 08 00 3C 30 80 13 01 00 00 00 00 00 E9 [14:45:10]Write i2c OK [14:45:10]MH_I2C_Read... [14:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:11]Read from MH i2c: E2 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 0E 00 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 0E 00 3C 30 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 F0 [14:45:11]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:45:11]wFMCommunicate OK [14:45:11]SAM_PROTO_GetShiftState done [14:45:11]FM_GetShiftState done [14:45:11]opened in 1732752282 [14:45:11]opened+sec_in_day 1732838682 [14:45:11]quantity*price = 200043 [14:45:11]sum+1 = 200044 [14:45:11]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 СНО: Общий режим Чек 104 28.11.2024 14:45 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874881 ФД: 123592 ФПД: 202965344373559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T144516&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123592&fm=202965344373559&tin=02508201610067®Number=0000000000092681&sum=200043 [14:45:12]StoreToDocumentArchive [14:45:12]shift 559 fd 123592 [14:45:12]save to /storage/0559/doc_00123592 [14:45:12]save last doc name /storage/0559/doc_00123592 to /storage/kkm_last_doc_name [14:45:12]save OK [14:45:12]Clear old archive folders... [14:45:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:12]tlvbuf is 014908C0 [14:45:12]SAM_PROTO_ClearQueue [14:45:12]wFMCommunicate request_size=4 [14:45:12]MH_SAM_APDU [14:45:12]CAPDU: 80 09 00 00 [14:45:12]Write to MH i2c: E2 08 00 49 30 80 09 00 00 00 00 00 00 EB [14:45:12]Write i2c OK [14:45:12]MH_I2C_Read... [14:45:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:12]Read from MH i2c: E2 [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: E2 03 00 [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: E2 03 00 49 30 00 90 00 ED [14:45:12]RAPDU: 90 00 [14:45:12]wFMCommunicate OK [14:45:12]SAM_PROTO_ClearQueue done [14:45:12]KKMCreateOFDPacket [14:45:12]OFDProtocolAddRootSTLVToBuf [14:45:12]FM_MakeSignedData [14:45:12]FM_MakeSignedData [14:45:12]SAM_PROTO_SignData [14:45:12]wFMCommunicate request_size=4 [14:45:12]MH_SAM_APDU [14:45:12]CAPDU: 80 0D 01 02 [14:45:12]Write to MH i2c: E2 08 00 4A 30 80 0D 01 02 00 00 00 00 F3 [14:45:12]Write i2c OK [14:45:12]MH_I2C_Read... [14:45:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:12]Read from MH i2c: E2 [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: E2 03 00 [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: E2 03 00 4A 30 00 90 00 EE [14:45:12]RAPDU: 90 00 [14:45:12]wFMCommunicate OK [14:45:12]wFMCommunicate request_size=255 [14:45:12]MH_SAM_APDU [14:45: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 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 68 00 00 00 F4 03 04 00 FC 81 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B8 [14:45:12]Write to MH i2c: E2 02 01 4B 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 68 00 00 00 F4 03 04 00 FC 81 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B8 00 00 A8 [14:45:12]Write i2c OK [14:45:12]MH_I2C_Read... [14:45:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:12]Read from MH i2c: E2 [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: E2 03 00 [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: E2 03 00 4B 30 00 90 00 EF [14:45:12]RAPDU: 90 00 [14:45:12]wFMCommunicate OK [14:45:12]wFMCommunicate request_size=10 [14:45:12]MH_SAM_APDU [14:45:12]CAPDU: 80 0D 02 02 05 98 8D 40 CB 37 [14:45:12]Write to MH i2c: E2 0D 00 4C 30 80 0D 02 02 05 00 98 8D 40 CB 37 00 00 67 [14:45:12]Write i2c OK [14:45:12]MH_I2C_Read... [14:45:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:12]Read from MH i2c: E2 [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: E2 03 00 [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: E2 03 00 4C 30 00 90 00 F0 [14:45:12]RAPDU: 90 00 [14:45:12]wFMCommunicate OK [14:45:12]wFMCommunicate request_size=4 [14:45:12]MH_SAM_APDU [14:45:12]CAPDU: 80 0D 03 02 [14:45:12]Write to MH i2c: E2 08 00 4D 30 80 0D 03 02 00 00 00 00 F8 [14:45:12]Write i2c OK [14:45:12]MH_I2C_Read... [14:45:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:12]Read from MH i2c: E2 [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: E2 0B 00 [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: E2 0B 00 4D 30 00 05 A7 26 5D 47 00 15 F8 90 00 7C [14:45:12]RAPDU: 05 A7 26 5D 47 00 15 F8 90 00 [14:45:12]wFMCommunicate OK [14:45:12]SAM_PROTO_SignData done [14:45:12]FM_MakeSignedData done [14:45:12]CreateOFDProtocolMessage [14:45:12]wFMCommunicate request_size=4 [14:45:12]MH_SAM_APDU [14:45:12]CAPDU: 80 11 00 00 [14:45:12]Write to MH i2c: E2 08 00 4E 30 80 11 00 00 00 00 00 00 F8 [14:45:12]Write i2c OK [14:45:12]MH_I2C_Read... [14:45:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:12]Read from MH i2c: E2 [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: E2 17 00 [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: E2 17 00 4E 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 4F [14:45: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:45:12]wFMCommunicate OK [14:45:12]CreateOFDProtocolMessage done [14:45:12]OFDSenderStorePacket 123592 [14:45:12]StoreOFDPacket docnum=123592 [14:45: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 27 35 07 01 94 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 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 68 00 00 00 F4 03 04 00 FC 81 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B8 98 8D 40 CB 37 05 A7 26 5D 47 00 15 F8 [14:45:12]CheckFolder [14:45:12]dirname=/storage/ofd_packets [14:45:12]CheckFolder done [14:45:12]ProducePacketName [14:45:12]name=ofd_packets/00123592 [14:45:12]NVStorageSaveData ofd_packets/00123592 [14:45:12]File name is /storage/ofd_packets/00123592 [14:45:12]Write 301 bytes [14:45:12]NVStorageSaveData done [14:45:12]OFDSenderStorePacket done [14:45:12]KKMCreateOFDPacket done [14:45:12]NVStorageSaveData kkm_last_timestamp [14:45:12]File name is /storage/kkm_last_timestamp [14:45:12]Write 4 bytes [14:45:12]NVStorageSaveData done [14:45:12]ExternCall_PrintAddStr [14:45:12]wPrintStart [14:45:12]Write to MH i2c: 01 00 00 4F 30 7F [14:45:12]Write i2c OK [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: 01 [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: 01 07 00 [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: 01 07 00 4F 30 00 00 00 00 00 FF 0F 94 [14:45:12]RasterBufferAndPrint [14:45:12]line Счет N : (1)718434 [14:45:12]line ИНН: 02508201610067 [14:45:12]line Контрольно-Кассовый Чек [14:45:12]line ПРОДАЖА [14:45:12]line ТРК (МРК, ГНК) : 22 [14:45:12]line Товар: 2710124130 [14:45:12]line Аи-92-К-4 [14:45:12]line 29.680 * 67.40 [14:45:12]line = 2000.43 [14:45:12]line НДС 12% НСП 1% [14:45:12]line > о реализуемом товаре [14:45:12]line ИТОГО: 2000.43 [14:45:12]line НСП 1% : 17.70 [14:45:12]line НДС 12% : 212.43 [14:45:12]line Наличными: 0.00 [14:45:12]line Безнал.: 2000.43 [14:45:12]line Место: АЗС № 64 "Партнер Нефть" [14:45:12]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:45:12]line СНО: Общий режим [14:45:12]line Чек 104 28.11.2024 14:45 [14:45:12]line Смена: 559 ФФД: 1.0 [14:45:12]line ЗНМ: 0300000033 [14:45:12]line РНМ: 0000000000092681 [14:45:12]line Версия ККМ: 001 [14:45:12]line Платежная система: O! деньги [14:45:12]line ФМ: 0000000000874881 [14:45:12]line ФД: 123592 [14:45:12]line ФПД: 202965344373559 [14:45:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T144516&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123592&fm=202965344373559&tin=02508201610067®Number=0000000000092681&sum=200043 [14:45:13]written 0, free lines is 4095 [14:45:13]OFD Sender: Processing packet 123592 [packets to send 7, broken 6] [14:45:13]ProducePacketName [14:45:13]name=ofd_packets/00123592 [14:45:13]OFD Sender: To server: pG, [14:45:13]CommunicateWithHost lk.salyk.kg:30040 [14:45:13]ConnectInit lk.salyk.kg [14:45:13]Connected sock=10 [14:45:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 27 35 07 01 94 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 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 68 00 00 00 F4 03 04 00 FC 81 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B8 98 8D 40 CB 37 05 A7 26 5D 47 00 15 F8 [14:45: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 EF 1A 47 00 E5 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C8 E2 01 00 F4 03 04 00 C2 2D 48 67 B6 04 01 00 00 97 85 5E 99 E5 6E E2 A1 [14:45:13]CommunicateWithHost err = 0 [14:45:13]CheckOFDResponse [14:45:13]1017 (14) - 77093643461234 [14:45:13]1041 (16) - 0000000000874881 [14:45:13]1040 (4) - 123592 [14:45:13]1012 (4) - 28.11.2024 08:45 [14:45:13]1206 (1) - 0 [14:45:13]OFD Sender: Remove packet 123592 [14:45:13]ProducePacketName [14:45:13]name=ofd_packets/00123592 [14:45:13]NVStorageDeleteData [14:45:13]Write to MH i2c: 01 00 00 79 30 A9 [14:45:13]Write i2c OK [14:45:13]MH_I2C_Read... [14:45:13]Read from MH i2c: 01 [14:45:13]MH_I2C_Read... [14:45:13]Read from MH i2c: 01 07 00 [14:45:13]MH_I2C_Read... [14:45:13]Read from MH i2c: 01 07 00 79 30 00 00 00 00 00 58 0C 14 [14:45:13]RasterBufferAndPrint [14:45:13]line [14:45:13]line [14:45:13]line [14:45:13]line [14:45:13]line [14:45:13]written 0, free lines is 3165 [14:45:13]MH_Cut [14:45:13]Write to MH i2c: D1 01 00 80 30 01 82 [14:45:13]Write i2c OK [14:45:13]MH_I2C_Read... [14:45:13]Read from MH i2c: D1 [14:45:13]MH_I2C_Read... [14:45:13]Read from MH i2c: D1 01 00 [14:45:13]MH_I2C_Read... [14:45:13]Read from MH i2c: D1 01 00 80 30 00 81 [14:45:13]Write to MH i2c: 01 00 00 81 30 B1 [14:45:13]Write i2c OK [14:45:13]MH_I2C_Read... [14:45:13]OFD Sender: No OFD packet to send [14:45:14]*** Cut start [14:45:14]*** Partial cut [14:45:14]*** CUTSNS_PIN = 1 [14:45:14]*** CUTSNS_PIN = 0 [14:45:15]*** Brake cut motor [14:45:15]Read from MH i2c: 01 [14:45:15]MH_I2C_Read... [14:45:15]*** Stop cut motor [14:45:15]*** Cut end [14:45:15]Read from MH i2c: 01 07 00 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: 01 07 00 81 30 00 00 00 00 00 FF 0F C6 [14:45:15]process_action close_receipt done [14:45:15]requested_data is exist [14:45:15]produce_requested_data [14:45:15]requested_item fm.sn is exist - process it [14:45:15]wFMCommunicate request_size=4 [14:45:15]MH_SAM_APDU [14:45:15]CAPDU: 80 11 00 00 [14:45:15]Write to MH i2c: E2 08 00 82 30 80 11 00 00 00 00 00 00 2C [14:45:15]Write i2c OK [14:45:15]MH_I2C_Read... [14:45:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:15]Read from MH i2c: E2 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 17 00 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 17 00 82 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 83 [14:45: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:45:15]wFMCommunicate OK [14:45:15]requested_item fd.num is exist - process it [14:45:15]SAM_PROTO_GetFieldsCounters [14:45:15]wFMCommunicate request_size=4 [14:45:15]MH_SAM_APDU [14:45:15]CAPDU: 80 13 00 00 [14:45:15]Write to MH i2c: E2 08 00 83 30 80 13 00 00 00 00 00 00 2F [14:45:15]Write i2c OK [14:45:15]MH_I2C_Read... [14:45:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:15]Read from MH i2c: E2 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 62 00 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 62 00 83 30 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 E2 01 00 0E 04 04 00 2F 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 69 [14:45:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 [14:45:15]wFMCommunicate OK [14:45:15]SAM_PROTO_GetFieldsCounters done [14:45:15]requested_item shift.num is exist - process it [14:45:15]requested_item shift.opened is exist - process it [14:45:15]req_shift_opened [14:45:15]FM_GetShiftState [14:45:15]SAM_PROTO_GetShiftState [14:45:15]wFMCommunicate request_size=4 [14:45:15]MH_SAM_APDU [14:45:15]CAPDU: 80 13 01 00 [14:45:15]Write to MH i2c: E2 08 00 84 30 80 13 01 00 00 00 00 00 31 [14:45:15]Write i2c OK [14:45:15]MH_I2C_Read... [14:45:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:15]Read from MH i2c: E2 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 0E 00 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 0E 00 84 30 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 38 [14:45:15]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:45:15]wFMCommunicate OK [14:45:15]SAM_PROTO_GetShiftState done [14:45:15]FM_GetShiftState done [14:45:15]req_shift_opened done [14:45:15]requested_item shift.open_date is exist - process it [14:45:15]req_shift_open_date [14:45:15]req_shift_open_date done [14:45:15]produce_requested_data done [14:45:15]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123592,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [14:45:15]process_action_free close_receipt [14:45:15]json_value_free [14:45:15]json_value_free done [14:45:15]process_json_proto returns [14:45:15]Send response to host [14:45:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123592,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [14:45:15]free response buf [14:45:15]execute_script done [14:45:15]execute_script returns [14:45:15]free content buf [14:45:15]Sock 8.Close socket [14:45:15]Sock 8.Thread stoped [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:17]accept exits with 9 [14:46:17]New connection [14:46:17]New thread 3066862948 created [14:46:17]Thread 3066719588 joined [14:46:17]Waiting for new connection... [14:46:17] Sock 9.Parse request [14:46:17]Sock 9.Check first char [14:46:17]Sock 9.First char is OK [14:46:17]request: POST /json_proto HTTP/1.0 [14:46:17]Method: POST [14:46:17]URL: /json_proto [14:46:17]Method is POST - this is cgi request [14:46:17]url: /json_proto [14:46:17]query_string will be loaded in cgi processing [14:46:17]execute_cgi json_proto POST (null) [14:46:17]execute_cgi path=json_proto method=POST [14:46:17]POST find Content-Length [14:46:17]Host: 172.17.37.4:8080 [14:46:17]Content-Length: 677 [14:46:17]Content-Type: application/json [14:46:17] [14:46:17]POST finish read [14:46:17]Found Content-Length = 677 [14:46:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718435", "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:46:17]execute_script... [14:46:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718435", "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:46:17]POST & json_proto [14:46:17]process_json_proto [14:46:17]json parsed OK: [14:46:17]protocol is kg_v1.0 [14:46:17]action value=close_receipt [14:46:17]process_action close_receipt [14:46:17]cmd_close_receipt [14:46:17]MH_GetDate [14:46:17]Write to MH i2c: F0 00 00 85 30 A4 [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: F0 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: F0 09 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: F0 09 00 85 30 00 3E 82 48 67 1D 3A 47 67 21 [14:46:17]GetLastDocTimeStamp 1732805116 [14:46:17]current date 1732805182 [14:46:17]FM_GetShiftState [14:46:17]SAM_PROTO_GetShiftState [14:46:17]wFMCommunicate request_size=4 [14:46:17]MH_SAM_APDU [14:46:17]CAPDU: 80 13 01 00 [14:46:17]Write to MH i2c: E2 08 00 86 30 80 13 01 00 00 00 00 00 33 [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:17]Read from MH i2c: E2 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 0E 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 0E 00 86 30 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 3A [14:46:17]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:46:17]wFMCommunicate OK [14:46:17]SAM_PROTO_GetShiftState done [14:46:17]FM_GetShiftState done [14:46:17]opened in 1732752282 [14:46:17]opened+sec_in_day 1732838682 [14:46:17]quantity*price = 50010 [14:46:17]sum+1 = 50012 [14:46:17]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 СНО: Общий режим Чек 105 28.11.2024 14:46 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123593 ФПД: 233349275722592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T144622&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123593&fm=233349275722592&tin=02508201610067®Number=0000000000092681&sum=50000 [14:46:18]StoreToDocumentArchive [14:46:18]shift 559 fd 123593 [14:46:18]save to /storage/0559/doc_00123593 [14:46:18]save last doc name /storage/0559/doc_00123593 to /storage/kkm_last_doc_name [14:46:18]save OK [14:46:18]Clear old archive folders... [14:46:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:18]tlvbuf is 0155B540 [14:46:18]SAM_PROTO_ClearQueue [14:46:18]wFMCommunicate request_size=4 [14:46:18]MH_SAM_APDU [14:46:18]CAPDU: 80 09 00 00 [14:46:18]Write to MH i2c: E2 08 00 93 30 80 09 00 00 00 00 00 00 35 [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:18]Read from MH i2c: E2 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 93 30 00 90 00 37 [14:46:18]RAPDU: 90 00 [14:46:18]wFMCommunicate OK [14:46:18]SAM_PROTO_ClearQueue done [14:46:18]KKMCreateOFDPacket [14:46:18]OFDProtocolAddRootSTLVToBuf [14:46:18]FM_MakeSignedData [14:46:18]FM_MakeSignedData [14:46:18]SAM_PROTO_SignData [14:46:18]wFMCommunicate request_size=4 [14:46:18]MH_SAM_APDU [14:46:18]CAPDU: 80 0D 01 02 [14:46:18]Write to MH i2c: E2 08 00 94 30 80 0D 01 02 00 00 00 00 3D [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:18]Read from MH i2c: E2 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 94 30 00 90 00 38 [14:46:18]RAPDU: 90 00 [14:46:18]wFMCommunicate OK [14:46:18]wFMCommunicate request_size=255 [14:46:18]MH_SAM_APDU [14:46:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 69 00 00 00 F4 03 04 00 3E 82 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D4 [14:46:18]Write to MH i2c: E2 02 01 95 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 69 00 00 00 F4 03 04 00 3E 82 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D4 00 00 2D [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:18]Read from MH i2c: E2 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 95 30 00 90 00 39 [14:46:18]RAPDU: 90 00 [14:46:18]wFMCommunicate OK [14:46:18]wFMCommunicate request_size=10 [14:46:18]MH_SAM_APDU [14:46:18]CAPDU: 80 0D 02 02 05 3A DC B0 23 60 [14:46:18]Write to MH i2c: E2 0D 00 96 30 80 0D 02 02 05 00 3A DC B0 23 60 00 00 93 [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]OFD Sender: No OFD packet to send [14:46:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:18]Read from MH i2c: E2 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 96 30 00 90 00 3A [14:46:18]RAPDU: 90 00 [14:46:18]wFMCommunicate OK [14:46:18]wFMCommunicate request_size=4 [14:46:18]MH_SAM_APDU [14:46:18]CAPDU: 80 0D 03 02 [14:46:18]Write to MH i2c: E2 08 00 97 30 80 0D 03 02 00 00 00 00 42 [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:18]Read from MH i2c: E2 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 0B 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 0B 00 97 30 00 73 FD 00 D6 ED D3 FB B6 90 00 FA [14:46:18]RAPDU: 73 FD 00 D6 ED D3 FB B6 90 00 [14:46:18]wFMCommunicate OK [14:46:18]SAM_PROTO_SignData done [14:46:18]FM_MakeSignedData done [14:46:18]CreateOFDProtocolMessage [14:46:18]wFMCommunicate request_size=4 [14:46:18]MH_SAM_APDU [14:46:18]CAPDU: 80 11 00 00 [14:46:19]Write to MH i2c: E2 08 00 98 30 80 11 00 00 00 00 00 00 42 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 17 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 17 00 98 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 99 [14: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 [14:46:19]wFMCommunicate OK [14:46:19]CreateOFDProtocolMessage done [14:46:19]OFDSenderStorePacket 123593 [14:46:19]StoreOFDPacket docnum=123593 [14:46: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 34 F2 07 01 53 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 69 00 00 00 F4 03 04 00 3E 82 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D4 3A DC B0 23 60 73 FD 00 D6 ED D3 FB B6 [14:46:19]CheckFolder [14:46:19]dirname=/storage/ofd_packets [14:46:19]CheckFolder done [14:46:19]ProducePacketName [14:46:19]name=ofd_packets/00123593 [14:46:19]NVStorageSaveData ofd_packets/00123593 [14:46:19]File name is /storage/ofd_packets/00123593 [14:46:19]Write 301 bytes [14:46:19]NVStorageSaveData done [14:46:19]OFDSenderStorePacket done [14:46:19]KKMCreateOFDPacket done [14:46:19]NVStorageSaveData kkm_last_timestamp [14:46:19]File name is /storage/kkm_last_timestamp [14:46:19]Write 4 bytes [14:46:19]NVStorageSaveData done [14:46:19]ExternCall_PrintAddStr [14:46:19]wPrintStart [14:46:19]Write to MH i2c: 01 00 00 99 30 C9 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: 01 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: 01 07 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: 01 07 00 99 30 00 00 00 00 00 FF 0F DE [14:46:19]RasterBufferAndPrint [14:46:19]line Счет N : (1)718435 [14:46:19]line ИНН: 02508201610067 [14:46:19]line Контрольно-Кассовый Чек [14:46:19]line ПРОДАЖА [14:46:19]line ТРК (МРК, ГНК) : 22 [14:46:19]line Товар: 2710124130 [14:46:19]line Аи-92-К-4 [14:46:19]line 7.420 * 67.40 [14:46:19]line = 500.11 [14:46:19]line НДС 12% НСП 1% [14:46:19]line > о реализуемом товаре [14:46:19]line ОКРУГЛЕНИЕ: -0.11 [14:46:19]line ИТОГО: 500.00 [14:46:19]line Внесено: 500.00 [14:46:19]line СДАЧА: 0.00 [14:46:19]line НСП 1% : 4.43 [14:46:19]line НДС 12% : 53.11 [14:46:19]line Наличными: 500.00 [14:46:19]line Безнал.: 0.00 [14:46:19]line Место: АЗС № 64 "Партнер Нефть" [14:46:19]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:46:19]line СНО: Общий режим [14:46:19]line Чек 105 28.11.2024 14:46 [14:46:19]line Смена: 559 ФФД: 1.0 [14:46:19]line ЗНМ: 0300000033 [14:46:19]line РНМ: 0000000000092681 [14:46:19]line Версия ККМ: 001 [14:46:19]line ФМ: 0000000000874881 [14:46:19]line ФД: 123593 [14:46:19]line ФПД: 233349275722592 [14:46:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T144622&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123593&fm=233349275722592&tin=02508201610067®Number=0000000000092681&sum=50000 [14:46:19]written 0, free lines is 4095 [14:46:19]OFD Sender: Processing packet 123593 [packets to send 7, broken 6] [14:46:19]ProducePacketName [14:46:19]name=ofd_packets/00123593 [14:46:19]OFD Sender: To server: pG, [14:46:19]CommunicateWithHost lk.salyk.kg:30040 [14:46:19]ConnectInit lk.salyk.kg [14:46:19]Connected sock=10 [14:46:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 0F 01 00 00 34 F2 07 01 53 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 69 00 00 00 F4 03 04 00 3E 82 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 D4 3A DC B0 23 60 73 FD 00 D6 ED D3 FB B6 [14:46:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 4F 00 00 00 1A BC 47 00 8F 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 C9 E2 01 00 F4 03 04 00 04 2E 48 67 B6 04 01 00 00 D1 67 55 4A 34 9C 8D 00 [14:46:19]CommunicateWithHost err = 0 [14:46:19]CheckOFDResponse [14:46:19]1017 (14) - 77093643461234 [14:46:19]1041 (16) - 0000000000874881 [14:46:19]1040 (4) - 123593 [14:46:19]1012 (4) - 28.11.2024 08:47 [14:46:19]1206 (1) - 0 [14:46:19]OFD Sender: Remove packet 123593 [14:46:19]ProducePacketName [14:46:19]name=ofd_packets/00123593 [14:46:19]NVStorageDeleteData [14:46:19]Write to MH i2c: 01 00 00 C4 30 F4 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: 01 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: 01 07 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: 01 07 00 C4 30 00 00 00 00 00 4A 0C 51 [14:46:19]RasterBufferAndPrint [14:46:19]line [14:46:19]line [14:46:19]line [14:46:19]line [14:46:19]line [14:46:19]written 0, free lines is 3149 [14:46:19]MH_Cut [14:46:19]Write to MH i2c: D1 01 00 CB 30 01 CD [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: D1 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: D1 01 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: D1 01 00 CB 30 00 CC [14:46:19]Write to MH i2c: 01 00 00 CC 30 FC [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]OFD Sender: No OFD packet to send [14:46:20]*** Cut start [14:46:20]*** Partial cut [14:46:20]*** CUTSNS_PIN = 1 [14:46:20]*** CUTSNS_PIN = 0 [14:46:21]*** Brake cut motor [14:46:21]Read from MH i2c: 01 [14:46:21]MH_I2C_Read... [14:46:21]*** Stop cut motor [14:46:21]*** Cut end [14:46:21]Read from MH i2c: 01 07 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: 01 07 00 CC 30 00 00 00 00 00 FF 0F 11 [14:46:21]process_action close_receipt done [14:46:21]requested_data is exist [14:46:21]produce_requested_data [14:46:21]requested_item fm.sn is exist - process it [14:46:21]wFMCommunicate request_size=4 [14:46:21]MH_SAM_APDU [14:46:21]CAPDU: 80 11 00 00 [14:46:21]Write to MH i2c: E2 08 00 CD 30 80 11 00 00 00 00 00 00 77 [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:21]Read from MH i2c: E2 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 17 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 17 00 CD 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 CE [14:46: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:46:21]wFMCommunicate OK [14:46:21]requested_item fd.num is exist - process it [14:46:21]SAM_PROTO_GetFieldsCounters [14:46:21]wFMCommunicate request_size=4 [14:46:21]MH_SAM_APDU [14:46:21]CAPDU: 80 13 00 00 [14:46:21]Write to MH i2c: E2 08 00 CE 30 80 13 00 00 00 00 00 00 7A [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:21]Read from MH i2c: E2 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 62 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 62 00 CE 30 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 E2 01 00 0E 04 04 00 2F 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 B8 [14:46:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 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 E2 01 00 0E 04 04 00 2F 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 [14:46:21]wFMCommunicate OK [14:46:21]SAM_PROTO_GetFieldsCounters done [14:46:21]requested_item shift.num is exist - process it [14:46:21]requested_item shift.opened is exist - process it [14:46:21]req_shift_opened [14:46:21]FM_GetShiftState [14:46:21]SAM_PROTO_GetShiftState [14:46:21]wFMCommunicate request_size=4 [14:46:21]MH_SAM_APDU [14:46:21]CAPDU: 80 13 01 00 [14:46:21]Write to MH i2c: E2 08 00 CF 30 80 13 01 00 00 00 00 00 7C [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:21]Read from MH i2c: E2 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 0E 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 0E 00 CF 30 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 83 [14:46:21]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:46:21]wFMCommunicate OK [14:46:21]SAM_PROTO_GetShiftState done [14:46:21]FM_GetShiftState done [14:46:21]req_shift_opened done [14:46:21]requested_item shift.open_date is exist - process it [14:46:21]req_shift_open_date [14:46:21]req_shift_open_date done [14:46:21]produce_requested_data done [14:46:21]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123593,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [14:46:21]process_action_free close_receipt [14:46:21]json_value_free [14:46:21]json_value_free done [14:46:21]process_json_proto returns [14:46:21]Send response to host [14:46:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123593,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [14:46:21]free response buf [14:46:21]execute_script done [14:46:21]execute_script returns [14:46:21]free content buf [14:46:21]Sock 9.Close socket [14:46:21]Sock 9.Thread stoped [14:46:24]OFD Sender: No OFD packet to send [14:46:29]OFD Sender: No OFD packet to send [14:46:34]OFD Sender: No OFD packet to send [14:46:39]OFD Sender: No OFD packet to send [14:46:44]OFD Sender: No OFD packet to send [14:46:49]OFD Sender: No OFD packet to send [14:46:54]OFD Sender: No OFD packet to send [14:46:59]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:25]OFD Sender: No OFD packet to send [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:40]OFD Sender: No OFD packet to send [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:40]accept exits with 8 [14:49:40]New connection [14:49:40]New thread 3066719588 created [14:49:40]Thread 3066862948 joined [14:49:40]Waiting for new connection... [14:49:40] Sock 8.Parse request [14:49:40]Sock 8.Check first char [14:49:40]Sock 8.First char is OK [14:49:40]request: POST /json_proto HTTP/1.0 [14:49:40]Method: POST [14:49:40]URL: /json_proto [14:49:40]Method is POST - this is cgi request [14:49:40]url: /json_proto [14:49:40]query_string will be loaded in cgi processing [14:49:40]execute_cgi json_proto POST (null) [14:49:40]execute_cgi path=json_proto method=POST [14:49:40]POST find Content-Length [14:49:40]Host: 172.17.37.4:8080 [14:49:40]Content-Length: 677 [14:49:40]Content-Type: application/json [14:49:40] [14:49:40]POST finish read [14:49:40]Found Content-Length = 677 [14:49:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718436", "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.570, "sum" : 240.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:40]execute_script... [14:49: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)718436", "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.570, "sum" : 240.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:40]POST & json_proto [14:49:40]process_json_proto [14:49:40]json parsed OK: [14:49:40]protocol is kg_v1.0 [14:49:40]action value=close_receipt [14:49:40]process_action close_receipt [14:49:40]cmd_close_receipt [14:49:40]MH_GetDate [14:49:40]Write to MH i2c: F0 00 00 D0 30 EF [14:49:40]Write i2c OK [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: F0 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: F0 09 00 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: F0 09 00 D0 30 00 09 83 48 67 1D 3A 47 67 38 [14:49:40]GetLastDocTimeStamp 1732805182 [14:49:40]current date 1732805385 [14:49:40]FM_GetShiftState [14:49:40]SAM_PROTO_GetShiftState [14:49:40]wFMCommunicate request_size=4 [14:49:40]MH_SAM_APDU [14:49:40]CAPDU: 80 13 01 00 [14:49:40]Write to MH i2c: E2 08 00 D1 30 80 13 01 00 00 00 00 00 7E [14:49:40]Write i2c OK [14:49:40]MH_I2C_Read... [14:49:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:40]Read from MH i2c: E2 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 0E 00 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 0E 00 D1 30 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 85 [14:49:40]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:49:40]wFMCommunicate OK [14:49:40]SAM_PROTO_GetShiftState done [14:49:40]FM_GetShiftState done [14:49:40]opened in 1732752282 [14:49:40]opened+sec_in_day 1732838682 [14:49:40]quantity*price = 24061 [14:49:40]sum+1 = 24063 [14:49:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.13 НДС 12% : 25.55 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 106 28.11.2024 14:49 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123594 ФПД: 97812079063170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T144945&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123594&fm=97812079063170&tin=02508201610067®Number=0000000000092681&sum=24000 [14:49:41]StoreToDocumentArchive [14:49:41]shift 559 fd 123594 [14:49:41]save to /storage/0559/doc_00123594 [14:49:41]save last doc name /storage/0559/doc_00123594 to /storage/kkm_last_doc_name [14:49:41]save OK [14:49:41]Clear old archive folders... [14:49:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:41]tlvbuf is B6EC4EF0 [14:49:41]SAM_PROTO_ClearQueue [14:49:41]wFMCommunicate request_size=4 [14:49:41]MH_SAM_APDU [14:49:41]CAPDU: 80 09 00 00 [14:49:41]Write to MH i2c: E2 08 00 DE 30 80 09 00 00 00 00 00 00 80 [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:41]Read from MH i2c: E2 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 03 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 03 00 DE 30 00 90 00 82 [14:49:41]RAPDU: 90 00 [14:49:41]wFMCommunicate OK [14:49:41]SAM_PROTO_ClearQueue done [14:49:41]KKMCreateOFDPacket [14:49:41]OFDProtocolAddRootSTLVToBuf [14:49:41]FM_MakeSignedData [14:49:41]FM_MakeSignedData [14:49:41]SAM_PROTO_SignData [14:49:41]wFMCommunicate request_size=4 [14:49:41]MH_SAM_APDU [14:49:41]CAPDU: 80 0D 01 02 [14:49:41]Write to MH i2c: E2 08 00 DF 30 80 0D 01 02 00 00 00 00 88 [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:41]Read from MH i2c: E2 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 03 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 03 00 DF 30 00 90 00 83 [14:49:41]RAPDU: 90 00 [14:49:41]wFMCommunicate OK [14:49:41]wFMCommunicate request_size=255 [14:49:41]MH_SAM_APDU [14:49:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C0 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 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 09 83 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 58 [14:49:41]Write to MH i2c: E2 02 01 E0 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C0 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 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 09 83 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 58 00 00 4C [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:41]Read from MH i2c: E2 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 03 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 03 00 E0 30 00 90 00 84 [14:49:41]RAPDU: 90 00 [14:49:41]wFMCommunicate OK [14:49:41]wFMCommunicate request_size=10 [14:49:41]MH_SAM_APDU [14:49:41]CAPDU: 80 0D 02 02 05 F5 A6 3A 30 82 [14:49:41]Write to MH i2c: E2 0D 00 E1 30 80 0D 02 02 05 00 F5 A6 3A 30 82 00 00 1C [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:41]Read from MH i2c: E2 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 03 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 03 00 E1 30 00 90 00 85 [14:49:41]RAPDU: 90 00 [14:49:41]wFMCommunicate OK [14:49:41]wFMCommunicate request_size=4 [14:49:41]MH_SAM_APDU [14:49:41]CAPDU: 80 0D 03 02 [14:49:41]Write to MH i2c: E2 08 00 E2 30 80 0D 03 02 00 00 00 00 8D [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:41]Read from MH i2c: E2 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 0B 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 0B 00 E2 30 00 7C C7 9C 7E 17 82 2A 79 90 00 27 [14:49:41]RAPDU: 7C C7 9C 7E 17 82 2A 79 90 00 [14:49:41]wFMCommunicate OK [14:49:41]SAM_PROTO_SignData done [14:49:41]FM_MakeSignedData done [14:49:41]CreateOFDProtocolMessage [14:49:41]wFMCommunicate request_size=4 [14:49:41]MH_SAM_APDU [14:49:41]CAPDU: 80 11 00 00 [14:49:41]Write to MH i2c: E2 08 00 E3 30 80 11 00 00 00 00 00 00 8D [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:41]Read from MH i2c: E2 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 17 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 17 00 E3 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 E4 [14:49: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:49:41]wFMCommunicate OK [14:49:41]CreateOFDProtocolMessage done [14:49:41]OFDSenderStorePacket 123594 [14:49:41]StoreOFDPacket docnum=123594 [14:49: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 5E B0 07 01 06 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C0 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 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 09 83 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 58 F5 A6 3A 30 82 7C C7 9C 7E 17 82 2A 79 [14:49:41]CheckFolder [14:49:41]dirname=/storage/ofd_packets [14:49:41]CheckFolder done [14:49:41]ProducePacketName [14:49:41]name=ofd_packets/00123594 [14:49:41]NVStorageSaveData ofd_packets/00123594 [14:49:41]File name is /storage/ofd_packets/00123594 [14:49:41]Write 301 bytes [14:49:41]NVStorageSaveData done [14:49:41]OFDSenderStorePacket done [14:49:41]KKMCreateOFDPacket done [14:49:41]NVStorageSaveData kkm_last_timestamp [14:49:41]File name is /storage/kkm_last_timestamp [14:49:41]Write 4 bytes [14:49:41]NVStorageSaveData done [14:49:41]ExternCall_PrintAddStr [14:49:41]wPrintStart [14:49:41]Write to MH i2c: 01 00 00 E4 30 14 [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: 01 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: 01 07 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: 01 07 00 E4 30 00 00 00 00 00 FF 0F 29 [14:49:41]RasterBufferAndPrint [14:49:41]line Счет N : (1)718436 [14:49:41]line ИНН: 02508201610067 [14:49:41]line Контрольно-Кассовый Чек [14:49:41]line ПРОДАЖА [14:49:41]line ТРК (МРК, ГНК) : 22 [14:49:41]line Товар: 2710124130 [14:49:41]line Аи-92-К-4 [14:49:41]line 3.570 * 67.40 [14:49:41]line = 240.62 [14:49:41]line НДС 12% НСП 1% [14:49:41]line > о реализуемом товаре [14:49:41]line ОКРУГЛЕНИЕ: -0.62 [14:49:41]line ИТОГО: 240.00 [14:49:41]line Внесено: 240.00 [14:49:41]line СДАЧА: 0.00 [14:49:41]line НСП 1% : 2.13 [14:49:41]line НДС 12% : 25.55 [14:49:41]line Наличными: 240.00 [14:49:41]line Безнал.: 0.00 [14:49:41]line Место: АЗС № 64 "Партнер Нефть" [14:49:41]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:49:41]line СНО: Общий режим [14:49:41]line Чек 106 28.11.2024 14:49 [14:49:41]line Смена: 559 ФФД: 1.0 [14:49:41]line ЗНМ: 0300000033 [14:49:41]line РНМ: 0000000000092681 [14:49:41]line Версия ККМ: 001 [14:49:41]line ФМ: 0000000000874881 [14:49:41]line ФД: 123594 [14:49:41]line ФПД: 97812079063170 [14:49:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T144945&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123594&fm=97812079063170&tin=02508201610067®Number=0000000000092681&sum=24000 [14:49:42]OFD Sender: Processing packet 123594 [packets to send 7, broken 6] [14:49:42]ProducePacketName [14:49:42]name=ofd_packets/00123594 [14:49:42]OFD Sender: To server: pG, [14:49:42]CommunicateWithHost lk.salyk.kg:30040 [14:49:42]ConnectInit lk.salyk.kg [14:49:42]written 0, free lines is 4095 [14:49:42]Connected sock=10 [14:49: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 5E B0 07 01 06 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C0 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 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 09 83 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 58 F5 A6 3A 30 82 7C C7 9C 7E 17 82 2A 79 [14:49: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 EE 74 47 00 C1 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 CA E2 01 00 F4 03 04 00 CF 2E 48 67 B6 04 01 00 00 C7 38 2E 26 55 BA DC 2C [14:49:42]CommunicateWithHost err = 0 [14:49:42]CheckOFDResponse [14:49:42]1017 (14) - 77093643461234 [14:49:42]1041 (16) - 0000000000874881 [14:49:42]1040 (4) - 123594 [14:49:42]1012 (4) - 28.11.2024 08:50 [14:49:42]1206 (1) - 0 [14:49:42]OFD Sender: Remove packet 123594 [14:49:42]ProducePacketName [14:49:42]name=ofd_packets/00123594 [14:49:42]NVStorageDeleteData [14:49:42]Write to MH i2c: 01 00 00 0F 31 40 [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: 01 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: 01 07 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: 01 07 00 0F 31 00 00 00 00 00 44 0C 97 [14:49:42]RasterBufferAndPrint [14:49:42]line [14:49:42]line [14:49:42]line [14:49:42]line [14:49:42]line [14:49:42]written 0, free lines is 3145 [14:49:42]MH_Cut [14:49:42]Write to MH i2c: D1 01 00 16 31 01 19 [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: D1 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: D1 01 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: D1 01 00 16 31 00 18 [14:49:42]Write to MH i2c: 01 00 00 17 31 48 [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:43]OFD Sender: No OFD packet to send [14:49:44]*** Cut start [14:49:44]*** Partial cut [14:49:44]*** CUTSNS_PIN = 1 [14:49:44]*** CUTSNS_PIN = 0 [14:49:44]*** Brake cut motor [14:49:44]Read from MH i2c: 01 [14:49:44]MH_I2C_Read... [14:49:44]*** Stop cut motor [14:49:44]*** Cut end [14:49:44]Read from MH i2c: 01 07 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: 01 07 00 17 31 00 00 00 00 00 FF 0F 5D [14:49:44]process_action close_receipt done [14:49:44]requested_data is exist [14:49:44]produce_requested_data [14:49:44]requested_item fm.sn is exist - process it [14:49:44]wFMCommunicate request_size=4 [14:49:44]MH_SAM_APDU [14:49:44]CAPDU: 80 11 00 00 [14:49:44]Write to MH i2c: E2 08 00 18 31 80 11 00 00 00 00 00 00 C3 [14:49:44]Write i2c OK [14:49:44]MH_I2C_Read... [14:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:44]Read from MH i2c: E2 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 17 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 17 00 18 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 1A [14:49: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:49:44]wFMCommunicate OK [14:49:44]requested_item fd.num is exist - process it [14:49:44]SAM_PROTO_GetFieldsCounters [14:49:44]wFMCommunicate request_size=4 [14:49:44]MH_SAM_APDU [14:49:44]CAPDU: 80 13 00 00 [14:49:44]Write to MH i2c: E2 08 00 19 31 80 13 00 00 00 00 00 00 C6 [14:49:44]Write i2c OK [14:49:44]MH_I2C_Read... [14:49:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:44]Read from MH i2c: E2 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 62 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 62 00 19 31 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 E2 01 00 0E 04 04 00 2F 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 08 [14:49: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 CA E2 01 00 0E 04 04 00 2F 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 [14:49:44]wFMCommunicate OK [14:49:44]SAM_PROTO_GetFieldsCounters done [14:49:44]requested_item shift.num is exist - process it [14:49:44]requested_item shift.opened is exist - process it [14:49:44]req_shift_opened [14:49:44]FM_GetShiftState [14:49:44]SAM_PROTO_GetShiftState [14:49:44]wFMCommunicate request_size=4 [14:49:44]MH_SAM_APDU [14:49:44]CAPDU: 80 13 01 00 [14:49:44]Write to MH i2c: E2 08 00 1A 31 80 13 01 00 00 00 00 00 C8 [14:49:44]Write i2c OK [14:49:44]MH_I2C_Read... [14:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:44]Read from MH i2c: E2 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 0E 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 0E 00 1A 31 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 CF [14:49:44]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:49:44]wFMCommunicate OK [14:49:44]SAM_PROTO_GetShiftState done [14:49:44]FM_GetShiftState done [14:49:44]req_shift_opened done [14:49:44]requested_item shift.open_date is exist - process it [14:49:44]req_shift_open_date [14:49:44]req_shift_open_date done [14:49:44]produce_requested_data done [14:49:44]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123594,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [14:49:44]process_action_free close_receipt [14:49:44]json_value_free [14:49:44]json_value_free done [14:49:44]process_json_proto returns [14:49:44]Send response to host [14:49:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123594,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [14:49:44]free response buf [14:49:44]execute_script done [14:49:44]execute_script returns [14:49:44]free content buf [14:49:44]Sock 8.Close socket [14:49:44]Sock 8.Thread stoped [14:49:48]OFD Sender: No OFD packet to send [14:49:53]OFD Sender: No OFD packet to send [14:49:58]OFD Sender: No OFD packet to send [14:50:03]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:13]OFD Sender: No OFD packet to send [14:50:18]OFD Sender: No OFD packet to send [14:50:23]OFD Sender: No OFD packet to send [14:50:28]OFD Sender: No OFD packet to send [14:50:33]OFD Sender: No OFD packet to send [14:50:38]OFD Sender: No OFD packet to send [14:50:43]OFD Sender: No OFD packet to send [14:50:48]OFD Sender: No OFD packet to send [14:50:53]OFD Sender: No OFD packet to send [14:50:58]OFD Sender: No OFD packet to send [14:51:03]OFD Sender: No OFD packet to send [14:51:08]OFD Sender: No OFD packet to send [14:51:13]OFD Sender: No OFD packet to send [14:51:18]OFD Sender: No OFD packet to send [14:51:23]OFD Sender: No OFD packet to send [14:51:28]OFD Sender: No OFD packet to send [14:51:33]OFD Sender: No OFD packet to send [14:51:38]OFD Sender: No OFD packet to send [14:51:43]OFD Sender: No OFD packet to send [14:51:48]OFD Sender: No OFD packet to send [14:51:53]OFD Sender: No OFD packet to send [14:51:58]OFD Sender: No OFD packet to send [14:52:03]OFD Sender: No OFD packet to send [14:52:08]OFD Sender: No OFD packet to send [14:52:13]OFD Sender: No OFD packet to send [14:52:18]OFD Sender: No OFD packet to send [14:52:23]OFD Sender: No OFD packet to send [14:52:28]OFD Sender: No OFD packet to send [14:52:33]OFD Sender: No OFD packet to send [14:52:38]OFD Sender: No OFD packet to send [14:52:43]OFD Sender: No OFD packet to send [14:52:48]OFD Sender: No OFD packet to send [14:52:53]OFD Sender: No OFD packet to send [14:52:58]OFD Sender: No OFD packet to send [14:53:03]OFD Sender: No OFD packet to send [14:53:08]OFD Sender: No OFD packet to send [14:53:13]OFD Sender: No OFD packet to send [14:53:18]OFD Sender: No OFD packet to send [14:53:23]OFD Sender: No OFD packet to send [14:53:28]OFD Sender: No OFD packet to send [14:53:33]OFD Sender: No OFD packet to send [14:53:38]OFD Sender: No OFD packet to send [14:53:43]OFD Sender: No OFD packet to send [14:53:48]OFD Sender: No OFD packet to send [14:53:53]OFD Sender: No OFD packet to send [14:53:58]OFD Sender: No OFD packet to send [14:54:03]OFD Sender: No OFD packet to send [14:54:08]OFD Sender: No OFD packet to send [14:54:13]OFD Sender: No OFD packet to send [14:54:18]OFD Sender: No OFD packet to send [14:54:23]OFD Sender: No OFD packet to send [14:54:28]OFD Sender: No OFD packet to send [14:54:28]accept exits with 9 [14:54:28]New connection [14:54:28]New thread 3066862948 created [14:54:28]Thread 3066719588 joined [14:54:28]Waiting for new connection... [14:54:28] Sock 9.Parse request [14:54:28]Sock 9.Check first char [14:54:28]Sock 9.First char is OK [14:54:28]request: POST /json_proto HTTP/1.0 [14:54:28]Method: POST [14:54:28]URL: /json_proto [14:54:28]Method is POST - this is cgi request [14:54:28]url: /json_proto [14:54:28]query_string will be loaded in cgi processing [14:54:28]execute_cgi json_proto POST (null) [14:54:28]execute_cgi path=json_proto method=POST [14:54:28]POST find Content-Length [14:54:28]Host: 172.17.37.4:8080 [14:54:28]Content-Length: 677 [14:54:28]Content-Type: application/json [14:54:28] [14:54:28]POST finish read [14:54:28]Found Content-Length = 677 [14:54:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718437", "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" ] } } [14:54:28]execute_script... [14:54: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)718437", "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" ] } } [14:54:28]POST & json_proto [14:54:28]process_json_proto [14:54:28]json parsed OK: [14:54:28]protocol is kg_v1.0 [14:54:28]action value=close_receipt [14:54:28]process_action close_receipt [14:54:28]cmd_close_receipt [14:54:28]MH_GetDate [14:54:28]Write to MH i2c: F0 00 00 1B 31 3B [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: F0 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: F0 09 00 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: F0 09 00 1B 31 00 2A 84 48 67 1D 3A 47 67 A6 [14:54:28]GetLastDocTimeStamp 1732805385 [14:54:28]current date 1732805674 [14:54:28]FM_GetShiftState [14:54:28]SAM_PROTO_GetShiftState [14:54:28]wFMCommunicate request_size=4 [14:54:28]MH_SAM_APDU [14:54:28]CAPDU: 80 13 01 00 [14:54:28]Write to MH i2c: E2 08 00 1C 31 80 13 01 00 00 00 00 00 CA [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:28]Read from MH i2c: E2 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 0E 00 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 0E 00 1C 31 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 D1 [14:54:28]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:54:28]wFMCommunicate OK [14:54:28]SAM_PROTO_GetShiftState done [14:54:28]FM_GetShiftState done [14:54:28]opened in 1732752282 [14:54:28]opened+sec_in_day 1732838682 [14:54:28]quantity*price = 50010 [14:54:28]sum+1 = 50012 [14:54:28]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 СНО: Общий режим Чек 107 28.11.2024 14:54 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123595 ФПД: 52128497850640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T145434&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123595&fm=52128497850640&tin=02508201610067®Number=0000000000092681&sum=50000 [14:54:30]StoreToDocumentArchive [14:54:30]shift 559 fd 123595 [14:54:30]save to /storage/0559/doc_00123595 [14:54:30]save last doc name /storage/0559/doc_00123595 to /storage/kkm_last_doc_name [14:54:30]save OK [14:54:30]Clear old archive folders... [14:54:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:54:30]tlvbuf is 014F0940 [14:54:30]SAM_PROTO_ClearQueue [14:54:30]wFMCommunicate request_size=4 [14:54:30]MH_SAM_APDU [14:54:30]CAPDU: 80 09 00 00 [14:54:30]Write to MH i2c: E2 08 00 29 31 80 09 00 00 00 00 00 00 CC [14:54:30]Write i2c OK [14:54:30]MH_I2C_Read... [14:54:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:30]Read from MH i2c: E2 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 03 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 03 00 29 31 00 90 00 CE [14:54:30]RAPDU: 90 00 [14:54:30]wFMCommunicate OK [14:54:30]SAM_PROTO_ClearQueue done [14:54:30]KKMCreateOFDPacket [14:54:30]OFDProtocolAddRootSTLVToBuf [14:54:30]FM_MakeSignedData [14:54:30]FM_MakeSignedData [14:54:30]SAM_PROTO_SignData [14:54:30]wFMCommunicate request_size=4 [14:54:30]MH_SAM_APDU [14:54:30]CAPDU: 80 0D 01 02 [14:54:30]Write to MH i2c: E2 08 00 2A 31 80 0D 01 02 00 00 00 00 D4 [14:54:30]Write i2c OK [14:54:30]MH_I2C_Read... [14:54:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:30]Read from MH i2c: E2 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 03 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 03 00 2A 31 00 90 00 CF [14:54:30]RAPDU: 90 00 [14:54:30]wFMCommunicate OK [14:54:30]wFMCommunicate request_size=255 [14:54:30]MH_SAM_APDU [14:54: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 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 6B 00 00 00 F4 03 04 00 2A 84 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2F [14:54:30]Write to MH i2c: E2 02 01 2B 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6B 00 00 00 F4 03 04 00 2A 84 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2F 00 00 11 [14:54:30]Write i2c OK [14:54:30]MH_I2C_Read... [14:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:30]Read from MH i2c: E2 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 03 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 03 00 2B 31 00 90 00 D0 [14:54:30]RAPDU: 90 00 [14:54:30]wFMCommunicate OK [14:54:30]wFMCommunicate request_size=10 [14:54:30]MH_SAM_APDU [14:54:30]CAPDU: 80 0D 02 02 05 69 1C 98 D9 10 [14:54:30]Write to MH i2c: E2 0D 00 2C 31 80 0D 02 02 05 00 69 1C 98 D9 10 00 00 E7 [14:54:30]Write i2c OK [14:54:30]MH_I2C_Read... [14:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:30]Read from MH i2c: E2 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 03 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 03 00 2C 31 00 90 00 D1 [14:54:30]RAPDU: 90 00 [14:54:30]wFMCommunicate OK [14:54:30]wFMCommunicate request_size=4 [14:54:30]MH_SAM_APDU [14:54:30]CAPDU: 80 0D 03 02 [14:54:30]Write to MH i2c: E2 08 00 2D 31 80 0D 03 02 00 00 00 00 D9 [14:54:30]Write i2c OK [14:54:30]MH_I2C_Read... [14:54:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:30]Read from MH i2c: E2 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 0B 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 0B 00 2D 31 00 4D B6 1F 78 59 D1 23 1A 90 00 DB [14:54:30]RAPDU: 4D B6 1F 78 59 D1 23 1A 90 00 [14:54:30]wFMCommunicate OK [14:54:30]SAM_PROTO_SignData done [14:54:30]FM_MakeSignedData done [14:54:30]CreateOFDProtocolMessage [14:54:30]wFMCommunicate request_size=4 [14:54:30]MH_SAM_APDU [14:54:30]CAPDU: 80 11 00 00 [14:54:30]Write to MH i2c: E2 08 00 2E 31 80 11 00 00 00 00 00 00 D9 [14:54:30]Write i2c OK [14:54:30]MH_I2C_Read... [14:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:30]Read from MH i2c: E2 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 17 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: E2 17 00 2E 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 30 [14:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:54:30]wFMCommunicate OK [14:54:30]CreateOFDProtocolMessage done [14:54:30]OFDSenderStorePacket 123595 [14:54:30]StoreOFDPacket docnum=123595 [14:54: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 C1 E5 07 01 26 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6B 00 00 00 F4 03 04 00 2A 84 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2F 69 1C 98 D9 10 4D B6 1F 78 59 D1 23 1A [14:54:30]CheckFolder [14:54:30]dirname=/storage/ofd_packets [14:54:30]CheckFolder done [14:54:30]ProducePacketName [14:54:30]name=ofd_packets/00123595 [14:54:30]NVStorageSaveData ofd_packets/00123595 [14:54:30]File name is /storage/ofd_packets/00123595 [14:54:30]Write 301 bytes [14:54:30]NVStorageSaveData done [14:54:30]OFDSenderStorePacket done [14:54:30]KKMCreateOFDPacket done [14:54:30]NVStorageSaveData kkm_last_timestamp [14:54:30]File name is /storage/kkm_last_timestamp [14:54:30]Write 4 bytes [14:54:30]NVStorageSaveData done [14:54:30]ExternCall_PrintAddStr [14:54:30]wPrintStart [14:54:30]Write to MH i2c: 01 00 00 2F 31 60 [14:54:30]Write i2c OK [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: 01 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: 01 07 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: 01 07 00 2F 31 00 00 00 00 00 FF 0F 75 [14:54:30]RasterBufferAndPrint [14:54:30]line Счет N : (1)718437 [14:54:30]line ИНН: 02508201610067 [14:54:30]line Контрольно-Кассовый Чек [14:54:30]line ПРОДАЖА [14:54:30]line ТРК (МРК, ГНК) : 32 [14:54:30]line Товар: 2710124130 [14:54:30]line Аи-92-К-4 [14:54:30]line 7.420 * 67.40 [14:54:30]line = 500.11 [14:54:30]line НДС 12% НСП 1% [14:54:30]line > о реализуемом товаре [14:54:30]line ОКРУГЛЕНИЕ: -0.11 [14:54:30]line ИТОГО: 500.00 [14:54:30]line Внесено: 500.00 [14:54:30]line СДАЧА: 0.00 [14:54:30]line НСП 1% : 4.43 [14:54:30]line НДС 12% : 53.11 [14:54:30]line Наличными: 500.00 [14:54:30]line Безнал.: 0.00 [14:54:30]line Место: АЗС № 64 "Партнер Нефть" [14:54:30]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:54:30]line СНО: Общий режим [14:54:30]line Чек 107 28.11.2024 14:54 [14:54:30]line Смена: 559 ФФД: 1.0 [14:54:30]line ЗНМ: 0300000033 [14:54:30]line РНМ: 0000000000092681 [14:54:30]line Версия ККМ: 001 [14:54:30]line ФМ: 0000000000874881 [14:54:30]line ФД: 123595 [14:54:30]line ФПД: 52128497850640 [14:54:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T145434&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123595&fm=52128497850640&tin=02508201610067®Number=0000000000092681&sum=50000 [14:54:30]OFD Sender: Processing packet 123595 [packets to send 7, broken 6] [14:54:30]ProducePacketName [14:54:30]name=ofd_packets/00123595 [14:54:30]OFD Sender: To server: pG, [14:54:30]CommunicateWithHost lk.salyk.kg:30040 [14:54:30]ConnectInit lk.salyk.kg [14:54:30]written 0, free lines is 4095 [14:54:31]Connected sock=10 [14:54: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 C1 E5 07 01 26 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6B 00 00 00 F4 03 04 00 2A 84 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 2F 69 1C 98 D9 10 4D B6 1F 78 59 D1 23 1A [14:54: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 CF 39 47 00 F0 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 CB E2 01 00 F4 03 04 00 F0 2F 48 67 B6 04 01 00 00 A7 DC 27 79 82 61 D6 06 [14:54:31]CommunicateWithHost err = 0 [14:54:31]CheckOFDResponse [14:54:31]1017 (14) - 77093643461234 [14:54:31]1041 (16) - 0000000000874881 [14:54:31]1040 (4) - 123595 [14:54:31]1012 (4) - 28.11.2024 08:55 [14:54:31]1206 (1) - 0 [14:54:31]OFD Sender: Remove packet 123595 [14:54:31]ProducePacketName [14:54:31]name=ofd_packets/00123595 [14:54:31]NVStorageDeleteData [14:54:31]Write to MH i2c: 01 00 00 5A 31 8B [14:54:31]Write i2c OK [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: 01 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: 01 07 00 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: 01 07 00 5A 31 00 00 00 00 00 3E 0C DC [14:54:31]RasterBufferAndPrint [14:54:31]line [14:54:31]line [14:54:31]line [14:54:31]line [14:54:31]line [14:54:31]written 0, free lines is 3139 [14:54:31]MH_Cut [14:54:31]Write to MH i2c: D1 01 00 61 31 01 64 [14:54:31]Write i2c OK [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: D1 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: D1 01 00 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: D1 01 00 61 31 00 63 [14:54:31]Write to MH i2c: 01 00 00 62 31 93 [14:54:31]Write i2c OK [14:54:31]MH_I2C_Read... [14:54:31]OFD Sender: No OFD packet to send [14:54:32]*** Cut start [14:54:32]*** Partial cut [14:54:32]*** CUTSNS_PIN = 1 [14:54:32]*** CUTSNS_PIN = 0 [14:54:33]*** Brake cut motor [14:54:33]Read from MH i2c: 01 [14:54:33]MH_I2C_Read... [14:54:33]*** Stop cut motor [14:54:33]*** Cut end [14:54:33]Read from MH i2c: 01 07 00 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: 01 07 00 62 31 00 00 00 00 00 FF 0F A8 [14:54:33]process_action close_receipt done [14:54:33]requested_data is exist [14:54:33]produce_requested_data [14:54:33]requested_item fm.sn is exist - process it [14:54:33]wFMCommunicate request_size=4 [14:54:33]MH_SAM_APDU [14:54:33]CAPDU: 80 11 00 00 [14:54:33]Write to MH i2c: E2 08 00 63 31 80 11 00 00 00 00 00 00 0E [14:54:33]Write i2c OK [14:54:33]MH_I2C_Read... [14:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:33]Read from MH i2c: E2 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 17 00 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 17 00 63 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 65 [14:54: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:54:33]wFMCommunicate OK [14:54:33]requested_item fd.num is exist - process it [14:54:33]SAM_PROTO_GetFieldsCounters [14:54:33]wFMCommunicate request_size=4 [14:54:33]MH_SAM_APDU [14:54:33]CAPDU: 80 13 00 00 [14:54:33]Write to MH i2c: E2 08 00 64 31 80 13 00 00 00 00 00 00 11 [14:54:33]Write i2c OK [14:54:33]MH_I2C_Read... [14:54:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:33]Read from MH i2c: E2 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 62 00 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 62 00 64 31 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 E2 01 00 0E 04 04 00 2F 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 57 [14:54: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 CB E2 01 00 0E 04 04 00 2F 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 [14:54:33]wFMCommunicate OK [14:54:33]SAM_PROTO_GetFieldsCounters done [14:54:33]requested_item shift.num is exist - process it [14:54:33]requested_item shift.opened is exist - process it [14:54:33]req_shift_opened [14:54:33]FM_GetShiftState [14:54:33]SAM_PROTO_GetShiftState [14:54:33]wFMCommunicate request_size=4 [14:54:33]MH_SAM_APDU [14:54:33]CAPDU: 80 13 01 00 [14:54:33]Write to MH i2c: E2 08 00 65 31 80 13 01 00 00 00 00 00 13 [14:54:33]Write i2c OK [14:54:33]MH_I2C_Read... [14:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:33]Read from MH i2c: E2 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 0E 00 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 0E 00 65 31 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 1A [14:54:33]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:54:33]wFMCommunicate OK [14:54:33]SAM_PROTO_GetShiftState done [14:54:33]FM_GetShiftState done [14:54:33]req_shift_opened done [14:54:33]requested_item shift.open_date is exist - process it [14:54:33]req_shift_open_date [14:54:33]req_shift_open_date done [14:54:33]produce_requested_data done [14:54:33]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123595,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [14:54:33]process_action_free close_receipt [14:54:33]json_value_free [14:54:33]json_value_free done [14:54:33]process_json_proto returns [14:54:33]Send response to host [14:54:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123595,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [14:54:33]free response buf [14:54:33]execute_script done [14:54:33]execute_script returns [14:54:33]free content buf [14:54:33]Sock 9.Close socket [14:54:33]Sock 9.Thread stoped [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:38]accept exits with 8 [14:59:38]New connection [14:59:38]New thread 3066719588 created [14:59:38]Thread 3066862948 joined [14:59:38]Waiting for new connection... [14:59:38] Sock 8.Parse request [14:59:38]Sock 8.Check first char [14:59:38]Sock 8.First char is OK [14:59:38]request: POST /json_proto HTTP/1.0 [14:59:38]Method: POST [14:59:38]URL: /json_proto [14:59:38]Method is POST - this is cgi request [14:59:38]url: /json_proto [14:59:38]query_string will be loaded in cgi processing [14:59:38]execute_cgi json_proto POST (null) [14:59:38]execute_cgi path=json_proto method=POST [14:59:38]POST find Content-Length [14:59:38]Host: 172.17.37.4:8080 [14:59:38]Content-Length: 819 [14:59:38]Content-Type: application/json [14:59:38] [14:59:38]POST finish read [14:59:38]Found Content-Length = 819 [14:59:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718438", "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" : 53.420, "sum" : 3600.51, "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" : 3600.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:38]execute_script... [14:59: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)718438", "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" : 53.420, "sum" : 3600.51, "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" : 3600.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:38]POST & json_proto [14:59:38]process_json_proto [14:59:38]json parsed OK: [14:59:38]protocol is kg_v1.0 [14:59:38]action value=close_receipt [14:59:38]process_action close_receipt [14:59:38]cmd_close_receipt [14:59:38]MH_GetDate [14:59:38]Write to MH i2c: F0 00 00 66 31 86 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: F0 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: F0 09 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: F0 09 00 66 31 00 5F 85 48 67 1D 3A 47 67 27 [14:59:38]GetLastDocTimeStamp 1732805674 [14:59:38]current date 1732805983 [14:59:38]FM_GetShiftState [14:59:38]SAM_PROTO_GetShiftState [14:59:38]wFMCommunicate request_size=4 [14:59:38]MH_SAM_APDU [14:59:38]CAPDU: 80 13 01 00 [14:59:38]Write to MH i2c: E2 08 00 67 31 80 13 01 00 00 00 00 00 15 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:38]Read from MH i2c: E2 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 0E 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 0E 00 67 31 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 1C [14:59:38]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:59:38]wFMCommunicate OK [14:59:38]SAM_PROTO_GetShiftState done [14:59:38]FM_GetShiftState done [14:59:38]opened in 1732752282 [14:59:38]opened+sec_in_day 1732838682 [14:59:38]quantity*price = 360050 [14:59:38]sum+1 = 360052 [14:59:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3600.51 НСП 1% : 31.86 НДС 12% : 382.35 Наличными: 0.00 Безнал.: 3600.51 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 108 28.11.2024 14:59 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123596 ФПД: 199593305916170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T145943&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123596&fm=199593305916170&tin=02508201610067®Number=0000000000092681&sum=360051 [14:59:39]StoreToDocumentArchive [14:59:39]shift 559 fd 123596 [14:59:39]save to /storage/0559/doc_00123596 [14:59:39]save last doc name /storage/0559/doc_00123596 to /storage/kkm_last_doc_name [14:59:39]save OK [14:59:39]Clear old archive folders... [14:59:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:39]tlvbuf is 015281E0 [14:59:39]SAM_PROTO_ClearQueue [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 09 00 00 [14:59:39]Write to MH i2c: E2 08 00 74 31 80 09 00 00 00 00 00 00 17 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 74 31 00 90 00 19 [14:59:39]RAPDU: 90 00 [14:59:39]wFMCommunicate OK [14:59:39]SAM_PROTO_ClearQueue done [14:59:39]KKMCreateOFDPacket [14:59:39]OFDProtocolAddRootSTLVToBuf [14:59:39]FM_MakeSignedData [14:59:39]FM_MakeSignedData [14:59:39]SAM_PROTO_SignData [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 0D 01 02 [14:59:39]Write to MH i2c: E2 08 00 75 31 80 0D 01 02 00 00 00 00 1F [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 75 31 00 90 00 1A [14:59:39]RAPDU: 90 00 [14:59:39]wFMCommunicate OK [14:59:39]wFMCommunicate request_size=255 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AC D0 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 73 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 95 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 7E 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 5F 85 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B5 [14:59:39]Write to MH i2c: E2 02 01 76 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AC D0 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 73 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 95 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 7E 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 5F 85 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B5 00 00 FB [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 76 31 00 90 00 1B [14:59:39]RAPDU: 90 00 [14:59:39]wFMCommunicate OK [14:59:39]wFMCommunicate request_size=10 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 0D 02 02 05 87 70 19 43 0A [14:59:39]Write to MH i2c: E2 0D 00 77 31 80 0D 02 02 05 00 87 70 19 43 0A 00 00 89 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 77 31 00 90 00 1C [14:59:39]RAPDU: 90 00 [14:59:39]wFMCommunicate OK [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 0D 03 02 [14:59:39]Write to MH i2c: E2 08 00 78 31 80 0D 03 02 00 00 00 00 24 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 0B 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 0B 00 78 31 00 86 05 3D F5 87 E5 FF AE 90 00 FB [14:59:39]RAPDU: 86 05 3D F5 87 E5 FF AE 90 00 [14:59:39]wFMCommunicate OK [14:59:39]SAM_PROTO_SignData done [14:59:39]FM_MakeSignedData done [14:59:39]CreateOFDProtocolMessage [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 11 00 00 [14:59:39]Write to MH i2c: E2 08 00 79 31 80 11 00 00 00 00 00 00 24 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 17 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 17 00 79 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 7B [14:59: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:59:39]wFMCommunicate OK [14:59:39]CreateOFDProtocolMessage done [14:59:39]OFDSenderStorePacket 123596 [14:59:39]StoreOFDPacket docnum=123596 [14:59: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 6B 52 07 01 44 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AC D0 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 73 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 95 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 7E 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 5F 85 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B5 87 70 19 43 0A 86 05 3D F5 87 E5 FF AE [14:59:39]CheckFolder [14:59:39]dirname=/storage/ofd_packets [14:59:39]CheckFolder done [14:59:39]ProducePacketName [14:59:39]name=ofd_packets/00123596 [14:59:39]NVStorageSaveData ofd_packets/00123596 [14:59:39]File name is /storage/ofd_packets/00123596 [14:59:39]Write 301 bytes [14:59:39]NVStorageSaveData done [14:59:39]OFDSenderStorePacket done [14:59:39]KKMCreateOFDPacket done [14:59:39]NVStorageSaveData kkm_last_timestamp [14:59:39]File name is /storage/kkm_last_timestamp [14:59:39]Write 4 bytes [14:59:39]NVStorageSaveData done [14:59:39]ExternCall_PrintAddStr [14:59:39]wPrintStart [14:59:39]Write to MH i2c: 01 00 00 7A 31 AB [14:59:39]OFD Sender: Processing packet 123596 [packets to send 7, broken 6] [14:59:39]ProducePacketName [14:59:39]name=ofd_packets/00123596 [14:59:39]OFD Sender: To server: pG, [14:59:39]CommunicateWithHost lk.salyk.kg:30040 [14:59:39]ConnectInit lk.salyk.kg [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: 01 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: 01 07 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: 01 07 00 7A 31 00 00 00 00 00 FF 0F C0 [14:59:39]RasterBufferAndPrint [14:59:39]line Счет N : (1)718438 [14:59:39]line ИНН: 02508201610067 [14:59:39]line Контрольно-Кассовый Чек [14:59:39]line ПРОДАЖА [14:59:39]line ТРК (МРК, ГНК) : 12 [14:59:39]line Товар: 2710124130 [14:59:39]line Аи-92-К-4 [14:59:39]line 53.420 * 67.40 [14:59:39]line = 3600.51 [14:59:39]line НДС 12% НСП 1% [14:59:39]line > о реализуемом товаре [14:59:39]line ИТОГО: 3600.51 [14:59:39]line НСП 1% : 31.86 [14:59:39]line НДС 12% : 382.35 [14:59:39]line Наличными: 0.00 [14:59:39]line Безнал.: 3600.51 [14:59:39]line Место: АЗС № 64 "Партнер Нефть" [14:59:39]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [14:59:39]line СНО: Общий режим [14:59:39]line Чек 108 28.11.2024 14:59 [14:59:39]line Смена: 559 ФФД: 1.0 [14:59:39]line ЗНМ: 0300000033 [14:59:39]line РНМ: 0000000000092681 [14:59:39]line Версия ККМ: 001 [14:59:39]line Платежная система: Бакай Банк [14:59:39]line ФМ: 0000000000874881 [14:59:39]line ФД: 123596 [14:59:39]line ФПД: 199593305916170 [14:59:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T145943&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123596&fm=199593305916170&tin=02508201610067®Number=0000000000092681&sum=360051 [14:59:39]written 0, free lines is 4095 [14:59:40]Connected sock=10 [14:59: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 0F 01 00 00 6B 52 07 01 44 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AC D0 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 73 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 95 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 7E 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 5F 85 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 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 E2 01 00 35 04 06 00 B5 87 70 19 43 0A 86 05 3D F5 87 E5 FF AE [14:59: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 A8 C2 47 00 5C B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 E2 01 00 F4 03 04 00 25 31 48 67 B6 04 01 00 00 D6 CF 0F B2 97 27 B1 C1 [14:59:40]CommunicateWithHost err = 0 [14:59:40]CheckOFDResponse [14:59:40]1017 (14) - 77093643461234 [14:59:40]1041 (16) - 0000000000874881 [14:59:40]1040 (4) - 123596 [14:59:40]1012 (4) - 28.11.2024 09:00 [14:59:40]1206 (1) - 0 [14:59:40]OFD Sender: Remove packet 123596 [14:59:40]ProducePacketName [14:59:40]name=ofd_packets/00123596 [14:59:40]NVStorageDeleteData [14:59:40]Write to MH i2c: 01 00 00 A4 31 D5 [14:59:40]Write i2c OK [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: 01 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: 01 07 00 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: 01 07 00 A4 31 00 00 00 00 00 5A 0C 42 [14:59:40]RasterBufferAndPrint [14:59:40]line [14:59:40]line [14:59:40]line [14:59:40]line [14:59:40]line [14:59:40]written 0, free lines is 3167 [14:59:40]MH_Cut [14:59:40]Write to MH i2c: D1 01 00 AB 31 01 AE [14:59:40]Write i2c OK [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: D1 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: D1 01 00 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: D1 01 00 AB 31 00 AD [14:59:40]Write to MH i2c: 01 00 00 AC 31 DD [14:59:40]Write i2c OK [14:59:40]MH_I2C_Read... [14:59:40]OFD Sender: No OFD packet to send [14:59:41]*** Cut start [14:59:41]*** Partial cut [14:59:41]*** CUTSNS_PIN = 1 [14:59:41]*** CUTSNS_PIN = 0 [14:59:42]*** Brake cut motor [14:59:42]Read from MH i2c: 01 [14:59:42]MH_I2C_Read... [14:59:42]*** Stop cut motor [14:59:42]*** Cut end [14:59:42]Read from MH i2c: 01 07 00 [14:59:42]MH_I2C_Read... [14:59:42]Read from MH i2c: 01 07 00 AC 31 00 00 00 00 00 FF 0F F2 [14:59:42]process_action close_receipt done [14:59:42]requested_data is exist [14:59:42]produce_requested_data [14:59:42]requested_item fm.sn is exist - process it [14:59:42]wFMCommunicate request_size=4 [14:59:42]MH_SAM_APDU [14:59:42]CAPDU: 80 11 00 00 [14:59:42]Write to MH i2c: E2 08 00 AD 31 80 11 00 00 00 00 00 00 58 [14:59:42]Write i2c OK [14:59:42]MH_I2C_Read... [14:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:42]Read from MH i2c: E2 [14:59:42]MH_I2C_Read... [14:59:42]Read from MH i2c: E2 17 00 [14:59:42]MH_I2C_Read... [14:59:42]Read from MH i2c: E2 17 00 AD 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 AF [14:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [14:59:42]wFMCommunicate OK [14:59:42]requested_item fd.num is exist - process it [14:59:42]SAM_PROTO_GetFieldsCounters [14:59:42]wFMCommunicate request_size=4 [14:59:42]MH_SAM_APDU [14:59:42]CAPDU: 80 13 00 00 [14:59:42]Write to MH i2c: E2 08 00 AE 31 80 13 00 00 00 00 00 00 5B [14:59:42]Write i2c OK [14:59:42]MH_I2C_Read... [14:59:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:42]Read from MH i2c: E2 [14:59:42]MH_I2C_Read... [14:59:42]Read from MH i2c: E2 62 00 [14:59:42]MH_I2C_Read... [14:59:42]Read from MH i2c: E2 62 00 AE 31 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 E2 01 00 0E 04 04 00 2F 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 A5 [14:59: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 CC E2 01 00 0E 04 04 00 2F 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 [14:59:42]wFMCommunicate OK [14:59:42]SAM_PROTO_GetFieldsCounters done [14:59:42]requested_item shift.num is exist - process it [14:59:42]requested_item shift.opened is exist - process it [14:59:42]req_shift_opened [14:59:42]FM_GetShiftState [14:59:42]SAM_PROTO_GetShiftState [14:59:42]wFMCommunicate request_size=4 [14:59:42]MH_SAM_APDU [14:59:42]CAPDU: 80 13 01 00 [14:59:42]Write to MH i2c: E2 08 00 AF 31 80 13 01 00 00 00 00 00 5D [14:59:42]Write i2c OK [14:59:42]MH_I2C_Read... [14:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:42]Read from MH i2c: E2 [14:59:42]MH_I2C_Read... [14:59:42]Read from MH i2c: E2 0E 00 [14:59:42]MH_I2C_Read... [14:59:42]Read from MH i2c: E2 0E 00 AF 31 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 64 [14:59:42]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [14:59:42]wFMCommunicate OK [14:59:42]SAM_PROTO_GetShiftState done [14:59:42]FM_GetShiftState done [14:59:42]req_shift_opened done [14:59:42]requested_item shift.open_date is exist - process it [14:59:42]req_shift_open_date [14:59:42]req_shift_open_date done [14:59:42]produce_requested_data done [14:59:42]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123596,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [14:59:42]process_action_free close_receipt [14:59:42]json_value_free [14:59:42]json_value_free done [14:59:42]process_json_proto returns [14:59:42]Send response to host [14:59:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123596,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [14:59:42]free response buf [14:59:42]execute_script done [14:59:42]execute_script returns [14:59:42]free content buf [14:59:42]Sock 8.Close socket [14:59:42]Sock 8.Thread stoped [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:22]accept exits with 9 [15:00:22]New connection [15:00:22]New thread 3066862948 created [15:00:22]Thread 3066719588 joined [15:00:22]Waiting for new connection... [15:00:22] Sock 9.Parse request [15:00:22]Sock 9.Check first char [15:00:22]Sock 9.First char is OK [15:00:22]request: POST /json_proto HTTP/1.0 [15:00:22]Method: POST [15:00:22]URL: /json_proto [15:00:22]Method is POST - this is cgi request [15:00:22]url: /json_proto [15:00:22]query_string will be loaded in cgi processing [15:00:22]execute_cgi json_proto POST (null) [15:00:22]execute_cgi path=json_proto method=POST [15:00:22]POST find Content-Length [15:00:22]Host: 172.17.37.4:8080 [15:00:22]Content-Length: 677 [15:00:22]Content-Type: application/json [15:00:22] [15:00:22]POST finish read [15:00:22]Found Content-Length = 677 [15:00:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718440", "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" : 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" ] } } [15:00:22]execute_script... [15:00: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)718440", "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" : 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" ] } } [15:00:22]POST & json_proto [15:00:22]process_json_proto [15:00:22]json parsed OK: [15:00:22]protocol is kg_v1.0 [15:00:22]action value=close_receipt [15:00:22]process_action close_receipt [15:00:22]cmd_close_receipt [15:00:22]MH_GetDate [15:00:22]Write to MH i2c: F0 00 00 B0 31 D0 [15:00:22]Write i2c OK [15:00:22]MH_I2C_Read... [15:00:22]Read from MH i2c: F0 [15:00:22]MH_I2C_Read... [15:00:22]Read from MH i2c: F0 09 00 [15:00:22]MH_I2C_Read... [15:00:22]Read from MH i2c: F0 09 00 B0 31 00 8B 85 48 67 1D 3A 47 67 9D [15:00:22]GetLastDocTimeStamp 1732805983 [15:00:22]current date 1732806027 [15:00:22]FM_GetShiftState [15:00:22]SAM_PROTO_GetShiftState [15:00:22]wFMCommunicate request_size=4 [15:00:22]MH_SAM_APDU [15:00:22]CAPDU: 80 13 01 00 [15:00:22]Write to MH i2c: E2 08 00 B1 31 80 13 01 00 00 00 00 00 5F [15:00:22]Write i2c OK [15:00:22]MH_I2C_Read... [15:00:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:22]Read from MH i2c: E2 [15:00:22]MH_I2C_Read... [15:00:22]Read from MH i2c: E2 0E 00 [15:00:22]MH_I2C_Read... [15:00:22]Read from MH i2c: E2 0E 00 B1 31 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 66 [15:00:22]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [15:00:22]wFMCommunicate OK [15:00:22]SAM_PROTO_GetShiftState done [15:00:22]FM_GetShiftState done [15:00:22]opened in 1732752282 [15:00:22]opened+sec_in_day 1732838682 [15:00:22]quantity*price = 60053 [15:00:22]sum+1 = 60054 [15:00:22]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 СНО: Общий режим Чек 109 28.11.2024 15:00 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123597 ФПД: 159404989518382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T150027&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123597&fm=159404989518382&tin=02508201610067®Number=0000000000092681&sum=60000 [15:00:23]StoreToDocumentArchive [15:00:23]shift 559 fd 123597 [15:00:23]save to /storage/0559/doc_00123597 [15:00:23]save last doc name /storage/0559/doc_00123597 to /storage/kkm_last_doc_name [15:00:23]save OK [15:00:23]Clear old archive folders... [15:00:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:23]tlvbuf is 014DC410 [15:00:23]SAM_PROTO_ClearQueue [15:00:23]wFMCommunicate request_size=4 [15:00:23]MH_SAM_APDU [15:00:23]CAPDU: 80 09 00 00 [15:00:23]Write to MH i2c: E2 08 00 BE 31 80 09 00 00 00 00 00 00 61 [15:00:23]Write i2c OK [15:00:23]MH_I2C_Read... [15:00:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:23]Read from MH i2c: E2 [15:00:23]MH_I2C_Read... [15:00:23]Read from MH i2c: E2 03 00 [15:00:23]MH_I2C_Read... [15:00:23]Read from MH i2c: E2 03 00 BE 31 00 90 00 63 [15:00:23]RAPDU: 90 00 [15:00:23]wFMCommunicate OK [15:00:23]SAM_PROTO_ClearQueue done [15:00:23]KKMCreateOFDPacket [15:00:23]OFDProtocolAddRootSTLVToBuf [15:00:23]FM_MakeSignedData [15:00:23]FM_MakeSignedData [15:00:23]SAM_PROTO_SignData [15:00:23]wFMCommunicate request_size=4 [15:00:23]MH_SAM_APDU [15:00:23]CAPDU: 80 0D 01 02 [15:00:23]Write to MH i2c: E2 08 00 BF 31 80 0D 01 02 00 00 00 00 69 [15:00:23]Write i2c OK [15:00:23]MH_I2C_Read... [15:00:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:23]Read from MH i2c: E2 [15:00:23]MH_I2C_Read... [15:00:23]Read from MH i2c: E2 03 00 [15:00:23]MH_I2C_Read... [15:00:23]Read from MH i2c: E2 03 00 BF 31 00 90 00 64 [15:00:23]RAPDU: 90 00 [15:00:23]wFMCommunicate OK [15:00:23]wFMCommunicate request_size=255 [15:00:23]MH_SAM_APDU [15:00: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 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 6D 00 00 00 F4 03 04 00 8B 85 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CD E2 01 00 35 04 06 00 90 [15:00:23]Write to MH i2c: E2 02 01 C0 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6D 00 00 00 F4 03 04 00 8B 85 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CD E2 01 00 35 04 06 00 90 00 00 9B [15:00:23]Write i2c OK [15:00:23]MH_I2C_Read... [15:00:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:23]Read from MH i2c: E2 [15:00:23]MH_I2C_Read... [15:00:23]Read from MH i2c: E2 03 00 [15:00:23]MH_I2C_Read... [15:00:23]Read from MH i2c: E2 03 00 C0 31 00 90 00 65 [15:00:23]RAPDU: 90 00 [15:00:23]wFMCommunicate OK [15:00:23]wFMCommunicate request_size=10 [15:00:23]MH_SAM_APDU [15:00:23]CAPDU: 80 0D 02 02 05 FA 5D C6 92 2E [15:00:23]Write to MH i2c: E2 0D 00 C1 31 80 0D 02 02 05 00 FA 5D C6 92 2E 00 00 53 [15:00:23]Write i2c OK [15:00:23]MH_I2C_Read... [15:00:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:23]Read from MH i2c: E2 [15:00:23]MH_I2C_Read... [15:00:23]Read from MH i2c: E2 03 00 [15:00:23]MH_I2C_Read... [15:00:23]Read from MH i2c: E2 03 00 C1 31 00 90 00 66 [15:00:23]RAPDU: 90 00 [15:00:23]wFMCommunicate OK [15:00:23]wFMCommunicate request_size=4 [15:00:23]MH_SAM_APDU [15:00:23]CAPDU: 80 0D 03 02 [15:00:23]Write to MH i2c: E2 08 00 C2 31 80 0D 03 02 00 00 00 00 6E [15:00:23]Write i2c OK [15:00:23]MH_I2C_Read... [15:00:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:23]Read from MH i2c: E2 [15:00:23]MH_I2C_Read... [15:00:23]Read from MH i2c: E2 0B 00 [15:00:23]MH_I2C_Read... [15:00:23]Read from MH i2c: E2 0B 00 C2 31 00 8B 7B EF 9D 66 B4 4B A4 90 00 0A [15:00:23]RAPDU: 8B 7B EF 9D 66 B4 4B A4 90 00 [15:00:23]wFMCommunicate OK [15:00:23]SAM_PROTO_SignData done [15:00:23]FM_MakeSignedData done [15:00:23]CreateOFDProtocolMessage [15:00:23]wFMCommunicate request_size=4 [15:00:23]MH_SAM_APDU [15:00:23]CAPDU: 80 11 00 00 [15:00:23]Write to MH i2c: E2 08 00 C3 31 80 11 00 00 00 00 00 00 6E [15:00:23]Write i2c OK [15:00:23]MH_I2C_Read... [15:00:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:23]Read from MH i2c: E2 [15:00:23]MH_I2C_Read... [15:00:23]Read from MH i2c: E2 17 00 [15:00:23]MH_I2C_Read... [15:00:23]Read from MH i2c: E2 17 00 C3 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 C5 [15:00: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:00:23]wFMCommunicate OK [15:00:23]CreateOFDProtocolMessage done [15:00:23]OFDSenderStorePacket 123597 [15:00:23]StoreOFDPacket docnum=123597 [15:00: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 6A CC 07 01 3C 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6D 00 00 00 F4 03 04 00 8B 85 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CD E2 01 00 35 04 06 00 90 FA 5D C6 92 2E 8B 7B EF 9D 66 B4 4B A4 [15:00:23]CheckFolder [15:00:23]dirname=/storage/ofd_packets [15:00:23]CheckFolder done [15:00:23]ProducePacketName [15:00:23]name=ofd_packets/00123597 [15:00:23]NVStorageSaveData ofd_packets/00123597 [15:00:23]File name is /storage/ofd_packets/00123597 [15:00:23]Write 301 bytes [15:00:23]NVStorageSaveData done [15:00:23]OFDSenderStorePacket done [15:00:23]KKMCreateOFDPacket done [15:00:23]NVStorageSaveData kkm_last_timestamp [15:00:23]File name is /storage/kkm_last_timestamp [15:00:23]Write 4 bytes [15:00:23]NVStorageSaveData done [15:00:23]ExternCall_PrintAddStr [15:00:23]wPrintStart [15:00:23]Write to MH i2c: 01 00 00 C4 31 F5 [15:00:23]Write i2c OK [15:00:23]MH_I2C_Read... [15:00:23]Read from MH i2c: 01 [15:00:23]MH_I2C_Read... [15:00:23]Read from MH i2c: 01 07 00 [15:00:23]MH_I2C_Read... [15:00:23]Read from MH i2c: 01 07 00 C4 31 00 00 00 00 00 FF 0F 0A [15:00:23]RasterBufferAndPrint [15:00:23]line Счет N : (1)718440 [15:00:23]line ИНН: 02508201610067 [15:00:23]line Контрольно-Кассовый Чек [15:00:23]line ПРОДАЖА [15:00:23]line ТРК (МРК, ГНК) : 42 [15:00:23]line Товар: 2710124130 [15:00:23]line Аи-92-К-4 [15:00:23]line 8.910 * 67.40 [15:00:23]line = 600.53 [15:00:23]line НДС 12% НСП 1% [15:00:23]line > о реализуемом товаре [15:00:23]line ОКРУГЛЕНИЕ: -0.53 [15:00:23]line ИТОГО: 600.00 [15:00:23]line Внесено: 600.00 [15:00:23]line СДАЧА: 0.00 [15:00:23]line НСП 1% : 5.31 [15:00:23]line НДС 12% : 63.77 [15:00:23]line Наличными: 600.00 [15:00:23]line Безнал.: 0.00 [15:00:23]line Место: АЗС № 64 "Партнер Нефть" [15:00:23]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:00:23]line СНО: Общий режим [15:00:23]line Чек 109 28.11.2024 15:00 [15:00:23]line Смена: 559 ФФД: 1.0 [15:00:23]line ЗНМ: 0300000033 [15:00:23]line РНМ: 0000000000092681 [15:00:23]line Версия ККМ: 001 [15:00:23]line ФМ: 0000000000874881 [15:00:23]line ФД: 123597 [15:00:23]line ФПД: 159404989518382 [15:00:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T150027&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123597&fm=159404989518382&tin=02508201610067®Number=0000000000092681&sum=60000 [15:00:24]OFD Sender: Processing packet 123597 [packets to send 7, broken 6] [15:00:24]ProducePacketName [15:00:24]name=ofd_packets/00123597 [15:00:24]OFD Sender: To server: pG, [15:00:24]CommunicateWithHost lk.salyk.kg:30040 [15:00:24]ConnectInit lk.salyk.kg [15:00:24]written 0, free lines is 4095 [15:00:24]Connected sock=10 [15:00: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 6A CC 07 01 3C 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6D 00 00 00 F4 03 04 00 8B 85 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CD E2 01 00 35 04 06 00 90 FA 5D C6 92 2E 8B 7B EF 9D 66 B4 4B A4 [15:00: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 0C 21 47 00 19 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 CD E2 01 00 F4 03 04 00 51 31 48 67 B6 04 01 00 00 8C 39 BD 4B 4D FF 9A DC [15:00:24]CommunicateWithHost err = 0 [15:00:24]CheckOFDResponse [15:00:24]1017 (14) - 77093643461234 [15:00:24]1041 (16) - 0000000000874881 [15:00:24]1040 (4) - 123597 [15:00:24]1012 (4) - 28.11.2024 09:01 [15:00:24]1206 (1) - 0 [15:00:24]OFD Sender: Remove packet 123597 [15:00:24]ProducePacketName [15:00:24]name=ofd_packets/00123597 [15:00:24]NVStorageDeleteData [15:00:24]Write to MH i2c: 01 00 00 EF 31 20 [15:00:24]Write i2c OK [15:00:24]MH_I2C_Read... [15:00:24]Read from MH i2c: 01 [15:00:24]MH_I2C_Read... [15:00:24]Read from MH i2c: 01 07 00 [15:00:24]MH_I2C_Read... [15:00:24]Read from MH i2c: 01 07 00 EF 31 00 00 00 00 00 4C 0C 7F [15:00:24]RasterBufferAndPrint [15:00:24]line [15:00:24]line [15:00:24]line [15:00:24]line [15:00:24]line [15:00:24]written 0, free lines is 3152 [15:00:24]MH_Cut [15:00:24]Write to MH i2c: D1 01 00 F6 31 01 F9 [15:00:24]Write i2c OK [15:00:24]MH_I2C_Read... [15:00:24]Read from MH i2c: D1 [15:00:24]MH_I2C_Read... [15:00:24]Read from MH i2c: D1 01 00 [15:00:24]MH_I2C_Read... [15:00:24]Read from MH i2c: D1 01 00 F6 31 00 F8 [15:00:24]Write to MH i2c: 01 00 00 F7 31 28 [15:00:24]Write i2c OK [15:00:24]MH_I2C_Read... [15:00:24]OFD Sender: No OFD packet to send [15:00:25]*** Cut start [15:00:25]*** Partial cut [15:00:25]*** CUTSNS_PIN = 1 [15:00:25]*** CUTSNS_PIN = 0 [15:00:26]*** Brake cut motor [15:00:26]Read from MH i2c: 01 [15:00:26]MH_I2C_Read... [15:00:26]*** Stop cut motor [15:00:26]*** Cut end [15:00:26]Read from MH i2c: 01 07 00 [15:00:26]MH_I2C_Read... [15:00:26]Read from MH i2c: 01 07 00 F7 31 00 00 00 00 00 FF 0F 3D [15:00:26]process_action close_receipt done [15:00:26]requested_data is exist [15:00:26]produce_requested_data [15:00:26]requested_item fm.sn is exist - process it [15:00:26]wFMCommunicate request_size=4 [15:00:26]MH_SAM_APDU [15:00:26]CAPDU: 80 11 00 00 [15:00:26]Write to MH i2c: E2 08 00 F8 31 80 11 00 00 00 00 00 00 A3 [15:00:26]Write i2c OK [15:00:26]MH_I2C_Read... [15:00:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:26]Read from MH i2c: E2 [15:00:26]MH_I2C_Read... [15:00:26]Read from MH i2c: E2 17 00 [15:00:26]MH_I2C_Read... [15:00:26]Read from MH i2c: E2 17 00 F8 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 FA [15:00:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:00:26]wFMCommunicate OK [15:00:26]requested_item fd.num is exist - process it [15:00:26]SAM_PROTO_GetFieldsCounters [15:00:26]wFMCommunicate request_size=4 [15:00:26]MH_SAM_APDU [15:00:26]CAPDU: 80 13 00 00 [15:00:26]Write to MH i2c: E2 08 00 F9 31 80 13 00 00 00 00 00 00 A6 [15:00:26]Write i2c OK [15:00:26]MH_I2C_Read... [15:00:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:26]Read from MH i2c: E2 [15:00:26]MH_I2C_Read... [15:00:26]Read from MH i2c: E2 62 00 [15:00:26]MH_I2C_Read... [15:00:26]Read from MH i2c: E2 62 00 F9 31 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 CD E2 01 00 0E 04 04 00 2F 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 F4 [15:00: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 CD E2 01 00 0E 04 04 00 2F 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:00:26]wFMCommunicate OK [15:00:26]SAM_PROTO_GetFieldsCounters done [15:00:26]requested_item shift.num is exist - process it [15:00:26]requested_item shift.opened is exist - process it [15:00:26]req_shift_opened [15:00:26]FM_GetShiftState [15:00:26]SAM_PROTO_GetShiftState [15:00:26]wFMCommunicate request_size=4 [15:00:26]MH_SAM_APDU [15:00:26]CAPDU: 80 13 01 00 [15:00:26]Write to MH i2c: E2 08 00 FA 31 80 13 01 00 00 00 00 00 A8 [15:00:26]Write i2c OK [15:00:26]MH_I2C_Read... [15:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:26]Read from MH i2c: E2 [15:00:26]MH_I2C_Read... [15:00:26]Read from MH i2c: E2 0E 00 [15:00:26]MH_I2C_Read... [15:00:26]Read from MH i2c: E2 0E 00 FA 31 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 AF [15:00:26]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [15:00:26]wFMCommunicate OK [15:00:26]SAM_PROTO_GetShiftState done [15:00:26]FM_GetShiftState done [15:00:26]req_shift_opened done [15:00:26]requested_item shift.open_date is exist - process it [15:00:26]req_shift_open_date [15:00:26]req_shift_open_date done [15:00:26]produce_requested_data done [15:00:26]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123597,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [15:00:26]process_action_free close_receipt [15:00:26]json_value_free [15:00:26]json_value_free done [15:00:26]process_json_proto returns [15:00:26]Send response to host [15:00:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123597,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [15:00:26]free response buf [15:00:26]execute_script done [15:00:26]execute_script returns [15:00:26]free content buf [15:00:26]Sock 9.Close socket [15:00:26]Sock 9.Thread stoped [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:01:59]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:28]accept exits with 8 [15:06:28]New connection [15:06:28]New thread 3066719588 created [15:06:28]Thread 3066862948 joined [15:06:28]Waiting for new connection... [15:06:28] Sock 8.Parse request [15:06:28]Sock 8.Check first char [15:06:28]Sock 8.First char is OK [15:06:28]request: POST /json_proto HTTP/1.0 [15:06:28]Method: POST [15:06:28]URL: /json_proto [15:06:28]Method is POST - this is cgi request [15:06:28]url: /json_proto [15:06:28]query_string will be loaded in cgi processing [15:06:28]execute_cgi json_proto POST (null) [15:06:28]execute_cgi path=json_proto method=POST [15:06:28]POST find Content-Length [15:06:28]Host: 172.17.37.4:8080 [15:06:28]Content-Length: 677 [15:06:28]Content-Type: application/json [15:06:28] [15:06:28]POST finish read [15:06:28]Found Content-Length = 677 [15:06:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718441", "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.750, "sum" : 320.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:28]execute_script... [15:06: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)718441", "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.750, "sum" : 320.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:28]POST & json_proto [15:06:28]process_json_proto [15:06:28]json parsed OK: [15:06:28]protocol is kg_v1.0 [15:06:28]action value=close_receipt [15:06:28]process_action close_receipt [15:06:28]cmd_close_receipt [15:06:28]MH_GetDate [15:06:28]Write to MH i2c: F0 00 00 FB 31 1B [15:06:28]Write i2c OK [15:06:28]MH_I2C_Read... [15:06:28]Read from MH i2c: F0 [15:06:28]MH_I2C_Read... [15:06:28]Read from MH i2c: F0 09 00 [15:06:28]MH_I2C_Read... [15:06:28]Read from MH i2c: F0 09 00 FB 31 00 F9 86 48 67 1D 3A 47 67 57 [15:06:28]GetLastDocTimeStamp 1732806027 [15:06:28]current date 1732806393 [15:06:28]FM_GetShiftState [15:06:28]SAM_PROTO_GetShiftState [15:06:28]wFMCommunicate request_size=4 [15:06:28]MH_SAM_APDU [15:06:28]CAPDU: 80 13 01 00 [15:06:28]Write to MH i2c: E2 08 00 FC 31 80 13 01 00 00 00 00 00 AA [15:06:28]Write i2c OK [15:06:28]MH_I2C_Read... [15:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:28]Read from MH i2c: E2 [15:06:28]MH_I2C_Read... [15:06:28]Read from MH i2c: E2 0E 00 [15:06:28]MH_I2C_Read... [15:06:28]Read from MH i2c: E2 0E 00 FC 31 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 B1 [15:06:28]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [15:06:28]wFMCommunicate OK [15:06:28]SAM_PROTO_GetShiftState done [15:06:28]FM_GetShiftState done [15:06:28]opened in 1732752282 [15:06:28]opened+sec_in_day 1732838682 [15:06:28]quantity*price = 32015 [15:06:28]sum+1 = 32016 [15:06:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 34.00 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 64 "Партнер Нефть" Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 СНО: Общий режим Чек 110 28.11.2024 15:06 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123598 ФПД: 61255694254830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T150633&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123598&fm=61255694254830&tin=02508201610067®Number=0000000000092681&sum=32000 [15:06:29]StoreToDocumentArchive [15:06:29]shift 559 fd 123598 [15:06:29]save to /storage/0559/doc_00123598 [15:06:29]save last doc name /storage/0559/doc_00123598 to /storage/kkm_last_doc_name [15:06:29]save OK [15:06:29]Clear old archive folders... [15:06:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:06:29]tlvbuf is 014FC970 [15:06:29]SAM_PROTO_ClearQueue [15:06:29]wFMCommunicate request_size=4 [15:06:29]MH_SAM_APDU [15:06:29]CAPDU: 80 09 00 00 [15:06:29]Write to MH i2c: E2 08 00 09 32 80 09 00 00 00 00 00 00 AD [15:06:29]Write i2c OK [15:06:29]MH_I2C_Read... [15:06:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:29]Read from MH i2c: E2 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 03 00 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 03 00 09 32 00 90 00 AF [15:06:29]RAPDU: 90 00 [15:06:29]wFMCommunicate OK [15:06:29]SAM_PROTO_ClearQueue done [15:06:29]KKMCreateOFDPacket [15:06:29]OFDProtocolAddRootSTLVToBuf [15:06:29]FM_MakeSignedData [15:06:29]FM_MakeSignedData [15:06:29]SAM_PROTO_SignData [15:06:29]wFMCommunicate request_size=4 [15:06:29]MH_SAM_APDU [15:06:29]CAPDU: 80 0D 01 02 [15:06:29]Write to MH i2c: E2 08 00 0A 32 80 0D 01 02 00 00 00 00 B5 [15:06:29]Write i2c OK [15:06:29]MH_I2C_Read... [15:06:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:29]Read from MH i2c: E2 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 03 00 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 03 00 0A 32 00 90 00 B0 [15:06:29]RAPDU: 90 00 [15:06:29]wFMCommunicate OK [15:06:29]wFMCommunicate request_size=255 [15:06:29]MH_SAM_APDU [15:06: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 8E 12 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 0F 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 F9 86 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CE E2 01 00 35 04 06 00 37 [15:06:29]Write to MH i2c: E2 02 01 0B 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 12 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 0F 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 F9 86 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CE E2 01 00 35 04 06 00 37 00 00 7D [15:06:29]Write i2c OK [15:06:29]MH_I2C_Read... [15:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:29]Read from MH i2c: E2 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 03 00 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 03 00 0B 32 00 90 00 B1 [15:06:29]RAPDU: 90 00 [15:06:29]wFMCommunicate OK [15:06:29]wFMCommunicate request_size=10 [15:06:29]MH_SAM_APDU [15:06:29]CAPDU: 80 0D 02 02 05 B6 33 E5 82 EE [15:06:29]Write to MH i2c: E2 0D 00 0C 32 80 0D 02 02 05 00 B6 33 E5 82 EE 00 00 00 [15:06:29]Write i2c OK [15:06:29]MH_I2C_Read... [15:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:29]Read from MH i2c: E2 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 03 00 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 03 00 0C 32 00 90 00 B2 [15:06:29]RAPDU: 90 00 [15:06:29]wFMCommunicate OK [15:06:29]wFMCommunicate request_size=4 [15:06:29]MH_SAM_APDU [15:06:29]CAPDU: 80 0D 03 02 [15:06:29]Write to MH i2c: E2 08 00 0D 32 80 0D 03 02 00 00 00 00 BA [15:06:29]Write i2c OK [15:06:29]MH_I2C_Read... [15:06:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:29]Read from MH i2c: E2 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 0B 00 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 0B 00 0D 32 00 9D D9 36 E9 18 71 62 0C 90 00 47 [15:06:29]RAPDU: 9D D9 36 E9 18 71 62 0C 90 00 [15:06:29]wFMCommunicate OK [15:06:29]SAM_PROTO_SignData done [15:06:29]FM_MakeSignedData done [15:06:29]CreateOFDProtocolMessage [15:06:29]wFMCommunicate request_size=4 [15:06:29]MH_SAM_APDU [15:06:29]CAPDU: 80 11 00 00 [15:06:29]Write to MH i2c: E2 08 00 0E 32 80 11 00 00 00 00 00 00 BA [15:06:29]Write i2c OK [15:06:29]MH_I2C_Read... [15:06:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:30]Read from MH i2c: E2 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 17 00 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: E2 17 00 0E 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 11 [15:06: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:06:30]wFMCommunicate OK [15:06:30]CreateOFDProtocolMessage done [15:06:30]OFDSenderStorePacket 123598 [15:06:30]StoreOFDPacket docnum=123598 [15:06: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 02 92 07 01 22 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 8E 12 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 0F 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 F9 86 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CE E2 01 00 35 04 06 00 37 B6 33 E5 82 EE 9D D9 36 E9 18 71 62 0C [15:06:30]CheckFolder [15:06:30]dirname=/storage/ofd_packets [15:06:30]CheckFolder done [15:06:30]ProducePacketName [15:06:30]name=ofd_packets/00123598 [15:06:30]NVStorageSaveData ofd_packets/00123598 [15:06:30]File name is /storage/ofd_packets/00123598 [15:06:30]Write 301 bytes [15:06:30]NVStorageSaveData done [15:06:30]OFDSenderStorePacket done [15:06:30]KKMCreateOFDPacket done [15:06:30]NVStorageSaveData kkm_last_timestamp [15:06:30]File name is /storage/kkm_last_timestamp [15:06:30]Write 4 bytes [15:06:30]NVStorageSaveData done [15:06:30]ExternCall_PrintAddStr [15:06:30]wPrintStart [15:06:30]Write to MH i2c: 01 00 00 0F 32 41 [15:06:30]Write i2c OK [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: 01 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: 01 07 00 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: 01 07 00 0F 32 00 00 00 00 00 FF 0F 56 [15:06:30]RasterBufferAndPrint [15:06:30]line Счет N : (1)718441 [15:06:30]line ИНН: 02508201610067 [15:06:30]line Контрольно-Кассовый Чек [15:06:30]line ПРОДАЖА [15:06:30]line ТРК (МРК, ГНК) : 22 [15:06:30]line Товар: 2710124130 [15:06:30]line Аи-92-К-4 [15:06:30]line 4.750 * 67.40 [15:06:30]line = 320.15 [15:06:30]line НДС 12% НСП 1% [15:06:30]line > о реализуемом товаре [15:06:30]line ОКРУГЛЕНИЕ: -0.15 [15:06:30]line ИТОГО: 320.00 [15:06:30]line Внесено: 320.00 [15:06:30]line СДАЧА: 0.00 [15:06:30]line НСП 1% : 2.83 [15:06:30]line НДС 12% : 34.00 [15:06:30]line Наличными: 320.00 [15:06:30]line Безнал.: 0.00 [15:06:30]line Место: АЗС № 64 "Партнер Нефть" [15:06:30]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:06:30]line СНО: Общий режим [15:06:30]line Чек 110 28.11.2024 15:06 [15:06:30]line Смена: 559 ФФД: 1.0 [15:06:30]line ЗНМ: 0300000033 [15:06:30]line РНМ: 0000000000092681 [15:06:30]line Версия ККМ: 001 [15:06:30]line ФМ: 0000000000874881 [15:06:30]line ФД: 123598 [15:06:30]line ФПД: 61255694254830 [15:06:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T150633&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123598&fm=61255694254830&tin=02508201610067®Number=0000000000092681&sum=32000 [15:06:30]OFD Sender: Processing packet 123598 [packets to send 7, broken 6] [15:06:30]ProducePacketName [15:06:30]name=ofd_packets/00123598 [15:06:30]OFD Sender: To server: pG, [15:06:30]CommunicateWithHost lk.salyk.kg:30040 [15:06:30]ConnectInit lk.salyk.kg [15:06:30]written 0, free lines is 4095 [15:06:30]Connected sock=10 [15:06: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 02 92 07 01 22 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 8E 12 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 0F 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 F9 86 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CE E2 01 00 35 04 06 00 37 B6 33 E5 82 EE 9D D9 36 E9 18 71 62 0C [15:06: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 24 33 47 00 48 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CE E2 01 00 F4 03 04 00 BF 32 48 67 B6 04 01 00 00 FD 7C FD D8 BB 8E 1A A1 [15:06:30]CommunicateWithHost err = 0 [15:06:30]CheckOFDResponse [15:06:30]1017 (14) - 77093643461234 [15:06:30]1041 (16) - 0000000000874881 [15:06:30]1040 (4) - 123598 [15:06:30]1012 (4) - 28.11.2024 09:07 [15:06:30]1206 (1) - 0 [15:06:30]OFD Sender: Remove packet 123598 [15:06:30]ProducePacketName [15:06:30]name=ofd_packets/00123598 [15:06:30]NVStorageDeleteData [15:06:30]Write to MH i2c: 01 00 00 3A 32 6C [15:06:30]Write i2c OK [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: 01 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: 01 07 00 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: 01 07 00 3A 32 00 00 00 00 00 46 0C C5 [15:06:30]RasterBufferAndPrint [15:06:30]line [15:06:30]line [15:06:30]line [15:06:30]line [15:06:30]line [15:06:30]written 0, free lines is 3146 [15:06:30]MH_Cut [15:06:30]Write to MH i2c: D1 01 00 41 32 01 45 [15:06:30]Write i2c OK [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: D1 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: D1 01 00 [15:06:30]MH_I2C_Read... [15:06:30]Read from MH i2c: D1 01 00 41 32 00 44 [15:06:30]Write to MH i2c: 01 00 00 42 32 74 [15:06:30]Write i2c OK [15:06:30]MH_I2C_Read... [15:06:31]OFD Sender: No OFD packet to send [15:06:32]*** Cut start [15:06:32]*** Partial cut [15:06:32]*** CUTSNS_PIN = 1 [15:06:32]*** CUTSNS_PIN = 0 [15:06:32]*** Brake cut motor [15:06:32]Read from MH i2c: 01 [15:06:32]MH_I2C_Read... [15:06:32]*** Stop cut motor [15:06:32]*** Cut end [15:06:32]Read from MH i2c: 01 07 00 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: 01 07 00 42 32 00 00 00 00 00 FF 0F 89 [15:06:32]process_action close_receipt done [15:06:32]requested_data is exist [15:06:32]produce_requested_data [15:06:32]requested_item fm.sn is exist - process it [15:06:32]wFMCommunicate request_size=4 [15:06:32]MH_SAM_APDU [15:06:32]CAPDU: 80 11 00 00 [15:06:32]Write to MH i2c: E2 08 00 43 32 80 11 00 00 00 00 00 00 EF [15:06:32]Write i2c OK [15:06:32]MH_I2C_Read... [15:06:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:32]Read from MH i2c: E2 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 17 00 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 17 00 43 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 46 [15:06: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:06:32]wFMCommunicate OK [15:06:32]requested_item fd.num is exist - process it [15:06:32]SAM_PROTO_GetFieldsCounters [15:06:32]wFMCommunicate request_size=4 [15:06:32]MH_SAM_APDU [15:06:32]CAPDU: 80 13 00 00 [15:06:32]Write to MH i2c: E2 08 00 44 32 80 13 00 00 00 00 00 00 F2 [15:06:32]Write i2c OK [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 [15:06:32]MH_I2C_Read... [15:06:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:33]Read from MH i2c: E2 62 00 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 62 00 44 32 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 CE E2 01 00 0E 04 04 00 2F 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 44 [15:06: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 CE E2 01 00 0E 04 04 00 2F 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:06:33]wFMCommunicate OK [15:06:33]SAM_PROTO_GetFieldsCounters done [15:06:33]requested_item shift.num is exist - process it [15:06:33]requested_item shift.opened is exist - process it [15:06:33]req_shift_opened [15:06:33]FM_GetShiftState [15:06:33]SAM_PROTO_GetShiftState [15:06:33]wFMCommunicate request_size=4 [15:06:33]MH_SAM_APDU [15:06:33]CAPDU: 80 13 01 00 [15:06:33]Write to MH i2c: E2 08 00 45 32 80 13 01 00 00 00 00 00 F4 [15:06:33]Write i2c OK [15:06:33]MH_I2C_Read... [15:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:33]Read from MH i2c: E2 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 0E 00 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 0E 00 45 32 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 FB [15:06:33]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [15:06:33]wFMCommunicate OK [15:06:33]SAM_PROTO_GetShiftState done [15:06:33]FM_GetShiftState done [15:06:33]req_shift_opened done [15:06:33]requested_item shift.open_date is exist - process it [15:06:33]req_shift_open_date [15:06:33]req_shift_open_date done [15:06:33]produce_requested_data done [15:06:33]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123598,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [15:06:33]process_action_free close_receipt [15:06:33]json_value_free [15:06:33]json_value_free done [15:06:33]process_json_proto returns [15:06:33]Send response to host [15:06:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123598,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [15:06:33]free response buf [15:06:33]execute_script done [15:06:33]execute_script returns [15:06:33]free content buf [15:06:33]Sock 8.Close socket [15:06:33]Sock 8.Thread stoped [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:23]accept exits with 9 [15:09:23]New connection [15:09:23]New thread 3066862948 created [15:09:23]Thread 3066719588 joined [15:09:23]Waiting for new connection... [15:09:23] Sock 9.Parse request [15:09:23]Sock 9.Check first char [15:09:23]Sock 9.First char is OK [15:09:23]request: POST /json_proto HTTP/1.0 [15:09:23]Method: POST [15:09:23]URL: /json_proto [15:09:23]Method is POST - this is cgi request [15:09:23]url: /json_proto [15:09:23]query_string will be loaded in cgi processing [15:09:23]execute_cgi json_proto POST (null) [15:09:23]execute_cgi path=json_proto method=POST [15:09:23]POST find Content-Length [15:09:23]Host: 172.17.37.4:8080 [15:09:23]Content-Length: 819 [15:09:23]Content-Type: application/json [15:09:23] [15:09:23]POST finish read [15:09:23]Found Content-Length = 819 [15:09:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718442", "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" : 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:23]execute_script... [15:09: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)718442", "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" : 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:23]POST & json_proto [15:09:23]process_json_proto [15:09:23]json parsed OK: [15:09:23]protocol is kg_v1.0 [15:09:23]action value=close_receipt [15:09:23]process_action close_receipt [15:09:23]cmd_close_receipt [15:09:23]MH_GetDate [15:09:23]Write to MH i2c: F0 00 00 46 32 67 [15:09:23]Write i2c OK [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: F0 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: F0 09 00 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: F0 09 00 46 32 00 A9 87 48 67 1D 3A 47 67 54 [15:09:23]GetLastDocTimeStamp 1732806393 [15:09:23]current date 1732806569 [15:09:23]FM_GetShiftState [15:09:23]SAM_PROTO_GetShiftState [15:09:23]wFMCommunicate request_size=4 [15:09:23]MH_SAM_APDU [15:09:23]CAPDU: 80 13 01 00 [15:09:23]Write to MH i2c: E2 08 00 47 32 80 13 01 00 00 00 00 00 F6 [15:09:23]Write i2c OK [15:09:23]MH_I2C_Read... [15:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:23]Read from MH i2c: E2 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: E2 0E 00 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: E2 0E 00 47 32 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 FD [15:09:23]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [15:09:23]wFMCommunicate OK [15:09:23]SAM_PROTO_GetShiftState done [15:09:23]FM_GetShiftState done [15:09:23]opened in 1732752282 [15:09:23]opened+sec_in_day 1732838682 [15:09:23]quantity*price = 200043 [15:09:23]sum+1 = 200044 [15:09:23]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 СНО: Общий режим Чек 111 28.11.2024 15:09 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874881 ФД: 123599 ФПД: 43514519172635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T150929&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123599&fm=43514519172635&tin=02508201610067®Number=0000000000092681&sum=200043 [15:09:24]StoreToDocumentArchive [15:09:24]shift 559 fd 123599 [15:09:24]save to /storage/0559/doc_00123599 [15:09:24]save last doc name /storage/0559/doc_00123599 to /storage/kkm_last_doc_name [15:09:24]save OK [15:09:24]Clear old archive folders... [15:09:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:24]tlvbuf is 014F0A20 [15:09:24]SAM_PROTO_ClearQueue [15:09:24]wFMCommunicate request_size=4 [15:09:24]MH_SAM_APDU [15:09:24]CAPDU: 80 09 00 00 [15:09:24]Write to MH i2c: E2 08 00 54 32 80 09 00 00 00 00 00 00 F8 [15:09:24]Write i2c OK [15:09:24]MH_I2C_Read... [15:09:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:24]Read from MH i2c: E2 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 03 00 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 03 00 54 32 00 90 00 FA [15:09:24]RAPDU: 90 00 [15:09:24]wFMCommunicate OK [15:09:24]SAM_PROTO_ClearQueue done [15:09:24]KKMCreateOFDPacket [15:09:24]OFDProtocolAddRootSTLVToBuf [15:09:24]FM_MakeSignedData [15:09:24]FM_MakeSignedData [15:09:24]SAM_PROTO_SignData [15:09:24]wFMCommunicate request_size=4 [15:09:24]MH_SAM_APDU [15:09:24]CAPDU: 80 0D 01 02 [15:09:24]Write to MH i2c: E2 08 00 55 32 80 0D 01 02 00 00 00 00 00 [15:09:24]Write i2c OK [15:09:24]MH_I2C_Read... [15:09:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:24]Read from MH i2c: E2 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 03 00 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 03 00 55 32 00 90 00 FB [15:09:24]RAPDU: 90 00 [15:09:24]wFMCommunicate OK [15:09:24]wFMCommunicate request_size=255 [15:09:24]MH_SAM_APDU [15:09: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 6F 00 00 00 F4 03 04 00 A9 87 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CF E2 01 00 35 04 06 00 27 [15:09:24]Write to MH i2c: E2 02 01 56 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6F 00 00 00 F4 03 04 00 A9 87 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CF E2 01 00 35 04 06 00 27 00 00 E5 [15:09:24]Write i2c OK [15:09:24]MH_I2C_Read... [15:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:25]Read from MH i2c: E2 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 56 32 00 90 00 FC [15:09:25]RAPDU: 90 00 [15:09:25]wFMCommunicate OK [15:09:25]wFMCommunicate request_size=10 [15:09:25]MH_SAM_APDU [15:09:25]CAPDU: 80 0D 02 02 05 93 83 75 36 1B [15:09:25]Write to MH i2c: E2 0D 00 57 32 80 0D 02 02 05 00 93 83 75 36 1B 00 00 E9 [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:25]Read from MH i2c: E2 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 57 32 00 90 00 FD [15:09:25]RAPDU: 90 00 [15:09:25]wFMCommunicate OK [15:09:25]wFMCommunicate request_size=4 [15:09:25]MH_SAM_APDU [15:09:25]CAPDU: 80 0D 03 02 [15:09:25]Write to MH i2c: E2 08 00 58 32 80 0D 03 02 00 00 00 00 05 [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:25]Read from MH i2c: E2 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 0B 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 0B 00 58 32 00 45 84 E1 BD 9E F6 17 36 90 00 4E [15:09:25]RAPDU: 45 84 E1 BD 9E F6 17 36 90 00 [15:09:25]wFMCommunicate OK [15:09:25]SAM_PROTO_SignData done [15:09:25]FM_MakeSignedData done [15:09:25]CreateOFDProtocolMessage [15:09:25]wFMCommunicate request_size=4 [15:09:25]MH_SAM_APDU [15:09:25]CAPDU: 80 11 00 00 [15:09:25]Write to MH i2c: E2 08 00 59 32 80 11 00 00 00 00 00 00 05 [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:25]Read from MH i2c: E2 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 17 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 17 00 59 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 5C [15:09: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:09:25]wFMCommunicate OK [15:09:25]CreateOFDProtocolMessage done [15:09:25]OFDSenderStorePacket 123599 [15:09:25]StoreOFDPacket docnum=123599 [15:09: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 3B 02 07 01 11 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 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 6F 00 00 00 F4 03 04 00 A9 87 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CF E2 01 00 35 04 06 00 27 93 83 75 36 1B 45 84 E1 BD 9E F6 17 36 [15:09:25]CheckFolder [15:09:25]dirname=/storage/ofd_packets [15:09:25]CheckFolder done [15:09:25]ProducePacketName [15:09:25]name=ofd_packets/00123599 [15:09:25]NVStorageSaveData ofd_packets/00123599 [15:09:25]File name is /storage/ofd_packets/00123599 [15:09:25]Write 301 bytes [15:09:25]NVStorageSaveData done [15:09:25]OFDSenderStorePacket done [15:09:25]KKMCreateOFDPacket done [15:09:25]NVStorageSaveData kkm_last_timestamp [15:09:25]File name is /storage/kkm_last_timestamp [15:09:25]Write 4 bytes [15:09:25]NVStorageSaveData done [15:09:25]OFD Sender: Processing packet 123599 [packets to send 7, broken 6] [15:09:25]ProducePacketName [15:09:25]name=ofd_packets/00123599 [15:09:25]OFD Sender: To server: pG, [15:09:25]CommunicateWithHost lk.salyk.kg:30040 [15:09:25]ConnectInit lk.salyk.kg [15:09:25]ExternCall_PrintAddStr [15:09:25]wPrintStart [15:09:25]Write to MH i2c: 01 00 00 5A 32 8C [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: 01 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: 01 07 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: 01 07 00 5A 32 00 00 00 00 00 FF 0F A1 [15:09:25]RasterBufferAndPrint [15:09:25]line Счет N : (1)718442 [15:09:25]line ИНН: 02508201610067 [15:09:25]line Контрольно-Кассовый Чек [15:09:25]line ПРОДАЖА [15:09:25]line ТРК (МРК, ГНК) : 12 [15:09:25]line Товар: 2710124130 [15:09:25]line Аи-92-К-4 [15:09:25]line 29.680 * 67.40 [15:09:25]line = 2000.43 [15:09:25]line НДС 12% НСП 1% [15:09:25]line > о реализуемом товаре [15:09:25]line ИТОГО: 2000.43 [15:09:25]line НСП 1% : 17.70 [15:09:25]line НДС 12% : 212.43 [15:09:25]line Наличными: 0.00 [15:09:25]line Безнал.: 2000.43 [15:09:25]line Место: АЗС № 64 "Партнер Нефть" [15:09:25]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:09:25]line СНО: Общий режим [15:09:25]line Чек 111 28.11.2024 15:09 [15:09:25]line Смена: 559 ФФД: 1.0 [15:09:25]line ЗНМ: 0300000033 [15:09:25]line РНМ: 0000000000092681 [15:09:25]line Версия ККМ: 001 [15:09:25]line Платежная система: Бакай Банк [15:09:25]line ФМ: 0000000000874881 [15:09:25]line ФД: 123599 [15:09:25]line ФПД: 43514519172635 [15:09:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T150929&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123599&fm=43514519172635&tin=02508201610067®Number=0000000000092681&sum=200043 [15:09:25]Connected sock=11 [15:09: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 3B 02 07 01 11 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 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 6F 00 00 00 F4 03 04 00 A9 87 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 CF E2 01 00 35 04 06 00 27 93 83 75 36 1B 45 84 E1 BD 9E F6 17 36 [15:09:25]written 0, free lines is 4095 [15:09: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 72 36 47 00 DC 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 CF E2 01 00 F4 03 04 00 6E 33 48 67 B6 04 01 00 00 98 98 A2 44 AD 28 90 EA [15:09:25]CommunicateWithHost err = 0 [15:09:25]CheckOFDResponse [15:09:25]1017 (14) - 77093643461234 [15:09:25]1041 (16) - 0000000000874881 [15:09:25]1040 (4) - 123599 [15:09:25]1012 (4) - 28.11.2024 09:10 [15:09:25]1206 (1) - 0 [15:09:25]OFD Sender: Remove packet 123599 [15:09:25]ProducePacketName [15:09:25]name=ofd_packets/00123599 [15:09:25]NVStorageDeleteData [15:09:26]Write to MH i2c: 01 00 00 84 32 B6 [15:09:26]Write i2c OK [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: 01 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: 01 07 00 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: 01 07 00 84 32 00 00 00 00 00 55 0C 1E [15:09:26]RasterBufferAndPrint [15:09:26]line [15:09:26]line [15:09:26]line [15:09:26]line [15:09:26]line [15:09:26]written 0, free lines is 3163 [15:09:26]MH_Cut [15:09:26]Write to MH i2c: D1 01 00 8B 32 01 8F [15:09:26]Write i2c OK [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: D1 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: D1 01 00 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: D1 01 00 8B 32 00 8E [15:09:26]Write to MH i2c: 01 00 00 8C 32 BE [15:09:26]Write i2c OK [15:09:26]MH_I2C_Read... [15:09:26]OFD Sender: No OFD packet to send [15:09:27]*** Cut start [15:09:27]*** Partial cut [15:09:27]*** CUTSNS_PIN = 1 [15:09:27]*** CUTSNS_PIN = 0 [15:09:27]*** Brake cut motor [15:09:28]Read from MH i2c: 01 [15:09:28]*** Stop cut motor [15:09:28]*** Cut end [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: 01 07 00 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: 01 07 00 8C 32 00 00 00 00 00 FF 0F D3 [15:09:28]process_action close_receipt done [15:09:28]requested_data is exist [15:09:28]produce_requested_data [15:09:28]requested_item fm.sn is exist - process it [15:09:28]wFMCommunicate request_size=4 [15:09:28]MH_SAM_APDU [15:09:28]CAPDU: 80 11 00 00 [15:09:28]Write to MH i2c: E2 08 00 8D 32 80 11 00 00 00 00 00 00 39 [15:09:28]Write i2c OK [15:09:28]MH_I2C_Read... [15:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:28]Read from MH i2c: E2 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 17 00 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 17 00 8D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 90 [15:09: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:09:28]wFMCommunicate OK [15:09:28]requested_item fd.num is exist - process it [15:09:28]SAM_PROTO_GetFieldsCounters [15:09:28]wFMCommunicate request_size=4 [15:09:28]MH_SAM_APDU [15:09:28]CAPDU: 80 13 00 00 [15:09:28]Write to MH i2c: E2 08 00 8E 32 80 13 00 00 00 00 00 00 3C [15:09:28]Write i2c OK [15:09:28]MH_I2C_Read... [15:09:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:28]Read from MH i2c: E2 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 62 00 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 62 00 8E 32 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 CF E2 01 00 0E 04 04 00 2F 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 92 [15:09: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 CF E2 01 00 0E 04 04 00 2F 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 [15:09:28]wFMCommunicate OK [15:09:28]SAM_PROTO_GetFieldsCounters done [15:09:28]requested_item shift.num is exist - process it [15:09:28]requested_item shift.opened is exist - process it [15:09:28]req_shift_opened [15:09:28]FM_GetShiftState [15:09:28]SAM_PROTO_GetShiftState [15:09:28]wFMCommunicate request_size=4 [15:09:28]MH_SAM_APDU [15:09:28]CAPDU: 80 13 01 00 [15:09:28]Write to MH i2c: E2 08 00 8F 32 80 13 01 00 00 00 00 00 3E [15:09:28]Write i2c OK [15:09:28]MH_I2C_Read... [15:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:28]Read from MH i2c: E2 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 0E 00 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 0E 00 8F 32 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 45 [15:09:28]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [15:09:28]wFMCommunicate OK [15:09:28]SAM_PROTO_GetShiftState done [15:09:28]FM_GetShiftState done [15:09:28]req_shift_opened done [15:09:28]requested_item shift.open_date is exist - process it [15:09:28]req_shift_open_date [15:09:28]req_shift_open_date done [15:09:28]produce_requested_data done [15:09:28]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123599,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [15:09:28]process_action_free close_receipt [15:09:28]json_value_free [15:09:28]json_value_free done [15:09:28]process_json_proto returns [15:09:28]Send response to host [15:09:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123599,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [15:09:28]free response buf [15:09:28]execute_script done [15:09:28]execute_script returns [15:09:28]free content buf [15:09:28]Sock 9.Close socket [15:09:28]Sock 9.Thread stoped [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:29]accept exits with 8 [15:12:29]New connection [15:12:29]New thread 3066719588 created [15:12:29]Thread 3066862948 joined [15:12:29]Waiting for new connection... [15:12:29] Sock 8.Parse request [15:12:29]Sock 8.Check first char [15:12:29]Sock 8.First char is OK [15:12:29]request: POST /json_proto HTTP/1.0 [15:12:29]Method: POST [15:12:29]URL: /json_proto [15:12:29]Method is POST - this is cgi request [15:12:29]url: /json_proto [15:12:29]query_string will be loaded in cgi processing [15:12:29]execute_cgi json_proto POST (null) [15:12:29]execute_cgi path=json_proto method=POST [15:12:29]POST find Content-Length [15:12:29]Host: 172.17.37.4:8080 [15:12:29]Content-Length: 677 [15:12:29]Content-Type: application/json [15:12:29] [15:12:29]POST finish read [15:12:29]Found Content-Length = 677 [15:12:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)718443", "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 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:29]execute_script... [15:12: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)718443", "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 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:29]POST & json_proto [15:12:29]process_json_proto [15:12:29]json parsed OK: [15:12:29]protocol is kg_v1.0 [15:12:29]action value=close_receipt [15:12:29]process_action close_receipt [15:12:29]cmd_close_receipt [15:12:29]MH_GetDate [15:12:29]Write to MH i2c: F0 00 00 90 32 B1 [15:12:29]Write i2c OK [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: F0 [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: F0 09 00 [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: F0 09 00 90 32 00 62 88 48 67 1D 3A 47 67 58 [15:12:29]GetLastDocTimeStamp 1732806569 [15:12:29]current date 1732806754 [15:12:29]FM_GetShiftState [15:12:29]SAM_PROTO_GetShiftState [15:12:29]wFMCommunicate request_size=4 [15:12:29]MH_SAM_APDU [15:12:29]CAPDU: 80 13 01 00 [15:12:29]Write to MH i2c: E2 08 00 91 32 80 13 01 00 00 00 00 00 40 [15:12:29]Write i2c OK [15:12:29]MH_I2C_Read... [15:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:29]Read from MH i2c: E2 [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: E2 0E 00 [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: E2 0E 00 91 32 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 47 [15:12:29]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [15:12:29]wFMCommunicate OK [15:12:29]SAM_PROTO_GetShiftState done [15:12:29]FM_GetShiftState done [15:12:29]opened in 1732752282 [15:12:29]opened+sec_in_day 1732838682 [15:12:29]quantity*price = 30060 [15:12:29]sum+1 = 30061 [15:12:29]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 СНО: Общий режим Чек 112 28.11.2024 15:12 Смена: 559 ФФД: 1.0 ЗНМ: 0300000033 РНМ: 0000000000092681 Версия ККМ: 001 ФМ: 0000000000874881 ФД: 123600 ФПД: 233876361797505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T151234&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123600&fm=233876361797505&tin=02508201610067®Number=0000000000092681&sum=30000 [15:12:30]StoreToDocumentArchive [15:12:30]shift 559 fd 123600 [15:12:30]save to /storage/0559/doc_00123600 [15:12:30]save last doc name /storage/0559/doc_00123600 to /storage/kkm_last_doc_name [15:12:30]save OK [15:12:30]Clear old archive folders... [15:12:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:30]tlvbuf is 015280C0 [15:12:30]SAM_PROTO_ClearQueue [15:12:30]wFMCommunicate request_size=4 [15:12:30]MH_SAM_APDU [15:12:30]CAPDU: 80 09 00 00 [15:12:30]Write to MH i2c: E2 08 00 9E 32 80 09 00 00 00 00 00 00 42 [15:12:30]Write i2c OK [15:12:30]MH_I2C_Read... [15:12:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:30]Read from MH i2c: E2 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 03 00 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 03 00 9E 32 00 90 00 44 [15:12:30]RAPDU: 90 00 [15:12:30]wFMCommunicate OK [15:12:30]SAM_PROTO_ClearQueue done [15:12:30]KKMCreateOFDPacket [15:12:30]OFDProtocolAddRootSTLVToBuf [15:12:30]FM_MakeSignedData [15:12:30]FM_MakeSignedData [15:12:30]SAM_PROTO_SignData [15:12:30]wFMCommunicate request_size=4 [15:12:30]MH_SAM_APDU [15:12:30]CAPDU: 80 0D 01 02 [15:12:30]Write to MH i2c: E2 08 00 9F 32 80 0D 01 02 00 00 00 00 4A [15:12:30]Write i2c OK [15:12:30]MH_I2C_Read... [15:12:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:30]Read from MH i2c: E2 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 03 00 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 03 00 9F 32 00 90 00 45 [15:12:30]RAPDU: 90 00 [15:12:30]wFMCommunicate OK [15:12:30]wFMCommunicate request_size=255 [15:12:30]MH_SAM_APDU [15:12: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 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 70 00 00 00 F4 03 04 00 62 88 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D0 E2 01 00 35 04 06 00 D4 [15:12:30]Write to MH i2c: E2 02 01 A0 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 70 00 00 00 F4 03 04 00 62 88 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D0 E2 01 00 35 04 06 00 D4 00 00 BE [15:12:30]Write i2c OK [15:12:30]MH_I2C_Read... [15:12:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:30]Read from MH i2c: E2 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 03 00 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 03 00 A0 32 00 90 00 46 [15:12:30]RAPDU: 90 00 [15:12:30]wFMCommunicate OK [15:12:30]wFMCommunicate request_size=10 [15:12:30]MH_SAM_APDU [15:12:30]CAPDU: 80 0D 02 02 05 B5 95 77 5F 81 [15:12:30]Write to MH i2c: E2 0D 00 A1 32 80 0D 02 02 05 00 B5 95 77 5F 81 00 00 F8 [15:12:30]Write i2c OK [15:12:30]MH_I2C_Read... [15:12:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:30]Read from MH i2c: E2 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 03 00 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 03 00 A1 32 00 90 00 47 [15:12:30]RAPDU: 90 00 [15:12:30]wFMCommunicate OK [15:12:30]wFMCommunicate request_size=4 [15:12:30]MH_SAM_APDU [15:12:30]CAPDU: 80 0D 03 02 [15:12:30]Write to MH i2c: E2 08 00 A2 32 80 0D 03 02 00 00 00 00 4F [15:12:30]Write i2c OK [15:12:30]MH_I2C_Read... [15:12:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:30]Read from MH i2c: E2 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 0B 00 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 0B 00 A2 32 00 3C 8E C4 A6 44 F5 DA 20 90 00 B7 [15:12:30]RAPDU: 3C 8E C4 A6 44 F5 DA 20 90 00 [15:12:30]wFMCommunicate OK [15:12:30]SAM_PROTO_SignData done [15:12:30]FM_MakeSignedData done [15:12:30]CreateOFDProtocolMessage [15:12:30]wFMCommunicate request_size=4 [15:12:30]MH_SAM_APDU [15:12:30]CAPDU: 80 11 00 00 [15:12:30]Write to MH i2c: E2 08 00 A3 32 80 11 00 00 00 00 00 00 4F [15:12:30]Write i2c OK [15:12:30]MH_I2C_Read... [15:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:30]Read from MH i2c: E2 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 17 00 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 17 00 A3 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 A6 [15:12: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:12:30]wFMCommunicate OK [15:12:30]CreateOFDProtocolMessage done [15:12:30]OFDSenderStorePacket 123600 [15:12:30]StoreOFDPacket docnum=123600 [15:12: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 BE 44 07 01 45 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 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 70 00 00 00 F4 03 04 00 62 88 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D0 E2 01 00 35 04 06 00 D4 B5 95 77 5F 81 3C 8E C4 A6 44 F5 DA 20 [15:12:30]CheckFolder [15:12:30]dirname=/storage/ofd_packets [15:12:30]CheckFolder done [15:12:30]ProducePacketName [15:12:30]name=ofd_packets/00123600 [15:12:30]NVStorageSaveData ofd_packets/00123600 [15:12:30]File name is /storage/ofd_packets/00123600 [15:12:30]Write 301 bytes [15:12:30]NVStorageSaveData done [15:12:30]OFDSenderStorePacket done [15:12:30]KKMCreateOFDPacket done [15:12:30]NVStorageSaveData kkm_last_timestamp [15:12:30]File name is /storage/kkm_last_timestamp [15:12:30]Write 4 bytes [15:12:30]NVStorageSaveData done [15:12:30]ExternCall_PrintAddStr [15:12:30]wPrintStart [15:12:30]Write to MH i2c: 01 00 00 A4 32 D6 [15:12:30]Write i2c OK [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: 01 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: 01 07 00 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: 01 07 00 A4 32 00 00 00 00 00 FF 0F EB [15:12:30]RasterBufferAndPrint [15:12:30]line Счет N : (1)718443 [15:12:30]line ИНН: 02508201610067 [15:12:30]line Контрольно-Кассовый Чек [15:12:30]line ПРОДАЖА [15:12:30]line ТРК (МРК, ГНК) : 22 [15:12:30]line Товар: 2710124130 [15:12:30]line Аи-92-К-4 [15:12:30]line 4.460 * 67.40 [15:12:30]line = 300.60 [15:12:30]line НДС 12% НСП 1% [15:12:30]line > о реализуемом товаре [15:12:30]line ОКРУГЛЕНИЕ: -0.60 [15:12:30]line ИТОГО: 300.00 [15:12:30]line Внесено: 300.00 [15:12:30]line СДАЧА: 0.00 [15:12:30]line НСП 1% : 2.66 [15:12:30]line НДС 12% : 31.92 [15:12:30]line Наличными: 300.00 [15:12:30]line Безнал.: 0.00 [15:12:30]line Место: АЗС № 64 "Партнер Нефть" [15:12:30]line Адрес: 720001, с. Булан-Соготтуу, ул. Ленина 65, 42.675009, 77.300709 [15:12:30]line СНО: Общий режим [15:12:30]line Чек 112 28.11.2024 15:12 [15:12:30]line Смена: 559 ФФД: 1.0 [15:12:30]line ЗНМ: 0300000033 [15:12:30]line РНМ: 0000000000092681 [15:12:30]line Версия ККМ: 001 [15:12:30]line ФМ: 0000000000874881 [15:12:30]line ФД: 123600 [15:12:30]line ФПД: 233876361797505 [15:12:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241128T151234&type=1&operation_type=1&fn_number=0000000000874881&fd_number=123600&fm=233876361797505&tin=02508201610067®Number=0000000000092681&sum=30000 [15:12:31]OFD Sender: Processing packet 123600 [packets to send 7, broken 6] [15:12:31]ProducePacketName [15:12:31]name=ofd_packets/00123600 [15:12:31]OFD Sender: To server: pG, [15:12:31]CommunicateWithHost lk.salyk.kg:30040 [15:12:31]ConnectInit lk.salyk.kg [15:12:31]written 0, free lines is 4095 [15:12:31]Connected sock=10 [15:12: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 BE 44 07 01 45 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 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 70 00 00 00 F4 03 04 00 62 88 48 67 0E 04 04 00 2F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 38 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D0 E2 01 00 35 04 06 00 D4 B5 95 77 5F 81 3C 8E C4 A6 44 F5 DA 20 [15:12: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 B9 23 47 00 63 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 10 04 04 00 D0 E2 01 00 F4 03 04 00 28 34 48 67 B6 04 01 00 00 CE 07 32 B4 9A FA 6E 2D [15:12:31]CommunicateWithHost err = 0 [15:12:31]CheckOFDResponse [15:12:31]1017 (14) - 77093643461234 [15:12:31]1041 (16) - 0000000000874881 [15:12:31]1040 (4) - 123600 [15:12:31]1012 (4) - 28.11.2024 09:13 [15:12:31]1206 (1) - 0 [15:12:31]OFD Sender: Remove packet 123600 [15:12:31]ProducePacketName [15:12:31]name=ofd_packets/00123600 [15:12:31]NVStorageDeleteData [15:12:31]Write to MH i2c: 01 00 00 CF 32 01 [15:12:31]Write i2c OK [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: 01 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: 01 07 00 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: 01 07 00 CF 32 00 00 00 00 00 41 0C 55 [15:12:31]RasterBufferAndPrint [15:12:31]line [15:12:31]line [15:12:31]line [15:12:31]line [15:12:31]line [15:12:31]written 0, free lines is 3141 [15:12:31]MH_Cut [15:12:31]Write to MH i2c: D1 01 00 D6 32 01 DA [15:12:31]Write i2c OK [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: D1 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: D1 01 00 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: D1 01 00 D6 32 00 D9 [15:12:31]Write to MH i2c: 01 00 00 D7 32 09 [15:12:31]Write i2c OK [15:12:31]MH_I2C_Read... [15:12:31]OFD Sender: No OFD packet to send [15:12:32]*** Cut start [15:12:32]*** Partial cut [15:12:32]*** CUTSNS_PIN = 1 [15:12:32]*** CUTSNS_PIN = 0 [15:12:33]*** Brake cut motor [15:12:33]Read from MH i2c: 01 [15:12:33]MH_I2C_Read... [15:12:33]*** Stop cut motor [15:12:33]*** Cut end [15:12:33]Read from MH i2c: 01 07 00 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: 01 07 00 D7 32 00 00 00 00 00 FF 0F 1E [15:12:33]process_action close_receipt done [15:12:33]requested_data is exist [15:12:33]produce_requested_data [15:12:33]requested_item fm.sn is exist - process it [15:12:33]wFMCommunicate request_size=4 [15:12:33]MH_SAM_APDU [15:12:33]CAPDU: 80 11 00 00 [15:12:33]Write to MH i2c: E2 08 00 D8 32 80 11 00 00 00 00 00 00 84 [15:12:33]Write i2c OK [15:12:33]MH_I2C_Read... [15:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:33]Read from MH i2c: E2 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: E2 17 00 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: E2 17 00 D8 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 DB [15:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 38 31 90 00 [15:12:33]wFMCommunicate OK [15:12:33]requested_item fd.num is exist - process it [15:12:33]SAM_PROTO_GetFieldsCounters [15:12:33]wFMCommunicate request_size=4 [15:12:33]MH_SAM_APDU [15:12:33]CAPDU: 80 13 00 00 [15:12:33]Write to MH i2c: E2 08 00 D9 32 80 13 00 00 00 00 00 00 87 [15:12:33]Write i2c OK [15:12:33]MH_I2C_Read... [15:12:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:33]Read from MH i2c: E2 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: E2 62 00 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: E2 62 00 D9 32 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 D0 E2 01 00 0E 04 04 00 2F 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 E1 [15:12: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 D0 E2 01 00 0E 04 04 00 2F 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 [15:12:33]wFMCommunicate OK [15:12:33]SAM_PROTO_GetFieldsCounters done [15:12:33]requested_item shift.num is exist - process it [15:12:33]requested_item shift.opened is exist - process it [15:12:33]req_shift_opened [15:12:33]FM_GetShiftState [15:12:33]SAM_PROTO_GetShiftState [15:12:33]wFMCommunicate request_size=4 [15:12:33]MH_SAM_APDU [15:12:33]CAPDU: 80 13 01 00 [15:12:33]Write to MH i2c: E2 08 00 DA 32 80 13 01 00 00 00 00 00 89 [15:12:33]Write i2c OK [15:12:33]MH_I2C_Read... [15:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:33]Read from MH i2c: E2 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: E2 0E 00 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: E2 0E 00 DA 32 00 09 00 01 9A B3 47 67 00 00 00 00 90 00 90 [15:12:33]RAPDU: 09 00 01 9A B3 47 67 00 00 00 00 90 00 [15:12:33]wFMCommunicate OK [15:12:33]SAM_PROTO_GetShiftState done [15:12:33]FM_GetShiftState done [15:12:33]req_shift_opened done [15:12:33]requested_item shift.open_date is exist - process it [15:12:33]req_shift_open_date [15:12:33]req_shift_open_date done [15:12:33]produce_requested_data done [15:12:33]produce_requested_data return {"fm.sn":"0000000000874881","fd.num":123600,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282} [15:12:33]process_action_free close_receipt [15:12:33]json_value_free [15:12:33]json_value_free done [15:12:33]process_json_proto returns [15:12:33]Send response to host [15:12:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874881","fd.num":123600,"shift.num":559,"shift.opened":1,"shift.open_date":1732752282}}} [15:12:33]free response buf [15:12:33]execute_script done [15:12:33]execute_script returns [15:12:33]free content buf [15:12:33]Sock 8.Close socket [15:12:33]Sock 8.Thread stoped [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